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