@everymatrix/player-account-balance-modal-nd 1.65.0 → 1.65.1
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-CDqK15WY.cjs +15 -0
- package/components/{PlayerAccountBalanceModalNd-BizZ7AxS.js → PlayerAccountBalanceModalNd-XeaAOJqn.js} +1291 -1287
- package/components/{PlayerAccountBalanceModalNd-DWWtFXww.js → PlayerAccountBalanceModalNd-ccNoIRG0.js} +1142 -1138
- 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-DrDQhoHO.cjs +0 -28
|
@@ -2,32 +2,32 @@ var fr = Object.defineProperty, dr = Object.defineProperties;
|
|
|
2
2
|
var pr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var un = Object.getOwnPropertySymbols;
|
|
4
4
|
var mr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Mt = (e, t, n) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nt = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
mr.call(t, n) &&
|
|
7
|
+
mr.call(t, n) && Mt(e, n, t[n]);
|
|
8
8
|
if (un)
|
|
9
9
|
for (var n of un(t))
|
|
10
|
-
gr.call(t, n) &&
|
|
10
|
+
gr.call(t, n) && Mt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, It = (e, t) => dr(e, pr(t));
|
|
13
|
+
var se = (e, t, n) => (Mt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var Pt = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(n.next(c));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, l = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(n.throw(c));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, l);
|
|
28
|
+
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function le() {
|
|
31
31
|
}
|
|
32
32
|
function Nn(e) {
|
|
33
33
|
return e();
|
|
@@ -35,10 +35,10 @@ function Nn(e) {
|
|
|
35
35
|
function cn() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Xe(e) {
|
|
39
39
|
e.forEach(Nn);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function rn(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function In(e, t) {
|
|
@@ -51,7 +51,7 @@ function Pn(e, ...t) {
|
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
54
|
-
return
|
|
54
|
+
return le;
|
|
55
55
|
}
|
|
56
56
|
const n = e.subscribe(...t);
|
|
57
57
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
@@ -59,13 +59,13 @@ function Pn(e, ...t) {
|
|
|
59
59
|
function yr(e, t, n) {
|
|
60
60
|
e.$$.on_destroy.push(Pn(t, n));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function H(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
65
|
function vr(e, t, n) {
|
|
66
66
|
const r = Er(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
|
-
const i =
|
|
68
|
+
const i = k("style");
|
|
69
69
|
i.id = t, i.textContent = n, xr(r, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -80,7 +80,7 @@ function Er(e) {
|
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
82
|
function xr(e, t) {
|
|
83
|
-
return
|
|
83
|
+
return H(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
@@ -89,27 +89,27 @@ function xr(e, t) {
|
|
|
89
89
|
function be(e, t, n) {
|
|
90
90
|
e.insertBefore(t, n || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function de(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
95
|
function Dn(e, t) {
|
|
96
96
|
for (let n = 0; n < e.length; n += 1)
|
|
97
97
|
e[n] && e[n].d(t);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function k(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
102
|
function hn(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function fe(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function pe() {
|
|
109
|
+
return fe(" ");
|
|
110
110
|
}
|
|
111
111
|
function _r() {
|
|
112
|
-
return
|
|
112
|
+
return fe("");
|
|
113
113
|
}
|
|
114
114
|
function gt(e, t, n, r) {
|
|
115
115
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
@@ -120,7 +120,7 @@ function M(e, t, n) {
|
|
|
120
120
|
function Br(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function _e(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
@@ -133,65 +133,65 @@ function Tr(e) {
|
|
|
133
133
|
}
|
|
134
134
|
), t;
|
|
135
135
|
}
|
|
136
|
-
let
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
let nt;
|
|
137
|
+
function tt(e) {
|
|
138
|
+
nt = e;
|
|
139
139
|
}
|
|
140
140
|
function wr() {
|
|
141
|
-
if (!
|
|
141
|
+
if (!nt)
|
|
142
142
|
throw new Error("Function called outside component initialization");
|
|
143
|
-
return
|
|
143
|
+
return nt;
|
|
144
144
|
}
|
|
145
145
|
function Sr(e) {
|
|
146
146
|
wr().$$.on_mount.push(e);
|
|
147
147
|
}
|
|
148
|
-
const
|
|
149
|
-
let
|
|
148
|
+
const Fe = [], Vt = [];
|
|
149
|
+
let Ge = [];
|
|
150
150
|
const fn = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
151
|
-
let
|
|
151
|
+
let Xt = !1;
|
|
152
152
|
function Cr() {
|
|
153
|
-
|
|
153
|
+
Xt || (Xt = !0, Ar.then(Q));
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
|
|
155
|
+
function zt(e) {
|
|
156
|
+
Ge.push(e);
|
|
157
157
|
}
|
|
158
|
-
const
|
|
159
|
-
let
|
|
160
|
-
function
|
|
161
|
-
if (
|
|
158
|
+
const Dt = /* @__PURE__ */ new Set();
|
|
159
|
+
let De = 0;
|
|
160
|
+
function Q() {
|
|
161
|
+
if (De !== 0)
|
|
162
162
|
return;
|
|
163
|
-
const e =
|
|
163
|
+
const e = nt;
|
|
164
164
|
do {
|
|
165
165
|
try {
|
|
166
|
-
for (;
|
|
167
|
-
const t =
|
|
168
|
-
|
|
166
|
+
for (; De < Fe.length; ) {
|
|
167
|
+
const t = Fe[De];
|
|
168
|
+
De++, tt(t), Hr(t.$$);
|
|
169
169
|
}
|
|
170
170
|
} catch (t) {
|
|
171
|
-
throw
|
|
171
|
+
throw Fe.length = 0, De = 0, t;
|
|
172
172
|
}
|
|
173
|
-
for (
|
|
174
|
-
|
|
175
|
-
for (let t = 0; t <
|
|
176
|
-
const n =
|
|
177
|
-
|
|
173
|
+
for (tt(null), Fe.length = 0, De = 0; Vt.length; )
|
|
174
|
+
Vt.pop()();
|
|
175
|
+
for (let t = 0; t < Ge.length; t += 1) {
|
|
176
|
+
const n = Ge[t];
|
|
177
|
+
Dt.has(n) || (Dt.add(n), n());
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
} while (
|
|
179
|
+
Ge.length = 0;
|
|
180
|
+
} while (Fe.length);
|
|
181
181
|
for (; fn.length; )
|
|
182
182
|
fn.pop()();
|
|
183
|
-
|
|
183
|
+
Xt = !1, Dt.clear(), tt(e);
|
|
184
184
|
}
|
|
185
185
|
function Hr(e) {
|
|
186
186
|
if (e.fragment !== null) {
|
|
187
|
-
e.update(),
|
|
187
|
+
e.update(), Xe(e.before_update);
|
|
188
188
|
const t = e.dirty;
|
|
189
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
189
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
function Or(e) {
|
|
193
193
|
const t = [], n = [];
|
|
194
|
-
|
|
194
|
+
Ge.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ge = t;
|
|
195
195
|
}
|
|
196
196
|
const Rr = /* @__PURE__ */ new Set();
|
|
197
197
|
function Lr(e, t) {
|
|
@@ -202,27 +202,27 @@ function bt(e) {
|
|
|
202
202
|
}
|
|
203
203
|
function Mr(e, t, n) {
|
|
204
204
|
const { fragment: r, after_update: i } = e.$$;
|
|
205
|
-
r && r.m(t, n),
|
|
206
|
-
const o = e.$$.on_mount.map(Nn).filter(
|
|
207
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
208
|
-
}), i.forEach(
|
|
205
|
+
r && r.m(t, n), zt(() => {
|
|
206
|
+
const o = e.$$.on_mount.map(Nn).filter(rn);
|
|
207
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Xe(o), e.$$.on_mount = [];
|
|
208
|
+
}), i.forEach(zt);
|
|
209
209
|
}
|
|
210
210
|
function Nr(e, t) {
|
|
211
211
|
const n = e.$$;
|
|
212
|
-
n.fragment !== null && (Or(n.after_update),
|
|
212
|
+
n.fragment !== null && (Or(n.after_update), Xe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
213
213
|
}
|
|
214
214
|
function Ir(e, t) {
|
|
215
|
-
e.$$.dirty[0] === -1 && (
|
|
215
|
+
e.$$.dirty[0] === -1 && (Fe.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
216
216
|
}
|
|
217
|
-
function Pr(e, t, n, r, i, o,
|
|
218
|
-
const c =
|
|
219
|
-
|
|
217
|
+
function Pr(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
218
|
+
const c = nt;
|
|
219
|
+
tt(e);
|
|
220
220
|
const u = e.$$ = {
|
|
221
221
|
fragment: null,
|
|
222
222
|
ctx: [],
|
|
223
223
|
// state
|
|
224
224
|
props: o,
|
|
225
|
-
update:
|
|
225
|
+
update: le,
|
|
226
226
|
not_equal: i,
|
|
227
227
|
bound: cn(),
|
|
228
228
|
// lifecycle
|
|
@@ -234,47 +234,47 @@ function Pr(e, t, n, r, i, o, s = null, a = [-1]) {
|
|
|
234
234
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
235
235
|
// everything else
|
|
236
236
|
callbacks: cn(),
|
|
237
|
-
dirty:
|
|
237
|
+
dirty: s,
|
|
238
238
|
skip_bound: !1,
|
|
239
239
|
root: t.target || c.$$.root
|
|
240
240
|
};
|
|
241
|
-
|
|
242
|
-
let
|
|
243
|
-
if (u.ctx = n ? n(e, t.props || {}, (g, b, ...
|
|
244
|
-
const
|
|
245
|
-
return u.ctx && i(u.ctx[g], u.ctx[g] =
|
|
246
|
-
}) : [], u.update(),
|
|
241
|
+
l && l(u.root);
|
|
242
|
+
let d = !1;
|
|
243
|
+
if (u.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
|
|
244
|
+
const B = _.length ? _[0] : b;
|
|
245
|
+
return u.ctx && i(u.ctx[g], u.ctx[g] = B) && (!u.skip_bound && u.bound[g] && u.bound[g](B), d && Ir(e, g)), b;
|
|
246
|
+
}) : [], u.update(), d = !0, Xe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
247
247
|
if (t.hydrate) {
|
|
248
248
|
const g = Br(t.target);
|
|
249
|
-
u.fragment && u.fragment.l(g), g.forEach(
|
|
249
|
+
u.fragment && u.fragment.l(g), g.forEach(de);
|
|
250
250
|
} else
|
|
251
251
|
u.fragment && u.fragment.c();
|
|
252
|
-
t.intro && Lr(e.$$.fragment), Mr(e, t.target, t.anchor),
|
|
252
|
+
t.intro && Lr(e.$$.fragment), Mr(e, t.target, t.anchor), Q();
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
tt(c);
|
|
255
255
|
}
|
|
256
256
|
let Un;
|
|
257
257
|
typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
258
258
|
constructor(t, n, r) {
|
|
259
259
|
super();
|
|
260
260
|
/** The Svelte component constructor */
|
|
261
|
-
|
|
261
|
+
se(this, "$$ctor");
|
|
262
262
|
/** Slots */
|
|
263
|
-
|
|
263
|
+
se(this, "$$s");
|
|
264
264
|
/** The Svelte component instance */
|
|
265
|
-
|
|
265
|
+
se(this, "$$c");
|
|
266
266
|
/** Whether or not the custom element is connected */
|
|
267
|
-
|
|
267
|
+
se(this, "$$cn", !1);
|
|
268
268
|
/** Component props data */
|
|
269
|
-
|
|
269
|
+
se(this, "$$d", {});
|
|
270
270
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
271
|
-
|
|
271
|
+
se(this, "$$r", !1);
|
|
272
272
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
273
|
-
|
|
273
|
+
se(this, "$$p_d", {});
|
|
274
274
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
275
|
-
|
|
275
|
+
se(this, "$$l", {});
|
|
276
276
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
277
|
-
|
|
277
|
+
se(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
278
278
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
279
279
|
}
|
|
280
280
|
addEventListener(t, n, r) {
|
|
@@ -291,24 +291,24 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
connectedCallback() {
|
|
294
|
-
return
|
|
294
|
+
return Pt(this, null, function* () {
|
|
295
295
|
if (this.$$cn = !0, !this.$$c) {
|
|
296
296
|
let t = function(o) {
|
|
297
297
|
return () => {
|
|
298
|
-
let
|
|
298
|
+
let l;
|
|
299
299
|
return {
|
|
300
300
|
c: function() {
|
|
301
|
-
|
|
301
|
+
l = k("slot"), o !== "default" && M(l, "name", o);
|
|
302
302
|
},
|
|
303
303
|
/**
|
|
304
304
|
* @param {HTMLElement} target
|
|
305
305
|
* @param {HTMLElement} [anchor]
|
|
306
306
|
*/
|
|
307
|
-
m: function(u,
|
|
308
|
-
be(u,
|
|
307
|
+
m: function(u, d) {
|
|
308
|
+
be(u, l, d);
|
|
309
309
|
},
|
|
310
310
|
d: function(u) {
|
|
311
|
-
u &&
|
|
311
|
+
u && de(l);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
};
|
|
@@ -319,14 +319,14 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
|
319
319
|
for (const o of this.$$s)
|
|
320
320
|
o in r && (n[o] = [t(o)]);
|
|
321
321
|
for (const o of this.attributes) {
|
|
322
|
-
const
|
|
323
|
-
|
|
322
|
+
const l = this.$$g_p(o.name);
|
|
323
|
+
l in this.$$d || (this.$$d[l] = ft(l, o.value, this.$$p_d, "toProp"));
|
|
324
324
|
}
|
|
325
325
|
for (const o in this.$$p_d)
|
|
326
326
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
327
327
|
this.$$c = new this.$$ctor({
|
|
328
328
|
target: this.shadowRoot || this,
|
|
329
|
-
props:
|
|
329
|
+
props: It(Nt({}, this.$$d), {
|
|
330
330
|
$$slots: n,
|
|
331
331
|
$$scope: {
|
|
332
332
|
ctx: []
|
|
@@ -337,21 +337,21 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
|
337
337
|
this.$$r = !0;
|
|
338
338
|
for (const o in this.$$p_d)
|
|
339
339
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
340
|
-
const
|
|
340
|
+
const l = ft(
|
|
341
341
|
o,
|
|
342
342
|
this.$$d[o],
|
|
343
343
|
this.$$p_d,
|
|
344
344
|
"toAttribute"
|
|
345
345
|
);
|
|
346
|
-
|
|
346
|
+
l == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, l);
|
|
347
347
|
}
|
|
348
348
|
this.$$r = !1;
|
|
349
349
|
};
|
|
350
350
|
this.$$c.$$.after_update.push(i), i();
|
|
351
351
|
for (const o in this.$$l)
|
|
352
|
-
for (const
|
|
353
|
-
const
|
|
354
|
-
this.$$l_u.set(
|
|
352
|
+
for (const l of this.$$l[o]) {
|
|
353
|
+
const s = this.$$c.$on(o, l);
|
|
354
|
+
this.$$l_u.set(l, s);
|
|
355
355
|
}
|
|
356
356
|
this.$$l = {};
|
|
357
357
|
}
|
|
@@ -405,35 +405,35 @@ function ft(e, t, n, r) {
|
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
function Dr(e, t, n, r, i, o) {
|
|
408
|
-
let
|
|
408
|
+
let l = class extends Un {
|
|
409
409
|
constructor() {
|
|
410
410
|
super(e, n, i), this.$$p_d = t;
|
|
411
411
|
}
|
|
412
412
|
static get observedAttributes() {
|
|
413
413
|
return Object.keys(t).map(
|
|
414
|
-
(
|
|
414
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
415
415
|
);
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
|
-
return Object.keys(t).forEach((
|
|
419
|
-
Object.defineProperty(
|
|
418
|
+
return Object.keys(t).forEach((s) => {
|
|
419
|
+
Object.defineProperty(l.prototype, s, {
|
|
420
420
|
get() {
|
|
421
|
-
return this.$$c &&
|
|
421
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
422
422
|
},
|
|
423
423
|
set(c) {
|
|
424
424
|
var u;
|
|
425
|
-
c = ft(
|
|
425
|
+
c = ft(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
|
|
426
426
|
}
|
|
427
427
|
});
|
|
428
|
-
}), r.forEach((
|
|
429
|
-
Object.defineProperty(
|
|
428
|
+
}), r.forEach((s) => {
|
|
429
|
+
Object.defineProperty(l.prototype, s, {
|
|
430
430
|
get() {
|
|
431
431
|
var c;
|
|
432
|
-
return (c = this.$$c) == null ? void 0 : c[
|
|
432
|
+
return (c = this.$$c) == null ? void 0 : c[s];
|
|
433
433
|
}
|
|
434
434
|
});
|
|
435
435
|
}), e.element = /** @type {any} */
|
|
436
|
-
|
|
436
|
+
l, l;
|
|
437
437
|
}
|
|
438
438
|
class Ur {
|
|
439
439
|
constructor() {
|
|
@@ -444,7 +444,7 @@ class Ur {
|
|
|
444
444
|
*
|
|
445
445
|
* @type {any}
|
|
446
446
|
*/
|
|
447
|
-
|
|
447
|
+
se(this, "$$");
|
|
448
448
|
/**
|
|
449
449
|
* ### PRIVATE API
|
|
450
450
|
*
|
|
@@ -452,11 +452,11 @@ class Ur {
|
|
|
452
452
|
*
|
|
453
453
|
* @type {any}
|
|
454
454
|
*/
|
|
455
|
-
|
|
455
|
+
se(this, "$$set");
|
|
456
456
|
}
|
|
457
457
|
/** @returns {void} */
|
|
458
458
|
$destroy() {
|
|
459
|
-
Nr(this, 1), this.$destroy =
|
|
459
|
+
Nr(this, 1), this.$destroy = le;
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,8 +465,8 @@ class Ur {
|
|
|
465
465
|
* @returns {() => void}
|
|
466
466
|
*/
|
|
467
467
|
$on(t, n) {
|
|
468
|
-
if (!
|
|
469
|
-
return
|
|
468
|
+
if (!rn(n))
|
|
469
|
+
return le;
|
|
470
470
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
471
471
|
return r.push(n), () => {
|
|
472
472
|
const i = r.indexOf(n);
|
|
@@ -498,7 +498,7 @@ function $r(e, t) {
|
|
|
498
498
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function jr(e, t, n) {
|
|
502
502
|
if (window.emMessageBus) {
|
|
503
503
|
const r = document.createElement("style");
|
|
504
504
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -506,66 +506,66 @@ function kr(e, t, n) {
|
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const
|
|
510
|
-
function
|
|
509
|
+
const Ue = [];
|
|
510
|
+
function kr(e, t) {
|
|
511
511
|
return {
|
|
512
|
-
subscribe:
|
|
512
|
+
subscribe: xt(e, t).subscribe
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function xt(e, t = le) {
|
|
516
516
|
let n;
|
|
517
517
|
const r = /* @__PURE__ */ new Set();
|
|
518
|
-
function i(
|
|
519
|
-
if (In(e,
|
|
520
|
-
const c = !
|
|
518
|
+
function i(s) {
|
|
519
|
+
if (In(e, s) && (e = s, n)) {
|
|
520
|
+
const c = !Ue.length;
|
|
521
521
|
for (const u of r)
|
|
522
|
-
u[1](),
|
|
522
|
+
u[1](), Ue.push(u, e);
|
|
523
523
|
if (c) {
|
|
524
|
-
for (let u = 0; u <
|
|
525
|
-
|
|
526
|
-
|
|
524
|
+
for (let u = 0; u < Ue.length; u += 2)
|
|
525
|
+
Ue[u][0](Ue[u + 1]);
|
|
526
|
+
Ue.length = 0;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
function o(
|
|
531
|
-
i(
|
|
530
|
+
function o(s) {
|
|
531
|
+
i(s(e));
|
|
532
532
|
}
|
|
533
|
-
function s
|
|
534
|
-
const u = [
|
|
535
|
-
return r.add(u), r.size === 1 && (n = t(i, o) ||
|
|
533
|
+
function l(s, c = le) {
|
|
534
|
+
const u = [s, c];
|
|
535
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || le), s(e), () => {
|
|
536
536
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
return { set: i, update: o, subscribe:
|
|
539
|
+
return { set: i, update: o, subscribe: l };
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function ze(e, t, n) {
|
|
542
542
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
543
543
|
if (!i.every(Boolean))
|
|
544
544
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
545
545
|
const o = t.length < 2;
|
|
546
|
-
return
|
|
546
|
+
return kr(n, (l, s) => {
|
|
547
547
|
let c = !1;
|
|
548
548
|
const u = [];
|
|
549
|
-
let
|
|
549
|
+
let d = 0, g = le;
|
|
550
550
|
const b = () => {
|
|
551
|
-
if (
|
|
551
|
+
if (d)
|
|
552
552
|
return;
|
|
553
553
|
g();
|
|
554
|
-
const
|
|
555
|
-
o ?
|
|
556
|
-
},
|
|
557
|
-
(
|
|
558
|
-
|
|
559
|
-
(
|
|
560
|
-
u[
|
|
554
|
+
const B = t(r ? u[0] : u, l, s);
|
|
555
|
+
o ? l(B) : g = rn(B) ? B : le;
|
|
556
|
+
}, _ = i.map(
|
|
557
|
+
(B, T) => Pn(
|
|
558
|
+
B,
|
|
559
|
+
(x) => {
|
|
560
|
+
u[T] = x, d &= ~(1 << T), c && b();
|
|
561
561
|
},
|
|
562
562
|
() => {
|
|
563
|
-
|
|
563
|
+
d |= 1 << T;
|
|
564
564
|
}
|
|
565
565
|
)
|
|
566
566
|
);
|
|
567
567
|
return c = !0, b(), function() {
|
|
568
|
-
|
|
568
|
+
Xe(_), g(), c = !1;
|
|
569
569
|
};
|
|
570
570
|
});
|
|
571
571
|
}
|
|
@@ -590,19 +590,19 @@ function Jr(e) {
|
|
|
590
590
|
function Yr(e) {
|
|
591
591
|
return Array.isArray(e) ? [] : {};
|
|
592
592
|
}
|
|
593
|
-
function
|
|
594
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
593
|
+
function rt(e, t) {
|
|
594
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $e(Yr(e), e, t) : e;
|
|
595
595
|
}
|
|
596
596
|
function Kr(e, t, n) {
|
|
597
597
|
return e.concat(t).map(function(r) {
|
|
598
|
-
return
|
|
598
|
+
return rt(r, n);
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
function ei(e, t) {
|
|
602
602
|
if (!t.customMerge)
|
|
603
|
-
return
|
|
603
|
+
return $e;
|
|
604
604
|
var n = t.customMerge(e);
|
|
605
|
-
return typeof n == "function" ? n :
|
|
605
|
+
return typeof n == "function" ? n : $e;
|
|
606
606
|
}
|
|
607
607
|
function ti(e) {
|
|
608
608
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -625,65 +625,51 @@ function ni(e, t) {
|
|
|
625
625
|
function ri(e, t, n) {
|
|
626
626
|
var r = {};
|
|
627
627
|
return n.isMergeableObject(e) && dn(e).forEach(function(i) {
|
|
628
|
-
r[i] =
|
|
628
|
+
r[i] = rt(e[i], n);
|
|
629
629
|
}), dn(t).forEach(function(i) {
|
|
630
|
-
ni(e, i) || (Fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ei(i, n)(e[i], t[i], n) : r[i] =
|
|
630
|
+
ni(e, i) || (Fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ei(i, n)(e[i], t[i], n) : r[i] = rt(t[i], n));
|
|
631
631
|
}), r;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || Kr, n.isMergeableObject = n.isMergeableObject || zr, n.cloneUnlessOtherwiseSpecified =
|
|
633
|
+
function $e(e, t, n) {
|
|
634
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Kr, n.isMergeableObject = n.isMergeableObject || zr, n.cloneUnlessOtherwiseSpecified = rt;
|
|
635
635
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
636
|
-
return o ? r ? n.arrayMerge(e, t, n) : ri(e, t, n) :
|
|
636
|
+
return o ? r ? n.arrayMerge(e, t, n) : ri(e, t, n) : rt(t, n);
|
|
637
637
|
}
|
|
638
|
-
|
|
638
|
+
$e.all = function(t, n) {
|
|
639
639
|
if (!Array.isArray(t))
|
|
640
640
|
throw new Error("first argument should be an array");
|
|
641
641
|
return t.reduce(function(r, i) {
|
|
642
|
-
return
|
|
642
|
+
return $e(r, i, n);
|
|
643
643
|
}, {});
|
|
644
644
|
};
|
|
645
|
-
var ii =
|
|
645
|
+
var ii = $e, oi = ii;
|
|
646
646
|
const ai = /* @__PURE__ */ Xr(oi);
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
651
|
-
purpose with or without fee is hereby granted.
|
|
652
|
-
|
|
653
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
654
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
655
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
656
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
657
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
658
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
659
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
660
|
-
***************************************************************************** */
|
|
661
|
-
var Xt = function(e, t) {
|
|
662
|
-
return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
647
|
+
var Wt = function(e, t) {
|
|
648
|
+
return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
663
649
|
n.__proto__ = r;
|
|
664
650
|
} || function(n, r) {
|
|
665
651
|
for (var i in r)
|
|
666
652
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
667
|
-
},
|
|
653
|
+
}, Wt(e, t);
|
|
668
654
|
};
|
|
669
|
-
function
|
|
655
|
+
function _t(e, t) {
|
|
670
656
|
if (typeof t != "function" && t !== null)
|
|
671
657
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
672
|
-
|
|
658
|
+
Wt(e, t);
|
|
673
659
|
function n() {
|
|
674
660
|
this.constructor = e;
|
|
675
661
|
}
|
|
676
662
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
677
663
|
}
|
|
678
|
-
var
|
|
679
|
-
return
|
|
664
|
+
var ge = function() {
|
|
665
|
+
return ge = Object.assign || function(t) {
|
|
680
666
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
681
667
|
n = arguments[r];
|
|
682
668
|
for (var o in n)
|
|
683
669
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
684
670
|
}
|
|
685
671
|
return t;
|
|
686
|
-
},
|
|
672
|
+
}, ge.apply(this, arguments);
|
|
687
673
|
};
|
|
688
674
|
function si(e, t) {
|
|
689
675
|
var n = {};
|
|
@@ -694,14 +680,14 @@ function si(e, t) {
|
|
|
694
680
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
695
681
|
return n;
|
|
696
682
|
}
|
|
697
|
-
function
|
|
698
|
-
if (arguments.length === 2)
|
|
683
|
+
function Ut(e, t, n) {
|
|
684
|
+
if (n || arguments.length === 2)
|
|
699
685
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
700
686
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
701
|
-
return e.concat(o || t);
|
|
687
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
702
688
|
}
|
|
703
|
-
function
|
|
704
|
-
var n = t && t.cache ? t.cache :
|
|
689
|
+
function Ft(e, t) {
|
|
690
|
+
var n = t && t.cache ? t.cache : pi, r = t && t.serializer ? t.serializer : fi, i = t && t.strategy ? t.strategy : ci;
|
|
705
691
|
return i(e, {
|
|
706
692
|
cache: n,
|
|
707
693
|
serializer: r
|
|
@@ -710,95 +696,103 @@ function Dt(e, t) {
|
|
|
710
696
|
function li(e) {
|
|
711
697
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
712
698
|
}
|
|
713
|
-
function
|
|
699
|
+
function ui(e, t, n, r) {
|
|
714
700
|
var i = li(r) ? r : n(r), o = t.get(i);
|
|
715
701
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
716
702
|
}
|
|
717
|
-
function
|
|
703
|
+
function Gn(e, t, n) {
|
|
718
704
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
719
705
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
720
706
|
}
|
|
721
|
-
function
|
|
707
|
+
function $n(e, t, n, r, i) {
|
|
722
708
|
return n.bind(t, e, r, i);
|
|
723
709
|
}
|
|
724
|
-
function ui(e, t) {
|
|
725
|
-
var n = e.length === 1 ? Gn : $n;
|
|
726
|
-
return nn(e, this, n, t.cache.create(), t.serializer);
|
|
727
|
-
}
|
|
728
710
|
function ci(e, t) {
|
|
729
|
-
|
|
711
|
+
var n = e.length === 1 ? ui : Gn;
|
|
712
|
+
return $n(e, this, n, t.cache.create(), t.serializer);
|
|
730
713
|
}
|
|
731
714
|
function hi(e, t) {
|
|
732
|
-
return
|
|
715
|
+
return $n(e, this, Gn, t.cache.create(), t.serializer);
|
|
733
716
|
}
|
|
734
717
|
var fi = function() {
|
|
735
718
|
return JSON.stringify(arguments);
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
719
|
+
}, di = (
|
|
720
|
+
/** @class */
|
|
721
|
+
function() {
|
|
722
|
+
function e() {
|
|
723
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
724
|
+
}
|
|
725
|
+
return e.prototype.get = function(t) {
|
|
726
|
+
return this.cache[t];
|
|
727
|
+
}, e.prototype.set = function(t, n) {
|
|
728
|
+
this.cache[t] = n;
|
|
729
|
+
}, e;
|
|
730
|
+
}()
|
|
731
|
+
), pi = {
|
|
747
732
|
create: function() {
|
|
748
|
-
return new
|
|
733
|
+
return new di();
|
|
749
734
|
}
|
|
750
|
-
},
|
|
751
|
-
variadic:
|
|
752
|
-
|
|
753
|
-
|
|
735
|
+
}, Gt = {
|
|
736
|
+
variadic: hi
|
|
737
|
+
}, yt = function() {
|
|
738
|
+
return yt = Object.assign || function(t) {
|
|
739
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
740
|
+
n = arguments[r];
|
|
741
|
+
for (var o in n)
|
|
742
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
743
|
+
}
|
|
744
|
+
return t;
|
|
745
|
+
}, yt.apply(this, arguments);
|
|
746
|
+
};
|
|
747
|
+
var O;
|
|
754
748
|
(function(e) {
|
|
755
749
|
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";
|
|
756
|
-
})(
|
|
757
|
-
var
|
|
750
|
+
})(O || (O = {}));
|
|
751
|
+
var j;
|
|
758
752
|
(function(e) {
|
|
759
753
|
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";
|
|
760
|
-
})(
|
|
761
|
-
var
|
|
754
|
+
})(j || (j = {}));
|
|
755
|
+
var je;
|
|
762
756
|
(function(e) {
|
|
763
757
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
764
|
-
})(
|
|
758
|
+
})(je || (je = {}));
|
|
765
759
|
function pn(e) {
|
|
766
|
-
return e.type ===
|
|
760
|
+
return e.type === j.literal;
|
|
767
761
|
}
|
|
768
|
-
function
|
|
769
|
-
return e.type ===
|
|
770
|
-
}
|
|
771
|
-
function kn(e) {
|
|
772
|
-
return e.type === G.number;
|
|
762
|
+
function mi(e) {
|
|
763
|
+
return e.type === j.argument;
|
|
773
764
|
}
|
|
774
765
|
function jn(e) {
|
|
775
|
-
return e.type ===
|
|
766
|
+
return e.type === j.number;
|
|
767
|
+
}
|
|
768
|
+
function kn(e) {
|
|
769
|
+
return e.type === j.date;
|
|
776
770
|
}
|
|
777
771
|
function Vn(e) {
|
|
778
|
-
return e.type ===
|
|
772
|
+
return e.type === j.time;
|
|
779
773
|
}
|
|
780
774
|
function Xn(e) {
|
|
781
|
-
return e.type ===
|
|
775
|
+
return e.type === j.select;
|
|
782
776
|
}
|
|
783
777
|
function zn(e) {
|
|
784
|
-
return e.type ===
|
|
778
|
+
return e.type === j.plural;
|
|
785
779
|
}
|
|
786
|
-
function
|
|
787
|
-
return e.type ===
|
|
780
|
+
function gi(e) {
|
|
781
|
+
return e.type === j.pound;
|
|
788
782
|
}
|
|
789
783
|
function Wn(e) {
|
|
790
|
-
return e.type ===
|
|
784
|
+
return e.type === j.tag;
|
|
791
785
|
}
|
|
792
786
|
function Zn(e) {
|
|
793
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
787
|
+
return !!(e && typeof e == "object" && e.type === je.number);
|
|
794
788
|
}
|
|
795
|
-
function
|
|
796
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
789
|
+
function Zt(e) {
|
|
790
|
+
return !!(e && typeof e == "object" && e.type === je.dateTime);
|
|
797
791
|
}
|
|
798
|
-
var qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
799
|
-
function
|
|
792
|
+
var qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bi = /(?:[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;
|
|
793
|
+
function yi(e) {
|
|
800
794
|
var t = {};
|
|
801
|
-
return e.replace(
|
|
795
|
+
return e.replace(bi, function(n) {
|
|
802
796
|
var r = n.length;
|
|
803
797
|
switch (n[0]) {
|
|
804
798
|
case "G":
|
|
@@ -887,29 +881,39 @@ function bi(e) {
|
|
|
887
881
|
return "";
|
|
888
882
|
}), t;
|
|
889
883
|
}
|
|
890
|
-
var
|
|
891
|
-
function
|
|
884
|
+
var X = function() {
|
|
885
|
+
return X = Object.assign || function(t) {
|
|
886
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
887
|
+
n = arguments[r];
|
|
888
|
+
for (var o in n)
|
|
889
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
890
|
+
}
|
|
891
|
+
return t;
|
|
892
|
+
}, X.apply(this, arguments);
|
|
893
|
+
};
|
|
894
|
+
var vi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
895
|
+
function Ei(e) {
|
|
892
896
|
if (e.length === 0)
|
|
893
897
|
throw new Error("Number skeleton cannot be empty");
|
|
894
|
-
for (var t = e.split(
|
|
898
|
+
for (var t = e.split(vi).filter(function(b) {
|
|
895
899
|
return b.length > 0;
|
|
896
900
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
897
|
-
var o = i[r],
|
|
898
|
-
if (
|
|
901
|
+
var o = i[r], l = o.split("/");
|
|
902
|
+
if (l.length === 0)
|
|
899
903
|
throw new Error("Invalid number skeleton");
|
|
900
|
-
for (var
|
|
901
|
-
var g =
|
|
904
|
+
for (var s = l[0], c = l.slice(1), u = 0, d = c; u < d.length; u++) {
|
|
905
|
+
var g = d[u];
|
|
902
906
|
if (g.length === 0)
|
|
903
907
|
throw new Error("Invalid number skeleton");
|
|
904
908
|
}
|
|
905
|
-
n.push({ stem:
|
|
909
|
+
n.push({ stem: s, options: c });
|
|
906
910
|
}
|
|
907
911
|
return n;
|
|
908
912
|
}
|
|
909
|
-
function
|
|
913
|
+
function xi(e) {
|
|
910
914
|
return e.replace(/^(.*?)-/, "");
|
|
911
915
|
}
|
|
912
|
-
var mn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qn = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
916
|
+
var mn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qn = /^(@+)?(\+|#+)?[rs]?$/g, _i = /(\*)(0+)|(#+)(0+)|(0+)/g, Jn = /^(0+)$/;
|
|
913
917
|
function gn(e) {
|
|
914
918
|
var t = {};
|
|
915
919
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qn, function(n, r, i) {
|
|
@@ -956,7 +960,7 @@ function Yn(e) {
|
|
|
956
960
|
};
|
|
957
961
|
}
|
|
958
962
|
}
|
|
959
|
-
function
|
|
963
|
+
function Bi(e) {
|
|
960
964
|
var t;
|
|
961
965
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
962
966
|
notation: "engineering"
|
|
@@ -974,7 +978,7 @@ function bn(e) {
|
|
|
974
978
|
var t = {}, n = Yn(e);
|
|
975
979
|
return n || t;
|
|
976
980
|
}
|
|
977
|
-
function
|
|
981
|
+
function Ti(e) {
|
|
978
982
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
979
983
|
var i = r[n];
|
|
980
984
|
switch (i.stem) {
|
|
@@ -998,7 +1002,7 @@ function Bi(e) {
|
|
|
998
1002
|
continue;
|
|
999
1003
|
case "measure-unit":
|
|
1000
1004
|
case "unit":
|
|
1001
|
-
t.style = "unit", t.unit =
|
|
1005
|
+
t.style = "unit", t.unit = xi(i.options[0]);
|
|
1002
1006
|
continue;
|
|
1003
1007
|
case "compact-short":
|
|
1004
1008
|
case "K":
|
|
@@ -1009,13 +1013,13 @@ function Bi(e) {
|
|
|
1009
1013
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1010
1014
|
continue;
|
|
1011
1015
|
case "scientific":
|
|
1012
|
-
t =
|
|
1013
|
-
return
|
|
1016
|
+
t = X(X(X({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
1017
|
+
return X(X({}, c), bn(u));
|
|
1014
1018
|
}, {}));
|
|
1015
1019
|
continue;
|
|
1016
1020
|
case "engineering":
|
|
1017
|
-
t =
|
|
1018
|
-
return
|
|
1021
|
+
t = X(X(X({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
1022
|
+
return X(X({}, c), bn(u));
|
|
1019
1023
|
}, {}));
|
|
1020
1024
|
continue;
|
|
1021
1025
|
case "notation-simple":
|
|
@@ -1060,13 +1064,13 @@ function Bi(e) {
|
|
|
1060
1064
|
case "integer-width":
|
|
1061
1065
|
if (i.options.length > 1)
|
|
1062
1066
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1063
|
-
i.options[0].replace(
|
|
1067
|
+
i.options[0].replace(_i, function(c, u, d, g, b, _) {
|
|
1064
1068
|
if (u)
|
|
1065
|
-
t.minimumIntegerDigits =
|
|
1069
|
+
t.minimumIntegerDigits = d.length;
|
|
1066
1070
|
else {
|
|
1067
1071
|
if (g && b)
|
|
1068
1072
|
throw new Error("We currently do not support maximum integer digits");
|
|
1069
|
-
if (
|
|
1073
|
+
if (_)
|
|
1070
1074
|
throw new Error("We currently do not support exact integer digits");
|
|
1071
1075
|
}
|
|
1072
1076
|
return "";
|
|
@@ -1080,21 +1084,21 @@ function Bi(e) {
|
|
|
1080
1084
|
if (mn.test(i.stem)) {
|
|
1081
1085
|
if (i.options.length > 1)
|
|
1082
1086
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1083
|
-
i.stem.replace(mn, function(c, u,
|
|
1084
|
-
return
|
|
1087
|
+
i.stem.replace(mn, function(c, u, d, g, b, _) {
|
|
1088
|
+
return d === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1085
1089
|
});
|
|
1086
1090
|
var o = i.options[0];
|
|
1087
|
-
o === "w" ? t =
|
|
1091
|
+
o === "w" ? t = X(X({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = X(X({}, t), gn(o)));
|
|
1088
1092
|
continue;
|
|
1089
1093
|
}
|
|
1090
1094
|
if (Qn.test(i.stem)) {
|
|
1091
|
-
t =
|
|
1095
|
+
t = X(X({}, t), gn(i.stem));
|
|
1092
1096
|
continue;
|
|
1093
1097
|
}
|
|
1094
|
-
var
|
|
1095
|
-
|
|
1096
|
-
var
|
|
1097
|
-
|
|
1098
|
+
var l = Yn(i.stem);
|
|
1099
|
+
l && (t = X(X({}, t), l));
|
|
1100
|
+
var s = Bi(i.stem);
|
|
1101
|
+
s && (t = X(X({}, t), s));
|
|
1098
1102
|
}
|
|
1099
1103
|
return t;
|
|
1100
1104
|
}
|
|
@@ -2513,23 +2517,23 @@ var ht = {
|
|
|
2513
2517
|
"h"
|
|
2514
2518
|
]
|
|
2515
2519
|
};
|
|
2516
|
-
function
|
|
2520
|
+
function wi(e, t) {
|
|
2517
2521
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2518
2522
|
var i = e.charAt(r);
|
|
2519
2523
|
if (i === "j") {
|
|
2520
2524
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2521
2525
|
o++, r++;
|
|
2522
|
-
var
|
|
2523
|
-
for ((u == "H" || u == "k") && (
|
|
2526
|
+
var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = Si(t);
|
|
2527
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2524
2528
|
n += c;
|
|
2525
|
-
for (;
|
|
2529
|
+
for (; l-- > 0; )
|
|
2526
2530
|
n = u + n;
|
|
2527
2531
|
} else
|
|
2528
2532
|
i === "J" ? n += "H" : n += i;
|
|
2529
2533
|
}
|
|
2530
2534
|
return n;
|
|
2531
2535
|
}
|
|
2532
|
-
function
|
|
2536
|
+
function Si(e) {
|
|
2533
2537
|
var t = e.hourCycle;
|
|
2534
2538
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2535
2539
|
e.hourCycles && // @ts-ignore
|
|
@@ -2551,20 +2555,20 @@ function wi(e) {
|
|
|
2551
2555
|
var i = ht[r || ""] || ht[n || ""] || ht["".concat(n, "-001")] || ht["001"];
|
|
2552
2556
|
return i[0];
|
|
2553
2557
|
}
|
|
2554
|
-
var
|
|
2558
|
+
var $t, Ai = new RegExp("^".concat(qn.source, "*")), Ci = new RegExp("".concat(qn.source, "*$"));
|
|
2555
2559
|
function L(e, t) {
|
|
2556
2560
|
return { start: e, end: t };
|
|
2557
2561
|
}
|
|
2558
|
-
var
|
|
2562
|
+
var Hi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Oi = !!String.fromCodePoint, Ri = !!Object.fromEntries, Li = !!String.prototype.codePointAt, Mi = !!String.prototype.trimStart, Ni = !!String.prototype.trimEnd, Ii = !!Number.isSafeInteger, Pi = Ii ? Number.isSafeInteger : function(e) {
|
|
2559
2563
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2560
|
-
},
|
|
2564
|
+
}, qt = !0;
|
|
2561
2565
|
try {
|
|
2562
|
-
var
|
|
2563
|
-
|
|
2566
|
+
var Di = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2567
|
+
qt = (($t = Di.exec("a")) === null || $t === void 0 ? void 0 : $t[0]) === "a";
|
|
2564
2568
|
} catch (e) {
|
|
2565
|
-
|
|
2569
|
+
qt = !1;
|
|
2566
2570
|
}
|
|
2567
|
-
var yn =
|
|
2571
|
+
var yn = Hi ? (
|
|
2568
2572
|
// Native
|
|
2569
2573
|
function(t, n, r) {
|
|
2570
2574
|
return t.startsWith(n, r);
|
|
@@ -2574,31 +2578,31 @@ var yn = Ci ? (
|
|
|
2574
2578
|
function(t, n, r) {
|
|
2575
2579
|
return t.slice(r, r + n.length) === n;
|
|
2576
2580
|
}
|
|
2577
|
-
),
|
|
2581
|
+
), Qt = Oi ? String.fromCodePoint : (
|
|
2578
2582
|
// IE11
|
|
2579
2583
|
function() {
|
|
2580
2584
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2581
2585
|
t[n] = arguments[n];
|
|
2582
|
-
for (var r = "", i = t.length, o = 0,
|
|
2583
|
-
if (
|
|
2584
|
-
throw RangeError(
|
|
2585
|
-
r +=
|
|
2586
|
+
for (var r = "", i = t.length, o = 0, l; i > o; ) {
|
|
2587
|
+
if (l = t[o++], l > 1114111)
|
|
2588
|
+
throw RangeError(l + " is not a valid code point");
|
|
2589
|
+
r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
|
|
2586
2590
|
}
|
|
2587
2591
|
return r;
|
|
2588
2592
|
}
|
|
2589
2593
|
), vn = (
|
|
2590
2594
|
// native
|
|
2591
|
-
|
|
2595
|
+
Ri ? Object.fromEntries : (
|
|
2592
2596
|
// Ponyfill
|
|
2593
2597
|
function(t) {
|
|
2594
2598
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2595
|
-
var o = i[r],
|
|
2596
|
-
n[
|
|
2599
|
+
var o = i[r], l = o[0], s = o[1];
|
|
2600
|
+
n[l] = s;
|
|
2597
2601
|
}
|
|
2598
2602
|
return n;
|
|
2599
2603
|
}
|
|
2600
2604
|
)
|
|
2601
|
-
), Kn =
|
|
2605
|
+
), Kn = Li ? (
|
|
2602
2606
|
// Native
|
|
2603
2607
|
function(t, n) {
|
|
2604
2608
|
return t.codePointAt(n);
|
|
@@ -2612,7 +2616,7 @@ var yn = Ci ? (
|
|
|
2612
2616
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2613
2617
|
}
|
|
2614
2618
|
}
|
|
2615
|
-
),
|
|
2619
|
+
), Ui = Mi ? (
|
|
2616
2620
|
// Native
|
|
2617
2621
|
function(t) {
|
|
2618
2622
|
return t.trimStart();
|
|
@@ -2620,9 +2624,9 @@ var yn = Ci ? (
|
|
|
2620
2624
|
) : (
|
|
2621
2625
|
// Ponyfill
|
|
2622
2626
|
function(t) {
|
|
2623
|
-
return t.replace(
|
|
2627
|
+
return t.replace(Ai, "");
|
|
2624
2628
|
}
|
|
2625
|
-
),
|
|
2629
|
+
), Fi = Ni ? (
|
|
2626
2630
|
// Native
|
|
2627
2631
|
function(t) {
|
|
2628
2632
|
return t.trimEnd();
|
|
@@ -2630,32 +2634,32 @@ var yn = Ci ? (
|
|
|
2630
2634
|
) : (
|
|
2631
2635
|
// Ponyfill
|
|
2632
2636
|
function(t) {
|
|
2633
|
-
return t.replace(
|
|
2637
|
+
return t.replace(Ci, "");
|
|
2634
2638
|
}
|
|
2635
2639
|
);
|
|
2636
2640
|
function er(e, t) {
|
|
2637
2641
|
return new RegExp(e, t);
|
|
2638
2642
|
}
|
|
2639
|
-
var
|
|
2640
|
-
if (
|
|
2643
|
+
var Jt;
|
|
2644
|
+
if (qt) {
|
|
2641
2645
|
var En = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2642
|
-
|
|
2646
|
+
Jt = function(t, n) {
|
|
2643
2647
|
var r;
|
|
2644
2648
|
En.lastIndex = n;
|
|
2645
2649
|
var i = En.exec(t);
|
|
2646
2650
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2647
2651
|
};
|
|
2648
2652
|
} else
|
|
2649
|
-
|
|
2653
|
+
Jt = function(t, n) {
|
|
2650
2654
|
for (var r = []; ; ) {
|
|
2651
2655
|
var i = Kn(t, n);
|
|
2652
2656
|
if (i === void 0 || tr(i) || ki(i))
|
|
2653
2657
|
break;
|
|
2654
2658
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2655
2659
|
}
|
|
2656
|
-
return
|
|
2660
|
+
return Qt.apply(void 0, r);
|
|
2657
2661
|
};
|
|
2658
|
-
var
|
|
2662
|
+
var Gi = (
|
|
2659
2663
|
/** @class */
|
|
2660
2664
|
function() {
|
|
2661
2665
|
function e(t, n) {
|
|
@@ -2669,33 +2673,33 @@ var Fi = (
|
|
|
2669
2673
|
for (var i = []; !this.isEOF(); ) {
|
|
2670
2674
|
var o = this.char();
|
|
2671
2675
|
if (o === 123) {
|
|
2672
|
-
var
|
|
2673
|
-
if (
|
|
2674
|
-
return
|
|
2675
|
-
i.push(
|
|
2676
|
+
var l = this.parseArgument(t, r);
|
|
2677
|
+
if (l.err)
|
|
2678
|
+
return l;
|
|
2679
|
+
i.push(l.val);
|
|
2676
2680
|
} else {
|
|
2677
2681
|
if (o === 125 && t > 0)
|
|
2678
2682
|
break;
|
|
2679
2683
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2680
|
-
var
|
|
2684
|
+
var s = this.clonePosition();
|
|
2681
2685
|
this.bump(), i.push({
|
|
2682
|
-
type:
|
|
2683
|
-
location: L(
|
|
2686
|
+
type: j.pound,
|
|
2687
|
+
location: L(s, this.clonePosition())
|
|
2684
2688
|
});
|
|
2685
2689
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2686
2690
|
if (r)
|
|
2687
2691
|
break;
|
|
2688
|
-
return this.error(
|
|
2689
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2690
|
-
var
|
|
2691
|
-
if (
|
|
2692
|
-
return
|
|
2693
|
-
i.push(
|
|
2692
|
+
return this.error(O.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
|
|
2693
|
+
} else if (o === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
|
|
2694
|
+
var l = this.parseTag(t, n);
|
|
2695
|
+
if (l.err)
|
|
2696
|
+
return l;
|
|
2697
|
+
i.push(l.val);
|
|
2694
2698
|
} else {
|
|
2695
|
-
var
|
|
2696
|
-
if (
|
|
2697
|
-
return
|
|
2698
|
-
i.push(
|
|
2699
|
+
var l = this.parseLiteral(t, n);
|
|
2700
|
+
if (l.err)
|
|
2701
|
+
return l;
|
|
2702
|
+
i.push(l.val);
|
|
2699
2703
|
}
|
|
2700
2704
|
}
|
|
2701
2705
|
}
|
|
@@ -2707,7 +2711,7 @@ var Fi = (
|
|
|
2707
2711
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2708
2712
|
return {
|
|
2709
2713
|
val: {
|
|
2710
|
-
type:
|
|
2714
|
+
type: j.literal,
|
|
2711
2715
|
value: "<".concat(i, "/>"),
|
|
2712
2716
|
location: L(r, this.clonePosition())
|
|
2713
2717
|
},
|
|
@@ -2717,27 +2721,27 @@ var Fi = (
|
|
|
2717
2721
|
var o = this.parseMessage(t + 1, n, !0);
|
|
2718
2722
|
if (o.err)
|
|
2719
2723
|
return o;
|
|
2720
|
-
var
|
|
2724
|
+
var l = o.val, s = this.clonePosition();
|
|
2721
2725
|
if (this.bumpIf("</")) {
|
|
2722
|
-
if (this.isEOF() || !
|
|
2723
|
-
return this.error(
|
|
2726
|
+
if (this.isEOF() || !Yt(this.char()))
|
|
2727
|
+
return this.error(O.INVALID_TAG, L(s, this.clonePosition()));
|
|
2724
2728
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2725
|
-
return i !== u ? this.error(
|
|
2729
|
+
return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, L(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2726
2730
|
val: {
|
|
2727
|
-
type:
|
|
2731
|
+
type: j.tag,
|
|
2728
2732
|
value: i,
|
|
2729
|
-
children:
|
|
2733
|
+
children: l,
|
|
2730
2734
|
location: L(r, this.clonePosition())
|
|
2731
2735
|
},
|
|
2732
2736
|
err: null
|
|
2733
|
-
} : this.error(
|
|
2737
|
+
} : this.error(O.INVALID_TAG, L(s, this.clonePosition())));
|
|
2734
2738
|
} else
|
|
2735
|
-
return this.error(
|
|
2739
|
+
return this.error(O.UNCLOSED_TAG, L(r, this.clonePosition()));
|
|
2736
2740
|
} else
|
|
2737
|
-
return this.error(
|
|
2741
|
+
return this.error(O.INVALID_TAG, L(r, this.clonePosition()));
|
|
2738
2742
|
}, e.prototype.parseTagName = function() {
|
|
2739
2743
|
var t = this.offset();
|
|
2740
|
-
for (this.bump(); !this.isEOF() &&
|
|
2744
|
+
for (this.bump(); !this.isEOF() && ji(this.char()); )
|
|
2741
2745
|
this.bump();
|
|
2742
2746
|
return this.message.slice(t, this.offset());
|
|
2743
2747
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2747,26 +2751,26 @@ var Fi = (
|
|
|
2747
2751
|
i += o;
|
|
2748
2752
|
continue;
|
|
2749
2753
|
}
|
|
2750
|
-
var
|
|
2751
|
-
if (
|
|
2752
|
-
i +=
|
|
2754
|
+
var l = this.tryParseUnquoted(t, n);
|
|
2755
|
+
if (l) {
|
|
2756
|
+
i += l;
|
|
2753
2757
|
continue;
|
|
2754
2758
|
}
|
|
2755
|
-
var
|
|
2756
|
-
if (
|
|
2757
|
-
i +=
|
|
2759
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2760
|
+
if (s) {
|
|
2761
|
+
i += s;
|
|
2758
2762
|
continue;
|
|
2759
2763
|
}
|
|
2760
2764
|
break;
|
|
2761
2765
|
}
|
|
2762
2766
|
var c = L(r, this.clonePosition());
|
|
2763
2767
|
return {
|
|
2764
|
-
val: { type:
|
|
2768
|
+
val: { type: j.literal, value: i, location: c },
|
|
2765
2769
|
err: null
|
|
2766
2770
|
};
|
|
2767
2771
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2768
2772
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2769
|
-
|
|
2773
|
+
!$i(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2770
2774
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2771
2775
|
if (this.isEOF() || this.char() !== 39)
|
|
2772
2776
|
return null;
|
|
@@ -2800,28 +2804,28 @@ var Fi = (
|
|
|
2800
2804
|
n.push(r);
|
|
2801
2805
|
this.bump();
|
|
2802
2806
|
}
|
|
2803
|
-
return
|
|
2807
|
+
return Qt.apply(void 0, n);
|
|
2804
2808
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2805
2809
|
if (this.isEOF())
|
|
2806
2810
|
return null;
|
|
2807
2811
|
var r = this.char();
|
|
2808
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2812
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Qt(r));
|
|
2809
2813
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2810
2814
|
var r = this.clonePosition();
|
|
2811
2815
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2812
|
-
return this.error(
|
|
2816
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2813
2817
|
if (this.char() === 125)
|
|
2814
|
-
return this.bump(), this.error(
|
|
2818
|
+
return this.bump(), this.error(O.EMPTY_ARGUMENT, L(r, this.clonePosition()));
|
|
2815
2819
|
var i = this.parseIdentifierIfPossible().value;
|
|
2816
2820
|
if (!i)
|
|
2817
|
-
return this.error(
|
|
2821
|
+
return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2818
2822
|
if (this.bumpSpace(), this.isEOF())
|
|
2819
|
-
return this.error(
|
|
2823
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2820
2824
|
switch (this.char()) {
|
|
2821
2825
|
case 125:
|
|
2822
2826
|
return this.bump(), {
|
|
2823
2827
|
val: {
|
|
2824
|
-
type:
|
|
2828
|
+
type: j.argument,
|
|
2825
2829
|
// value does not include the opening and closing braces.
|
|
2826
2830
|
value: i,
|
|
2827
2831
|
location: L(r, this.clonePosition())
|
|
@@ -2829,20 +2833,20 @@ var Fi = (
|
|
|
2829
2833
|
err: null
|
|
2830
2834
|
};
|
|
2831
2835
|
case 44:
|
|
2832
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2836
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2833
2837
|
default:
|
|
2834
|
-
return this.error(
|
|
2838
|
+
return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2835
2839
|
}
|
|
2836
2840
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2837
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2841
|
+
var t = this.clonePosition(), n = this.offset(), r = Jt(this.message, n), i = n + r.length;
|
|
2838
2842
|
this.bumpTo(i);
|
|
2839
|
-
var o = this.clonePosition(),
|
|
2840
|
-
return { value: r, location:
|
|
2843
|
+
var o = this.clonePosition(), l = L(t, o);
|
|
2844
|
+
return { value: r, location: l };
|
|
2841
2845
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2842
|
-
var o,
|
|
2843
|
-
switch (
|
|
2846
|
+
var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2847
|
+
switch (s) {
|
|
2844
2848
|
case "":
|
|
2845
|
-
return this.error(
|
|
2849
|
+
return this.error(O.EXPECT_ARGUMENT_TYPE, L(l, c));
|
|
2846
2850
|
case "number":
|
|
2847
2851
|
case "date":
|
|
2848
2852
|
case "time": {
|
|
@@ -2850,49 +2854,49 @@ var Fi = (
|
|
|
2850
2854
|
var u = null;
|
|
2851
2855
|
if (this.bumpIf(",")) {
|
|
2852
2856
|
this.bumpSpace();
|
|
2853
|
-
var
|
|
2857
|
+
var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
|
|
2854
2858
|
if (g.err)
|
|
2855
2859
|
return g;
|
|
2856
|
-
var b =
|
|
2860
|
+
var b = Fi(g.val);
|
|
2857
2861
|
if (b.length === 0)
|
|
2858
|
-
return this.error(
|
|
2859
|
-
var
|
|
2860
|
-
u = { style: b, styleLocation:
|
|
2862
|
+
return this.error(O.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2863
|
+
var _ = L(d, this.clonePosition());
|
|
2864
|
+
u = { style: b, styleLocation: _ };
|
|
2861
2865
|
}
|
|
2862
|
-
var
|
|
2863
|
-
if (
|
|
2864
|
-
return
|
|
2865
|
-
var
|
|
2866
|
+
var B = this.tryParseArgumentClose(i);
|
|
2867
|
+
if (B.err)
|
|
2868
|
+
return B;
|
|
2869
|
+
var T = L(i, this.clonePosition());
|
|
2866
2870
|
if (u && yn(u == null ? void 0 : u.style, "::", 0)) {
|
|
2867
|
-
var
|
|
2868
|
-
if (
|
|
2869
|
-
var g = this.parseNumberSkeletonFromString(
|
|
2871
|
+
var x = Ui(u.style.slice(2));
|
|
2872
|
+
if (s === "number") {
|
|
2873
|
+
var g = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
2870
2874
|
return g.err ? g : {
|
|
2871
|
-
val: { type:
|
|
2875
|
+
val: { type: j.number, value: r, location: T, style: g.val },
|
|
2872
2876
|
err: null
|
|
2873
2877
|
};
|
|
2874
2878
|
} else {
|
|
2875
|
-
if (
|
|
2876
|
-
return this.error(
|
|
2877
|
-
var
|
|
2878
|
-
this.locale && (
|
|
2879
|
+
if (x.length === 0)
|
|
2880
|
+
return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
|
|
2881
|
+
var S = x;
|
|
2882
|
+
this.locale && (S = wi(x, this.locale));
|
|
2879
2883
|
var b = {
|
|
2880
|
-
type:
|
|
2881
|
-
pattern:
|
|
2884
|
+
type: je.dateTime,
|
|
2885
|
+
pattern: S,
|
|
2882
2886
|
location: u.styleLocation,
|
|
2883
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2884
|
-
},
|
|
2887
|
+
parsedOptions: this.shouldParseSkeletons ? yi(S) : {}
|
|
2888
|
+
}, P = s === "date" ? j.date : j.time;
|
|
2885
2889
|
return {
|
|
2886
|
-
val: { type:
|
|
2890
|
+
val: { type: P, value: r, location: T, style: b },
|
|
2887
2891
|
err: null
|
|
2888
2892
|
};
|
|
2889
2893
|
}
|
|
2890
2894
|
}
|
|
2891
2895
|
return {
|
|
2892
2896
|
val: {
|
|
2893
|
-
type:
|
|
2897
|
+
type: s === "number" ? j.number : s === "date" ? j.date : j.time,
|
|
2894
2898
|
value: r,
|
|
2895
|
-
location:
|
|
2899
|
+
location: T,
|
|
2896
2900
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2897
2901
|
},
|
|
2898
2902
|
err: null
|
|
@@ -2901,52 +2905,52 @@ var Fi = (
|
|
|
2901
2905
|
case "plural":
|
|
2902
2906
|
case "selectordinal":
|
|
2903
2907
|
case "select": {
|
|
2904
|
-
var
|
|
2908
|
+
var C = this.clonePosition();
|
|
2905
2909
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2906
|
-
return this.error(
|
|
2910
|
+
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, L(C, yt({}, C)));
|
|
2907
2911
|
this.bumpSpace();
|
|
2908
|
-
var
|
|
2909
|
-
if (
|
|
2912
|
+
var D = this.parseIdentifierIfPossible(), W = 0;
|
|
2913
|
+
if (s !== "select" && D.value === "offset") {
|
|
2910
2914
|
if (!this.bumpIf(":"))
|
|
2911
|
-
return this.error(
|
|
2915
|
+
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
|
|
2912
2916
|
this.bumpSpace();
|
|
2913
|
-
var g = this.tryParseDecimalInteger(
|
|
2917
|
+
var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2914
2918
|
if (g.err)
|
|
2915
2919
|
return g;
|
|
2916
|
-
this.bumpSpace(),
|
|
2920
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), W = g.val;
|
|
2917
2921
|
}
|
|
2918
|
-
var
|
|
2919
|
-
if (
|
|
2920
|
-
return
|
|
2921
|
-
var
|
|
2922
|
-
if (
|
|
2923
|
-
return
|
|
2924
|
-
var
|
|
2925
|
-
return
|
|
2922
|
+
var J = this.tryParsePluralOrSelectOptions(t, s, n, D);
|
|
2923
|
+
if (J.err)
|
|
2924
|
+
return J;
|
|
2925
|
+
var B = this.tryParseArgumentClose(i);
|
|
2926
|
+
if (B.err)
|
|
2927
|
+
return B;
|
|
2928
|
+
var Y = L(i, this.clonePosition());
|
|
2929
|
+
return s === "select" ? {
|
|
2926
2930
|
val: {
|
|
2927
|
-
type:
|
|
2931
|
+
type: j.select,
|
|
2928
2932
|
value: r,
|
|
2929
|
-
options: vn(
|
|
2930
|
-
location:
|
|
2933
|
+
options: vn(J.val),
|
|
2934
|
+
location: Y
|
|
2931
2935
|
},
|
|
2932
2936
|
err: null
|
|
2933
2937
|
} : {
|
|
2934
2938
|
val: {
|
|
2935
|
-
type:
|
|
2939
|
+
type: j.plural,
|
|
2936
2940
|
value: r,
|
|
2937
|
-
options: vn(
|
|
2938
|
-
offset:
|
|
2939
|
-
pluralType:
|
|
2940
|
-
location:
|
|
2941
|
+
options: vn(J.val),
|
|
2942
|
+
offset: W,
|
|
2943
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2944
|
+
location: Y
|
|
2941
2945
|
},
|
|
2942
2946
|
err: null
|
|
2943
2947
|
};
|
|
2944
2948
|
}
|
|
2945
2949
|
default:
|
|
2946
|
-
return this.error(
|
|
2950
|
+
return this.error(O.INVALID_ARGUMENT_TYPE, L(l, c));
|
|
2947
2951
|
}
|
|
2948
2952
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2949
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2953
|
+
return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2950
2954
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2951
2955
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2952
2956
|
var r = this.char();
|
|
@@ -2955,7 +2959,7 @@ var Fi = (
|
|
|
2955
2959
|
this.bump();
|
|
2956
2960
|
var i = this.clonePosition();
|
|
2957
2961
|
if (!this.bumpUntil("'"))
|
|
2958
|
-
return this.error(
|
|
2962
|
+
return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
|
|
2959
2963
|
this.bump();
|
|
2960
2964
|
break;
|
|
2961
2965
|
}
|
|
@@ -2985,64 +2989,64 @@ var Fi = (
|
|
|
2985
2989
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2986
2990
|
var r = [];
|
|
2987
2991
|
try {
|
|
2988
|
-
r =
|
|
2992
|
+
r = Ei(t);
|
|
2989
2993
|
} catch (i) {
|
|
2990
|
-
return this.error(
|
|
2994
|
+
return this.error(O.INVALID_NUMBER_SKELETON, n);
|
|
2991
2995
|
}
|
|
2992
2996
|
return {
|
|
2993
2997
|
val: {
|
|
2994
|
-
type:
|
|
2998
|
+
type: je.number,
|
|
2995
2999
|
tokens: r,
|
|
2996
3000
|
location: n,
|
|
2997
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3001
|
+
parsedOptions: this.shouldParseSkeletons ? Ti(r) : {}
|
|
2998
3002
|
},
|
|
2999
3003
|
err: null
|
|
3000
3004
|
};
|
|
3001
3005
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3002
|
-
for (var o,
|
|
3006
|
+
for (var o, l = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
|
|
3003
3007
|
if (u.length === 0) {
|
|
3004
3008
|
var g = this.clonePosition();
|
|
3005
3009
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3006
|
-
var b = this.tryParseDecimalInteger(
|
|
3010
|
+
var b = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3007
3011
|
if (b.err)
|
|
3008
3012
|
return b;
|
|
3009
|
-
|
|
3013
|
+
d = L(g, this.clonePosition()), u = this.message.slice(g.offset, this.offset());
|
|
3010
3014
|
} else
|
|
3011
3015
|
break;
|
|
3012
3016
|
}
|
|
3013
3017
|
if (c.has(u))
|
|
3014
|
-
return this.error(n === "select" ?
|
|
3015
|
-
u === "other" && (
|
|
3016
|
-
var
|
|
3018
|
+
return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
|
|
3019
|
+
u === "other" && (l = !0), this.bumpSpace();
|
|
3020
|
+
var _ = this.clonePosition();
|
|
3017
3021
|
if (!this.bumpIf("{"))
|
|
3018
|
-
return this.error(n === "select" ?
|
|
3019
|
-
var
|
|
3022
|
+
return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
|
|
3023
|
+
var B = this.parseMessage(t + 1, n, r);
|
|
3024
|
+
if (B.err)
|
|
3025
|
+
return B;
|
|
3026
|
+
var T = this.tryParseArgumentClose(_);
|
|
3020
3027
|
if (T.err)
|
|
3021
3028
|
return T;
|
|
3022
|
-
|
|
3023
|
-
if (S.err)
|
|
3024
|
-
return S;
|
|
3025
|
-
a.push([
|
|
3029
|
+
s.push([
|
|
3026
3030
|
u,
|
|
3027
3031
|
{
|
|
3028
|
-
value:
|
|
3029
|
-
location: L(
|
|
3032
|
+
value: B.val,
|
|
3033
|
+
location: L(_, this.clonePosition())
|
|
3030
3034
|
}
|
|
3031
|
-
]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value,
|
|
3035
|
+
]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
|
|
3032
3036
|
}
|
|
3033
|
-
return
|
|
3037
|
+
return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(O.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3034
3038
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3035
3039
|
var r = 1, i = this.clonePosition();
|
|
3036
3040
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3037
|
-
for (var o = !1,
|
|
3038
|
-
var
|
|
3039
|
-
if (
|
|
3040
|
-
o = !0,
|
|
3041
|
+
for (var o = !1, l = 0; !this.isEOF(); ) {
|
|
3042
|
+
var s = this.char();
|
|
3043
|
+
if (s >= 48 && s <= 57)
|
|
3044
|
+
o = !0, l = l * 10 + (s - 48), this.bump();
|
|
3041
3045
|
else
|
|
3042
3046
|
break;
|
|
3043
3047
|
}
|
|
3044
3048
|
var c = L(i, this.clonePosition());
|
|
3045
|
-
return o ? (
|
|
3049
|
+
return o ? (l *= r, Pi(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3046
3050
|
}, e.prototype.offset = function() {
|
|
3047
3051
|
return this.position.offset;
|
|
3048
3052
|
}, e.prototype.isEOF = function() {
|
|
@@ -3108,13 +3112,13 @@ var Fi = (
|
|
|
3108
3112
|
}, e;
|
|
3109
3113
|
}()
|
|
3110
3114
|
);
|
|
3111
|
-
function
|
|
3115
|
+
function Yt(e) {
|
|
3112
3116
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3113
3117
|
}
|
|
3114
|
-
function Gi(e) {
|
|
3115
|
-
return Qt(e) || e === 47;
|
|
3116
|
-
}
|
|
3117
3118
|
function $i(e) {
|
|
3119
|
+
return Yt(e) || e === 47;
|
|
3120
|
+
}
|
|
3121
|
+
function ji(e) {
|
|
3118
3122
|
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;
|
|
3119
3123
|
}
|
|
3120
3124
|
function tr(e) {
|
|
@@ -3123,32 +3127,32 @@ function tr(e) {
|
|
|
3123
3127
|
function ki(e) {
|
|
3124
3128
|
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;
|
|
3125
3129
|
}
|
|
3126
|
-
function
|
|
3130
|
+
function Kt(e) {
|
|
3127
3131
|
e.forEach(function(t) {
|
|
3128
3132
|
if (delete t.location, Xn(t) || zn(t))
|
|
3129
3133
|
for (var n in t.options)
|
|
3130
|
-
delete t.options[n].location,
|
|
3134
|
+
delete t.options[n].location, Kt(t.options[n].value);
|
|
3131
3135
|
else
|
|
3132
|
-
|
|
3136
|
+
jn(t) && Zn(t.style) || (kn(t) || Vn(t)) && Zt(t.style) ? delete t.style.location : Wn(t) && Kt(t.children);
|
|
3133
3137
|
});
|
|
3134
3138
|
}
|
|
3135
|
-
function
|
|
3136
|
-
t === void 0 && (t = {}), t =
|
|
3137
|
-
var n = new
|
|
3139
|
+
function Vi(e, t) {
|
|
3140
|
+
t === void 0 && (t = {}), t = yt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3141
|
+
var n = new Gi(e, t).parse();
|
|
3138
3142
|
if (n.err) {
|
|
3139
|
-
var r = SyntaxError(
|
|
3143
|
+
var r = SyntaxError(O[n.err.kind]);
|
|
3140
3144
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3141
3145
|
}
|
|
3142
|
-
return t != null && t.captureLocation ||
|
|
3146
|
+
return t != null && t.captureLocation || Kt(n.val), n.val;
|
|
3143
3147
|
}
|
|
3144
|
-
var
|
|
3148
|
+
var ke;
|
|
3145
3149
|
(function(e) {
|
|
3146
3150
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3147
|
-
})(
|
|
3148
|
-
var
|
|
3151
|
+
})(ke || (ke = {}));
|
|
3152
|
+
var Bt = (
|
|
3149
3153
|
/** @class */
|
|
3150
3154
|
function(e) {
|
|
3151
|
-
|
|
3155
|
+
_t(t, e);
|
|
3152
3156
|
function t(n, r, i) {
|
|
3153
3157
|
var o = e.call(this, n) || this;
|
|
3154
3158
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3160,44 +3164,44 @@ var _t = (
|
|
|
3160
3164
|
), xn = (
|
|
3161
3165
|
/** @class */
|
|
3162
3166
|
function(e) {
|
|
3163
|
-
|
|
3167
|
+
_t(t, e);
|
|
3164
3168
|
function t(n, r, i, o) {
|
|
3165
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3169
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, o) || this;
|
|
3166
3170
|
}
|
|
3167
3171
|
return t;
|
|
3168
|
-
}(
|
|
3169
|
-
),
|
|
3172
|
+
}(Bt)
|
|
3173
|
+
), Xi = (
|
|
3170
3174
|
/** @class */
|
|
3171
3175
|
function(e) {
|
|
3172
|
-
|
|
3176
|
+
_t(t, e);
|
|
3173
3177
|
function t(n, r, i) {
|
|
3174
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3178
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ke.INVALID_VALUE, i) || this;
|
|
3175
3179
|
}
|
|
3176
3180
|
return t;
|
|
3177
|
-
}(
|
|
3178
|
-
),
|
|
3181
|
+
}(Bt)
|
|
3182
|
+
), zi = (
|
|
3179
3183
|
/** @class */
|
|
3180
3184
|
function(e) {
|
|
3181
|
-
|
|
3185
|
+
_t(t, e);
|
|
3182
3186
|
function t(n, r) {
|
|
3183
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3187
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ke.MISSING_VALUE, r) || this;
|
|
3184
3188
|
}
|
|
3185
3189
|
return t;
|
|
3186
|
-
}(
|
|
3190
|
+
}(Bt)
|
|
3187
3191
|
), ne;
|
|
3188
3192
|
(function(e) {
|
|
3189
3193
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3190
3194
|
})(ne || (ne = {}));
|
|
3191
|
-
function
|
|
3195
|
+
function Wi(e) {
|
|
3192
3196
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3193
3197
|
var r = t[t.length - 1];
|
|
3194
3198
|
return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
|
|
3195
3199
|
}, []);
|
|
3196
3200
|
}
|
|
3197
|
-
function
|
|
3201
|
+
function Zi(e) {
|
|
3198
3202
|
return typeof e == "function";
|
|
3199
3203
|
}
|
|
3200
|
-
function dt(e, t, n, r, i, o,
|
|
3204
|
+
function dt(e, t, n, r, i, o, l) {
|
|
3201
3205
|
if (e.length === 1 && pn(e[0]))
|
|
3202
3206
|
return [
|
|
3203
3207
|
{
|
|
@@ -3205,107 +3209,107 @@ function dt(e, t, n, r, i, o, s) {
|
|
|
3205
3209
|
value: e[0].value
|
|
3206
3210
|
}
|
|
3207
3211
|
];
|
|
3208
|
-
for (var
|
|
3209
|
-
var
|
|
3210
|
-
if (pn(
|
|
3211
|
-
|
|
3212
|
+
for (var s = [], c = 0, u = e; c < u.length; c++) {
|
|
3213
|
+
var d = u[c];
|
|
3214
|
+
if (pn(d)) {
|
|
3215
|
+
s.push({
|
|
3212
3216
|
type: ne.literal,
|
|
3213
|
-
value:
|
|
3217
|
+
value: d.value
|
|
3214
3218
|
});
|
|
3215
3219
|
continue;
|
|
3216
3220
|
}
|
|
3217
|
-
if (
|
|
3218
|
-
typeof o == "number" &&
|
|
3221
|
+
if (gi(d)) {
|
|
3222
|
+
typeof o == "number" && s.push({
|
|
3219
3223
|
type: ne.literal,
|
|
3220
3224
|
value: n.getNumberFormat(t).format(o)
|
|
3221
3225
|
});
|
|
3222
3226
|
continue;
|
|
3223
3227
|
}
|
|
3224
|
-
var g =
|
|
3228
|
+
var g = d.value;
|
|
3225
3229
|
if (!(i && g in i))
|
|
3226
|
-
throw new
|
|
3230
|
+
throw new zi(g, l);
|
|
3227
3231
|
var b = i[g];
|
|
3228
|
-
if (
|
|
3229
|
-
(!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""),
|
|
3232
|
+
if (mi(d)) {
|
|
3233
|
+
(!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
|
|
3230
3234
|
type: typeof b == "string" ? ne.literal : ne.object,
|
|
3231
3235
|
value: b
|
|
3232
3236
|
});
|
|
3233
3237
|
continue;
|
|
3234
3238
|
}
|
|
3235
|
-
if (
|
|
3236
|
-
var
|
|
3237
|
-
|
|
3239
|
+
if (kn(d)) {
|
|
3240
|
+
var _ = typeof d.style == "string" ? r.date[d.style] : Zt(d.style) ? d.style.parsedOptions : void 0;
|
|
3241
|
+
s.push({
|
|
3238
3242
|
type: ne.literal,
|
|
3239
|
-
value: n.getDateTimeFormat(t,
|
|
3243
|
+
value: n.getDateTimeFormat(t, _).format(b)
|
|
3240
3244
|
});
|
|
3241
3245
|
continue;
|
|
3242
3246
|
}
|
|
3243
|
-
if (Vn(
|
|
3244
|
-
var
|
|
3245
|
-
|
|
3247
|
+
if (Vn(d)) {
|
|
3248
|
+
var _ = typeof d.style == "string" ? r.time[d.style] : Zt(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3249
|
+
s.push({
|
|
3246
3250
|
type: ne.literal,
|
|
3247
|
-
value: n.getDateTimeFormat(t,
|
|
3251
|
+
value: n.getDateTimeFormat(t, _).format(b)
|
|
3248
3252
|
});
|
|
3249
3253
|
continue;
|
|
3250
3254
|
}
|
|
3251
|
-
if (
|
|
3252
|
-
var
|
|
3253
|
-
|
|
3255
|
+
if (jn(d)) {
|
|
3256
|
+
var _ = typeof d.style == "string" ? r.number[d.style] : Zn(d.style) ? d.style.parsedOptions : void 0;
|
|
3257
|
+
_ && _.scale && (b = b * (_.scale || 1)), s.push({
|
|
3254
3258
|
type: ne.literal,
|
|
3255
|
-
value: n.getNumberFormat(t,
|
|
3259
|
+
value: n.getNumberFormat(t, _).format(b)
|
|
3256
3260
|
});
|
|
3257
3261
|
continue;
|
|
3258
3262
|
}
|
|
3259
|
-
if (Wn(
|
|
3260
|
-
var
|
|
3261
|
-
if (!
|
|
3262
|
-
throw new
|
|
3263
|
-
var
|
|
3264
|
-
return
|
|
3263
|
+
if (Wn(d)) {
|
|
3264
|
+
var B = d.children, T = d.value, x = i[T];
|
|
3265
|
+
if (!Zi(x))
|
|
3266
|
+
throw new Xi(T, "function", l);
|
|
3267
|
+
var S = dt(B, t, n, r, i, o), P = x(S.map(function(W) {
|
|
3268
|
+
return W.value;
|
|
3265
3269
|
}));
|
|
3266
|
-
Array.isArray(
|
|
3270
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(W) {
|
|
3267
3271
|
return {
|
|
3268
|
-
type: typeof
|
|
3269
|
-
value:
|
|
3272
|
+
type: typeof W == "string" ? ne.literal : ne.object,
|
|
3273
|
+
value: W
|
|
3270
3274
|
};
|
|
3271
3275
|
}));
|
|
3272
3276
|
}
|
|
3273
|
-
if (Xn(
|
|
3274
|
-
var
|
|
3275
|
-
if (!
|
|
3276
|
-
throw new xn(
|
|
3277
|
-
|
|
3277
|
+
if (Xn(d)) {
|
|
3278
|
+
var C = d.options[b] || d.options.other;
|
|
3279
|
+
if (!C)
|
|
3280
|
+
throw new xn(d.value, b, Object.keys(d.options), l);
|
|
3281
|
+
s.push.apply(s, dt(C.value, t, n, r, i));
|
|
3278
3282
|
continue;
|
|
3279
3283
|
}
|
|
3280
|
-
if (zn(
|
|
3281
|
-
var
|
|
3282
|
-
if (!
|
|
3284
|
+
if (zn(d)) {
|
|
3285
|
+
var C = d.options["=".concat(b)];
|
|
3286
|
+
if (!C) {
|
|
3283
3287
|
if (!Intl.PluralRules)
|
|
3284
|
-
throw new
|
|
3288
|
+
throw new Bt(`Intl.PluralRules is not available in this environment.
|
|
3285
3289
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3286
|
-
`,
|
|
3287
|
-
var
|
|
3288
|
-
|
|
3290
|
+
`, ke.MISSING_INTL_API, l);
|
|
3291
|
+
var D = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
|
|
3292
|
+
C = d.options[D] || d.options.other;
|
|
3289
3293
|
}
|
|
3290
|
-
if (!
|
|
3291
|
-
throw new xn(
|
|
3292
|
-
|
|
3294
|
+
if (!C)
|
|
3295
|
+
throw new xn(d.value, b, Object.keys(d.options), l);
|
|
3296
|
+
s.push.apply(s, dt(C.value, t, n, r, i, b - (d.offset || 0)));
|
|
3293
3297
|
continue;
|
|
3294
3298
|
}
|
|
3295
3299
|
}
|
|
3296
|
-
return
|
|
3300
|
+
return Wi(s);
|
|
3297
3301
|
}
|
|
3298
|
-
function
|
|
3299
|
-
return t ?
|
|
3300
|
-
return n[r] =
|
|
3302
|
+
function qi(e, t) {
|
|
3303
|
+
return t ? ge(ge(ge({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3304
|
+
return n[r] = ge(ge({}, e[r]), t[r] || {}), n;
|
|
3301
3305
|
}, {})) : e;
|
|
3302
3306
|
}
|
|
3303
|
-
function
|
|
3307
|
+
function Qi(e, t) {
|
|
3304
3308
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3305
|
-
return n[r] =
|
|
3306
|
-
},
|
|
3309
|
+
return n[r] = qi(e[r], t[r]), n;
|
|
3310
|
+
}, ge({}, e)) : e;
|
|
3307
3311
|
}
|
|
3308
|
-
function
|
|
3312
|
+
function jt(e) {
|
|
3309
3313
|
return {
|
|
3310
3314
|
create: function() {
|
|
3311
3315
|
return {
|
|
@@ -3319,39 +3323,39 @@ function Gt(e) {
|
|
|
3319
3323
|
}
|
|
3320
3324
|
};
|
|
3321
3325
|
}
|
|
3322
|
-
function
|
|
3326
|
+
function Ji(e) {
|
|
3323
3327
|
return e === void 0 && (e = {
|
|
3324
3328
|
number: {},
|
|
3325
3329
|
dateTime: {},
|
|
3326
3330
|
pluralRules: {}
|
|
3327
3331
|
}), {
|
|
3328
|
-
getNumberFormat:
|
|
3332
|
+
getNumberFormat: Ft(function() {
|
|
3329
3333
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3330
3334
|
n[r] = arguments[r];
|
|
3331
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3335
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ut([void 0], n, !1)))();
|
|
3332
3336
|
}, {
|
|
3333
|
-
cache:
|
|
3334
|
-
strategy:
|
|
3337
|
+
cache: jt(e.number),
|
|
3338
|
+
strategy: Gt.variadic
|
|
3335
3339
|
}),
|
|
3336
|
-
getDateTimeFormat:
|
|
3340
|
+
getDateTimeFormat: Ft(function() {
|
|
3337
3341
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3338
3342
|
n[r] = arguments[r];
|
|
3339
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3343
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ut([void 0], n, !1)))();
|
|
3340
3344
|
}, {
|
|
3341
|
-
cache:
|
|
3342
|
-
strategy:
|
|
3345
|
+
cache: jt(e.dateTime),
|
|
3346
|
+
strategy: Gt.variadic
|
|
3343
3347
|
}),
|
|
3344
|
-
getPluralRules:
|
|
3348
|
+
getPluralRules: Ft(function() {
|
|
3345
3349
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3346
3350
|
n[r] = arguments[r];
|
|
3347
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3351
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ut([void 0], n, !1)))();
|
|
3348
3352
|
}, {
|
|
3349
|
-
cache:
|
|
3350
|
-
strategy:
|
|
3353
|
+
cache: jt(e.pluralRules),
|
|
3354
|
+
strategy: Gt.variadic
|
|
3351
3355
|
})
|
|
3352
3356
|
};
|
|
3353
3357
|
}
|
|
3354
|
-
var
|
|
3358
|
+
var Yi = (
|
|
3355
3359
|
/** @class */
|
|
3356
3360
|
function() {
|
|
3357
3361
|
function e(t, n, r, i) {
|
|
@@ -3365,10 +3369,10 @@ var Ji = (
|
|
|
3365
3369
|
var u = o.formatToParts(c);
|
|
3366
3370
|
if (u.length === 1)
|
|
3367
3371
|
return u[0].value;
|
|
3368
|
-
var
|
|
3372
|
+
var d = u.reduce(function(g, b) {
|
|
3369
3373
|
return !g.length || b.type !== ne.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
|
|
3370
3374
|
}, []);
|
|
3371
|
-
return
|
|
3375
|
+
return d.length <= 1 ? d[0] || "" : d;
|
|
3372
3376
|
}, this.formatToParts = function(c) {
|
|
3373
3377
|
return dt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3374
3378
|
}, this.resolvedOptions = function() {
|
|
@@ -3381,15 +3385,15 @@ var Ji = (
|
|
|
3381
3385
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3382
3386
|
if (this.message = t, !e.__parse)
|
|
3383
3387
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3384
|
-
var
|
|
3385
|
-
|
|
3386
|
-
var
|
|
3387
|
-
this.ast = e.__parse(t,
|
|
3388
|
+
var l = i || {};
|
|
3389
|
+
l.formatters;
|
|
3390
|
+
var s = si(l, ["formatters"]);
|
|
3391
|
+
this.ast = e.__parse(t, ge(ge({}, s), { locale: this.resolvedLocale }));
|
|
3388
3392
|
} else
|
|
3389
3393
|
this.ast = t;
|
|
3390
3394
|
if (!Array.isArray(this.ast))
|
|
3391
3395
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3392
|
-
this.formats =
|
|
3396
|
+
this.formats = Qi(e.formats, r), this.formatters = i && i.formatters || Ji(this.formatterCache);
|
|
3393
3397
|
}
|
|
3394
3398
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3395
3399
|
get: function() {
|
|
@@ -3402,7 +3406,7 @@ var Ji = (
|
|
|
3402
3406
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3403
3407
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3404
3408
|
}
|
|
3405
|
-
}, e.__parse =
|
|
3409
|
+
}, e.__parse = Vi, e.formats = {
|
|
3406
3410
|
number: {
|
|
3407
3411
|
integer: {
|
|
3408
3412
|
maximumFractionDigits: 0
|
|
@@ -3463,7 +3467,7 @@ var Ji = (
|
|
|
3463
3467
|
}, e;
|
|
3464
3468
|
}()
|
|
3465
3469
|
);
|
|
3466
|
-
function
|
|
3470
|
+
function Ki(e, t) {
|
|
3467
3471
|
if (t == null)
|
|
3468
3472
|
return;
|
|
3469
3473
|
if (t in e)
|
|
@@ -3484,36 +3488,36 @@ function Yi(e, t) {
|
|
|
3484
3488
|
r = void 0;
|
|
3485
3489
|
return r;
|
|
3486
3490
|
}
|
|
3487
|
-
const Ae = {},
|
|
3491
|
+
const Ae = {}, eo = (e, t, n) => n && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = n), n), nr = (e, t) => {
|
|
3488
3492
|
if (t == null)
|
|
3489
3493
|
return;
|
|
3490
3494
|
if (t in Ae && e in Ae[t])
|
|
3491
3495
|
return Ae[t][e];
|
|
3492
|
-
const n =
|
|
3496
|
+
const n = Tt(t);
|
|
3493
3497
|
for (let r = 0; r < n.length; r++) {
|
|
3494
|
-
const i = n[r], o =
|
|
3498
|
+
const i = n[r], o = no(i, e);
|
|
3495
3499
|
if (o)
|
|
3496
|
-
return
|
|
3500
|
+
return eo(e, t, o);
|
|
3497
3501
|
}
|
|
3498
3502
|
};
|
|
3499
3503
|
let on;
|
|
3500
|
-
const
|
|
3501
|
-
function
|
|
3504
|
+
const ot = xt({});
|
|
3505
|
+
function to(e) {
|
|
3502
3506
|
return on[e] || null;
|
|
3503
3507
|
}
|
|
3504
3508
|
function rr(e) {
|
|
3505
3509
|
return e in on;
|
|
3506
3510
|
}
|
|
3507
|
-
function
|
|
3511
|
+
function no(e, t) {
|
|
3508
3512
|
if (!rr(e))
|
|
3509
3513
|
return null;
|
|
3510
|
-
const n =
|
|
3511
|
-
return
|
|
3514
|
+
const n = to(e);
|
|
3515
|
+
return Ki(n, t);
|
|
3512
3516
|
}
|
|
3513
|
-
function
|
|
3517
|
+
function ro(e) {
|
|
3514
3518
|
if (e == null)
|
|
3515
3519
|
return;
|
|
3516
|
-
const t =
|
|
3520
|
+
const t = Tt(e);
|
|
3517
3521
|
for (let n = 0; n < t.length; n++) {
|
|
3518
3522
|
const r = t[n];
|
|
3519
3523
|
if (rr(r))
|
|
@@ -3521,55 +3525,55 @@ function no(e) {
|
|
|
3521
3525
|
}
|
|
3522
3526
|
}
|
|
3523
3527
|
function ir(e, ...t) {
|
|
3524
|
-
delete Ae[e],
|
|
3528
|
+
delete Ae[e], ot.update((n) => (n[e] = ai.all([n[e] || {}, ...t]), n));
|
|
3525
3529
|
}
|
|
3526
|
-
|
|
3527
|
-
[
|
|
3530
|
+
ze(
|
|
3531
|
+
[ot],
|
|
3528
3532
|
([e]) => Object.keys(e)
|
|
3529
3533
|
);
|
|
3530
|
-
|
|
3534
|
+
ot.subscribe((e) => on = e);
|
|
3531
3535
|
const pt = {};
|
|
3532
|
-
function
|
|
3536
|
+
function io(e, t) {
|
|
3533
3537
|
pt[e].delete(t), pt[e].size === 0 && delete pt[e];
|
|
3534
3538
|
}
|
|
3535
3539
|
function or(e) {
|
|
3536
3540
|
return pt[e];
|
|
3537
3541
|
}
|
|
3538
|
-
function
|
|
3539
|
-
return
|
|
3542
|
+
function oo(e) {
|
|
3543
|
+
return Tt(e).map((t) => {
|
|
3540
3544
|
const n = or(t);
|
|
3541
3545
|
return [t, n ? [...n] : []];
|
|
3542
3546
|
}).filter(([, t]) => t.length > 0);
|
|
3543
3547
|
}
|
|
3544
|
-
function
|
|
3545
|
-
return e == null ? !1 :
|
|
3548
|
+
function en(e) {
|
|
3549
|
+
return e == null ? !1 : Tt(e).some(
|
|
3546
3550
|
(t) => {
|
|
3547
3551
|
var n;
|
|
3548
3552
|
return (n = or(t)) == null ? void 0 : n.size;
|
|
3549
3553
|
}
|
|
3550
3554
|
);
|
|
3551
3555
|
}
|
|
3552
|
-
function
|
|
3556
|
+
function ao(e, t) {
|
|
3553
3557
|
return Promise.all(
|
|
3554
|
-
t.map((r) => (
|
|
3558
|
+
t.map((r) => (io(e, r), r().then((i) => i.default || i)))
|
|
3555
3559
|
).then((r) => ir(e, ...r));
|
|
3556
3560
|
}
|
|
3557
|
-
const
|
|
3561
|
+
const et = {};
|
|
3558
3562
|
function ar(e) {
|
|
3559
|
-
if (!
|
|
3560
|
-
return e in
|
|
3561
|
-
const t =
|
|
3562
|
-
return
|
|
3563
|
+
if (!en(e))
|
|
3564
|
+
return e in et ? et[e] : Promise.resolve();
|
|
3565
|
+
const t = oo(e);
|
|
3566
|
+
return et[e] = Promise.all(
|
|
3563
3567
|
t.map(
|
|
3564
|
-
([n, r]) =>
|
|
3568
|
+
([n, r]) => ao(n, r)
|
|
3565
3569
|
)
|
|
3566
3570
|
).then(() => {
|
|
3567
|
-
if (
|
|
3571
|
+
if (en(e))
|
|
3568
3572
|
return ar(e);
|
|
3569
|
-
delete
|
|
3570
|
-
}),
|
|
3573
|
+
delete et[e];
|
|
3574
|
+
}), et[e];
|
|
3571
3575
|
}
|
|
3572
|
-
const
|
|
3576
|
+
const so = {
|
|
3573
3577
|
number: {
|
|
3574
3578
|
scientific: { notation: "scientific" },
|
|
3575
3579
|
engineering: { notation: "engineering" },
|
|
@@ -3598,159 +3602,159 @@ const ao = {
|
|
|
3598
3602
|
timeZoneName: "short"
|
|
3599
3603
|
}
|
|
3600
3604
|
}
|
|
3601
|
-
},
|
|
3605
|
+
}, lo = {
|
|
3602
3606
|
fallbackLocale: null,
|
|
3603
3607
|
loadingDelay: 200,
|
|
3604
|
-
formats:
|
|
3608
|
+
formats: so,
|
|
3605
3609
|
warnOnMissingMessages: !0,
|
|
3606
3610
|
handleMissingMessage: void 0,
|
|
3607
3611
|
ignoreTag: !0
|
|
3608
|
-
},
|
|
3609
|
-
function
|
|
3610
|
-
return
|
|
3612
|
+
}, uo = lo;
|
|
3613
|
+
function Ve() {
|
|
3614
|
+
return uo;
|
|
3611
3615
|
}
|
|
3612
|
-
const
|
|
3613
|
-
var
|
|
3616
|
+
const kt = xt(!1);
|
|
3617
|
+
var co = Object.defineProperty, ho = Object.defineProperties, fo = Object.getOwnPropertyDescriptors, _n = Object.getOwnPropertySymbols, po = Object.prototype.hasOwnProperty, mo = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, go = (e, t) => {
|
|
3614
3618
|
for (var n in t || (t = {}))
|
|
3615
|
-
|
|
3619
|
+
po.call(t, n) && Bn(e, n, t[n]);
|
|
3616
3620
|
if (_n)
|
|
3617
3621
|
for (var n of _n(t))
|
|
3618
|
-
|
|
3622
|
+
mo.call(t, n) && Bn(e, n, t[n]);
|
|
3619
3623
|
return e;
|
|
3620
|
-
},
|
|
3621
|
-
let
|
|
3622
|
-
const
|
|
3624
|
+
}, bo = (e, t) => ho(e, fo(t));
|
|
3625
|
+
let tn;
|
|
3626
|
+
const vt = xt(null);
|
|
3623
3627
|
function Tn(e) {
|
|
3624
3628
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3625
3629
|
}
|
|
3626
|
-
function
|
|
3630
|
+
function Tt(e, t = Ve().fallbackLocale) {
|
|
3627
3631
|
const n = Tn(e);
|
|
3628
3632
|
return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
|
|
3629
3633
|
}
|
|
3630
|
-
function
|
|
3631
|
-
return
|
|
3634
|
+
function Re() {
|
|
3635
|
+
return tn != null ? tn : void 0;
|
|
3632
3636
|
}
|
|
3633
|
-
|
|
3634
|
-
|
|
3637
|
+
vt.subscribe((e) => {
|
|
3638
|
+
tn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3635
3639
|
});
|
|
3636
|
-
const
|
|
3637
|
-
if (e &&
|
|
3638
|
-
const { loadingDelay: t } =
|
|
3640
|
+
const yo = (e) => {
|
|
3641
|
+
if (e && ro(e) && en(e)) {
|
|
3642
|
+
const { loadingDelay: t } = Ve();
|
|
3639
3643
|
let n;
|
|
3640
|
-
return typeof window != "undefined" &&
|
|
3641
|
-
() =>
|
|
3644
|
+
return typeof window != "undefined" && Re() != null && t ? n = window.setTimeout(
|
|
3645
|
+
() => kt.set(!0),
|
|
3642
3646
|
t
|
|
3643
|
-
) :
|
|
3644
|
-
|
|
3647
|
+
) : kt.set(!0), ar(e).then(() => {
|
|
3648
|
+
vt.set(e);
|
|
3645
3649
|
}).finally(() => {
|
|
3646
|
-
clearTimeout(n),
|
|
3650
|
+
clearTimeout(n), kt.set(!1);
|
|
3647
3651
|
});
|
|
3648
3652
|
}
|
|
3649
|
-
return
|
|
3650
|
-
},
|
|
3651
|
-
set:
|
|
3652
|
-
}),
|
|
3653
|
+
return vt.set(e);
|
|
3654
|
+
}, We = bo(go({}, vt), {
|
|
3655
|
+
set: yo
|
|
3656
|
+
}), wt = (e) => {
|
|
3653
3657
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3654
3658
|
return (r) => {
|
|
3655
3659
|
const i = JSON.stringify(r);
|
|
3656
3660
|
return i in t ? t[i] : t[i] = e(r);
|
|
3657
3661
|
};
|
|
3658
3662
|
};
|
|
3659
|
-
var
|
|
3663
|
+
var vo = Object.defineProperty, Et = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, wn = (e, t, n) => t in e ? vo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, an = (e, t) => {
|
|
3660
3664
|
for (var n in t || (t = {}))
|
|
3661
3665
|
sr.call(t, n) && wn(e, n, t[n]);
|
|
3662
|
-
if (
|
|
3663
|
-
for (var n of
|
|
3666
|
+
if (Et)
|
|
3667
|
+
for (var n of Et(t))
|
|
3664
3668
|
lr.call(t, n) && wn(e, n, t[n]);
|
|
3665
3669
|
return e;
|
|
3666
|
-
},
|
|
3670
|
+
}, Ze = (e, t) => {
|
|
3667
3671
|
var n = {};
|
|
3668
3672
|
for (var r in e)
|
|
3669
3673
|
sr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3670
|
-
if (e != null &&
|
|
3671
|
-
for (var r of
|
|
3674
|
+
if (e != null && Et)
|
|
3675
|
+
for (var r of Et(e))
|
|
3672
3676
|
t.indexOf(r) < 0 && lr.call(e, r) && (n[r] = e[r]);
|
|
3673
3677
|
return n;
|
|
3674
3678
|
};
|
|
3675
|
-
const
|
|
3676
|
-
const { formats: n } =
|
|
3679
|
+
const it = (e, t) => {
|
|
3680
|
+
const { formats: n } = Ve();
|
|
3677
3681
|
if (e in n && t in n[e])
|
|
3678
3682
|
return n[e][t];
|
|
3679
3683
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3680
|
-
},
|
|
3684
|
+
}, Eo = wt(
|
|
3681
3685
|
(e) => {
|
|
3682
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3686
|
+
var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
|
|
3683
3687
|
if (n == null)
|
|
3684
3688
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3685
|
-
return r && (i =
|
|
3689
|
+
return r && (i = it("number", r)), new Intl.NumberFormat(n, i);
|
|
3686
3690
|
}
|
|
3687
|
-
),
|
|
3691
|
+
), xo = wt(
|
|
3688
3692
|
(e) => {
|
|
3689
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3693
|
+
var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
|
|
3690
3694
|
if (n == null)
|
|
3691
3695
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3692
|
-
return r ? i =
|
|
3696
|
+
return r ? i = it("date", r) : Object.keys(i).length === 0 && (i = it("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3693
3697
|
}
|
|
3694
|
-
),
|
|
3698
|
+
), _o = wt(
|
|
3695
3699
|
(e) => {
|
|
3696
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3700
|
+
var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
|
|
3697
3701
|
if (n == null)
|
|
3698
3702
|
throw new Error(
|
|
3699
3703
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3700
3704
|
);
|
|
3701
|
-
return r ? i =
|
|
3705
|
+
return r ? i = it("time", r) : Object.keys(i).length === 0 && (i = it("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3702
3706
|
}
|
|
3703
|
-
),
|
|
3704
|
-
var t = e, {
|
|
3705
|
-
locale: n = Oe()
|
|
3706
|
-
} = t, r = Xe(t, [
|
|
3707
|
-
"locale"
|
|
3708
|
-
]);
|
|
3709
|
-
return vo(an({ locale: n }, r));
|
|
3710
|
-
}, Bo = (e = {}) => {
|
|
3707
|
+
), Bo = (e = {}) => {
|
|
3711
3708
|
var t = e, {
|
|
3712
|
-
locale: n =
|
|
3713
|
-
} = t, r =
|
|
3709
|
+
locale: n = Re()
|
|
3710
|
+
} = t, r = Ze(t, [
|
|
3714
3711
|
"locale"
|
|
3715
3712
|
]);
|
|
3716
3713
|
return Eo(an({ locale: n }, r));
|
|
3717
3714
|
}, To = (e = {}) => {
|
|
3718
3715
|
var t = e, {
|
|
3719
|
-
locale: n =
|
|
3720
|
-
} = t, r =
|
|
3716
|
+
locale: n = Re()
|
|
3717
|
+
} = t, r = Ze(t, [
|
|
3721
3718
|
"locale"
|
|
3722
3719
|
]);
|
|
3723
3720
|
return xo(an({ locale: n }, r));
|
|
3724
|
-
}, wo =
|
|
3721
|
+
}, wo = (e = {}) => {
|
|
3722
|
+
var t = e, {
|
|
3723
|
+
locale: n = Re()
|
|
3724
|
+
} = t, r = Ze(t, [
|
|
3725
|
+
"locale"
|
|
3726
|
+
]);
|
|
3727
|
+
return _o(an({ locale: n }, r));
|
|
3728
|
+
}, So = wt(
|
|
3725
3729
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3726
|
-
(e, t =
|
|
3727
|
-
ignoreTag:
|
|
3730
|
+
(e, t = Re()) => new Yi(e, t, Ve().formats, {
|
|
3731
|
+
ignoreTag: Ve().ignoreTag
|
|
3728
3732
|
})
|
|
3729
|
-
),
|
|
3733
|
+
), Ao = (e, t = {}) => {
|
|
3730
3734
|
var n, r, i, o;
|
|
3731
|
-
let
|
|
3732
|
-
typeof e == "object" && (
|
|
3735
|
+
let l = t;
|
|
3736
|
+
typeof e == "object" && (l = e, e = l.id);
|
|
3733
3737
|
const {
|
|
3734
|
-
values:
|
|
3735
|
-
locale: c =
|
|
3738
|
+
values: s,
|
|
3739
|
+
locale: c = Re(),
|
|
3736
3740
|
default: u
|
|
3737
|
-
} =
|
|
3741
|
+
} = l;
|
|
3738
3742
|
if (c == null)
|
|
3739
3743
|
throw new Error(
|
|
3740
3744
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3741
3745
|
);
|
|
3742
|
-
let
|
|
3743
|
-
if (!
|
|
3744
|
-
|
|
3745
|
-
else if (typeof
|
|
3746
|
+
let d = nr(e, c);
|
|
3747
|
+
if (!d)
|
|
3748
|
+
d = (o = (i = (r = (n = Ve()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3749
|
+
else if (typeof d != "string")
|
|
3746
3750
|
return console.warn(
|
|
3747
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3748
|
-
),
|
|
3749
|
-
if (!
|
|
3750
|
-
return
|
|
3751
|
-
let g =
|
|
3751
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3752
|
+
), d;
|
|
3753
|
+
if (!s)
|
|
3754
|
+
return d;
|
|
3755
|
+
let g = d;
|
|
3752
3756
|
try {
|
|
3753
|
-
g =
|
|
3757
|
+
g = So(d, c).format(s);
|
|
3754
3758
|
} catch (b) {
|
|
3755
3759
|
b instanceof Error && console.warn(
|
|
3756
3760
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3758,16 +3762,16 @@ const nt = (e, t) => {
|
|
|
3758
3762
|
);
|
|
3759
3763
|
}
|
|
3760
3764
|
return g;
|
|
3761
|
-
},
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3765
|
+
}, Co = (e, t) => wo(t).format(e), Ho = (e, t) => To(t).format(e), Oo = (e, t) => Bo(t).format(e), Ro = (e, t = Re()) => nr(e, t), Lo = ze([We, ot], () => Ao);
|
|
3766
|
+
ze([We], () => Co);
|
|
3767
|
+
ze([We], () => Ho);
|
|
3768
|
+
ze([We], () => Oo);
|
|
3769
|
+
ze([We, ot], () => Ro);
|
|
3766
3770
|
function Sn(e, t) {
|
|
3767
3771
|
ir(e, t);
|
|
3768
3772
|
}
|
|
3769
|
-
function
|
|
3770
|
-
|
|
3773
|
+
function Mo(e) {
|
|
3774
|
+
We.set(e);
|
|
3771
3775
|
}
|
|
3772
3776
|
const An = {
|
|
3773
3777
|
en: {
|
|
@@ -3969,7 +3973,7 @@ const An = {
|
|
|
3969
3973
|
Loading: "Loading ..."
|
|
3970
3974
|
}
|
|
3971
3975
|
};
|
|
3972
|
-
var
|
|
3976
|
+
var nn = { exports: {} };
|
|
3973
3977
|
/** @license
|
|
3974
3978
|
* eventsource.js
|
|
3975
3979
|
* Available under MIT License (MIT)
|
|
@@ -3977,35 +3981,35 @@ var en = { exports: {} };
|
|
|
3977
3981
|
*/
|
|
3978
3982
|
(function(e, t) {
|
|
3979
3983
|
(function(n) {
|
|
3980
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest,
|
|
3981
|
-
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(
|
|
3984
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, u = n.document, d = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
|
|
3985
|
+
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3982
3986
|
u.readyState = "complete";
|
|
3983
|
-
}, !1)), o == null &&
|
|
3984
|
-
return new
|
|
3985
|
-
}), Object.create == null && (Object.create = function(
|
|
3986
|
-
function
|
|
3987
|
+
}, !1)), o == null && s != null && (o = function() {
|
|
3988
|
+
return new s("Microsoft.XMLHTTP");
|
|
3989
|
+
}), Object.create == null && (Object.create = function(a) {
|
|
3990
|
+
function f() {
|
|
3987
3991
|
}
|
|
3988
|
-
return
|
|
3992
|
+
return f.prototype = a, new f();
|
|
3989
3993
|
}), Date.now || (Date.now = function() {
|
|
3990
3994
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3991
|
-
}),
|
|
3992
|
-
var
|
|
3993
|
-
g = function(
|
|
3994
|
-
var p =
|
|
3995
|
-
return
|
|
3996
|
-
var
|
|
3997
|
-
return p._reader =
|
|
3998
|
-
status:
|
|
3999
|
-
statusText:
|
|
4000
|
-
headers:
|
|
3995
|
+
}), T == null) {
|
|
3996
|
+
var x = g;
|
|
3997
|
+
g = function(a, f) {
|
|
3998
|
+
var p = f.signal;
|
|
3999
|
+
return x(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(h) {
|
|
4000
|
+
var E = h.body.getReader();
|
|
4001
|
+
return p._reader = E, p._aborted && p._reader.cancel(), {
|
|
4002
|
+
status: h.status,
|
|
4003
|
+
statusText: h.statusText,
|
|
4004
|
+
headers: h.headers,
|
|
4001
4005
|
body: {
|
|
4002
4006
|
getReader: function() {
|
|
4003
|
-
return
|
|
4007
|
+
return E;
|
|
4004
4008
|
}
|
|
4005
4009
|
}
|
|
4006
4010
|
};
|
|
4007
4011
|
});
|
|
4008
|
-
},
|
|
4012
|
+
}, T = function() {
|
|
4009
4013
|
this.signal = {
|
|
4010
4014
|
_reader: null,
|
|
4011
4015
|
_aborted: !1
|
|
@@ -4014,407 +4018,407 @@ var en = { exports: {} };
|
|
|
4014
4018
|
};
|
|
4015
4019
|
};
|
|
4016
4020
|
}
|
|
4017
|
-
function
|
|
4021
|
+
function S() {
|
|
4018
4022
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4019
4023
|
}
|
|
4020
|
-
|
|
4021
|
-
function
|
|
4022
|
-
if (
|
|
4023
|
-
return
|
|
4024
|
-
if (
|
|
4025
|
-
return
|
|
4026
|
-
if (
|
|
4027
|
-
return
|
|
4024
|
+
S.prototype.decode = function(a) {
|
|
4025
|
+
function f(I, F, w) {
|
|
4026
|
+
if (w === 1)
|
|
4027
|
+
return I >= 128 >> F && I << F <= 2047;
|
|
4028
|
+
if (w === 2)
|
|
4029
|
+
return I >= 2048 >> F && I << F <= 55295 || I >= 57344 >> F && I << F <= 65535;
|
|
4030
|
+
if (w === 3)
|
|
4031
|
+
return I >= 65536 >> F && I << F <= 1114111;
|
|
4028
4032
|
throw new Error();
|
|
4029
4033
|
}
|
|
4030
|
-
function p(
|
|
4031
|
-
if (
|
|
4034
|
+
function p(I, F) {
|
|
4035
|
+
if (I === 6 * 1)
|
|
4032
4036
|
return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
|
|
4033
|
-
if (
|
|
4037
|
+
if (I === 6 * 2)
|
|
4034
4038
|
return F > 15 ? 3 : 2;
|
|
4035
|
-
if (
|
|
4039
|
+
if (I === 6 * 3)
|
|
4036
4040
|
return 3;
|
|
4037
4041
|
throw new Error();
|
|
4038
4042
|
}
|
|
4039
|
-
for (var
|
|
4040
|
-
var
|
|
4041
|
-
|
|
4043
|
+
for (var h = 65533, E = "", v = this.bitsNeeded, m = this.codePoint, R = 0; R < a.length; R += 1) {
|
|
4044
|
+
var A = a[R];
|
|
4045
|
+
v !== 0 && (A < 128 || A > 191 || !f(m << 6 | A & 63, v - 6, p(v, m))) && (v = 0, m = h, E += String.fromCharCode(m)), v === 0 ? (A >= 0 && A <= 127 ? (v = 0, m = A) : A >= 192 && A <= 223 ? (v = 6 * 1, m = A & 31) : A >= 224 && A <= 239 ? (v = 6 * 2, m = A & 15) : A >= 240 && A <= 247 ? (v = 6 * 3, m = A & 7) : (v = 0, m = h), v !== 0 && !f(m, v, p(v, m)) && (v = 0, m = h)) : (v -= 6, m = m << 6 | A & 63), v === 0 && (m <= 65535 ? E += String.fromCharCode(m) : (E += String.fromCharCode(55296 + (m - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (m - 65535 - 1 & 1023))));
|
|
4042
4046
|
}
|
|
4043
|
-
return this.bitsNeeded =
|
|
4047
|
+
return this.bitsNeeded = v, this.codePoint = m, E;
|
|
4044
4048
|
};
|
|
4045
|
-
var
|
|
4049
|
+
var P = function() {
|
|
4046
4050
|
try {
|
|
4047
|
-
return new
|
|
4048
|
-
} catch (
|
|
4049
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
4051
|
+
return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
4052
|
+
} catch (a) {
|
|
4053
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
|
|
4050
4054
|
}
|
|
4051
4055
|
return !1;
|
|
4052
4056
|
};
|
|
4053
|
-
(
|
|
4054
|
-
var
|
|
4057
|
+
(_ == null || B == null || !P()) && (_ = S);
|
|
4058
|
+
var C = function() {
|
|
4055
4059
|
};
|
|
4056
|
-
function
|
|
4057
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4060
|
+
function D(a) {
|
|
4061
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = C, this.onload = C, this.onerror = C, this.onreadystatechange = C, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = C;
|
|
4058
4062
|
}
|
|
4059
|
-
|
|
4063
|
+
D.prototype.open = function(a, f) {
|
|
4060
4064
|
this._abort(!0);
|
|
4061
|
-
var p = this,
|
|
4062
|
-
this._abort = function(
|
|
4063
|
-
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (
|
|
4065
|
+
var p = this, h = this._xhr, E = 1, v = 0;
|
|
4066
|
+
this._abort = function(w) {
|
|
4067
|
+
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (E === 1 || E === 2 || E === 3) && (E = 4, h.onload = C, h.onerror = C, h.onabort = C, h.onprogress = C, h.onreadystatechange = C, h.abort(), v !== 0 && (i(v), v = 0), w || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), E = 0;
|
|
4064
4068
|
};
|
|
4065
|
-
var
|
|
4066
|
-
if (
|
|
4067
|
-
var
|
|
4068
|
-
if ("contentType" in
|
|
4069
|
-
|
|
4069
|
+
var m = function() {
|
|
4070
|
+
if (E === 1) {
|
|
4071
|
+
var w = 0, V = "", ye = void 0;
|
|
4072
|
+
if ("contentType" in h)
|
|
4073
|
+
w = 200, V = "OK", ye = h.contentType;
|
|
4070
4074
|
else
|
|
4071
4075
|
try {
|
|
4072
|
-
|
|
4073
|
-
} catch (
|
|
4074
|
-
|
|
4076
|
+
w = h.status, V = h.statusText, ye = h.getResponseHeader("Content-Type");
|
|
4077
|
+
} catch (Ye) {
|
|
4078
|
+
w = 0, V = "", ye = void 0;
|
|
4075
4079
|
}
|
|
4076
|
-
|
|
4080
|
+
w !== 0 && (E = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = ye, p.onreadystatechange());
|
|
4077
4081
|
}
|
|
4078
|
-
},
|
|
4079
|
-
if (
|
|
4080
|
-
|
|
4081
|
-
var
|
|
4082
|
+
}, R = function() {
|
|
4083
|
+
if (m(), E === 2 || E === 3) {
|
|
4084
|
+
E = 3;
|
|
4085
|
+
var w = "";
|
|
4082
4086
|
try {
|
|
4083
|
-
|
|
4084
|
-
} catch (
|
|
4087
|
+
w = h.responseText;
|
|
4088
|
+
} catch (V) {
|
|
4085
4089
|
}
|
|
4086
|
-
p.readyState = 3, p.responseText =
|
|
4090
|
+
p.readyState = 3, p.responseText = w, p.onprogress();
|
|
4087
4091
|
}
|
|
4088
|
-
},
|
|
4089
|
-
if ((
|
|
4090
|
-
preventDefault:
|
|
4091
|
-
}),
|
|
4092
|
-
if (
|
|
4093
|
-
p.onload(
|
|
4094
|
-
else if (
|
|
4095
|
-
p.onerror(
|
|
4096
|
-
else if (
|
|
4097
|
-
p.onabort(
|
|
4092
|
+
}, A = function(w, V) {
|
|
4093
|
+
if ((V == null || V.preventDefault == null) && (V = {
|
|
4094
|
+
preventDefault: C
|
|
4095
|
+
}), R(), E === 1 || E === 2 || E === 3) {
|
|
4096
|
+
if (E = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, w === "load")
|
|
4097
|
+
p.onload(V);
|
|
4098
|
+
else if (w === "error")
|
|
4099
|
+
p.onerror(V);
|
|
4100
|
+
else if (w === "abort")
|
|
4101
|
+
p.onabort(V);
|
|
4098
4102
|
else
|
|
4099
4103
|
throw new TypeError();
|
|
4100
4104
|
p.onreadystatechange();
|
|
4101
4105
|
}
|
|
4102
|
-
},
|
|
4103
|
-
|
|
4106
|
+
}, I = function(w) {
|
|
4107
|
+
h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && A(h.responseText === "" ? "error" : "load", w) : h.readyState === 3 ? "onprogress" in h || R() : h.readyState === 2 && m());
|
|
4104
4108
|
}, F = function() {
|
|
4105
|
-
|
|
4109
|
+
v = r(function() {
|
|
4106
4110
|
F();
|
|
4107
|
-
}, 500),
|
|
4111
|
+
}, 500), h.readyState === 3 && R();
|
|
4108
4112
|
};
|
|
4109
|
-
"onload" in
|
|
4110
|
-
|
|
4111
|
-
}), "onerror" in
|
|
4112
|
-
|
|
4113
|
-
}), "onabort" in
|
|
4114
|
-
|
|
4115
|
-
}), "onprogress" in
|
|
4116
|
-
|
|
4117
|
-
}), ("contentType" in
|
|
4113
|
+
"onload" in h && (h.onload = function(w) {
|
|
4114
|
+
A("load", w);
|
|
4115
|
+
}), "onerror" in h && (h.onerror = function(w) {
|
|
4116
|
+
A("error", w);
|
|
4117
|
+
}), "onabort" in h && (h.onabort = function(w) {
|
|
4118
|
+
A("abort", w);
|
|
4119
|
+
}), "onprogress" in h && (h.onprogress = R), "onreadystatechange" in h && (h.onreadystatechange = function(w) {
|
|
4120
|
+
I(w);
|
|
4121
|
+
}), ("contentType" in h || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(a, f, !0), "readyState" in h && (v = r(function() {
|
|
4118
4122
|
F();
|
|
4119
4123
|
}, 0));
|
|
4120
|
-
},
|
|
4124
|
+
}, D.prototype.abort = function() {
|
|
4121
4125
|
this._abort(!1);
|
|
4122
|
-
},
|
|
4126
|
+
}, D.prototype.getResponseHeader = function(a) {
|
|
4123
4127
|
return this._contentType;
|
|
4124
|
-
},
|
|
4128
|
+
}, D.prototype.setRequestHeader = function(a, f) {
|
|
4125
4129
|
var p = this._xhr;
|
|
4126
|
-
"setRequestHeader" in p && p.setRequestHeader(
|
|
4127
|
-
},
|
|
4130
|
+
"setRequestHeader" in p && p.setRequestHeader(a, f);
|
|
4131
|
+
}, D.prototype.getAllResponseHeaders = function() {
|
|
4128
4132
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4129
|
-
},
|
|
4133
|
+
}, D.prototype.send = function() {
|
|
4130
4134
|
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4131
|
-
var
|
|
4132
|
-
|
|
4133
|
-
|
|
4135
|
+
var a = this;
|
|
4136
|
+
a._sendTimeout = r(function() {
|
|
4137
|
+
a._sendTimeout = 0, a.send();
|
|
4134
4138
|
}, 4);
|
|
4135
4139
|
return;
|
|
4136
4140
|
}
|
|
4137
|
-
var
|
|
4138
|
-
"withCredentials" in
|
|
4141
|
+
var f = this._xhr;
|
|
4142
|
+
"withCredentials" in f && (f.withCredentials = this.withCredentials);
|
|
4139
4143
|
try {
|
|
4140
|
-
|
|
4144
|
+
f.send(void 0);
|
|
4141
4145
|
} catch (p) {
|
|
4142
4146
|
throw p;
|
|
4143
4147
|
}
|
|
4144
4148
|
};
|
|
4145
|
-
function
|
|
4146
|
-
return
|
|
4147
|
-
return String.fromCharCode(
|
|
4149
|
+
function W(a) {
|
|
4150
|
+
return a.replace(/[A-Z]/g, function(f) {
|
|
4151
|
+
return String.fromCharCode(f.charCodeAt(0) + 32);
|
|
4148
4152
|
});
|
|
4149
4153
|
}
|
|
4150
|
-
function
|
|
4151
|
-
for (var
|
|
4152
|
-
`),
|
|
4153
|
-
var
|
|
4154
|
-
|
|
4154
|
+
function J(a) {
|
|
4155
|
+
for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
|
|
4156
|
+
`), h = 0; h < p.length; h += 1) {
|
|
4157
|
+
var E = p[h], v = E.split(": "), m = v.shift(), R = v.join(": ");
|
|
4158
|
+
f[W(m)] = R;
|
|
4155
4159
|
}
|
|
4156
|
-
this._map =
|
|
4160
|
+
this._map = f;
|
|
4157
4161
|
}
|
|
4158
|
-
|
|
4159
|
-
return this._map[
|
|
4162
|
+
J.prototype.get = function(a) {
|
|
4163
|
+
return this._map[W(a)];
|
|
4160
4164
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4161
|
-
function
|
|
4165
|
+
function Y() {
|
|
4162
4166
|
}
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
var
|
|
4166
|
-
|
|
4167
|
-
var
|
|
4168
|
-
|
|
4169
|
-
},
|
|
4170
|
-
|
|
4171
|
-
},
|
|
4172
|
-
|
|
4173
|
-
},
|
|
4174
|
-
|
|
4175
|
-
},
|
|
4176
|
-
if (
|
|
4177
|
-
var
|
|
4178
|
-
|
|
4167
|
+
Y.prototype.open = function(a, f, p, h, E, v, m) {
|
|
4168
|
+
a.open("GET", E);
|
|
4169
|
+
var R = 0;
|
|
4170
|
+
a.onprogress = function() {
|
|
4171
|
+
var I = a.responseText, F = I.slice(R);
|
|
4172
|
+
R += F.length, p(F);
|
|
4173
|
+
}, a.onerror = function(I) {
|
|
4174
|
+
I.preventDefault(), h(new Error("NetworkError"));
|
|
4175
|
+
}, a.onload = function() {
|
|
4176
|
+
h(null);
|
|
4177
|
+
}, a.onabort = function() {
|
|
4178
|
+
h(null);
|
|
4179
|
+
}, a.onreadystatechange = function() {
|
|
4180
|
+
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4181
|
+
var I = a.status, F = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
|
|
4182
|
+
f(I, F, w, new J(V));
|
|
4179
4183
|
}
|
|
4180
|
-
},
|
|
4181
|
-
for (var
|
|
4182
|
-
Object.prototype.hasOwnProperty.call(
|
|
4183
|
-
return
|
|
4184
|
+
}, a.withCredentials = v;
|
|
4185
|
+
for (var A in m)
|
|
4186
|
+
Object.prototype.hasOwnProperty.call(m, A) && a.setRequestHeader(A, m[A]);
|
|
4187
|
+
return a.send(), a;
|
|
4184
4188
|
};
|
|
4185
|
-
function
|
|
4186
|
-
this._headers =
|
|
4189
|
+
function G(a) {
|
|
4190
|
+
this._headers = a;
|
|
4187
4191
|
}
|
|
4188
|
-
|
|
4189
|
-
return this._headers.get(
|
|
4192
|
+
G.prototype.get = function(a) {
|
|
4193
|
+
return this._headers.get(a);
|
|
4190
4194
|
};
|
|
4191
|
-
function
|
|
4195
|
+
function N() {
|
|
4192
4196
|
}
|
|
4193
|
-
|
|
4194
|
-
var
|
|
4195
|
-
return g(
|
|
4196
|
-
headers:
|
|
4197
|
-
credentials:
|
|
4198
|
-
signal:
|
|
4197
|
+
N.prototype.open = function(a, f, p, h, E, v, m) {
|
|
4198
|
+
var R = null, A = new T(), I = A.signal, F = new _();
|
|
4199
|
+
return g(E, {
|
|
4200
|
+
headers: m,
|
|
4201
|
+
credentials: v ? "include" : "same-origin",
|
|
4202
|
+
signal: I,
|
|
4199
4203
|
cache: "no-store"
|
|
4200
|
-
}).then(function(
|
|
4201
|
-
return
|
|
4202
|
-
var
|
|
4203
|
-
|
|
4204
|
-
if (
|
|
4205
|
-
|
|
4204
|
+
}).then(function(w) {
|
|
4205
|
+
return R = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new G(w.headers)), new d(function(V, ye) {
|
|
4206
|
+
var Ye = function() {
|
|
4207
|
+
R.read().then(function(ie) {
|
|
4208
|
+
if (ie.done)
|
|
4209
|
+
V(void 0);
|
|
4206
4210
|
else {
|
|
4207
|
-
var K = F.decode(
|
|
4208
|
-
p(K),
|
|
4211
|
+
var K = F.decode(ie.value, { stream: !0 });
|
|
4212
|
+
p(K), Ye();
|
|
4209
4213
|
}
|
|
4210
|
-
}).catch(function(
|
|
4211
|
-
|
|
4214
|
+
}).catch(function(ie) {
|
|
4215
|
+
ye(ie);
|
|
4212
4216
|
});
|
|
4213
4217
|
};
|
|
4214
|
-
|
|
4218
|
+
Ye();
|
|
4215
4219
|
});
|
|
4216
|
-
}).catch(function(
|
|
4217
|
-
if (
|
|
4218
|
-
return
|
|
4219
|
-
}).then(function(
|
|
4220
|
-
|
|
4220
|
+
}).catch(function(w) {
|
|
4221
|
+
if (w.name !== "AbortError")
|
|
4222
|
+
return w;
|
|
4223
|
+
}).then(function(w) {
|
|
4224
|
+
h(w);
|
|
4221
4225
|
}), {
|
|
4222
4226
|
abort: function() {
|
|
4223
|
-
|
|
4227
|
+
R != null && R.cancel(), A.abort();
|
|
4224
4228
|
}
|
|
4225
4229
|
};
|
|
4226
4230
|
};
|
|
4227
|
-
function
|
|
4231
|
+
function $() {
|
|
4228
4232
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4229
4233
|
}
|
|
4230
|
-
function
|
|
4234
|
+
function U(a) {
|
|
4231
4235
|
r(function() {
|
|
4232
|
-
throw
|
|
4236
|
+
throw a;
|
|
4233
4237
|
}, 0);
|
|
4234
4238
|
}
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
var
|
|
4238
|
-
if (
|
|
4239
|
-
for (var p =
|
|
4240
|
-
var
|
|
4239
|
+
$.prototype.dispatchEvent = function(a) {
|
|
4240
|
+
a.target = this;
|
|
4241
|
+
var f = this._listeners[a.type];
|
|
4242
|
+
if (f != null)
|
|
4243
|
+
for (var p = f.length, h = 0; h < p; h += 1) {
|
|
4244
|
+
var E = f[h];
|
|
4241
4245
|
try {
|
|
4242
|
-
typeof
|
|
4243
|
-
} catch (
|
|
4244
|
-
|
|
4246
|
+
typeof E.handleEvent == "function" ? E.handleEvent(a) : E.call(this, a);
|
|
4247
|
+
} catch (v) {
|
|
4248
|
+
U(v);
|
|
4245
4249
|
}
|
|
4246
4250
|
}
|
|
4247
|
-
},
|
|
4248
|
-
|
|
4249
|
-
var p = this._listeners,
|
|
4250
|
-
|
|
4251
|
-
for (var
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
},
|
|
4255
|
-
|
|
4256
|
-
var p = this._listeners,
|
|
4257
|
-
if (
|
|
4258
|
-
for (var
|
|
4259
|
-
|
|
4260
|
-
|
|
4251
|
+
}, $.prototype.addEventListener = function(a, f) {
|
|
4252
|
+
a = String(a);
|
|
4253
|
+
var p = this._listeners, h = p[a];
|
|
4254
|
+
h == null && (h = [], p[a] = h);
|
|
4255
|
+
for (var E = !1, v = 0; v < h.length; v += 1)
|
|
4256
|
+
h[v] === f && (E = !0);
|
|
4257
|
+
E || h.push(f);
|
|
4258
|
+
}, $.prototype.removeEventListener = function(a, f) {
|
|
4259
|
+
a = String(a);
|
|
4260
|
+
var p = this._listeners, h = p[a];
|
|
4261
|
+
if (h != null) {
|
|
4262
|
+
for (var E = [], v = 0; v < h.length; v += 1)
|
|
4263
|
+
h[v] !== f && E.push(h[v]);
|
|
4264
|
+
E.length === 0 ? delete p[a] : p[a] = E;
|
|
4261
4265
|
}
|
|
4262
4266
|
};
|
|
4263
|
-
function
|
|
4264
|
-
this.type =
|
|
4267
|
+
function y(a) {
|
|
4268
|
+
this.type = a, this.target = void 0;
|
|
4265
4269
|
}
|
|
4266
|
-
function
|
|
4267
|
-
|
|
4270
|
+
function Be(a, f) {
|
|
4271
|
+
y.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
|
|
4268
4272
|
}
|
|
4269
|
-
|
|
4270
|
-
function
|
|
4271
|
-
|
|
4273
|
+
Be.prototype = Object.create(y.prototype);
|
|
4274
|
+
function qe(a, f) {
|
|
4275
|
+
y.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
|
|
4272
4276
|
}
|
|
4273
|
-
|
|
4274
|
-
function
|
|
4275
|
-
|
|
4277
|
+
qe.prototype = Object.create(y.prototype);
|
|
4278
|
+
function Te(a, f) {
|
|
4279
|
+
y.call(this, a), this.error = f.error;
|
|
4276
4280
|
}
|
|
4277
|
-
|
|
4278
|
-
var
|
|
4279
|
-
var p =
|
|
4280
|
-
return p !== p && (p =
|
|
4281
|
-
},
|
|
4282
|
-
return Math.min(Math.max(
|
|
4283
|
-
},
|
|
4281
|
+
Te.prototype = Object.create(y.prototype);
|
|
4282
|
+
var Le = -1, me = 0, we = 1, Ce = 2, He = -1, ue = 0, Qe = 1, Me = 2, at = 3, St = /^text\/event\-stream(;.*)?$/i, st = 1e3, At = 18e6, Je = function(a, f) {
|
|
4283
|
+
var p = a == null ? f : parseInt(a, 10);
|
|
4284
|
+
return p !== p && (p = f), Ne(p);
|
|
4285
|
+
}, Ne = function(a) {
|
|
4286
|
+
return Math.min(Math.max(a, st), At);
|
|
4287
|
+
}, Se = function(a, f, p) {
|
|
4284
4288
|
try {
|
|
4285
|
-
typeof
|
|
4286
|
-
} catch (
|
|
4287
|
-
|
|
4289
|
+
typeof f == "function" && f.call(a, p);
|
|
4290
|
+
} catch (h) {
|
|
4291
|
+
U(h);
|
|
4288
4292
|
}
|
|
4289
4293
|
};
|
|
4290
|
-
function
|
|
4291
|
-
|
|
4294
|
+
function re(a, f) {
|
|
4295
|
+
$.call(this), f = f || {}, 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, a, f);
|
|
4292
4296
|
}
|
|
4293
|
-
function
|
|
4294
|
-
return o != null && "withCredentials" in o.prototype ||
|
|
4297
|
+
function Ct() {
|
|
4298
|
+
return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
|
|
4295
4299
|
}
|
|
4296
|
-
var
|
|
4297
|
-
function
|
|
4298
|
-
|
|
4299
|
-
var
|
|
4300
|
-
if (
|
|
4301
|
-
if (
|
|
4302
|
-
|
|
4303
|
-
var te = new
|
|
4304
|
-
status:
|
|
4305
|
-
statusText:
|
|
4306
|
-
headers:
|
|
4300
|
+
var Ht = g != null && b != null && "body" in b.prototype;
|
|
4301
|
+
function Ot(a, f, p) {
|
|
4302
|
+
f = String(f);
|
|
4303
|
+
var h = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", v = Ne(1e3), m = Je(p.heartbeatTimeout, 45e3), R = "", A = v, I = !1, F = 0, w = p.headers || {}, V = p.Transport, ye = Ht && V == null ? void 0 : new D(V != null ? new V() : Ct()), Ye = V != null && typeof V != "string" ? new V() : ye == null ? new N() : new Y(), ie = void 0, K = 0, ce = Le, Ie = "", ut = "", ve = "", ct = "", ee = ue, Rt = 0, Oe = 0, cr = function(Z, z, oe, ae) {
|
|
4304
|
+
if (ce === me)
|
|
4305
|
+
if (Z === 200 && oe != null && St.test(oe)) {
|
|
4306
|
+
ce = we, I = Date.now(), A = v, a.readyState = we;
|
|
4307
|
+
var te = new qe("open", {
|
|
4308
|
+
status: Z,
|
|
4309
|
+
statusText: z,
|
|
4310
|
+
headers: ae
|
|
4307
4311
|
});
|
|
4308
|
-
|
|
4312
|
+
a.dispatchEvent(te), Se(a, a.onopen, te);
|
|
4309
4313
|
} else {
|
|
4310
|
-
var
|
|
4311
|
-
|
|
4312
|
-
var te = new
|
|
4313
|
-
status:
|
|
4314
|
-
statusText:
|
|
4315
|
-
headers:
|
|
4314
|
+
var q = "";
|
|
4315
|
+
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Lt();
|
|
4316
|
+
var te = new qe("error", {
|
|
4317
|
+
status: Z,
|
|
4318
|
+
statusText: z,
|
|
4319
|
+
headers: ae
|
|
4316
4320
|
});
|
|
4317
|
-
|
|
4321
|
+
a.dispatchEvent(te), Se(a, a.onerror, te), console.error(q);
|
|
4318
4322
|
}
|
|
4319
|
-
}, hr = function(
|
|
4320
|
-
if (
|
|
4321
|
-
for (var
|
|
4322
|
-
var
|
|
4323
|
-
(
|
|
4323
|
+
}, hr = function(Z) {
|
|
4324
|
+
if (ce === we) {
|
|
4325
|
+
for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
|
|
4326
|
+
var ae = Z.charCodeAt(oe);
|
|
4327
|
+
(ae === 10 || ae === 13) && (z = oe);
|
|
4324
4328
|
}
|
|
4325
|
-
var te = (
|
|
4326
|
-
ct = (
|
|
4327
|
-
for (var
|
|
4328
|
-
var
|
|
4329
|
-
if (ee ===
|
|
4330
|
-
ee =
|
|
4331
|
-
else if (ee ===
|
|
4332
|
-
if (ee !==
|
|
4333
|
-
ee ===
|
|
4334
|
-
var
|
|
4335
|
-
|
|
4336
|
-
`,
|
|
4337
|
-
|
|
4338
|
-
},
|
|
4329
|
+
var te = (z !== -1 ? ct : "") + Z.slice(0, z + 1);
|
|
4330
|
+
ct = (z === -1 ? ct : "") + Z.slice(z + 1), Z !== "" && (I = Date.now(), F += Z.length);
|
|
4331
|
+
for (var q = 0; q < te.length; q += 1) {
|
|
4332
|
+
var ae = te.charCodeAt(q);
|
|
4333
|
+
if (ee === He && ae === 10)
|
|
4334
|
+
ee = ue;
|
|
4335
|
+
else if (ee === He && (ee = ue), ae === 13 || ae === 10) {
|
|
4336
|
+
if (ee !== ue) {
|
|
4337
|
+
ee === Qe && (Oe = q + 1);
|
|
4338
|
+
var Ee = te.slice(Rt, Oe - 1), xe = te.slice(Oe + (Oe < q && te.charCodeAt(Oe) === 32 ? 1 : 0), q);
|
|
4339
|
+
Ee === "data" ? (Ie += `
|
|
4340
|
+
`, Ie += xe) : Ee === "id" ? ut = xe : Ee === "event" ? ve = xe : Ee === "retry" ? (v = Je(xe, v), A = v) : Ee === "heartbeatTimeout" && (m = Je(xe, m), K !== 0 && (i(K), K = r(function() {
|
|
4341
|
+
Ke();
|
|
4342
|
+
}, m)));
|
|
4339
4343
|
}
|
|
4340
|
-
if (ee ===
|
|
4341
|
-
if (
|
|
4342
|
-
|
|
4343
|
-
var
|
|
4344
|
-
data:
|
|
4344
|
+
if (ee === ue) {
|
|
4345
|
+
if (Ie !== "") {
|
|
4346
|
+
R = ut, ve === "" && (ve = "message");
|
|
4347
|
+
var Pe = new Be(ve, {
|
|
4348
|
+
data: Ie.slice(1),
|
|
4345
4349
|
lastEventId: ut
|
|
4346
4350
|
});
|
|
4347
|
-
if (
|
|
4351
|
+
if (a.dispatchEvent(Pe), ve === "open" ? Se(a, a.onopen, Pe) : ve === "message" ? Se(a, a.onmessage, Pe) : ve === "error" && Se(a, a.onerror, Pe), ce === Ce)
|
|
4348
4352
|
return;
|
|
4349
4353
|
}
|
|
4350
|
-
|
|
4354
|
+
Ie = "", ve = "";
|
|
4351
4355
|
}
|
|
4352
|
-
ee =
|
|
4356
|
+
ee = ae === 13 ? He : ue;
|
|
4353
4357
|
} else
|
|
4354
|
-
ee ===
|
|
4358
|
+
ee === ue && (Rt = q, ee = Qe), ee === Qe ? ae === 58 && (Oe = q + 1, ee = Me) : ee === Me && (ee = at);
|
|
4355
4359
|
}
|
|
4356
4360
|
}
|
|
4357
|
-
}, ln = function(
|
|
4358
|
-
if (
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
},
|
|
4362
|
-
var
|
|
4363
|
-
|
|
4361
|
+
}, ln = function(Z) {
|
|
4362
|
+
if (ce === we || ce === me) {
|
|
4363
|
+
ce = Le, K !== 0 && (i(K), K = 0), K = r(function() {
|
|
4364
|
+
Ke();
|
|
4365
|
+
}, A), A = Ne(Math.min(v * 16, A * 2)), a.readyState = me;
|
|
4366
|
+
var z = new Te("error", { error: Z });
|
|
4367
|
+
a.dispatchEvent(z), Se(a, a.onerror, z), Z != null && console.error(Z);
|
|
4364
4368
|
}
|
|
4365
|
-
},
|
|
4366
|
-
|
|
4367
|
-
},
|
|
4368
|
-
if (K = 0,
|
|
4369
|
-
if (!
|
|
4370
|
-
ln(new Error("No activity within " +
|
|
4369
|
+
}, Lt = function() {
|
|
4370
|
+
ce = Ce, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ce;
|
|
4371
|
+
}, Ke = function() {
|
|
4372
|
+
if (K = 0, ce !== Le) {
|
|
4373
|
+
if (!I && ie != null)
|
|
4374
|
+
ln(new Error("No activity within " + m + " milliseconds. " + (ce === me ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
|
|
4371
4375
|
else {
|
|
4372
|
-
var
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
},
|
|
4376
|
+
var Z = Math.max((I || Date.now()) + m - Date.now(), 1);
|
|
4377
|
+
I = !1, K = r(function() {
|
|
4378
|
+
Ke();
|
|
4379
|
+
}, Z);
|
|
4376
4380
|
}
|
|
4377
4381
|
return;
|
|
4378
4382
|
}
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
},
|
|
4382
|
-
var
|
|
4383
|
-
if (
|
|
4384
|
-
var
|
|
4385
|
-
|
|
4386
|
-
return
|
|
4387
|
-
}),
|
|
4383
|
+
I = !1, F = 0, K = r(function() {
|
|
4384
|
+
Ke();
|
|
4385
|
+
}, m), ce = me, Ie = "", ve = "", ut = R, ct = "", Rt = 0, Oe = 0, ee = ue;
|
|
4386
|
+
var z = f;
|
|
4387
|
+
if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && R !== "") {
|
|
4388
|
+
var oe = f.indexOf("?");
|
|
4389
|
+
z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Pe) {
|
|
4390
|
+
return Pe === E ? "" : xe;
|
|
4391
|
+
}), z += (f.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(R);
|
|
4388
4392
|
}
|
|
4389
|
-
var
|
|
4393
|
+
var ae = a.withCredentials, te = {};
|
|
4390
4394
|
te.Accept = "text/event-stream";
|
|
4391
|
-
var
|
|
4392
|
-
if (
|
|
4393
|
-
for (var
|
|
4394
|
-
Object.prototype.hasOwnProperty.call(
|
|
4395
|
+
var q = a.headers;
|
|
4396
|
+
if (q != null)
|
|
4397
|
+
for (var Ee in q)
|
|
4398
|
+
Object.prototype.hasOwnProperty.call(q, Ee) && (te[Ee] = q[Ee]);
|
|
4395
4399
|
try {
|
|
4396
|
-
|
|
4397
|
-
} catch (
|
|
4398
|
-
throw
|
|
4400
|
+
ie = Ye.open(ye, cr, hr, ln, z, ae, te);
|
|
4401
|
+
} catch (xe) {
|
|
4402
|
+
throw Lt(), xe;
|
|
4399
4403
|
}
|
|
4400
4404
|
};
|
|
4401
|
-
|
|
4405
|
+
a.url = f, a.readyState = me, a.withCredentials = h, a.headers = w, a._close = Lt, Ke();
|
|
4402
4406
|
}
|
|
4403
|
-
|
|
4407
|
+
re.prototype = Object.create($.prototype), re.prototype.CONNECTING = me, re.prototype.OPEN = we, re.prototype.CLOSED = Ce, re.prototype.close = function() {
|
|
4404
4408
|
this._close();
|
|
4405
|
-
},
|
|
4409
|
+
}, re.CONNECTING = me, re.OPEN = we, re.CLOSED = Ce, re.prototype.withCredentials = void 0;
|
|
4406
4410
|
var lt = c;
|
|
4407
|
-
o != null && (c == null || !("withCredentials" in c.prototype)) && (lt =
|
|
4411
|
+
o != null && (c == null || !("withCredentials" in c.prototype)) && (lt = re), function(a) {
|
|
4408
4412
|
{
|
|
4409
|
-
var
|
|
4410
|
-
|
|
4413
|
+
var f = a(t);
|
|
4414
|
+
f !== void 0 && (e.exports = f);
|
|
4411
4415
|
}
|
|
4412
|
-
}(function(
|
|
4413
|
-
|
|
4416
|
+
}(function(a) {
|
|
4417
|
+
a.EventSourcePolyfill = re, a.NativeEventSource = c, a.EventSource = lt;
|
|
4414
4418
|
});
|
|
4415
4419
|
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Vr : globalThis);
|
|
4416
|
-
})(
|
|
4417
|
-
var
|
|
4420
|
+
})(nn, nn.exports);
|
|
4421
|
+
var No = nn.exports;
|
|
4418
4422
|
/*!
|
|
4419
4423
|
* currency.js - v2.0.4
|
|
4420
4424
|
* http://scurker.github.io/currency.js
|
|
@@ -4422,7 +4426,7 @@ var Mo = en.exports;
|
|
|
4422
4426
|
* Copyright (c) 2021 Jason Wilson
|
|
4423
4427
|
* Released under MIT license
|
|
4424
4428
|
*/
|
|
4425
|
-
var
|
|
4429
|
+
var Io = {
|
|
4426
4430
|
symbol: "$",
|
|
4427
4431
|
separator: ",",
|
|
4428
4432
|
decimal: ".",
|
|
@@ -4430,28 +4434,28 @@ var No = {
|
|
|
4430
4434
|
precision: 2,
|
|
4431
4435
|
pattern: "!#",
|
|
4432
4436
|
negativePattern: "-!#",
|
|
4433
|
-
format:
|
|
4437
|
+
format: Fo,
|
|
4434
4438
|
fromCents: !1
|
|
4435
4439
|
}, ur = function(t) {
|
|
4436
4440
|
return Math.round(t);
|
|
4437
4441
|
}, sn = function(t) {
|
|
4438
4442
|
return Math.pow(10, t);
|
|
4439
|
-
},
|
|
4443
|
+
}, Po = function(t, n) {
|
|
4440
4444
|
return ur(t / n) * n;
|
|
4441
|
-
},
|
|
4442
|
-
function
|
|
4445
|
+
}, Do = /(\d)(?=(\d{3})+\b)/g, Uo = /(\d)(?=(\d\d)+\d\b)/g;
|
|
4446
|
+
function he(e, t) {
|
|
4443
4447
|
var n = this;
|
|
4444
|
-
if (!(n instanceof
|
|
4445
|
-
return new
|
|
4446
|
-
var r = Object.assign({},
|
|
4447
|
-
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups =
|
|
4448
|
+
if (!(n instanceof he))
|
|
4449
|
+
return new he(e, t);
|
|
4450
|
+
var r = Object.assign({}, Io, t), i = sn(r.precision), o = mt(e, r);
|
|
4451
|
+
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Uo : r.groups = Do, this.s = r, this.p = i;
|
|
4448
4452
|
}
|
|
4449
4453
|
function mt(e, t) {
|
|
4450
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid,
|
|
4451
|
-
if (
|
|
4454
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, c = sn(l), u = typeof e == "number", d = e instanceof he;
|
|
4455
|
+
if (d && s)
|
|
4452
4456
|
return e.intValue;
|
|
4453
|
-
if (u ||
|
|
4454
|
-
r =
|
|
4457
|
+
if (u || d)
|
|
4458
|
+
r = d ? e.value : e;
|
|
4455
4459
|
else if (typeof e == "string") {
|
|
4456
4460
|
var g = new RegExp("[^-\\d" + i + "]", "g"), b = new RegExp("\\" + i, "g");
|
|
4457
4461
|
r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(b, "."), r = r || 0;
|
|
@@ -4460,13 +4464,13 @@ function mt(e, t) {
|
|
|
4460
4464
|
throw Error("Invalid Input");
|
|
4461
4465
|
r = 0;
|
|
4462
4466
|
}
|
|
4463
|
-
return
|
|
4467
|
+
return s || (r *= c, r = r.toFixed(4)), n ? ur(r) : r;
|
|
4464
4468
|
}
|
|
4465
|
-
function
|
|
4466
|
-
var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator,
|
|
4467
|
-
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(
|
|
4469
|
+
function Fo(e, t) {
|
|
4470
|
+
var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
|
|
4471
|
+
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
|
|
4468
4472
|
}
|
|
4469
|
-
|
|
4473
|
+
he.prototype = {
|
|
4470
4474
|
/**
|
|
4471
4475
|
* Adds values together.
|
|
4472
4476
|
* @param {number} number
|
|
@@ -4474,7 +4478,7 @@ de.prototype = {
|
|
|
4474
4478
|
*/
|
|
4475
4479
|
add: function(t) {
|
|
4476
4480
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4477
|
-
return
|
|
4481
|
+
return he((n += mt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4478
4482
|
},
|
|
4479
4483
|
/**
|
|
4480
4484
|
* Subtracts value.
|
|
@@ -4483,7 +4487,7 @@ de.prototype = {
|
|
|
4483
4487
|
*/
|
|
4484
4488
|
subtract: function(t) {
|
|
4485
4489
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4486
|
-
return
|
|
4490
|
+
return he((n -= mt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4487
4491
|
},
|
|
4488
4492
|
/**
|
|
4489
4493
|
* Multiplies values.
|
|
@@ -4492,7 +4496,7 @@ de.prototype = {
|
|
|
4492
4496
|
*/
|
|
4493
4497
|
multiply: function(t) {
|
|
4494
4498
|
var n = this.intValue, r = this.s;
|
|
4495
|
-
return
|
|
4499
|
+
return he((n *= t) / (r.fromCents ? 1 : sn(r.precision)), r);
|
|
4496
4500
|
},
|
|
4497
4501
|
/**
|
|
4498
4502
|
* Divides value.
|
|
@@ -4501,7 +4505,7 @@ de.prototype = {
|
|
|
4501
4505
|
*/
|
|
4502
4506
|
divide: function(t) {
|
|
4503
4507
|
var n = this.intValue, r = this.s;
|
|
4504
|
-
return
|
|
4508
|
+
return he(n /= mt(t, r, !1), r);
|
|
4505
4509
|
},
|
|
4506
4510
|
/**
|
|
4507
4511
|
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
|
@@ -4510,9 +4514,9 @@ de.prototype = {
|
|
|
4510
4514
|
* @returns {array}
|
|
4511
4515
|
*/
|
|
4512
4516
|
distribute: function(t) {
|
|
4513
|
-
for (var n = this.intValue, r = this.p, i = this.s, o = [],
|
|
4514
|
-
var u =
|
|
4515
|
-
|
|
4517
|
+
for (var n = this.intValue, r = this.p, i = this.s, o = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
|
|
4518
|
+
var u = he(l / c, i);
|
|
4519
|
+
s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), o.push(u);
|
|
4516
4520
|
}
|
|
4517
4521
|
return o;
|
|
4518
4522
|
},
|
|
@@ -4546,7 +4550,7 @@ de.prototype = {
|
|
|
4546
4550
|
*/
|
|
4547
4551
|
toString: function() {
|
|
4548
4552
|
var t = this.intValue, n = this.p, r = this.s;
|
|
4549
|
-
return
|
|
4553
|
+
return Po(t / n, r.increment).toFixed(r.precision);
|
|
4550
4554
|
},
|
|
4551
4555
|
/**
|
|
4552
4556
|
* Value for JSON serialization.
|
|
@@ -4556,7 +4560,7 @@ de.prototype = {
|
|
|
4556
4560
|
return this.value;
|
|
4557
4561
|
}
|
|
4558
4562
|
};
|
|
4559
|
-
function
|
|
4563
|
+
function Go(e) {
|
|
4560
4564
|
vr(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}');
|
|
4561
4565
|
}
|
|
4562
4566
|
function Cn(e, t, n) {
|
|
@@ -4567,7 +4571,7 @@ function Hn(e, t, n) {
|
|
|
4567
4571
|
const r = e.slice();
|
|
4568
4572
|
return r[53] = t[n], r;
|
|
4569
4573
|
}
|
|
4570
|
-
function
|
|
4574
|
+
function $o(e) {
|
|
4571
4575
|
let t, n, r = (
|
|
4572
4576
|
/*balances*/
|
|
4573
4577
|
(e[1].Total ? (
|
|
@@ -4577,101 +4581,101 @@ function Go(e) {
|
|
|
4577
4581
|
e[1].Total[0].amount
|
|
4578
4582
|
)
|
|
4579
4583
|
) : "0") + ""
|
|
4580
|
-
), i, o,
|
|
4584
|
+
), i, o, l, s, c, u, d, g, b, _, B, T, x = (
|
|
4581
4585
|
/*showBalance*/
|
|
4582
4586
|
e[4] && On(e)
|
|
4583
4587
|
);
|
|
4584
4588
|
return {
|
|
4585
4589
|
c() {
|
|
4586
|
-
t =
|
|
4590
|
+
t = k("button"), n = k("p"), i = fe(r), o = pe(), l = fe(
|
|
4587
4591
|
/*currency*/
|
|
4588
4592
|
e[5]
|
|
4589
|
-
),
|
|
4593
|
+
), s = pe(), c = k("span"), u = hn("svg"), d = hn("path"), b = pe(), x && x.c(), _ = _r(), M(d, "id", "arrow"), M(d, "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(d, "transform", "translate(-274.511 -441.088)"), M(d, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(c, "class", g = /*isModalDisplayed*/
|
|
4590
4594
|
e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
|
|
4591
4595
|
},
|
|
4592
|
-
m(
|
|
4593
|
-
be(
|
|
4596
|
+
m(S, P) {
|
|
4597
|
+
be(S, t, P), H(t, n), H(n, i), H(n, o), H(n, l), H(t, s), H(t, c), H(c, u), H(u, d), be(S, b, P), x && x.m(S, P), be(S, _, P), B || (T = gt(
|
|
4594
4598
|
t,
|
|
4595
4599
|
"click",
|
|
4596
4600
|
/*click_handler*/
|
|
4597
4601
|
e[25]
|
|
4598
|
-
),
|
|
4602
|
+
), B = !0);
|
|
4599
4603
|
},
|
|
4600
|
-
p(
|
|
4601
|
-
|
|
4604
|
+
p(S, P) {
|
|
4605
|
+
P[0] & /*balances*/
|
|
4602
4606
|
2 && r !== (r = /*balances*/
|
|
4603
|
-
(
|
|
4607
|
+
(S[1].Total ? (
|
|
4604
4608
|
/*formatBalance*/
|
|
4605
|
-
|
|
4609
|
+
S[8](
|
|
4606
4610
|
/*balances*/
|
|
4607
|
-
|
|
4611
|
+
S[1].Total[0].amount
|
|
4608
4612
|
)
|
|
4609
|
-
) : "0") + "") &&
|
|
4610
|
-
32 &&
|
|
4611
|
-
|
|
4613
|
+
) : "0") + "") && _e(i, r), P[0] & /*currency*/
|
|
4614
|
+
32 && _e(
|
|
4615
|
+
l,
|
|
4612
4616
|
/*currency*/
|
|
4613
|
-
|
|
4614
|
-
),
|
|
4617
|
+
S[5]
|
|
4618
|
+
), P[0] & /*isModalDisplayed*/
|
|
4615
4619
|
8 && g !== (g = /*isModalDisplayed*/
|
|
4616
|
-
|
|
4617
|
-
|
|
4620
|
+
S[3] ? "TriangleActive" : "TriangleInactive") && M(c, "class", g), /*showBalance*/
|
|
4621
|
+
S[4] ? x ? x.p(S, P) : (x = On(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
|
|
4618
4622
|
},
|
|
4619
|
-
d(
|
|
4620
|
-
|
|
4623
|
+
d(S) {
|
|
4624
|
+
S && (de(t), de(b), de(_)), x && x.d(S), B = !1, T();
|
|
4621
4625
|
}
|
|
4622
4626
|
};
|
|
4623
4627
|
}
|
|
4624
|
-
function
|
|
4628
|
+
function jo(e) {
|
|
4625
4629
|
let t, n = (
|
|
4626
4630
|
/*$_*/
|
|
4627
4631
|
e[6]("Loading") + ""
|
|
4628
4632
|
), r;
|
|
4629
4633
|
return {
|
|
4630
4634
|
c() {
|
|
4631
|
-
t =
|
|
4635
|
+
t = k("p"), r = fe(n), M(t, "class", "Loading");
|
|
4632
4636
|
},
|
|
4633
4637
|
m(i, o) {
|
|
4634
|
-
be(i, t, o),
|
|
4638
|
+
be(i, t, o), H(t, r);
|
|
4635
4639
|
},
|
|
4636
4640
|
p(i, o) {
|
|
4637
4641
|
o[0] & /*$_*/
|
|
4638
4642
|
64 && n !== (n = /*$_*/
|
|
4639
|
-
i[6]("Loading") + "") &&
|
|
4643
|
+
i[6]("Loading") + "") && _e(r, n);
|
|
4640
4644
|
},
|
|
4641
4645
|
d(i) {
|
|
4642
|
-
i &&
|
|
4646
|
+
i && de(t);
|
|
4643
4647
|
}
|
|
4644
4648
|
};
|
|
4645
4649
|
}
|
|
4646
4650
|
function On(e) {
|
|
4647
|
-
let t, n, r, i, o,
|
|
4651
|
+
let t, n, r, i, o, l, s, c, u = (
|
|
4648
4652
|
/*$_*/
|
|
4649
4653
|
e[6]("Title") + ""
|
|
4650
|
-
),
|
|
4654
|
+
), d, g, b, _, B, T, x = (
|
|
4651
4655
|
/*$_*/
|
|
4652
4656
|
e[6]("DepositButton") + ""
|
|
4653
|
-
),
|
|
4657
|
+
), S, P, C, D, W, J, Y = bt(Object.keys(
|
|
4654
4658
|
/*balances*/
|
|
4655
4659
|
e[1]
|
|
4656
|
-
)),
|
|
4657
|
-
for (let
|
|
4658
|
-
|
|
4660
|
+
)), G = [];
|
|
4661
|
+
for (let N = 0; N < Y.length; N += 1)
|
|
4662
|
+
G[N] = Ln(Cn(e, Y, N));
|
|
4659
4663
|
return {
|
|
4660
4664
|
c() {
|
|
4661
|
-
t =
|
|
4662
|
-
for (let
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
(e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(
|
|
4666
|
-
(e[3] ? "Open" : "")), M(o, "class",
|
|
4667
|
-
(e[3] ? "Open" : "")), M(t, "class",
|
|
4665
|
+
t = k("div"), n = k("button"), i = pe(), o = k("div"), l = k("div"), s = k("div"), c = k("p"), d = fe(u), g = pe(), b = k("div");
|
|
4666
|
+
for (let N = 0; N < G.length; N += 1)
|
|
4667
|
+
G[N].c();
|
|
4668
|
+
_ = pe(), B = k("div"), T = k("button"), S = fe(x), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
4669
|
+
(e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(b, "class", "BalanceModalBody"), M(T, "class", "BalanceModalAction"), M(B, "class", "BalanceModalFooter"), M(l, "class", P = "ModalContent " + /*isModalDisplayed*/
|
|
4670
|
+
(e[3] ? "Open" : "")), M(o, "class", C = "BalanceModal " + /*isModalDisplayed*/
|
|
4671
|
+
(e[3] ? "Open" : "")), M(t, "class", D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
4668
4672
|
(e[3] ? "Open" : ""));
|
|
4669
4673
|
},
|
|
4670
|
-
m(
|
|
4671
|
-
be(
|
|
4672
|
-
for (let
|
|
4673
|
-
|
|
4674
|
-
|
|
4674
|
+
m(N, $) {
|
|
4675
|
+
be(N, t, $), H(t, n), H(t, i), H(t, o), H(o, l), H(l, s), H(s, c), H(c, d), H(l, g), H(l, b);
|
|
4676
|
+
for (let U = 0; U < G.length; U += 1)
|
|
4677
|
+
G[U] && G[U].m(b, null);
|
|
4678
|
+
H(l, _), H(l, B), H(B, T), H(T, S), W || (J = [
|
|
4675
4679
|
gt(
|
|
4676
4680
|
n,
|
|
4677
4681
|
"click",
|
|
@@ -4679,45 +4683,45 @@ function On(e) {
|
|
|
4679
4683
|
e[26]
|
|
4680
4684
|
),
|
|
4681
4685
|
gt(
|
|
4682
|
-
|
|
4686
|
+
T,
|
|
4683
4687
|
"click",
|
|
4684
4688
|
/*click_handler_2*/
|
|
4685
4689
|
e[27]
|
|
4686
4690
|
)
|
|
4687
|
-
],
|
|
4691
|
+
], W = !0);
|
|
4688
4692
|
},
|
|
4689
|
-
p(
|
|
4690
|
-
if (
|
|
4693
|
+
p(N, $) {
|
|
4694
|
+
if ($[0] & /*isModalDisplayed*/
|
|
4691
4695
|
8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
4692
|
-
(
|
|
4696
|
+
(N[3] ? "Open" : "")) && M(n, "class", r), $[0] & /*$_*/
|
|
4693
4697
|
64 && u !== (u = /*$_*/
|
|
4694
|
-
|
|
4698
|
+
N[6]("Title") + "") && _e(d, u), $[0] & /*balances, currency, formatBalance, $_*/
|
|
4695
4699
|
354) {
|
|
4696
|
-
|
|
4700
|
+
Y = bt(Object.keys(
|
|
4697
4701
|
/*balances*/
|
|
4698
|
-
|
|
4702
|
+
N[1]
|
|
4699
4703
|
));
|
|
4700
|
-
let
|
|
4701
|
-
for (
|
|
4702
|
-
const
|
|
4703
|
-
|
|
4704
|
+
let U;
|
|
4705
|
+
for (U = 0; U < Y.length; U += 1) {
|
|
4706
|
+
const y = Cn(N, Y, U);
|
|
4707
|
+
G[U] ? G[U].p(y, $) : (G[U] = Ln(y), G[U].c(), G[U].m(b, null));
|
|
4704
4708
|
}
|
|
4705
|
-
for (;
|
|
4706
|
-
|
|
4707
|
-
|
|
4709
|
+
for (; U < G.length; U += 1)
|
|
4710
|
+
G[U].d(1);
|
|
4711
|
+
G.length = Y.length;
|
|
4708
4712
|
}
|
|
4709
|
-
|
|
4710
|
-
64 &&
|
|
4711
|
-
|
|
4712
|
-
8 &&
|
|
4713
|
-
(
|
|
4714
|
-
8 &&
|
|
4715
|
-
(
|
|
4716
|
-
8 &&
|
|
4717
|
-
(
|
|
4713
|
+
$[0] & /*$_*/
|
|
4714
|
+
64 && x !== (x = /*$_*/
|
|
4715
|
+
N[6]("DepositButton") + "") && _e(S, x), $[0] & /*isModalDisplayed*/
|
|
4716
|
+
8 && P !== (P = "ModalContent " + /*isModalDisplayed*/
|
|
4717
|
+
(N[3] ? "Open" : "")) && M(l, "class", P), $[0] & /*isModalDisplayed*/
|
|
4718
|
+
8 && C !== (C = "BalanceModal " + /*isModalDisplayed*/
|
|
4719
|
+
(N[3] ? "Open" : "")) && M(o, "class", C), $[0] & /*isModalDisplayed*/
|
|
4720
|
+
8 && D !== (D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
4721
|
+
(N[3] ? "Open" : "")) && M(t, "class", D);
|
|
4718
4722
|
},
|
|
4719
|
-
d(
|
|
4720
|
-
|
|
4723
|
+
d(N) {
|
|
4724
|
+
N && de(t), Dn(G, N), W = !1, Xe(J);
|
|
4721
4725
|
}
|
|
4722
4726
|
};
|
|
4723
4727
|
}
|
|
@@ -4728,7 +4732,7 @@ function Rn(e) {
|
|
|
4728
4732
|
/*k*/
|
|
4729
4733
|
e[50]
|
|
4730
4734
|
) + ""
|
|
4731
|
-
), i, o,
|
|
4735
|
+
), i, o, l = (
|
|
4732
4736
|
/*b*/
|
|
4733
4737
|
(e[53].productType ? (
|
|
4734
4738
|
/*$_*/
|
|
@@ -4737,7 +4741,7 @@ function Rn(e) {
|
|
|
4737
4741
|
e[53].productType
|
|
4738
4742
|
)
|
|
4739
4743
|
) : "") + ""
|
|
4740
|
-
),
|
|
4744
|
+
), s, c, u, d, g = (
|
|
4741
4745
|
/*b*/
|
|
4742
4746
|
(e[53].amount ? (
|
|
4743
4747
|
/*formatBalance*/
|
|
@@ -4746,48 +4750,48 @@ function Rn(e) {
|
|
|
4746
4750
|
e[53].amount
|
|
4747
4751
|
)
|
|
4748
4752
|
) : "0") + ""
|
|
4749
|
-
), b, B, T
|
|
4753
|
+
), b, _, B, T;
|
|
4750
4754
|
return {
|
|
4751
4755
|
c() {
|
|
4752
|
-
t =
|
|
4756
|
+
t = k("div"), n = k("p"), i = fe(r), o = pe(), s = fe(l), c = pe(), u = k("p"), d = k("span"), b = fe(g), _ = pe(), B = k("span"), T = fe(
|
|
4753
4757
|
/*currency*/
|
|
4754
4758
|
e[5]
|
|
4755
|
-
), M(n, "class", "BalanceModalText"), M(
|
|
4759
|
+
), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(B, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
|
|
4756
4760
|
},
|
|
4757
|
-
m(
|
|
4758
|
-
be(
|
|
4761
|
+
m(x, S) {
|
|
4762
|
+
be(x, t, S), H(t, n), H(n, i), H(n, o), H(n, s), H(t, c), H(t, u), H(u, d), H(d, b), H(u, _), H(u, B), H(B, T);
|
|
4759
4763
|
},
|
|
4760
|
-
p(
|
|
4761
|
-
|
|
4764
|
+
p(x, S) {
|
|
4765
|
+
S[0] & /*$_, balances*/
|
|
4762
4766
|
66 && r !== (r = /*$_*/
|
|
4763
|
-
|
|
4767
|
+
x[6](
|
|
4764
4768
|
/*k*/
|
|
4765
|
-
|
|
4766
|
-
) + "") &&
|
|
4767
|
-
66 &&
|
|
4768
|
-
(
|
|
4769
|
+
x[50]
|
|
4770
|
+
) + "") && _e(i, r), S[0] & /*balances, $_*/
|
|
4771
|
+
66 && l !== (l = /*b*/
|
|
4772
|
+
(x[53].productType ? (
|
|
4769
4773
|
/*$_*/
|
|
4770
|
-
|
|
4774
|
+
x[6](
|
|
4771
4775
|
/*b*/
|
|
4772
|
-
|
|
4776
|
+
x[53].productType
|
|
4773
4777
|
)
|
|
4774
|
-
) : "") + "") &&
|
|
4778
|
+
) : "") + "") && _e(s, l), S[0] & /*balances*/
|
|
4775
4779
|
2 && g !== (g = /*b*/
|
|
4776
|
-
(
|
|
4780
|
+
(x[53].amount ? (
|
|
4777
4781
|
/*formatBalance*/
|
|
4778
|
-
|
|
4782
|
+
x[8](
|
|
4779
4783
|
/*b*/
|
|
4780
|
-
|
|
4784
|
+
x[53].amount
|
|
4781
4785
|
)
|
|
4782
|
-
) : "0") + "") &&
|
|
4783
|
-
32 &&
|
|
4784
|
-
|
|
4786
|
+
) : "0") + "") && _e(b, g), S[0] & /*currency*/
|
|
4787
|
+
32 && _e(
|
|
4788
|
+
T,
|
|
4785
4789
|
/*currency*/
|
|
4786
|
-
|
|
4790
|
+
x[5]
|
|
4787
4791
|
);
|
|
4788
4792
|
},
|
|
4789
|
-
d(
|
|
4790
|
-
|
|
4793
|
+
d(x) {
|
|
4794
|
+
x && de(t);
|
|
4791
4795
|
}
|
|
4792
4796
|
};
|
|
4793
4797
|
}
|
|
@@ -4803,19 +4807,19 @@ function Ln(e) {
|
|
|
4803
4807
|
i[o] = Rn(Hn(e, r, o));
|
|
4804
4808
|
return {
|
|
4805
4809
|
c() {
|
|
4806
|
-
t =
|
|
4810
|
+
t = k("div");
|
|
4807
4811
|
for (let o = 0; o < i.length; o += 1)
|
|
4808
4812
|
i[o].c();
|
|
4809
|
-
n =
|
|
4813
|
+
n = pe(), M(t, "class", "BalanceModalRowBoth");
|
|
4810
4814
|
},
|
|
4811
|
-
m(o,
|
|
4812
|
-
be(o, t,
|
|
4813
|
-
for (let
|
|
4814
|
-
i[
|
|
4815
|
-
|
|
4815
|
+
m(o, l) {
|
|
4816
|
+
be(o, t, l);
|
|
4817
|
+
for (let s = 0; s < i.length; s += 1)
|
|
4818
|
+
i[s] && i[s].m(t, null);
|
|
4819
|
+
H(t, n);
|
|
4816
4820
|
},
|
|
4817
|
-
p(o,
|
|
4818
|
-
if (
|
|
4821
|
+
p(o, l) {
|
|
4822
|
+
if (l[0] & /*currency, balances, formatBalance, $_*/
|
|
4819
4823
|
354) {
|
|
4820
4824
|
r = bt(
|
|
4821
4825
|
/*balances*/
|
|
@@ -4824,18 +4828,18 @@ function Ln(e) {
|
|
|
4824
4828
|
o[50]
|
|
4825
4829
|
]
|
|
4826
4830
|
);
|
|
4827
|
-
let
|
|
4828
|
-
for (
|
|
4829
|
-
const c = Hn(o, r,
|
|
4830
|
-
i[
|
|
4831
|
+
let s;
|
|
4832
|
+
for (s = 0; s < r.length; s += 1) {
|
|
4833
|
+
const c = Hn(o, r, s);
|
|
4834
|
+
i[s] ? i[s].p(c, l) : (i[s] = Rn(c), i[s].c(), i[s].m(t, n));
|
|
4831
4835
|
}
|
|
4832
|
-
for (;
|
|
4833
|
-
i[
|
|
4836
|
+
for (; s < i.length; s += 1)
|
|
4837
|
+
i[s].d(1);
|
|
4834
4838
|
i.length = r.length;
|
|
4835
4839
|
}
|
|
4836
4840
|
},
|
|
4837
4841
|
d(o) {
|
|
4838
|
-
o &&
|
|
4842
|
+
o && de(t), Dn(i, o);
|
|
4839
4843
|
}
|
|
4840
4844
|
};
|
|
4841
4845
|
}
|
|
@@ -4843,7 +4847,7 @@ function Mn(e) {
|
|
|
4843
4847
|
let t, n, r;
|
|
4844
4848
|
return {
|
|
4845
4849
|
c() {
|
|
4846
|
-
t =
|
|
4850
|
+
t = k("button"), M(t, "class", "ShowBalanceModalOverlay");
|
|
4847
4851
|
},
|
|
4848
4852
|
m(i, o) {
|
|
4849
4853
|
be(i, t, o), n || (r = gt(
|
|
@@ -4853,9 +4857,9 @@ function Mn(e) {
|
|
|
4853
4857
|
e[28]
|
|
4854
4858
|
), n = !0);
|
|
4855
4859
|
},
|
|
4856
|
-
p:
|
|
4860
|
+
p: le,
|
|
4857
4861
|
d(i) {
|
|
4858
|
-
i &&
|
|
4862
|
+
i && de(t), n = !1, r();
|
|
4859
4863
|
}
|
|
4860
4864
|
};
|
|
4861
4865
|
}
|
|
@@ -4864,41 +4868,41 @@ function ko(e) {
|
|
|
4864
4868
|
function i(c, u) {
|
|
4865
4869
|
return (
|
|
4866
4870
|
/*isLoading*/
|
|
4867
|
-
c[2] ?
|
|
4871
|
+
c[2] ? jo : $o
|
|
4868
4872
|
);
|
|
4869
4873
|
}
|
|
4870
|
-
let o = i(e),
|
|
4874
|
+
let o = i(e), l = o(e), s = (
|
|
4871
4875
|
/*showBalance*/
|
|
4872
4876
|
e[4] && Mn(e)
|
|
4873
4877
|
);
|
|
4874
4878
|
return {
|
|
4875
4879
|
c() {
|
|
4876
|
-
t =
|
|
4880
|
+
t = k("div"), n = k("div"), l.c(), r = pe(), s && s.c(), M(n, "class", "ShowBalance");
|
|
4877
4881
|
},
|
|
4878
4882
|
m(c, u) {
|
|
4879
|
-
be(c, t, u),
|
|
4883
|
+
be(c, t, u), H(t, n), l.m(n, null), H(t, r), s && s.m(t, null), e[29](t);
|
|
4880
4884
|
},
|
|
4881
4885
|
p(c, u) {
|
|
4882
|
-
o === (o = i(c)) &&
|
|
4883
|
-
c[4] ?
|
|
4886
|
+
o === (o = i(c)) && l ? l.p(c, u) : (l.d(1), l = o(c), l && (l.c(), l.m(n, null))), /*showBalance*/
|
|
4887
|
+
c[4] ? s ? s.p(c, u) : (s = Mn(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4884
4888
|
},
|
|
4885
|
-
i:
|
|
4886
|
-
o:
|
|
4889
|
+
i: le,
|
|
4890
|
+
o: le,
|
|
4887
4891
|
d(c) {
|
|
4888
|
-
c &&
|
|
4892
|
+
c && de(t), l.d(), s && s.d(), e[29](null);
|
|
4889
4893
|
}
|
|
4890
4894
|
};
|
|
4891
4895
|
}
|
|
4892
|
-
function
|
|
4896
|
+
function Vo(e, t, n) {
|
|
4893
4897
|
let r;
|
|
4894
|
-
yr(e,
|
|
4895
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint:
|
|
4896
|
-
const
|
|
4897
|
-
fetch(g).then((
|
|
4898
|
+
yr(e, Lo, (a) => n(6, r = a));
|
|
4899
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: P = "" } = t, C, D = !0, W = !1, J = !1, Y = !1, G, N = "", $ = [], U;
|
|
4900
|
+
const y = {}, Be = ["totalCashAmount", "totalRealAmount"], qe = () => {
|
|
4901
|
+
fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => Sn(f, a[f]))).catch((a) => console.log(a));
|
|
4898
4902
|
};
|
|
4899
|
-
Object.keys(An).forEach((
|
|
4900
|
-
const
|
|
4901
|
-
switch (
|
|
4903
|
+
Object.keys(An).forEach((a) => Sn(a, An[a]));
|
|
4904
|
+
const Te = (a) => {
|
|
4905
|
+
switch (a) {
|
|
4902
4906
|
case "balance":
|
|
4903
4907
|
window.postMessage(
|
|
4904
4908
|
{
|
|
@@ -4906,10 +4910,10 @@ function jo(e, t, n) {
|
|
|
4906
4910
|
status: "open"
|
|
4907
4911
|
},
|
|
4908
4912
|
window.location.href
|
|
4909
|
-
), n(4,
|
|
4913
|
+
), n(4, Y = !0), setTimeout(() => n(3, W = !0), 150);
|
|
4910
4914
|
break;
|
|
4911
4915
|
case "closebalance":
|
|
4912
|
-
n(3,
|
|
4916
|
+
n(3, W = !1), window.postMessage(
|
|
4913
4917
|
{
|
|
4914
4918
|
type: "BalanceModalStatus",
|
|
4915
4919
|
status: "close"
|
|
@@ -4917,87 +4921,87 @@ function jo(e, t, n) {
|
|
|
4917
4921
|
window.location.href
|
|
4918
4922
|
), setTimeout(
|
|
4919
4923
|
() => {
|
|
4920
|
-
n(4,
|
|
4924
|
+
n(4, Y = !1);
|
|
4921
4925
|
},
|
|
4922
4926
|
150
|
|
4923
4927
|
);
|
|
4924
4928
|
break;
|
|
4925
4929
|
}
|
|
4926
|
-
},
|
|
4927
|
-
if (b.includes(
|
|
4930
|
+
}, Le = () => {
|
|
4931
|
+
if (b.includes(s))
|
|
4928
4932
|
return b;
|
|
4929
|
-
},
|
|
4930
|
-
separator:
|
|
4931
|
-
decimal:
|
|
4933
|
+
}, me = (a) => b ? new Intl.NumberFormat(Le(), { useGrouping: !0 }).format(a) : x && S ? he(a, {
|
|
4934
|
+
separator: x,
|
|
4935
|
+
decimal: S,
|
|
4932
4936
|
symbol: "",
|
|
4933
|
-
precision: parseInt(
|
|
4934
|
-
}).format() :
|
|
4937
|
+
precision: parseInt(P || "2", 10)
|
|
4938
|
+
}).format() : he(a, {
|
|
4935
4939
|
separator: ".",
|
|
4936
4940
|
decimal: ",",
|
|
4937
4941
|
symbol: "",
|
|
4938
|
-
precision: parseInt(
|
|
4939
|
-
}).format(),
|
|
4940
|
-
var
|
|
4941
|
-
n(2,
|
|
4942
|
-
const
|
|
4942
|
+
precision: parseInt(P || "2", 10)
|
|
4943
|
+
}).format(), we = () => Pt(this, null, function* () {
|
|
4944
|
+
var f, p, h;
|
|
4945
|
+
n(2, D = !0);
|
|
4946
|
+
const a = new URL(`${l}/v1/player/${i}/account`);
|
|
4943
4947
|
try {
|
|
4944
|
-
const
|
|
4948
|
+
const E = yield fetch(a, {
|
|
4945
4949
|
method: "GET",
|
|
4946
4950
|
headers: { "X-SessionID": o }
|
|
4947
|
-
}),
|
|
4948
|
-
if (
|
|
4949
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
4951
|
+
}), v = yield E.json();
|
|
4952
|
+
if (E.ok)
|
|
4953
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), $ = v.items, n(5, N = (f = $.find((m) => m.displayName === "Casino")) == null ? void 0 : f.currency), n(1, y.Total = [{ amount: v.totalAmount[N] }], y), n(
|
|
4950
4954
|
1,
|
|
4951
|
-
|
|
4955
|
+
y.Real = [
|
|
4952
4956
|
{
|
|
4953
|
-
amount: (
|
|
4957
|
+
amount: (p = $.find((m) => m.displayName === "Casino")) == null ? void 0 : p.balanceAmount
|
|
4954
4958
|
}
|
|
4955
4959
|
],
|
|
4956
|
-
|
|
4960
|
+
y
|
|
4957
4961
|
), n(
|
|
4958
4962
|
1,
|
|
4959
|
-
|
|
4963
|
+
y.Bonus = [
|
|
4960
4964
|
{
|
|
4961
|
-
amount: (
|
|
4965
|
+
amount: (h = $.find((m) => m.displayName === "UBS")) == null ? void 0 : h.balanceAmount
|
|
4962
4966
|
}
|
|
4963
4967
|
],
|
|
4964
|
-
|
|
4968
|
+
y
|
|
4965
4969
|
);
|
|
4966
4970
|
else
|
|
4967
4971
|
throw new Error("Failed to fetch balance data !");
|
|
4968
|
-
} catch (
|
|
4969
|
-
console.log("Balance error: ",
|
|
4972
|
+
} catch (E) {
|
|
4973
|
+
console.log("Balance error: ", E);
|
|
4970
4974
|
} finally {
|
|
4971
|
-
n(2,
|
|
4975
|
+
n(2, D = !1);
|
|
4972
4976
|
}
|
|
4973
|
-
}),
|
|
4974
|
-
n(2,
|
|
4975
|
-
const
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
const
|
|
4979
|
-
if (n(5,
|
|
4980
|
-
|
|
4977
|
+
}), Ce = () => {
|
|
4978
|
+
n(2, D = !0);
|
|
4979
|
+
const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
|
|
4980
|
+
f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((h) => h.json()).then((h) => {
|
|
4981
|
+
h[T] || n(10, T = Be[0]);
|
|
4982
|
+
const E = h.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
|
|
4983
|
+
if (n(5, N = E.currency), J = !!E.productType, n(1, y.Total = [{ amount: 0 }], y), n(1, y.Real = [], y), n(1, y.Bonus = [], y), n(1, y.Credit = [], y), !J) {
|
|
4984
|
+
U = {
|
|
4981
4985
|
lastOrdinaryAfterAmount: 0,
|
|
4982
4986
|
showCreditLineAfterAmount: !1
|
|
4983
|
-
}, n(1,
|
|
4984
|
-
for (const
|
|
4985
|
-
switch (
|
|
4987
|
+
}, n(1, y.Total[0].amount = h[T][N], y);
|
|
4988
|
+
for (const m of h.items)
|
|
4989
|
+
switch (m.type) {
|
|
4986
4990
|
case "Bonus":
|
|
4987
|
-
|
|
4991
|
+
y.Bonus.length === 0 ? y.Bonus.push({ amount: m.amount }) : n(1, y.Bonus[0].amount += m.amount, y);
|
|
4988
4992
|
break;
|
|
4989
4993
|
case "Real":
|
|
4990
|
-
if (
|
|
4994
|
+
if (m.creditLine && y.Credit.length === 0 && y.Credit.push({ amount: m.creditLine }), T === "totalRealAmount")
|
|
4991
4995
|
continue;
|
|
4992
|
-
|
|
4996
|
+
y.Real.length === 0 ? y.Real.push({ amount: m.amount }) : n(1, y.Real[0].amount += m.amount, y);
|
|
4993
4997
|
break;
|
|
4994
4998
|
}
|
|
4995
|
-
for (const [
|
|
4996
|
-
|
|
4997
|
-
n(2,
|
|
4999
|
+
for (const [m, R] of Object.entries(y))
|
|
5000
|
+
R.length < 1 && delete y[m];
|
|
5001
|
+
n(2, D = !1);
|
|
4998
5002
|
return;
|
|
4999
5003
|
}
|
|
5000
|
-
|
|
5004
|
+
U = {
|
|
5001
5005
|
Casino: {
|
|
5002
5006
|
lastOrdinaryAfterAmount: 0,
|
|
5003
5007
|
showCreditLineAfterAmount: !1
|
|
@@ -5007,200 +5011,200 @@ function jo(e, t, n) {
|
|
|
5007
5011
|
showCreditLineAfterAmount: !1
|
|
5008
5012
|
}
|
|
5009
5013
|
};
|
|
5010
|
-
let
|
|
5011
|
-
|
|
5012
|
-
for (const
|
|
5013
|
-
let
|
|
5014
|
-
switch (
|
|
5014
|
+
let v = h.items;
|
|
5015
|
+
B && B !== "All" && (v = h.items.filter((m) => m.productType === B));
|
|
5016
|
+
for (const m of v) {
|
|
5017
|
+
let R;
|
|
5018
|
+
switch (m.type) {
|
|
5015
5019
|
case "Bonus":
|
|
5016
|
-
|
|
5017
|
-
amount:
|
|
5018
|
-
productType:
|
|
5020
|
+
R = y.Bonus.findIndex((A) => A.productType === m.productType), R > 0 ? n(1, y.Bonus[R].amount += m.amount, y) : y.Bonus.push({
|
|
5021
|
+
amount: m.amount,
|
|
5022
|
+
productType: m.productType
|
|
5019
5023
|
});
|
|
5020
5024
|
break;
|
|
5021
5025
|
case "Real":
|
|
5022
|
-
|
|
5023
|
-
amount:
|
|
5024
|
-
productType:
|
|
5025
|
-
}),
|
|
5026
|
-
amount:
|
|
5027
|
-
productType:
|
|
5026
|
+
m.creditLine && y.Credit.push({
|
|
5027
|
+
amount: m.creditLine,
|
|
5028
|
+
productType: m.productType
|
|
5029
|
+
}), R = y.Real.findIndex((A) => A.productType === m.productType), R > 0 ? n(1, y.Real[R].amount += m.amount, y) : y.Real.push({
|
|
5030
|
+
amount: m.amount,
|
|
5031
|
+
productType: m.productType
|
|
5028
5032
|
});
|
|
5029
5033
|
break;
|
|
5030
5034
|
}
|
|
5031
5035
|
}
|
|
5032
5036
|
at();
|
|
5033
|
-
for (const [
|
|
5034
|
-
|
|
5035
|
-
n(2,
|
|
5036
|
-
}).catch((
|
|
5037
|
-
throw n(2,
|
|
5037
|
+
for (const [m, R] of Object.entries(y))
|
|
5038
|
+
R.length < 1 && delete y[m];
|
|
5039
|
+
n(2, D = !1);
|
|
5040
|
+
}).catch((h) => {
|
|
5041
|
+
throw n(2, D = !1), console.log("Balance fetch error", h), new Error("Failed to fetch balance data!");
|
|
5038
5042
|
});
|
|
5039
|
-
},
|
|
5040
|
-
if (
|
|
5043
|
+
}, He = () => {
|
|
5044
|
+
if (G && G.close(), o.length < 1)
|
|
5041
5045
|
return;
|
|
5042
|
-
let
|
|
5043
|
-
switch (
|
|
5046
|
+
let a, f;
|
|
5047
|
+
switch (_) {
|
|
5044
5048
|
case "gm16":
|
|
5045
|
-
|
|
5049
|
+
a = new URL(`${l}/v2/player/${i}/information/updates`), f = (E) => St(E);
|
|
5046
5050
|
break;
|
|
5047
5051
|
case "gmcore":
|
|
5048
|
-
|
|
5052
|
+
a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (E) => Qe(E);
|
|
5049
5053
|
break;
|
|
5050
5054
|
}
|
|
5051
|
-
const
|
|
5055
|
+
const p = {
|
|
5052
5056
|
accept: "text/event-stream",
|
|
5053
5057
|
"X-SessionId": o
|
|
5054
|
-
},
|
|
5055
|
-
|
|
5056
|
-
},
|
|
5057
|
-
let
|
|
5058
|
+
}, h = new No.EventSourcePolyfill(a, { headers: p });
|
|
5059
|
+
G = h, h.addEventListener("message", f);
|
|
5060
|
+
}, ue = (a) => {
|
|
5061
|
+
let f;
|
|
5058
5062
|
try {
|
|
5059
|
-
|
|
5060
|
-
} catch (
|
|
5061
|
-
console.log("Balance stream failed: ",
|
|
5063
|
+
f = JSON.parse(a);
|
|
5064
|
+
} catch (p) {
|
|
5065
|
+
console.log("Balance stream failed: ", p);
|
|
5062
5066
|
return;
|
|
5063
5067
|
}
|
|
5064
|
-
return
|
|
5065
|
-
},
|
|
5066
|
-
var
|
|
5067
|
-
const
|
|
5068
|
-
if (!
|
|
5069
|
-
|
|
5068
|
+
return f;
|
|
5069
|
+
}, Qe = (a) => {
|
|
5070
|
+
var E, v;
|
|
5071
|
+
const f = ue(a.data);
|
|
5072
|
+
if (!f) {
|
|
5073
|
+
He();
|
|
5070
5074
|
return;
|
|
5071
5075
|
}
|
|
5072
|
-
let
|
|
5073
|
-
const
|
|
5074
|
-
|
|
5075
|
-
balanceAmount: m
|
|
5076
|
-
})),
|
|
5077
|
-
},
|
|
5078
|
-
let
|
|
5079
|
-
switch (
|
|
5076
|
+
let p = "0";
|
|
5077
|
+
const h = f.balanceChange;
|
|
5078
|
+
$ = $.map((m) => (h && h[m.id] && (m = It(Nt({}, m), {
|
|
5079
|
+
balanceAmount: h[m.id].afterAmount
|
|
5080
|
+
})), p = (parseFloat(m == null ? void 0 : m.balanceAmount) + parseFloat(p)).toString(), m)), n(1, y.Real = [{ amount: (E = $[0]) == null ? void 0 : E.balanceAmount }], y), n(1, y.Bonus = [{ amount: (v = $[1]) == null ? void 0 : v.balanceAmount }], y), n(1, y.Total = [{ amount: Number(p) }], y);
|
|
5081
|
+
}, Me = (a, f, p) => {
|
|
5082
|
+
let h = null;
|
|
5083
|
+
switch (p.walletAccountType) {
|
|
5080
5084
|
case "Ordinary":
|
|
5081
|
-
(
|
|
5085
|
+
(p.afterAmount !== p.affectedAmount || f.lastOrdinaryAfterAmount === 0) && (f.lastOrdinaryAfterAmount = p.afterAmount, f.showCreditLineAfterAmount || (h = p.afterAmount));
|
|
5082
5086
|
break;
|
|
5083
5087
|
case "CreditLine":
|
|
5084
|
-
|
|
5088
|
+
p.afterAmount !== 0 ? (h = p.afterAmount, f.showCreditLineAfterAmount = !0) : (h = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
|
|
5085
5089
|
break;
|
|
5086
5090
|
default:
|
|
5087
|
-
|
|
5091
|
+
h = p.afterAmount;
|
|
5088
5092
|
}
|
|
5089
|
-
return
|
|
5093
|
+
return h === null ? a : h;
|
|
5090
5094
|
}, at = () => {
|
|
5091
|
-
switch (
|
|
5095
|
+
switch (T) {
|
|
5092
5096
|
case "totalCashAmount":
|
|
5093
|
-
let
|
|
5094
|
-
for (const
|
|
5095
|
-
for (const
|
|
5096
|
-
|
|
5097
|
-
n(1,
|
|
5097
|
+
let a = 0;
|
|
5098
|
+
for (const p of ["Real", "Bonus"])
|
|
5099
|
+
for (const h of y[p])
|
|
5100
|
+
a += Math.max(h.amount, 0);
|
|
5101
|
+
n(1, y.Total[0].amount = a, y);
|
|
5098
5102
|
break;
|
|
5099
5103
|
case "totalRealAmount":
|
|
5100
|
-
if (!
|
|
5104
|
+
if (!J)
|
|
5101
5105
|
return;
|
|
5102
|
-
let
|
|
5103
|
-
for (const
|
|
5104
|
-
|
|
5105
|
-
n(1,
|
|
5106
|
+
let f = 0;
|
|
5107
|
+
for (const p of y.Real)
|
|
5108
|
+
f += p.amount;
|
|
5109
|
+
n(1, y.Total[0].amount = f, y);
|
|
5106
5110
|
}
|
|
5107
|
-
},
|
|
5108
|
-
const
|
|
5109
|
-
if (!
|
|
5110
|
-
|
|
5111
|
+
}, St = (a) => {
|
|
5112
|
+
const f = ue(a.data);
|
|
5113
|
+
if (!f) {
|
|
5114
|
+
He();
|
|
5111
5115
|
return;
|
|
5112
5116
|
}
|
|
5113
|
-
if (
|
|
5117
|
+
if (f.type !== "BALANCE_UPDATE_V2")
|
|
5114
5118
|
return;
|
|
5115
|
-
const
|
|
5116
|
-
for (const [
|
|
5117
|
-
if (
|
|
5118
|
-
for (const
|
|
5119
|
-
if (!
|
|
5120
|
-
|
|
5119
|
+
const p = f.body.balanceChange;
|
|
5120
|
+
for (const [h, E] of Object.entries(p))
|
|
5121
|
+
if (T === "totalRealAmount" && h === "Real" && !J && n(1, y.Total[0].amount = Me(y.Total[0].amount, U, E), y), !!y[h])
|
|
5122
|
+
for (const v of y[h]) {
|
|
5123
|
+
if (!J) {
|
|
5124
|
+
v.amount = h === "Real" ? Me(v.amount, U, E) : E.afterAmount;
|
|
5121
5125
|
continue;
|
|
5122
5126
|
}
|
|
5123
|
-
|
|
5127
|
+
E.productType === v.productType && (v.amount = h === "Real" ? Me(v.amount, U[v.productType], E) : E.afterAmount);
|
|
5124
5128
|
}
|
|
5125
5129
|
at();
|
|
5126
5130
|
}, st = () => {
|
|
5127
|
-
|
|
5128
|
-
},
|
|
5129
|
-
|
|
5130
|
-
},
|
|
5131
|
-
switch (
|
|
5131
|
+
Te("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5132
|
+
}, At = () => {
|
|
5133
|
+
Be.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${Be}. Using default value ('${Be[0]}').`), n(10, T = Be[0]));
|
|
5134
|
+
}, Je = () => {
|
|
5135
|
+
switch (Mo(s), At(), _) {
|
|
5132
5136
|
case "gmcore":
|
|
5133
|
-
|
|
5137
|
+
we();
|
|
5134
5138
|
break;
|
|
5135
5139
|
case "gm16":
|
|
5136
|
-
|
|
5140
|
+
Ce();
|
|
5137
5141
|
break;
|
|
5138
5142
|
default:
|
|
5139
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
5143
|
+
throw Error(`Invalid apiversion attribute: ${_}`);
|
|
5140
5144
|
}
|
|
5141
|
-
},
|
|
5145
|
+
}, Ne = (a) => a.data && a.data.type === "LogoutSuccessfull" && G.close(), Se = () => {
|
|
5142
5146
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5143
5147
|
};
|
|
5144
|
-
Sr(() => (window.addEventListener("message",
|
|
5145
|
-
window.
|
|
5148
|
+
Sr(() => (window.addEventListener("message", Ne, !1), () => {
|
|
5149
|
+
window.removeEventListener("message", Ne), G && G.close();
|
|
5146
5150
|
}));
|
|
5147
|
-
const
|
|
5148
|
-
function
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
+
const re = () => Te("balance"), Ct = () => Te("closebalance"), Ht = () => st(), Ot = () => Te("closeBalance");
|
|
5152
|
+
function lt(a) {
|
|
5153
|
+
Vt[a ? "unshift" : "push"](() => {
|
|
5154
|
+
C = a, n(0, C);
|
|
5151
5155
|
});
|
|
5152
5156
|
}
|
|
5153
|
-
return e.$$set = (
|
|
5154
|
-
"userid" in
|
|
5157
|
+
return e.$$set = (a) => {
|
|
5158
|
+
"userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, c = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, g = a.translationurl), "customlocaleidentifier" in a && n(19, b = a.customlocaleidentifier), "gmversion" in a && n(20, _ = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, x = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, P = a.currencyprecision);
|
|
5155
5159
|
}, e.$$.update = () => {
|
|
5156
5160
|
e.$$.dirty[0] & /*lang*/
|
|
5157
|
-
16384 &&
|
|
5158
|
-
3176448 &&
|
|
5159
|
-
1062912 &&
|
|
5160
|
-
262144 && g &&
|
|
5161
|
-
2 &&
|
|
5162
|
-
65537 && u &&
|
|
5163
|
-
131073 &&
|
|
5164
|
-
32769 && c &&
|
|
5161
|
+
16384 && s && Le(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5162
|
+
3176448 && l && i && o && s && _ && B && Je(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5163
|
+
1062912 && l && i && o && _ && He(), e.$$.dirty[0] & /*translationurl*/
|
|
5164
|
+
262144 && g && qe(), e.$$.dirty[0] & /*balances*/
|
|
5165
|
+
2 && y.Total && Se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5166
|
+
65537 && u && C && Gr(C, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5167
|
+
131073 && d && C && $r(C, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5168
|
+
32769 && c && C && jr(C, `${c}.Style`);
|
|
5165
5169
|
}, [
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5170
|
+
C,
|
|
5171
|
+
y,
|
|
5172
|
+
D,
|
|
5173
|
+
W,
|
|
5174
|
+
Y,
|
|
5175
|
+
N,
|
|
5172
5176
|
r,
|
|
5173
|
-
|
|
5174
|
-
|
|
5177
|
+
Te,
|
|
5178
|
+
me,
|
|
5175
5179
|
st,
|
|
5176
|
-
|
|
5180
|
+
T,
|
|
5177
5181
|
i,
|
|
5178
5182
|
o,
|
|
5183
|
+
l,
|
|
5179
5184
|
s,
|
|
5180
|
-
a,
|
|
5181
5185
|
c,
|
|
5182
5186
|
u,
|
|
5183
|
-
|
|
5187
|
+
d,
|
|
5184
5188
|
g,
|
|
5185
5189
|
b,
|
|
5186
|
-
B,
|
|
5187
|
-
T,
|
|
5188
5190
|
_,
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5191
|
+
B,
|
|
5192
|
+
x,
|
|
5193
|
+
S,
|
|
5194
|
+
P,
|
|
5195
|
+
re,
|
|
5193
5196
|
Ct,
|
|
5194
|
-
|
|
5195
|
-
|
|
5197
|
+
Ht,
|
|
5198
|
+
Ot,
|
|
5199
|
+
lt
|
|
5196
5200
|
];
|
|
5197
5201
|
}
|
|
5198
|
-
class
|
|
5202
|
+
class Xo extends Ur {
|
|
5199
5203
|
constructor(t) {
|
|
5200
5204
|
super(), Pr(
|
|
5201
5205
|
this,
|
|
5202
5206
|
t,
|
|
5203
|
-
|
|
5207
|
+
Vo,
|
|
5204
5208
|
ko,
|
|
5205
5209
|
In,
|
|
5206
5210
|
{
|
|
@@ -5220,7 +5224,7 @@ class Vo extends Ur {
|
|
|
5220
5224
|
currencydecimal: 23,
|
|
5221
5225
|
currencyprecision: 24
|
|
5222
5226
|
},
|
|
5223
|
-
|
|
5227
|
+
Go,
|
|
5224
5228
|
[-1, -1]
|
|
5225
5229
|
);
|
|
5226
5230
|
}
|
|
@@ -5228,94 +5232,94 @@ class Vo extends Ur {
|
|
|
5228
5232
|
return this.$$.ctx[11];
|
|
5229
5233
|
}
|
|
5230
5234
|
set userid(t) {
|
|
5231
|
-
this.$$set({ userid: t }),
|
|
5235
|
+
this.$$set({ userid: t }), Q();
|
|
5232
5236
|
}
|
|
5233
5237
|
get session() {
|
|
5234
5238
|
return this.$$.ctx[12];
|
|
5235
5239
|
}
|
|
5236
5240
|
set session(t) {
|
|
5237
|
-
this.$$set({ session: t }),
|
|
5241
|
+
this.$$set({ session: t }), Q();
|
|
5238
5242
|
}
|
|
5239
5243
|
get endpoint() {
|
|
5240
5244
|
return this.$$.ctx[13];
|
|
5241
5245
|
}
|
|
5242
5246
|
set endpoint(t) {
|
|
5243
|
-
this.$$set({ endpoint: t }),
|
|
5247
|
+
this.$$set({ endpoint: t }), Q();
|
|
5244
5248
|
}
|
|
5245
5249
|
get lang() {
|
|
5246
5250
|
return this.$$.ctx[14];
|
|
5247
5251
|
}
|
|
5248
5252
|
set lang(t) {
|
|
5249
|
-
this.$$set({ lang: t }),
|
|
5253
|
+
this.$$set({ lang: t }), Q();
|
|
5250
5254
|
}
|
|
5251
5255
|
get mbsource() {
|
|
5252
5256
|
return this.$$.ctx[15];
|
|
5253
5257
|
}
|
|
5254
5258
|
set mbsource(t) {
|
|
5255
|
-
this.$$set({ mbsource: t }),
|
|
5259
|
+
this.$$set({ mbsource: t }), Q();
|
|
5256
5260
|
}
|
|
5257
5261
|
get clientstyling() {
|
|
5258
5262
|
return this.$$.ctx[16];
|
|
5259
5263
|
}
|
|
5260
5264
|
set clientstyling(t) {
|
|
5261
|
-
this.$$set({ clientstyling: t }),
|
|
5265
|
+
this.$$set({ clientstyling: t }), Q();
|
|
5262
5266
|
}
|
|
5263
5267
|
get clientstylingurl() {
|
|
5264
5268
|
return this.$$.ctx[17];
|
|
5265
5269
|
}
|
|
5266
5270
|
set clientstylingurl(t) {
|
|
5267
|
-
this.$$set({ clientstylingurl: t }),
|
|
5271
|
+
this.$$set({ clientstylingurl: t }), Q();
|
|
5268
5272
|
}
|
|
5269
5273
|
get translationurl() {
|
|
5270
5274
|
return this.$$.ctx[18];
|
|
5271
5275
|
}
|
|
5272
5276
|
set translationurl(t) {
|
|
5273
|
-
this.$$set({ translationurl: t }),
|
|
5277
|
+
this.$$set({ translationurl: t }), Q();
|
|
5274
5278
|
}
|
|
5275
5279
|
get customlocaleidentifier() {
|
|
5276
5280
|
return this.$$.ctx[19];
|
|
5277
5281
|
}
|
|
5278
5282
|
set customlocaleidentifier(t) {
|
|
5279
|
-
this.$$set({ customlocaleidentifier: t }),
|
|
5283
|
+
this.$$set({ customlocaleidentifier: t }), Q();
|
|
5280
5284
|
}
|
|
5281
5285
|
get gmversion() {
|
|
5282
5286
|
return this.$$.ctx[20];
|
|
5283
5287
|
}
|
|
5284
5288
|
set gmversion(t) {
|
|
5285
|
-
this.$$set({ gmversion: t }),
|
|
5289
|
+
this.$$set({ gmversion: t }), Q();
|
|
5286
5290
|
}
|
|
5287
5291
|
get displaybalanceoption() {
|
|
5288
5292
|
return this.$$.ctx[21];
|
|
5289
5293
|
}
|
|
5290
5294
|
set displaybalanceoption(t) {
|
|
5291
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5295
|
+
this.$$set({ displaybalanceoption: t }), Q();
|
|
5292
5296
|
}
|
|
5293
5297
|
get totalcalculationmode() {
|
|
5294
5298
|
return this.$$.ctx[10];
|
|
5295
5299
|
}
|
|
5296
5300
|
set totalcalculationmode(t) {
|
|
5297
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5301
|
+
this.$$set({ totalcalculationmode: t }), Q();
|
|
5298
5302
|
}
|
|
5299
5303
|
get currencyseparator() {
|
|
5300
5304
|
return this.$$.ctx[22];
|
|
5301
5305
|
}
|
|
5302
5306
|
set currencyseparator(t) {
|
|
5303
|
-
this.$$set({ currencyseparator: t }),
|
|
5307
|
+
this.$$set({ currencyseparator: t }), Q();
|
|
5304
5308
|
}
|
|
5305
5309
|
get currencydecimal() {
|
|
5306
5310
|
return this.$$.ctx[23];
|
|
5307
5311
|
}
|
|
5308
5312
|
set currencydecimal(t) {
|
|
5309
|
-
this.$$set({ currencydecimal: t }),
|
|
5313
|
+
this.$$set({ currencydecimal: t }), Q();
|
|
5310
5314
|
}
|
|
5311
5315
|
get currencyprecision() {
|
|
5312
5316
|
return this.$$.ctx[24];
|
|
5313
5317
|
}
|
|
5314
5318
|
set currencyprecision(t) {
|
|
5315
|
-
this.$$set({ currencyprecision: t }),
|
|
5319
|
+
this.$$set({ currencyprecision: t }), Q();
|
|
5316
5320
|
}
|
|
5317
5321
|
}
|
|
5318
|
-
Dr(
|
|
5322
|
+
Dr(Xo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
|
5319
5323
|
export {
|
|
5320
|
-
|
|
5324
|
+
Xo as default
|
|
5321
5325
|
};
|