@everymatrix/casino-tournaments-tab 1.86.4 → 1.86.5
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-DRLg4oeD.js → CasinoTournamentsTab-C32EjHEa.js} +753 -732
- package/components/{CasinoTournamentsTab-CHpA7UyH.js → CasinoTournamentsTab-D5CTMAEx.js} +705 -684
- package/components/CasinoTournamentsTab-alsBtUTn.cjs +18 -0
- 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-DcCZHhw6.cjs +0 -18
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
function
|
|
1
|
+
function T() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Tt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function q(e) {
|
|
10
|
+
e.forEach(Tt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Xe(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function wt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ir(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function or(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return T;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function L(e, t) {
|
|
31
31
|
e.appendChild(t);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const n =
|
|
33
|
+
function sr(e, t, r) {
|
|
34
|
+
const n = ar(e);
|
|
35
35
|
if (!n.getElementById(t)) {
|
|
36
36
|
const i = O("style");
|
|
37
|
-
i.id = t, i.textContent = r,
|
|
37
|
+
i.id = t, i.textContent = r, ur(n, i);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function ar(e) {
|
|
41
41
|
if (!e)
|
|
42
42
|
return document;
|
|
43
43
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -47,46 +47,46 @@ function sr(e) {
|
|
|
47
47
|
t
|
|
48
48
|
) : e.ownerDocument;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function ur(e, t) {
|
|
51
|
+
return L(
|
|
52
52
|
/** @type {Document} */
|
|
53
53
|
e.head || e,
|
|
54
54
|
t
|
|
55
55
|
), t.sheet;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function K(e, t, r) {
|
|
58
58
|
e.insertBefore(t, r || null);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function k(e) {
|
|
61
61
|
e.parentNode && e.parentNode.removeChild(e);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function hr(e, t) {
|
|
64
64
|
for (let r = 0; r < e.length; r += 1)
|
|
65
65
|
e[r] && e[r].d(t);
|
|
66
66
|
}
|
|
67
67
|
function O(e) {
|
|
68
68
|
return document.createElement(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ze(e) {
|
|
71
71
|
return document.createTextNode(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return
|
|
73
|
+
function Ye() {
|
|
74
|
+
return ze(" ");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function lr(e, t, r, n) {
|
|
77
77
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function S(e, t, r) {
|
|
80
80
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function fr(e) {
|
|
83
83
|
return Array.from(e.childNodes);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Ht(e, t) {
|
|
86
86
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
87
87
|
t);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function cr(e) {
|
|
90
90
|
const t = {};
|
|
91
91
|
return e.childNodes.forEach(
|
|
92
92
|
/** @param {Element} node */
|
|
@@ -95,98 +95,98 @@ function fr(e) {
|
|
|
95
95
|
}
|
|
96
96
|
), t;
|
|
97
97
|
}
|
|
98
|
-
let
|
|
99
|
-
function
|
|
100
|
-
|
|
98
|
+
let Q;
|
|
99
|
+
function Z(e) {
|
|
100
|
+
Q = e;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
if (!
|
|
102
|
+
function pr() {
|
|
103
|
+
if (!Q)
|
|
104
104
|
throw new Error("Function called outside component initialization");
|
|
105
|
-
return
|
|
105
|
+
return Q;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
107
|
+
function At(e) {
|
|
108
|
+
pr().$$.on_mount.push(e);
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const R = [], Ae = [];
|
|
111
111
|
let U = [];
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
function
|
|
115
|
-
|
|
112
|
+
const qe = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
113
|
+
let Be = !1;
|
|
114
|
+
function br() {
|
|
115
|
+
Be || (Be = !0, mr.then(B));
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Pe(e) {
|
|
118
118
|
U.push(e);
|
|
119
119
|
}
|
|
120
|
-
const
|
|
120
|
+
const ye = /* @__PURE__ */ new Set();
|
|
121
121
|
let M = 0;
|
|
122
|
-
function
|
|
122
|
+
function B() {
|
|
123
123
|
if (M !== 0)
|
|
124
124
|
return;
|
|
125
|
-
const e =
|
|
125
|
+
const e = Q;
|
|
126
126
|
do {
|
|
127
127
|
try {
|
|
128
|
-
for (; M <
|
|
129
|
-
const t =
|
|
130
|
-
M++,
|
|
128
|
+
for (; M < R.length; ) {
|
|
129
|
+
const t = R[M];
|
|
130
|
+
M++, Z(t), dr(t.$$);
|
|
131
131
|
}
|
|
132
132
|
} catch (t) {
|
|
133
|
-
throw
|
|
133
|
+
throw R.length = 0, M = 0, t;
|
|
134
134
|
}
|
|
135
|
-
for (
|
|
136
|
-
|
|
135
|
+
for (Z(null), R.length = 0, M = 0; Ae.length; )
|
|
136
|
+
Ae.pop()();
|
|
137
137
|
for (let t = 0; t < U.length; t += 1) {
|
|
138
138
|
const r = U[t];
|
|
139
|
-
|
|
139
|
+
ye.has(r) || (ye.add(r), r());
|
|
140
140
|
}
|
|
141
141
|
U.length = 0;
|
|
142
|
-
} while (
|
|
143
|
-
for (;
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
} while (R.length);
|
|
143
|
+
for (; qe.length; )
|
|
144
|
+
qe.pop()();
|
|
145
|
+
Be = !1, ye.clear(), Z(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function dr(e) {
|
|
148
148
|
if (e.fragment !== null) {
|
|
149
|
-
e.update(),
|
|
149
|
+
e.update(), q(e.before_update);
|
|
150
150
|
const t = e.dirty;
|
|
151
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
151
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Pe);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function gr(e) {
|
|
155
155
|
const t = [], r = [];
|
|
156
156
|
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
157
157
|
}
|
|
158
|
-
const
|
|
159
|
-
function
|
|
160
|
-
e && e.i && (
|
|
158
|
+
const vr = /* @__PURE__ */ new Set();
|
|
159
|
+
function yr(e, t) {
|
|
160
|
+
e && e.i && (vr.delete(e), e.i(t));
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Ke(e) {
|
|
163
163
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function _r(e, t, r) {
|
|
166
166
|
const { fragment: n, after_update: i } = e.$$;
|
|
167
|
-
n && n.m(t, r),
|
|
168
|
-
const o = e.$$.on_mount.map(
|
|
169
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
170
|
-
}), i.forEach(
|
|
167
|
+
n && n.m(t, r), Pe(() => {
|
|
168
|
+
const o = e.$$.on_mount.map(Tt).filter(Xe);
|
|
169
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : q(o), e.$$.on_mount = [];
|
|
170
|
+
}), i.forEach(Pe);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Er(e, t) {
|
|
173
173
|
const r = e.$$;
|
|
174
|
-
r.fragment !== null && (
|
|
174
|
+
r.fragment !== null && (gr(r.after_update), q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
e.$$.dirty[0] === -1 && (
|
|
176
|
+
function xr(e, t) {
|
|
177
|
+
e.$$.dirty[0] === -1 && (R.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
const h =
|
|
181
|
-
|
|
179
|
+
function Sr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
180
|
+
const h = Q;
|
|
181
|
+
Z(e);
|
|
182
182
|
const u = e.$$ = {
|
|
183
183
|
fragment: null,
|
|
184
184
|
ctx: [],
|
|
185
185
|
// state
|
|
186
186
|
props: o,
|
|
187
|
-
update:
|
|
187
|
+
update: T,
|
|
188
188
|
not_equal: i,
|
|
189
|
-
bound:
|
|
189
|
+
bound: Je(),
|
|
190
190
|
// lifecycle
|
|
191
191
|
on_mount: [],
|
|
192
192
|
on_destroy: [],
|
|
@@ -195,7 +195,7 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
195
195
|
after_update: [],
|
|
196
196
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
197
197
|
// everything else
|
|
198
|
-
callbacks:
|
|
198
|
+
callbacks: Je(),
|
|
199
199
|
dirty: a,
|
|
200
200
|
skip_bound: !1,
|
|
201
201
|
root: t.target || h.$$.root
|
|
@@ -204,19 +204,19 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
204
204
|
let l = !1;
|
|
205
205
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
206
206
|
const b = p.length ? p[0] : c;
|
|
207
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), l &&
|
|
208
|
-
}) : [], u.update(), l = !0,
|
|
207
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), l && xr(e, f)), c;
|
|
208
|
+
}) : [], u.update(), l = !0, q(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
209
209
|
if (t.hydrate) {
|
|
210
|
-
const f =
|
|
211
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
210
|
+
const f = fr(t.target);
|
|
211
|
+
u.fragment && u.fragment.l(f), f.forEach(k);
|
|
212
212
|
} else
|
|
213
213
|
u.fragment && u.fragment.c();
|
|
214
|
-
t.intro &&
|
|
214
|
+
t.intro && yr(e.$$.fragment), _r(e, t.target, t.anchor), B();
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
Z(h);
|
|
217
217
|
}
|
|
218
|
-
let
|
|
219
|
-
typeof HTMLElement == "function" && (
|
|
218
|
+
let Bt;
|
|
219
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
220
220
|
/** The Svelte component constructor */
|
|
221
221
|
$$ctor;
|
|
222
222
|
/** Slots */
|
|
@@ -258,24 +258,24 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
258
258
|
let o;
|
|
259
259
|
return {
|
|
260
260
|
c: function() {
|
|
261
|
-
o = O("slot"), i !== "default" &&
|
|
261
|
+
o = O("slot"), i !== "default" && S(o, "name", i);
|
|
262
262
|
},
|
|
263
263
|
/**
|
|
264
264
|
* @param {HTMLElement} target
|
|
265
265
|
* @param {HTMLElement} [anchor]
|
|
266
266
|
*/
|
|
267
267
|
m: function(h, u) {
|
|
268
|
-
|
|
268
|
+
K(h, o, u);
|
|
269
269
|
},
|
|
270
270
|
d: function(h) {
|
|
271
|
-
h &&
|
|
271
|
+
h && k(o);
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
};
|
|
276
276
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
277
277
|
return;
|
|
278
|
-
const t = {}, r =
|
|
278
|
+
const t = {}, r = cr(this);
|
|
279
279
|
for (const i of this.$$s)
|
|
280
280
|
i in r && (t[i] = [e(i)]);
|
|
281
281
|
for (const i of this.attributes) {
|
|
@@ -363,7 +363,7 @@ function se(e, t, r, n) {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
function Tr(e, t, r, n, i, o) {
|
|
366
|
-
let s = class extends
|
|
366
|
+
let s = class extends Bt {
|
|
367
367
|
constructor() {
|
|
368
368
|
super(e, r, i), this.$$p_d = t;
|
|
369
369
|
}
|
|
@@ -391,7 +391,7 @@ function Tr(e, t, r, n, i, o) {
|
|
|
391
391
|
}), e.element = /** @type {any} */
|
|
392
392
|
s, s;
|
|
393
393
|
}
|
|
394
|
-
class
|
|
394
|
+
class wr {
|
|
395
395
|
/**
|
|
396
396
|
* ### PRIVATE API
|
|
397
397
|
*
|
|
@@ -410,7 +410,7 @@ class Sr {
|
|
|
410
410
|
$$set = void 0;
|
|
411
411
|
/** @returns {void} */
|
|
412
412
|
$destroy() {
|
|
413
|
-
|
|
413
|
+
Er(this, 1), this.$destroy = T;
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
416
416
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -419,8 +419,8 @@ class Sr {
|
|
|
419
419
|
* @returns {() => void}
|
|
420
420
|
*/
|
|
421
421
|
$on(t, r) {
|
|
422
|
-
if (!
|
|
423
|
-
return
|
|
422
|
+
if (!Xe(r))
|
|
423
|
+
return T;
|
|
424
424
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
425
425
|
return n.push(r), () => {
|
|
426
426
|
const i = n.indexOf(r);
|
|
@@ -432,12 +432,12 @@ class Sr {
|
|
|
432
432
|
* @returns {void}
|
|
433
433
|
*/
|
|
434
434
|
$set(t) {
|
|
435
|
-
this.$$set && !
|
|
435
|
+
this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
const
|
|
439
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
440
|
-
const
|
|
438
|
+
const Hr = "4";
|
|
439
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
|
|
440
|
+
const Ar = (e) => (r) => {
|
|
441
441
|
Object.keys(e).map((n) => {
|
|
442
442
|
if (r.data && r.data.type == n) {
|
|
443
443
|
const { type: i, ...o } = r.data;
|
|
@@ -445,8 +445,8 @@ const Hr = (e) => (r) => {
|
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}, Br = (e) => {
|
|
448
|
-
const t =
|
|
449
|
-
|
|
448
|
+
const t = Ar(e);
|
|
449
|
+
At(() => (window.addEventListener("message", t, !1), () => {
|
|
450
450
|
window.removeEventListener("message", t);
|
|
451
451
|
}));
|
|
452
452
|
};
|
|
@@ -464,43 +464,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
464
464
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
465
465
|
PERFORMANCE OF THIS SOFTWARE.
|
|
466
466
|
***************************************************************************** */
|
|
467
|
-
var
|
|
468
|
-
return
|
|
467
|
+
var Oe = function(e, t) {
|
|
468
|
+
return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
469
469
|
r.__proto__ = n;
|
|
470
470
|
} || function(r, n) {
|
|
471
471
|
for (var i in n)
|
|
472
472
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
473
|
-
},
|
|
473
|
+
}, Oe(e, t);
|
|
474
474
|
};
|
|
475
|
-
function
|
|
475
|
+
function ee(e, t) {
|
|
476
476
|
if (typeof t != "function" && t !== null)
|
|
477
477
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
478
|
-
|
|
478
|
+
Oe(e, t);
|
|
479
479
|
function r() {
|
|
480
480
|
this.constructor = e;
|
|
481
481
|
}
|
|
482
482
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
483
483
|
}
|
|
484
|
-
|
|
485
|
-
return y = Object.assign || function(t) {
|
|
486
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
487
|
-
r = arguments[n];
|
|
488
|
-
for (var o in r)
|
|
489
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
490
|
-
}
|
|
491
|
-
return t;
|
|
492
|
-
}, y.apply(this, arguments);
|
|
493
|
-
};
|
|
494
|
-
function Ar(e, t) {
|
|
495
|
-
var r = {};
|
|
496
|
-
for (var n in e)
|
|
497
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
498
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
499
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
500
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
501
|
-
return r;
|
|
502
|
-
}
|
|
503
|
-
function Pe(e) {
|
|
484
|
+
function Ie(e) {
|
|
504
485
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
505
486
|
if (r)
|
|
506
487
|
return r.call(e);
|
|
@@ -512,7 +493,7 @@ function Pe(e) {
|
|
|
512
493
|
};
|
|
513
494
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
514
495
|
}
|
|
515
|
-
function
|
|
496
|
+
function Ne(e, t) {
|
|
516
497
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
517
498
|
if (!r)
|
|
518
499
|
return e;
|
|
@@ -532,22 +513,22 @@ function Oe(e, t) {
|
|
|
532
513
|
}
|
|
533
514
|
return o;
|
|
534
515
|
}
|
|
535
|
-
function
|
|
536
|
-
if (
|
|
516
|
+
function Le(e, t, r) {
|
|
517
|
+
if (arguments.length === 2)
|
|
537
518
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
538
519
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
539
520
|
return e.concat(o || t);
|
|
540
521
|
}
|
|
541
|
-
function
|
|
522
|
+
function A(e) {
|
|
542
523
|
return typeof e == "function";
|
|
543
524
|
}
|
|
544
|
-
function
|
|
525
|
+
function Pt(e) {
|
|
545
526
|
var t = function(n) {
|
|
546
527
|
Error.call(n), n.stack = new Error().stack;
|
|
547
528
|
}, r = e(t);
|
|
548
529
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
549
530
|
}
|
|
550
|
-
var
|
|
531
|
+
var _e = Pt(function(e) {
|
|
551
532
|
return function(r) {
|
|
552
533
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
553
534
|
` + r.map(function(n, i) {
|
|
@@ -556,13 +537,13 @@ var ve = Bt(function(e) {
|
|
|
556
537
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
557
538
|
};
|
|
558
539
|
});
|
|
559
|
-
function
|
|
540
|
+
function Ce(e, t) {
|
|
560
541
|
if (e) {
|
|
561
542
|
var r = e.indexOf(t);
|
|
562
543
|
0 <= r && e.splice(r, 1);
|
|
563
544
|
}
|
|
564
545
|
}
|
|
565
|
-
var
|
|
546
|
+
var pe = function() {
|
|
566
547
|
function e(t) {
|
|
567
548
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
568
549
|
}
|
|
@@ -574,7 +555,7 @@ var ce = function() {
|
|
|
574
555
|
if (s)
|
|
575
556
|
if (this._parentage = null, Array.isArray(s))
|
|
576
557
|
try {
|
|
577
|
-
for (var a =
|
|
558
|
+
for (var a = Ie(s), h = a.next(); !h.done; h = a.next()) {
|
|
578
559
|
var u = h.value;
|
|
579
560
|
u.remove(this);
|
|
580
561
|
}
|
|
@@ -591,22 +572,22 @@ var ce = function() {
|
|
|
591
572
|
else
|
|
592
573
|
s.remove(this);
|
|
593
574
|
var l = this.initialTeardown;
|
|
594
|
-
if (
|
|
575
|
+
if (A(l))
|
|
595
576
|
try {
|
|
596
577
|
l();
|
|
597
578
|
} catch (v) {
|
|
598
|
-
o = v instanceof
|
|
579
|
+
o = v instanceof _e ? v.errors : [v];
|
|
599
580
|
}
|
|
600
581
|
var f = this._finalizers;
|
|
601
582
|
if (f) {
|
|
602
583
|
this._finalizers = null;
|
|
603
584
|
try {
|
|
604
|
-
for (var c =
|
|
585
|
+
for (var c = Ie(f), p = c.next(); !p.done; p = c.next()) {
|
|
605
586
|
var b = p.value;
|
|
606
587
|
try {
|
|
607
|
-
|
|
588
|
+
et(b);
|
|
608
589
|
} catch (v) {
|
|
609
|
-
o = o ?? [], v instanceof
|
|
590
|
+
o = o ?? [], v instanceof _e ? o = Le(Le([], Ne(o)), Ne(v.errors)) : o.push(v);
|
|
610
591
|
}
|
|
611
592
|
}
|
|
612
593
|
} catch (v) {
|
|
@@ -621,13 +602,13 @@ var ce = function() {
|
|
|
621
602
|
}
|
|
622
603
|
}
|
|
623
604
|
if (o)
|
|
624
|
-
throw new
|
|
605
|
+
throw new _e(o);
|
|
625
606
|
}
|
|
626
607
|
}, e.prototype.add = function(t) {
|
|
627
608
|
var r;
|
|
628
609
|
if (t && t !== this)
|
|
629
610
|
if (this.closed)
|
|
630
|
-
|
|
611
|
+
et(t);
|
|
631
612
|
else {
|
|
632
613
|
if (t instanceof e) {
|
|
633
614
|
if (t.closed || t._hasParent(this))
|
|
@@ -644,56 +625,52 @@ var ce = function() {
|
|
|
644
625
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
645
626
|
}, e.prototype._removeParent = function(t) {
|
|
646
627
|
var r = this._parentage;
|
|
647
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
628
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ce(r, t);
|
|
648
629
|
}, e.prototype.remove = function(t) {
|
|
649
630
|
var r = this._finalizers;
|
|
650
|
-
r &&
|
|
631
|
+
r && Ce(r, t), t instanceof e && t._removeParent(this);
|
|
651
632
|
}, e.EMPTY = function() {
|
|
652
633
|
var t = new e();
|
|
653
634
|
return t.closed = !0, t;
|
|
654
635
|
}(), e;
|
|
655
|
-
}(),
|
|
656
|
-
function
|
|
657
|
-
return e instanceof
|
|
658
|
-
}
|
|
659
|
-
function
|
|
660
|
-
|
|
661
|
-
}
|
|
662
|
-
var
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
Promise: void 0,
|
|
666
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
667
|
-
useDeprecatedNextContext: !1
|
|
668
|
-
}, Pr = {
|
|
636
|
+
}(), Ot = pe.EMPTY;
|
|
637
|
+
function It(e) {
|
|
638
|
+
return e instanceof pe || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
639
|
+
}
|
|
640
|
+
function et(e) {
|
|
641
|
+
A(e) ? e() : e.unsubscribe();
|
|
642
|
+
}
|
|
643
|
+
var Pr = {
|
|
644
|
+
Promise: void 0
|
|
645
|
+
}, Or = {
|
|
669
646
|
setTimeout: function(e, t) {
|
|
670
647
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
671
648
|
r[n - 2] = arguments[n];
|
|
672
|
-
return setTimeout.apply(void 0,
|
|
649
|
+
return setTimeout.apply(void 0, Le([e, t], Ne(r)));
|
|
673
650
|
},
|
|
674
651
|
clearTimeout: function(e) {
|
|
675
652
|
return clearTimeout(e);
|
|
676
653
|
},
|
|
677
654
|
delegate: void 0
|
|
678
655
|
};
|
|
679
|
-
function
|
|
680
|
-
|
|
656
|
+
function Ir(e) {
|
|
657
|
+
Or.setTimeout(function() {
|
|
681
658
|
throw e;
|
|
682
659
|
});
|
|
683
660
|
}
|
|
684
|
-
function
|
|
661
|
+
function tt() {
|
|
685
662
|
}
|
|
686
663
|
function ae(e) {
|
|
687
664
|
e();
|
|
688
665
|
}
|
|
689
|
-
var
|
|
690
|
-
|
|
666
|
+
var Nt = function(e) {
|
|
667
|
+
ee(t, e);
|
|
691
668
|
function t(r) {
|
|
692
669
|
var n = e.call(this) || this;
|
|
693
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
670
|
+
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Cr, n;
|
|
694
671
|
}
|
|
695
672
|
return t.create = function(r, n, i) {
|
|
696
|
-
return new
|
|
673
|
+
return new Me(r, n, i);
|
|
697
674
|
}, t.prototype.next = function(r) {
|
|
698
675
|
this.isStopped || this._next(r);
|
|
699
676
|
}, t.prototype.error = function(r) {
|
|
@@ -717,11 +694,7 @@ var It = function(e) {
|
|
|
717
694
|
this.unsubscribe();
|
|
718
695
|
}
|
|
719
696
|
}, t;
|
|
720
|
-
}(
|
|
721
|
-
function ye(e, t) {
|
|
722
|
-
return Ir.call(e, t);
|
|
723
|
-
}
|
|
724
|
-
var Lr = function() {
|
|
697
|
+
}(pe), Nr = function() {
|
|
725
698
|
function e(t) {
|
|
726
699
|
this.partialObserver = t;
|
|
727
700
|
}
|
|
@@ -752,55 +725,43 @@ var Lr = function() {
|
|
|
752
725
|
ie(r);
|
|
753
726
|
}
|
|
754
727
|
}, e;
|
|
755
|
-
}(),
|
|
756
|
-
|
|
728
|
+
}(), Me = function(e) {
|
|
729
|
+
ee(t, e);
|
|
757
730
|
function t(r, n, i) {
|
|
758
731
|
var o = e.call(this) || this, s;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
};
|
|
765
|
-
else {
|
|
766
|
-
var a;
|
|
767
|
-
o && Ot.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
768
|
-
return o.unsubscribe();
|
|
769
|
-
}, s = {
|
|
770
|
-
next: r.next && ye(r.next, a),
|
|
771
|
-
error: r.error && ye(r.error, a),
|
|
772
|
-
complete: r.complete && ye(r.complete, a)
|
|
773
|
-
}) : s = r;
|
|
774
|
-
}
|
|
775
|
-
return o.destination = new Lr(s), o;
|
|
732
|
+
return A(r) || !r ? s = {
|
|
733
|
+
next: r ?? void 0,
|
|
734
|
+
error: n ?? void 0,
|
|
735
|
+
complete: i ?? void 0
|
|
736
|
+
} : s = r, o.destination = new Nr(s), o;
|
|
776
737
|
}
|
|
777
738
|
return t;
|
|
778
|
-
}(
|
|
739
|
+
}(Nt);
|
|
779
740
|
function ie(e) {
|
|
780
|
-
|
|
741
|
+
Ir(e);
|
|
781
742
|
}
|
|
782
|
-
function
|
|
743
|
+
function Lr(e) {
|
|
783
744
|
throw e;
|
|
784
745
|
}
|
|
785
746
|
var Cr = {
|
|
786
747
|
closed: !0,
|
|
787
|
-
next:
|
|
788
|
-
error:
|
|
789
|
-
complete:
|
|
748
|
+
next: tt,
|
|
749
|
+
error: Lr,
|
|
750
|
+
complete: tt
|
|
790
751
|
}, Mr = function() {
|
|
791
752
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
792
753
|
}();
|
|
793
|
-
function
|
|
754
|
+
function $r(e) {
|
|
794
755
|
return e;
|
|
795
756
|
}
|
|
796
|
-
function
|
|
797
|
-
return e.length === 0 ?
|
|
757
|
+
function Rr(e) {
|
|
758
|
+
return e.length === 0 ? $r : e.length === 1 ? e[0] : function(r) {
|
|
798
759
|
return e.reduce(function(n, i) {
|
|
799
760
|
return i(n);
|
|
800
761
|
}, r);
|
|
801
762
|
};
|
|
802
763
|
}
|
|
803
|
-
var
|
|
764
|
+
var rt = function() {
|
|
804
765
|
function e(t) {
|
|
805
766
|
t && (this._subscribe = t);
|
|
806
767
|
}
|
|
@@ -808,7 +769,7 @@ var et = function() {
|
|
|
808
769
|
var r = new e();
|
|
809
770
|
return r.source = this, r.operator = t, r;
|
|
810
771
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
811
|
-
var i = this, o = Dr(t) ? t : new
|
|
772
|
+
var i = this, o = Dr(t) ? t : new Me(t, r, n);
|
|
812
773
|
return ae(function() {
|
|
813
774
|
var s = i, a = s.operator, h = s.source;
|
|
814
775
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -821,8 +782,8 @@ var et = function() {
|
|
|
821
782
|
}
|
|
822
783
|
}, e.prototype.forEach = function(t, r) {
|
|
823
784
|
var n = this;
|
|
824
|
-
return r =
|
|
825
|
-
var s = new
|
|
785
|
+
return r = nt(r), new r(function(i, o) {
|
|
786
|
+
var s = new Me({
|
|
826
787
|
next: function(a) {
|
|
827
788
|
try {
|
|
828
789
|
t(a);
|
|
@@ -843,10 +804,10 @@ var et = function() {
|
|
|
843
804
|
}, e.prototype.pipe = function() {
|
|
844
805
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
845
806
|
t[r] = arguments[r];
|
|
846
|
-
return
|
|
807
|
+
return Rr(t)(this);
|
|
847
808
|
}, e.prototype.toPromise = function(t) {
|
|
848
809
|
var r = this;
|
|
849
|
-
return t =
|
|
810
|
+
return t = nt(t), new t(function(n, i) {
|
|
850
811
|
var o;
|
|
851
812
|
r.subscribe(function(s) {
|
|
852
813
|
return o = s;
|
|
@@ -860,28 +821,28 @@ var et = function() {
|
|
|
860
821
|
return new e(t);
|
|
861
822
|
}, e;
|
|
862
823
|
}();
|
|
863
|
-
function
|
|
824
|
+
function nt(e) {
|
|
864
825
|
var t;
|
|
865
|
-
return (t = e ??
|
|
826
|
+
return (t = e ?? Pr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
866
827
|
}
|
|
867
828
|
function Ur(e) {
|
|
868
|
-
return e &&
|
|
829
|
+
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
869
830
|
}
|
|
870
831
|
function Dr(e) {
|
|
871
|
-
return e && e instanceof
|
|
832
|
+
return e && e instanceof Nt || Ur(e) && It(e);
|
|
872
833
|
}
|
|
873
|
-
var Gr =
|
|
834
|
+
var Gr = Pt(function(e) {
|
|
874
835
|
return function() {
|
|
875
836
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
876
837
|
};
|
|
877
838
|
}), Lt = function(e) {
|
|
878
|
-
|
|
839
|
+
ee(t, e);
|
|
879
840
|
function t() {
|
|
880
841
|
var r = e.call(this) || this;
|
|
881
842
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
882
843
|
}
|
|
883
844
|
return t.prototype.lift = function(r) {
|
|
884
|
-
var n = new
|
|
845
|
+
var n = new it(this, this);
|
|
885
846
|
return n.operator = r, n;
|
|
886
847
|
}, t.prototype._throwIfClosed = function() {
|
|
887
848
|
if (this.closed)
|
|
@@ -893,7 +854,7 @@ var Gr = Bt(function(e) {
|
|
|
893
854
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
894
855
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
895
856
|
try {
|
|
896
|
-
for (var s =
|
|
857
|
+
for (var s = Ie(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
897
858
|
var h = a.value;
|
|
898
859
|
h.next(r);
|
|
899
860
|
}
|
|
@@ -942,20 +903,20 @@ var Gr = Bt(function(e) {
|
|
|
942
903
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
943
904
|
}, t.prototype._innerSubscribe = function(r) {
|
|
944
905
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
945
|
-
return o || s ?
|
|
946
|
-
n.currentObservers = null,
|
|
906
|
+
return o || s ? Ot : (this.currentObservers = null, a.push(r), new pe(function() {
|
|
907
|
+
n.currentObservers = null, Ce(a, r);
|
|
947
908
|
}));
|
|
948
909
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
949
910
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
950
911
|
i ? r.error(o) : s && r.complete();
|
|
951
912
|
}, t.prototype.asObservable = function() {
|
|
952
|
-
var r = new
|
|
913
|
+
var r = new rt();
|
|
953
914
|
return r.source = this, r;
|
|
954
915
|
}, t.create = function(r, n) {
|
|
955
|
-
return new
|
|
916
|
+
return new it(r, n);
|
|
956
917
|
}, t;
|
|
957
|
-
}(
|
|
958
|
-
|
|
918
|
+
}(rt), it = function(e) {
|
|
919
|
+
ee(t, e);
|
|
959
920
|
function t(r, n) {
|
|
960
921
|
var i = e.call(this) || this;
|
|
961
922
|
return i.destination = r, i.source = n, i;
|
|
@@ -971,17 +932,17 @@ var Gr = Bt(function(e) {
|
|
|
971
932
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
972
933
|
}, t.prototype._subscribe = function(r) {
|
|
973
934
|
var n, i;
|
|
974
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
935
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ot;
|
|
975
936
|
}, t;
|
|
976
|
-
}(Lt),
|
|
937
|
+
}(Lt), Ct = {
|
|
977
938
|
now: function() {
|
|
978
|
-
return (
|
|
939
|
+
return (Ct.delegate || Date).now();
|
|
979
940
|
},
|
|
980
941
|
delegate: void 0
|
|
981
942
|
}, Fr = function(e) {
|
|
982
|
-
|
|
943
|
+
ee(t, e);
|
|
983
944
|
function t(r, n, i) {
|
|
984
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
945
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ct);
|
|
985
946
|
var o = e.call(this) || this;
|
|
986
947
|
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;
|
|
987
948
|
}
|
|
@@ -1002,45 +963,45 @@ var Gr = Bt(function(e) {
|
|
|
1002
963
|
}
|
|
1003
964
|
}, t;
|
|
1004
965
|
}(Lt);
|
|
1005
|
-
const
|
|
1006
|
-
if (
|
|
966
|
+
const ot = [], st = {}, jr = (e, t = 0) => {
|
|
967
|
+
if (ot.indexOf(e) == -1) {
|
|
1007
968
|
const r = new Fr(t);
|
|
1008
|
-
|
|
969
|
+
st[e] = r, ot.push(e);
|
|
1009
970
|
}
|
|
1010
|
-
return
|
|
1011
|
-
},
|
|
971
|
+
return st[e];
|
|
972
|
+
}, $ = [];
|
|
1012
973
|
function kr(e, t) {
|
|
1013
974
|
return {
|
|
1014
|
-
subscribe:
|
|
975
|
+
subscribe: me(e, t).subscribe
|
|
1015
976
|
};
|
|
1016
977
|
}
|
|
1017
|
-
function
|
|
978
|
+
function me(e, t = T) {
|
|
1018
979
|
let r;
|
|
1019
980
|
const n = /* @__PURE__ */ new Set();
|
|
1020
981
|
function i(a) {
|
|
1021
|
-
if (
|
|
1022
|
-
const h =
|
|
982
|
+
if (wt(e, a) && (e = a, r)) {
|
|
983
|
+
const h = !$.length;
|
|
1023
984
|
for (const u of n)
|
|
1024
|
-
u[1](),
|
|
985
|
+
u[1](), $.push(u, e);
|
|
1025
986
|
if (h) {
|
|
1026
|
-
for (let u = 0; u <
|
|
1027
|
-
|
|
1028
|
-
|
|
987
|
+
for (let u = 0; u < $.length; u += 2)
|
|
988
|
+
$[u][0]($[u + 1]);
|
|
989
|
+
$.length = 0;
|
|
1029
990
|
}
|
|
1030
991
|
}
|
|
1031
992
|
}
|
|
1032
993
|
function o(a) {
|
|
1033
994
|
i(a(e));
|
|
1034
995
|
}
|
|
1035
|
-
function s(a, h =
|
|
996
|
+
function s(a, h = T) {
|
|
1036
997
|
const u = [a, h];
|
|
1037
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
998
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || T), a(e), () => {
|
|
1038
999
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1039
1000
|
};
|
|
1040
1001
|
}
|
|
1041
1002
|
return { set: i, update: o, subscribe: s };
|
|
1042
1003
|
}
|
|
1043
|
-
function
|
|
1004
|
+
function V(e, t, r) {
|
|
1044
1005
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1045
1006
|
if (!i.every(Boolean))
|
|
1046
1007
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1048,15 +1009,15 @@ function X(e, t, r) {
|
|
|
1048
1009
|
return kr(r, (s, a) => {
|
|
1049
1010
|
let h = !1;
|
|
1050
1011
|
const u = [];
|
|
1051
|
-
let l = 0, f =
|
|
1012
|
+
let l = 0, f = T;
|
|
1052
1013
|
const c = () => {
|
|
1053
1014
|
if (l)
|
|
1054
1015
|
return;
|
|
1055
1016
|
f();
|
|
1056
1017
|
const b = t(n ? u[0] : u, s, a);
|
|
1057
|
-
o ? s(b) : f =
|
|
1018
|
+
o ? s(b) : f = Xe(b) ? b : T;
|
|
1058
1019
|
}, p = i.map(
|
|
1059
|
-
(b, v) =>
|
|
1020
|
+
(b, v) => or(
|
|
1060
1021
|
b,
|
|
1061
1022
|
(x) => {
|
|
1062
1023
|
u[v] = x, l &= ~(1 << v), h && c();
|
|
@@ -1067,7 +1028,7 @@ function X(e, t, r) {
|
|
|
1067
1028
|
)
|
|
1068
1029
|
);
|
|
1069
1030
|
return h = !0, c(), function() {
|
|
1070
|
-
|
|
1031
|
+
q(p), f(), h = !1;
|
|
1071
1032
|
};
|
|
1072
1033
|
});
|
|
1073
1034
|
}
|
|
@@ -1091,29 +1052,29 @@ function Jr(e) {
|
|
|
1091
1052
|
function Yr(e) {
|
|
1092
1053
|
return Array.isArray(e) ? [] : {};
|
|
1093
1054
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1055
|
+
function J(e, t) {
|
|
1056
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(Yr(e), e, t) : e;
|
|
1096
1057
|
}
|
|
1097
1058
|
function qr(e, t, r) {
|
|
1098
1059
|
return e.concat(t).map(function(n) {
|
|
1099
|
-
return
|
|
1060
|
+
return J(n, r);
|
|
1100
1061
|
});
|
|
1101
1062
|
}
|
|
1102
1063
|
function Kr(e, t) {
|
|
1103
1064
|
if (!t.customMerge)
|
|
1104
|
-
return
|
|
1065
|
+
return D;
|
|
1105
1066
|
var r = t.customMerge(e);
|
|
1106
|
-
return typeof r == "function" ? r :
|
|
1067
|
+
return typeof r == "function" ? r : D;
|
|
1107
1068
|
}
|
|
1108
1069
|
function en(e) {
|
|
1109
1070
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1110
1071
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1111
1072
|
}) : [];
|
|
1112
1073
|
}
|
|
1113
|
-
function
|
|
1074
|
+
function at(e) {
|
|
1114
1075
|
return Object.keys(e).concat(en(e));
|
|
1115
1076
|
}
|
|
1116
|
-
function
|
|
1077
|
+
function Mt(e, t) {
|
|
1117
1078
|
try {
|
|
1118
1079
|
return t in e;
|
|
1119
1080
|
} catch {
|
|
@@ -1121,129 +1082,179 @@ function Ct(e, t) {
|
|
|
1121
1082
|
}
|
|
1122
1083
|
}
|
|
1123
1084
|
function tn(e, t) {
|
|
1124
|
-
return
|
|
1085
|
+
return Mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1125
1086
|
}
|
|
1126
1087
|
function rn(e, t, r) {
|
|
1127
1088
|
var n = {};
|
|
1128
|
-
return r.isMergeableObject(e) &&
|
|
1129
|
-
n[i] =
|
|
1130
|
-
}),
|
|
1131
|
-
tn(e, i) || (
|
|
1089
|
+
return r.isMergeableObject(e) && at(e).forEach(function(i) {
|
|
1090
|
+
n[i] = J(e[i], r);
|
|
1091
|
+
}), at(t).forEach(function(i) {
|
|
1092
|
+
tn(e, i) || (Mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kr(i, r)(e[i], t[i], r) : n[i] = J(t[i], r));
|
|
1132
1093
|
}), n;
|
|
1133
1094
|
}
|
|
1134
|
-
function
|
|
1135
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || qr, r.isMergeableObject = r.isMergeableObject || Xr, r.cloneUnlessOtherwiseSpecified =
|
|
1095
|
+
function D(e, t, r) {
|
|
1096
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || qr, r.isMergeableObject = r.isMergeableObject || Xr, r.cloneUnlessOtherwiseSpecified = J;
|
|
1136
1097
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1137
|
-
return o ? n ? r.arrayMerge(e, t, r) : rn(e, t, r) :
|
|
1098
|
+
return o ? n ? r.arrayMerge(e, t, r) : rn(e, t, r) : J(t, r);
|
|
1138
1099
|
}
|
|
1139
|
-
|
|
1100
|
+
D.all = function(t, r) {
|
|
1140
1101
|
if (!Array.isArray(t))
|
|
1141
1102
|
throw new Error("first argument should be an array");
|
|
1142
1103
|
return t.reduce(function(n, i) {
|
|
1143
|
-
return
|
|
1104
|
+
return D(n, i, r);
|
|
1144
1105
|
}, {});
|
|
1145
1106
|
};
|
|
1146
|
-
var nn =
|
|
1107
|
+
var nn = D, on = nn;
|
|
1147
1108
|
const sn = /* @__PURE__ */ Vr(on);
|
|
1148
|
-
function
|
|
1149
|
-
|
|
1109
|
+
var $e = function(e, t) {
|
|
1110
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1111
|
+
r.__proto__ = n;
|
|
1112
|
+
} || function(r, n) {
|
|
1113
|
+
for (var i in n)
|
|
1114
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1115
|
+
}, $e(e, t);
|
|
1116
|
+
};
|
|
1117
|
+
function be(e, t) {
|
|
1118
|
+
if (typeof t != "function" && t !== null)
|
|
1119
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1120
|
+
$e(e, t);
|
|
1121
|
+
function r() {
|
|
1122
|
+
this.constructor = e;
|
|
1123
|
+
}
|
|
1124
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1125
|
+
}
|
|
1126
|
+
var H = function() {
|
|
1127
|
+
return H = Object.assign || function(t) {
|
|
1128
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1129
|
+
r = arguments[n];
|
|
1130
|
+
for (var o in r)
|
|
1131
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1132
|
+
}
|
|
1133
|
+
return t;
|
|
1134
|
+
}, H.apply(this, arguments);
|
|
1135
|
+
};
|
|
1136
|
+
function an(e, t) {
|
|
1137
|
+
var r = {};
|
|
1138
|
+
for (var n in e)
|
|
1139
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1140
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1141
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1142
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1143
|
+
return r;
|
|
1144
|
+
}
|
|
1145
|
+
function Ee(e, t, r) {
|
|
1146
|
+
if (r || arguments.length === 2)
|
|
1147
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1148
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1149
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1150
|
+
}
|
|
1151
|
+
function xe(e, t) {
|
|
1152
|
+
var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : cn, i = t && t.strategy ? t.strategy : ln;
|
|
1150
1153
|
return i(e, {
|
|
1151
1154
|
cache: r,
|
|
1152
1155
|
serializer: n
|
|
1153
1156
|
});
|
|
1154
1157
|
}
|
|
1155
|
-
function
|
|
1158
|
+
function un(e) {
|
|
1156
1159
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1157
1160
|
}
|
|
1158
|
-
function
|
|
1159
|
-
var i =
|
|
1161
|
+
function hn(e, t, r, n) {
|
|
1162
|
+
var i = un(n) ? n : r(n), o = t.get(i);
|
|
1160
1163
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1161
1164
|
}
|
|
1162
|
-
function
|
|
1165
|
+
function $t(e, t, r) {
|
|
1163
1166
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1164
1167
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1165
1168
|
}
|
|
1166
|
-
function
|
|
1169
|
+
function Rt(e, t, r, n, i) {
|
|
1167
1170
|
return r.bind(t, e, n, i);
|
|
1168
1171
|
}
|
|
1169
|
-
function un(e, t) {
|
|
1170
|
-
var r = e.length === 1 ? Mt : Rt;
|
|
1171
|
-
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
1172
|
-
}
|
|
1173
|
-
function hn(e, t) {
|
|
1174
|
-
return ke(e, this, Rt, t.cache.create(), t.serializer);
|
|
1175
|
-
}
|
|
1176
1172
|
function ln(e, t) {
|
|
1177
|
-
|
|
1173
|
+
var r = e.length === 1 ? hn : $t;
|
|
1174
|
+
return Rt(e, this, r, t.cache.create(), t.serializer);
|
|
1178
1175
|
}
|
|
1179
|
-
|
|
1180
|
-
return
|
|
1181
|
-
};
|
|
1182
|
-
function Ve() {
|
|
1183
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1176
|
+
function fn(e, t) {
|
|
1177
|
+
return Rt(e, this, $t, t.cache.create(), t.serializer);
|
|
1184
1178
|
}
|
|
1185
|
-
|
|
1186
|
-
return
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1179
|
+
var cn = function() {
|
|
1180
|
+
return JSON.stringify(arguments);
|
|
1181
|
+
}, pn = (
|
|
1182
|
+
/** @class */
|
|
1183
|
+
function() {
|
|
1184
|
+
function e() {
|
|
1185
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1186
|
+
}
|
|
1187
|
+
return e.prototype.get = function(t) {
|
|
1188
|
+
return this.cache[t];
|
|
1189
|
+
}, e.prototype.set = function(t, r) {
|
|
1190
|
+
this.cache[t] = r;
|
|
1191
|
+
}, e;
|
|
1192
|
+
}()
|
|
1193
|
+
), mn = {
|
|
1192
1194
|
create: function() {
|
|
1193
|
-
return new
|
|
1195
|
+
return new pn();
|
|
1194
1196
|
}
|
|
1195
|
-
},
|
|
1196
|
-
variadic:
|
|
1197
|
-
|
|
1198
|
-
|
|
1197
|
+
}, Se = {
|
|
1198
|
+
variadic: fn
|
|
1199
|
+
}, le = function() {
|
|
1200
|
+
return le = Object.assign || function(t) {
|
|
1201
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1202
|
+
r = arguments[n];
|
|
1203
|
+
for (var o in r)
|
|
1204
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1205
|
+
}
|
|
1206
|
+
return t;
|
|
1207
|
+
}, le.apply(this, arguments);
|
|
1208
|
+
};
|
|
1209
|
+
var m;
|
|
1199
1210
|
(function(e) {
|
|
1200
1211
|
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";
|
|
1201
1212
|
})(m || (m = {}));
|
|
1202
|
-
var
|
|
1213
|
+
var y;
|
|
1203
1214
|
(function(e) {
|
|
1204
1215
|
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";
|
|
1205
|
-
})(
|
|
1206
|
-
var
|
|
1216
|
+
})(y || (y = {}));
|
|
1217
|
+
var G;
|
|
1207
1218
|
(function(e) {
|
|
1208
1219
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1209
|
-
})(
|
|
1210
|
-
function
|
|
1211
|
-
return e.type ===
|
|
1212
|
-
}
|
|
1213
|
-
function pn(e) {
|
|
1214
|
-
return e.type === _.argument;
|
|
1220
|
+
})(G || (G = {}));
|
|
1221
|
+
function ut(e) {
|
|
1222
|
+
return e.type === y.literal;
|
|
1215
1223
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return e.type ===
|
|
1224
|
+
function bn(e) {
|
|
1225
|
+
return e.type === y.argument;
|
|
1218
1226
|
}
|
|
1219
1227
|
function Ut(e) {
|
|
1220
|
-
return e.type ===
|
|
1228
|
+
return e.type === y.number;
|
|
1221
1229
|
}
|
|
1222
1230
|
function Dt(e) {
|
|
1223
|
-
return e.type ===
|
|
1231
|
+
return e.type === y.date;
|
|
1224
1232
|
}
|
|
1225
1233
|
function Gt(e) {
|
|
1226
|
-
return e.type ===
|
|
1234
|
+
return e.type === y.time;
|
|
1227
1235
|
}
|
|
1228
1236
|
function Ft(e) {
|
|
1229
|
-
return e.type ===
|
|
1230
|
-
}
|
|
1231
|
-
function mn(e) {
|
|
1232
|
-
return e.type === _.pound;
|
|
1237
|
+
return e.type === y.select;
|
|
1233
1238
|
}
|
|
1234
1239
|
function jt(e) {
|
|
1235
|
-
return e.type ===
|
|
1240
|
+
return e.type === y.plural;
|
|
1241
|
+
}
|
|
1242
|
+
function dn(e) {
|
|
1243
|
+
return e.type === y.pound;
|
|
1236
1244
|
}
|
|
1237
1245
|
function kt(e) {
|
|
1238
|
-
return
|
|
1246
|
+
return e.type === y.tag;
|
|
1239
1247
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1248
|
+
function Vt(e) {
|
|
1249
|
+
return !!(e && typeof e == "object" && e.type === G.number);
|
|
1242
1250
|
}
|
|
1243
|
-
|
|
1244
|
-
|
|
1251
|
+
function Re(e) {
|
|
1252
|
+
return !!(e && typeof e == "object" && e.type === G.dateTime);
|
|
1253
|
+
}
|
|
1254
|
+
var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[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;
|
|
1255
|
+
function vn(e) {
|
|
1245
1256
|
var t = {};
|
|
1246
|
-
return e.replace(
|
|
1257
|
+
return e.replace(gn, function(r) {
|
|
1247
1258
|
var n = r.length;
|
|
1248
1259
|
switch (r[0]) {
|
|
1249
1260
|
case "G":
|
|
@@ -1332,11 +1343,21 @@ function dn(e) {
|
|
|
1332
1343
|
return "";
|
|
1333
1344
|
}), t;
|
|
1334
1345
|
}
|
|
1335
|
-
var
|
|
1336
|
-
function
|
|
1346
|
+
var _ = function() {
|
|
1347
|
+
return _ = Object.assign || function(t) {
|
|
1348
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1349
|
+
r = arguments[n];
|
|
1350
|
+
for (var o in r)
|
|
1351
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1352
|
+
}
|
|
1353
|
+
return t;
|
|
1354
|
+
}, _.apply(this, arguments);
|
|
1355
|
+
};
|
|
1356
|
+
var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1357
|
+
function _n(e) {
|
|
1337
1358
|
if (e.length === 0)
|
|
1338
1359
|
throw new Error("Number skeleton cannot be empty");
|
|
1339
|
-
for (var t = e.split(
|
|
1360
|
+
for (var t = e.split(yn).filter(function(c) {
|
|
1340
1361
|
return c.length > 0;
|
|
1341
1362
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1342
1363
|
var o = i[n], s = o.split("/");
|
|
@@ -1351,17 +1372,17 @@ function vn(e) {
|
|
|
1351
1372
|
}
|
|
1352
1373
|
return r;
|
|
1353
1374
|
}
|
|
1354
|
-
function
|
|
1375
|
+
function En(e) {
|
|
1355
1376
|
return e.replace(/^(.*?)-/, "");
|
|
1356
1377
|
}
|
|
1357
|
-
var
|
|
1358
|
-
function
|
|
1378
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, xn = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
|
|
1379
|
+
function lt(e) {
|
|
1359
1380
|
var t = {};
|
|
1360
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1381
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
1361
1382
|
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)), "";
|
|
1362
1383
|
}), t;
|
|
1363
1384
|
}
|
|
1364
|
-
function
|
|
1385
|
+
function Zt(e) {
|
|
1365
1386
|
switch (e) {
|
|
1366
1387
|
case "sign-auto":
|
|
1367
1388
|
return {
|
|
@@ -1401,7 +1422,7 @@ function Wt(e) {
|
|
|
1401
1422
|
};
|
|
1402
1423
|
}
|
|
1403
1424
|
}
|
|
1404
|
-
function
|
|
1425
|
+
function Sn(e) {
|
|
1405
1426
|
var t;
|
|
1406
1427
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1407
1428
|
notation: "engineering"
|
|
@@ -1409,17 +1430,17 @@ function En(e) {
|
|
|
1409
1430
|
notation: "scientific"
|
|
1410
1431
|
}, e = e.slice(1)), t) {
|
|
1411
1432
|
var r = e.slice(0, 2);
|
|
1412
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1433
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wt.test(e))
|
|
1413
1434
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1414
1435
|
t.minimumIntegerDigits = e.length;
|
|
1415
1436
|
}
|
|
1416
1437
|
return t;
|
|
1417
1438
|
}
|
|
1418
|
-
function
|
|
1419
|
-
var t = {}, r =
|
|
1439
|
+
function ft(e) {
|
|
1440
|
+
var t = {}, r = Zt(e);
|
|
1420
1441
|
return r || t;
|
|
1421
1442
|
}
|
|
1422
|
-
function
|
|
1443
|
+
function Tn(e) {
|
|
1423
1444
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1424
1445
|
var i = n[r];
|
|
1425
1446
|
switch (i.stem) {
|
|
@@ -1443,7 +1464,7 @@ function xn(e) {
|
|
|
1443
1464
|
continue;
|
|
1444
1465
|
case "measure-unit":
|
|
1445
1466
|
case "unit":
|
|
1446
|
-
t.style = "unit", t.unit =
|
|
1467
|
+
t.style = "unit", t.unit = En(i.options[0]);
|
|
1447
1468
|
continue;
|
|
1448
1469
|
case "compact-short":
|
|
1449
1470
|
case "K":
|
|
@@ -1454,13 +1475,13 @@ function xn(e) {
|
|
|
1454
1475
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1455
1476
|
continue;
|
|
1456
1477
|
case "scientific":
|
|
1457
|
-
t =
|
|
1458
|
-
return
|
|
1478
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1479
|
+
return _(_({}, h), ft(u));
|
|
1459
1480
|
}, {}));
|
|
1460
1481
|
continue;
|
|
1461
1482
|
case "engineering":
|
|
1462
|
-
t =
|
|
1463
|
-
return
|
|
1483
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1484
|
+
return _(_({}, h), ft(u));
|
|
1464
1485
|
}, {}));
|
|
1465
1486
|
continue;
|
|
1466
1487
|
case "notation-simple":
|
|
@@ -1505,7 +1526,7 @@ function xn(e) {
|
|
|
1505
1526
|
case "integer-width":
|
|
1506
1527
|
if (i.options.length > 1)
|
|
1507
1528
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1508
|
-
i.options[0].replace(
|
|
1529
|
+
i.options[0].replace(xn, function(h, u, l, f, c, p) {
|
|
1509
1530
|
if (u)
|
|
1510
1531
|
t.minimumIntegerDigits = l.length;
|
|
1511
1532
|
else {
|
|
@@ -1518,28 +1539,28 @@ function xn(e) {
|
|
|
1518
1539
|
});
|
|
1519
1540
|
continue;
|
|
1520
1541
|
}
|
|
1521
|
-
if (
|
|
1542
|
+
if (Wt.test(i.stem)) {
|
|
1522
1543
|
t.minimumIntegerDigits = i.stem.length;
|
|
1523
1544
|
continue;
|
|
1524
1545
|
}
|
|
1525
|
-
if (
|
|
1546
|
+
if (ht.test(i.stem)) {
|
|
1526
1547
|
if (i.options.length > 1)
|
|
1527
1548
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1528
|
-
i.stem.replace(
|
|
1549
|
+
i.stem.replace(ht, function(h, u, l, f, c, p) {
|
|
1529
1550
|
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), "";
|
|
1530
1551
|
});
|
|
1531
1552
|
var o = i.options[0];
|
|
1532
|
-
o === "w" ? t =
|
|
1553
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), lt(o)));
|
|
1533
1554
|
continue;
|
|
1534
1555
|
}
|
|
1535
|
-
if (
|
|
1536
|
-
t =
|
|
1556
|
+
if (zt.test(i.stem)) {
|
|
1557
|
+
t = _(_({}, t), lt(i.stem));
|
|
1537
1558
|
continue;
|
|
1538
1559
|
}
|
|
1539
|
-
var s =
|
|
1540
|
-
s && (t =
|
|
1541
|
-
var a =
|
|
1542
|
-
a && (t =
|
|
1560
|
+
var s = Zt(i.stem);
|
|
1561
|
+
s && (t = _(_({}, t), s));
|
|
1562
|
+
var a = Sn(i.stem);
|
|
1563
|
+
a && (t = _(_({}, t), a));
|
|
1543
1564
|
}
|
|
1544
1565
|
return t;
|
|
1545
1566
|
}
|
|
@@ -2958,13 +2979,13 @@ var oe = {
|
|
|
2958
2979
|
"h"
|
|
2959
2980
|
]
|
|
2960
2981
|
};
|
|
2961
|
-
function
|
|
2982
|
+
function wn(e, t) {
|
|
2962
2983
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2963
2984
|
var i = e.charAt(n);
|
|
2964
2985
|
if (i === "j") {
|
|
2965
2986
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2966
2987
|
o++, n++;
|
|
2967
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2988
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Hn(t);
|
|
2968
2989
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2969
2990
|
r += h;
|
|
2970
2991
|
for (; s-- > 0; )
|
|
@@ -2974,7 +2995,7 @@ function Tn(e, t) {
|
|
|
2974
2995
|
}
|
|
2975
2996
|
return r;
|
|
2976
2997
|
}
|
|
2977
|
-
function
|
|
2998
|
+
function Hn(e) {
|
|
2978
2999
|
var t = e.hourCycle;
|
|
2979
3000
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2980
3001
|
e.hourCycles && // @ts-ignore
|
|
@@ -2996,20 +3017,20 @@ function Sn(e) {
|
|
|
2996
3017
|
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2997
3018
|
return i[0];
|
|
2998
3019
|
}
|
|
2999
|
-
var
|
|
3020
|
+
var Te, An = new RegExp("^".concat(Xt.source, "*")), Bn = new RegExp("".concat(Xt.source, "*$"));
|
|
3000
3021
|
function d(e, t) {
|
|
3001
3022
|
return { start: e, end: t };
|
|
3002
3023
|
}
|
|
3003
|
-
var
|
|
3024
|
+
var Pn = !!String.prototype.startsWith && "_a".startsWith("a", 1), On = !!String.fromCodePoint, In = !!Object.fromEntries, Nn = !!String.prototype.codePointAt, Ln = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, $n = Mn ? Number.isSafeInteger : function(e) {
|
|
3004
3025
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3005
|
-
},
|
|
3026
|
+
}, Ue = !0;
|
|
3006
3027
|
try {
|
|
3007
|
-
var
|
|
3008
|
-
|
|
3028
|
+
var Rn = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3029
|
+
Ue = ((Te = Rn.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
|
|
3009
3030
|
} catch {
|
|
3010
|
-
|
|
3031
|
+
Ue = !1;
|
|
3011
3032
|
}
|
|
3012
|
-
var
|
|
3033
|
+
var ct = Pn ? (
|
|
3013
3034
|
// Native
|
|
3014
3035
|
function(t, r, n) {
|
|
3015
3036
|
return t.startsWith(r, n);
|
|
@@ -3019,7 +3040,7 @@ var lt = Bn ? (
|
|
|
3019
3040
|
function(t, r, n) {
|
|
3020
3041
|
return t.slice(n, n + r.length) === r;
|
|
3021
3042
|
}
|
|
3022
|
-
),
|
|
3043
|
+
), De = On ? String.fromCodePoint : (
|
|
3023
3044
|
// IE11
|
|
3024
3045
|
function() {
|
|
3025
3046
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3031,9 +3052,9 @@ var lt = Bn ? (
|
|
|
3031
3052
|
}
|
|
3032
3053
|
return n;
|
|
3033
3054
|
}
|
|
3034
|
-
),
|
|
3055
|
+
), pt = (
|
|
3035
3056
|
// native
|
|
3036
|
-
|
|
3057
|
+
In ? Object.fromEntries : (
|
|
3037
3058
|
// Ponyfill
|
|
3038
3059
|
function(t) {
|
|
3039
3060
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3043,7 +3064,7 @@ var lt = Bn ? (
|
|
|
3043
3064
|
return r;
|
|
3044
3065
|
}
|
|
3045
3066
|
)
|
|
3046
|
-
),
|
|
3067
|
+
), Qt = Nn ? (
|
|
3047
3068
|
// Native
|
|
3048
3069
|
function(t, r) {
|
|
3049
3070
|
return t.codePointAt(r);
|
|
@@ -3057,7 +3078,7 @@ var lt = Bn ? (
|
|
|
3057
3078
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3058
3079
|
}
|
|
3059
3080
|
}
|
|
3060
|
-
),
|
|
3081
|
+
), Un = Ln ? (
|
|
3061
3082
|
// Native
|
|
3062
3083
|
function(t) {
|
|
3063
3084
|
return t.trimStart();
|
|
@@ -3065,9 +3086,9 @@ var lt = Bn ? (
|
|
|
3065
3086
|
) : (
|
|
3066
3087
|
// Ponyfill
|
|
3067
3088
|
function(t) {
|
|
3068
|
-
return t.replace(
|
|
3089
|
+
return t.replace(An, "");
|
|
3069
3090
|
}
|
|
3070
|
-
),
|
|
3091
|
+
), Dn = Cn ? (
|
|
3071
3092
|
// Native
|
|
3072
3093
|
function(t) {
|
|
3073
3094
|
return t.trimEnd();
|
|
@@ -3075,32 +3096,32 @@ var lt = Bn ? (
|
|
|
3075
3096
|
) : (
|
|
3076
3097
|
// Ponyfill
|
|
3077
3098
|
function(t) {
|
|
3078
|
-
return t.replace(
|
|
3099
|
+
return t.replace(Bn, "");
|
|
3079
3100
|
}
|
|
3080
3101
|
);
|
|
3081
|
-
function
|
|
3102
|
+
function Jt(e, t) {
|
|
3082
3103
|
return new RegExp(e, t);
|
|
3083
3104
|
}
|
|
3084
|
-
var
|
|
3085
|
-
if (
|
|
3086
|
-
var
|
|
3087
|
-
|
|
3105
|
+
var Ge;
|
|
3106
|
+
if (Ue) {
|
|
3107
|
+
var mt = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3108
|
+
Ge = function(t, r) {
|
|
3088
3109
|
var n;
|
|
3089
|
-
|
|
3090
|
-
var i =
|
|
3110
|
+
mt.lastIndex = r;
|
|
3111
|
+
var i = mt.exec(t);
|
|
3091
3112
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3092
3113
|
};
|
|
3093
3114
|
} else
|
|
3094
|
-
|
|
3115
|
+
Ge = function(t, r) {
|
|
3095
3116
|
for (var n = []; ; ) {
|
|
3096
|
-
var i =
|
|
3097
|
-
if (i === void 0 ||
|
|
3117
|
+
var i = Qt(t, r);
|
|
3118
|
+
if (i === void 0 || Yt(i) || kn(i))
|
|
3098
3119
|
break;
|
|
3099
3120
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3100
3121
|
}
|
|
3101
|
-
return
|
|
3122
|
+
return De.apply(void 0, n);
|
|
3102
3123
|
};
|
|
3103
|
-
var
|
|
3124
|
+
var Gn = (
|
|
3104
3125
|
/** @class */
|
|
3105
3126
|
function() {
|
|
3106
3127
|
function e(t, r) {
|
|
@@ -3124,14 +3145,14 @@ var Un = (
|
|
|
3124
3145
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3125
3146
|
var a = this.clonePosition();
|
|
3126
3147
|
this.bump(), i.push({
|
|
3127
|
-
type:
|
|
3148
|
+
type: y.pound,
|
|
3128
3149
|
location: d(a, this.clonePosition())
|
|
3129
3150
|
});
|
|
3130
3151
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3131
3152
|
if (n)
|
|
3132
3153
|
break;
|
|
3133
3154
|
return this.error(m.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3134
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3155
|
+
} else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
3135
3156
|
var s = this.parseTag(t, r);
|
|
3136
3157
|
if (s.err)
|
|
3137
3158
|
return s;
|
|
@@ -3152,7 +3173,7 @@ var Un = (
|
|
|
3152
3173
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3153
3174
|
return {
|
|
3154
3175
|
val: {
|
|
3155
|
-
type:
|
|
3176
|
+
type: y.literal,
|
|
3156
3177
|
value: "<".concat(i, "/>"),
|
|
3157
3178
|
location: d(n, this.clonePosition())
|
|
3158
3179
|
},
|
|
@@ -3164,12 +3185,12 @@ var Un = (
|
|
|
3164
3185
|
return o;
|
|
3165
3186
|
var s = o.val, a = this.clonePosition();
|
|
3166
3187
|
if (this.bumpIf("</")) {
|
|
3167
|
-
if (this.isEOF() ||
|
|
3188
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
3168
3189
|
return this.error(m.INVALID_TAG, d(a, this.clonePosition()));
|
|
3169
3190
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3170
3191
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3171
3192
|
val: {
|
|
3172
|
-
type:
|
|
3193
|
+
type: y.tag,
|
|
3173
3194
|
value: i,
|
|
3174
3195
|
children: s,
|
|
3175
3196
|
location: d(n, this.clonePosition())
|
|
@@ -3182,7 +3203,7 @@ var Un = (
|
|
|
3182
3203
|
return this.error(m.INVALID_TAG, d(n, this.clonePosition()));
|
|
3183
3204
|
}, e.prototype.parseTagName = function() {
|
|
3184
3205
|
var t = this.offset();
|
|
3185
|
-
for (this.bump(); !this.isEOF() &&
|
|
3206
|
+
for (this.bump(); !this.isEOF() && jn(this.char()); )
|
|
3186
3207
|
this.bump();
|
|
3187
3208
|
return this.message.slice(t, this.offset());
|
|
3188
3209
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3206,12 +3227,12 @@ var Un = (
|
|
|
3206
3227
|
}
|
|
3207
3228
|
var h = d(n, this.clonePosition());
|
|
3208
3229
|
return {
|
|
3209
|
-
val: { type:
|
|
3230
|
+
val: { type: y.literal, value: i, location: h },
|
|
3210
3231
|
err: null
|
|
3211
3232
|
};
|
|
3212
3233
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3213
3234
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3214
|
-
!
|
|
3235
|
+
!Fn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3215
3236
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3216
3237
|
if (this.isEOF() || this.char() !== 39)
|
|
3217
3238
|
return null;
|
|
@@ -3245,12 +3266,12 @@ var Un = (
|
|
|
3245
3266
|
r.push(n);
|
|
3246
3267
|
this.bump();
|
|
3247
3268
|
}
|
|
3248
|
-
return
|
|
3269
|
+
return De.apply(void 0, r);
|
|
3249
3270
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3250
3271
|
if (this.isEOF())
|
|
3251
3272
|
return null;
|
|
3252
3273
|
var n = this.char();
|
|
3253
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3274
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
3254
3275
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3255
3276
|
var n = this.clonePosition();
|
|
3256
3277
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3266,7 +3287,7 @@ var Un = (
|
|
|
3266
3287
|
case 125:
|
|
3267
3288
|
return this.bump(), {
|
|
3268
3289
|
val: {
|
|
3269
|
-
type:
|
|
3290
|
+
type: y.argument,
|
|
3270
3291
|
// value does not include the opening and closing braces.
|
|
3271
3292
|
value: i,
|
|
3272
3293
|
location: d(n, this.clonePosition())
|
|
@@ -3279,7 +3300,7 @@ var Un = (
|
|
|
3279
3300
|
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3280
3301
|
}
|
|
3281
3302
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3282
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3303
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
3283
3304
|
this.bumpTo(i);
|
|
3284
3305
|
var o = this.clonePosition(), s = d(t, o);
|
|
3285
3306
|
return { value: n, location: s };
|
|
@@ -3298,7 +3319,7 @@ var Un = (
|
|
|
3298
3319
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3299
3320
|
if (f.err)
|
|
3300
3321
|
return f;
|
|
3301
|
-
var c =
|
|
3322
|
+
var c = Dn(f.val);
|
|
3302
3323
|
if (c.length === 0)
|
|
3303
3324
|
return this.error(m.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3304
3325
|
var p = d(l, this.clonePosition());
|
|
@@ -3308,25 +3329,25 @@ var Un = (
|
|
|
3308
3329
|
if (b.err)
|
|
3309
3330
|
return b;
|
|
3310
3331
|
var v = d(i, this.clonePosition());
|
|
3311
|
-
if (u &&
|
|
3312
|
-
var x =
|
|
3332
|
+
if (u && ct(u?.style, "::", 0)) {
|
|
3333
|
+
var x = Un(u.style.slice(2));
|
|
3313
3334
|
if (a === "number") {
|
|
3314
3335
|
var f = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
3315
3336
|
return f.err ? f : {
|
|
3316
|
-
val: { type:
|
|
3337
|
+
val: { type: y.number, value: n, location: v, style: f.val },
|
|
3317
3338
|
err: null
|
|
3318
3339
|
};
|
|
3319
3340
|
} else {
|
|
3320
3341
|
if (x.length === 0)
|
|
3321
3342
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
|
|
3322
3343
|
var I = x;
|
|
3323
|
-
this.locale && (I =
|
|
3344
|
+
this.locale && (I = wn(x, this.locale));
|
|
3324
3345
|
var c = {
|
|
3325
|
-
type:
|
|
3346
|
+
type: G.dateTime,
|
|
3326
3347
|
pattern: I,
|
|
3327
3348
|
location: u.styleLocation,
|
|
3328
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3329
|
-
}, g = a === "date" ?
|
|
3349
|
+
parsedOptions: this.shouldParseSkeletons ? vn(I) : {}
|
|
3350
|
+
}, g = a === "date" ? y.date : y.time;
|
|
3330
3351
|
return {
|
|
3331
3352
|
val: { type: g, value: n, location: v, style: c },
|
|
3332
3353
|
err: null
|
|
@@ -3335,7 +3356,7 @@ var Un = (
|
|
|
3335
3356
|
}
|
|
3336
3357
|
return {
|
|
3337
3358
|
val: {
|
|
3338
|
-
type: a === "number" ?
|
|
3359
|
+
type: a === "number" ? y.number : a === "date" ? y.date : y.time,
|
|
3339
3360
|
value: n,
|
|
3340
3361
|
location: v,
|
|
3341
3362
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3348,41 +3369,41 @@ var Un = (
|
|
|
3348
3369
|
case "select": {
|
|
3349
3370
|
var w = this.clonePosition();
|
|
3350
3371
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3351
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(w,
|
|
3372
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(w, le({}, w)));
|
|
3352
3373
|
this.bumpSpace();
|
|
3353
|
-
var
|
|
3354
|
-
if (a !== "select" &&
|
|
3374
|
+
var z = this.parseIdentifierIfPossible(), N = 0;
|
|
3375
|
+
if (a !== "select" && z.value === "offset") {
|
|
3355
3376
|
if (!this.bumpIf(":"))
|
|
3356
3377
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3357
3378
|
this.bumpSpace();
|
|
3358
3379
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3359
3380
|
if (f.err)
|
|
3360
3381
|
return f;
|
|
3361
|
-
this.bumpSpace(),
|
|
3382
|
+
this.bumpSpace(), z = this.parseIdentifierIfPossible(), N = f.val;
|
|
3362
3383
|
}
|
|
3363
|
-
var ne = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3384
|
+
var ne = this.tryParsePluralOrSelectOptions(t, a, r, z);
|
|
3364
3385
|
if (ne.err)
|
|
3365
3386
|
return ne;
|
|
3366
3387
|
var b = this.tryParseArgumentClose(i);
|
|
3367
3388
|
if (b.err)
|
|
3368
3389
|
return b;
|
|
3369
|
-
var
|
|
3390
|
+
var Qe = d(i, this.clonePosition());
|
|
3370
3391
|
return a === "select" ? {
|
|
3371
3392
|
val: {
|
|
3372
|
-
type:
|
|
3393
|
+
type: y.select,
|
|
3373
3394
|
value: n,
|
|
3374
|
-
options:
|
|
3375
|
-
location:
|
|
3395
|
+
options: pt(ne.val),
|
|
3396
|
+
location: Qe
|
|
3376
3397
|
},
|
|
3377
3398
|
err: null
|
|
3378
3399
|
} : {
|
|
3379
3400
|
val: {
|
|
3380
|
-
type:
|
|
3401
|
+
type: y.plural,
|
|
3381
3402
|
value: n,
|
|
3382
|
-
options:
|
|
3383
|
-
offset:
|
|
3403
|
+
options: pt(ne.val),
|
|
3404
|
+
offset: N,
|
|
3384
3405
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3385
|
-
location:
|
|
3406
|
+
location: Qe
|
|
3386
3407
|
},
|
|
3387
3408
|
err: null
|
|
3388
3409
|
};
|
|
@@ -3430,16 +3451,16 @@ var Un = (
|
|
|
3430
3451
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3431
3452
|
var n = [];
|
|
3432
3453
|
try {
|
|
3433
|
-
n =
|
|
3454
|
+
n = _n(t);
|
|
3434
3455
|
} catch {
|
|
3435
3456
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3436
3457
|
}
|
|
3437
3458
|
return {
|
|
3438
3459
|
val: {
|
|
3439
|
-
type:
|
|
3460
|
+
type: G.number,
|
|
3440
3461
|
tokens: n,
|
|
3441
3462
|
location: r,
|
|
3442
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3463
|
+
parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
|
|
3443
3464
|
},
|
|
3444
3465
|
err: null
|
|
3445
3466
|
};
|
|
@@ -3487,7 +3508,7 @@ var Un = (
|
|
|
3487
3508
|
break;
|
|
3488
3509
|
}
|
|
3489
3510
|
var h = d(i, this.clonePosition());
|
|
3490
|
-
return o ? (s *= n,
|
|
3511
|
+
return o ? (s *= n, $n(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3491
3512
|
}, e.prototype.offset = function() {
|
|
3492
3513
|
return this.position.offset;
|
|
3493
3514
|
}, e.prototype.isEOF = function() {
|
|
@@ -3502,7 +3523,7 @@ var Un = (
|
|
|
3502
3523
|
var t = this.position.offset;
|
|
3503
3524
|
if (t >= this.message.length)
|
|
3504
3525
|
throw Error("out of bound");
|
|
3505
|
-
var r =
|
|
3526
|
+
var r = Qt(this.message, t);
|
|
3506
3527
|
if (r === void 0)
|
|
3507
3528
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3508
3529
|
return r;
|
|
@@ -3521,7 +3542,7 @@ var Un = (
|
|
|
3521
3542
|
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);
|
|
3522
3543
|
}
|
|
3523
3544
|
}, e.prototype.bumpIf = function(t) {
|
|
3524
|
-
if (
|
|
3545
|
+
if (ct(this.message, t, this.offset())) {
|
|
3525
3546
|
for (var r = 0; r < t.length; r++)
|
|
3526
3547
|
this.bump();
|
|
3527
3548
|
return !0;
|
|
@@ -3543,7 +3564,7 @@ var Un = (
|
|
|
3543
3564
|
break;
|
|
3544
3565
|
}
|
|
3545
3566
|
}, e.prototype.bumpSpace = function() {
|
|
3546
|
-
for (; !this.isEOF() &&
|
|
3567
|
+
for (; !this.isEOF() && Yt(this.char()); )
|
|
3547
3568
|
this.bump();
|
|
3548
3569
|
}, e.prototype.peek = function() {
|
|
3549
3570
|
if (this.isEOF())
|
|
@@ -3553,47 +3574,47 @@ var Un = (
|
|
|
3553
3574
|
}, e;
|
|
3554
3575
|
}()
|
|
3555
3576
|
);
|
|
3556
|
-
function
|
|
3577
|
+
function Fe(e) {
|
|
3557
3578
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3558
3579
|
}
|
|
3559
|
-
function
|
|
3560
|
-
return
|
|
3580
|
+
function Fn(e) {
|
|
3581
|
+
return Fe(e) || e === 47;
|
|
3561
3582
|
}
|
|
3562
|
-
function
|
|
3583
|
+
function jn(e) {
|
|
3563
3584
|
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;
|
|
3564
3585
|
}
|
|
3565
|
-
function
|
|
3586
|
+
function Yt(e) {
|
|
3566
3587
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3567
3588
|
}
|
|
3568
|
-
function
|
|
3589
|
+
function kn(e) {
|
|
3569
3590
|
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;
|
|
3570
3591
|
}
|
|
3571
|
-
function
|
|
3592
|
+
function je(e) {
|
|
3572
3593
|
e.forEach(function(t) {
|
|
3573
|
-
if (delete t.location,
|
|
3594
|
+
if (delete t.location, Ft(t) || jt(t))
|
|
3574
3595
|
for (var r in t.options)
|
|
3575
|
-
delete t.options[r].location,
|
|
3596
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3576
3597
|
else
|
|
3577
|
-
|
|
3598
|
+
Ut(t) && Vt(t.style) || (Dt(t) || Gt(t)) && Re(t.style) ? delete t.style.location : kt(t) && je(t.children);
|
|
3578
3599
|
});
|
|
3579
3600
|
}
|
|
3580
|
-
function
|
|
3581
|
-
t === void 0 && (t = {}), t =
|
|
3582
|
-
var r = new
|
|
3601
|
+
function Vn(e, t) {
|
|
3602
|
+
t === void 0 && (t = {}), t = le({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3603
|
+
var r = new Gn(e, t).parse();
|
|
3583
3604
|
if (r.err) {
|
|
3584
3605
|
var n = SyntaxError(m[r.err.kind]);
|
|
3585
3606
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3586
3607
|
}
|
|
3587
|
-
return t?.captureLocation ||
|
|
3608
|
+
return t?.captureLocation || je(r.val), r.val;
|
|
3588
3609
|
}
|
|
3589
|
-
var
|
|
3610
|
+
var F;
|
|
3590
3611
|
(function(e) {
|
|
3591
3612
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3592
|
-
})(
|
|
3593
|
-
var
|
|
3613
|
+
})(F || (F = {}));
|
|
3614
|
+
var de = (
|
|
3594
3615
|
/** @class */
|
|
3595
3616
|
function(e) {
|
|
3596
|
-
|
|
3617
|
+
be(t, e);
|
|
3597
3618
|
function t(r, n, i) {
|
|
3598
3619
|
var o = e.call(this, r) || this;
|
|
3599
3620
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3602,48 +3623,48 @@ var me = (
|
|
|
3602
3623
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3603
3624
|
}, t;
|
|
3604
3625
|
}(Error)
|
|
3605
|
-
),
|
|
3626
|
+
), bt = (
|
|
3606
3627
|
/** @class */
|
|
3607
3628
|
function(e) {
|
|
3608
|
-
|
|
3629
|
+
be(t, e);
|
|
3609
3630
|
function t(r, n, i, o) {
|
|
3610
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3631
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), F.INVALID_VALUE, o) || this;
|
|
3611
3632
|
}
|
|
3612
3633
|
return t;
|
|
3613
|
-
}(
|
|
3614
|
-
),
|
|
3634
|
+
}(de)
|
|
3635
|
+
), Xn = (
|
|
3615
3636
|
/** @class */
|
|
3616
3637
|
function(e) {
|
|
3617
|
-
|
|
3638
|
+
be(t, e);
|
|
3618
3639
|
function t(r, n, i) {
|
|
3619
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3640
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), F.INVALID_VALUE, i) || this;
|
|
3620
3641
|
}
|
|
3621
3642
|
return t;
|
|
3622
|
-
}(
|
|
3623
|
-
),
|
|
3643
|
+
}(de)
|
|
3644
|
+
), zn = (
|
|
3624
3645
|
/** @class */
|
|
3625
3646
|
function(e) {
|
|
3626
|
-
|
|
3647
|
+
be(t, e);
|
|
3627
3648
|
function t(r, n) {
|
|
3628
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3649
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), F.MISSING_VALUE, n) || this;
|
|
3629
3650
|
}
|
|
3630
3651
|
return t;
|
|
3631
|
-
}(
|
|
3652
|
+
}(de)
|
|
3632
3653
|
), E;
|
|
3633
3654
|
(function(e) {
|
|
3634
3655
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3635
3656
|
})(E || (E = {}));
|
|
3636
|
-
function
|
|
3657
|
+
function Wn(e) {
|
|
3637
3658
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3638
3659
|
var n = t[t.length - 1];
|
|
3639
3660
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3640
3661
|
}, []);
|
|
3641
3662
|
}
|
|
3642
|
-
function
|
|
3663
|
+
function Zn(e) {
|
|
3643
3664
|
return typeof e == "function";
|
|
3644
3665
|
}
|
|
3645
3666
|
function ue(e, t, r, n, i, o, s) {
|
|
3646
|
-
if (e.length === 1 &&
|
|
3667
|
+
if (e.length === 1 && ut(e[0]))
|
|
3647
3668
|
return [
|
|
3648
3669
|
{
|
|
3649
3670
|
type: E.literal,
|
|
@@ -3652,14 +3673,14 @@ function ue(e, t, r, n, i, o, s) {
|
|
|
3652
3673
|
];
|
|
3653
3674
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3654
3675
|
var l = u[h];
|
|
3655
|
-
if (
|
|
3676
|
+
if (ut(l)) {
|
|
3656
3677
|
a.push({
|
|
3657
3678
|
type: E.literal,
|
|
3658
3679
|
value: l.value
|
|
3659
3680
|
});
|
|
3660
3681
|
continue;
|
|
3661
3682
|
}
|
|
3662
|
-
if (
|
|
3683
|
+
if (dn(l)) {
|
|
3663
3684
|
typeof o == "number" && a.push({
|
|
3664
3685
|
type: E.literal,
|
|
3665
3686
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3668,89 +3689,89 @@ function ue(e, t, r, n, i, o, s) {
|
|
|
3668
3689
|
}
|
|
3669
3690
|
var f = l.value;
|
|
3670
3691
|
if (!(i && f in i))
|
|
3671
|
-
throw new
|
|
3692
|
+
throw new zn(f, s);
|
|
3672
3693
|
var c = i[f];
|
|
3673
|
-
if (
|
|
3694
|
+
if (bn(l)) {
|
|
3674
3695
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3675
3696
|
type: typeof c == "string" ? E.literal : E.object,
|
|
3676
3697
|
value: c
|
|
3677
3698
|
});
|
|
3678
3699
|
continue;
|
|
3679
3700
|
}
|
|
3680
|
-
if (
|
|
3681
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3701
|
+
if (Dt(l)) {
|
|
3702
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3682
3703
|
a.push({
|
|
3683
3704
|
type: E.literal,
|
|
3684
3705
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3685
3706
|
});
|
|
3686
3707
|
continue;
|
|
3687
3708
|
}
|
|
3688
|
-
if (
|
|
3689
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3709
|
+
if (Gt(l)) {
|
|
3710
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3690
3711
|
a.push({
|
|
3691
3712
|
type: E.literal,
|
|
3692
3713
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3693
3714
|
});
|
|
3694
3715
|
continue;
|
|
3695
3716
|
}
|
|
3696
|
-
if (
|
|
3697
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3717
|
+
if (Ut(l)) {
|
|
3718
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Vt(l.style) ? l.style.parsedOptions : void 0;
|
|
3698
3719
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3699
3720
|
type: E.literal,
|
|
3700
3721
|
value: r.getNumberFormat(t, p).format(c)
|
|
3701
3722
|
});
|
|
3702
3723
|
continue;
|
|
3703
3724
|
}
|
|
3704
|
-
if (
|
|
3725
|
+
if (kt(l)) {
|
|
3705
3726
|
var b = l.children, v = l.value, x = i[v];
|
|
3706
|
-
if (!
|
|
3707
|
-
throw new
|
|
3708
|
-
var I = ue(b, t, r, n, i, o), g = x(I.map(function(
|
|
3709
|
-
return
|
|
3727
|
+
if (!Zn(x))
|
|
3728
|
+
throw new Xn(v, "function", s);
|
|
3729
|
+
var I = ue(b, t, r, n, i, o), g = x(I.map(function(N) {
|
|
3730
|
+
return N.value;
|
|
3710
3731
|
}));
|
|
3711
|
-
Array.isArray(g) || (g = [g]), a.push.apply(a, g.map(function(
|
|
3732
|
+
Array.isArray(g) || (g = [g]), a.push.apply(a, g.map(function(N) {
|
|
3712
3733
|
return {
|
|
3713
|
-
type: typeof
|
|
3714
|
-
value:
|
|
3734
|
+
type: typeof N == "string" ? E.literal : E.object,
|
|
3735
|
+
value: N
|
|
3715
3736
|
};
|
|
3716
3737
|
}));
|
|
3717
3738
|
}
|
|
3718
|
-
if (
|
|
3739
|
+
if (Ft(l)) {
|
|
3719
3740
|
var w = l.options[c] || l.options.other;
|
|
3720
3741
|
if (!w)
|
|
3721
|
-
throw new
|
|
3742
|
+
throw new bt(l.value, c, Object.keys(l.options), s);
|
|
3722
3743
|
a.push.apply(a, ue(w.value, t, r, n, i));
|
|
3723
3744
|
continue;
|
|
3724
3745
|
}
|
|
3725
|
-
if (
|
|
3746
|
+
if (jt(l)) {
|
|
3726
3747
|
var w = l.options["=".concat(c)];
|
|
3727
3748
|
if (!w) {
|
|
3728
3749
|
if (!Intl.PluralRules)
|
|
3729
|
-
throw new
|
|
3750
|
+
throw new de(`Intl.PluralRules is not available in this environment.
|
|
3730
3751
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3731
|
-
`,
|
|
3732
|
-
var
|
|
3733
|
-
w = l.options[
|
|
3752
|
+
`, F.MISSING_INTL_API, s);
|
|
3753
|
+
var z = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3754
|
+
w = l.options[z] || l.options.other;
|
|
3734
3755
|
}
|
|
3735
3756
|
if (!w)
|
|
3736
|
-
throw new
|
|
3757
|
+
throw new bt(l.value, c, Object.keys(l.options), s);
|
|
3737
3758
|
a.push.apply(a, ue(w.value, t, r, n, i, c - (l.offset || 0)));
|
|
3738
3759
|
continue;
|
|
3739
3760
|
}
|
|
3740
3761
|
}
|
|
3741
|
-
return
|
|
3762
|
+
return Wn(a);
|
|
3742
3763
|
}
|
|
3743
|
-
function
|
|
3744
|
-
return t ?
|
|
3745
|
-
return r[n] =
|
|
3764
|
+
function Qn(e, t) {
|
|
3765
|
+
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3766
|
+
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
|
3746
3767
|
}, {})) : e;
|
|
3747
3768
|
}
|
|
3748
|
-
function
|
|
3769
|
+
function Jn(e, t) {
|
|
3749
3770
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3750
|
-
return r[n] =
|
|
3751
|
-
},
|
|
3771
|
+
return r[n] = Qn(e[n], t[n]), r;
|
|
3772
|
+
}, H({}, e)) : e;
|
|
3752
3773
|
}
|
|
3753
|
-
function
|
|
3774
|
+
function we(e) {
|
|
3754
3775
|
return {
|
|
3755
3776
|
create: function() {
|
|
3756
3777
|
return {
|
|
@@ -3764,39 +3785,39 @@ function Te(e) {
|
|
|
3764
3785
|
}
|
|
3765
3786
|
};
|
|
3766
3787
|
}
|
|
3767
|
-
function
|
|
3788
|
+
function Yn(e) {
|
|
3768
3789
|
return e === void 0 && (e = {
|
|
3769
3790
|
number: {},
|
|
3770
3791
|
dateTime: {},
|
|
3771
3792
|
pluralRules: {}
|
|
3772
3793
|
}), {
|
|
3773
|
-
getNumberFormat:
|
|
3794
|
+
getNumberFormat: xe(function() {
|
|
3774
3795
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3775
3796
|
r[n] = arguments[n];
|
|
3776
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3797
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3777
3798
|
}, {
|
|
3778
|
-
cache:
|
|
3779
|
-
strategy:
|
|
3799
|
+
cache: we(e.number),
|
|
3800
|
+
strategy: Se.variadic
|
|
3780
3801
|
}),
|
|
3781
|
-
getDateTimeFormat:
|
|
3802
|
+
getDateTimeFormat: xe(function() {
|
|
3782
3803
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3783
3804
|
r[n] = arguments[n];
|
|
3784
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3805
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3785
3806
|
}, {
|
|
3786
|
-
cache:
|
|
3787
|
-
strategy:
|
|
3807
|
+
cache: we(e.dateTime),
|
|
3808
|
+
strategy: Se.variadic
|
|
3788
3809
|
}),
|
|
3789
|
-
getPluralRules:
|
|
3810
|
+
getPluralRules: xe(function() {
|
|
3790
3811
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3791
3812
|
r[n] = arguments[n];
|
|
3792
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3813
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3793
3814
|
}, {
|
|
3794
|
-
cache:
|
|
3795
|
-
strategy:
|
|
3815
|
+
cache: we(e.pluralRules),
|
|
3816
|
+
strategy: Se.variadic
|
|
3796
3817
|
})
|
|
3797
3818
|
};
|
|
3798
3819
|
}
|
|
3799
|
-
var
|
|
3820
|
+
var qn = (
|
|
3800
3821
|
/** @class */
|
|
3801
3822
|
function() {
|
|
3802
3823
|
function e(t, r, n, i) {
|
|
@@ -3828,13 +3849,13 @@ var Jn = (
|
|
|
3828
3849
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3829
3850
|
var s = i || {};
|
|
3830
3851
|
s.formatters;
|
|
3831
|
-
var a =
|
|
3832
|
-
this.ast = e.__parse(t,
|
|
3852
|
+
var a = an(s, ["formatters"]);
|
|
3853
|
+
this.ast = e.__parse(t, H(H({}, a), { locale: this.resolvedLocale }));
|
|
3833
3854
|
} else
|
|
3834
3855
|
this.ast = t;
|
|
3835
3856
|
if (!Array.isArray(this.ast))
|
|
3836
3857
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3837
|
-
this.formats =
|
|
3858
|
+
this.formats = Jn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3838
3859
|
}
|
|
3839
3860
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3840
3861
|
get: function() {
|
|
@@ -3847,7 +3868,7 @@ var Jn = (
|
|
|
3847
3868
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3848
3869
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3849
3870
|
}
|
|
3850
|
-
}, e.__parse =
|
|
3871
|
+
}, e.__parse = Vn, e.formats = {
|
|
3851
3872
|
number: {
|
|
3852
3873
|
integer: {
|
|
3853
3874
|
maximumFractionDigits: 0
|
|
@@ -3908,7 +3929,7 @@ var Jn = (
|
|
|
3908
3929
|
}, e;
|
|
3909
3930
|
}()
|
|
3910
3931
|
);
|
|
3911
|
-
function
|
|
3932
|
+
function Kn(e, t) {
|
|
3912
3933
|
if (t == null)
|
|
3913
3934
|
return;
|
|
3914
3935
|
if (t in e)
|
|
@@ -3929,92 +3950,92 @@ function Yn(e, t) {
|
|
|
3929
3950
|
n = void 0;
|
|
3930
3951
|
return n;
|
|
3931
3952
|
}
|
|
3932
|
-
const P = {},
|
|
3953
|
+
const P = {}, ei = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), qt = (e, t) => {
|
|
3933
3954
|
if (t == null)
|
|
3934
3955
|
return;
|
|
3935
3956
|
if (t in P && e in P[t])
|
|
3936
3957
|
return P[t][e];
|
|
3937
|
-
const r =
|
|
3958
|
+
const r = ge(t);
|
|
3938
3959
|
for (let n = 0; n < r.length; n++) {
|
|
3939
|
-
const i = r[n], o =
|
|
3960
|
+
const i = r[n], o = ri(i, e);
|
|
3940
3961
|
if (o)
|
|
3941
|
-
return
|
|
3962
|
+
return ei(e, t, o);
|
|
3942
3963
|
}
|
|
3943
3964
|
};
|
|
3944
|
-
let
|
|
3945
|
-
const te =
|
|
3946
|
-
function
|
|
3947
|
-
return
|
|
3965
|
+
let We;
|
|
3966
|
+
const te = me({});
|
|
3967
|
+
function ti(e) {
|
|
3968
|
+
return We[e] || null;
|
|
3948
3969
|
}
|
|
3949
|
-
function
|
|
3950
|
-
return e in
|
|
3970
|
+
function Kt(e) {
|
|
3971
|
+
return e in We;
|
|
3951
3972
|
}
|
|
3952
|
-
function
|
|
3953
|
-
if (!
|
|
3973
|
+
function ri(e, t) {
|
|
3974
|
+
if (!Kt(e))
|
|
3954
3975
|
return null;
|
|
3955
|
-
const r =
|
|
3956
|
-
return
|
|
3976
|
+
const r = ti(e);
|
|
3977
|
+
return Kn(r, t);
|
|
3957
3978
|
}
|
|
3958
|
-
function
|
|
3979
|
+
function ni(e) {
|
|
3959
3980
|
if (e == null)
|
|
3960
3981
|
return;
|
|
3961
|
-
const t =
|
|
3982
|
+
const t = ge(e);
|
|
3962
3983
|
for (let r = 0; r < t.length; r++) {
|
|
3963
3984
|
const n = t[r];
|
|
3964
|
-
if (
|
|
3985
|
+
if (Kt(n))
|
|
3965
3986
|
return n;
|
|
3966
3987
|
}
|
|
3967
3988
|
}
|
|
3968
|
-
function
|
|
3989
|
+
function ii(e, ...t) {
|
|
3969
3990
|
delete P[e], te.update((r) => (r[e] = sn.all([r[e] || {}, ...t]), r));
|
|
3970
3991
|
}
|
|
3971
|
-
|
|
3992
|
+
V(
|
|
3972
3993
|
[te],
|
|
3973
3994
|
([e]) => Object.keys(e)
|
|
3974
3995
|
);
|
|
3975
|
-
te.subscribe((e) =>
|
|
3996
|
+
te.subscribe((e) => We = e);
|
|
3976
3997
|
const he = {};
|
|
3977
|
-
function
|
|
3998
|
+
function oi(e, t) {
|
|
3978
3999
|
he[e].delete(t), he[e].size === 0 && delete he[e];
|
|
3979
4000
|
}
|
|
3980
|
-
function
|
|
4001
|
+
function er(e) {
|
|
3981
4002
|
return he[e];
|
|
3982
4003
|
}
|
|
3983
|
-
function
|
|
3984
|
-
return
|
|
3985
|
-
const r =
|
|
4004
|
+
function si(e) {
|
|
4005
|
+
return ge(e).map((t) => {
|
|
4006
|
+
const r = er(t);
|
|
3986
4007
|
return [t, r ? [...r] : []];
|
|
3987
4008
|
}).filter(([, t]) => t.length > 0);
|
|
3988
4009
|
}
|
|
3989
|
-
function
|
|
3990
|
-
return e == null ? !1 :
|
|
4010
|
+
function ke(e) {
|
|
4011
|
+
return e == null ? !1 : ge(e).some(
|
|
3991
4012
|
(t) => {
|
|
3992
4013
|
var r;
|
|
3993
|
-
return (r =
|
|
4014
|
+
return (r = er(t)) == null ? void 0 : r.size;
|
|
3994
4015
|
}
|
|
3995
4016
|
);
|
|
3996
4017
|
}
|
|
3997
|
-
function
|
|
4018
|
+
function ai(e, t) {
|
|
3998
4019
|
return Promise.all(
|
|
3999
|
-
t.map((n) => (
|
|
4000
|
-
).then((n) =>
|
|
4001
|
-
}
|
|
4002
|
-
const
|
|
4003
|
-
function
|
|
4004
|
-
if (!
|
|
4005
|
-
return e in
|
|
4006
|
-
const t =
|
|
4007
|
-
return
|
|
4020
|
+
t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
|
|
4021
|
+
).then((n) => ii(e, ...n));
|
|
4022
|
+
}
|
|
4023
|
+
const W = {};
|
|
4024
|
+
function tr(e) {
|
|
4025
|
+
if (!ke(e))
|
|
4026
|
+
return e in W ? W[e] : Promise.resolve();
|
|
4027
|
+
const t = si(e);
|
|
4028
|
+
return W[e] = Promise.all(
|
|
4008
4029
|
t.map(
|
|
4009
|
-
([r, n]) =>
|
|
4030
|
+
([r, n]) => ai(r, n)
|
|
4010
4031
|
)
|
|
4011
4032
|
).then(() => {
|
|
4012
|
-
if (
|
|
4013
|
-
return
|
|
4014
|
-
delete
|
|
4015
|
-
}),
|
|
4033
|
+
if (ke(e))
|
|
4034
|
+
return tr(e);
|
|
4035
|
+
delete W[e];
|
|
4036
|
+
}), W[e];
|
|
4016
4037
|
}
|
|
4017
|
-
const
|
|
4038
|
+
const ui = {
|
|
4018
4039
|
number: {
|
|
4019
4040
|
scientific: { notation: "scientific" },
|
|
4020
4041
|
engineering: { notation: "engineering" },
|
|
@@ -4043,135 +4064,135 @@ const si = {
|
|
|
4043
4064
|
timeZoneName: "short"
|
|
4044
4065
|
}
|
|
4045
4066
|
}
|
|
4046
|
-
},
|
|
4067
|
+
}, hi = {
|
|
4047
4068
|
fallbackLocale: null,
|
|
4048
4069
|
loadingDelay: 200,
|
|
4049
|
-
formats:
|
|
4070
|
+
formats: ui,
|
|
4050
4071
|
warnOnMissingMessages: !0,
|
|
4051
4072
|
handleMissingMessage: void 0,
|
|
4052
4073
|
ignoreTag: !0
|
|
4053
|
-
},
|
|
4054
|
-
function
|
|
4055
|
-
return
|
|
4074
|
+
}, li = hi;
|
|
4075
|
+
function j() {
|
|
4076
|
+
return li;
|
|
4056
4077
|
}
|
|
4057
|
-
const
|
|
4058
|
-
var
|
|
4078
|
+
const He = me(!1);
|
|
4079
|
+
var fi = Object.defineProperty, ci = Object.defineProperties, pi = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, mi = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
|
|
4059
4080
|
for (var r in t || (t = {}))
|
|
4060
|
-
|
|
4061
|
-
if (
|
|
4062
|
-
for (var r of
|
|
4063
|
-
|
|
4081
|
+
mi.call(t, r) && gt(e, r, t[r]);
|
|
4082
|
+
if (dt)
|
|
4083
|
+
for (var r of dt(t))
|
|
4084
|
+
bi.call(t, r) && gt(e, r, t[r]);
|
|
4064
4085
|
return e;
|
|
4065
|
-
},
|
|
4066
|
-
let
|
|
4067
|
-
const
|
|
4068
|
-
function
|
|
4086
|
+
}, gi = (e, t) => ci(e, pi(t));
|
|
4087
|
+
let Ve;
|
|
4088
|
+
const fe = me(null);
|
|
4089
|
+
function vt(e) {
|
|
4069
4090
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4070
4091
|
}
|
|
4071
|
-
function
|
|
4072
|
-
const r =
|
|
4073
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4092
|
+
function ge(e, t = j().fallbackLocale) {
|
|
4093
|
+
const r = vt(e);
|
|
4094
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
|
|
4074
4095
|
}
|
|
4075
4096
|
function C() {
|
|
4076
|
-
return
|
|
4097
|
+
return Ve ?? void 0;
|
|
4077
4098
|
}
|
|
4078
|
-
|
|
4079
|
-
|
|
4099
|
+
fe.subscribe((e) => {
|
|
4100
|
+
Ve = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4080
4101
|
});
|
|
4081
|
-
const
|
|
4082
|
-
if (e &&
|
|
4083
|
-
const { loadingDelay: t } =
|
|
4102
|
+
const vi = (e) => {
|
|
4103
|
+
if (e && ni(e) && ke(e)) {
|
|
4104
|
+
const { loadingDelay: t } = j();
|
|
4084
4105
|
let r;
|
|
4085
4106
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
|
4086
|
-
() =>
|
|
4107
|
+
() => He.set(!0),
|
|
4087
4108
|
t
|
|
4088
|
-
) :
|
|
4089
|
-
|
|
4109
|
+
) : He.set(!0), tr(e).then(() => {
|
|
4110
|
+
fe.set(e);
|
|
4090
4111
|
}).finally(() => {
|
|
4091
|
-
clearTimeout(r),
|
|
4112
|
+
clearTimeout(r), He.set(!1);
|
|
4092
4113
|
});
|
|
4093
4114
|
}
|
|
4094
|
-
return
|
|
4095
|
-
}, re =
|
|
4096
|
-
set:
|
|
4097
|
-
}),
|
|
4115
|
+
return fe.set(e);
|
|
4116
|
+
}, re = gi(di({}, fe), {
|
|
4117
|
+
set: vi
|
|
4118
|
+
}), ve = (e) => {
|
|
4098
4119
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4099
4120
|
return (n) => {
|
|
4100
4121
|
const i = JSON.stringify(n);
|
|
4101
4122
|
return i in t ? t[i] : t[i] = e(n);
|
|
4102
4123
|
};
|
|
4103
4124
|
};
|
|
4104
|
-
var
|
|
4125
|
+
var yi = Object.defineProperty, ce = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
4105
4126
|
for (var r in t || (t = {}))
|
|
4106
|
-
|
|
4107
|
-
if (
|
|
4108
|
-
for (var r of
|
|
4109
|
-
|
|
4127
|
+
rr.call(t, r) && yt(e, r, t[r]);
|
|
4128
|
+
if (ce)
|
|
4129
|
+
for (var r of ce(t))
|
|
4130
|
+
nr.call(t, r) && yt(e, r, t[r]);
|
|
4110
4131
|
return e;
|
|
4111
|
-
},
|
|
4132
|
+
}, X = (e, t) => {
|
|
4112
4133
|
var r = {};
|
|
4113
4134
|
for (var n in e)
|
|
4114
|
-
|
|
4115
|
-
if (e != null &&
|
|
4116
|
-
for (var n of
|
|
4117
|
-
t.indexOf(n) < 0 &&
|
|
4135
|
+
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4136
|
+
if (e != null && ce)
|
|
4137
|
+
for (var n of ce(e))
|
|
4138
|
+
t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
|
|
4118
4139
|
return r;
|
|
4119
4140
|
};
|
|
4120
|
-
const
|
|
4121
|
-
const { formats: r } =
|
|
4141
|
+
const Y = (e, t) => {
|
|
4142
|
+
const { formats: r } = j();
|
|
4122
4143
|
if (e in r && t in r[e])
|
|
4123
4144
|
return r[e][t];
|
|
4124
4145
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4125
|
-
},
|
|
4146
|
+
}, _i = ve(
|
|
4126
4147
|
(e) => {
|
|
4127
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4148
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4128
4149
|
if (r == null)
|
|
4129
4150
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4130
|
-
return n && (i =
|
|
4151
|
+
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
|
4131
4152
|
}
|
|
4132
|
-
),
|
|
4153
|
+
), Ei = ve(
|
|
4133
4154
|
(e) => {
|
|
4134
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4155
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4135
4156
|
if (r == null)
|
|
4136
4157
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4137
|
-
return n ? i =
|
|
4158
|
+
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4138
4159
|
}
|
|
4139
|
-
),
|
|
4160
|
+
), xi = ve(
|
|
4140
4161
|
(e) => {
|
|
4141
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4162
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4142
4163
|
if (r == null)
|
|
4143
4164
|
throw new Error(
|
|
4144
4165
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4145
4166
|
);
|
|
4146
|
-
return n ? i =
|
|
4167
|
+
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4147
4168
|
}
|
|
4148
|
-
),
|
|
4169
|
+
), Si = (e = {}) => {
|
|
4149
4170
|
var t = e, {
|
|
4150
4171
|
locale: r = C()
|
|
4151
|
-
} = t, n =
|
|
4172
|
+
} = t, n = X(t, [
|
|
4152
4173
|
"locale"
|
|
4153
4174
|
]);
|
|
4154
|
-
return
|
|
4155
|
-
},
|
|
4175
|
+
return _i(Ze({ locale: r }, n));
|
|
4176
|
+
}, Ti = (e = {}) => {
|
|
4156
4177
|
var t = e, {
|
|
4157
4178
|
locale: r = C()
|
|
4158
|
-
} = t, n =
|
|
4179
|
+
} = t, n = X(t, [
|
|
4159
4180
|
"locale"
|
|
4160
4181
|
]);
|
|
4161
|
-
return
|
|
4162
|
-
},
|
|
4182
|
+
return Ei(Ze({ locale: r }, n));
|
|
4183
|
+
}, wi = (e = {}) => {
|
|
4163
4184
|
var t = e, {
|
|
4164
4185
|
locale: r = C()
|
|
4165
|
-
} = t, n =
|
|
4186
|
+
} = t, n = X(t, [
|
|
4166
4187
|
"locale"
|
|
4167
4188
|
]);
|
|
4168
|
-
return
|
|
4169
|
-
},
|
|
4189
|
+
return xi(Ze({ locale: r }, n));
|
|
4190
|
+
}, Hi = ve(
|
|
4170
4191
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4171
|
-
(e, t = C()) => new
|
|
4172
|
-
ignoreTag:
|
|
4192
|
+
(e, t = C()) => new qn(e, t, j().formats, {
|
|
4193
|
+
ignoreTag: j().ignoreTag
|
|
4173
4194
|
})
|
|
4174
|
-
),
|
|
4195
|
+
), Ai = (e, t = {}) => {
|
|
4175
4196
|
var r, n, i, o;
|
|
4176
4197
|
let s = t;
|
|
4177
4198
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4184,9 +4205,9 @@ const q = (e, t) => {
|
|
|
4184
4205
|
throw new Error(
|
|
4185
4206
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4186
4207
|
);
|
|
4187
|
-
let l =
|
|
4208
|
+
let l = qt(e, h);
|
|
4188
4209
|
if (!l)
|
|
4189
|
-
l = (o = (i = (n = (r =
|
|
4210
|
+
l = (o = (i = (n = (r = j()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4190
4211
|
else if (typeof l != "string")
|
|
4191
4212
|
return console.warn(
|
|
4192
4213
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4195,7 +4216,7 @@ const q = (e, t) => {
|
|
|
4195
4216
|
return l;
|
|
4196
4217
|
let f = l;
|
|
4197
4218
|
try {
|
|
4198
|
-
f =
|
|
4219
|
+
f = Hi(l, h).format(a);
|
|
4199
4220
|
} catch (c) {
|
|
4200
4221
|
c instanceof Error && console.warn(
|
|
4201
4222
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4203,22 +4224,22 @@ const q = (e, t) => {
|
|
|
4203
4224
|
);
|
|
4204
4225
|
}
|
|
4205
4226
|
return f;
|
|
4206
|
-
},
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4227
|
+
}, Bi = (e, t) => wi(t).format(e), Pi = (e, t) => Ti(t).format(e), Oi = (e, t) => Si(t).format(e), Ii = (e, t = C()) => qt(e, t);
|
|
4228
|
+
V([re, te], () => Ai);
|
|
4229
|
+
V([re], () => Bi);
|
|
4230
|
+
V([re], () => Pi);
|
|
4231
|
+
V([re], () => Oi);
|
|
4232
|
+
V([re, te], () => Ii);
|
|
4212
4233
|
window.emWidgets = { topic: jr };
|
|
4213
|
-
const
|
|
4234
|
+
const Ni = (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));
|
|
4214
4235
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4215
|
-
function
|
|
4236
|
+
function Li(e, t) {
|
|
4216
4237
|
if (e) {
|
|
4217
4238
|
const r = document.createElement("style");
|
|
4218
4239
|
r.innerHTML = t, e.appendChild(r);
|
|
4219
4240
|
}
|
|
4220
4241
|
}
|
|
4221
|
-
function
|
|
4242
|
+
function Ci(e, t) {
|
|
4222
4243
|
if (!e || !t)
|
|
4223
4244
|
return;
|
|
4224
4245
|
const r = new URL(t);
|
|
@@ -4229,7 +4250,7 @@ function Li(e, t) {
|
|
|
4229
4250
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4230
4251
|
});
|
|
4231
4252
|
}
|
|
4232
|
-
function
|
|
4253
|
+
function Mi(e, t, r) {
|
|
4233
4254
|
if (window.emMessageBus) {
|
|
4234
4255
|
const n = document.createElement("style");
|
|
4235
4256
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4237,43 +4258,43 @@ function Ni(e, t, r) {
|
|
|
4237
4258
|
});
|
|
4238
4259
|
}
|
|
4239
4260
|
}
|
|
4240
|
-
function
|
|
4241
|
-
|
|
4261
|
+
function $i(e) {
|
|
4262
|
+
sr(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}");
|
|
4242
4263
|
}
|
|
4243
|
-
function
|
|
4264
|
+
function _t(e, t, r) {
|
|
4244
4265
|
const n = e.slice();
|
|
4245
4266
|
return n[16] = t[r], n;
|
|
4246
4267
|
}
|
|
4247
|
-
function
|
|
4248
|
-
let t, r =
|
|
4268
|
+
function Et(e) {
|
|
4269
|
+
let t, r = Ke(
|
|
4249
4270
|
/*__tabs*/
|
|
4250
4271
|
e[6]
|
|
4251
4272
|
), n = [];
|
|
4252
4273
|
for (let i = 0; i < r.length; i += 1)
|
|
4253
|
-
n[i] =
|
|
4274
|
+
n[i] = St(_t(e, r, i));
|
|
4254
4275
|
return {
|
|
4255
4276
|
c() {
|
|
4256
4277
|
t = O("ul");
|
|
4257
4278
|
for (let i = 0; i < n.length; i += 1)
|
|
4258
4279
|
n[i].c();
|
|
4259
|
-
|
|
4280
|
+
S(t, "part", "ul");
|
|
4260
4281
|
},
|
|
4261
4282
|
m(i, o) {
|
|
4262
|
-
|
|
4283
|
+
K(i, t, o);
|
|
4263
4284
|
for (let s = 0; s < n.length; s += 1)
|
|
4264
4285
|
n[s] && n[s].m(t, null);
|
|
4265
4286
|
},
|
|
4266
4287
|
p(i, o) {
|
|
4267
4288
|
if (o & /*__tab, __tabs, window, tid, totalReceiver, textReceiver*/
|
|
4268
4289
|
121) {
|
|
4269
|
-
r =
|
|
4290
|
+
r = Ke(
|
|
4270
4291
|
/*__tabs*/
|
|
4271
4292
|
i[6]
|
|
4272
4293
|
);
|
|
4273
4294
|
let s;
|
|
4274
4295
|
for (s = 0; s < r.length; s += 1) {
|
|
4275
|
-
const a =
|
|
4276
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4296
|
+
const a = _t(i, r, s);
|
|
4297
|
+
n[s] ? n[s].p(a, o) : (n[s] = St(a), n[s].c(), n[s].m(t, null));
|
|
4277
4298
|
}
|
|
4278
4299
|
for (; s < n.length; s += 1)
|
|
4279
4300
|
n[s].d(1);
|
|
@@ -4281,11 +4302,11 @@ function yt(e) {
|
|
|
4281
4302
|
}
|
|
4282
4303
|
},
|
|
4283
4304
|
d(i) {
|
|
4284
|
-
i &&
|
|
4305
|
+
i && k(t), hr(n, i);
|
|
4285
4306
|
}
|
|
4286
4307
|
};
|
|
4287
4308
|
}
|
|
4288
|
-
function
|
|
4309
|
+
function xt(e) {
|
|
4289
4310
|
let t, r, n = (
|
|
4290
4311
|
/*totalReceiver*/
|
|
4291
4312
|
e[3][
|
|
@@ -4295,10 +4316,10 @@ function _t(e) {
|
|
|
4295
4316
|
), i;
|
|
4296
4317
|
return {
|
|
4297
4318
|
c() {
|
|
4298
|
-
t = O("sup"), r = O("span"), i =
|
|
4319
|
+
t = O("sup"), r = O("span"), i = ze(n), S(r, "part", "SupText"), S(t, "part", "sup");
|
|
4299
4320
|
},
|
|
4300
4321
|
m(o, s) {
|
|
4301
|
-
|
|
4322
|
+
K(o, t, s), L(t, r), L(r, i);
|
|
4302
4323
|
},
|
|
4303
4324
|
p(o, s) {
|
|
4304
4325
|
s & /*totalReceiver, __tabs*/
|
|
@@ -4306,14 +4327,14 @@ function _t(e) {
|
|
|
4306
4327
|
o[3][
|
|
4307
4328
|
/*_tab*/
|
|
4308
4329
|
o[16]
|
|
4309
|
-
] + "") &&
|
|
4330
|
+
] + "") && Ht(i, n);
|
|
4310
4331
|
},
|
|
4311
4332
|
d(o) {
|
|
4312
|
-
o &&
|
|
4333
|
+
o && k(t);
|
|
4313
4334
|
}
|
|
4314
4335
|
};
|
|
4315
4336
|
}
|
|
4316
|
-
function
|
|
4337
|
+
function St(e) {
|
|
4317
4338
|
let t, r, n = (
|
|
4318
4339
|
/*textReceiver*/
|
|
4319
4340
|
(e[4][
|
|
@@ -4325,7 +4346,7 @@ function Et(e) {
|
|
|
4325
4346
|
e[3][
|
|
4326
4347
|
/*_tab*/
|
|
4327
4348
|
e[16]
|
|
4328
|
-
] >= 0 &&
|
|
4349
|
+
] >= 0 && xt(e)
|
|
4329
4350
|
);
|
|
4330
4351
|
function c() {
|
|
4331
4352
|
return (
|
|
@@ -4338,15 +4359,15 @@ function Et(e) {
|
|
|
4338
4359
|
}
|
|
4339
4360
|
return {
|
|
4340
4361
|
c() {
|
|
4341
|
-
t = O("li"), r = O("span"), i =
|
|
4362
|
+
t = O("li"), r = O("span"), i = ze(n), o = Ye(), f && f.c(), s = Ye(), S(r, "part", "LiText"), S(t, "class", a = /*__tab*/
|
|
4342
4363
|
e[5] === /*_tab*/
|
|
4343
|
-
e[16] ? "active" : ""),
|
|
4364
|
+
e[16] ? "active" : ""), S(t, "part", h = `${/*_tab*/
|
|
4344
4365
|
e[16]} li ` + /*__tab*/
|
|
4345
4366
|
(e[5] === /*_tab*/
|
|
4346
4367
|
e[16] ? "active" : ""));
|
|
4347
4368
|
},
|
|
4348
4369
|
m(p, b) {
|
|
4349
|
-
|
|
4370
|
+
K(p, t, b), L(t, r), L(r, i), L(t, o), f && f.m(t, null), L(t, s), u || (l = lr(t, "click", c), u = !0);
|
|
4350
4371
|
},
|
|
4351
4372
|
p(p, b) {
|
|
4352
4373
|
e = p, b & /*textReceiver, __tabs*/
|
|
@@ -4354,51 +4375,51 @@ function Et(e) {
|
|
|
4354
4375
|
(e[4][
|
|
4355
4376
|
/*_tab*/
|
|
4356
4377
|
e[16]
|
|
4357
|
-
] || "") + "") &&
|
|
4378
|
+
] || "") + "") && Ht(i, n), /*totalReceiver*/
|
|
4358
4379
|
e[3][
|
|
4359
4380
|
/*_tab*/
|
|
4360
4381
|
e[16]
|
|
4361
|
-
] >= 0 ? f ? f.p(e, b) : (f =
|
|
4382
|
+
] >= 0 ? f ? f.p(e, b) : (f = xt(e), f.c(), f.m(t, s)) : f && (f.d(1), f = null), b & /*__tab, __tabs*/
|
|
4362
4383
|
96 && a !== (a = /*__tab*/
|
|
4363
4384
|
e[5] === /*_tab*/
|
|
4364
|
-
e[16] ? "active" : "") &&
|
|
4385
|
+
e[16] ? "active" : "") && S(t, "class", a), b & /*__tabs, __tab*/
|
|
4365
4386
|
96 && h !== (h = `${/*_tab*/
|
|
4366
4387
|
e[16]} li ` + /*__tab*/
|
|
4367
4388
|
(e[5] === /*_tab*/
|
|
4368
|
-
e[16] ? "active" : "")) &&
|
|
4389
|
+
e[16] ? "active" : "")) && S(t, "part", h);
|
|
4369
4390
|
},
|
|
4370
4391
|
d(p) {
|
|
4371
|
-
p &&
|
|
4392
|
+
p && k(t), f && f.d(), u = !1, l();
|
|
4372
4393
|
}
|
|
4373
4394
|
};
|
|
4374
4395
|
}
|
|
4375
|
-
function
|
|
4396
|
+
function Ri(e) {
|
|
4376
4397
|
let t, r = (
|
|
4377
4398
|
/*isTitleInited*/
|
|
4378
|
-
e[2] &&
|
|
4399
|
+
e[2] && Et(e)
|
|
4379
4400
|
);
|
|
4380
4401
|
return {
|
|
4381
4402
|
c() {
|
|
4382
|
-
t = O("div"), r && r.c(),
|
|
4403
|
+
t = O("div"), r && r.c(), S(t, "class", "casino-tournaments-tab " + (Ni(
|
|
4383
4404
|
/*userAgent*/
|
|
4384
4405
|
e[7]
|
|
4385
|
-
) ? "TabMobile" : "TabDesktop")),
|
|
4406
|
+
) ? "TabMobile" : "TabDesktop")), S(t, "part", "CustomStylingContainer");
|
|
4386
4407
|
},
|
|
4387
4408
|
m(n, i) {
|
|
4388
|
-
|
|
4409
|
+
K(n, t, i), r && r.m(t, null), e[14](t);
|
|
4389
4410
|
},
|
|
4390
4411
|
p(n, [i]) {
|
|
4391
4412
|
/*isTitleInited*/
|
|
4392
|
-
n[2] ? r ? r.p(n, i) : (r =
|
|
4413
|
+
n[2] ? r ? r.p(n, i) : (r = Et(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4393
4414
|
},
|
|
4394
|
-
i:
|
|
4395
|
-
o:
|
|
4415
|
+
i: T,
|
|
4416
|
+
o: T,
|
|
4396
4417
|
d(n) {
|
|
4397
|
-
n &&
|
|
4418
|
+
n && k(t), r && r.d(), e[14](null);
|
|
4398
4419
|
}
|
|
4399
4420
|
};
|
|
4400
4421
|
}
|
|
4401
|
-
function
|
|
4422
|
+
function Ui(e, t, r) {
|
|
4402
4423
|
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;
|
|
4403
4424
|
const p = window.navigator.userAgent;
|
|
4404
4425
|
let b = {}, v = {};
|
|
@@ -4418,7 +4439,7 @@ function Ri(e, t, r) {
|
|
|
4418
4439
|
TournamentsTabLocaleTextUpdate: (g) => {
|
|
4419
4440
|
r(2, c = !0), r(4, v = { ...v, [g.state]: g.text });
|
|
4420
4441
|
}
|
|
4421
|
-
}),
|
|
4442
|
+
}), At(() => (window.postMessage(
|
|
4422
4443
|
{
|
|
4423
4444
|
type: "TournamentsTabListenerLoaded",
|
|
4424
4445
|
tid: l
|
|
@@ -4437,7 +4458,7 @@ function Ri(e, t, r) {
|
|
|
4437
4458
|
);
|
|
4438
4459
|
};
|
|
4439
4460
|
function I(g) {
|
|
4440
|
-
|
|
4461
|
+
Ae[g ? "unshift" : "push"](() => {
|
|
4441
4462
|
f = g, r(1, f);
|
|
4442
4463
|
});
|
|
4443
4464
|
}
|
|
@@ -4445,9 +4466,9 @@ function Ri(e, t, r) {
|
|
|
4445
4466
|
"tabs" in g && r(8, o = g.tabs), "tab" in g && r(9, s = g.tab), "clientstyling" in g && r(10, a = g.clientstyling), "clientstylingurl" in g && r(11, h = g.clientstylingurl), "mbsource" in g && r(12, u = g.mbsource), "tid" in g && r(0, l = g.tid);
|
|
4446
4467
|
}, e.$$.update = () => {
|
|
4447
4468
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4448
|
-
1026 && a && f &&
|
|
4449
|
-
2050 && h && f &&
|
|
4450
|
-
4098 && u && f &&
|
|
4469
|
+
1026 && a && f && Li(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4470
|
+
2050 && h && f && Ci(f, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4471
|
+
4098 && u && f && Mi(f, `${u}.Style`), e.$$.dirty & /*tabs*/
|
|
4451
4472
|
256 && r(6, n = o.split(",")), e.$$.dirty & /*tab*/
|
|
4452
4473
|
512 && r(5, i = s);
|
|
4453
4474
|
}, [
|
|
@@ -4468,14 +4489,14 @@ function Ri(e, t, r) {
|
|
|
4468
4489
|
I
|
|
4469
4490
|
];
|
|
4470
4491
|
}
|
|
4471
|
-
class
|
|
4492
|
+
class Di extends wr {
|
|
4472
4493
|
constructor(t) {
|
|
4473
|
-
super(),
|
|
4494
|
+
super(), Sr(
|
|
4474
4495
|
this,
|
|
4475
4496
|
t,
|
|
4497
|
+
Ui,
|
|
4476
4498
|
Ri,
|
|
4477
|
-
|
|
4478
|
-
Tt,
|
|
4499
|
+
wt,
|
|
4479
4500
|
{
|
|
4480
4501
|
tabs: 8,
|
|
4481
4502
|
tab: 9,
|
|
@@ -4484,47 +4505,47 @@ class $i extends Sr {
|
|
|
4484
4505
|
mbsource: 12,
|
|
4485
4506
|
tid: 0
|
|
4486
4507
|
},
|
|
4487
|
-
|
|
4508
|
+
$i
|
|
4488
4509
|
);
|
|
4489
4510
|
}
|
|
4490
4511
|
get tabs() {
|
|
4491
4512
|
return this.$$.ctx[8];
|
|
4492
4513
|
}
|
|
4493
4514
|
set tabs(t) {
|
|
4494
|
-
this.$$set({ tabs: t }),
|
|
4515
|
+
this.$$set({ tabs: t }), B();
|
|
4495
4516
|
}
|
|
4496
4517
|
get tab() {
|
|
4497
4518
|
return this.$$.ctx[9];
|
|
4498
4519
|
}
|
|
4499
4520
|
set tab(t) {
|
|
4500
|
-
this.$$set({ tab: t }),
|
|
4521
|
+
this.$$set({ tab: t }), B();
|
|
4501
4522
|
}
|
|
4502
4523
|
get clientstyling() {
|
|
4503
4524
|
return this.$$.ctx[10];
|
|
4504
4525
|
}
|
|
4505
4526
|
set clientstyling(t) {
|
|
4506
|
-
this.$$set({ clientstyling: t }),
|
|
4527
|
+
this.$$set({ clientstyling: t }), B();
|
|
4507
4528
|
}
|
|
4508
4529
|
get clientstylingurl() {
|
|
4509
4530
|
return this.$$.ctx[11];
|
|
4510
4531
|
}
|
|
4511
4532
|
set clientstylingurl(t) {
|
|
4512
|
-
this.$$set({ clientstylingurl: t }),
|
|
4533
|
+
this.$$set({ clientstylingurl: t }), B();
|
|
4513
4534
|
}
|
|
4514
4535
|
get mbsource() {
|
|
4515
4536
|
return this.$$.ctx[12];
|
|
4516
4537
|
}
|
|
4517
4538
|
set mbsource(t) {
|
|
4518
|
-
this.$$set({ mbsource: t }),
|
|
4539
|
+
this.$$set({ mbsource: t }), B();
|
|
4519
4540
|
}
|
|
4520
4541
|
get tid() {
|
|
4521
4542
|
return this.$$.ctx[0];
|
|
4522
4543
|
}
|
|
4523
4544
|
set tid(t) {
|
|
4524
|
-
this.$$set({ tid: t }),
|
|
4545
|
+
this.$$set({ tid: t }), B();
|
|
4525
4546
|
}
|
|
4526
4547
|
}
|
|
4527
|
-
Tr(
|
|
4548
|
+
Tr(Di, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, tid: {} }, [], [], !0);
|
|
4528
4549
|
export {
|
|
4529
|
-
|
|
4550
|
+
Di as C
|
|
4530
4551
|
};
|