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