@everymatrix/casino-tournaments-tab 1.74.10 → 1.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoTournamentsTab-BrSstAfx.cjs +18 -0
- package/components/{CasinoTournamentsTab-CW-afgeL.js → CasinoTournamentsTab-Dn32vmMJ.js} +630 -616
- package/components/{CasinoTournamentsTab-BEAfjge4.js → CasinoTournamentsTab-FpJocnPT.js} +666 -652
- package/es2015/casino-tournaments-tab.cjs +1 -1
- package/es2015/casino-tournaments-tab.js +1 -1
- package/esnext/casino-tournaments-tab.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsTab-CtJV1gll.cjs +0 -18
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var cr = Object.defineProperty, pr = Object.defineProperties;
|
|
2
|
+
var mr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var se = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Ke = Object.prototype.hasOwnProperty, et = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ee = (e, t, r) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Q = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Ke.call(t, r) && Ee(e, r, t[r]);
|
|
8
8
|
if (se)
|
|
9
9
|
for (var r of se(t))
|
|
10
|
-
|
|
10
|
+
et.call(t, r) && Ee(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, _e = (e, t) => pr(e, mr(t));
|
|
13
|
+
var tt = (e, t) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var n in e)
|
|
16
|
-
|
|
16
|
+
Ke.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
17
17
|
if (e != null && se)
|
|
18
18
|
for (var n of se(e))
|
|
19
|
-
t.indexOf(n) < 0 &&
|
|
19
|
+
t.indexOf(n) < 0 && et.call(e, n) && (r[n] = e[n]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
var x = (e, t, r) => (
|
|
23
|
-
var
|
|
22
|
+
var x = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
23
|
+
var rt = (e, t, r) => new Promise((n, i) => {
|
|
24
24
|
var o = (h) => {
|
|
25
25
|
try {
|
|
26
26
|
a(r.next(h));
|
|
@@ -38,25 +38,25 @@ var et = (e, t, r) => new Promise((n, i) => {
|
|
|
38
38
|
});
|
|
39
39
|
function w() {
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function It(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function nt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
47
|
function te(e) {
|
|
48
|
-
e.forEach(
|
|
48
|
+
e.forEach(It);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function ze(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Lt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function dr(e) {
|
|
57
57
|
return Object.keys(e).length === 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function br(e, ...t) {
|
|
60
60
|
if (e == null) {
|
|
61
61
|
for (const n of t)
|
|
62
62
|
n(void 0);
|
|
@@ -68,14 +68,14 @@ function dr(e, ...t) {
|
|
|
68
68
|
function C(e, t) {
|
|
69
69
|
e.appendChild(t);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const n =
|
|
71
|
+
function gr(e, t, r) {
|
|
72
|
+
const n = vr(e);
|
|
73
73
|
if (!n.getElementById(t)) {
|
|
74
74
|
const i = I("style");
|
|
75
|
-
i.id = t, i.textContent = r,
|
|
75
|
+
i.id = t, i.textContent = r, yr(n, i);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function vr(e) {
|
|
79
79
|
if (!e)
|
|
80
80
|
return document;
|
|
81
81
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -85,7 +85,7 @@ function mr(e) {
|
|
|
85
85
|
t
|
|
86
86
|
) : e.ownerDocument;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function yr(e, t) {
|
|
89
89
|
return C(
|
|
90
90
|
/** @type {Document} */
|
|
91
91
|
e.head || e,
|
|
@@ -98,33 +98,33 @@ function re(e, t, r) {
|
|
|
98
98
|
function X(e) {
|
|
99
99
|
e.parentNode && e.parentNode.removeChild(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Er(e, t) {
|
|
102
102
|
for (let r = 0; r < e.length; r += 1)
|
|
103
103
|
e[r] && e[r].d(t);
|
|
104
104
|
}
|
|
105
105
|
function I(e) {
|
|
106
106
|
return document.createElement(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function We(e) {
|
|
109
109
|
return document.createTextNode(e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function it() {
|
|
112
|
+
return We(" ");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function _r(e, t, r, n) {
|
|
115
115
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
116
|
}
|
|
117
117
|
function S(e, t, r) {
|
|
118
118
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function xr(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Nt(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Tr(e) {
|
|
128
128
|
const t = {};
|
|
129
129
|
return e.childNodes.forEach(
|
|
130
130
|
/** @param {Element} node */
|
|
@@ -137,22 +137,22 @@ let q;
|
|
|
137
137
|
function Y(e) {
|
|
138
138
|
q = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Sr() {
|
|
141
141
|
if (!q)
|
|
142
142
|
throw new Error("Function called outside component initialization");
|
|
143
143
|
return q;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
145
|
+
function Ct(e) {
|
|
146
|
+
Sr().$$.on_mount.push(e);
|
|
147
147
|
}
|
|
148
|
-
const U = [],
|
|
148
|
+
const U = [], Oe = [];
|
|
149
149
|
let D = [];
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
function
|
|
153
|
-
|
|
150
|
+
const ot = [], wr = /* @__PURE__ */ Promise.resolve();
|
|
151
|
+
let Ie = !1;
|
|
152
|
+
function Hr() {
|
|
153
|
+
Ie || (Ie = !0, wr.then(P));
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Le(e) {
|
|
156
156
|
D.push(e);
|
|
157
157
|
}
|
|
158
158
|
const xe = /* @__PURE__ */ new Set();
|
|
@@ -165,56 +165,56 @@ function P() {
|
|
|
165
165
|
try {
|
|
166
166
|
for (; $ < U.length; ) {
|
|
167
167
|
const t = U[$];
|
|
168
|
-
$++, Y(t),
|
|
168
|
+
$++, Y(t), Br(t.$$);
|
|
169
169
|
}
|
|
170
170
|
} catch (t) {
|
|
171
171
|
throw U.length = 0, $ = 0, t;
|
|
172
172
|
}
|
|
173
|
-
for (Y(null), U.length = 0, $ = 0;
|
|
174
|
-
|
|
173
|
+
for (Y(null), U.length = 0, $ = 0; Oe.length; )
|
|
174
|
+
Oe.pop()();
|
|
175
175
|
for (let t = 0; t < D.length; t += 1) {
|
|
176
176
|
const r = D[t];
|
|
177
177
|
xe.has(r) || (xe.add(r), r());
|
|
178
178
|
}
|
|
179
179
|
D.length = 0;
|
|
180
180
|
} while (U.length);
|
|
181
|
-
for (;
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
for (; ot.length; )
|
|
182
|
+
ot.pop()();
|
|
183
|
+
Ie = !1, xe.clear(), Y(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Br(e) {
|
|
186
186
|
if (e.fragment !== null) {
|
|
187
187
|
e.update(), te(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(Le);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Ar(e) {
|
|
193
193
|
const t = [], r = [];
|
|
194
194
|
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
e && e.i && (
|
|
196
|
+
const Pr = /* @__PURE__ */ new Set();
|
|
197
|
+
function Or(e, t) {
|
|
198
|
+
e && e.i && (Pr.delete(e), e.i(t));
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function st(e) {
|
|
201
201
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Ir(e, t, r) {
|
|
204
204
|
const { fragment: n, after_update: i } = e.$$;
|
|
205
|
-
n && n.m(t, r),
|
|
206
|
-
const o = e.$$.on_mount.map(
|
|
205
|
+
n && n.m(t, r), Le(() => {
|
|
206
|
+
const o = e.$$.on_mount.map(It).filter(ze);
|
|
207
207
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
|
208
|
-
}), i.forEach(
|
|
208
|
+
}), i.forEach(Le);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Lr(e, t) {
|
|
211
211
|
const r = e.$$;
|
|
212
|
-
r.fragment !== null && (
|
|
212
|
+
r.fragment !== null && (Ar(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
e.$$.dirty[0] === -1 && (U.push(e),
|
|
214
|
+
function Nr(e, t) {
|
|
215
|
+
e.$$.dirty[0] === -1 && (U.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
218
218
|
const h = q;
|
|
219
219
|
Y(e);
|
|
220
220
|
const u = e.$$ = {
|
|
@@ -224,7 +224,7 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
224
224
|
props: o,
|
|
225
225
|
update: w,
|
|
226
226
|
not_equal: i,
|
|
227
|
-
bound:
|
|
227
|
+
bound: nt(),
|
|
228
228
|
// lifecycle
|
|
229
229
|
on_mount: [],
|
|
230
230
|
on_destroy: [],
|
|
@@ -233,28 +233,28 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
233
233
|
after_update: [],
|
|
234
234
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
235
235
|
// everything else
|
|
236
|
-
callbacks:
|
|
236
|
+
callbacks: nt(),
|
|
237
237
|
dirty: a,
|
|
238
238
|
skip_bound: !1,
|
|
239
239
|
root: t.target || h.$$.root
|
|
240
240
|
};
|
|
241
241
|
s && s(u.root);
|
|
242
242
|
let l = !1;
|
|
243
|
-
if (u.ctx = r(e, t.props || {}, (f, c, ...
|
|
244
|
-
const
|
|
245
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
246
|
-
}), u.update(), l = !0, te(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
243
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
244
|
+
const d = p.length ? p[0] : c;
|
|
245
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Nr(e, f)), c;
|
|
246
|
+
}) : [], u.update(), l = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
247
247
|
if (t.hydrate) {
|
|
248
|
-
const f =
|
|
248
|
+
const f = xr(t.target);
|
|
249
249
|
u.fragment && u.fragment.l(f), f.forEach(X);
|
|
250
250
|
} else
|
|
251
251
|
u.fragment && u.fragment.c();
|
|
252
|
-
t.intro &&
|
|
252
|
+
t.intro && Or(e.$$.fragment), Ir(e, t.target, t.anchor), P();
|
|
253
253
|
}
|
|
254
254
|
Y(h);
|
|
255
255
|
}
|
|
256
|
-
let
|
|
257
|
-
typeof HTMLElement == "function" && (
|
|
256
|
+
let Mt;
|
|
257
|
+
typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
258
258
|
constructor(t, r, n) {
|
|
259
259
|
super();
|
|
260
260
|
/** The Svelte component constructor */
|
|
@@ -291,7 +291,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
connectedCallback() {
|
|
294
|
-
return
|
|
294
|
+
return rt(this, null, function* () {
|
|
295
295
|
if (this.$$cn = !0, !this.$$c) {
|
|
296
296
|
let t = function(o) {
|
|
297
297
|
return () => {
|
|
@@ -315,7 +315,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
315
315
|
};
|
|
316
316
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
317
317
|
return;
|
|
318
|
-
const r = {}, n =
|
|
318
|
+
const r = {}, n = Tr(this);
|
|
319
319
|
for (const o of this.$$s)
|
|
320
320
|
o in n && (r[o] = [t(o)]);
|
|
321
321
|
for (const o of this.attributes) {
|
|
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
326
326
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
327
327
|
this.$$c = new this.$$ctor({
|
|
328
328
|
target: this.shadowRoot || this,
|
|
329
|
-
props:
|
|
329
|
+
props: _e(Q({}, this.$$d), {
|
|
330
330
|
$$slots: r,
|
|
331
331
|
$$scope: {
|
|
332
332
|
ctx: []
|
|
@@ -404,8 +404,8 @@ function he(e, t, r, n) {
|
|
|
404
404
|
return t;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
let s = class extends
|
|
407
|
+
function Mr(e, t, r, n, i, o) {
|
|
408
|
+
let s = class extends Mt {
|
|
409
409
|
constructor() {
|
|
410
410
|
super(e, r, i), this.$$p_d = t;
|
|
411
411
|
}
|
|
@@ -435,7 +435,7 @@ function Nr(e, t, r, n, i, o) {
|
|
|
435
435
|
}), e.element = /** @type {any} */
|
|
436
436
|
s, s;
|
|
437
437
|
}
|
|
438
|
-
class
|
|
438
|
+
class $r {
|
|
439
439
|
constructor() {
|
|
440
440
|
/**
|
|
441
441
|
* ### PRIVATE API
|
|
@@ -456,7 +456,7 @@ class Lr {
|
|
|
456
456
|
}
|
|
457
457
|
/** @returns {void} */
|
|
458
458
|
$destroy() {
|
|
459
|
-
|
|
459
|
+
Lr(this, 1), this.$destroy = w;
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,7 +465,7 @@ class Lr {
|
|
|
465
465
|
* @returns {() => void}
|
|
466
466
|
*/
|
|
467
467
|
$on(t, r) {
|
|
468
|
-
if (!
|
|
468
|
+
if (!ze(r))
|
|
469
469
|
return w;
|
|
470
470
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
471
471
|
return n.push(r), () => {
|
|
@@ -478,21 +478,21 @@ class Lr {
|
|
|
478
478
|
* @returns {void}
|
|
479
479
|
*/
|
|
480
480
|
$set(t) {
|
|
481
|
-
this.$$set && !
|
|
481
|
+
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
const
|
|
485
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
486
|
-
const
|
|
484
|
+
const Rr = "4";
|
|
485
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Rr);
|
|
486
|
+
const Ur = (e) => (r) => {
|
|
487
487
|
Object.keys(e).map((n) => {
|
|
488
488
|
if (r.data && r.data.type == n) {
|
|
489
|
-
const i = r.data, { type: o } = i, s =
|
|
489
|
+
const i = r.data, { type: o } = i, s = tt(i, ["type"]);
|
|
490
490
|
e[n](s);
|
|
491
491
|
}
|
|
492
492
|
});
|
|
493
|
-
},
|
|
494
|
-
const t =
|
|
495
|
-
|
|
493
|
+
}, Dr = (e) => {
|
|
494
|
+
const t = Ur(e);
|
|
495
|
+
Ct(() => (window.addEventListener("message", t, !1), () => {
|
|
496
496
|
window.removeEventListener("message", t);
|
|
497
497
|
}));
|
|
498
498
|
};
|
|
@@ -537,7 +537,7 @@ var g = function() {
|
|
|
537
537
|
return t;
|
|
538
538
|
}, g.apply(this, arguments);
|
|
539
539
|
};
|
|
540
|
-
function
|
|
540
|
+
function Gr(e, t) {
|
|
541
541
|
var r = {};
|
|
542
542
|
for (var n in e)
|
|
543
543
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -546,7 +546,7 @@ function Rr(e, t) {
|
|
|
546
546
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
547
547
|
return r;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Ce(e) {
|
|
550
550
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
551
551
|
if (r)
|
|
552
552
|
return r.call(e);
|
|
@@ -558,7 +558,7 @@ function Le(e) {
|
|
|
558
558
|
};
|
|
559
559
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Me(e, t) {
|
|
562
562
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
563
563
|
if (!r)
|
|
564
564
|
return e;
|
|
@@ -587,13 +587,13 @@ function G(e, t, r) {
|
|
|
587
587
|
function B(e) {
|
|
588
588
|
return typeof e == "function";
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function $t(e) {
|
|
591
591
|
var t = function(n) {
|
|
592
592
|
Error.call(n), n.stack = new Error().stack;
|
|
593
593
|
}, r = e(t);
|
|
594
594
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
595
595
|
}
|
|
596
|
-
var Te =
|
|
596
|
+
var Te = $t(function(e) {
|
|
597
597
|
return function(r) {
|
|
598
598
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
599
599
|
` + r.map(function(n, i) {
|
|
@@ -602,13 +602,13 @@ var Te = Ct(function(e) {
|
|
|
602
602
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
603
603
|
};
|
|
604
604
|
});
|
|
605
|
-
function
|
|
605
|
+
function $e(e, t) {
|
|
606
606
|
if (e) {
|
|
607
607
|
var r = e.indexOf(t);
|
|
608
608
|
0 <= r && e.splice(r, 1);
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
var
|
|
611
|
+
var de = function() {
|
|
612
612
|
function e(t) {
|
|
613
613
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
614
614
|
}
|
|
@@ -620,12 +620,12 @@ var me = function() {
|
|
|
620
620
|
if (s)
|
|
621
621
|
if (this._parentage = null, Array.isArray(s))
|
|
622
622
|
try {
|
|
623
|
-
for (var a =
|
|
623
|
+
for (var a = Ce(s), h = a.next(); !h.done; h = a.next()) {
|
|
624
624
|
var u = h.value;
|
|
625
625
|
u.remove(this);
|
|
626
626
|
}
|
|
627
|
-
} catch (
|
|
628
|
-
t = { error:
|
|
627
|
+
} catch (v) {
|
|
628
|
+
t = { error: v };
|
|
629
629
|
} finally {
|
|
630
630
|
try {
|
|
631
631
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -640,26 +640,26 @@ var me = function() {
|
|
|
640
640
|
if (B(l))
|
|
641
641
|
try {
|
|
642
642
|
l();
|
|
643
|
-
} catch (
|
|
644
|
-
o =
|
|
643
|
+
} catch (v) {
|
|
644
|
+
o = v instanceof Te ? v.errors : [v];
|
|
645
645
|
}
|
|
646
646
|
var f = this._finalizers;
|
|
647
647
|
if (f) {
|
|
648
648
|
this._finalizers = null;
|
|
649
649
|
try {
|
|
650
|
-
for (var c =
|
|
651
|
-
var
|
|
650
|
+
for (var c = Ce(f), p = c.next(); !p.done; p = c.next()) {
|
|
651
|
+
var d = p.value;
|
|
652
652
|
try {
|
|
653
|
-
|
|
654
|
-
} catch (
|
|
655
|
-
o = o != null ? o : [],
|
|
653
|
+
at(d);
|
|
654
|
+
} catch (v) {
|
|
655
|
+
o = o != null ? o : [], v instanceof Te ? o = G(G([], Me(o)), Me(v.errors)) : o.push(v);
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
} catch (
|
|
659
|
-
n = { error:
|
|
658
|
+
} catch (v) {
|
|
659
|
+
n = { error: v };
|
|
660
660
|
} finally {
|
|
661
661
|
try {
|
|
662
|
-
|
|
662
|
+
p && !p.done && (i = c.return) && i.call(c);
|
|
663
663
|
} finally {
|
|
664
664
|
if (n)
|
|
665
665
|
throw n.error;
|
|
@@ -673,7 +673,7 @@ var me = function() {
|
|
|
673
673
|
var r;
|
|
674
674
|
if (t && t !== this)
|
|
675
675
|
if (this.closed)
|
|
676
|
-
|
|
676
|
+
at(t);
|
|
677
677
|
else {
|
|
678
678
|
if (t instanceof e) {
|
|
679
679
|
if (t.closed || t._hasParent(this))
|
|
@@ -690,56 +690,56 @@ var me = function() {
|
|
|
690
690
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
691
691
|
}, e.prototype._removeParent = function(t) {
|
|
692
692
|
var r = this._parentage;
|
|
693
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
693
|
+
r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
|
|
694
694
|
}, e.prototype.remove = function(t) {
|
|
695
695
|
var r = this._finalizers;
|
|
696
|
-
r &&
|
|
696
|
+
r && $e(r, t), t instanceof e && t._removeParent(this);
|
|
697
697
|
}, e.EMPTY = function() {
|
|
698
698
|
var t = new e();
|
|
699
699
|
return t.closed = !0, t;
|
|
700
700
|
}(), e;
|
|
701
|
-
}(),
|
|
702
|
-
function
|
|
703
|
-
return e instanceof
|
|
701
|
+
}(), Rt = de.EMPTY;
|
|
702
|
+
function Ut(e) {
|
|
703
|
+
return e instanceof de || e && "closed" in e && B(e.remove) && B(e.add) && B(e.unsubscribe);
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function at(e) {
|
|
706
706
|
B(e) ? e() : e.unsubscribe();
|
|
707
707
|
}
|
|
708
|
-
var
|
|
708
|
+
var Dt = {
|
|
709
709
|
onUnhandledError: null,
|
|
710
710
|
onStoppedNotification: null,
|
|
711
711
|
Promise: void 0,
|
|
712
712
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
713
713
|
useDeprecatedNextContext: !1
|
|
714
|
-
},
|
|
714
|
+
}, Fr = {
|
|
715
715
|
setTimeout: function(e, t) {
|
|
716
716
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
717
717
|
r[n - 2] = arguments[n];
|
|
718
|
-
return setTimeout.apply(void 0, G([e, t],
|
|
718
|
+
return setTimeout.apply(void 0, G([e, t], Me(r)));
|
|
719
719
|
},
|
|
720
720
|
clearTimeout: function(e) {
|
|
721
721
|
return clearTimeout(e);
|
|
722
722
|
},
|
|
723
723
|
delegate: void 0
|
|
724
724
|
};
|
|
725
|
-
function
|
|
726
|
-
|
|
725
|
+
function jr(e) {
|
|
726
|
+
Fr.setTimeout(function() {
|
|
727
727
|
throw e;
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function ut() {
|
|
731
731
|
}
|
|
732
732
|
function le(e) {
|
|
733
733
|
e();
|
|
734
734
|
}
|
|
735
|
-
var
|
|
735
|
+
var Gt = function(e) {
|
|
736
736
|
A(t, e);
|
|
737
737
|
function t(r) {
|
|
738
738
|
var n = e.call(this) || this;
|
|
739
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
739
|
+
return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = zr, n;
|
|
740
740
|
}
|
|
741
741
|
return t.create = function(r, n, i) {
|
|
742
|
-
return new
|
|
742
|
+
return new Re(r, n, i);
|
|
743
743
|
}, t.prototype.next = function(r) {
|
|
744
744
|
this.isStopped || this._next(r);
|
|
745
745
|
}, t.prototype.error = function(r) {
|
|
@@ -763,7 +763,11 @@ var Rt = function(e) {
|
|
|
763
763
|
this.unsubscribe();
|
|
764
764
|
}
|
|
765
765
|
}, t;
|
|
766
|
-
}(
|
|
766
|
+
}(de), kr = Function.prototype.bind;
|
|
767
|
+
function Se(e, t) {
|
|
768
|
+
return kr.call(e, t);
|
|
769
|
+
}
|
|
770
|
+
var Vr = function() {
|
|
767
771
|
function e(t) {
|
|
768
772
|
this.partialObserver = t;
|
|
769
773
|
}
|
|
@@ -794,43 +798,55 @@ var Rt = function(e) {
|
|
|
794
798
|
ae(r);
|
|
795
799
|
}
|
|
796
800
|
}, e;
|
|
797
|
-
}(),
|
|
801
|
+
}(), Re = function(e) {
|
|
798
802
|
A(t, e);
|
|
799
803
|
function t(r, n, i) {
|
|
800
804
|
var o = e.call(this) || this, s;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
805
|
+
if (B(r) || !r)
|
|
806
|
+
s = {
|
|
807
|
+
next: r != null ? r : void 0,
|
|
808
|
+
error: n != null ? n : void 0,
|
|
809
|
+
complete: i != null ? i : void 0
|
|
810
|
+
};
|
|
811
|
+
else {
|
|
812
|
+
var a;
|
|
813
|
+
o && Dt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
814
|
+
return o.unsubscribe();
|
|
815
|
+
}, s = {
|
|
816
|
+
next: r.next && Se(r.next, a),
|
|
817
|
+
error: r.error && Se(r.error, a),
|
|
818
|
+
complete: r.complete && Se(r.complete, a)
|
|
819
|
+
}) : s = r;
|
|
820
|
+
}
|
|
821
|
+
return o.destination = new Vr(s), o;
|
|
806
822
|
}
|
|
807
823
|
return t;
|
|
808
|
-
}(
|
|
824
|
+
}(Gt);
|
|
809
825
|
function ae(e) {
|
|
810
|
-
|
|
826
|
+
jr(e);
|
|
811
827
|
}
|
|
812
|
-
function
|
|
828
|
+
function Xr(e) {
|
|
813
829
|
throw e;
|
|
814
830
|
}
|
|
815
|
-
var
|
|
831
|
+
var zr = {
|
|
816
832
|
closed: !0,
|
|
817
|
-
next:
|
|
818
|
-
error:
|
|
819
|
-
complete:
|
|
820
|
-
},
|
|
833
|
+
next: ut,
|
|
834
|
+
error: Xr,
|
|
835
|
+
complete: ut
|
|
836
|
+
}, Wr = function() {
|
|
821
837
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
822
838
|
}();
|
|
823
|
-
function
|
|
839
|
+
function Zr(e) {
|
|
824
840
|
return e;
|
|
825
841
|
}
|
|
826
|
-
function
|
|
827
|
-
return e.length === 0 ?
|
|
842
|
+
function Qr(e) {
|
|
843
|
+
return e.length === 0 ? Zr : e.length === 1 ? e[0] : function(r) {
|
|
828
844
|
return e.reduce(function(n, i) {
|
|
829
845
|
return i(n);
|
|
830
846
|
}, r);
|
|
831
847
|
};
|
|
832
848
|
}
|
|
833
|
-
var
|
|
849
|
+
var ht = function() {
|
|
834
850
|
function e(t) {
|
|
835
851
|
t && (this._subscribe = t);
|
|
836
852
|
}
|
|
@@ -838,7 +854,7 @@ var at = function() {
|
|
|
838
854
|
var r = new e();
|
|
839
855
|
return r.source = this, r.operator = t, r;
|
|
840
856
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
841
|
-
var i = this, o =
|
|
857
|
+
var i = this, o = Yr(t) ? t : new Re(t, r, n);
|
|
842
858
|
return le(function() {
|
|
843
859
|
var s = i, a = s.operator, h = s.source;
|
|
844
860
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -851,8 +867,8 @@ var at = function() {
|
|
|
851
867
|
}
|
|
852
868
|
}, e.prototype.forEach = function(t, r) {
|
|
853
869
|
var n = this;
|
|
854
|
-
return r =
|
|
855
|
-
var s = new
|
|
870
|
+
return r = lt(r), new r(function(i, o) {
|
|
871
|
+
var s = new Re({
|
|
856
872
|
next: function(a) {
|
|
857
873
|
try {
|
|
858
874
|
t(a);
|
|
@@ -868,15 +884,15 @@ var at = function() {
|
|
|
868
884
|
}, e.prototype._subscribe = function(t) {
|
|
869
885
|
var r;
|
|
870
886
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
871
|
-
}, e.prototype[
|
|
887
|
+
}, e.prototype[Wr] = function() {
|
|
872
888
|
return this;
|
|
873
889
|
}, e.prototype.pipe = function() {
|
|
874
890
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
875
891
|
t[r] = arguments[r];
|
|
876
|
-
return
|
|
892
|
+
return Qr(t)(this);
|
|
877
893
|
}, e.prototype.toPromise = function(t) {
|
|
878
894
|
var r = this;
|
|
879
|
-
return t =
|
|
895
|
+
return t = lt(t), new t(function(n, i) {
|
|
880
896
|
var o;
|
|
881
897
|
r.subscribe(function(s) {
|
|
882
898
|
return o = s;
|
|
@@ -890,32 +906,32 @@ var at = function() {
|
|
|
890
906
|
return new e(t);
|
|
891
907
|
}, e;
|
|
892
908
|
}();
|
|
893
|
-
function
|
|
909
|
+
function lt(e) {
|
|
894
910
|
var t;
|
|
895
|
-
return (t = e != null ? e :
|
|
911
|
+
return (t = e != null ? e : Dt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
896
912
|
}
|
|
897
|
-
function
|
|
913
|
+
function Jr(e) {
|
|
898
914
|
return e && B(e.next) && B(e.error) && B(e.complete);
|
|
899
915
|
}
|
|
900
|
-
function
|
|
901
|
-
return e && e instanceof
|
|
916
|
+
function Yr(e) {
|
|
917
|
+
return e && e instanceof Gt || Jr(e) && Ut(e);
|
|
902
918
|
}
|
|
903
|
-
var
|
|
919
|
+
var qr = $t(function(e) {
|
|
904
920
|
return function() {
|
|
905
921
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
906
922
|
};
|
|
907
|
-
}),
|
|
923
|
+
}), Ft = function(e) {
|
|
908
924
|
A(t, e);
|
|
909
925
|
function t() {
|
|
910
926
|
var r = e.call(this) || this;
|
|
911
927
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
912
928
|
}
|
|
913
929
|
return t.prototype.lift = function(r) {
|
|
914
|
-
var n = new
|
|
930
|
+
var n = new ft(this, this);
|
|
915
931
|
return n.operator = r, n;
|
|
916
932
|
}, t.prototype._throwIfClosed = function() {
|
|
917
933
|
if (this.closed)
|
|
918
|
-
throw new
|
|
934
|
+
throw new qr();
|
|
919
935
|
}, t.prototype.next = function(r) {
|
|
920
936
|
var n = this;
|
|
921
937
|
le(function() {
|
|
@@ -923,7 +939,7 @@ var Qr = Ct(function(e) {
|
|
|
923
939
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
924
940
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
925
941
|
try {
|
|
926
|
-
for (var s =
|
|
942
|
+
for (var s = Ce(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
927
943
|
var h = a.value;
|
|
928
944
|
h.next(r);
|
|
929
945
|
}
|
|
@@ -972,19 +988,19 @@ var Qr = Ct(function(e) {
|
|
|
972
988
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
973
989
|
}, t.prototype._innerSubscribe = function(r) {
|
|
974
990
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
975
|
-
return o || s ?
|
|
976
|
-
n.currentObservers = null,
|
|
991
|
+
return o || s ? Rt : (this.currentObservers = null, a.push(r), new de(function() {
|
|
992
|
+
n.currentObservers = null, $e(a, r);
|
|
977
993
|
}));
|
|
978
994
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
979
995
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
980
996
|
i ? r.error(o) : s && r.complete();
|
|
981
997
|
}, t.prototype.asObservable = function() {
|
|
982
|
-
var r = new
|
|
998
|
+
var r = new ht();
|
|
983
999
|
return r.source = this, r;
|
|
984
1000
|
}, t.create = function(r, n) {
|
|
985
|
-
return new
|
|
1001
|
+
return new ft(r, n);
|
|
986
1002
|
}, t;
|
|
987
|
-
}(
|
|
1003
|
+
}(ht), ft = function(e) {
|
|
988
1004
|
A(t, e);
|
|
989
1005
|
function t(r, n) {
|
|
990
1006
|
var i = e.call(this) || this;
|
|
@@ -1001,17 +1017,17 @@ var Qr = Ct(function(e) {
|
|
|
1001
1017
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1002
1018
|
}, t.prototype._subscribe = function(r) {
|
|
1003
1019
|
var n, i;
|
|
1004
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1020
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Rt;
|
|
1005
1021
|
}, t;
|
|
1006
|
-
}(
|
|
1022
|
+
}(Ft), jt = {
|
|
1007
1023
|
now: function() {
|
|
1008
|
-
return (
|
|
1024
|
+
return (jt.delegate || Date).now();
|
|
1009
1025
|
},
|
|
1010
1026
|
delegate: void 0
|
|
1011
|
-
},
|
|
1027
|
+
}, Kr = function(e) {
|
|
1012
1028
|
A(t, e);
|
|
1013
1029
|
function t(r, n, i) {
|
|
1014
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1030
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
1015
1031
|
var o = e.call(this) || this;
|
|
1016
1032
|
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;
|
|
1017
1033
|
}
|
|
@@ -1031,15 +1047,15 @@ var Qr = Ct(function(e) {
|
|
|
1031
1047
|
u && o.splice(0, u + 1);
|
|
1032
1048
|
}
|
|
1033
1049
|
}, t;
|
|
1034
|
-
}(
|
|
1035
|
-
const
|
|
1036
|
-
if (
|
|
1037
|
-
const r = new
|
|
1038
|
-
|
|
1050
|
+
}(Ft);
|
|
1051
|
+
const ct = [], pt = {}, en = (e, t = 0) => {
|
|
1052
|
+
if (ct.indexOf(e) == -1) {
|
|
1053
|
+
const r = new Kr(t);
|
|
1054
|
+
pt[e] = r, ct.push(e);
|
|
1039
1055
|
}
|
|
1040
|
-
return
|
|
1056
|
+
return pt[e];
|
|
1041
1057
|
}, R = [];
|
|
1042
|
-
function
|
|
1058
|
+
function tn(e, t) {
|
|
1043
1059
|
return {
|
|
1044
1060
|
subscribe: be(e, t).subscribe
|
|
1045
1061
|
};
|
|
@@ -1048,7 +1064,7 @@ function be(e, t = w) {
|
|
|
1048
1064
|
let r;
|
|
1049
1065
|
const n = /* @__PURE__ */ new Set();
|
|
1050
1066
|
function i(a) {
|
|
1051
|
-
if (
|
|
1067
|
+
if (Lt(e, a) && (e = a, r)) {
|
|
1052
1068
|
const h = !R.length;
|
|
1053
1069
|
for (const u of n)
|
|
1054
1070
|
u[1](), R.push(u, e);
|
|
@@ -1075,7 +1091,7 @@ function z(e, t, r) {
|
|
|
1075
1091
|
if (!i.every(Boolean))
|
|
1076
1092
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1077
1093
|
const o = t.length < 2;
|
|
1078
|
-
return
|
|
1094
|
+
return tn(r, (s, a) => {
|
|
1079
1095
|
let h = !1;
|
|
1080
1096
|
const u = [];
|
|
1081
1097
|
let l = 0, f = w;
|
|
@@ -1083,88 +1099,88 @@ function z(e, t, r) {
|
|
|
1083
1099
|
if (l)
|
|
1084
1100
|
return;
|
|
1085
1101
|
f();
|
|
1086
|
-
const
|
|
1087
|
-
o ? s(
|
|
1088
|
-
},
|
|
1089
|
-
(
|
|
1090
|
-
|
|
1102
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1103
|
+
o ? s(d) : f = ze(d) ? d : w;
|
|
1104
|
+
}, p = i.map(
|
|
1105
|
+
(d, v) => br(
|
|
1106
|
+
d,
|
|
1091
1107
|
(T) => {
|
|
1092
|
-
u[
|
|
1108
|
+
u[v] = T, l &= ~(1 << v), h && c();
|
|
1093
1109
|
},
|
|
1094
1110
|
() => {
|
|
1095
|
-
l |= 1 <<
|
|
1111
|
+
l |= 1 << v;
|
|
1096
1112
|
}
|
|
1097
1113
|
)
|
|
1098
1114
|
);
|
|
1099
1115
|
return h = !0, c(), function() {
|
|
1100
|
-
te(
|
|
1116
|
+
te(p), f(), h = !1;
|
|
1101
1117
|
};
|
|
1102
1118
|
});
|
|
1103
1119
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1120
|
+
function rn(e) {
|
|
1121
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1106
1122
|
}
|
|
1107
|
-
var
|
|
1108
|
-
return
|
|
1123
|
+
var nn = function(t) {
|
|
1124
|
+
return on(t) && !sn(t);
|
|
1109
1125
|
};
|
|
1110
|
-
function
|
|
1126
|
+
function on(e) {
|
|
1111
1127
|
return !!e && typeof e == "object";
|
|
1112
1128
|
}
|
|
1113
|
-
function
|
|
1129
|
+
function sn(e) {
|
|
1114
1130
|
var t = Object.prototype.toString.call(e);
|
|
1115
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1131
|
+
return t === "[object RegExp]" || t === "[object Date]" || hn(e);
|
|
1116
1132
|
}
|
|
1117
|
-
var
|
|
1118
|
-
function
|
|
1119
|
-
return e.$$typeof ===
|
|
1133
|
+
var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
|
|
1134
|
+
function hn(e) {
|
|
1135
|
+
return e.$$typeof === un;
|
|
1120
1136
|
}
|
|
1121
|
-
function
|
|
1137
|
+
function ln(e) {
|
|
1122
1138
|
return Array.isArray(e) ? [] : {};
|
|
1123
1139
|
}
|
|
1124
1140
|
function K(e, t) {
|
|
1125
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? F(
|
|
1141
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(ln(e), e, t) : e;
|
|
1126
1142
|
}
|
|
1127
|
-
function
|
|
1143
|
+
function fn(e, t, r) {
|
|
1128
1144
|
return e.concat(t).map(function(n) {
|
|
1129
1145
|
return K(n, r);
|
|
1130
1146
|
});
|
|
1131
1147
|
}
|
|
1132
|
-
function
|
|
1148
|
+
function cn(e, t) {
|
|
1133
1149
|
if (!t.customMerge)
|
|
1134
1150
|
return F;
|
|
1135
1151
|
var r = t.customMerge(e);
|
|
1136
1152
|
return typeof r == "function" ? r : F;
|
|
1137
1153
|
}
|
|
1138
|
-
function
|
|
1154
|
+
function pn(e) {
|
|
1139
1155
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1140
1156
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1141
1157
|
}) : [];
|
|
1142
1158
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return Object.keys(e).concat(
|
|
1159
|
+
function mt(e) {
|
|
1160
|
+
return Object.keys(e).concat(pn(e));
|
|
1145
1161
|
}
|
|
1146
|
-
function
|
|
1162
|
+
function kt(e, t) {
|
|
1147
1163
|
try {
|
|
1148
1164
|
return t in e;
|
|
1149
1165
|
} catch (r) {
|
|
1150
1166
|
return !1;
|
|
1151
1167
|
}
|
|
1152
1168
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return
|
|
1169
|
+
function mn(e, t) {
|
|
1170
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1155
1171
|
}
|
|
1156
|
-
function
|
|
1172
|
+
function dn(e, t, r) {
|
|
1157
1173
|
var n = {};
|
|
1158
|
-
return r.isMergeableObject(e) &&
|
|
1174
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1159
1175
|
n[i] = K(e[i], r);
|
|
1160
|
-
}),
|
|
1161
|
-
|
|
1176
|
+
}), mt(t).forEach(function(i) {
|
|
1177
|
+
mn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = cn(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
1162
1178
|
}), n;
|
|
1163
1179
|
}
|
|
1164
1180
|
function F(e, t, r) {
|
|
1165
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1181
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = K;
|
|
1166
1182
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1167
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1183
|
+
return o ? n ? r.arrayMerge(e, t, r) : dn(e, t, r) : K(t, r);
|
|
1168
1184
|
}
|
|
1169
1185
|
F.all = function(t, r) {
|
|
1170
1186
|
if (!Array.isArray(t))
|
|
@@ -1173,109 +1189,107 @@ F.all = function(t, r) {
|
|
|
1173
1189
|
return F(n, i, r);
|
|
1174
1190
|
}, {});
|
|
1175
1191
|
};
|
|
1176
|
-
var
|
|
1177
|
-
const
|
|
1178
|
-
function
|
|
1179
|
-
var r = t && t.cache ? t.cache :
|
|
1192
|
+
var bn = F, gn = bn;
|
|
1193
|
+
const vn = /* @__PURE__ */ rn(gn);
|
|
1194
|
+
function we(e, t) {
|
|
1195
|
+
var r = t && t.cache ? t.cache : Sn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : En;
|
|
1180
1196
|
return i(e, {
|
|
1181
1197
|
cache: r,
|
|
1182
1198
|
serializer: n
|
|
1183
1199
|
});
|
|
1184
1200
|
}
|
|
1185
|
-
function
|
|
1201
|
+
function yn(e) {
|
|
1186
1202
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1187
1203
|
}
|
|
1188
|
-
function
|
|
1189
|
-
var i =
|
|
1204
|
+
function Vt(e, t, r, n) {
|
|
1205
|
+
var i = yn(n) ? n : r(n), o = t.get(i);
|
|
1190
1206
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1191
1207
|
}
|
|
1192
|
-
function
|
|
1208
|
+
function Xt(e, t, r) {
|
|
1193
1209
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1194
1210
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1195
1211
|
}
|
|
1196
|
-
function
|
|
1212
|
+
function Ze(e, t, r, n, i) {
|
|
1197
1213
|
return r.bind(t, e, n, i);
|
|
1198
1214
|
}
|
|
1199
|
-
function
|
|
1200
|
-
var r = e.length === 1 ?
|
|
1201
|
-
return
|
|
1215
|
+
function En(e, t) {
|
|
1216
|
+
var r = e.length === 1 ? Vt : Xt;
|
|
1217
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
1202
1218
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
1219
|
+
function _n(e, t) {
|
|
1220
|
+
return Ze(e, this, Xt, t.cache.create(), t.serializer);
|
|
1205
1221
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return
|
|
1222
|
+
function xn(e, t) {
|
|
1223
|
+
return Ze(e, this, Vt, t.cache.create(), t.serializer);
|
|
1208
1224
|
}
|
|
1209
|
-
var
|
|
1225
|
+
var Tn = function() {
|
|
1210
1226
|
return JSON.stringify(arguments);
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
}()
|
|
1223
|
-
), xn = {
|
|
1227
|
+
};
|
|
1228
|
+
function Qe() {
|
|
1229
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1230
|
+
}
|
|
1231
|
+
Qe.prototype.get = function(e) {
|
|
1232
|
+
return this.cache[e];
|
|
1233
|
+
};
|
|
1234
|
+
Qe.prototype.set = function(e, t) {
|
|
1235
|
+
this.cache[e] = t;
|
|
1236
|
+
};
|
|
1237
|
+
var Sn = {
|
|
1224
1238
|
create: function() {
|
|
1225
|
-
return new
|
|
1239
|
+
return new Qe();
|
|
1226
1240
|
}
|
|
1227
|
-
},
|
|
1228
|
-
variadic:
|
|
1229
|
-
monadic:
|
|
1230
|
-
},
|
|
1241
|
+
}, He = {
|
|
1242
|
+
variadic: _n,
|
|
1243
|
+
monadic: xn
|
|
1244
|
+
}, m;
|
|
1231
1245
|
(function(e) {
|
|
1232
1246
|
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";
|
|
1233
|
-
})(
|
|
1234
|
-
var
|
|
1247
|
+
})(m || (m = {}));
|
|
1248
|
+
var E;
|
|
1235
1249
|
(function(e) {
|
|
1236
1250
|
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";
|
|
1237
|
-
})(
|
|
1251
|
+
})(E || (E = {}));
|
|
1238
1252
|
var j;
|
|
1239
1253
|
(function(e) {
|
|
1240
1254
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1241
1255
|
})(j || (j = {}));
|
|
1242
1256
|
function dt(e) {
|
|
1243
|
-
return e.type ===
|
|
1244
|
-
}
|
|
1245
|
-
function Tn(e) {
|
|
1246
|
-
return e.type === _.argument;
|
|
1247
|
-
}
|
|
1248
|
-
function kt(e) {
|
|
1249
|
-
return e.type === _.number;
|
|
1257
|
+
return e.type === E.literal;
|
|
1250
1258
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return e.type ===
|
|
1253
|
-
}
|
|
1254
|
-
function Xt(e) {
|
|
1255
|
-
return e.type === _.time;
|
|
1259
|
+
function wn(e) {
|
|
1260
|
+
return e.type === E.argument;
|
|
1256
1261
|
}
|
|
1257
1262
|
function zt(e) {
|
|
1258
|
-
return e.type ===
|
|
1263
|
+
return e.type === E.number;
|
|
1259
1264
|
}
|
|
1260
1265
|
function Wt(e) {
|
|
1261
|
-
return e.type ===
|
|
1262
|
-
}
|
|
1263
|
-
function Sn(e) {
|
|
1264
|
-
return e.type === _.pound;
|
|
1266
|
+
return e.type === E.date;
|
|
1265
1267
|
}
|
|
1266
1268
|
function Zt(e) {
|
|
1267
|
-
return e.type ===
|
|
1269
|
+
return e.type === E.time;
|
|
1268
1270
|
}
|
|
1269
1271
|
function Qt(e) {
|
|
1272
|
+
return e.type === E.select;
|
|
1273
|
+
}
|
|
1274
|
+
function Jt(e) {
|
|
1275
|
+
return e.type === E.plural;
|
|
1276
|
+
}
|
|
1277
|
+
function Hn(e) {
|
|
1278
|
+
return e.type === E.pound;
|
|
1279
|
+
}
|
|
1280
|
+
function Yt(e) {
|
|
1281
|
+
return e.type === E.tag;
|
|
1282
|
+
}
|
|
1283
|
+
function qt(e) {
|
|
1270
1284
|
return !!(e && typeof e == "object" && e.type === j.number);
|
|
1271
1285
|
}
|
|
1272
|
-
function
|
|
1286
|
+
function Ue(e) {
|
|
1273
1287
|
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
1274
1288
|
}
|
|
1275
|
-
var
|
|
1276
|
-
function
|
|
1289
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Bn = /(?:[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;
|
|
1290
|
+
function An(e) {
|
|
1277
1291
|
var t = {};
|
|
1278
|
-
return e.replace(
|
|
1292
|
+
return e.replace(Bn, function(r) {
|
|
1279
1293
|
var n = r.length;
|
|
1280
1294
|
switch (r[0]) {
|
|
1281
1295
|
case "G":
|
|
@@ -1364,11 +1378,11 @@ function Hn(e) {
|
|
|
1364
1378
|
return "";
|
|
1365
1379
|
}), t;
|
|
1366
1380
|
}
|
|
1367
|
-
var
|
|
1368
|
-
function
|
|
1381
|
+
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1382
|
+
function On(e) {
|
|
1369
1383
|
if (e.length === 0)
|
|
1370
1384
|
throw new Error("Number skeleton cannot be empty");
|
|
1371
|
-
for (var t = e.split(
|
|
1385
|
+
for (var t = e.split(Pn).filter(function(c) {
|
|
1372
1386
|
return c.length > 0;
|
|
1373
1387
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1374
1388
|
var o = i[n], s = o.split("/");
|
|
@@ -1383,17 +1397,17 @@ function An(e) {
|
|
|
1383
1397
|
}
|
|
1384
1398
|
return r;
|
|
1385
1399
|
}
|
|
1386
|
-
function
|
|
1400
|
+
function In(e) {
|
|
1387
1401
|
return e.replace(/^(.*?)-/, "");
|
|
1388
1402
|
}
|
|
1389
|
-
var
|
|
1390
|
-
function
|
|
1403
|
+
var bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1404
|
+
function gt(e) {
|
|
1391
1405
|
var t = {};
|
|
1392
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1406
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
1393
1407
|
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)), "";
|
|
1394
1408
|
}), t;
|
|
1395
1409
|
}
|
|
1396
|
-
function
|
|
1410
|
+
function rr(e) {
|
|
1397
1411
|
switch (e) {
|
|
1398
1412
|
case "sign-auto":
|
|
1399
1413
|
return {
|
|
@@ -1433,7 +1447,7 @@ function Kt(e) {
|
|
|
1433
1447
|
};
|
|
1434
1448
|
}
|
|
1435
1449
|
}
|
|
1436
|
-
function
|
|
1450
|
+
function Nn(e) {
|
|
1437
1451
|
var t;
|
|
1438
1452
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1439
1453
|
notation: "engineering"
|
|
@@ -1441,17 +1455,17 @@ function In(e) {
|
|
|
1441
1455
|
notation: "scientific"
|
|
1442
1456
|
}, e = e.slice(1)), t) {
|
|
1443
1457
|
var r = e.slice(0, 2);
|
|
1444
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1458
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
|
|
1445
1459
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1446
1460
|
t.minimumIntegerDigits = e.length;
|
|
1447
1461
|
}
|
|
1448
1462
|
return t;
|
|
1449
1463
|
}
|
|
1450
|
-
function
|
|
1451
|
-
var t = {}, r =
|
|
1464
|
+
function vt(e) {
|
|
1465
|
+
var t = {}, r = rr(e);
|
|
1452
1466
|
return r || t;
|
|
1453
1467
|
}
|
|
1454
|
-
function
|
|
1468
|
+
function Cn(e) {
|
|
1455
1469
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1456
1470
|
var i = n[r];
|
|
1457
1471
|
switch (i.stem) {
|
|
@@ -1475,7 +1489,7 @@ function Nn(e) {
|
|
|
1475
1489
|
continue;
|
|
1476
1490
|
case "measure-unit":
|
|
1477
1491
|
case "unit":
|
|
1478
|
-
t.style = "unit", t.unit =
|
|
1492
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
|
1479
1493
|
continue;
|
|
1480
1494
|
case "compact-short":
|
|
1481
1495
|
case "K":
|
|
@@ -1487,12 +1501,12 @@ function Nn(e) {
|
|
|
1487
1501
|
continue;
|
|
1488
1502
|
case "scientific":
|
|
1489
1503
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1490
|
-
return g(g({}, h),
|
|
1504
|
+
return g(g({}, h), vt(u));
|
|
1491
1505
|
}, {}));
|
|
1492
1506
|
continue;
|
|
1493
1507
|
case "engineering":
|
|
1494
1508
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1495
|
-
return g(g({}, h),
|
|
1509
|
+
return g(g({}, h), vt(u));
|
|
1496
1510
|
}, {}));
|
|
1497
1511
|
continue;
|
|
1498
1512
|
case "notation-simple":
|
|
@@ -1537,40 +1551,40 @@ function Nn(e) {
|
|
|
1537
1551
|
case "integer-width":
|
|
1538
1552
|
if (i.options.length > 1)
|
|
1539
1553
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1540
|
-
i.options[0].replace(
|
|
1554
|
+
i.options[0].replace(Ln, function(h, u, l, f, c, p) {
|
|
1541
1555
|
if (u)
|
|
1542
1556
|
t.minimumIntegerDigits = l.length;
|
|
1543
1557
|
else {
|
|
1544
1558
|
if (f && c)
|
|
1545
1559
|
throw new Error("We currently do not support maximum integer digits");
|
|
1546
|
-
if (
|
|
1560
|
+
if (p)
|
|
1547
1561
|
throw new Error("We currently do not support exact integer digits");
|
|
1548
1562
|
}
|
|
1549
1563
|
return "";
|
|
1550
1564
|
});
|
|
1551
1565
|
continue;
|
|
1552
1566
|
}
|
|
1553
|
-
if (
|
|
1567
|
+
if (tr.test(i.stem)) {
|
|
1554
1568
|
t.minimumIntegerDigits = i.stem.length;
|
|
1555
1569
|
continue;
|
|
1556
1570
|
}
|
|
1557
|
-
if (
|
|
1571
|
+
if (bt.test(i.stem)) {
|
|
1558
1572
|
if (i.options.length > 1)
|
|
1559
1573
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1560
|
-
i.stem.replace(
|
|
1561
|
-
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1574
|
+
i.stem.replace(bt, function(h, u, l, f, c, p) {
|
|
1575
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1562
1576
|
});
|
|
1563
1577
|
var o = i.options[0];
|
|
1564
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
1578
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), gt(o)));
|
|
1565
1579
|
continue;
|
|
1566
1580
|
}
|
|
1567
|
-
if (
|
|
1568
|
-
t = g(g({}, t),
|
|
1581
|
+
if (er.test(i.stem)) {
|
|
1582
|
+
t = g(g({}, t), gt(i.stem));
|
|
1569
1583
|
continue;
|
|
1570
1584
|
}
|
|
1571
|
-
var s =
|
|
1585
|
+
var s = rr(i.stem);
|
|
1572
1586
|
s && (t = g(g({}, t), s));
|
|
1573
|
-
var a =
|
|
1587
|
+
var a = Nn(i.stem);
|
|
1574
1588
|
a && (t = g(g({}, t), a));
|
|
1575
1589
|
}
|
|
1576
1590
|
return t;
|
|
@@ -2990,13 +3004,13 @@ var ue = {
|
|
|
2990
3004
|
"h"
|
|
2991
3005
|
]
|
|
2992
3006
|
};
|
|
2993
|
-
function
|
|
3007
|
+
function Mn(e, t) {
|
|
2994
3008
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2995
3009
|
var i = e.charAt(n);
|
|
2996
3010
|
if (i === "j") {
|
|
2997
3011
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2998
3012
|
o++, n++;
|
|
2999
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3013
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = $n(t);
|
|
3000
3014
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3001
3015
|
r += h;
|
|
3002
3016
|
for (; s-- > 0; )
|
|
@@ -3006,7 +3020,7 @@ function Ln(e, t) {
|
|
|
3006
3020
|
}
|
|
3007
3021
|
return r;
|
|
3008
3022
|
}
|
|
3009
|
-
function
|
|
3023
|
+
function $n(e) {
|
|
3010
3024
|
var t = e.hourCycle;
|
|
3011
3025
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3012
3026
|
e.hourCycles && // @ts-ignore
|
|
@@ -3028,20 +3042,20 @@ function Cn(e) {
|
|
|
3028
3042
|
var i = ue[n || ""] || ue[r || ""] || ue["".concat(r, "-001")] || ue["001"];
|
|
3029
3043
|
return i[0];
|
|
3030
3044
|
}
|
|
3031
|
-
var
|
|
3045
|
+
var Be, Rn = new RegExp("^".concat(Kt.source, "*")), Un = new RegExp("".concat(Kt.source, "*$"));
|
|
3032
3046
|
function b(e, t) {
|
|
3033
3047
|
return { start: e, end: t };
|
|
3034
3048
|
}
|
|
3035
|
-
var
|
|
3049
|
+
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gn = !!String.fromCodePoint, Fn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, Vn = !!String.prototype.trimEnd, Xn = !!Number.isSafeInteger, zn = Xn ? Number.isSafeInteger : function(e) {
|
|
3036
3050
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3037
|
-
},
|
|
3051
|
+
}, De = !0;
|
|
3038
3052
|
try {
|
|
3039
|
-
var
|
|
3040
|
-
|
|
3053
|
+
var Wn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3054
|
+
De = ((Be = Wn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
|
|
3041
3055
|
} catch (e) {
|
|
3042
|
-
|
|
3056
|
+
De = !1;
|
|
3043
3057
|
}
|
|
3044
|
-
var
|
|
3058
|
+
var yt = Dn ? (
|
|
3045
3059
|
// Native
|
|
3046
3060
|
function(t, r, n) {
|
|
3047
3061
|
return t.startsWith(r, n);
|
|
@@ -3051,7 +3065,7 @@ var gt = Rn ? (
|
|
|
3051
3065
|
function(t, r, n) {
|
|
3052
3066
|
return t.slice(n, n + r.length) === r;
|
|
3053
3067
|
}
|
|
3054
|
-
),
|
|
3068
|
+
), Ge = Gn ? String.fromCodePoint : (
|
|
3055
3069
|
// IE11
|
|
3056
3070
|
function() {
|
|
3057
3071
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3063,9 +3077,9 @@ var gt = Rn ? (
|
|
|
3063
3077
|
}
|
|
3064
3078
|
return n;
|
|
3065
3079
|
}
|
|
3066
|
-
),
|
|
3080
|
+
), Et = (
|
|
3067
3081
|
// native
|
|
3068
|
-
|
|
3082
|
+
Fn ? Object.fromEntries : (
|
|
3069
3083
|
// Ponyfill
|
|
3070
3084
|
function(t) {
|
|
3071
3085
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3075,7 +3089,7 @@ var gt = Rn ? (
|
|
|
3075
3089
|
return r;
|
|
3076
3090
|
}
|
|
3077
3091
|
)
|
|
3078
|
-
),
|
|
3092
|
+
), nr = jn ? (
|
|
3079
3093
|
// Native
|
|
3080
3094
|
function(t, r) {
|
|
3081
3095
|
return t.codePointAt(r);
|
|
@@ -3089,7 +3103,7 @@ var gt = Rn ? (
|
|
|
3089
3103
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3090
3104
|
}
|
|
3091
3105
|
}
|
|
3092
|
-
),
|
|
3106
|
+
), Zn = kn ? (
|
|
3093
3107
|
// Native
|
|
3094
3108
|
function(t) {
|
|
3095
3109
|
return t.trimStart();
|
|
@@ -3097,9 +3111,9 @@ var gt = Rn ? (
|
|
|
3097
3111
|
) : (
|
|
3098
3112
|
// Ponyfill
|
|
3099
3113
|
function(t) {
|
|
3100
|
-
return t.replace(
|
|
3114
|
+
return t.replace(Rn, "");
|
|
3101
3115
|
}
|
|
3102
|
-
),
|
|
3116
|
+
), Qn = Vn ? (
|
|
3103
3117
|
// Native
|
|
3104
3118
|
function(t) {
|
|
3105
3119
|
return t.trimEnd();
|
|
@@ -3107,32 +3121,32 @@ var gt = Rn ? (
|
|
|
3107
3121
|
) : (
|
|
3108
3122
|
// Ponyfill
|
|
3109
3123
|
function(t) {
|
|
3110
|
-
return t.replace(
|
|
3124
|
+
return t.replace(Un, "");
|
|
3111
3125
|
}
|
|
3112
3126
|
);
|
|
3113
|
-
function
|
|
3127
|
+
function ir(e, t) {
|
|
3114
3128
|
return new RegExp(e, t);
|
|
3115
3129
|
}
|
|
3116
|
-
var
|
|
3117
|
-
if (
|
|
3118
|
-
var
|
|
3119
|
-
|
|
3130
|
+
var Fe;
|
|
3131
|
+
if (De) {
|
|
3132
|
+
var _t = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3133
|
+
Fe = function(t, r) {
|
|
3120
3134
|
var n;
|
|
3121
|
-
|
|
3122
|
-
var i =
|
|
3135
|
+
_t.lastIndex = r;
|
|
3136
|
+
var i = _t.exec(t);
|
|
3123
3137
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3124
3138
|
};
|
|
3125
3139
|
} else
|
|
3126
|
-
|
|
3140
|
+
Fe = function(t, r) {
|
|
3127
3141
|
for (var n = []; ; ) {
|
|
3128
|
-
var i =
|
|
3129
|
-
if (i === void 0 ||
|
|
3142
|
+
var i = nr(t, r);
|
|
3143
|
+
if (i === void 0 || or(i) || Kn(i))
|
|
3130
3144
|
break;
|
|
3131
3145
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3132
3146
|
}
|
|
3133
|
-
return
|
|
3147
|
+
return Ge.apply(void 0, n);
|
|
3134
3148
|
};
|
|
3135
|
-
var
|
|
3149
|
+
var Jn = (
|
|
3136
3150
|
/** @class */
|
|
3137
3151
|
function() {
|
|
3138
3152
|
function e(t, r) {
|
|
@@ -3156,14 +3170,14 @@ var Zn = (
|
|
|
3156
3170
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3157
3171
|
var a = this.clonePosition();
|
|
3158
3172
|
this.bump(), i.push({
|
|
3159
|
-
type:
|
|
3173
|
+
type: E.pound,
|
|
3160
3174
|
location: b(a, this.clonePosition())
|
|
3161
3175
|
});
|
|
3162
3176
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3163
3177
|
if (n)
|
|
3164
3178
|
break;
|
|
3165
|
-
return this.error(
|
|
3166
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3179
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3180
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
3167
3181
|
var s = this.parseTag(t, r);
|
|
3168
3182
|
if (s.err)
|
|
3169
3183
|
return s;
|
|
@@ -3184,7 +3198,7 @@ var Zn = (
|
|
|
3184
3198
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3185
3199
|
return {
|
|
3186
3200
|
val: {
|
|
3187
|
-
type:
|
|
3201
|
+
type: E.literal,
|
|
3188
3202
|
value: "<".concat(i, "/>"),
|
|
3189
3203
|
location: b(n, this.clonePosition())
|
|
3190
3204
|
},
|
|
@@ -3196,25 +3210,25 @@ var Zn = (
|
|
|
3196
3210
|
return o;
|
|
3197
3211
|
var s = o.val, a = this.clonePosition();
|
|
3198
3212
|
if (this.bumpIf("</")) {
|
|
3199
|
-
if (this.isEOF() || !
|
|
3200
|
-
return this.error(
|
|
3213
|
+
if (this.isEOF() || !je(this.char()))
|
|
3214
|
+
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3201
3215
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3202
|
-
return i !== u ? this.error(
|
|
3216
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3203
3217
|
val: {
|
|
3204
|
-
type:
|
|
3218
|
+
type: E.tag,
|
|
3205
3219
|
value: i,
|
|
3206
3220
|
children: s,
|
|
3207
3221
|
location: b(n, this.clonePosition())
|
|
3208
3222
|
},
|
|
3209
3223
|
err: null
|
|
3210
|
-
} : this.error(
|
|
3224
|
+
} : this.error(m.INVALID_TAG, b(a, this.clonePosition())));
|
|
3211
3225
|
} else
|
|
3212
|
-
return this.error(
|
|
3226
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3213
3227
|
} else
|
|
3214
|
-
return this.error(
|
|
3228
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3215
3229
|
}, e.prototype.parseTagName = function() {
|
|
3216
3230
|
var t = this.offset();
|
|
3217
|
-
for (this.bump(); !this.isEOF() &&
|
|
3231
|
+
for (this.bump(); !this.isEOF() && qn(this.char()); )
|
|
3218
3232
|
this.bump();
|
|
3219
3233
|
return this.message.slice(t, this.offset());
|
|
3220
3234
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3238,12 +3252,12 @@ var Zn = (
|
|
|
3238
3252
|
}
|
|
3239
3253
|
var h = b(n, this.clonePosition());
|
|
3240
3254
|
return {
|
|
3241
|
-
val: { type:
|
|
3255
|
+
val: { type: E.literal, value: i, location: h },
|
|
3242
3256
|
err: null
|
|
3243
3257
|
};
|
|
3244
3258
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3245
3259
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3246
|
-
!
|
|
3260
|
+
!Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3247
3261
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3248
3262
|
if (this.isEOF() || this.char() !== 39)
|
|
3249
3263
|
return null;
|
|
@@ -3277,28 +3291,28 @@ var Zn = (
|
|
|
3277
3291
|
r.push(n);
|
|
3278
3292
|
this.bump();
|
|
3279
3293
|
}
|
|
3280
|
-
return
|
|
3294
|
+
return Ge.apply(void 0, r);
|
|
3281
3295
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3282
3296
|
if (this.isEOF())
|
|
3283
3297
|
return null;
|
|
3284
3298
|
var n = this.char();
|
|
3285
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3299
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
3286
3300
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3287
3301
|
var n = this.clonePosition();
|
|
3288
3302
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3289
|
-
return this.error(
|
|
3303
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3290
3304
|
if (this.char() === 125)
|
|
3291
|
-
return this.bump(), this.error(
|
|
3305
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3292
3306
|
var i = this.parseIdentifierIfPossible().value;
|
|
3293
3307
|
if (!i)
|
|
3294
|
-
return this.error(
|
|
3308
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3295
3309
|
if (this.bumpSpace(), this.isEOF())
|
|
3296
|
-
return this.error(
|
|
3310
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3297
3311
|
switch (this.char()) {
|
|
3298
3312
|
case 125:
|
|
3299
3313
|
return this.bump(), {
|
|
3300
3314
|
val: {
|
|
3301
|
-
type:
|
|
3315
|
+
type: E.argument,
|
|
3302
3316
|
// value does not include the opening and closing braces.
|
|
3303
3317
|
value: i,
|
|
3304
3318
|
location: b(n, this.clonePosition())
|
|
@@ -3306,12 +3320,12 @@ var Zn = (
|
|
|
3306
3320
|
err: null
|
|
3307
3321
|
};
|
|
3308
3322
|
case 44:
|
|
3309
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3323
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3310
3324
|
default:
|
|
3311
|
-
return this.error(
|
|
3325
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3312
3326
|
}
|
|
3313
3327
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3314
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3328
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
3315
3329
|
this.bumpTo(i);
|
|
3316
3330
|
var o = this.clonePosition(), s = b(t, o);
|
|
3317
3331
|
return { value: n, location: s };
|
|
@@ -3319,7 +3333,7 @@ var Zn = (
|
|
|
3319
3333
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3320
3334
|
switch (a) {
|
|
3321
3335
|
case "":
|
|
3322
|
-
return this.error(
|
|
3336
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(s, h));
|
|
3323
3337
|
case "number":
|
|
3324
3338
|
case "date":
|
|
3325
3339
|
case "time": {
|
|
@@ -3330,46 +3344,46 @@ var Zn = (
|
|
|
3330
3344
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3331
3345
|
if (f.err)
|
|
3332
3346
|
return f;
|
|
3333
|
-
var c =
|
|
3347
|
+
var c = Qn(f.val);
|
|
3334
3348
|
if (c.length === 0)
|
|
3335
|
-
return this.error(
|
|
3336
|
-
var
|
|
3337
|
-
u = { style: c, styleLocation:
|
|
3349
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3350
|
+
var p = b(l, this.clonePosition());
|
|
3351
|
+
u = { style: c, styleLocation: p };
|
|
3338
3352
|
}
|
|
3339
|
-
var
|
|
3340
|
-
if (
|
|
3341
|
-
return
|
|
3342
|
-
var
|
|
3343
|
-
if (u &&
|
|
3344
|
-
var T =
|
|
3353
|
+
var d = this.tryParseArgumentClose(i);
|
|
3354
|
+
if (d.err)
|
|
3355
|
+
return d;
|
|
3356
|
+
var v = b(i, this.clonePosition());
|
|
3357
|
+
if (u && yt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3358
|
+
var T = Zn(u.style.slice(2));
|
|
3345
3359
|
if (a === "number") {
|
|
3346
3360
|
var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3347
3361
|
return f.err ? f : {
|
|
3348
|
-
val: { type:
|
|
3362
|
+
val: { type: E.number, value: n, location: v, style: f.val },
|
|
3349
3363
|
err: null
|
|
3350
3364
|
};
|
|
3351
3365
|
} else {
|
|
3352
3366
|
if (T.length === 0)
|
|
3353
|
-
return this.error(
|
|
3354
|
-
var
|
|
3355
|
-
this.locale && (
|
|
3367
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
|
|
3368
|
+
var L = T;
|
|
3369
|
+
this.locale && (L = Mn(T, this.locale));
|
|
3356
3370
|
var c = {
|
|
3357
3371
|
type: j.dateTime,
|
|
3358
|
-
pattern:
|
|
3372
|
+
pattern: L,
|
|
3359
3373
|
location: u.styleLocation,
|
|
3360
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3361
|
-
},
|
|
3374
|
+
parsedOptions: this.shouldParseSkeletons ? An(L) : {}
|
|
3375
|
+
}, y = a === "date" ? E.date : E.time;
|
|
3362
3376
|
return {
|
|
3363
|
-
val: { type:
|
|
3377
|
+
val: { type: y, value: n, location: v, style: c },
|
|
3364
3378
|
err: null
|
|
3365
3379
|
};
|
|
3366
3380
|
}
|
|
3367
3381
|
}
|
|
3368
3382
|
return {
|
|
3369
3383
|
val: {
|
|
3370
|
-
type: a === "number" ?
|
|
3384
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3371
3385
|
value: n,
|
|
3372
|
-
location:
|
|
3386
|
+
location: v,
|
|
3373
3387
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3374
3388
|
},
|
|
3375
3389
|
err: null
|
|
@@ -3380,50 +3394,50 @@ var Zn = (
|
|
|
3380
3394
|
case "select": {
|
|
3381
3395
|
var H = this.clonePosition();
|
|
3382
3396
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3383
|
-
return this.error(
|
|
3397
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, g({}, H)));
|
|
3384
3398
|
this.bumpSpace();
|
|
3385
|
-
var Z = this.parseIdentifierIfPossible(),
|
|
3399
|
+
var Z = this.parseIdentifierIfPossible(), N = 0;
|
|
3386
3400
|
if (a !== "select" && Z.value === "offset") {
|
|
3387
3401
|
if (!this.bumpIf(":"))
|
|
3388
|
-
return this.error(
|
|
3402
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3389
3403
|
this.bumpSpace();
|
|
3390
|
-
var f = this.tryParseDecimalInteger(
|
|
3404
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3391
3405
|
if (f.err)
|
|
3392
3406
|
return f;
|
|
3393
|
-
this.bumpSpace(), Z = this.parseIdentifierIfPossible(),
|
|
3407
|
+
this.bumpSpace(), Z = this.parseIdentifierIfPossible(), N = f.val;
|
|
3394
3408
|
}
|
|
3395
3409
|
var oe = this.tryParsePluralOrSelectOptions(t, a, r, Z);
|
|
3396
3410
|
if (oe.err)
|
|
3397
3411
|
return oe;
|
|
3398
|
-
var
|
|
3399
|
-
if (
|
|
3400
|
-
return
|
|
3401
|
-
var
|
|
3412
|
+
var d = this.tryParseArgumentClose(i);
|
|
3413
|
+
if (d.err)
|
|
3414
|
+
return d;
|
|
3415
|
+
var qe = b(i, this.clonePosition());
|
|
3402
3416
|
return a === "select" ? {
|
|
3403
3417
|
val: {
|
|
3404
|
-
type:
|
|
3418
|
+
type: E.select,
|
|
3405
3419
|
value: n,
|
|
3406
|
-
options:
|
|
3407
|
-
location:
|
|
3420
|
+
options: Et(oe.val),
|
|
3421
|
+
location: qe
|
|
3408
3422
|
},
|
|
3409
3423
|
err: null
|
|
3410
3424
|
} : {
|
|
3411
3425
|
val: {
|
|
3412
|
-
type:
|
|
3426
|
+
type: E.plural,
|
|
3413
3427
|
value: n,
|
|
3414
|
-
options:
|
|
3415
|
-
offset:
|
|
3428
|
+
options: Et(oe.val),
|
|
3429
|
+
offset: N,
|
|
3416
3430
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3417
|
-
location:
|
|
3431
|
+
location: qe
|
|
3418
3432
|
},
|
|
3419
3433
|
err: null
|
|
3420
3434
|
};
|
|
3421
3435
|
}
|
|
3422
3436
|
default:
|
|
3423
|
-
return this.error(
|
|
3437
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(s, h));
|
|
3424
3438
|
}
|
|
3425
3439
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3426
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3440
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3427
3441
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3428
3442
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3429
3443
|
var n = this.char();
|
|
@@ -3432,7 +3446,7 @@ var Zn = (
|
|
|
3432
3446
|
this.bump();
|
|
3433
3447
|
var i = this.clonePosition();
|
|
3434
3448
|
if (!this.bumpUntil("'"))
|
|
3435
|
-
return this.error(
|
|
3449
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3436
3450
|
this.bump();
|
|
3437
3451
|
break;
|
|
3438
3452
|
}
|
|
@@ -3462,16 +3476,16 @@ var Zn = (
|
|
|
3462
3476
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3463
3477
|
var n = [];
|
|
3464
3478
|
try {
|
|
3465
|
-
n =
|
|
3479
|
+
n = On(t);
|
|
3466
3480
|
} catch (i) {
|
|
3467
|
-
return this.error(
|
|
3481
|
+
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3468
3482
|
}
|
|
3469
3483
|
return {
|
|
3470
3484
|
val: {
|
|
3471
3485
|
type: j.number,
|
|
3472
3486
|
tokens: n,
|
|
3473
3487
|
location: r,
|
|
3474
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3488
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(n) : {}
|
|
3475
3489
|
},
|
|
3476
3490
|
err: null
|
|
3477
3491
|
};
|
|
@@ -3480,7 +3494,7 @@ var Zn = (
|
|
|
3480
3494
|
if (u.length === 0) {
|
|
3481
3495
|
var f = this.clonePosition();
|
|
3482
3496
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3483
|
-
var c = this.tryParseDecimalInteger(
|
|
3497
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3484
3498
|
if (c.err)
|
|
3485
3499
|
return c;
|
|
3486
3500
|
l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3488,26 +3502,26 @@ var Zn = (
|
|
|
3488
3502
|
break;
|
|
3489
3503
|
}
|
|
3490
3504
|
if (h.has(u))
|
|
3491
|
-
return this.error(r === "select" ?
|
|
3505
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3492
3506
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3493
|
-
var
|
|
3507
|
+
var p = this.clonePosition();
|
|
3494
3508
|
if (!this.bumpIf("{"))
|
|
3495
|
-
return this.error(r === "select" ?
|
|
3496
|
-
var
|
|
3497
|
-
if (
|
|
3498
|
-
return
|
|
3499
|
-
var
|
|
3500
|
-
if (
|
|
3501
|
-
return
|
|
3509
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3510
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3511
|
+
if (d.err)
|
|
3512
|
+
return d;
|
|
3513
|
+
var v = this.tryParseArgumentClose(p);
|
|
3514
|
+
if (v.err)
|
|
3515
|
+
return v;
|
|
3502
3516
|
a.push([
|
|
3503
3517
|
u,
|
|
3504
3518
|
{
|
|
3505
|
-
value:
|
|
3506
|
-
location: b(
|
|
3519
|
+
value: d.val,
|
|
3520
|
+
location: b(p, this.clonePosition())
|
|
3507
3521
|
}
|
|
3508
3522
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3509
3523
|
}
|
|
3510
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3524
|
+
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3511
3525
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3512
3526
|
var n = 1, i = this.clonePosition();
|
|
3513
3527
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3519,7 +3533,7 @@ var Zn = (
|
|
|
3519
3533
|
break;
|
|
3520
3534
|
}
|
|
3521
3535
|
var h = b(i, this.clonePosition());
|
|
3522
|
-
return o ? (s *= n,
|
|
3536
|
+
return o ? (s *= n, zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3523
3537
|
}, e.prototype.offset = function() {
|
|
3524
3538
|
return this.position.offset;
|
|
3525
3539
|
}, e.prototype.isEOF = function() {
|
|
@@ -3534,7 +3548,7 @@ var Zn = (
|
|
|
3534
3548
|
var t = this.position.offset;
|
|
3535
3549
|
if (t >= this.message.length)
|
|
3536
3550
|
throw Error("out of bound");
|
|
3537
|
-
var r =
|
|
3551
|
+
var r = nr(this.message, t);
|
|
3538
3552
|
if (r === void 0)
|
|
3539
3553
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3540
3554
|
return r;
|
|
@@ -3553,7 +3567,7 @@ var Zn = (
|
|
|
3553
3567
|
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);
|
|
3554
3568
|
}
|
|
3555
3569
|
}, e.prototype.bumpIf = function(t) {
|
|
3556
|
-
if (
|
|
3570
|
+
if (yt(this.message, t, this.offset())) {
|
|
3557
3571
|
for (var r = 0; r < t.length; r++)
|
|
3558
3572
|
this.bump();
|
|
3559
3573
|
return !0;
|
|
@@ -3575,7 +3589,7 @@ var Zn = (
|
|
|
3575
3589
|
break;
|
|
3576
3590
|
}
|
|
3577
3591
|
}, e.prototype.bumpSpace = function() {
|
|
3578
|
-
for (; !this.isEOF() &&
|
|
3592
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3579
3593
|
this.bump();
|
|
3580
3594
|
}, e.prototype.peek = function() {
|
|
3581
3595
|
if (this.isEOF())
|
|
@@ -3585,38 +3599,38 @@ var Zn = (
|
|
|
3585
3599
|
}, e;
|
|
3586
3600
|
}()
|
|
3587
3601
|
);
|
|
3588
|
-
function
|
|
3602
|
+
function je(e) {
|
|
3589
3603
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3590
3604
|
}
|
|
3591
|
-
function
|
|
3592
|
-
return
|
|
3605
|
+
function Yn(e) {
|
|
3606
|
+
return je(e) || e === 47;
|
|
3593
3607
|
}
|
|
3594
|
-
function
|
|
3608
|
+
function qn(e) {
|
|
3595
3609
|
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;
|
|
3596
3610
|
}
|
|
3597
|
-
function
|
|
3611
|
+
function or(e) {
|
|
3598
3612
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3599
3613
|
}
|
|
3600
|
-
function
|
|
3614
|
+
function Kn(e) {
|
|
3601
3615
|
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;
|
|
3602
3616
|
}
|
|
3603
|
-
function
|
|
3617
|
+
function ke(e) {
|
|
3604
3618
|
e.forEach(function(t) {
|
|
3605
|
-
if (delete t.location,
|
|
3619
|
+
if (delete t.location, Qt(t) || Jt(t))
|
|
3606
3620
|
for (var r in t.options)
|
|
3607
|
-
delete t.options[r].location,
|
|
3621
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3608
3622
|
else
|
|
3609
|
-
|
|
3623
|
+
zt(t) && qt(t.style) || (Wt(t) || Zt(t)) && Ue(t.style) ? delete t.style.location : Yt(t) && ke(t.children);
|
|
3610
3624
|
});
|
|
3611
3625
|
}
|
|
3612
|
-
function
|
|
3626
|
+
function ei(e, t) {
|
|
3613
3627
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3614
|
-
var r = new
|
|
3628
|
+
var r = new Jn(e, t).parse();
|
|
3615
3629
|
if (r.err) {
|
|
3616
|
-
var n = SyntaxError(
|
|
3630
|
+
var n = SyntaxError(m[r.err.kind]);
|
|
3617
3631
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3618
3632
|
}
|
|
3619
|
-
return t != null && t.captureLocation ||
|
|
3633
|
+
return t != null && t.captureLocation || ke(r.val), r.val;
|
|
3620
3634
|
}
|
|
3621
3635
|
var k;
|
|
3622
3636
|
(function(e) {
|
|
@@ -3634,7 +3648,7 @@ var ge = (
|
|
|
3634
3648
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3635
3649
|
}, t;
|
|
3636
3650
|
}(Error)
|
|
3637
|
-
),
|
|
3651
|
+
), xt = (
|
|
3638
3652
|
/** @class */
|
|
3639
3653
|
function(e) {
|
|
3640
3654
|
A(t, e);
|
|
@@ -3643,7 +3657,7 @@ var ge = (
|
|
|
3643
3657
|
}
|
|
3644
3658
|
return t;
|
|
3645
3659
|
}(ge)
|
|
3646
|
-
),
|
|
3660
|
+
), ti = (
|
|
3647
3661
|
/** @class */
|
|
3648
3662
|
function(e) {
|
|
3649
3663
|
A(t, e);
|
|
@@ -3652,7 +3666,7 @@ var ge = (
|
|
|
3652
3666
|
}
|
|
3653
3667
|
return t;
|
|
3654
3668
|
}(ge)
|
|
3655
|
-
),
|
|
3669
|
+
), ri = (
|
|
3656
3670
|
/** @class */
|
|
3657
3671
|
function(e) {
|
|
3658
3672
|
A(t, e);
|
|
@@ -3661,24 +3675,24 @@ var ge = (
|
|
|
3661
3675
|
}
|
|
3662
3676
|
return t;
|
|
3663
3677
|
}(ge)
|
|
3664
|
-
),
|
|
3678
|
+
), _;
|
|
3665
3679
|
(function(e) {
|
|
3666
3680
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3667
|
-
})(
|
|
3668
|
-
function
|
|
3681
|
+
})(_ || (_ = {}));
|
|
3682
|
+
function ni(e) {
|
|
3669
3683
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3670
3684
|
var n = t[t.length - 1];
|
|
3671
|
-
return !n || n.type !==
|
|
3685
|
+
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3672
3686
|
}, []);
|
|
3673
3687
|
}
|
|
3674
|
-
function
|
|
3688
|
+
function ii(e) {
|
|
3675
3689
|
return typeof e == "function";
|
|
3676
3690
|
}
|
|
3677
3691
|
function fe(e, t, r, n, i, o, s) {
|
|
3678
3692
|
if (e.length === 1 && dt(e[0]))
|
|
3679
3693
|
return [
|
|
3680
3694
|
{
|
|
3681
|
-
type:
|
|
3695
|
+
type: _.literal,
|
|
3682
3696
|
value: e[0].value
|
|
3683
3697
|
}
|
|
3684
3698
|
];
|
|
@@ -3686,75 +3700,75 @@ function fe(e, t, r, n, i, o, s) {
|
|
|
3686
3700
|
var l = u[h];
|
|
3687
3701
|
if (dt(l)) {
|
|
3688
3702
|
a.push({
|
|
3689
|
-
type:
|
|
3703
|
+
type: _.literal,
|
|
3690
3704
|
value: l.value
|
|
3691
3705
|
});
|
|
3692
3706
|
continue;
|
|
3693
3707
|
}
|
|
3694
|
-
if (
|
|
3708
|
+
if (Hn(l)) {
|
|
3695
3709
|
typeof o == "number" && a.push({
|
|
3696
|
-
type:
|
|
3710
|
+
type: _.literal,
|
|
3697
3711
|
value: r.getNumberFormat(t).format(o)
|
|
3698
3712
|
});
|
|
3699
3713
|
continue;
|
|
3700
3714
|
}
|
|
3701
3715
|
var f = l.value;
|
|
3702
3716
|
if (!(i && f in i))
|
|
3703
|
-
throw new
|
|
3717
|
+
throw new ri(f, s);
|
|
3704
3718
|
var c = i[f];
|
|
3705
|
-
if (
|
|
3719
|
+
if (wn(l)) {
|
|
3706
3720
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3707
|
-
type: typeof c == "string" ?
|
|
3721
|
+
type: typeof c == "string" ? _.literal : _.object,
|
|
3708
3722
|
value: c
|
|
3709
3723
|
});
|
|
3710
3724
|
continue;
|
|
3711
3725
|
}
|
|
3712
|
-
if (
|
|
3713
|
-
var
|
|
3726
|
+
if (Wt(l)) {
|
|
3727
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3714
3728
|
a.push({
|
|
3715
|
-
type:
|
|
3716
|
-
value: r.getDateTimeFormat(t,
|
|
3729
|
+
type: _.literal,
|
|
3730
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3717
3731
|
});
|
|
3718
3732
|
continue;
|
|
3719
3733
|
}
|
|
3720
|
-
if (
|
|
3721
|
-
var
|
|
3734
|
+
if (Zt(l)) {
|
|
3735
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3722
3736
|
a.push({
|
|
3723
|
-
type:
|
|
3724
|
-
value: r.getDateTimeFormat(t,
|
|
3737
|
+
type: _.literal,
|
|
3738
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3725
3739
|
});
|
|
3726
3740
|
continue;
|
|
3727
3741
|
}
|
|
3728
|
-
if (
|
|
3729
|
-
var
|
|
3730
|
-
|
|
3731
|
-
type:
|
|
3732
|
-
value: r.getNumberFormat(t,
|
|
3742
|
+
if (zt(l)) {
|
|
3743
|
+
var p = typeof l.style == "string" ? n.number[l.style] : qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3744
|
+
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3745
|
+
type: _.literal,
|
|
3746
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3733
3747
|
});
|
|
3734
3748
|
continue;
|
|
3735
3749
|
}
|
|
3736
|
-
if (
|
|
3737
|
-
var
|
|
3738
|
-
if (!
|
|
3739
|
-
throw new
|
|
3740
|
-
var
|
|
3741
|
-
return
|
|
3750
|
+
if (Yt(l)) {
|
|
3751
|
+
var d = l.children, v = l.value, T = i[v];
|
|
3752
|
+
if (!ii(T))
|
|
3753
|
+
throw new ti(v, "function", s);
|
|
3754
|
+
var L = fe(d, t, r, n, i, o), y = T(L.map(function(N) {
|
|
3755
|
+
return N.value;
|
|
3742
3756
|
}));
|
|
3743
|
-
Array.isArray(
|
|
3757
|
+
Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(N) {
|
|
3744
3758
|
return {
|
|
3745
|
-
type: typeof
|
|
3746
|
-
value:
|
|
3759
|
+
type: typeof N == "string" ? _.literal : _.object,
|
|
3760
|
+
value: N
|
|
3747
3761
|
};
|
|
3748
3762
|
}));
|
|
3749
3763
|
}
|
|
3750
|
-
if (
|
|
3764
|
+
if (Qt(l)) {
|
|
3751
3765
|
var H = l.options[c] || l.options.other;
|
|
3752
3766
|
if (!H)
|
|
3753
|
-
throw new
|
|
3767
|
+
throw new xt(l.value, c, Object.keys(l.options), s);
|
|
3754
3768
|
a.push.apply(a, fe(H.value, t, r, n, i));
|
|
3755
3769
|
continue;
|
|
3756
3770
|
}
|
|
3757
|
-
if (
|
|
3771
|
+
if (Jt(l)) {
|
|
3758
3772
|
var H = l.options["=".concat(c)];
|
|
3759
3773
|
if (!H) {
|
|
3760
3774
|
if (!Intl.PluralRules)
|
|
@@ -3765,24 +3779,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3765
3779
|
H = l.options[Z] || l.options.other;
|
|
3766
3780
|
}
|
|
3767
3781
|
if (!H)
|
|
3768
|
-
throw new
|
|
3782
|
+
throw new xt(l.value, c, Object.keys(l.options), s);
|
|
3769
3783
|
a.push.apply(a, fe(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3770
3784
|
continue;
|
|
3771
3785
|
}
|
|
3772
3786
|
}
|
|
3773
|
-
return
|
|
3787
|
+
return ni(a);
|
|
3774
3788
|
}
|
|
3775
|
-
function
|
|
3789
|
+
function oi(e, t) {
|
|
3776
3790
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3777
3791
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3778
3792
|
}, {})) : e;
|
|
3779
3793
|
}
|
|
3780
|
-
function
|
|
3794
|
+
function si(e, t) {
|
|
3781
3795
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3782
|
-
return r[n] =
|
|
3796
|
+
return r[n] = oi(e[n], t[n]), r;
|
|
3783
3797
|
}, g({}, e)) : e;
|
|
3784
3798
|
}
|
|
3785
|
-
function
|
|
3799
|
+
function Ae(e) {
|
|
3786
3800
|
return {
|
|
3787
3801
|
create: function() {
|
|
3788
3802
|
return {
|
|
@@ -3796,39 +3810,39 @@ function Be(e) {
|
|
|
3796
3810
|
}
|
|
3797
3811
|
};
|
|
3798
3812
|
}
|
|
3799
|
-
function
|
|
3813
|
+
function ai(e) {
|
|
3800
3814
|
return e === void 0 && (e = {
|
|
3801
3815
|
number: {},
|
|
3802
3816
|
dateTime: {},
|
|
3803
3817
|
pluralRules: {}
|
|
3804
3818
|
}), {
|
|
3805
|
-
getNumberFormat:
|
|
3819
|
+
getNumberFormat: we(function() {
|
|
3806
3820
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3807
3821
|
r[n] = arguments[n];
|
|
3808
3822
|
return new ((t = Intl.NumberFormat).bind.apply(t, G([void 0], r, !1)))();
|
|
3809
3823
|
}, {
|
|
3810
|
-
cache:
|
|
3811
|
-
strategy:
|
|
3824
|
+
cache: Ae(e.number),
|
|
3825
|
+
strategy: He.variadic
|
|
3812
3826
|
}),
|
|
3813
|
-
getDateTimeFormat:
|
|
3827
|
+
getDateTimeFormat: we(function() {
|
|
3814
3828
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3815
3829
|
r[n] = arguments[n];
|
|
3816
3830
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, G([void 0], r, !1)))();
|
|
3817
3831
|
}, {
|
|
3818
|
-
cache:
|
|
3819
|
-
strategy:
|
|
3832
|
+
cache: Ae(e.dateTime),
|
|
3833
|
+
strategy: He.variadic
|
|
3820
3834
|
}),
|
|
3821
|
-
getPluralRules:
|
|
3835
|
+
getPluralRules: we(function() {
|
|
3822
3836
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3823
3837
|
r[n] = arguments[n];
|
|
3824
3838
|
return new ((t = Intl.PluralRules).bind.apply(t, G([void 0], r, !1)))();
|
|
3825
3839
|
}, {
|
|
3826
|
-
cache:
|
|
3827
|
-
strategy:
|
|
3840
|
+
cache: Ae(e.pluralRules),
|
|
3841
|
+
strategy: He.variadic
|
|
3828
3842
|
})
|
|
3829
3843
|
};
|
|
3830
3844
|
}
|
|
3831
|
-
var
|
|
3845
|
+
var ui = (
|
|
3832
3846
|
/** @class */
|
|
3833
3847
|
function() {
|
|
3834
3848
|
function e(t, r, n, i) {
|
|
@@ -3843,7 +3857,7 @@ var si = (
|
|
|
3843
3857
|
if (u.length === 1)
|
|
3844
3858
|
return u[0].value;
|
|
3845
3859
|
var l = u.reduce(function(f, c) {
|
|
3846
|
-
return !f.length || c.type !==
|
|
3860
|
+
return !f.length || c.type !== _.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3847
3861
|
}, []);
|
|
3848
3862
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3849
3863
|
}, this.formatToParts = function(h) {
|
|
@@ -3860,13 +3874,13 @@ var si = (
|
|
|
3860
3874
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3861
3875
|
var s = i || {};
|
|
3862
3876
|
s.formatters;
|
|
3863
|
-
var a =
|
|
3877
|
+
var a = Gr(s, ["formatters"]);
|
|
3864
3878
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3865
3879
|
} else
|
|
3866
3880
|
this.ast = t;
|
|
3867
3881
|
if (!Array.isArray(this.ast))
|
|
3868
3882
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3869
|
-
this.formats =
|
|
3883
|
+
this.formats = si(e.formats, n), this.formatters = i && i.formatters || ai(this.formatterCache);
|
|
3870
3884
|
}
|
|
3871
3885
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3872
3886
|
get: function() {
|
|
@@ -3879,7 +3893,7 @@ var si = (
|
|
|
3879
3893
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3880
3894
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3881
3895
|
}
|
|
3882
|
-
}, e.__parse =
|
|
3896
|
+
}, e.__parse = ei, e.formats = {
|
|
3883
3897
|
number: {
|
|
3884
3898
|
integer: {
|
|
3885
3899
|
maximumFractionDigits: 0
|
|
@@ -3940,7 +3954,7 @@ var si = (
|
|
|
3940
3954
|
}, e;
|
|
3941
3955
|
}()
|
|
3942
3956
|
);
|
|
3943
|
-
function
|
|
3957
|
+
function hi(e, t) {
|
|
3944
3958
|
if (t == null)
|
|
3945
3959
|
return;
|
|
3946
3960
|
if (t in e)
|
|
@@ -3961,92 +3975,92 @@ function ai(e, t) {
|
|
|
3961
3975
|
n = void 0;
|
|
3962
3976
|
return n;
|
|
3963
3977
|
}
|
|
3964
|
-
const O = {},
|
|
3978
|
+
const O = {}, li = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), sr = (e, t) => {
|
|
3965
3979
|
if (t == null)
|
|
3966
3980
|
return;
|
|
3967
3981
|
if (t in O && e in O[t])
|
|
3968
3982
|
return O[t][e];
|
|
3969
|
-
const r =
|
|
3983
|
+
const r = ve(t);
|
|
3970
3984
|
for (let n = 0; n < r.length; n++) {
|
|
3971
|
-
const i = r[n], o =
|
|
3985
|
+
const i = r[n], o = ci(i, e);
|
|
3972
3986
|
if (o)
|
|
3973
|
-
return
|
|
3987
|
+
return li(e, t, o);
|
|
3974
3988
|
}
|
|
3975
3989
|
};
|
|
3976
|
-
let
|
|
3990
|
+
let Je;
|
|
3977
3991
|
const ne = be({});
|
|
3978
|
-
function
|
|
3979
|
-
return
|
|
3992
|
+
function fi(e) {
|
|
3993
|
+
return Je[e] || null;
|
|
3980
3994
|
}
|
|
3981
|
-
function
|
|
3982
|
-
return e in
|
|
3995
|
+
function ar(e) {
|
|
3996
|
+
return e in Je;
|
|
3983
3997
|
}
|
|
3984
|
-
function
|
|
3985
|
-
if (!
|
|
3998
|
+
function ci(e, t) {
|
|
3999
|
+
if (!ar(e))
|
|
3986
4000
|
return null;
|
|
3987
|
-
const r =
|
|
3988
|
-
return
|
|
4001
|
+
const r = fi(e);
|
|
4002
|
+
return hi(r, t);
|
|
3989
4003
|
}
|
|
3990
|
-
function
|
|
4004
|
+
function pi(e) {
|
|
3991
4005
|
if (e == null)
|
|
3992
4006
|
return;
|
|
3993
|
-
const t =
|
|
4007
|
+
const t = ve(e);
|
|
3994
4008
|
for (let r = 0; r < t.length; r++) {
|
|
3995
4009
|
const n = t[r];
|
|
3996
|
-
if (
|
|
4010
|
+
if (ar(n))
|
|
3997
4011
|
return n;
|
|
3998
4012
|
}
|
|
3999
4013
|
}
|
|
4000
|
-
function
|
|
4001
|
-
delete O[e], ne.update((r) => (r[e] =
|
|
4014
|
+
function mi(e, ...t) {
|
|
4015
|
+
delete O[e], ne.update((r) => (r[e] = vn.all([r[e] || {}, ...t]), r));
|
|
4002
4016
|
}
|
|
4003
4017
|
z(
|
|
4004
4018
|
[ne],
|
|
4005
4019
|
([e]) => Object.keys(e)
|
|
4006
4020
|
);
|
|
4007
|
-
ne.subscribe((e) =>
|
|
4021
|
+
ne.subscribe((e) => Je = e);
|
|
4008
4022
|
const ce = {};
|
|
4009
4023
|
function di(e, t) {
|
|
4010
4024
|
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
4011
4025
|
}
|
|
4012
|
-
function
|
|
4026
|
+
function ur(e) {
|
|
4013
4027
|
return ce[e];
|
|
4014
4028
|
}
|
|
4015
|
-
function
|
|
4016
|
-
return
|
|
4017
|
-
const r =
|
|
4029
|
+
function bi(e) {
|
|
4030
|
+
return ve(e).map((t) => {
|
|
4031
|
+
const r = ur(t);
|
|
4018
4032
|
return [t, r ? [...r] : []];
|
|
4019
4033
|
}).filter(([, t]) => t.length > 0);
|
|
4020
4034
|
}
|
|
4021
|
-
function
|
|
4022
|
-
return e == null ? !1 :
|
|
4035
|
+
function Ve(e) {
|
|
4036
|
+
return e == null ? !1 : ve(e).some(
|
|
4023
4037
|
(t) => {
|
|
4024
4038
|
var r;
|
|
4025
|
-
return (r =
|
|
4039
|
+
return (r = ur(t)) == null ? void 0 : r.size;
|
|
4026
4040
|
}
|
|
4027
4041
|
);
|
|
4028
4042
|
}
|
|
4029
|
-
function
|
|
4043
|
+
function gi(e, t) {
|
|
4030
4044
|
return Promise.all(
|
|
4031
4045
|
t.map((n) => (di(e, n), n().then((i) => i.default || i)))
|
|
4032
|
-
).then((n) =>
|
|
4046
|
+
).then((n) => mi(e, ...n));
|
|
4033
4047
|
}
|
|
4034
4048
|
const J = {};
|
|
4035
|
-
function
|
|
4036
|
-
if (!
|
|
4049
|
+
function hr(e) {
|
|
4050
|
+
if (!Ve(e))
|
|
4037
4051
|
return e in J ? J[e] : Promise.resolve();
|
|
4038
|
-
const t =
|
|
4052
|
+
const t = bi(e);
|
|
4039
4053
|
return J[e] = Promise.all(
|
|
4040
4054
|
t.map(
|
|
4041
|
-
([r, n]) =>
|
|
4055
|
+
([r, n]) => gi(r, n)
|
|
4042
4056
|
)
|
|
4043
4057
|
).then(() => {
|
|
4044
|
-
if (
|
|
4045
|
-
return
|
|
4058
|
+
if (Ve(e))
|
|
4059
|
+
return hr(e);
|
|
4046
4060
|
delete J[e];
|
|
4047
4061
|
}), J[e];
|
|
4048
4062
|
}
|
|
4049
|
-
const
|
|
4063
|
+
const vi = {
|
|
4050
4064
|
number: {
|
|
4051
4065
|
scientific: { notation: "scientific" },
|
|
4052
4066
|
engineering: { notation: "engineering" },
|
|
@@ -4075,78 +4089,78 @@ const bi = {
|
|
|
4075
4089
|
timeZoneName: "short"
|
|
4076
4090
|
}
|
|
4077
4091
|
}
|
|
4078
|
-
},
|
|
4092
|
+
}, yi = {
|
|
4079
4093
|
fallbackLocale: null,
|
|
4080
4094
|
loadingDelay: 200,
|
|
4081
|
-
formats:
|
|
4095
|
+
formats: vi,
|
|
4082
4096
|
warnOnMissingMessages: !0,
|
|
4083
4097
|
handleMissingMessage: void 0,
|
|
4084
4098
|
ignoreTag: !0
|
|
4085
|
-
},
|
|
4099
|
+
}, Ei = yi;
|
|
4086
4100
|
function V() {
|
|
4087
|
-
return
|
|
4088
|
-
}
|
|
4089
|
-
const
|
|
4090
|
-
var
|
|
4091
|
-
for (var r in t)
|
|
4092
|
-
|
|
4093
|
-
if (
|
|
4094
|
-
for (var r of
|
|
4095
|
-
|
|
4101
|
+
return Ei;
|
|
4102
|
+
}
|
|
4103
|
+
const Pe = be(!1);
|
|
4104
|
+
var _i = Object.defineProperty, xi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, Tt = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, wi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
|
|
4105
|
+
for (var r in t || (t = {}))
|
|
4106
|
+
Si.call(t, r) && St(e, r, t[r]);
|
|
4107
|
+
if (Tt)
|
|
4108
|
+
for (var r of Tt(t))
|
|
4109
|
+
wi.call(t, r) && St(e, r, t[r]);
|
|
4096
4110
|
return e;
|
|
4097
|
-
},
|
|
4098
|
-
let
|
|
4099
|
-
const
|
|
4100
|
-
function
|
|
4111
|
+
}, Bi = (e, t) => xi(e, Ti(t));
|
|
4112
|
+
let Xe;
|
|
4113
|
+
const pe = be(null);
|
|
4114
|
+
function wt(e) {
|
|
4101
4115
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4102
4116
|
}
|
|
4103
|
-
function
|
|
4104
|
-
const r =
|
|
4105
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4117
|
+
function ve(e, t = V().fallbackLocale) {
|
|
4118
|
+
const r = wt(e);
|
|
4119
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
|
4106
4120
|
}
|
|
4107
4121
|
function M() {
|
|
4108
|
-
return
|
|
4122
|
+
return Xe != null ? Xe : void 0;
|
|
4109
4123
|
}
|
|
4110
|
-
|
|
4111
|
-
|
|
4124
|
+
pe.subscribe((e) => {
|
|
4125
|
+
Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4112
4126
|
});
|
|
4113
|
-
const
|
|
4114
|
-
if (e &&
|
|
4127
|
+
const Ai = (e) => {
|
|
4128
|
+
if (e && pi(e) && Ve(e)) {
|
|
4115
4129
|
const { loadingDelay: t } = V();
|
|
4116
4130
|
let r;
|
|
4117
4131
|
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
4118
|
-
() =>
|
|
4132
|
+
() => Pe.set(!0),
|
|
4119
4133
|
t
|
|
4120
|
-
) :
|
|
4121
|
-
|
|
4134
|
+
) : Pe.set(!0), hr(e).then(() => {
|
|
4135
|
+
pe.set(e);
|
|
4122
4136
|
}).finally(() => {
|
|
4123
|
-
clearTimeout(r),
|
|
4137
|
+
clearTimeout(r), Pe.set(!1);
|
|
4124
4138
|
});
|
|
4125
4139
|
}
|
|
4126
|
-
return
|
|
4127
|
-
}, ie =
|
|
4128
|
-
set:
|
|
4129
|
-
}),
|
|
4140
|
+
return pe.set(e);
|
|
4141
|
+
}, ie = Bi(Hi({}, pe), {
|
|
4142
|
+
set: Ai
|
|
4143
|
+
}), ye = (e) => {
|
|
4130
4144
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4131
4145
|
return (n) => {
|
|
4132
4146
|
const i = JSON.stringify(n);
|
|
4133
4147
|
return i in t ? t[i] : t[i] = e(n);
|
|
4134
4148
|
};
|
|
4135
4149
|
};
|
|
4136
|
-
var
|
|
4150
|
+
var Pi = Object.defineProperty, me = Object.getOwnPropertySymbols, lr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
4137
4151
|
for (var r in t || (t = {}))
|
|
4138
|
-
|
|
4139
|
-
if (
|
|
4140
|
-
for (var r of
|
|
4141
|
-
|
|
4152
|
+
lr.call(t, r) && Ht(e, r, t[r]);
|
|
4153
|
+
if (me)
|
|
4154
|
+
for (var r of me(t))
|
|
4155
|
+
fr.call(t, r) && Ht(e, r, t[r]);
|
|
4142
4156
|
return e;
|
|
4143
4157
|
}, W = (e, t) => {
|
|
4144
4158
|
var r = {};
|
|
4145
4159
|
for (var n in e)
|
|
4146
|
-
|
|
4147
|
-
if (e != null &&
|
|
4148
|
-
for (var n of
|
|
4149
|
-
t.indexOf(n) < 0 &&
|
|
4160
|
+
lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4161
|
+
if (e != null && me)
|
|
4162
|
+
for (var n of me(e))
|
|
4163
|
+
t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
|
|
4150
4164
|
return r;
|
|
4151
4165
|
};
|
|
4152
4166
|
const ee = (e, t) => {
|
|
@@ -4154,21 +4168,21 @@ const ee = (e, t) => {
|
|
|
4154
4168
|
if (e in r && t in r[e])
|
|
4155
4169
|
return r[e][t];
|
|
4156
4170
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4157
|
-
},
|
|
4171
|
+
}, Oi = ye(
|
|
4158
4172
|
(e) => {
|
|
4159
4173
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4160
4174
|
if (r == null)
|
|
4161
4175
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4162
4176
|
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4163
4177
|
}
|
|
4164
|
-
),
|
|
4178
|
+
), Ii = ye(
|
|
4165
4179
|
(e) => {
|
|
4166
4180
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4167
4181
|
if (r == null)
|
|
4168
4182
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4169
4183
|
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4170
4184
|
}
|
|
4171
|
-
),
|
|
4185
|
+
), Li = ye(
|
|
4172
4186
|
(e) => {
|
|
4173
4187
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4174
4188
|
if (r == null)
|
|
@@ -4177,33 +4191,33 @@ const ee = (e, t) => {
|
|
|
4177
4191
|
);
|
|
4178
4192
|
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4179
4193
|
}
|
|
4180
|
-
),
|
|
4194
|
+
), Ni = (e = {}) => {
|
|
4181
4195
|
var t = e, {
|
|
4182
4196
|
locale: r = M()
|
|
4183
4197
|
} = t, n = W(t, [
|
|
4184
4198
|
"locale"
|
|
4185
4199
|
]);
|
|
4186
|
-
return
|
|
4187
|
-
},
|
|
4200
|
+
return Oi(Ye({ locale: r }, n));
|
|
4201
|
+
}, Ci = (e = {}) => {
|
|
4188
4202
|
var t = e, {
|
|
4189
4203
|
locale: r = M()
|
|
4190
4204
|
} = t, n = W(t, [
|
|
4191
4205
|
"locale"
|
|
4192
4206
|
]);
|
|
4193
|
-
return
|
|
4194
|
-
},
|
|
4207
|
+
return Ii(Ye({ locale: r }, n));
|
|
4208
|
+
}, Mi = (e = {}) => {
|
|
4195
4209
|
var t = e, {
|
|
4196
4210
|
locale: r = M()
|
|
4197
4211
|
} = t, n = W(t, [
|
|
4198
4212
|
"locale"
|
|
4199
4213
|
]);
|
|
4200
|
-
return
|
|
4201
|
-
},
|
|
4214
|
+
return Li(Ye({ locale: r }, n));
|
|
4215
|
+
}, $i = ye(
|
|
4202
4216
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4203
|
-
(e, t = M()) => new
|
|
4217
|
+
(e, t = M()) => new ui(e, t, V().formats, {
|
|
4204
4218
|
ignoreTag: V().ignoreTag
|
|
4205
4219
|
})
|
|
4206
|
-
),
|
|
4220
|
+
), Ri = (e, t = {}) => {
|
|
4207
4221
|
var r, n, i, o;
|
|
4208
4222
|
let s = t;
|
|
4209
4223
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4216,7 +4230,7 @@ const ee = (e, t) => {
|
|
|
4216
4230
|
throw new Error(
|
|
4217
4231
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4218
4232
|
);
|
|
4219
|
-
let l =
|
|
4233
|
+
let l = sr(e, h);
|
|
4220
4234
|
if (!l)
|
|
4221
4235
|
l = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4222
4236
|
else if (typeof l != "string")
|
|
@@ -4227,7 +4241,7 @@ const ee = (e, t) => {
|
|
|
4227
4241
|
return l;
|
|
4228
4242
|
let f = l;
|
|
4229
4243
|
try {
|
|
4230
|
-
f =
|
|
4244
|
+
f = $i(l, h).format(a);
|
|
4231
4245
|
} catch (c) {
|
|
4232
4246
|
c instanceof Error && console.warn(
|
|
4233
4247
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4235,21 +4249,21 @@ const ee = (e, t) => {
|
|
|
4235
4249
|
);
|
|
4236
4250
|
}
|
|
4237
4251
|
return f;
|
|
4238
|
-
},
|
|
4239
|
-
z([ie, ne], () =>
|
|
4240
|
-
z([ie], () => $i);
|
|
4241
|
-
z([ie], () => Ri);
|
|
4252
|
+
}, Ui = (e, t) => Mi(t).format(e), Di = (e, t) => Ci(t).format(e), Gi = (e, t) => Ni(t).format(e), Fi = (e, t = M()) => sr(e, t);
|
|
4253
|
+
z([ie, ne], () => Ri);
|
|
4242
4254
|
z([ie], () => Ui);
|
|
4243
|
-
z([ie
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4255
|
+
z([ie], () => Di);
|
|
4256
|
+
z([ie], () => Gi);
|
|
4257
|
+
z([ie, ne], () => Fi);
|
|
4258
|
+
window.emWidgets = { topic: en };
|
|
4259
|
+
const ji = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4260
|
+
function ki(e, t) {
|
|
4247
4261
|
if (e) {
|
|
4248
4262
|
const r = document.createElement("style");
|
|
4249
4263
|
r.innerHTML = t, e.appendChild(r);
|
|
4250
4264
|
}
|
|
4251
4265
|
}
|
|
4252
|
-
function
|
|
4266
|
+
function Vi(e, t) {
|
|
4253
4267
|
const r = new URL(t);
|
|
4254
4268
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4255
4269
|
const i = document.createElement("style");
|
|
@@ -4258,7 +4272,7 @@ function ji(e, t) {
|
|
|
4258
4272
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4259
4273
|
});
|
|
4260
4274
|
}
|
|
4261
|
-
function
|
|
4275
|
+
function Xi(e, t, r) {
|
|
4262
4276
|
if (window.emMessageBus) {
|
|
4263
4277
|
const n = document.createElement("style");
|
|
4264
4278
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4266,20 +4280,20 @@ function ki(e, t, r) {
|
|
|
4266
4280
|
});
|
|
4267
4281
|
}
|
|
4268
4282
|
}
|
|
4269
|
-
function
|
|
4270
|
-
|
|
4283
|
+
function zi(e) {
|
|
4284
|
+
gr(e, "svelte-qazmct", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:var(--emw--color-primary, #F7F7F7);font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw var(--emw--color-grey-105, #424242) solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;font-size:var(--emw--font-size-small, 14px);flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}.TabDesktop.casino-tournaments-tab{margin:10px}.TabDesktop.casino-tournaments-tab ul{font-size:inherit;border-bottom:2px var(--emw--color-grey-105, #424242) solid}.TabDesktop.casino-tournaments-tab ul li{padding:10px 20px;cursor:pointer}.TabDesktop.casino-tournaments-tab ul li.active{color:var(--emw--color-primary, #FF8364);border-bottom:3px var(--emw--color-primary, #FF8364) solid}.TabDesktop.casino-tournaments-tab ul li span{margin:auto 0}");
|
|
4271
4285
|
}
|
|
4272
|
-
function
|
|
4286
|
+
function Bt(e, t, r) {
|
|
4273
4287
|
const n = e.slice();
|
|
4274
4288
|
return n[16] = t[r], n;
|
|
4275
4289
|
}
|
|
4276
|
-
function
|
|
4277
|
-
let t, r =
|
|
4290
|
+
function At(e) {
|
|
4291
|
+
let t, r = st(
|
|
4278
4292
|
/*__tabs*/
|
|
4279
4293
|
e[6]
|
|
4280
4294
|
), n = [];
|
|
4281
4295
|
for (let i = 0; i < r.length; i += 1)
|
|
4282
|
-
n[i] =
|
|
4296
|
+
n[i] = Ot(Bt(e, r, i));
|
|
4283
4297
|
return {
|
|
4284
4298
|
c() {
|
|
4285
4299
|
t = I("ul");
|
|
@@ -4295,14 +4309,14 @@ function Ht(e) {
|
|
|
4295
4309
|
p(i, o) {
|
|
4296
4310
|
if (o & /*__tab, __tabs, window, tid, totalReceiver, textReceiver*/
|
|
4297
4311
|
121) {
|
|
4298
|
-
r =
|
|
4312
|
+
r = st(
|
|
4299
4313
|
/*__tabs*/
|
|
4300
4314
|
i[6]
|
|
4301
4315
|
);
|
|
4302
4316
|
let s;
|
|
4303
4317
|
for (s = 0; s < r.length; s += 1) {
|
|
4304
|
-
const a =
|
|
4305
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4318
|
+
const a = Bt(i, r, s);
|
|
4319
|
+
n[s] ? n[s].p(a, o) : (n[s] = Ot(a), n[s].c(), n[s].m(t, null));
|
|
4306
4320
|
}
|
|
4307
4321
|
for (; s < n.length; s += 1)
|
|
4308
4322
|
n[s].d(1);
|
|
@@ -4310,11 +4324,11 @@ function Ht(e) {
|
|
|
4310
4324
|
}
|
|
4311
4325
|
},
|
|
4312
4326
|
d(i) {
|
|
4313
|
-
i && X(t),
|
|
4327
|
+
i && X(t), Er(n, i);
|
|
4314
4328
|
}
|
|
4315
4329
|
};
|
|
4316
4330
|
}
|
|
4317
|
-
function
|
|
4331
|
+
function Pt(e) {
|
|
4318
4332
|
let t, r, n = (
|
|
4319
4333
|
/*totalReceiver*/
|
|
4320
4334
|
e[3][
|
|
@@ -4324,7 +4338,7 @@ function Bt(e) {
|
|
|
4324
4338
|
), i;
|
|
4325
4339
|
return {
|
|
4326
4340
|
c() {
|
|
4327
|
-
t = I("sup"), r = I("span"), i =
|
|
4341
|
+
t = I("sup"), r = I("span"), i = We(n), S(r, "part", "SupText"), S(t, "part", "sup");
|
|
4328
4342
|
},
|
|
4329
4343
|
m(o, s) {
|
|
4330
4344
|
re(o, t, s), C(t, r), C(r, i);
|
|
@@ -4335,14 +4349,14 @@ function Bt(e) {
|
|
|
4335
4349
|
o[3][
|
|
4336
4350
|
/*_tab*/
|
|
4337
4351
|
o[16]
|
|
4338
|
-
] + "") &&
|
|
4352
|
+
] + "") && Nt(i, n);
|
|
4339
4353
|
},
|
|
4340
4354
|
d(o) {
|
|
4341
4355
|
o && X(t);
|
|
4342
4356
|
}
|
|
4343
4357
|
};
|
|
4344
4358
|
}
|
|
4345
|
-
function
|
|
4359
|
+
function Ot(e) {
|
|
4346
4360
|
let t, r, n = (
|
|
4347
4361
|
/*textReceiver*/
|
|
4348
4362
|
e[4][
|
|
@@ -4354,7 +4368,7 @@ function At(e) {
|
|
|
4354
4368
|
e[3][
|
|
4355
4369
|
/*_tab*/
|
|
4356
4370
|
e[16]
|
|
4357
|
-
] >= 0 &&
|
|
4371
|
+
] >= 0 && Pt(e)
|
|
4358
4372
|
);
|
|
4359
4373
|
function c() {
|
|
4360
4374
|
return (
|
|
@@ -4367,48 +4381,48 @@ function At(e) {
|
|
|
4367
4381
|
}
|
|
4368
4382
|
return {
|
|
4369
4383
|
c() {
|
|
4370
|
-
t = I("li"), r = I("span"), i =
|
|
4384
|
+
t = I("li"), r = I("span"), i = We(n), o = it(), f && f.c(), s = it(), S(r, "part", "LiText"), S(t, "class", a = /*__tab*/
|
|
4371
4385
|
e[5] === /*_tab*/
|
|
4372
4386
|
e[16] ? "active" : ""), S(t, "part", h = `${/*_tab*/
|
|
4373
4387
|
e[16]} li ` + /*__tab*/
|
|
4374
4388
|
(e[5] === /*_tab*/
|
|
4375
4389
|
e[16] ? "active" : ""));
|
|
4376
4390
|
},
|
|
4377
|
-
m(
|
|
4378
|
-
re(
|
|
4391
|
+
m(p, d) {
|
|
4392
|
+
re(p, t, d), C(t, r), C(r, i), C(t, o), f && f.m(t, null), C(t, s), u || (l = _r(t, "click", c), u = !0);
|
|
4379
4393
|
},
|
|
4380
|
-
p(
|
|
4381
|
-
e =
|
|
4394
|
+
p(p, d) {
|
|
4395
|
+
e = p, d & /*textReceiver, __tabs*/
|
|
4382
4396
|
80 && n !== (n = /*textReceiver*/
|
|
4383
4397
|
e[4][
|
|
4384
4398
|
/*_tab*/
|
|
4385
4399
|
e[16]
|
|
4386
|
-
] + "") &&
|
|
4400
|
+
] + "") && Nt(i, n), /*totalReceiver*/
|
|
4387
4401
|
e[3][
|
|
4388
4402
|
/*_tab*/
|
|
4389
4403
|
e[16]
|
|
4390
|
-
] >= 0 ? f ? f.p(e,
|
|
4404
|
+
] >= 0 ? f ? f.p(e, d) : (f = Pt(e), f.c(), f.m(t, s)) : f && (f.d(1), f = null), d & /*__tab, __tabs*/
|
|
4391
4405
|
96 && a !== (a = /*__tab*/
|
|
4392
4406
|
e[5] === /*_tab*/
|
|
4393
|
-
e[16] ? "active" : "") && S(t, "class", a),
|
|
4407
|
+
e[16] ? "active" : "") && S(t, "class", a), d & /*__tabs, __tab*/
|
|
4394
4408
|
96 && h !== (h = `${/*_tab*/
|
|
4395
4409
|
e[16]} li ` + /*__tab*/
|
|
4396
4410
|
(e[5] === /*_tab*/
|
|
4397
4411
|
e[16] ? "active" : "")) && S(t, "part", h);
|
|
4398
4412
|
},
|
|
4399
|
-
d(
|
|
4400
|
-
|
|
4413
|
+
d(p) {
|
|
4414
|
+
p && X(t), f && f.d(), u = !1, l();
|
|
4401
4415
|
}
|
|
4402
4416
|
};
|
|
4403
4417
|
}
|
|
4404
|
-
function
|
|
4418
|
+
function Wi(e) {
|
|
4405
4419
|
let t, r = (
|
|
4406
4420
|
/*isTitleInited*/
|
|
4407
|
-
e[2] &&
|
|
4421
|
+
e[2] && At(e)
|
|
4408
4422
|
);
|
|
4409
4423
|
return {
|
|
4410
4424
|
c() {
|
|
4411
|
-
t = I("div"), r && r.c(), S(t, "class", "casino-tournaments-tab " + (
|
|
4425
|
+
t = I("div"), r && r.c(), S(t, "class", "casino-tournaments-tab " + (ji(
|
|
4412
4426
|
/*userAgent*/
|
|
4413
4427
|
e[7]
|
|
4414
4428
|
) ? "TabMobile" : "TabDesktop")), S(t, "part", "CustomStylingContainer");
|
|
@@ -4418,7 +4432,7 @@ function Xi(e) {
|
|
|
4418
4432
|
},
|
|
4419
4433
|
p(n, [i]) {
|
|
4420
4434
|
/*isTitleInited*/
|
|
4421
|
-
n[2] ? r ? r.p(n, i) : (r =
|
|
4435
|
+
n[2] ? r ? r.p(n, i) : (r = At(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4422
4436
|
},
|
|
4423
4437
|
i: w,
|
|
4424
4438
|
o: w,
|
|
@@ -4427,20 +4441,20 @@ function Xi(e) {
|
|
|
4427
4441
|
}
|
|
4428
4442
|
};
|
|
4429
4443
|
}
|
|
4430
|
-
function
|
|
4444
|
+
function Zi(e, t, r) {
|
|
4431
4445
|
let n, i, { tabs: o = "" } = t, { tab: s = void 0 } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { tid: l = "pageTab" } = t, f, c = !1;
|
|
4432
|
-
const
|
|
4433
|
-
let
|
|
4434
|
-
|
|
4435
|
-
TournamentsTabTotalUpdate: (
|
|
4436
|
-
r(3,
|
|
4437
|
-
[
|
|
4446
|
+
const p = window.navigator.userAgent;
|
|
4447
|
+
let d = {}, v = {};
|
|
4448
|
+
Dr({
|
|
4449
|
+
TournamentsTabTotalUpdate: (y) => {
|
|
4450
|
+
r(3, d = _e(Q({}, d), {
|
|
4451
|
+
[y.state]: y.total
|
|
4438
4452
|
}));
|
|
4439
4453
|
},
|
|
4440
|
-
TournamentsTabsLocalize: (
|
|
4441
|
-
r(2, c = !0), r(4,
|
|
4454
|
+
TournamentsTabsLocalize: (y) => {
|
|
4455
|
+
r(2, c = !0), r(4, v = Q(Q({}, v), y.tabTitleTranslations));
|
|
4442
4456
|
}
|
|
4443
|
-
}),
|
|
4457
|
+
}), Ct(() => (window.postMessage(
|
|
4444
4458
|
{
|
|
4445
4459
|
type: "TournamentsTabListenerLoaded",
|
|
4446
4460
|
tid: l
|
|
@@ -4448,56 +4462,56 @@ function zi(e, t, r) {
|
|
|
4448
4462
|
window.location.href
|
|
4449
4463
|
), () => {
|
|
4450
4464
|
}));
|
|
4451
|
-
const T = (
|
|
4452
|
-
r(5, i =
|
|
4465
|
+
const T = (y) => {
|
|
4466
|
+
r(5, i = y), window.postMessage(
|
|
4453
4467
|
{
|
|
4454
4468
|
type: "TournamentsTabSwitch",
|
|
4455
|
-
tab:
|
|
4469
|
+
tab: y,
|
|
4456
4470
|
tid: l
|
|
4457
4471
|
},
|
|
4458
4472
|
window.location.href
|
|
4459
4473
|
);
|
|
4460
4474
|
};
|
|
4461
|
-
function
|
|
4462
|
-
|
|
4463
|
-
f =
|
|
4475
|
+
function L(y) {
|
|
4476
|
+
Oe[y ? "unshift" : "push"](() => {
|
|
4477
|
+
f = y, r(1, f);
|
|
4464
4478
|
});
|
|
4465
4479
|
}
|
|
4466
|
-
return e.$$set = (
|
|
4467
|
-
"tabs" in
|
|
4480
|
+
return e.$$set = (y) => {
|
|
4481
|
+
"tabs" in y && r(8, o = y.tabs), "tab" in y && r(9, s = y.tab), "clientstyling" in y && r(10, a = y.clientstyling), "clientstylingurl" in y && r(11, h = y.clientstylingurl), "mbsource" in y && r(12, u = y.mbsource), "tid" in y && r(0, l = y.tid);
|
|
4468
4482
|
}, e.$$.update = () => {
|
|
4469
4483
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4470
|
-
1026 && a && f &&
|
|
4471
|
-
2050 && h && f &&
|
|
4472
|
-
4098 && u && f &&
|
|
4484
|
+
1026 && a && f && ki(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4485
|
+
2050 && h && f && Vi(f, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4486
|
+
4098 && u && f && Xi(f, `${u}.Style`), e.$$.dirty & /*tabs*/
|
|
4473
4487
|
256 && r(6, n = o.split(",")), e.$$.dirty & /*tab*/
|
|
4474
4488
|
512 && r(5, i = s);
|
|
4475
4489
|
}, [
|
|
4476
4490
|
l,
|
|
4477
4491
|
f,
|
|
4478
4492
|
c,
|
|
4479
|
-
|
|
4480
|
-
|
|
4493
|
+
d,
|
|
4494
|
+
v,
|
|
4481
4495
|
i,
|
|
4482
4496
|
n,
|
|
4483
|
-
|
|
4497
|
+
p,
|
|
4484
4498
|
o,
|
|
4485
4499
|
s,
|
|
4486
4500
|
a,
|
|
4487
4501
|
h,
|
|
4488
4502
|
u,
|
|
4489
4503
|
T,
|
|
4490
|
-
|
|
4504
|
+
L
|
|
4491
4505
|
];
|
|
4492
4506
|
}
|
|
4493
|
-
class
|
|
4507
|
+
class Qi extends $r {
|
|
4494
4508
|
constructor(t) {
|
|
4495
|
-
super(),
|
|
4509
|
+
super(), Cr(
|
|
4496
4510
|
this,
|
|
4497
4511
|
t,
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4512
|
+
Zi,
|
|
4513
|
+
Wi,
|
|
4514
|
+
Lt,
|
|
4501
4515
|
{
|
|
4502
4516
|
tabs: 8,
|
|
4503
4517
|
tab: 9,
|
|
@@ -4506,7 +4520,7 @@ class Wi extends Lr {
|
|
|
4506
4520
|
mbsource: 12,
|
|
4507
4521
|
tid: 0
|
|
4508
4522
|
},
|
|
4509
|
-
|
|
4523
|
+
zi
|
|
4510
4524
|
);
|
|
4511
4525
|
}
|
|
4512
4526
|
get tabs() {
|
|
@@ -4546,7 +4560,7 @@ class Wi extends Lr {
|
|
|
4546
4560
|
this.$$set({ tid: t }), P();
|
|
4547
4561
|
}
|
|
4548
4562
|
}
|
|
4549
|
-
|
|
4563
|
+
Mr(Qi, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, tid: {} }, [], [], !0);
|
|
4550
4564
|
export {
|
|
4551
|
-
|
|
4565
|
+
Qi as default
|
|
4552
4566
|
};
|