@everymatrix/casino-random-game 1.74.3 → 1.74.4
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/CasinoRandomGame-BlZkntaq.cjs +19 -0
- package/components/{CasinoRandomGame-DaqT6dCn.js → CasinoRandomGame-CQVMwR-4.js} +1276 -1262
- package/components/{CasinoRandomGame-40wnmLKZ.js → CasinoRandomGame-CfvoHcZK.js} +1250 -1236
- package/es2015/casino-random-game.cjs +1 -1
- package/es2015/casino-random-game.js +1 -1
- package/esnext/casino-random-game.js +1 -1
- package/package.json +1 -1
- package/components/CasinoRandomGame-CuH73zJq.cjs +0 -19
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ge = (e, t,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var Jr = Object.defineProperty, Zr = Object.defineProperties;
|
|
2
|
+
var Qr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var bt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Yr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ge = (e, t, r) => t in e ? Jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gt = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
Yr.call(t, r) && Ge(e, r, t[r]);
|
|
8
|
+
if (bt)
|
|
9
|
+
for (var r of bt(t))
|
|
10
|
+
qr.call(t, r) && Ge(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var ye = (e, t,
|
|
12
|
+
}, yt = (e, t) => Zr(e, Qr(t));
|
|
13
|
+
var M = (e, t, r) => (Ge(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var ye = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
|
-
s(
|
|
17
|
+
s(r.next(h));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
21
|
}, a = (h) => {
|
|
22
22
|
try {
|
|
23
|
-
s(
|
|
23
|
+
s(r.throw(h));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, s = (h) => h.done ?
|
|
28
|
-
s((
|
|
27
|
+
}, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
|
|
28
|
+
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function C() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
for (const
|
|
34
|
-
e[
|
|
32
|
+
function Kr(e, t) {
|
|
33
|
+
for (const r in t)
|
|
34
|
+
e[r] = t[r];
|
|
35
35
|
return (
|
|
36
36
|
/** @type {T & S} */
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Qt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function vt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
46
|
function J(e) {
|
|
47
|
-
e.forEach(
|
|
47
|
+
e.forEach(Qt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function ut(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Yt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
let
|
|
56
|
-
function
|
|
57
|
-
return e === t ? !0 : (
|
|
55
|
+
let ve;
|
|
56
|
+
function _t(e, t) {
|
|
57
|
+
return e === t ? !0 : (ve || (ve = document.createElement("a")), ve.href = t, e === ve.href);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function en(e) {
|
|
60
60
|
return Object.keys(e).length === 0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function qt(e, ...t) {
|
|
63
63
|
if (e == null) {
|
|
64
|
-
for (const
|
|
65
|
-
|
|
64
|
+
for (const n of t)
|
|
65
|
+
n(void 0);
|
|
66
66
|
return C;
|
|
67
67
|
}
|
|
68
|
-
const
|
|
69
|
-
return
|
|
68
|
+
const r = e.subscribe(...t);
|
|
69
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
e.$$.on_destroy.push(
|
|
71
|
+
function tn(e, t, r) {
|
|
72
|
+
e.$$.on_destroy.push(qt(t, r));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function rn(e, t, r, n) {
|
|
75
75
|
if (e) {
|
|
76
|
-
const i =
|
|
76
|
+
const i = Kt(e, t, r, n);
|
|
77
77
|
return e[0](i);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return e[1] &&
|
|
80
|
+
function Kt(e, t, r, n) {
|
|
81
|
+
return e[1] && n ? Kr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
if (e[2] &&
|
|
85
|
-
const i = e[2](r
|
|
83
|
+
function nn(e, t, r, n) {
|
|
84
|
+
if (e[2] && n) {
|
|
85
|
+
const i = e[2](n(r));
|
|
86
86
|
if (t.dirty === void 0)
|
|
87
87
|
return i;
|
|
88
88
|
if (typeof i == "object") {
|
|
@@ -95,32 +95,32 @@ function tr(e, t, n, r) {
|
|
|
95
95
|
}
|
|
96
96
|
return t.dirty;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function on(e, t, r, n, i, o) {
|
|
99
99
|
if (i) {
|
|
100
|
-
const a =
|
|
100
|
+
const a = Kt(t, r, n, o);
|
|
101
101
|
e.p(a, i);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function an(e) {
|
|
105
105
|
if (e.ctx.length > 32) {
|
|
106
|
-
const t = [],
|
|
107
|
-
for (let
|
|
108
|
-
t[
|
|
106
|
+
const t = [], r = e.ctx.length / 32;
|
|
107
|
+
for (let n = 0; n < r; n++)
|
|
108
|
+
t[n] = -1;
|
|
109
109
|
return t;
|
|
110
110
|
}
|
|
111
111
|
return -1;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function x(e, t) {
|
|
114
114
|
e.appendChild(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
const
|
|
118
|
-
if (!
|
|
116
|
+
function sn(e, t, r) {
|
|
117
|
+
const n = un(e);
|
|
118
|
+
if (!n.getElementById(t)) {
|
|
119
119
|
const i = S("style");
|
|
120
|
-
i.id = t, i.textContent =
|
|
120
|
+
i.id = t, i.textContent = r, ln(n, i);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function un(e) {
|
|
124
124
|
if (!e)
|
|
125
125
|
return document;
|
|
126
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -130,27 +130,27 @@ function or(e) {
|
|
|
130
130
|
t
|
|
131
131
|
) : e.ownerDocument;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
133
|
+
function ln(e, t) {
|
|
134
|
+
return x(
|
|
135
135
|
/** @type {Document} */
|
|
136
136
|
e.head || e,
|
|
137
137
|
t
|
|
138
138
|
), t.sheet;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
e.insertBefore(t,
|
|
140
|
+
function O(e, t, r) {
|
|
141
|
+
e.insertBefore(t, r || null);
|
|
142
142
|
}
|
|
143
143
|
function R(e) {
|
|
144
144
|
e.parentNode && e.parentNode.removeChild(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
for (let
|
|
148
|
-
e[
|
|
146
|
+
function hn(e, t) {
|
|
147
|
+
for (let r = 0; r < e.length; r += 1)
|
|
148
|
+
e[r] && e[r].d(t);
|
|
149
149
|
}
|
|
150
150
|
function S(e) {
|
|
151
151
|
return document.createElement(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function xt(e) {
|
|
154
154
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
155
155
|
}
|
|
156
156
|
function k(e) {
|
|
@@ -159,64 +159,64 @@ function k(e) {
|
|
|
159
159
|
function V() {
|
|
160
160
|
return k(" ");
|
|
161
161
|
}
|
|
162
|
-
function Be(e, t,
|
|
163
|
-
return e.addEventListener(t,
|
|
162
|
+
function Be(e, t, r, n) {
|
|
163
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
164
164
|
}
|
|
165
|
-
function g(e, t,
|
|
166
|
-
|
|
165
|
+
function g(e, t, r) {
|
|
166
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function cn(e) {
|
|
169
169
|
return Array.from(e.childNodes);
|
|
170
170
|
}
|
|
171
171
|
function z(e, t) {
|
|
172
172
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
173
173
|
t);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function fn(e) {
|
|
176
176
|
const t = {};
|
|
177
177
|
return e.childNodes.forEach(
|
|
178
178
|
/** @param {Element} node */
|
|
179
|
-
(
|
|
180
|
-
t[
|
|
179
|
+
(r) => {
|
|
180
|
+
t[r.slot || "default"] = !0;
|
|
181
181
|
}
|
|
182
182
|
), t;
|
|
183
183
|
}
|
|
184
|
-
let
|
|
184
|
+
let me;
|
|
185
185
|
function ce(e) {
|
|
186
|
-
|
|
186
|
+
me = e;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
if (!
|
|
188
|
+
function mn() {
|
|
189
|
+
if (!me)
|
|
190
190
|
throw new Error("Function called outside component initialization");
|
|
191
|
-
return
|
|
191
|
+
return me;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
193
|
+
function dn(e) {
|
|
194
|
+
mn().$$.on_mount.push(e);
|
|
195
195
|
}
|
|
196
196
|
const K = [], Ae = [];
|
|
197
197
|
let ee = [];
|
|
198
|
-
const
|
|
199
|
-
let
|
|
200
|
-
function
|
|
201
|
-
|
|
198
|
+
const Et = [], er = /* @__PURE__ */ Promise.resolve();
|
|
199
|
+
let Xe = !1;
|
|
200
|
+
function tr() {
|
|
201
|
+
Xe || (Xe = !0, er.then(I));
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
return
|
|
203
|
+
function pn() {
|
|
204
|
+
return tr(), er;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function ze(e) {
|
|
207
207
|
ee.push(e);
|
|
208
208
|
}
|
|
209
209
|
const Ue = /* @__PURE__ */ new Set();
|
|
210
210
|
let Y = 0;
|
|
211
|
-
function
|
|
211
|
+
function I() {
|
|
212
212
|
if (Y !== 0)
|
|
213
213
|
return;
|
|
214
|
-
const e =
|
|
214
|
+
const e = me;
|
|
215
215
|
do {
|
|
216
216
|
try {
|
|
217
217
|
for (; Y < K.length; ) {
|
|
218
218
|
const t = K[Y];
|
|
219
|
-
Y++, ce(t),
|
|
219
|
+
Y++, ce(t), bn(t.$$);
|
|
220
220
|
}
|
|
221
221
|
} catch (t) {
|
|
222
222
|
throw K.length = 0, Y = 0, t;
|
|
@@ -224,29 +224,29 @@ function O() {
|
|
|
224
224
|
for (ce(null), K.length = 0, Y = 0; Ae.length; )
|
|
225
225
|
Ae.pop()();
|
|
226
226
|
for (let t = 0; t < ee.length; t += 1) {
|
|
227
|
-
const
|
|
228
|
-
Ue.has(
|
|
227
|
+
const r = ee[t];
|
|
228
|
+
Ue.has(r) || (Ue.add(r), r());
|
|
229
229
|
}
|
|
230
230
|
ee.length = 0;
|
|
231
231
|
} while (K.length);
|
|
232
|
-
for (;
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
for (; Et.length; )
|
|
233
|
+
Et.pop()();
|
|
234
|
+
Xe = !1, Ue.clear(), ce(e);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function bn(e) {
|
|
237
237
|
if (e.fragment !== null) {
|
|
238
238
|
e.update(), J(e.before_update);
|
|
239
239
|
const t = e.dirty;
|
|
240
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
240
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ze);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
const t = [],
|
|
245
|
-
ee.forEach((
|
|
243
|
+
function gn(e) {
|
|
244
|
+
const t = [], r = [];
|
|
245
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
246
246
|
}
|
|
247
247
|
const Ee = /* @__PURE__ */ new Set();
|
|
248
248
|
let X;
|
|
249
|
-
function
|
|
249
|
+
function yn() {
|
|
250
250
|
X = {
|
|
251
251
|
r: 0,
|
|
252
252
|
c: [],
|
|
@@ -254,41 +254,41 @@ function pr() {
|
|
|
254
254
|
// parent group
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function vn() {
|
|
258
258
|
X.r || J(X.c), X = X.p;
|
|
259
259
|
}
|
|
260
260
|
function fe(e, t) {
|
|
261
261
|
e && e.i && (Ee.delete(e), e.i(t));
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Je(e, t, r, n) {
|
|
264
264
|
if (e && e.o) {
|
|
265
265
|
if (Ee.has(e))
|
|
266
266
|
return;
|
|
267
267
|
Ee.add(e), X.c.push(() => {
|
|
268
|
-
Ee.delete(e),
|
|
268
|
+
Ee.delete(e), n && (r && e.d(1), n());
|
|
269
269
|
}), e.o(t);
|
|
270
270
|
} else
|
|
271
|
-
|
|
271
|
+
n && n();
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function wt(e) {
|
|
274
274
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
const { fragment:
|
|
278
|
-
|
|
279
|
-
const o = e.$$.on_mount.map(
|
|
276
|
+
function _n(e, t, r) {
|
|
277
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
278
|
+
n && n.m(t, r), ze(() => {
|
|
279
|
+
const o = e.$$.on_mount.map(Qt).filter(ut);
|
|
280
280
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
281
|
-
}), i.forEach(
|
|
281
|
+
}), i.forEach(ze);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
const
|
|
285
|
-
|
|
283
|
+
function xn(e, t) {
|
|
284
|
+
const r = e.$$;
|
|
285
|
+
r.fragment !== null && (gn(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
e.$$.dirty[0] === -1 && (K.push(e),
|
|
287
|
+
function En(e, t) {
|
|
288
|
+
e.$$.dirty[0] === -1 && (K.push(e), tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
const h =
|
|
290
|
+
function wn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
291
|
+
const h = me;
|
|
292
292
|
ce(e);
|
|
293
293
|
const l = e.$$ = {
|
|
294
294
|
fragment: null,
|
|
@@ -297,7 +297,7 @@ function xr(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
297
297
|
props: o,
|
|
298
298
|
update: C,
|
|
299
299
|
not_equal: i,
|
|
300
|
-
bound:
|
|
300
|
+
bound: vt(),
|
|
301
301
|
// lifecycle
|
|
302
302
|
on_mount: [],
|
|
303
303
|
on_destroy: [],
|
|
@@ -306,61 +306,61 @@ function xr(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
306
306
|
after_update: [],
|
|
307
307
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
308
308
|
// everything else
|
|
309
|
-
callbacks:
|
|
309
|
+
callbacks: vt(),
|
|
310
310
|
dirty: s,
|
|
311
311
|
skip_bound: !1,
|
|
312
312
|
root: t.target || h.$$.root
|
|
313
313
|
};
|
|
314
314
|
a && a(l.root);
|
|
315
315
|
let u = !1;
|
|
316
|
-
if (l.ctx =
|
|
317
|
-
const
|
|
318
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] =
|
|
319
|
-
}), l.update(), u = !0, J(l.before_update), l.fragment =
|
|
316
|
+
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
317
|
+
const d = m.length ? m[0] : c;
|
|
318
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u && En(e, f)), c;
|
|
319
|
+
}) : [], l.update(), u = !0, J(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
320
320
|
if (t.hydrate) {
|
|
321
|
-
const f =
|
|
321
|
+
const f = cn(t.target);
|
|
322
322
|
l.fragment && l.fragment.l(f), f.forEach(R);
|
|
323
323
|
} else
|
|
324
324
|
l.fragment && l.fragment.c();
|
|
325
|
-
t.intro && fe(e.$$.fragment),
|
|
325
|
+
t.intro && fe(e.$$.fragment), _n(e, t.target, t.anchor), I();
|
|
326
326
|
}
|
|
327
327
|
ce(h);
|
|
328
328
|
}
|
|
329
|
-
let
|
|
330
|
-
typeof HTMLElement == "function" && (
|
|
331
|
-
constructor(t,
|
|
329
|
+
let rr;
|
|
330
|
+
typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
331
|
+
constructor(t, r, n) {
|
|
332
332
|
super();
|
|
333
333
|
/** The Svelte component constructor */
|
|
334
|
-
|
|
334
|
+
M(this, "$$ctor");
|
|
335
335
|
/** Slots */
|
|
336
|
-
|
|
336
|
+
M(this, "$$s");
|
|
337
337
|
/** The Svelte component instance */
|
|
338
|
-
|
|
338
|
+
M(this, "$$c");
|
|
339
339
|
/** Whether or not the custom element is connected */
|
|
340
|
-
|
|
340
|
+
M(this, "$$cn", !1);
|
|
341
341
|
/** Component props data */
|
|
342
|
-
|
|
342
|
+
M(this, "$$d", {});
|
|
343
343
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
344
|
-
|
|
344
|
+
M(this, "$$r", !1);
|
|
345
345
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
346
|
-
|
|
346
|
+
M(this, "$$p_d", {});
|
|
347
347
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
348
|
-
|
|
348
|
+
M(this, "$$l", {});
|
|
349
349
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
350
|
-
|
|
351
|
-
this.$$ctor = t, this.$$s =
|
|
350
|
+
M(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
351
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
352
352
|
}
|
|
353
|
-
addEventListener(t,
|
|
354
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
355
|
-
const i = this.$$c.$on(t,
|
|
356
|
-
this.$$l_u.set(
|
|
353
|
+
addEventListener(t, r, n) {
|
|
354
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
355
|
+
const i = this.$$c.$on(t, r);
|
|
356
|
+
this.$$l_u.set(r, i);
|
|
357
357
|
}
|
|
358
|
-
super.addEventListener(t,
|
|
358
|
+
super.addEventListener(t, r, n);
|
|
359
359
|
}
|
|
360
|
-
removeEventListener(t,
|
|
361
|
-
if (super.removeEventListener(t,
|
|
362
|
-
const i = this.$$l_u.get(
|
|
363
|
-
i && (i(), this.$$l_u.delete(
|
|
360
|
+
removeEventListener(t, r, n) {
|
|
361
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
362
|
+
const i = this.$$l_u.get(r);
|
|
363
|
+
i && (i(), this.$$l_u.delete(r));
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
connectedCallback() {
|
|
@@ -378,7 +378,7 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
|
378
378
|
* @param {HTMLElement} [anchor]
|
|
379
379
|
*/
|
|
380
380
|
m: function(l, u) {
|
|
381
|
-
|
|
381
|
+
O(l, a, u);
|
|
382
382
|
},
|
|
383
383
|
d: function(l) {
|
|
384
384
|
l && R(a);
|
|
@@ -388,9 +388,9 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
|
388
388
|
};
|
|
389
389
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
390
390
|
return;
|
|
391
|
-
const
|
|
391
|
+
const r = {}, n = fn(this);
|
|
392
392
|
for (const o of this.$$s)
|
|
393
|
-
o in
|
|
393
|
+
o in n && (r[o] = [t(o)]);
|
|
394
394
|
for (const o of this.attributes) {
|
|
395
395
|
const a = this.$$g_p(o.name);
|
|
396
396
|
a in this.$$d || (this.$$d[a] = we(a, o.value, this.$$p_d, "toProp"));
|
|
@@ -399,8 +399,8 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
|
399
399
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
400
400
|
this.$$c = new this.$$ctor({
|
|
401
401
|
target: this.shadowRoot || this,
|
|
402
|
-
props:
|
|
403
|
-
$$slots:
|
|
402
|
+
props: yt(gt({}, this.$$d), {
|
|
403
|
+
$$slots: r,
|
|
404
404
|
$$scope: {
|
|
405
405
|
ctx: []
|
|
406
406
|
}
|
|
@@ -432,9 +432,9 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
|
432
432
|
}
|
|
433
433
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
434
434
|
// and setting attributes through setAttribute etc, this is helpful
|
|
435
|
-
attributeChangedCallback(t,
|
|
435
|
+
attributeChangedCallback(t, r, n) {
|
|
436
436
|
var i;
|
|
437
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = we(t,
|
|
437
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = we(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
438
438
|
}
|
|
439
439
|
disconnectedCallback() {
|
|
440
440
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -443,16 +443,16 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
|
443
443
|
}
|
|
444
444
|
$$g_p(t) {
|
|
445
445
|
return Object.keys(this.$$p_d).find(
|
|
446
|
-
(
|
|
446
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
447
447
|
) || t;
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
function we(e, t,
|
|
450
|
+
function we(e, t, r, n) {
|
|
451
451
|
var o;
|
|
452
|
-
const i = (o =
|
|
453
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
452
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
453
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
454
454
|
return t;
|
|
455
|
-
if (
|
|
455
|
+
if (n === "toAttribute")
|
|
456
456
|
switch (i) {
|
|
457
457
|
case "Object":
|
|
458
458
|
case "Array":
|
|
@@ -477,10 +477,10 @@ function we(e, t, n, r) {
|
|
|
477
477
|
return t;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
let a = class extends
|
|
480
|
+
function Sn(e, t, r, n, i, o) {
|
|
481
|
+
let a = class extends rr {
|
|
482
482
|
constructor() {
|
|
483
|
-
super(e,
|
|
483
|
+
super(e, r, i), this.$$p_d = t;
|
|
484
484
|
}
|
|
485
485
|
static get observedAttributes() {
|
|
486
486
|
return Object.keys(t).map(
|
|
@@ -498,7 +498,7 @@ function vr(e, t, n, r, i, o) {
|
|
|
498
498
|
h = we(s, h, t), this.$$d[s] = h, (l = this.$$c) == null || l.$set({ [s]: h });
|
|
499
499
|
}
|
|
500
500
|
});
|
|
501
|
-
}),
|
|
501
|
+
}), n.forEach((s) => {
|
|
502
502
|
Object.defineProperty(a.prototype, s, {
|
|
503
503
|
get() {
|
|
504
504
|
var h;
|
|
@@ -508,7 +508,7 @@ function vr(e, t, n, r, i, o) {
|
|
|
508
508
|
}), e.element = /** @type {any} */
|
|
509
509
|
a, a;
|
|
510
510
|
}
|
|
511
|
-
class
|
|
511
|
+
class Tn {
|
|
512
512
|
constructor() {
|
|
513
513
|
/**
|
|
514
514
|
* ### PRIVATE API
|
|
@@ -517,7 +517,7 @@ class Er {
|
|
|
517
517
|
*
|
|
518
518
|
* @type {any}
|
|
519
519
|
*/
|
|
520
|
-
|
|
520
|
+
M(this, "$$");
|
|
521
521
|
/**
|
|
522
522
|
* ### PRIVATE API
|
|
523
523
|
*
|
|
@@ -525,11 +525,11 @@ class Er {
|
|
|
525
525
|
*
|
|
526
526
|
* @type {any}
|
|
527
527
|
*/
|
|
528
|
-
|
|
528
|
+
M(this, "$$set");
|
|
529
529
|
}
|
|
530
530
|
/** @returns {void} */
|
|
531
531
|
$destroy() {
|
|
532
|
-
|
|
532
|
+
xn(this, 1), this.$destroy = C;
|
|
533
533
|
}
|
|
534
534
|
/**
|
|
535
535
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -537,13 +537,13 @@ class Er {
|
|
|
537
537
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
538
538
|
* @returns {() => void}
|
|
539
539
|
*/
|
|
540
|
-
$on(t,
|
|
541
|
-
if (!
|
|
540
|
+
$on(t, r) {
|
|
541
|
+
if (!ut(r))
|
|
542
542
|
return C;
|
|
543
|
-
const
|
|
544
|
-
return
|
|
545
|
-
const i =
|
|
546
|
-
i !== -1 &&
|
|
543
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
544
|
+
return n.push(r), () => {
|
|
545
|
+
const i = n.indexOf(r);
|
|
546
|
+
i !== -1 && n.splice(i, 1);
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
/**
|
|
@@ -551,11 +551,11 @@ class Er {
|
|
|
551
551
|
* @returns {void}
|
|
552
552
|
*/
|
|
553
553
|
$set(t) {
|
|
554
|
-
this.$$set && !
|
|
554
|
+
this.$$set && !en(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
557
|
+
const Hn = "4";
|
|
558
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hn);
|
|
559
559
|
/*! *****************************************************************************
|
|
560
560
|
Copyright (c) Microsoft Corporation.
|
|
561
561
|
|
|
@@ -570,67 +570,67 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
570
570
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
571
571
|
PERFORMANCE OF THIS SOFTWARE.
|
|
572
572
|
***************************************************************************** */
|
|
573
|
-
var
|
|
574
|
-
return
|
|
575
|
-
|
|
576
|
-
} || function(
|
|
577
|
-
for (var i in
|
|
578
|
-
Object.prototype.hasOwnProperty.call(
|
|
579
|
-
},
|
|
573
|
+
var Ze = function(e, t) {
|
|
574
|
+
return Ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
575
|
+
r.__proto__ = n;
|
|
576
|
+
} || function(r, n) {
|
|
577
|
+
for (var i in n)
|
|
578
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
579
|
+
}, Ze(e, t);
|
|
580
580
|
};
|
|
581
581
|
function $(e, t) {
|
|
582
582
|
if (typeof t != "function" && t !== null)
|
|
583
583
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
584
|
-
|
|
585
|
-
function
|
|
584
|
+
Ze(e, t);
|
|
585
|
+
function r() {
|
|
586
586
|
this.constructor = e;
|
|
587
587
|
}
|
|
588
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
589
|
-
}
|
|
590
|
-
var
|
|
591
|
-
return
|
|
592
|
-
for (var
|
|
593
|
-
|
|
594
|
-
for (var o in
|
|
595
|
-
Object.prototype.hasOwnProperty.call(
|
|
588
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
589
|
+
}
|
|
590
|
+
var _ = function() {
|
|
591
|
+
return _ = Object.assign || function(t) {
|
|
592
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
593
|
+
r = arguments[n];
|
|
594
|
+
for (var o in r)
|
|
595
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
596
596
|
}
|
|
597
597
|
return t;
|
|
598
|
-
},
|
|
598
|
+
}, _.apply(this, arguments);
|
|
599
599
|
};
|
|
600
|
-
function
|
|
601
|
-
var
|
|
602
|
-
for (var
|
|
603
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
600
|
+
function Bn(e, t) {
|
|
601
|
+
var r = {};
|
|
602
|
+
for (var n in e)
|
|
603
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
604
604
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
605
|
-
for (var i = 0,
|
|
606
|
-
t.indexOf(
|
|
607
|
-
return
|
|
605
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
606
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
607
|
+
return r;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
611
|
-
if (
|
|
612
|
-
return
|
|
609
|
+
function Qe(e) {
|
|
610
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
611
|
+
if (r)
|
|
612
|
+
return r.call(e);
|
|
613
613
|
if (e && typeof e.length == "number")
|
|
614
614
|
return {
|
|
615
615
|
next: function() {
|
|
616
|
-
return e &&
|
|
616
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
617
617
|
}
|
|
618
618
|
};
|
|
619
619
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var
|
|
623
|
-
if (!
|
|
621
|
+
function Ye(e, t) {
|
|
622
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
623
|
+
if (!r)
|
|
624
624
|
return e;
|
|
625
|
-
var
|
|
625
|
+
var n = r.call(e), i, o = [], a;
|
|
626
626
|
try {
|
|
627
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
627
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
628
628
|
o.push(i.value);
|
|
629
629
|
} catch (s) {
|
|
630
630
|
a = { error: s };
|
|
631
631
|
} finally {
|
|
632
632
|
try {
|
|
633
|
-
i && !i.done && (
|
|
633
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
634
634
|
} finally {
|
|
635
635
|
if (a)
|
|
636
636
|
throw a.error;
|
|
@@ -638,49 +638,49 @@ function Qe(e, t) {
|
|
|
638
638
|
}
|
|
639
639
|
return o;
|
|
640
640
|
}
|
|
641
|
-
function te(e, t,
|
|
642
|
-
if (
|
|
643
|
-
for (var
|
|
644
|
-
(o || !(
|
|
641
|
+
function te(e, t, r) {
|
|
642
|
+
if (r || arguments.length === 2)
|
|
643
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
644
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
645
645
|
return e.concat(o || t);
|
|
646
646
|
}
|
|
647
647
|
function D(e) {
|
|
648
648
|
return typeof e == "function";
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
var t = function(
|
|
652
|
-
Error.call(
|
|
653
|
-
},
|
|
654
|
-
return
|
|
655
|
-
}
|
|
656
|
-
var Fe =
|
|
657
|
-
return function(
|
|
658
|
-
e(this), this.message =
|
|
659
|
-
` +
|
|
660
|
-
return i + 1 + ") " +
|
|
650
|
+
function nr(e) {
|
|
651
|
+
var t = function(n) {
|
|
652
|
+
Error.call(n), n.stack = new Error().stack;
|
|
653
|
+
}, r = e(t);
|
|
654
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
655
|
+
}
|
|
656
|
+
var Fe = nr(function(e) {
|
|
657
|
+
return function(r) {
|
|
658
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
659
|
+
` + r.map(function(n, i) {
|
|
660
|
+
return i + 1 + ") " + n.toString();
|
|
661
661
|
}).join(`
|
|
662
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
662
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
663
663
|
};
|
|
664
664
|
});
|
|
665
|
-
function
|
|
665
|
+
function qe(e, t) {
|
|
666
666
|
if (e) {
|
|
667
|
-
var
|
|
668
|
-
0 <=
|
|
667
|
+
var r = e.indexOf(t);
|
|
668
|
+
0 <= r && e.splice(r, 1);
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
|
-
var
|
|
671
|
+
var Ie = function() {
|
|
672
672
|
function e(t) {
|
|
673
673
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
674
674
|
}
|
|
675
675
|
return e.prototype.unsubscribe = function() {
|
|
676
|
-
var t,
|
|
676
|
+
var t, r, n, i, o;
|
|
677
677
|
if (!this.closed) {
|
|
678
678
|
this.closed = !0;
|
|
679
679
|
var a = this._parentage;
|
|
680
680
|
if (a)
|
|
681
681
|
if (this._parentage = null, Array.isArray(a))
|
|
682
682
|
try {
|
|
683
|
-
for (var s =
|
|
683
|
+
for (var s = Qe(a), h = s.next(); !h.done; h = s.next()) {
|
|
684
684
|
var l = h.value;
|
|
685
685
|
l.remove(this);
|
|
686
686
|
}
|
|
@@ -688,7 +688,7 @@ var Oe = function() {
|
|
|
688
688
|
t = { error: p };
|
|
689
689
|
} finally {
|
|
690
690
|
try {
|
|
691
|
-
h && !h.done && (
|
|
691
|
+
h && !h.done && (r = s.return) && r.call(s);
|
|
692
692
|
} finally {
|
|
693
693
|
if (t)
|
|
694
694
|
throw t.error;
|
|
@@ -707,22 +707,22 @@ var Oe = function() {
|
|
|
707
707
|
if (f) {
|
|
708
708
|
this._finalizers = null;
|
|
709
709
|
try {
|
|
710
|
-
for (var c =
|
|
711
|
-
var
|
|
710
|
+
for (var c = Qe(f), m = c.next(); !m.done; m = c.next()) {
|
|
711
|
+
var d = m.value;
|
|
712
712
|
try {
|
|
713
|
-
|
|
713
|
+
St(d);
|
|
714
714
|
} catch (p) {
|
|
715
|
-
o = o != null ? o : [], p instanceof Fe ? o = te(te([],
|
|
715
|
+
o = o != null ? o : [], p instanceof Fe ? o = te(te([], Ye(o)), Ye(p.errors)) : o.push(p);
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
} catch (p) {
|
|
719
|
-
|
|
719
|
+
n = { error: p };
|
|
720
720
|
} finally {
|
|
721
721
|
try {
|
|
722
|
-
|
|
722
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
723
723
|
} finally {
|
|
724
|
-
if (
|
|
725
|
-
throw
|
|
724
|
+
if (n)
|
|
725
|
+
throw n.error;
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
728
|
}
|
|
@@ -730,89 +730,89 @@ var Oe = function() {
|
|
|
730
730
|
throw new Fe(o);
|
|
731
731
|
}
|
|
732
732
|
}, e.prototype.add = function(t) {
|
|
733
|
-
var
|
|
733
|
+
var r;
|
|
734
734
|
if (t && t !== this)
|
|
735
735
|
if (this.closed)
|
|
736
|
-
|
|
736
|
+
St(t);
|
|
737
737
|
else {
|
|
738
738
|
if (t instanceof e) {
|
|
739
739
|
if (t.closed || t._hasParent(this))
|
|
740
740
|
return;
|
|
741
741
|
t._addParent(this);
|
|
742
742
|
}
|
|
743
|
-
(this._finalizers = (
|
|
743
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
744
744
|
}
|
|
745
745
|
}, e.prototype._hasParent = function(t) {
|
|
746
|
-
var
|
|
747
|
-
return
|
|
746
|
+
var r = this._parentage;
|
|
747
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
748
748
|
}, e.prototype._addParent = function(t) {
|
|
749
|
-
var
|
|
750
|
-
this._parentage = Array.isArray(
|
|
749
|
+
var r = this._parentage;
|
|
750
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
751
751
|
}, e.prototype._removeParent = function(t) {
|
|
752
|
-
var
|
|
753
|
-
|
|
752
|
+
var r = this._parentage;
|
|
753
|
+
r === t ? this._parentage = null : Array.isArray(r) && qe(r, t);
|
|
754
754
|
}, e.prototype.remove = function(t) {
|
|
755
|
-
var
|
|
756
|
-
|
|
755
|
+
var r = this._finalizers;
|
|
756
|
+
r && qe(r, t), t instanceof e && t._removeParent(this);
|
|
757
757
|
}, e.EMPTY = function() {
|
|
758
758
|
var t = new e();
|
|
759
759
|
return t.closed = !0, t;
|
|
760
760
|
}(), e;
|
|
761
|
-
}(),
|
|
762
|
-
function
|
|
763
|
-
return e instanceof
|
|
761
|
+
}(), ir = Ie.EMPTY;
|
|
762
|
+
function or(e) {
|
|
763
|
+
return e instanceof Ie || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function St(e) {
|
|
766
766
|
D(e) ? e() : e.unsubscribe();
|
|
767
767
|
}
|
|
768
|
-
var
|
|
768
|
+
var ar = {
|
|
769
769
|
onUnhandledError: null,
|
|
770
770
|
onStoppedNotification: null,
|
|
771
771
|
Promise: void 0,
|
|
772
772
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
773
773
|
useDeprecatedNextContext: !1
|
|
774
|
-
},
|
|
774
|
+
}, An = {
|
|
775
775
|
setTimeout: function(e, t) {
|
|
776
|
-
for (var
|
|
777
|
-
n
|
|
778
|
-
return setTimeout.apply(void 0, te([e, t],
|
|
776
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
777
|
+
r[n - 2] = arguments[n];
|
|
778
|
+
return setTimeout.apply(void 0, te([e, t], Ye(r)));
|
|
779
779
|
},
|
|
780
780
|
clearTimeout: function(e) {
|
|
781
781
|
return clearTimeout(e);
|
|
782
782
|
},
|
|
783
783
|
delegate: void 0
|
|
784
784
|
};
|
|
785
|
-
function
|
|
786
|
-
|
|
785
|
+
function Pn(e) {
|
|
786
|
+
An.setTimeout(function() {
|
|
787
787
|
throw e;
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Tt() {
|
|
791
791
|
}
|
|
792
792
|
function Se(e) {
|
|
793
793
|
e();
|
|
794
794
|
}
|
|
795
|
-
var
|
|
795
|
+
var sr = function(e) {
|
|
796
796
|
$(t, e);
|
|
797
|
-
function t(
|
|
798
|
-
var
|
|
799
|
-
return
|
|
797
|
+
function t(r) {
|
|
798
|
+
var n = e.call(this) || this;
|
|
799
|
+
return n.isStopped = !1, r ? (n.destination = r, or(r) && r.add(n)) : n.destination = Mn, n;
|
|
800
800
|
}
|
|
801
|
-
return t.create = function(
|
|
802
|
-
return new
|
|
803
|
-
}, t.prototype.next = function(
|
|
804
|
-
this.isStopped || this._next(
|
|
805
|
-
}, t.prototype.error = function(
|
|
806
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
801
|
+
return t.create = function(r, n, i) {
|
|
802
|
+
return new Ke(r, n, i);
|
|
803
|
+
}, t.prototype.next = function(r) {
|
|
804
|
+
this.isStopped || this._next(r);
|
|
805
|
+
}, t.prototype.error = function(r) {
|
|
806
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
807
807
|
}, t.prototype.complete = function() {
|
|
808
808
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
809
809
|
}, t.prototype.unsubscribe = function() {
|
|
810
810
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
811
|
-
}, t.prototype._next = function(
|
|
812
|
-
this.destination.next(
|
|
813
|
-
}, t.prototype._error = function(
|
|
811
|
+
}, t.prototype._next = function(r) {
|
|
812
|
+
this.destination.next(r);
|
|
813
|
+
}, t.prototype._error = function(r) {
|
|
814
814
|
try {
|
|
815
|
-
this.destination.error(
|
|
815
|
+
this.destination.error(r);
|
|
816
816
|
} finally {
|
|
817
817
|
this.unsubscribe();
|
|
818
818
|
}
|
|
@@ -823,82 +823,98 @@ var on = function(e) {
|
|
|
823
823
|
this.unsubscribe();
|
|
824
824
|
}
|
|
825
825
|
}, t;
|
|
826
|
-
}(
|
|
826
|
+
}(Ie), Rn = Function.prototype.bind;
|
|
827
|
+
function De(e, t) {
|
|
828
|
+
return Rn.call(e, t);
|
|
829
|
+
}
|
|
830
|
+
var In = function() {
|
|
827
831
|
function e(t) {
|
|
828
832
|
this.partialObserver = t;
|
|
829
833
|
}
|
|
830
834
|
return e.prototype.next = function(t) {
|
|
831
|
-
var
|
|
832
|
-
if (
|
|
835
|
+
var r = this.partialObserver;
|
|
836
|
+
if (r.next)
|
|
833
837
|
try {
|
|
834
|
-
|
|
835
|
-
} catch (
|
|
836
|
-
|
|
838
|
+
r.next(t);
|
|
839
|
+
} catch (n) {
|
|
840
|
+
_e(n);
|
|
837
841
|
}
|
|
838
842
|
}, e.prototype.error = function(t) {
|
|
839
|
-
var
|
|
840
|
-
if (
|
|
843
|
+
var r = this.partialObserver;
|
|
844
|
+
if (r.error)
|
|
841
845
|
try {
|
|
842
|
-
|
|
843
|
-
} catch (
|
|
844
|
-
|
|
846
|
+
r.error(t);
|
|
847
|
+
} catch (n) {
|
|
848
|
+
_e(n);
|
|
845
849
|
}
|
|
846
850
|
else
|
|
847
|
-
|
|
851
|
+
_e(t);
|
|
848
852
|
}, e.prototype.complete = function() {
|
|
849
853
|
var t = this.partialObserver;
|
|
850
854
|
if (t.complete)
|
|
851
855
|
try {
|
|
852
856
|
t.complete();
|
|
853
|
-
} catch (
|
|
854
|
-
|
|
857
|
+
} catch (r) {
|
|
858
|
+
_e(r);
|
|
855
859
|
}
|
|
856
860
|
}, e;
|
|
857
|
-
}(),
|
|
861
|
+
}(), Ke = function(e) {
|
|
858
862
|
$(t, e);
|
|
859
|
-
function t(
|
|
863
|
+
function t(r, n, i) {
|
|
860
864
|
var o = e.call(this) || this, a;
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
865
|
+
if (D(r) || !r)
|
|
866
|
+
a = {
|
|
867
|
+
next: r != null ? r : void 0,
|
|
868
|
+
error: n != null ? n : void 0,
|
|
869
|
+
complete: i != null ? i : void 0
|
|
870
|
+
};
|
|
871
|
+
else {
|
|
872
|
+
var s;
|
|
873
|
+
o && ar.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
874
|
+
return o.unsubscribe();
|
|
875
|
+
}, a = {
|
|
876
|
+
next: r.next && De(r.next, s),
|
|
877
|
+
error: r.error && De(r.error, s),
|
|
878
|
+
complete: r.complete && De(r.complete, s)
|
|
879
|
+
}) : a = r;
|
|
880
|
+
}
|
|
881
|
+
return o.destination = new In(a), o;
|
|
866
882
|
}
|
|
867
883
|
return t;
|
|
868
|
-
}(
|
|
869
|
-
function
|
|
870
|
-
|
|
884
|
+
}(sr);
|
|
885
|
+
function _e(e) {
|
|
886
|
+
Pn(e);
|
|
871
887
|
}
|
|
872
|
-
function
|
|
888
|
+
function On(e) {
|
|
873
889
|
throw e;
|
|
874
890
|
}
|
|
875
|
-
var
|
|
891
|
+
var Mn = {
|
|
876
892
|
closed: !0,
|
|
877
|
-
next:
|
|
878
|
-
error:
|
|
879
|
-
complete:
|
|
880
|
-
},
|
|
893
|
+
next: Tt,
|
|
894
|
+
error: On,
|
|
895
|
+
complete: Tt
|
|
896
|
+
}, Ln = function() {
|
|
881
897
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
882
898
|
}();
|
|
883
|
-
function
|
|
899
|
+
function Nn(e) {
|
|
884
900
|
return e;
|
|
885
901
|
}
|
|
886
|
-
function
|
|
887
|
-
return e.length === 0 ?
|
|
888
|
-
return e.reduce(function(
|
|
889
|
-
return i(
|
|
890
|
-
},
|
|
902
|
+
function Cn(e) {
|
|
903
|
+
return e.length === 0 ? Nn : e.length === 1 ? e[0] : function(r) {
|
|
904
|
+
return e.reduce(function(n, i) {
|
|
905
|
+
return i(n);
|
|
906
|
+
}, r);
|
|
891
907
|
};
|
|
892
908
|
}
|
|
893
|
-
var
|
|
909
|
+
var Ht = function() {
|
|
894
910
|
function e(t) {
|
|
895
911
|
t && (this._subscribe = t);
|
|
896
912
|
}
|
|
897
913
|
return e.prototype.lift = function(t) {
|
|
898
|
-
var
|
|
899
|
-
return
|
|
900
|
-
}, e.prototype.subscribe = function(t,
|
|
901
|
-
var i = this, o =
|
|
914
|
+
var r = new e();
|
|
915
|
+
return r.source = this, r.operator = t, r;
|
|
916
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
917
|
+
var i = this, o = Un(t) ? t : new Ke(t, r, n);
|
|
902
918
|
return Se(function() {
|
|
903
919
|
var a = i, s = a.operator, h = a.source;
|
|
904
920
|
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -906,13 +922,13 @@ var St = function() {
|
|
|
906
922
|
}, e.prototype._trySubscribe = function(t) {
|
|
907
923
|
try {
|
|
908
924
|
return this._subscribe(t);
|
|
909
|
-
} catch (
|
|
910
|
-
t.error(
|
|
925
|
+
} catch (r) {
|
|
926
|
+
t.error(r);
|
|
911
927
|
}
|
|
912
|
-
}, e.prototype.forEach = function(t,
|
|
913
|
-
var
|
|
914
|
-
return
|
|
915
|
-
var a = new
|
|
928
|
+
}, e.prototype.forEach = function(t, r) {
|
|
929
|
+
var n = this;
|
|
930
|
+
return r = Bt(r), new r(function(i, o) {
|
|
931
|
+
var a = new Ke({
|
|
916
932
|
next: function(s) {
|
|
917
933
|
try {
|
|
918
934
|
t(s);
|
|
@@ -923,69 +939,69 @@ var St = function() {
|
|
|
923
939
|
error: o,
|
|
924
940
|
complete: i
|
|
925
941
|
});
|
|
926
|
-
|
|
942
|
+
n.subscribe(a);
|
|
927
943
|
});
|
|
928
944
|
}, e.prototype._subscribe = function(t) {
|
|
929
|
-
var
|
|
930
|
-
return (
|
|
931
|
-
}, e.prototype[
|
|
945
|
+
var r;
|
|
946
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
947
|
+
}, e.prototype[Ln] = function() {
|
|
932
948
|
return this;
|
|
933
949
|
}, e.prototype.pipe = function() {
|
|
934
|
-
for (var t = [],
|
|
935
|
-
t[
|
|
936
|
-
return
|
|
950
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
951
|
+
t[r] = arguments[r];
|
|
952
|
+
return Cn(t)(this);
|
|
937
953
|
}, e.prototype.toPromise = function(t) {
|
|
938
|
-
var
|
|
939
|
-
return t =
|
|
954
|
+
var r = this;
|
|
955
|
+
return t = Bt(t), new t(function(n, i) {
|
|
940
956
|
var o;
|
|
941
|
-
|
|
957
|
+
r.subscribe(function(a) {
|
|
942
958
|
return o = a;
|
|
943
959
|
}, function(a) {
|
|
944
960
|
return i(a);
|
|
945
961
|
}, function() {
|
|
946
|
-
return
|
|
962
|
+
return n(o);
|
|
947
963
|
});
|
|
948
964
|
});
|
|
949
965
|
}, e.create = function(t) {
|
|
950
966
|
return new e(t);
|
|
951
967
|
}, e;
|
|
952
968
|
}();
|
|
953
|
-
function
|
|
969
|
+
function Bt(e) {
|
|
954
970
|
var t;
|
|
955
|
-
return (t = e != null ? e :
|
|
971
|
+
return (t = e != null ? e : ar.Promise) !== null && t !== void 0 ? t : Promise;
|
|
956
972
|
}
|
|
957
|
-
function
|
|
973
|
+
function Gn(e) {
|
|
958
974
|
return e && D(e.next) && D(e.error) && D(e.complete);
|
|
959
975
|
}
|
|
960
|
-
function
|
|
961
|
-
return e && e instanceof
|
|
976
|
+
function Un(e) {
|
|
977
|
+
return e && e instanceof sr || Gn(e) && or(e);
|
|
962
978
|
}
|
|
963
|
-
var
|
|
979
|
+
var Fn = nr(function(e) {
|
|
964
980
|
return function() {
|
|
965
981
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
966
982
|
};
|
|
967
|
-
}),
|
|
983
|
+
}), ur = function(e) {
|
|
968
984
|
$(t, e);
|
|
969
985
|
function t() {
|
|
970
|
-
var
|
|
971
|
-
return
|
|
986
|
+
var r = e.call(this) || this;
|
|
987
|
+
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
972
988
|
}
|
|
973
|
-
return t.prototype.lift = function(
|
|
974
|
-
var
|
|
975
|
-
return
|
|
989
|
+
return t.prototype.lift = function(r) {
|
|
990
|
+
var n = new At(this, this);
|
|
991
|
+
return n.operator = r, n;
|
|
976
992
|
}, t.prototype._throwIfClosed = function() {
|
|
977
993
|
if (this.closed)
|
|
978
|
-
throw new
|
|
979
|
-
}, t.prototype.next = function(
|
|
980
|
-
var
|
|
994
|
+
throw new Fn();
|
|
995
|
+
}, t.prototype.next = function(r) {
|
|
996
|
+
var n = this;
|
|
981
997
|
Se(function() {
|
|
982
998
|
var i, o;
|
|
983
|
-
if (
|
|
984
|
-
|
|
999
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1000
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
985
1001
|
try {
|
|
986
|
-
for (var a =
|
|
1002
|
+
for (var a = Qe(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
987
1003
|
var h = s.value;
|
|
988
|
-
h.next(
|
|
1004
|
+
h.next(r);
|
|
989
1005
|
}
|
|
990
1006
|
} catch (l) {
|
|
991
1007
|
i = { error: l };
|
|
@@ -999,118 +1015,118 @@ var Cr = tn(function(e) {
|
|
|
999
1015
|
}
|
|
1000
1016
|
}
|
|
1001
1017
|
});
|
|
1002
|
-
}, t.prototype.error = function(
|
|
1003
|
-
var
|
|
1018
|
+
}, t.prototype.error = function(r) {
|
|
1019
|
+
var n = this;
|
|
1004
1020
|
Se(function() {
|
|
1005
|
-
if (
|
|
1006
|
-
|
|
1007
|
-
for (var i =
|
|
1008
|
-
i.shift().error(
|
|
1021
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1022
|
+
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1023
|
+
for (var i = n.observers; i.length; )
|
|
1024
|
+
i.shift().error(r);
|
|
1009
1025
|
}
|
|
1010
1026
|
});
|
|
1011
1027
|
}, t.prototype.complete = function() {
|
|
1012
|
-
var
|
|
1028
|
+
var r = this;
|
|
1013
1029
|
Se(function() {
|
|
1014
|
-
if (
|
|
1015
|
-
|
|
1016
|
-
for (var
|
|
1017
|
-
|
|
1030
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1031
|
+
r.isStopped = !0;
|
|
1032
|
+
for (var n = r.observers; n.length; )
|
|
1033
|
+
n.shift().complete();
|
|
1018
1034
|
}
|
|
1019
1035
|
});
|
|
1020
1036
|
}, t.prototype.unsubscribe = function() {
|
|
1021
1037
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1022
1038
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1023
1039
|
get: function() {
|
|
1024
|
-
var
|
|
1025
|
-
return ((
|
|
1040
|
+
var r;
|
|
1041
|
+
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
1026
1042
|
},
|
|
1027
1043
|
enumerable: !1,
|
|
1028
1044
|
configurable: !0
|
|
1029
|
-
}), t.prototype._trySubscribe = function(
|
|
1030
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1031
|
-
}, t.prototype._subscribe = function(
|
|
1032
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1033
|
-
}, t.prototype._innerSubscribe = function(
|
|
1034
|
-
var
|
|
1035
|
-
return o || a ?
|
|
1036
|
-
|
|
1045
|
+
}), t.prototype._trySubscribe = function(r) {
|
|
1046
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
|
|
1047
|
+
}, t.prototype._subscribe = function(r) {
|
|
1048
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1049
|
+
}, t.prototype._innerSubscribe = function(r) {
|
|
1050
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1051
|
+
return o || a ? ir : (this.currentObservers = null, s.push(r), new Ie(function() {
|
|
1052
|
+
n.currentObservers = null, qe(s, r);
|
|
1037
1053
|
}));
|
|
1038
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1039
|
-
var
|
|
1040
|
-
i ?
|
|
1054
|
+
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1055
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1056
|
+
i ? r.error(o) : a && r.complete();
|
|
1041
1057
|
}, t.prototype.asObservable = function() {
|
|
1042
|
-
var
|
|
1043
|
-
return
|
|
1044
|
-
}, t.create = function(
|
|
1045
|
-
return new
|
|
1058
|
+
var r = new Ht();
|
|
1059
|
+
return r.source = this, r;
|
|
1060
|
+
}, t.create = function(r, n) {
|
|
1061
|
+
return new At(r, n);
|
|
1046
1062
|
}, t;
|
|
1047
|
-
}(
|
|
1063
|
+
}(Ht), At = function(e) {
|
|
1048
1064
|
$(t, e);
|
|
1049
|
-
function t(
|
|
1065
|
+
function t(r, n) {
|
|
1050
1066
|
var i = e.call(this) || this;
|
|
1051
|
-
return i.destination =
|
|
1067
|
+
return i.destination = r, i.source = n, i;
|
|
1052
1068
|
}
|
|
1053
|
-
return t.prototype.next = function(
|
|
1054
|
-
var
|
|
1055
|
-
(i = (
|
|
1056
|
-
}, t.prototype.error = function(
|
|
1057
|
-
var
|
|
1058
|
-
(i = (
|
|
1069
|
+
return t.prototype.next = function(r) {
|
|
1070
|
+
var n, i;
|
|
1071
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
1072
|
+
}, t.prototype.error = function(r) {
|
|
1073
|
+
var n, i;
|
|
1074
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
1059
1075
|
}, t.prototype.complete = function() {
|
|
1060
|
-
var
|
|
1061
|
-
(
|
|
1062
|
-
}, t.prototype._subscribe = function(
|
|
1063
|
-
var
|
|
1064
|
-
return (i = (
|
|
1076
|
+
var r, n;
|
|
1077
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1078
|
+
}, t.prototype._subscribe = function(r) {
|
|
1079
|
+
var n, i;
|
|
1080
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : ir;
|
|
1065
1081
|
}, t;
|
|
1066
|
-
}(
|
|
1082
|
+
}(ur), lr = {
|
|
1067
1083
|
now: function() {
|
|
1068
|
-
return (
|
|
1084
|
+
return (lr.delegate || Date).now();
|
|
1069
1085
|
},
|
|
1070
1086
|
delegate: void 0
|
|
1071
|
-
},
|
|
1087
|
+
}, Dn = function(e) {
|
|
1072
1088
|
$(t, e);
|
|
1073
|
-
function t(
|
|
1074
|
-
|
|
1089
|
+
function t(r, n, i) {
|
|
1090
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = lr);
|
|
1075
1091
|
var o = e.call(this) || this;
|
|
1076
|
-
return o._bufferSize =
|
|
1092
|
+
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;
|
|
1077
1093
|
}
|
|
1078
|
-
return t.prototype.next = function(
|
|
1079
|
-
var
|
|
1080
|
-
i || (o.push(
|
|
1081
|
-
}, t.prototype._subscribe = function(
|
|
1094
|
+
return t.prototype.next = function(r) {
|
|
1095
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, h = n._windowTime;
|
|
1096
|
+
i || (o.push(r), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1097
|
+
}, t.prototype._subscribe = function(r) {
|
|
1082
1098
|
this._throwIfClosed(), this._trimBuffer();
|
|
1083
|
-
for (var
|
|
1084
|
-
|
|
1085
|
-
return this._checkFinalizedStatuses(
|
|
1099
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !r.closed; h += o ? 1 : 2)
|
|
1100
|
+
r.next(s[h]);
|
|
1101
|
+
return this._checkFinalizedStatuses(r), n;
|
|
1086
1102
|
}, t.prototype._trimBuffer = function() {
|
|
1087
|
-
var
|
|
1088
|
-
if (
|
|
1103
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1104
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1089
1105
|
for (var h = i.now(), l = 0, u = 1; u < o.length && o[u] <= h; u += 2)
|
|
1090
1106
|
l = u;
|
|
1091
1107
|
l && o.splice(0, l + 1);
|
|
1092
1108
|
}
|
|
1093
1109
|
}, t;
|
|
1094
|
-
}(
|
|
1095
|
-
const
|
|
1096
|
-
if (
|
|
1097
|
-
const
|
|
1098
|
-
|
|
1110
|
+
}(ur);
|
|
1111
|
+
const Pt = [], Rt = {}, $n = (e, t = 0) => {
|
|
1112
|
+
if (Pt.indexOf(e) == -1) {
|
|
1113
|
+
const r = new Dn(t);
|
|
1114
|
+
Rt[e] = r, Pt.push(e);
|
|
1099
1115
|
}
|
|
1100
|
-
return
|
|
1116
|
+
return Rt[e];
|
|
1101
1117
|
}, q = [];
|
|
1102
|
-
function
|
|
1118
|
+
function jn(e, t) {
|
|
1103
1119
|
return {
|
|
1104
|
-
subscribe:
|
|
1120
|
+
subscribe: Oe(e, t).subscribe
|
|
1105
1121
|
};
|
|
1106
1122
|
}
|
|
1107
|
-
function
|
|
1108
|
-
let
|
|
1109
|
-
const
|
|
1123
|
+
function Oe(e, t = C) {
|
|
1124
|
+
let r;
|
|
1125
|
+
const n = /* @__PURE__ */ new Set();
|
|
1110
1126
|
function i(s) {
|
|
1111
|
-
if (
|
|
1127
|
+
if (Yt(e, s) && (e = s, r)) {
|
|
1112
1128
|
const h = !q.length;
|
|
1113
|
-
for (const l of
|
|
1129
|
+
for (const l of n)
|
|
1114
1130
|
l[1](), q.push(l, e);
|
|
1115
1131
|
if (h) {
|
|
1116
1132
|
for (let l = 0; l < q.length; l += 2)
|
|
@@ -1124,18 +1140,18 @@ function Ie(e, t = C) {
|
|
|
1124
1140
|
}
|
|
1125
1141
|
function a(s, h = C) {
|
|
1126
1142
|
const l = [s, h];
|
|
1127
|
-
return
|
|
1128
|
-
|
|
1143
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || C), s(e), () => {
|
|
1144
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1129
1145
|
};
|
|
1130
1146
|
}
|
|
1131
1147
|
return { set: i, update: o, subscribe: a };
|
|
1132
1148
|
}
|
|
1133
|
-
function ae(e, t,
|
|
1134
|
-
const
|
|
1149
|
+
function ae(e, t, r) {
|
|
1150
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1135
1151
|
if (!i.every(Boolean))
|
|
1136
1152
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1137
1153
|
const o = t.length < 2;
|
|
1138
|
-
return
|
|
1154
|
+
return jn(r, (a, s) => {
|
|
1139
1155
|
let h = !1;
|
|
1140
1156
|
const l = [];
|
|
1141
1157
|
let u = 0, f = C;
|
|
@@ -1143,11 +1159,11 @@ function ae(e, t, n) {
|
|
|
1143
1159
|
if (u)
|
|
1144
1160
|
return;
|
|
1145
1161
|
f();
|
|
1146
|
-
const
|
|
1147
|
-
o ? a(
|
|
1148
|
-
},
|
|
1149
|
-
(
|
|
1150
|
-
|
|
1162
|
+
const d = t(n ? l[0] : l, a, s);
|
|
1163
|
+
o ? a(d) : f = ut(d) ? d : C;
|
|
1164
|
+
}, m = i.map(
|
|
1165
|
+
(d, p) => qt(
|
|
1166
|
+
d,
|
|
1151
1167
|
(A) => {
|
|
1152
1168
|
l[p] = A, u &= ~(1 << p), h && c();
|
|
1153
1169
|
},
|
|
@@ -1157,136 +1173,134 @@ function ae(e, t, n) {
|
|
|
1157
1173
|
)
|
|
1158
1174
|
);
|
|
1159
1175
|
return h = !0, c(), function() {
|
|
1160
|
-
J(
|
|
1176
|
+
J(m), f(), h = !1;
|
|
1161
1177
|
};
|
|
1162
1178
|
});
|
|
1163
1179
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1180
|
+
function kn(e) {
|
|
1181
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1166
1182
|
}
|
|
1167
|
-
var
|
|
1168
|
-
return
|
|
1183
|
+
var Vn = function(t) {
|
|
1184
|
+
return Wn(t) && !Xn(t);
|
|
1169
1185
|
};
|
|
1170
|
-
function
|
|
1186
|
+
function Wn(e) {
|
|
1171
1187
|
return !!e && typeof e == "object";
|
|
1172
1188
|
}
|
|
1173
|
-
function
|
|
1189
|
+
function Xn(e) {
|
|
1174
1190
|
var t = Object.prototype.toString.call(e);
|
|
1175
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1191
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zn(e);
|
|
1176
1192
|
}
|
|
1177
|
-
var
|
|
1178
|
-
function
|
|
1179
|
-
return e.$$typeof ===
|
|
1193
|
+
var zn = typeof Symbol == "function" && Symbol.for, Jn = zn ? Symbol.for("react.element") : 60103;
|
|
1194
|
+
function Zn(e) {
|
|
1195
|
+
return e.$$typeof === Jn;
|
|
1180
1196
|
}
|
|
1181
|
-
function
|
|
1197
|
+
function Qn(e) {
|
|
1182
1198
|
return Array.isArray(e) ? [] : {};
|
|
1183
1199
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1200
|
+
function de(e, t) {
|
|
1201
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(Qn(e), e, t) : e;
|
|
1186
1202
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return e.concat(t).map(function(
|
|
1189
|
-
return
|
|
1203
|
+
function Yn(e, t, r) {
|
|
1204
|
+
return e.concat(t).map(function(n) {
|
|
1205
|
+
return de(n, r);
|
|
1190
1206
|
});
|
|
1191
1207
|
}
|
|
1192
|
-
function
|
|
1208
|
+
function qn(e, t) {
|
|
1193
1209
|
if (!t.customMerge)
|
|
1194
|
-
return
|
|
1195
|
-
var
|
|
1196
|
-
return typeof
|
|
1210
|
+
return re;
|
|
1211
|
+
var r = t.customMerge(e);
|
|
1212
|
+
return typeof r == "function" ? r : re;
|
|
1197
1213
|
}
|
|
1198
|
-
function
|
|
1214
|
+
function Kn(e) {
|
|
1199
1215
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1200
1216
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1201
1217
|
}) : [];
|
|
1202
1218
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return Object.keys(e).concat(
|
|
1219
|
+
function It(e) {
|
|
1220
|
+
return Object.keys(e).concat(Kn(e));
|
|
1205
1221
|
}
|
|
1206
|
-
function
|
|
1222
|
+
function hr(e, t) {
|
|
1207
1223
|
try {
|
|
1208
1224
|
return t in e;
|
|
1209
|
-
} catch (
|
|
1225
|
+
} catch (r) {
|
|
1210
1226
|
return !1;
|
|
1211
1227
|
}
|
|
1212
1228
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return
|
|
1229
|
+
function ei(e, t) {
|
|
1230
|
+
return hr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1215
1231
|
}
|
|
1216
|
-
function
|
|
1217
|
-
var
|
|
1218
|
-
return
|
|
1219
|
-
|
|
1220
|
-
}),
|
|
1221
|
-
|
|
1222
|
-
}),
|
|
1223
|
-
}
|
|
1224
|
-
function
|
|
1225
|
-
|
|
1226
|
-
var
|
|
1227
|
-
return o ?
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1232
|
+
function ti(e, t, r) {
|
|
1233
|
+
var n = {};
|
|
1234
|
+
return r.isMergeableObject(e) && It(e).forEach(function(i) {
|
|
1235
|
+
n[i] = de(e[i], r);
|
|
1236
|
+
}), It(t).forEach(function(i) {
|
|
1237
|
+
ei(e, i) || (hr(e, i) && r.isMergeableObject(t[i]) ? n[i] = qn(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
|
|
1238
|
+
}), n;
|
|
1239
|
+
}
|
|
1240
|
+
function re(e, t, r) {
|
|
1241
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yn, r.isMergeableObject = r.isMergeableObject || Vn, r.cloneUnlessOtherwiseSpecified = de;
|
|
1242
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1243
|
+
return o ? n ? r.arrayMerge(e, t, r) : ti(e, t, r) : de(t, r);
|
|
1244
|
+
}
|
|
1245
|
+
re.all = function(t, r) {
|
|
1230
1246
|
if (!Array.isArray(t))
|
|
1231
1247
|
throw new Error("first argument should be an array");
|
|
1232
|
-
return t.reduce(function(
|
|
1233
|
-
return
|
|
1248
|
+
return t.reduce(function(n, i) {
|
|
1249
|
+
return re(n, i, r);
|
|
1234
1250
|
}, {});
|
|
1235
1251
|
};
|
|
1236
|
-
var
|
|
1237
|
-
const
|
|
1238
|
-
function
|
|
1239
|
-
var
|
|
1252
|
+
var ri = re, ni = ri;
|
|
1253
|
+
const ii = /* @__PURE__ */ kn(ni);
|
|
1254
|
+
function $e(e, t) {
|
|
1255
|
+
var r = t && t.cache ? t.cache : hi, n = t && t.serializer ? t.serializer : li, i = t && t.strategy ? t.strategy : ai;
|
|
1240
1256
|
return i(e, {
|
|
1241
|
-
cache:
|
|
1242
|
-
serializer:
|
|
1257
|
+
cache: r,
|
|
1258
|
+
serializer: n
|
|
1243
1259
|
});
|
|
1244
1260
|
}
|
|
1245
|
-
function
|
|
1261
|
+
function oi(e) {
|
|
1246
1262
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1247
1263
|
}
|
|
1248
|
-
function
|
|
1249
|
-
var i =
|
|
1250
|
-
return typeof o == "undefined" && (o = e.call(this,
|
|
1264
|
+
function cr(e, t, r, n) {
|
|
1265
|
+
var i = oi(n) ? n : r(n), o = t.get(i);
|
|
1266
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1251
1267
|
}
|
|
1252
|
-
function
|
|
1253
|
-
var
|
|
1254
|
-
return typeof o == "undefined" && (o = e.apply(this,
|
|
1268
|
+
function fr(e, t, r) {
|
|
1269
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1270
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1255
1271
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return
|
|
1272
|
+
function lt(e, t, r, n, i) {
|
|
1273
|
+
return r.bind(t, e, n, i);
|
|
1258
1274
|
}
|
|
1259
|
-
function
|
|
1260
|
-
var
|
|
1261
|
-
return
|
|
1275
|
+
function ai(e, t) {
|
|
1276
|
+
var r = e.length === 1 ? cr : fr;
|
|
1277
|
+
return lt(e, this, r, t.cache.create(), t.serializer);
|
|
1262
1278
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return
|
|
1279
|
+
function si(e, t) {
|
|
1280
|
+
return lt(e, this, fr, t.cache.create(), t.serializer);
|
|
1265
1281
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return
|
|
1282
|
+
function ui(e, t) {
|
|
1283
|
+
return lt(e, this, cr, t.cache.create(), t.serializer);
|
|
1268
1284
|
}
|
|
1269
|
-
var
|
|
1285
|
+
var li = function() {
|
|
1270
1286
|
return JSON.stringify(arguments);
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
}()
|
|
1283
|
-
), ui = {
|
|
1287
|
+
};
|
|
1288
|
+
function ht() {
|
|
1289
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1290
|
+
}
|
|
1291
|
+
ht.prototype.get = function(e) {
|
|
1292
|
+
return this.cache[e];
|
|
1293
|
+
};
|
|
1294
|
+
ht.prototype.set = function(e, t) {
|
|
1295
|
+
this.cache[e] = t;
|
|
1296
|
+
};
|
|
1297
|
+
var hi = {
|
|
1284
1298
|
create: function() {
|
|
1285
|
-
return new
|
|
1299
|
+
return new ht();
|
|
1286
1300
|
}
|
|
1287
|
-
},
|
|
1288
|
-
variadic:
|
|
1289
|
-
monadic:
|
|
1301
|
+
}, je = {
|
|
1302
|
+
variadic: si,
|
|
1303
|
+
monadic: ui
|
|
1290
1304
|
}, y;
|
|
1291
1305
|
(function(e) {
|
|
1292
1306
|
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";
|
|
@@ -1295,54 +1309,54 @@ var w;
|
|
|
1295
1309
|
(function(e) {
|
|
1296
1310
|
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";
|
|
1297
1311
|
})(w || (w = {}));
|
|
1298
|
-
var
|
|
1312
|
+
var ne;
|
|
1299
1313
|
(function(e) {
|
|
1300
1314
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1301
|
-
})(
|
|
1302
|
-
function
|
|
1315
|
+
})(ne || (ne = {}));
|
|
1316
|
+
function Ot(e) {
|
|
1303
1317
|
return e.type === w.literal;
|
|
1304
1318
|
}
|
|
1305
|
-
function
|
|
1319
|
+
function ci(e) {
|
|
1306
1320
|
return e.type === w.argument;
|
|
1307
1321
|
}
|
|
1308
|
-
function
|
|
1322
|
+
function mr(e) {
|
|
1309
1323
|
return e.type === w.number;
|
|
1310
1324
|
}
|
|
1311
|
-
function
|
|
1325
|
+
function dr(e) {
|
|
1312
1326
|
return e.type === w.date;
|
|
1313
1327
|
}
|
|
1314
|
-
function
|
|
1328
|
+
function pr(e) {
|
|
1315
1329
|
return e.type === w.time;
|
|
1316
1330
|
}
|
|
1317
|
-
function
|
|
1331
|
+
function br(e) {
|
|
1318
1332
|
return e.type === w.select;
|
|
1319
1333
|
}
|
|
1320
|
-
function
|
|
1334
|
+
function gr(e) {
|
|
1321
1335
|
return e.type === w.plural;
|
|
1322
1336
|
}
|
|
1323
|
-
function
|
|
1337
|
+
function fi(e) {
|
|
1324
1338
|
return e.type === w.pound;
|
|
1325
1339
|
}
|
|
1326
|
-
function
|
|
1340
|
+
function yr(e) {
|
|
1327
1341
|
return e.type === w.tag;
|
|
1328
1342
|
}
|
|
1329
|
-
function
|
|
1330
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1343
|
+
function vr(e) {
|
|
1344
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
1331
1345
|
}
|
|
1332
|
-
function
|
|
1333
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1346
|
+
function et(e) {
|
|
1347
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
1334
1348
|
}
|
|
1335
|
-
var
|
|
1336
|
-
function
|
|
1349
|
+
var _r = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mi = /(?:[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;
|
|
1350
|
+
function di(e) {
|
|
1337
1351
|
var t = {};
|
|
1338
|
-
return e.replace(
|
|
1339
|
-
var
|
|
1340
|
-
switch (
|
|
1352
|
+
return e.replace(mi, function(r) {
|
|
1353
|
+
var n = r.length;
|
|
1354
|
+
switch (r[0]) {
|
|
1341
1355
|
case "G":
|
|
1342
|
-
t.era =
|
|
1356
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1343
1357
|
break;
|
|
1344
1358
|
case "y":
|
|
1345
|
-
t.year =
|
|
1359
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1346
1360
|
break;
|
|
1347
1361
|
case "Y":
|
|
1348
1362
|
case "u":
|
|
@@ -1354,30 +1368,30 @@ function fi(e) {
|
|
|
1354
1368
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1355
1369
|
case "M":
|
|
1356
1370
|
case "L":
|
|
1357
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1371
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1358
1372
|
break;
|
|
1359
1373
|
case "w":
|
|
1360
1374
|
case "W":
|
|
1361
1375
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1362
1376
|
case "d":
|
|
1363
|
-
t.day = ["numeric", "2-digit"][
|
|
1377
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
1364
1378
|
break;
|
|
1365
1379
|
case "D":
|
|
1366
1380
|
case "F":
|
|
1367
1381
|
case "g":
|
|
1368
1382
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1369
1383
|
case "E":
|
|
1370
|
-
t.weekday =
|
|
1384
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1371
1385
|
break;
|
|
1372
1386
|
case "e":
|
|
1373
|
-
if (
|
|
1387
|
+
if (n < 4)
|
|
1374
1388
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1375
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1389
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1376
1390
|
break;
|
|
1377
1391
|
case "c":
|
|
1378
|
-
if (
|
|
1392
|
+
if (n < 4)
|
|
1379
1393
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1380
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1394
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1381
1395
|
break;
|
|
1382
1396
|
case "a":
|
|
1383
1397
|
t.hour12 = !0;
|
|
@@ -1386,32 +1400,32 @@ function fi(e) {
|
|
|
1386
1400
|
case "B":
|
|
1387
1401
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1388
1402
|
case "h":
|
|
1389
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1403
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1390
1404
|
break;
|
|
1391
1405
|
case "H":
|
|
1392
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1406
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1393
1407
|
break;
|
|
1394
1408
|
case "K":
|
|
1395
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1409
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1396
1410
|
break;
|
|
1397
1411
|
case "k":
|
|
1398
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1412
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1399
1413
|
break;
|
|
1400
1414
|
case "j":
|
|
1401
1415
|
case "J":
|
|
1402
1416
|
case "C":
|
|
1403
1417
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1404
1418
|
case "m":
|
|
1405
|
-
t.minute = ["numeric", "2-digit"][
|
|
1419
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1406
1420
|
break;
|
|
1407
1421
|
case "s":
|
|
1408
|
-
t.second = ["numeric", "2-digit"][
|
|
1422
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
1409
1423
|
break;
|
|
1410
1424
|
case "S":
|
|
1411
1425
|
case "A":
|
|
1412
1426
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1413
1427
|
case "z":
|
|
1414
|
-
t.timeZoneName =
|
|
1428
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
1415
1429
|
break;
|
|
1416
1430
|
case "Z":
|
|
1417
1431
|
case "O":
|
|
@@ -1424,14 +1438,14 @@ function fi(e) {
|
|
|
1424
1438
|
return "";
|
|
1425
1439
|
}), t;
|
|
1426
1440
|
}
|
|
1427
|
-
var
|
|
1428
|
-
function
|
|
1441
|
+
var pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1442
|
+
function bi(e) {
|
|
1429
1443
|
if (e.length === 0)
|
|
1430
1444
|
throw new Error("Number skeleton cannot be empty");
|
|
1431
|
-
for (var t = e.split(
|
|
1445
|
+
for (var t = e.split(pi).filter(function(c) {
|
|
1432
1446
|
return c.length > 0;
|
|
1433
|
-
}),
|
|
1434
|
-
var o = i[
|
|
1447
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1448
|
+
var o = i[n], a = o.split("/");
|
|
1435
1449
|
if (a.length === 0)
|
|
1436
1450
|
throw new Error("Invalid number skeleton");
|
|
1437
1451
|
for (var s = a[0], h = a.slice(1), l = 0, u = h; l < u.length; l++) {
|
|
@@ -1439,21 +1453,21 @@ function mi(e) {
|
|
|
1439
1453
|
if (f.length === 0)
|
|
1440
1454
|
throw new Error("Invalid number skeleton");
|
|
1441
1455
|
}
|
|
1442
|
-
|
|
1456
|
+
r.push({ stem: s, options: h });
|
|
1443
1457
|
}
|
|
1444
|
-
return
|
|
1458
|
+
return r;
|
|
1445
1459
|
}
|
|
1446
|
-
function
|
|
1460
|
+
function gi(e) {
|
|
1447
1461
|
return e.replace(/^(.*?)-/, "");
|
|
1448
1462
|
}
|
|
1449
|
-
var
|
|
1450
|
-
function
|
|
1463
|
+
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xr = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Er = /^(0+)$/;
|
|
1464
|
+
function Lt(e) {
|
|
1451
1465
|
var t = {};
|
|
1452
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1453
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1466
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xr, function(r, n, i) {
|
|
1467
|
+
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)), "";
|
|
1454
1468
|
}), t;
|
|
1455
1469
|
}
|
|
1456
|
-
function
|
|
1470
|
+
function wr(e) {
|
|
1457
1471
|
switch (e) {
|
|
1458
1472
|
case "sign-auto":
|
|
1459
1473
|
return {
|
|
@@ -1493,27 +1507,27 @@ function vn(e) {
|
|
|
1493
1507
|
};
|
|
1494
1508
|
}
|
|
1495
1509
|
}
|
|
1496
|
-
function
|
|
1510
|
+
function vi(e) {
|
|
1497
1511
|
var t;
|
|
1498
1512
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1499
1513
|
notation: "engineering"
|
|
1500
1514
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1501
1515
|
notation: "scientific"
|
|
1502
1516
|
}, e = e.slice(1)), t) {
|
|
1503
|
-
var
|
|
1504
|
-
if (
|
|
1517
|
+
var r = e.slice(0, 2);
|
|
1518
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Er.test(e))
|
|
1505
1519
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1506
1520
|
t.minimumIntegerDigits = e.length;
|
|
1507
1521
|
}
|
|
1508
1522
|
return t;
|
|
1509
1523
|
}
|
|
1510
1524
|
function Nt(e) {
|
|
1511
|
-
var t = {},
|
|
1512
|
-
return
|
|
1525
|
+
var t = {}, r = wr(e);
|
|
1526
|
+
return r || t;
|
|
1513
1527
|
}
|
|
1514
|
-
function
|
|
1515
|
-
for (var t = {},
|
|
1516
|
-
var i = r
|
|
1528
|
+
function _i(e) {
|
|
1529
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1530
|
+
var i = n[r];
|
|
1517
1531
|
switch (i.stem) {
|
|
1518
1532
|
case "percent":
|
|
1519
1533
|
case "%":
|
|
@@ -1535,7 +1549,7 @@ function yi(e) {
|
|
|
1535
1549
|
continue;
|
|
1536
1550
|
case "measure-unit":
|
|
1537
1551
|
case "unit":
|
|
1538
|
-
t.style = "unit", t.unit =
|
|
1552
|
+
t.style = "unit", t.unit = gi(i.options[0]);
|
|
1539
1553
|
continue;
|
|
1540
1554
|
case "compact-short":
|
|
1541
1555
|
case "K":
|
|
@@ -1546,13 +1560,13 @@ function yi(e) {
|
|
|
1546
1560
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1547
1561
|
continue;
|
|
1548
1562
|
case "scientific":
|
|
1549
|
-
t =
|
|
1550
|
-
return
|
|
1563
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
1564
|
+
return _(_({}, h), Nt(l));
|
|
1551
1565
|
}, {}));
|
|
1552
1566
|
continue;
|
|
1553
1567
|
case "engineering":
|
|
1554
|
-
t =
|
|
1555
|
-
return
|
|
1568
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
1569
|
+
return _(_({}, h), Nt(l));
|
|
1556
1570
|
}, {}));
|
|
1557
1571
|
continue;
|
|
1558
1572
|
case "notation-simple":
|
|
@@ -1597,45 +1611,45 @@ function yi(e) {
|
|
|
1597
1611
|
case "integer-width":
|
|
1598
1612
|
if (i.options.length > 1)
|
|
1599
1613
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1600
|
-
i.options[0].replace(
|
|
1614
|
+
i.options[0].replace(yi, function(h, l, u, f, c, m) {
|
|
1601
1615
|
if (l)
|
|
1602
1616
|
t.minimumIntegerDigits = u.length;
|
|
1603
1617
|
else {
|
|
1604
1618
|
if (f && c)
|
|
1605
1619
|
throw new Error("We currently do not support maximum integer digits");
|
|
1606
|
-
if (
|
|
1620
|
+
if (m)
|
|
1607
1621
|
throw new Error("We currently do not support exact integer digits");
|
|
1608
1622
|
}
|
|
1609
1623
|
return "";
|
|
1610
1624
|
});
|
|
1611
1625
|
continue;
|
|
1612
1626
|
}
|
|
1613
|
-
if (
|
|
1627
|
+
if (Er.test(i.stem)) {
|
|
1614
1628
|
t.minimumIntegerDigits = i.stem.length;
|
|
1615
1629
|
continue;
|
|
1616
1630
|
}
|
|
1617
|
-
if (
|
|
1631
|
+
if (Mt.test(i.stem)) {
|
|
1618
1632
|
if (i.options.length > 1)
|
|
1619
1633
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1620
|
-
i.stem.replace(
|
|
1621
|
-
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1634
|
+
i.stem.replace(Mt, function(h, l, u, f, c, m) {
|
|
1635
|
+
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1622
1636
|
});
|
|
1623
1637
|
var o = i.options[0];
|
|
1624
|
-
o === "w" ? t =
|
|
1638
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Lt(o)));
|
|
1625
1639
|
continue;
|
|
1626
1640
|
}
|
|
1627
|
-
if (
|
|
1628
|
-
t =
|
|
1641
|
+
if (xr.test(i.stem)) {
|
|
1642
|
+
t = _(_({}, t), Lt(i.stem));
|
|
1629
1643
|
continue;
|
|
1630
1644
|
}
|
|
1631
|
-
var a =
|
|
1632
|
-
a && (t =
|
|
1633
|
-
var s =
|
|
1634
|
-
s && (t =
|
|
1645
|
+
var a = wr(i.stem);
|
|
1646
|
+
a && (t = _(_({}, t), a));
|
|
1647
|
+
var s = vi(i.stem);
|
|
1648
|
+
s && (t = _(_({}, t), s));
|
|
1635
1649
|
}
|
|
1636
1650
|
return t;
|
|
1637
1651
|
}
|
|
1638
|
-
var
|
|
1652
|
+
var xe = {
|
|
1639
1653
|
"001": [
|
|
1640
1654
|
"H",
|
|
1641
1655
|
"h"
|
|
@@ -3050,23 +3064,23 @@ var ve = {
|
|
|
3050
3064
|
"h"
|
|
3051
3065
|
]
|
|
3052
3066
|
};
|
|
3053
|
-
function
|
|
3054
|
-
for (var
|
|
3055
|
-
var i = e.charAt(
|
|
3067
|
+
function xi(e, t) {
|
|
3068
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
3069
|
+
var i = e.charAt(n);
|
|
3056
3070
|
if (i === "j") {
|
|
3057
|
-
for (var o = 0;
|
|
3058
|
-
o++,
|
|
3059
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
|
3071
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3072
|
+
o++, n++;
|
|
3073
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Ei(t);
|
|
3060
3074
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
3061
|
-
|
|
3075
|
+
r += h;
|
|
3062
3076
|
for (; a-- > 0; )
|
|
3063
|
-
|
|
3077
|
+
r = l + r;
|
|
3064
3078
|
} else
|
|
3065
|
-
i === "J" ?
|
|
3079
|
+
i === "J" ? r += "H" : r += i;
|
|
3066
3080
|
}
|
|
3067
|
-
return
|
|
3081
|
+
return r;
|
|
3068
3082
|
}
|
|
3069
|
-
function
|
|
3083
|
+
function Ei(e) {
|
|
3070
3084
|
var t = e.hourCycle;
|
|
3071
3085
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3072
3086
|
e.hourCycles && // @ts-ignore
|
|
@@ -3083,73 +3097,73 @@ function xi(e) {
|
|
|
3083
3097
|
default:
|
|
3084
3098
|
throw new Error("Invalid hourCycle");
|
|
3085
3099
|
}
|
|
3086
|
-
var
|
|
3087
|
-
|
|
3088
|
-
var i =
|
|
3100
|
+
var r = e.language, n;
|
|
3101
|
+
r !== "root" && (n = e.maximize().region);
|
|
3102
|
+
var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
|
|
3089
3103
|
return i[0];
|
|
3090
3104
|
}
|
|
3091
|
-
var
|
|
3092
|
-
function
|
|
3105
|
+
var ke, wi = new RegExp("^".concat(_r.source, "*")), Si = new RegExp("".concat(_r.source, "*$"));
|
|
3106
|
+
function v(e, t) {
|
|
3093
3107
|
return { start: e, end: t };
|
|
3094
3108
|
}
|
|
3095
|
-
var
|
|
3109
|
+
var Ti = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hi = !!String.fromCodePoint, Bi = !!Object.fromEntries, Ai = !!String.prototype.codePointAt, Pi = !!String.prototype.trimStart, Ri = !!String.prototype.trimEnd, Ii = !!Number.isSafeInteger, Oi = Ii ? Number.isSafeInteger : function(e) {
|
|
3096
3110
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3097
|
-
},
|
|
3111
|
+
}, tt = !0;
|
|
3098
3112
|
try {
|
|
3099
|
-
var
|
|
3100
|
-
|
|
3113
|
+
var Mi = Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3114
|
+
tt = ((ke = Mi.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
|
|
3101
3115
|
} catch (e) {
|
|
3102
|
-
|
|
3116
|
+
tt = !1;
|
|
3103
3117
|
}
|
|
3104
|
-
var
|
|
3118
|
+
var Ct = Ti ? (
|
|
3105
3119
|
// Native
|
|
3106
|
-
function(t,
|
|
3107
|
-
return t.startsWith(
|
|
3120
|
+
function(t, r, n) {
|
|
3121
|
+
return t.startsWith(r, n);
|
|
3108
3122
|
}
|
|
3109
3123
|
) : (
|
|
3110
3124
|
// For IE11
|
|
3111
|
-
function(t,
|
|
3112
|
-
return t.slice(
|
|
3125
|
+
function(t, r, n) {
|
|
3126
|
+
return t.slice(n, n + r.length) === r;
|
|
3113
3127
|
}
|
|
3114
|
-
),
|
|
3128
|
+
), rt = Hi ? String.fromCodePoint : (
|
|
3115
3129
|
// IE11
|
|
3116
3130
|
function() {
|
|
3117
|
-
for (var t = [],
|
|
3118
|
-
t[
|
|
3119
|
-
for (var
|
|
3131
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3132
|
+
t[r] = arguments[r];
|
|
3133
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3120
3134
|
if (a = t[o++], a > 1114111)
|
|
3121
3135
|
throw RangeError(a + " is not a valid code point");
|
|
3122
|
-
|
|
3136
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3123
3137
|
}
|
|
3124
|
-
return
|
|
3138
|
+
return n;
|
|
3125
3139
|
}
|
|
3126
|
-
),
|
|
3140
|
+
), Gt = (
|
|
3127
3141
|
// native
|
|
3128
|
-
|
|
3142
|
+
Bi ? Object.fromEntries : (
|
|
3129
3143
|
// Ponyfill
|
|
3130
3144
|
function(t) {
|
|
3131
|
-
for (var
|
|
3132
|
-
var o = i[
|
|
3133
|
-
|
|
3145
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3146
|
+
var o = i[n], a = o[0], s = o[1];
|
|
3147
|
+
r[a] = s;
|
|
3134
3148
|
}
|
|
3135
|
-
return
|
|
3149
|
+
return r;
|
|
3136
3150
|
}
|
|
3137
3151
|
)
|
|
3138
|
-
),
|
|
3152
|
+
), Sr = Ai ? (
|
|
3139
3153
|
// Native
|
|
3140
|
-
function(t,
|
|
3141
|
-
return t.codePointAt(
|
|
3154
|
+
function(t, r) {
|
|
3155
|
+
return t.codePointAt(r);
|
|
3142
3156
|
}
|
|
3143
3157
|
) : (
|
|
3144
3158
|
// IE 11
|
|
3145
|
-
function(t,
|
|
3146
|
-
var
|
|
3147
|
-
if (!(
|
|
3148
|
-
var i = t.charCodeAt(
|
|
3149
|
-
return i < 55296 || i > 56319 ||
|
|
3159
|
+
function(t, r) {
|
|
3160
|
+
var n = t.length;
|
|
3161
|
+
if (!(r < 0 || r >= n)) {
|
|
3162
|
+
var i = t.charCodeAt(r), o;
|
|
3163
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3150
3164
|
}
|
|
3151
3165
|
}
|
|
3152
|
-
),
|
|
3166
|
+
), Li = Pi ? (
|
|
3153
3167
|
// Native
|
|
3154
3168
|
function(t) {
|
|
3155
3169
|
return t.trimStart();
|
|
@@ -3157,9 +3171,9 @@ var Mt = wi ? (
|
|
|
3157
3171
|
) : (
|
|
3158
3172
|
// Ponyfill
|
|
3159
3173
|
function(t) {
|
|
3160
|
-
return t.replace(
|
|
3174
|
+
return t.replace(wi, "");
|
|
3161
3175
|
}
|
|
3162
|
-
), Ni =
|
|
3176
|
+
), Ni = Ri ? (
|
|
3163
3177
|
// Native
|
|
3164
3178
|
function(t) {
|
|
3165
3179
|
return t.trimEnd();
|
|
@@ -3167,69 +3181,69 @@ var Mt = wi ? (
|
|
|
3167
3181
|
) : (
|
|
3168
3182
|
// Ponyfill
|
|
3169
3183
|
function(t) {
|
|
3170
|
-
return t.replace(
|
|
3184
|
+
return t.replace(Si, "");
|
|
3171
3185
|
}
|
|
3172
3186
|
);
|
|
3173
|
-
function
|
|
3187
|
+
function Tr(e, t) {
|
|
3174
3188
|
return new RegExp(e, t);
|
|
3175
3189
|
}
|
|
3176
3190
|
var nt;
|
|
3177
|
-
if (
|
|
3178
|
-
var
|
|
3179
|
-
nt = function(t,
|
|
3180
|
-
var
|
|
3181
|
-
|
|
3182
|
-
var i =
|
|
3183
|
-
return (
|
|
3191
|
+
if (tt) {
|
|
3192
|
+
var Ut = Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3193
|
+
nt = function(t, r) {
|
|
3194
|
+
var n;
|
|
3195
|
+
Ut.lastIndex = r;
|
|
3196
|
+
var i = Ut.exec(t);
|
|
3197
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3184
3198
|
};
|
|
3185
3199
|
} else
|
|
3186
|
-
nt = function(t,
|
|
3187
|
-
for (var
|
|
3188
|
-
var i =
|
|
3189
|
-
if (i === void 0 ||
|
|
3200
|
+
nt = function(t, r) {
|
|
3201
|
+
for (var n = []; ; ) {
|
|
3202
|
+
var i = Sr(t, r);
|
|
3203
|
+
if (i === void 0 || Hr(i) || Fi(i))
|
|
3190
3204
|
break;
|
|
3191
|
-
|
|
3205
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3192
3206
|
}
|
|
3193
|
-
return
|
|
3207
|
+
return rt.apply(void 0, n);
|
|
3194
3208
|
};
|
|
3195
|
-
var
|
|
3209
|
+
var Ci = (
|
|
3196
3210
|
/** @class */
|
|
3197
3211
|
function() {
|
|
3198
|
-
function e(t,
|
|
3199
|
-
|
|
3212
|
+
function e(t, r) {
|
|
3213
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
3200
3214
|
}
|
|
3201
3215
|
return e.prototype.parse = function() {
|
|
3202
3216
|
if (this.offset() !== 0)
|
|
3203
3217
|
throw Error("parser can only be used once");
|
|
3204
3218
|
return this.parseMessage(0, "", !1);
|
|
3205
|
-
}, e.prototype.parseMessage = function(t,
|
|
3219
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3206
3220
|
for (var i = []; !this.isEOF(); ) {
|
|
3207
3221
|
var o = this.char();
|
|
3208
3222
|
if (o === 123) {
|
|
3209
|
-
var a = this.parseArgument(t,
|
|
3223
|
+
var a = this.parseArgument(t, n);
|
|
3210
3224
|
if (a.err)
|
|
3211
3225
|
return a;
|
|
3212
3226
|
i.push(a.val);
|
|
3213
3227
|
} else {
|
|
3214
3228
|
if (o === 125 && t > 0)
|
|
3215
3229
|
break;
|
|
3216
|
-
if (o === 35 && (
|
|
3230
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3217
3231
|
var s = this.clonePosition();
|
|
3218
3232
|
this.bump(), i.push({
|
|
3219
3233
|
type: w.pound,
|
|
3220
|
-
location:
|
|
3234
|
+
location: v(s, this.clonePosition())
|
|
3221
3235
|
});
|
|
3222
3236
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3223
|
-
if (
|
|
3237
|
+
if (n)
|
|
3224
3238
|
break;
|
|
3225
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3226
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3227
|
-
var a = this.parseTag(t,
|
|
3239
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3240
|
+
} else if (o === 60 && !this.ignoreTag && it(this.peek() || 0)) {
|
|
3241
|
+
var a = this.parseTag(t, r);
|
|
3228
3242
|
if (a.err)
|
|
3229
3243
|
return a;
|
|
3230
3244
|
i.push(a.val);
|
|
3231
3245
|
} else {
|
|
3232
|
-
var a = this.parseLiteral(t,
|
|
3246
|
+
var a = this.parseLiteral(t, r);
|
|
3233
3247
|
if (a.err)
|
|
3234
3248
|
return a;
|
|
3235
3249
|
i.push(a.val);
|
|
@@ -3237,8 +3251,8 @@ var Mi = (
|
|
|
3237
3251
|
}
|
|
3238
3252
|
}
|
|
3239
3253
|
return { val: i, err: null };
|
|
3240
|
-
}, e.prototype.parseTag = function(t,
|
|
3241
|
-
var
|
|
3254
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
3255
|
+
var n = this.clonePosition();
|
|
3242
3256
|
this.bump();
|
|
3243
3257
|
var i = this.parseTagName();
|
|
3244
3258
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -3246,45 +3260,45 @@ var Mi = (
|
|
|
3246
3260
|
val: {
|
|
3247
3261
|
type: w.literal,
|
|
3248
3262
|
value: "<".concat(i, "/>"),
|
|
3249
|
-
location:
|
|
3263
|
+
location: v(n, this.clonePosition())
|
|
3250
3264
|
},
|
|
3251
3265
|
err: null
|
|
3252
3266
|
};
|
|
3253
3267
|
if (this.bumpIf(">")) {
|
|
3254
|
-
var o = this.parseMessage(t + 1,
|
|
3268
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3255
3269
|
if (o.err)
|
|
3256
3270
|
return o;
|
|
3257
3271
|
var a = o.val, s = this.clonePosition();
|
|
3258
3272
|
if (this.bumpIf("</")) {
|
|
3259
|
-
if (this.isEOF() || !
|
|
3260
|
-
return this.error(y.INVALID_TAG,
|
|
3273
|
+
if (this.isEOF() || !it(this.char()))
|
|
3274
|
+
return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
|
|
3261
3275
|
var h = this.clonePosition(), l = this.parseTagName();
|
|
3262
|
-
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3276
|
+
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3263
3277
|
val: {
|
|
3264
3278
|
type: w.tag,
|
|
3265
3279
|
value: i,
|
|
3266
3280
|
children: a,
|
|
3267
|
-
location:
|
|
3281
|
+
location: v(n, this.clonePosition())
|
|
3268
3282
|
},
|
|
3269
3283
|
err: null
|
|
3270
|
-
} : this.error(y.INVALID_TAG,
|
|
3284
|
+
} : this.error(y.INVALID_TAG, v(s, this.clonePosition())));
|
|
3271
3285
|
} else
|
|
3272
|
-
return this.error(y.UNCLOSED_TAG,
|
|
3286
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3273
3287
|
} else
|
|
3274
|
-
return this.error(y.INVALID_TAG,
|
|
3288
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3275
3289
|
}, e.prototype.parseTagName = function() {
|
|
3276
3290
|
var t = this.offset();
|
|
3277
|
-
for (this.bump(); !this.isEOF() &&
|
|
3291
|
+
for (this.bump(); !this.isEOF() && Ui(this.char()); )
|
|
3278
3292
|
this.bump();
|
|
3279
3293
|
return this.message.slice(t, this.offset());
|
|
3280
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3281
|
-
for (var
|
|
3282
|
-
var o = this.tryParseQuote(
|
|
3294
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
3295
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3296
|
+
var o = this.tryParseQuote(r);
|
|
3283
3297
|
if (o) {
|
|
3284
3298
|
i += o;
|
|
3285
3299
|
continue;
|
|
3286
3300
|
}
|
|
3287
|
-
var a = this.tryParseUnquoted(t,
|
|
3301
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3288
3302
|
if (a) {
|
|
3289
3303
|
i += a;
|
|
3290
3304
|
continue;
|
|
@@ -3296,14 +3310,14 @@ var Mi = (
|
|
|
3296
3310
|
}
|
|
3297
3311
|
break;
|
|
3298
3312
|
}
|
|
3299
|
-
var h =
|
|
3313
|
+
var h = v(n, this.clonePosition());
|
|
3300
3314
|
return {
|
|
3301
3315
|
val: { type: w.literal, value: i, location: h },
|
|
3302
3316
|
err: null
|
|
3303
3317
|
};
|
|
3304
3318
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3305
3319
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3306
|
-
!
|
|
3320
|
+
!Gi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3307
3321
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3308
3322
|
if (this.isEOF() || this.char() !== 39)
|
|
3309
3323
|
return null;
|
|
@@ -3323,37 +3337,37 @@ var Mi = (
|
|
|
3323
3337
|
return null;
|
|
3324
3338
|
}
|
|
3325
3339
|
this.bump();
|
|
3326
|
-
var
|
|
3340
|
+
var r = [this.char()];
|
|
3327
3341
|
for (this.bump(); !this.isEOF(); ) {
|
|
3328
|
-
var
|
|
3329
|
-
if (
|
|
3342
|
+
var n = this.char();
|
|
3343
|
+
if (n === 39)
|
|
3330
3344
|
if (this.peek() === 39)
|
|
3331
|
-
|
|
3345
|
+
r.push(39), this.bump();
|
|
3332
3346
|
else {
|
|
3333
3347
|
this.bump();
|
|
3334
3348
|
break;
|
|
3335
3349
|
}
|
|
3336
3350
|
else
|
|
3337
|
-
|
|
3351
|
+
r.push(n);
|
|
3338
3352
|
this.bump();
|
|
3339
3353
|
}
|
|
3340
|
-
return
|
|
3341
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3354
|
+
return rt.apply(void 0, r);
|
|
3355
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3342
3356
|
if (this.isEOF())
|
|
3343
3357
|
return null;
|
|
3344
|
-
var
|
|
3345
|
-
return
|
|
3346
|
-
}, e.prototype.parseArgument = function(t,
|
|
3347
|
-
var
|
|
3358
|
+
var n = this.char();
|
|
3359
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), rt(n));
|
|
3360
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
3361
|
+
var n = this.clonePosition();
|
|
3348
3362
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3349
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3363
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3350
3364
|
if (this.char() === 125)
|
|
3351
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
|
3365
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3352
3366
|
var i = this.parseIdentifierIfPossible().value;
|
|
3353
3367
|
if (!i)
|
|
3354
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3368
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3355
3369
|
if (this.bumpSpace(), this.isEOF())
|
|
3356
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3370
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3357
3371
|
switch (this.char()) {
|
|
3358
3372
|
case 125:
|
|
3359
3373
|
return this.bump(), {
|
|
@@ -3361,25 +3375,25 @@ var Mi = (
|
|
|
3361
3375
|
type: w.argument,
|
|
3362
3376
|
// value does not include the opening and closing braces.
|
|
3363
3377
|
value: i,
|
|
3364
|
-
location:
|
|
3378
|
+
location: v(n, this.clonePosition())
|
|
3365
3379
|
},
|
|
3366
3380
|
err: null
|
|
3367
3381
|
};
|
|
3368
3382
|
case 44:
|
|
3369
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3383
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3370
3384
|
default:
|
|
3371
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3385
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3372
3386
|
}
|
|
3373
3387
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3374
|
-
var t = this.clonePosition(),
|
|
3388
|
+
var t = this.clonePosition(), r = this.offset(), n = nt(this.message, r), i = r + n.length;
|
|
3375
3389
|
this.bumpTo(i);
|
|
3376
|
-
var o = this.clonePosition(), a =
|
|
3377
|
-
return { value:
|
|
3378
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3390
|
+
var o = this.clonePosition(), a = v(t, o);
|
|
3391
|
+
return { value: n, location: a };
|
|
3392
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3379
3393
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3380
3394
|
switch (s) {
|
|
3381
3395
|
case "":
|
|
3382
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
|
3396
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(a, h));
|
|
3383
3397
|
case "number":
|
|
3384
3398
|
case "date":
|
|
3385
3399
|
case "time": {
|
|
@@ -3392,35 +3406,35 @@ var Mi = (
|
|
|
3392
3406
|
return f;
|
|
3393
3407
|
var c = Ni(f.val);
|
|
3394
3408
|
if (c.length === 0)
|
|
3395
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
|
3396
|
-
var
|
|
3397
|
-
l = { style: c, styleLocation:
|
|
3409
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3410
|
+
var m = v(u, this.clonePosition());
|
|
3411
|
+
l = { style: c, styleLocation: m };
|
|
3398
3412
|
}
|
|
3399
|
-
var
|
|
3400
|
-
if (
|
|
3401
|
-
return
|
|
3402
|
-
var p =
|
|
3403
|
-
if (l &&
|
|
3404
|
-
var A =
|
|
3413
|
+
var d = this.tryParseArgumentClose(i);
|
|
3414
|
+
if (d.err)
|
|
3415
|
+
return d;
|
|
3416
|
+
var p = v(i, this.clonePosition());
|
|
3417
|
+
if (l && Ct(l == null ? void 0 : l.style, "::", 0)) {
|
|
3418
|
+
var A = Li(l.style.slice(2));
|
|
3405
3419
|
if (s === "number") {
|
|
3406
3420
|
var f = this.parseNumberSkeletonFromString(A, l.styleLocation);
|
|
3407
3421
|
return f.err ? f : {
|
|
3408
|
-
val: { type: w.number, value:
|
|
3422
|
+
val: { type: w.number, value: n, location: p, style: f.val },
|
|
3409
3423
|
err: null
|
|
3410
3424
|
};
|
|
3411
3425
|
} else {
|
|
3412
3426
|
if (A.length === 0)
|
|
3413
3427
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
|
|
3414
3428
|
var H = A;
|
|
3415
|
-
this.locale && (H =
|
|
3429
|
+
this.locale && (H = xi(A, this.locale));
|
|
3416
3430
|
var c = {
|
|
3417
|
-
type:
|
|
3431
|
+
type: ne.dateTime,
|
|
3418
3432
|
pattern: H,
|
|
3419
3433
|
location: l.styleLocation,
|
|
3420
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3434
|
+
parsedOptions: this.shouldParseSkeletons ? di(H) : {}
|
|
3421
3435
|
}, T = s === "date" ? w.date : w.time;
|
|
3422
3436
|
return {
|
|
3423
|
-
val: { type: T, value:
|
|
3437
|
+
val: { type: T, value: n, location: p, style: c },
|
|
3424
3438
|
err: null
|
|
3425
3439
|
};
|
|
3426
3440
|
}
|
|
@@ -3428,7 +3442,7 @@ var Mi = (
|
|
|
3428
3442
|
return {
|
|
3429
3443
|
val: {
|
|
3430
3444
|
type: s === "number" ? w.number : s === "date" ? w.date : w.time,
|
|
3431
|
-
value:
|
|
3445
|
+
value: n,
|
|
3432
3446
|
location: p,
|
|
3433
3447
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
3434
3448
|
},
|
|
@@ -3440,39 +3454,39 @@ var Mi = (
|
|
|
3440
3454
|
case "select": {
|
|
3441
3455
|
var B = this.clonePosition();
|
|
3442
3456
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3443
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3457
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(B, _({}, B)));
|
|
3444
3458
|
this.bumpSpace();
|
|
3445
|
-
var
|
|
3446
|
-
if (s !== "select" &&
|
|
3459
|
+
var L = this.parseIdentifierIfPossible(), N = 0;
|
|
3460
|
+
if (s !== "select" && L.value === "offset") {
|
|
3447
3461
|
if (!this.bumpIf(":"))
|
|
3448
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3462
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3449
3463
|
this.bumpSpace();
|
|
3450
3464
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3451
3465
|
if (f.err)
|
|
3452
3466
|
return f;
|
|
3453
|
-
this.bumpSpace(),
|
|
3467
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), N = f.val;
|
|
3454
3468
|
}
|
|
3455
|
-
var G = this.tryParsePluralOrSelectOptions(t, s,
|
|
3469
|
+
var G = this.tryParsePluralOrSelectOptions(t, s, r, L);
|
|
3456
3470
|
if (G.err)
|
|
3457
3471
|
return G;
|
|
3458
|
-
var
|
|
3459
|
-
if (
|
|
3460
|
-
return
|
|
3461
|
-
var be =
|
|
3472
|
+
var d = this.tryParseArgumentClose(i);
|
|
3473
|
+
if (d.err)
|
|
3474
|
+
return d;
|
|
3475
|
+
var be = v(i, this.clonePosition());
|
|
3462
3476
|
return s === "select" ? {
|
|
3463
3477
|
val: {
|
|
3464
3478
|
type: w.select,
|
|
3465
|
-
value:
|
|
3466
|
-
options:
|
|
3479
|
+
value: n,
|
|
3480
|
+
options: Gt(G.val),
|
|
3467
3481
|
location: be
|
|
3468
3482
|
},
|
|
3469
3483
|
err: null
|
|
3470
3484
|
} : {
|
|
3471
3485
|
val: {
|
|
3472
3486
|
type: w.plural,
|
|
3473
|
-
value:
|
|
3474
|
-
options:
|
|
3475
|
-
offset:
|
|
3487
|
+
value: n,
|
|
3488
|
+
options: Gt(G.val),
|
|
3489
|
+
offset: N,
|
|
3476
3490
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3477
3491
|
location: be
|
|
3478
3492
|
},
|
|
@@ -3480,19 +3494,19 @@ var Mi = (
|
|
|
3480
3494
|
};
|
|
3481
3495
|
}
|
|
3482
3496
|
default:
|
|
3483
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
|
3497
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(a, h));
|
|
3484
3498
|
}
|
|
3485
3499
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3486
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3500
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3487
3501
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3488
|
-
for (var t = 0,
|
|
3489
|
-
var
|
|
3490
|
-
switch (
|
|
3502
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3503
|
+
var n = this.char();
|
|
3504
|
+
switch (n) {
|
|
3491
3505
|
case 39: {
|
|
3492
3506
|
this.bump();
|
|
3493
3507
|
var i = this.clonePosition();
|
|
3494
3508
|
if (!this.bumpUntil("'"))
|
|
3495
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3509
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3496
3510
|
this.bump();
|
|
3497
3511
|
break;
|
|
3498
3512
|
}
|
|
@@ -3505,7 +3519,7 @@ var Mi = (
|
|
|
3505
3519
|
t -= 1;
|
|
3506
3520
|
else
|
|
3507
3521
|
return {
|
|
3508
|
-
val: this.message.slice(
|
|
3522
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3509
3523
|
err: null
|
|
3510
3524
|
};
|
|
3511
3525
|
break;
|
|
@@ -3516,61 +3530,61 @@ var Mi = (
|
|
|
3516
3530
|
}
|
|
3517
3531
|
}
|
|
3518
3532
|
return {
|
|
3519
|
-
val: this.message.slice(
|
|
3533
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3520
3534
|
err: null
|
|
3521
3535
|
};
|
|
3522
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3523
|
-
var
|
|
3536
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3537
|
+
var n = [];
|
|
3524
3538
|
try {
|
|
3525
|
-
|
|
3539
|
+
n = bi(t);
|
|
3526
3540
|
} catch (i) {
|
|
3527
|
-
return this.error(y.INVALID_NUMBER_SKELETON,
|
|
3541
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3528
3542
|
}
|
|
3529
3543
|
return {
|
|
3530
3544
|
val: {
|
|
3531
|
-
type:
|
|
3532
|
-
tokens:
|
|
3533
|
-
location:
|
|
3534
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3545
|
+
type: ne.number,
|
|
3546
|
+
tokens: n,
|
|
3547
|
+
location: r,
|
|
3548
|
+
parsedOptions: this.shouldParseSkeletons ? _i(n) : {}
|
|
3535
3549
|
},
|
|
3536
3550
|
err: null
|
|
3537
3551
|
};
|
|
3538
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3552
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3539
3553
|
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
|
3540
3554
|
if (l.length === 0) {
|
|
3541
3555
|
var f = this.clonePosition();
|
|
3542
|
-
if (
|
|
3556
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3543
3557
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3544
3558
|
if (c.err)
|
|
3545
3559
|
return c;
|
|
3546
|
-
u =
|
|
3560
|
+
u = v(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3547
3561
|
} else
|
|
3548
3562
|
break;
|
|
3549
3563
|
}
|
|
3550
3564
|
if (h.has(l))
|
|
3551
|
-
return this.error(
|
|
3565
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3552
3566
|
l === "other" && (a = !0), this.bumpSpace();
|
|
3553
|
-
var
|
|
3567
|
+
var m = this.clonePosition();
|
|
3554
3568
|
if (!this.bumpIf("{"))
|
|
3555
|
-
return this.error(
|
|
3556
|
-
var
|
|
3557
|
-
if (
|
|
3558
|
-
return
|
|
3559
|
-
var p = this.tryParseArgumentClose(
|
|
3569
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3570
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3571
|
+
if (d.err)
|
|
3572
|
+
return d;
|
|
3573
|
+
var p = this.tryParseArgumentClose(m);
|
|
3560
3574
|
if (p.err)
|
|
3561
3575
|
return p;
|
|
3562
3576
|
s.push([
|
|
3563
3577
|
l,
|
|
3564
3578
|
{
|
|
3565
|
-
value:
|
|
3566
|
-
location:
|
|
3579
|
+
value: d.val,
|
|
3580
|
+
location: v(m, this.clonePosition())
|
|
3567
3581
|
}
|
|
3568
3582
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
3569
3583
|
}
|
|
3570
|
-
return s.length === 0 ? this.error(
|
|
3571
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3572
|
-
var
|
|
3573
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3584
|
+
return s.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3585
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3586
|
+
var n = 1, i = this.clonePosition();
|
|
3587
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3574
3588
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3575
3589
|
var s = this.char();
|
|
3576
3590
|
if (s >= 48 && s <= 57)
|
|
@@ -3578,8 +3592,8 @@ var Mi = (
|
|
|
3578
3592
|
else
|
|
3579
3593
|
break;
|
|
3580
3594
|
}
|
|
3581
|
-
var h =
|
|
3582
|
-
return o ? (a *=
|
|
3595
|
+
var h = v(i, this.clonePosition());
|
|
3596
|
+
return o ? (a *= n, Oi(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3583
3597
|
}, e.prototype.offset = function() {
|
|
3584
3598
|
return this.position.offset;
|
|
3585
3599
|
}, e.prototype.isEOF = function() {
|
|
@@ -3594,17 +3608,17 @@ var Mi = (
|
|
|
3594
3608
|
var t = this.position.offset;
|
|
3595
3609
|
if (t >= this.message.length)
|
|
3596
3610
|
throw Error("out of bound");
|
|
3597
|
-
var
|
|
3598
|
-
if (
|
|
3611
|
+
var r = Sr(this.message, t);
|
|
3612
|
+
if (r === void 0)
|
|
3599
3613
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3600
|
-
return
|
|
3601
|
-
}, e.prototype.error = function(t,
|
|
3614
|
+
return r;
|
|
3615
|
+
}, e.prototype.error = function(t, r) {
|
|
3602
3616
|
return {
|
|
3603
3617
|
val: null,
|
|
3604
3618
|
err: {
|
|
3605
3619
|
kind: t,
|
|
3606
3620
|
message: this.message,
|
|
3607
|
-
location:
|
|
3621
|
+
location: r
|
|
3608
3622
|
}
|
|
3609
3623
|
};
|
|
3610
3624
|
}, e.prototype.bump = function() {
|
|
@@ -3613,129 +3627,129 @@ var Mi = (
|
|
|
3613
3627
|
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);
|
|
3614
3628
|
}
|
|
3615
3629
|
}, e.prototype.bumpIf = function(t) {
|
|
3616
|
-
if (
|
|
3617
|
-
for (var
|
|
3630
|
+
if (Ct(this.message, t, this.offset())) {
|
|
3631
|
+
for (var r = 0; r < t.length; r++)
|
|
3618
3632
|
this.bump();
|
|
3619
3633
|
return !0;
|
|
3620
3634
|
}
|
|
3621
3635
|
return !1;
|
|
3622
3636
|
}, e.prototype.bumpUntil = function(t) {
|
|
3623
|
-
var
|
|
3624
|
-
return
|
|
3637
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3638
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3625
3639
|
}, e.prototype.bumpTo = function(t) {
|
|
3626
3640
|
if (this.offset() > t)
|
|
3627
3641
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3628
3642
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3629
|
-
var
|
|
3630
|
-
if (
|
|
3643
|
+
var r = this.offset();
|
|
3644
|
+
if (r === t)
|
|
3631
3645
|
break;
|
|
3632
|
-
if (
|
|
3646
|
+
if (r > t)
|
|
3633
3647
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3634
3648
|
if (this.bump(), this.isEOF())
|
|
3635
3649
|
break;
|
|
3636
3650
|
}
|
|
3637
3651
|
}, e.prototype.bumpSpace = function() {
|
|
3638
|
-
for (; !this.isEOF() &&
|
|
3652
|
+
for (; !this.isEOF() && Hr(this.char()); )
|
|
3639
3653
|
this.bump();
|
|
3640
3654
|
}, e.prototype.peek = function() {
|
|
3641
3655
|
if (this.isEOF())
|
|
3642
3656
|
return null;
|
|
3643
|
-
var t = this.char(),
|
|
3644
|
-
return
|
|
3657
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3658
|
+
return n != null ? n : null;
|
|
3645
3659
|
}, e;
|
|
3646
3660
|
}()
|
|
3647
3661
|
);
|
|
3648
|
-
function
|
|
3662
|
+
function it(e) {
|
|
3649
3663
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3650
3664
|
}
|
|
3651
|
-
function
|
|
3652
|
-
return
|
|
3665
|
+
function Gi(e) {
|
|
3666
|
+
return it(e) || e === 47;
|
|
3653
3667
|
}
|
|
3654
|
-
function
|
|
3668
|
+
function Ui(e) {
|
|
3655
3669
|
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;
|
|
3656
3670
|
}
|
|
3657
|
-
function
|
|
3671
|
+
function Hr(e) {
|
|
3658
3672
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3659
3673
|
}
|
|
3660
|
-
function
|
|
3674
|
+
function Fi(e) {
|
|
3661
3675
|
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;
|
|
3662
3676
|
}
|
|
3663
|
-
function
|
|
3677
|
+
function ot(e) {
|
|
3664
3678
|
e.forEach(function(t) {
|
|
3665
|
-
if (delete t.location,
|
|
3666
|
-
for (var
|
|
3667
|
-
delete t.options[
|
|
3679
|
+
if (delete t.location, br(t) || gr(t))
|
|
3680
|
+
for (var r in t.options)
|
|
3681
|
+
delete t.options[r].location, ot(t.options[r].value);
|
|
3668
3682
|
else
|
|
3669
|
-
|
|
3683
|
+
mr(t) && vr(t.style) || (dr(t) || pr(t)) && et(t.style) ? delete t.style.location : yr(t) && ot(t.children);
|
|
3670
3684
|
});
|
|
3671
3685
|
}
|
|
3672
|
-
function
|
|
3673
|
-
t === void 0 && (t = {}), t =
|
|
3674
|
-
var
|
|
3675
|
-
if (
|
|
3676
|
-
var
|
|
3677
|
-
throw
|
|
3686
|
+
function Di(e, t) {
|
|
3687
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3688
|
+
var r = new Ci(e, t).parse();
|
|
3689
|
+
if (r.err) {
|
|
3690
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3691
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3678
3692
|
}
|
|
3679
|
-
return t != null && t.captureLocation ||
|
|
3693
|
+
return t != null && t.captureLocation || ot(r.val), r.val;
|
|
3680
3694
|
}
|
|
3681
3695
|
var ie;
|
|
3682
3696
|
(function(e) {
|
|
3683
3697
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3684
3698
|
})(ie || (ie = {}));
|
|
3685
|
-
var
|
|
3699
|
+
var Me = (
|
|
3686
3700
|
/** @class */
|
|
3687
3701
|
function(e) {
|
|
3688
3702
|
$(t, e);
|
|
3689
|
-
function t(
|
|
3690
|
-
var o = e.call(this,
|
|
3691
|
-
return o.code =
|
|
3703
|
+
function t(r, n, i) {
|
|
3704
|
+
var o = e.call(this, r) || this;
|
|
3705
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3692
3706
|
}
|
|
3693
3707
|
return t.prototype.toString = function() {
|
|
3694
3708
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3695
3709
|
}, t;
|
|
3696
3710
|
}(Error)
|
|
3697
|
-
),
|
|
3711
|
+
), Ft = (
|
|
3698
3712
|
/** @class */
|
|
3699
3713
|
function(e) {
|
|
3700
3714
|
$(t, e);
|
|
3701
|
-
function t(
|
|
3702
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3715
|
+
function t(r, n, i, o) {
|
|
3716
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
|
|
3703
3717
|
}
|
|
3704
3718
|
return t;
|
|
3705
|
-
}(
|
|
3706
|
-
),
|
|
3719
|
+
}(Me)
|
|
3720
|
+
), $i = (
|
|
3707
3721
|
/** @class */
|
|
3708
3722
|
function(e) {
|
|
3709
3723
|
$(t, e);
|
|
3710
|
-
function t(
|
|
3711
|
-
return e.call(this, 'Value for "'.concat(
|
|
3724
|
+
function t(r, n, i) {
|
|
3725
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
|
3712
3726
|
}
|
|
3713
3727
|
return t;
|
|
3714
|
-
}(
|
|
3715
|
-
),
|
|
3728
|
+
}(Me)
|
|
3729
|
+
), ji = (
|
|
3716
3730
|
/** @class */
|
|
3717
3731
|
function(e) {
|
|
3718
3732
|
$(t, e);
|
|
3719
|
-
function t(
|
|
3720
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3733
|
+
function t(r, n) {
|
|
3734
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
|
3721
3735
|
}
|
|
3722
3736
|
return t;
|
|
3723
|
-
}(
|
|
3737
|
+
}(Me)
|
|
3724
3738
|
), P;
|
|
3725
3739
|
(function(e) {
|
|
3726
3740
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3727
3741
|
})(P || (P = {}));
|
|
3728
|
-
function
|
|
3729
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3730
|
-
var
|
|
3731
|
-
return !
|
|
3742
|
+
function ki(e) {
|
|
3743
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3744
|
+
var n = t[t.length - 1];
|
|
3745
|
+
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3732
3746
|
}, []);
|
|
3733
3747
|
}
|
|
3734
|
-
function
|
|
3748
|
+
function Vi(e) {
|
|
3735
3749
|
return typeof e == "function";
|
|
3736
3750
|
}
|
|
3737
|
-
function Te(e, t,
|
|
3738
|
-
if (e.length === 1 &&
|
|
3751
|
+
function Te(e, t, r, n, i, o, a) {
|
|
3752
|
+
if (e.length === 1 && Ot(e[0]))
|
|
3739
3753
|
return [
|
|
3740
3754
|
{
|
|
3741
3755
|
type: P.literal,
|
|
@@ -3744,155 +3758,155 @@ function Te(e, t, n, r, i, o, a) {
|
|
|
3744
3758
|
];
|
|
3745
3759
|
for (var s = [], h = 0, l = e; h < l.length; h++) {
|
|
3746
3760
|
var u = l[h];
|
|
3747
|
-
if (
|
|
3761
|
+
if (Ot(u)) {
|
|
3748
3762
|
s.push({
|
|
3749
3763
|
type: P.literal,
|
|
3750
3764
|
value: u.value
|
|
3751
3765
|
});
|
|
3752
3766
|
continue;
|
|
3753
3767
|
}
|
|
3754
|
-
if (
|
|
3768
|
+
if (fi(u)) {
|
|
3755
3769
|
typeof o == "number" && s.push({
|
|
3756
3770
|
type: P.literal,
|
|
3757
|
-
value:
|
|
3771
|
+
value: r.getNumberFormat(t).format(o)
|
|
3758
3772
|
});
|
|
3759
3773
|
continue;
|
|
3760
3774
|
}
|
|
3761
3775
|
var f = u.value;
|
|
3762
3776
|
if (!(i && f in i))
|
|
3763
|
-
throw new
|
|
3777
|
+
throw new ji(f, a);
|
|
3764
3778
|
var c = i[f];
|
|
3765
|
-
if (
|
|
3779
|
+
if (ci(u)) {
|
|
3766
3780
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3767
3781
|
type: typeof c == "string" ? P.literal : P.object,
|
|
3768
3782
|
value: c
|
|
3769
3783
|
});
|
|
3770
3784
|
continue;
|
|
3771
3785
|
}
|
|
3772
|
-
if (
|
|
3773
|
-
var
|
|
3786
|
+
if (dr(u)) {
|
|
3787
|
+
var m = typeof u.style == "string" ? n.date[u.style] : et(u.style) ? u.style.parsedOptions : void 0;
|
|
3774
3788
|
s.push({
|
|
3775
3789
|
type: P.literal,
|
|
3776
|
-
value:
|
|
3790
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3777
3791
|
});
|
|
3778
3792
|
continue;
|
|
3779
3793
|
}
|
|
3780
|
-
if (
|
|
3781
|
-
var
|
|
3794
|
+
if (pr(u)) {
|
|
3795
|
+
var m = typeof u.style == "string" ? n.time[u.style] : et(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3782
3796
|
s.push({
|
|
3783
3797
|
type: P.literal,
|
|
3784
|
-
value:
|
|
3798
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3785
3799
|
});
|
|
3786
3800
|
continue;
|
|
3787
3801
|
}
|
|
3788
|
-
if (
|
|
3789
|
-
var
|
|
3790
|
-
|
|
3802
|
+
if (mr(u)) {
|
|
3803
|
+
var m = typeof u.style == "string" ? n.number[u.style] : vr(u.style) ? u.style.parsedOptions : void 0;
|
|
3804
|
+
m && m.scale && (c = c * (m.scale || 1)), s.push({
|
|
3791
3805
|
type: P.literal,
|
|
3792
|
-
value:
|
|
3806
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3793
3807
|
});
|
|
3794
3808
|
continue;
|
|
3795
3809
|
}
|
|
3796
|
-
if (
|
|
3797
|
-
var
|
|
3798
|
-
if (!
|
|
3799
|
-
throw new
|
|
3800
|
-
var H = Te(
|
|
3801
|
-
return
|
|
3810
|
+
if (yr(u)) {
|
|
3811
|
+
var d = u.children, p = u.value, A = i[p];
|
|
3812
|
+
if (!Vi(A))
|
|
3813
|
+
throw new $i(p, "function", a);
|
|
3814
|
+
var H = Te(d, t, r, n, i, o), T = A(H.map(function(N) {
|
|
3815
|
+
return N.value;
|
|
3802
3816
|
}));
|
|
3803
|
-
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(
|
|
3817
|
+
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(N) {
|
|
3804
3818
|
return {
|
|
3805
|
-
type: typeof
|
|
3806
|
-
value:
|
|
3819
|
+
type: typeof N == "string" ? P.literal : P.object,
|
|
3820
|
+
value: N
|
|
3807
3821
|
};
|
|
3808
3822
|
}));
|
|
3809
3823
|
}
|
|
3810
|
-
if (
|
|
3824
|
+
if (br(u)) {
|
|
3811
3825
|
var B = u.options[c] || u.options.other;
|
|
3812
3826
|
if (!B)
|
|
3813
|
-
throw new
|
|
3814
|
-
s.push.apply(s, Te(B.value, t,
|
|
3827
|
+
throw new Ft(u.value, c, Object.keys(u.options), a);
|
|
3828
|
+
s.push.apply(s, Te(B.value, t, r, n, i));
|
|
3815
3829
|
continue;
|
|
3816
3830
|
}
|
|
3817
|
-
if (
|
|
3831
|
+
if (gr(u)) {
|
|
3818
3832
|
var B = u.options["=".concat(c)];
|
|
3819
3833
|
if (!B) {
|
|
3820
3834
|
if (!Intl.PluralRules)
|
|
3821
|
-
throw new
|
|
3835
|
+
throw new Me(`Intl.PluralRules is not available in this environment.
|
|
3822
3836
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3823
3837
|
`, ie.MISSING_INTL_API, a);
|
|
3824
|
-
var
|
|
3825
|
-
B = u.options[
|
|
3838
|
+
var L = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
|
3839
|
+
B = u.options[L] || u.options.other;
|
|
3826
3840
|
}
|
|
3827
3841
|
if (!B)
|
|
3828
|
-
throw new
|
|
3829
|
-
s.push.apply(s, Te(B.value, t,
|
|
3842
|
+
throw new Ft(u.value, c, Object.keys(u.options), a);
|
|
3843
|
+
s.push.apply(s, Te(B.value, t, r, n, i, c - (u.offset || 0)));
|
|
3830
3844
|
continue;
|
|
3831
3845
|
}
|
|
3832
3846
|
}
|
|
3833
|
-
return
|
|
3847
|
+
return ki(s);
|
|
3834
3848
|
}
|
|
3835
|
-
function
|
|
3836
|
-
return t ?
|
|
3837
|
-
return n
|
|
3849
|
+
function Wi(e, t) {
|
|
3850
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3851
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3838
3852
|
}, {})) : e;
|
|
3839
3853
|
}
|
|
3840
|
-
function
|
|
3841
|
-
return t ? Object.keys(e).reduce(function(
|
|
3842
|
-
return n
|
|
3843
|
-
},
|
|
3854
|
+
function Xi(e, t) {
|
|
3855
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3856
|
+
return r[n] = Wi(e[n], t[n]), r;
|
|
3857
|
+
}, _({}, e)) : e;
|
|
3844
3858
|
}
|
|
3845
|
-
function
|
|
3859
|
+
function Ve(e) {
|
|
3846
3860
|
return {
|
|
3847
3861
|
create: function() {
|
|
3848
3862
|
return {
|
|
3849
3863
|
get: function(t) {
|
|
3850
3864
|
return e[t];
|
|
3851
3865
|
},
|
|
3852
|
-
set: function(t,
|
|
3853
|
-
e[t] =
|
|
3866
|
+
set: function(t, r) {
|
|
3867
|
+
e[t] = r;
|
|
3854
3868
|
}
|
|
3855
3869
|
};
|
|
3856
3870
|
}
|
|
3857
3871
|
};
|
|
3858
3872
|
}
|
|
3859
|
-
function
|
|
3873
|
+
function zi(e) {
|
|
3860
3874
|
return e === void 0 && (e = {
|
|
3861
3875
|
number: {},
|
|
3862
3876
|
dateTime: {},
|
|
3863
3877
|
pluralRules: {}
|
|
3864
3878
|
}), {
|
|
3865
|
-
getNumberFormat:
|
|
3866
|
-
for (var t,
|
|
3867
|
-
n
|
|
3868
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0],
|
|
3879
|
+
getNumberFormat: $e(function() {
|
|
3880
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3881
|
+
r[n] = arguments[n];
|
|
3882
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3869
3883
|
}, {
|
|
3870
|
-
cache:
|
|
3871
|
-
strategy:
|
|
3884
|
+
cache: Ve(e.number),
|
|
3885
|
+
strategy: je.variadic
|
|
3872
3886
|
}),
|
|
3873
|
-
getDateTimeFormat:
|
|
3874
|
-
for (var t,
|
|
3875
|
-
n
|
|
3876
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0],
|
|
3887
|
+
getDateTimeFormat: $e(function() {
|
|
3888
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3889
|
+
r[n] = arguments[n];
|
|
3890
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3877
3891
|
}, {
|
|
3878
|
-
cache:
|
|
3879
|
-
strategy:
|
|
3892
|
+
cache: Ve(e.dateTime),
|
|
3893
|
+
strategy: je.variadic
|
|
3880
3894
|
}),
|
|
3881
|
-
getPluralRules:
|
|
3882
|
-
for (var t,
|
|
3883
|
-
n
|
|
3884
|
-
return new ((t = Intl.PluralRules).bind.apply(t, te([void 0],
|
|
3895
|
+
getPluralRules: $e(function() {
|
|
3896
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3897
|
+
r[n] = arguments[n];
|
|
3898
|
+
return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], r, !1)))();
|
|
3885
3899
|
}, {
|
|
3886
|
-
cache:
|
|
3887
|
-
strategy:
|
|
3900
|
+
cache: Ve(e.pluralRules),
|
|
3901
|
+
strategy: je.variadic
|
|
3888
3902
|
})
|
|
3889
3903
|
};
|
|
3890
3904
|
}
|
|
3891
|
-
var
|
|
3905
|
+
var Ji = (
|
|
3892
3906
|
/** @class */
|
|
3893
3907
|
function() {
|
|
3894
|
-
function e(t,
|
|
3895
|
-
|
|
3908
|
+
function e(t, r, n, i) {
|
|
3909
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3896
3910
|
var o = this;
|
|
3897
3911
|
if (this.formatterCache = {
|
|
3898
3912
|
number: {},
|
|
@@ -3915,18 +3929,18 @@ var Xi = (
|
|
|
3915
3929
|
};
|
|
3916
3930
|
}, this.getAst = function() {
|
|
3917
3931
|
return o.ast;
|
|
3918
|
-
}, this.locales =
|
|
3932
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3919
3933
|
if (this.message = t, !e.__parse)
|
|
3920
3934
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3921
3935
|
var a = i || {};
|
|
3922
3936
|
a.formatters;
|
|
3923
|
-
var s =
|
|
3924
|
-
this.ast = e.__parse(t,
|
|
3937
|
+
var s = Bn(a, ["formatters"]);
|
|
3938
|
+
this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
|
|
3925
3939
|
} else
|
|
3926
3940
|
this.ast = t;
|
|
3927
3941
|
if (!Array.isArray(this.ast))
|
|
3928
3942
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3929
|
-
this.formats =
|
|
3943
|
+
this.formats = Xi(e.formats, n), this.formatters = i && i.formatters || zi(this.formatterCache);
|
|
3930
3944
|
}
|
|
3931
3945
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3932
3946
|
get: function() {
|
|
@@ -3936,10 +3950,10 @@ var Xi = (
|
|
|
3936
3950
|
configurable: !0
|
|
3937
3951
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3938
3952
|
if (typeof Intl.Locale != "undefined") {
|
|
3939
|
-
var
|
|
3940
|
-
return
|
|
3953
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3954
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3941
3955
|
}
|
|
3942
|
-
}, e.__parse =
|
|
3956
|
+
}, e.__parse = Di, e.formats = {
|
|
3943
3957
|
number: {
|
|
3944
3958
|
integer: {
|
|
3945
3959
|
maximumFractionDigits: 0
|
|
@@ -4000,113 +4014,113 @@ var Xi = (
|
|
|
4000
4014
|
}, e;
|
|
4001
4015
|
}()
|
|
4002
4016
|
);
|
|
4003
|
-
function
|
|
4017
|
+
function Zi(e, t) {
|
|
4004
4018
|
if (t == null)
|
|
4005
4019
|
return;
|
|
4006
4020
|
if (t in e)
|
|
4007
4021
|
return e[t];
|
|
4008
|
-
const
|
|
4009
|
-
let
|
|
4010
|
-
for (let i = 0; i <
|
|
4011
|
-
if (typeof
|
|
4022
|
+
const r = t.split(".");
|
|
4023
|
+
let n = e;
|
|
4024
|
+
for (let i = 0; i < r.length; i++)
|
|
4025
|
+
if (typeof n == "object") {
|
|
4012
4026
|
if (i > 0) {
|
|
4013
|
-
const o =
|
|
4014
|
-
if (o in
|
|
4015
|
-
|
|
4027
|
+
const o = r.slice(i, r.length).join(".");
|
|
4028
|
+
if (o in n) {
|
|
4029
|
+
n = n[o];
|
|
4016
4030
|
break;
|
|
4017
4031
|
}
|
|
4018
4032
|
}
|
|
4019
|
-
|
|
4033
|
+
n = n[r[i]];
|
|
4020
4034
|
} else
|
|
4021
|
-
|
|
4022
|
-
return
|
|
4035
|
+
n = void 0;
|
|
4036
|
+
return n;
|
|
4023
4037
|
}
|
|
4024
|
-
const j = {},
|
|
4038
|
+
const j = {}, Qi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Br = (e, t) => {
|
|
4025
4039
|
if (t == null)
|
|
4026
4040
|
return;
|
|
4027
4041
|
if (t in j && e in j[t])
|
|
4028
4042
|
return j[t][e];
|
|
4029
|
-
const
|
|
4030
|
-
for (let
|
|
4031
|
-
const i = n
|
|
4043
|
+
const r = Le(t);
|
|
4044
|
+
for (let n = 0; n < r.length; n++) {
|
|
4045
|
+
const i = r[n], o = qi(i, e);
|
|
4032
4046
|
if (o)
|
|
4033
|
-
return
|
|
4047
|
+
return Qi(e, t, o);
|
|
4034
4048
|
}
|
|
4035
4049
|
};
|
|
4036
|
-
let
|
|
4037
|
-
const se =
|
|
4038
|
-
function
|
|
4039
|
-
return
|
|
4050
|
+
let ct;
|
|
4051
|
+
const se = Oe({});
|
|
4052
|
+
function Yi(e) {
|
|
4053
|
+
return ct[e] || null;
|
|
4040
4054
|
}
|
|
4041
|
-
function
|
|
4042
|
-
return e in
|
|
4055
|
+
function Ar(e) {
|
|
4056
|
+
return e in ct;
|
|
4043
4057
|
}
|
|
4044
|
-
function
|
|
4045
|
-
if (!
|
|
4058
|
+
function qi(e, t) {
|
|
4059
|
+
if (!Ar(e))
|
|
4046
4060
|
return null;
|
|
4047
|
-
const
|
|
4048
|
-
return
|
|
4061
|
+
const r = Yi(e);
|
|
4062
|
+
return Zi(r, t);
|
|
4049
4063
|
}
|
|
4050
|
-
function
|
|
4064
|
+
function Ki(e) {
|
|
4051
4065
|
if (e == null)
|
|
4052
4066
|
return;
|
|
4053
|
-
const t =
|
|
4054
|
-
for (let
|
|
4055
|
-
const
|
|
4056
|
-
if (
|
|
4057
|
-
return
|
|
4067
|
+
const t = Le(e);
|
|
4068
|
+
for (let r = 0; r < t.length; r++) {
|
|
4069
|
+
const n = t[r];
|
|
4070
|
+
if (Ar(n))
|
|
4071
|
+
return n;
|
|
4058
4072
|
}
|
|
4059
4073
|
}
|
|
4060
|
-
function
|
|
4061
|
-
delete j[e], se.update((
|
|
4074
|
+
function Pr(e, ...t) {
|
|
4075
|
+
delete j[e], se.update((r) => (r[e] = ii.all([r[e] || {}, ...t]), r));
|
|
4062
4076
|
}
|
|
4063
4077
|
ae(
|
|
4064
4078
|
[se],
|
|
4065
4079
|
([e]) => Object.keys(e)
|
|
4066
4080
|
);
|
|
4067
|
-
se.subscribe((e) =>
|
|
4081
|
+
se.subscribe((e) => ct = e);
|
|
4068
4082
|
const He = {};
|
|
4069
|
-
function
|
|
4083
|
+
function eo(e, t) {
|
|
4070
4084
|
He[e].delete(t), He[e].size === 0 && delete He[e];
|
|
4071
4085
|
}
|
|
4072
|
-
function
|
|
4086
|
+
function Rr(e) {
|
|
4073
4087
|
return He[e];
|
|
4074
4088
|
}
|
|
4075
|
-
function
|
|
4076
|
-
return
|
|
4077
|
-
const
|
|
4078
|
-
return [t,
|
|
4089
|
+
function to(e) {
|
|
4090
|
+
return Le(e).map((t) => {
|
|
4091
|
+
const r = Rr(t);
|
|
4092
|
+
return [t, r ? [...r] : []];
|
|
4079
4093
|
}).filter(([, t]) => t.length > 0);
|
|
4080
4094
|
}
|
|
4081
|
-
function
|
|
4082
|
-
return e == null ? !1 :
|
|
4095
|
+
function at(e) {
|
|
4096
|
+
return e == null ? !1 : Le(e).some(
|
|
4083
4097
|
(t) => {
|
|
4084
|
-
var
|
|
4085
|
-
return (
|
|
4098
|
+
var r;
|
|
4099
|
+
return (r = Rr(t)) == null ? void 0 : r.size;
|
|
4086
4100
|
}
|
|
4087
4101
|
);
|
|
4088
4102
|
}
|
|
4089
|
-
function
|
|
4103
|
+
function ro(e, t) {
|
|
4090
4104
|
return Promise.all(
|
|
4091
|
-
t.map((
|
|
4092
|
-
).then((
|
|
4105
|
+
t.map((n) => (eo(e, n), n().then((i) => i.default || i)))
|
|
4106
|
+
).then((n) => Pr(e, ...n));
|
|
4093
4107
|
}
|
|
4094
4108
|
const he = {};
|
|
4095
|
-
function
|
|
4096
|
-
if (!
|
|
4109
|
+
function Ir(e) {
|
|
4110
|
+
if (!at(e))
|
|
4097
4111
|
return e in he ? he[e] : Promise.resolve();
|
|
4098
|
-
const t =
|
|
4112
|
+
const t = to(e);
|
|
4099
4113
|
return he[e] = Promise.all(
|
|
4100
4114
|
t.map(
|
|
4101
|
-
([
|
|
4115
|
+
([r, n]) => ro(r, n)
|
|
4102
4116
|
)
|
|
4103
4117
|
).then(() => {
|
|
4104
|
-
if (
|
|
4105
|
-
return
|
|
4118
|
+
if (at(e))
|
|
4119
|
+
return Ir(e);
|
|
4106
4120
|
delete he[e];
|
|
4107
4121
|
}), he[e];
|
|
4108
4122
|
}
|
|
4109
|
-
const
|
|
4123
|
+
const no = {
|
|
4110
4124
|
number: {
|
|
4111
4125
|
scientific: { notation: "scientific" },
|
|
4112
4126
|
engineering: { notation: "engineering" },
|
|
@@ -4135,136 +4149,136 @@ const to = {
|
|
|
4135
4149
|
timeZoneName: "short"
|
|
4136
4150
|
}
|
|
4137
4151
|
}
|
|
4138
|
-
},
|
|
4152
|
+
}, io = {
|
|
4139
4153
|
fallbackLocale: null,
|
|
4140
4154
|
loadingDelay: 200,
|
|
4141
|
-
formats:
|
|
4155
|
+
formats: no,
|
|
4142
4156
|
warnOnMissingMessages: !0,
|
|
4143
4157
|
handleMissingMessage: void 0,
|
|
4144
4158
|
ignoreTag: !0
|
|
4145
|
-
},
|
|
4159
|
+
}, oo = io;
|
|
4146
4160
|
function oe() {
|
|
4147
|
-
return
|
|
4148
|
-
}
|
|
4149
|
-
const
|
|
4150
|
-
var
|
|
4151
|
-
for (var
|
|
4152
|
-
|
|
4153
|
-
if (
|
|
4154
|
-
for (var
|
|
4155
|
-
|
|
4161
|
+
return oo;
|
|
4162
|
+
}
|
|
4163
|
+
const We = Oe(!1);
|
|
4164
|
+
var ao = Object.defineProperty, so = Object.defineProperties, uo = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, lo = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, co = (e, t) => {
|
|
4165
|
+
for (var r in t || (t = {}))
|
|
4166
|
+
lo.call(t, r) && $t(e, r, t[r]);
|
|
4167
|
+
if (Dt)
|
|
4168
|
+
for (var r of Dt(t))
|
|
4169
|
+
ho.call(t, r) && $t(e, r, t[r]);
|
|
4156
4170
|
return e;
|
|
4157
|
-
},
|
|
4158
|
-
let
|
|
4159
|
-
const Pe =
|
|
4160
|
-
function
|
|
4161
|
-
return e.split("-").map((t,
|
|
4171
|
+
}, fo = (e, t) => so(e, uo(t));
|
|
4172
|
+
let st;
|
|
4173
|
+
const Pe = Oe(null);
|
|
4174
|
+
function jt(e) {
|
|
4175
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4162
4176
|
}
|
|
4163
|
-
function
|
|
4164
|
-
const
|
|
4165
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4177
|
+
function Le(e, t = oe().fallbackLocale) {
|
|
4178
|
+
const r = jt(e);
|
|
4179
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...jt(t)])] : r;
|
|
4166
4180
|
}
|
|
4167
4181
|
function Z() {
|
|
4168
|
-
return
|
|
4182
|
+
return st != null ? st : void 0;
|
|
4169
4183
|
}
|
|
4170
4184
|
Pe.subscribe((e) => {
|
|
4171
|
-
|
|
4185
|
+
st = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4172
4186
|
});
|
|
4173
|
-
const
|
|
4174
|
-
if (e &&
|
|
4187
|
+
const mo = (e) => {
|
|
4188
|
+
if (e && Ki(e) && at(e)) {
|
|
4175
4189
|
const { loadingDelay: t } = oe();
|
|
4176
|
-
let
|
|
4177
|
-
return typeof window != "undefined" && Z() != null && t ?
|
|
4178
|
-
() =>
|
|
4190
|
+
let r;
|
|
4191
|
+
return typeof window != "undefined" && Z() != null && t ? r = window.setTimeout(
|
|
4192
|
+
() => We.set(!0),
|
|
4179
4193
|
t
|
|
4180
|
-
) :
|
|
4194
|
+
) : We.set(!0), Ir(e).then(() => {
|
|
4181
4195
|
Pe.set(e);
|
|
4182
4196
|
}).finally(() => {
|
|
4183
|
-
clearTimeout(
|
|
4197
|
+
clearTimeout(r), We.set(!1);
|
|
4184
4198
|
});
|
|
4185
4199
|
}
|
|
4186
4200
|
return Pe.set(e);
|
|
4187
|
-
}, W =
|
|
4188
|
-
set:
|
|
4189
|
-
}),
|
|
4201
|
+
}, W = fo(co({}, Pe), {
|
|
4202
|
+
set: mo
|
|
4203
|
+
}), Ne = (e) => {
|
|
4190
4204
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4191
|
-
return (
|
|
4192
|
-
const i = JSON.stringify(
|
|
4193
|
-
return i in t ? t[i] : t[i] = e(
|
|
4205
|
+
return (n) => {
|
|
4206
|
+
const i = JSON.stringify(n);
|
|
4207
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
4194
4208
|
};
|
|
4195
4209
|
};
|
|
4196
|
-
var
|
|
4197
|
-
for (var
|
|
4198
|
-
|
|
4210
|
+
var po = Object.defineProperty, Re = Object.getOwnPropertySymbols, Or = Object.prototype.hasOwnProperty, Mr = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
|
|
4211
|
+
for (var r in t || (t = {}))
|
|
4212
|
+
Or.call(t, r) && kt(e, r, t[r]);
|
|
4199
4213
|
if (Re)
|
|
4200
|
-
for (var
|
|
4201
|
-
|
|
4214
|
+
for (var r of Re(t))
|
|
4215
|
+
Mr.call(t, r) && kt(e, r, t[r]);
|
|
4202
4216
|
return e;
|
|
4203
4217
|
}, ue = (e, t) => {
|
|
4204
|
-
var
|
|
4205
|
-
for (var
|
|
4206
|
-
|
|
4218
|
+
var r = {};
|
|
4219
|
+
for (var n in e)
|
|
4220
|
+
Or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4207
4221
|
if (e != null && Re)
|
|
4208
|
-
for (var
|
|
4209
|
-
t.indexOf(
|
|
4210
|
-
return
|
|
4222
|
+
for (var n of Re(e))
|
|
4223
|
+
t.indexOf(n) < 0 && Mr.call(e, n) && (r[n] = e[n]);
|
|
4224
|
+
return r;
|
|
4211
4225
|
};
|
|
4212
4226
|
const pe = (e, t) => {
|
|
4213
|
-
const { formats:
|
|
4214
|
-
if (e in
|
|
4215
|
-
return
|
|
4227
|
+
const { formats: r } = oe();
|
|
4228
|
+
if (e in r && t in r[e])
|
|
4229
|
+
return r[e][t];
|
|
4216
4230
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4217
|
-
},
|
|
4231
|
+
}, bo = Ne(
|
|
4218
4232
|
(e) => {
|
|
4219
|
-
var t = e, { locale:
|
|
4220
|
-
if (
|
|
4233
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4234
|
+
if (r == null)
|
|
4221
4235
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4222
|
-
return
|
|
4236
|
+
return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
|
|
4223
4237
|
}
|
|
4224
|
-
),
|
|
4238
|
+
), go = Ne(
|
|
4225
4239
|
(e) => {
|
|
4226
|
-
var t = e, { locale:
|
|
4227
|
-
if (
|
|
4240
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4241
|
+
if (r == null)
|
|
4228
4242
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4229
|
-
return
|
|
4243
|
+
return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4230
4244
|
}
|
|
4231
|
-
),
|
|
4245
|
+
), yo = Ne(
|
|
4232
4246
|
(e) => {
|
|
4233
|
-
var t = e, { locale:
|
|
4234
|
-
if (
|
|
4247
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4248
|
+
if (r == null)
|
|
4235
4249
|
throw new Error(
|
|
4236
4250
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4237
4251
|
);
|
|
4238
|
-
return
|
|
4252
|
+
return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4239
4253
|
}
|
|
4240
|
-
),
|
|
4254
|
+
), vo = (e = {}) => {
|
|
4241
4255
|
var t = e, {
|
|
4242
|
-
locale:
|
|
4243
|
-
} = t,
|
|
4256
|
+
locale: r = Z()
|
|
4257
|
+
} = t, n = ue(t, [
|
|
4244
4258
|
"locale"
|
|
4245
4259
|
]);
|
|
4246
|
-
return
|
|
4247
|
-
},
|
|
4260
|
+
return bo(ft({ locale: r }, n));
|
|
4261
|
+
}, _o = (e = {}) => {
|
|
4248
4262
|
var t = e, {
|
|
4249
|
-
locale:
|
|
4250
|
-
} = t,
|
|
4263
|
+
locale: r = Z()
|
|
4264
|
+
} = t, n = ue(t, [
|
|
4251
4265
|
"locale"
|
|
4252
4266
|
]);
|
|
4253
|
-
return
|
|
4254
|
-
},
|
|
4267
|
+
return go(ft({ locale: r }, n));
|
|
4268
|
+
}, xo = (e = {}) => {
|
|
4255
4269
|
var t = e, {
|
|
4256
|
-
locale:
|
|
4257
|
-
} = t,
|
|
4270
|
+
locale: r = Z()
|
|
4271
|
+
} = t, n = ue(t, [
|
|
4258
4272
|
"locale"
|
|
4259
4273
|
]);
|
|
4260
|
-
return
|
|
4261
|
-
},
|
|
4274
|
+
return yo(ft({ locale: r }, n));
|
|
4275
|
+
}, Eo = Ne(
|
|
4262
4276
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4263
|
-
(e, t = Z()) => new
|
|
4277
|
+
(e, t = Z()) => new Ji(e, t, oe().formats, {
|
|
4264
4278
|
ignoreTag: oe().ignoreTag
|
|
4265
4279
|
})
|
|
4266
|
-
),
|
|
4267
|
-
var
|
|
4280
|
+
), wo = (e, t = {}) => {
|
|
4281
|
+
var r, n, i, o;
|
|
4268
4282
|
let a = t;
|
|
4269
4283
|
typeof e == "object" && (a = e, e = a.id);
|
|
4270
4284
|
const {
|
|
@@ -4276,9 +4290,9 @@ const pe = (e, t) => {
|
|
|
4276
4290
|
throw new Error(
|
|
4277
4291
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4278
4292
|
);
|
|
4279
|
-
let u =
|
|
4293
|
+
let u = Br(e, h);
|
|
4280
4294
|
if (!u)
|
|
4281
|
-
u = (o = (i = (
|
|
4295
|
+
u = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4282
4296
|
else if (typeof u != "string")
|
|
4283
4297
|
return console.warn(
|
|
4284
4298
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4287,7 +4301,7 @@ const pe = (e, t) => {
|
|
|
4287
4301
|
return u;
|
|
4288
4302
|
let f = u;
|
|
4289
4303
|
try {
|
|
4290
|
-
f =
|
|
4304
|
+
f = Eo(u, h).format(s);
|
|
4291
4305
|
} catch (c) {
|
|
4292
4306
|
c instanceof Error && console.warn(
|
|
4293
4307
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4295,48 +4309,48 @@ const pe = (e, t) => {
|
|
|
4295
4309
|
);
|
|
4296
4310
|
}
|
|
4297
4311
|
return f;
|
|
4298
|
-
},
|
|
4299
|
-
ae([W], () => Eo);
|
|
4300
|
-
ae([W], () => wo);
|
|
4312
|
+
}, So = (e, t) => xo(t).format(e), To = (e, t) => _o(t).format(e), Ho = (e, t) => vo(t).format(e), Bo = (e, t = Z()) => Br(e, t), Ao = ae([W, se], () => wo);
|
|
4301
4313
|
ae([W], () => So);
|
|
4302
|
-
ae([W
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4314
|
+
ae([W], () => To);
|
|
4315
|
+
ae([W], () => Ho);
|
|
4316
|
+
ae([W, se], () => Bo);
|
|
4317
|
+
window.emWidgets = { topic: $n };
|
|
4318
|
+
const Po = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4319
|
+
function Ro(e, t) {
|
|
4306
4320
|
if (e) {
|
|
4307
|
-
const
|
|
4308
|
-
|
|
4321
|
+
const r = document.createElement("style");
|
|
4322
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4309
4323
|
}
|
|
4310
4324
|
}
|
|
4311
|
-
function
|
|
4312
|
-
const
|
|
4313
|
-
fetch(
|
|
4325
|
+
function Io(e, t) {
|
|
4326
|
+
const r = new URL(t);
|
|
4327
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4314
4328
|
const i = document.createElement("style");
|
|
4315
|
-
i.innerHTML =
|
|
4316
|
-
}).catch((
|
|
4317
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4329
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4330
|
+
}).catch((n) => {
|
|
4331
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4318
4332
|
});
|
|
4319
4333
|
}
|
|
4320
|
-
function
|
|
4334
|
+
function Oo(e, t, r) {
|
|
4321
4335
|
if (window.emMessageBus) {
|
|
4322
|
-
const
|
|
4336
|
+
const n = document.createElement("style");
|
|
4323
4337
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4324
|
-
|
|
4338
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4325
4339
|
});
|
|
4326
4340
|
}
|
|
4327
4341
|
}
|
|
4328
|
-
function
|
|
4329
|
-
W.subscribe((
|
|
4330
|
-
|
|
4342
|
+
function Mo({ withLocale: e, translations: t }) {
|
|
4343
|
+
W.subscribe((r) => {
|
|
4344
|
+
r == null && (se.set(t), W.set(e));
|
|
4331
4345
|
});
|
|
4332
4346
|
}
|
|
4333
|
-
function
|
|
4334
|
-
|
|
4347
|
+
function Vt(e, t) {
|
|
4348
|
+
Pr(e, t);
|
|
4335
4349
|
}
|
|
4336
|
-
function
|
|
4350
|
+
function Lo(e) {
|
|
4337
4351
|
W.set(e);
|
|
4338
4352
|
}
|
|
4339
|
-
const
|
|
4353
|
+
const Wt = {
|
|
4340
4354
|
en: {
|
|
4341
4355
|
playRandomGame: "Play a random game",
|
|
4342
4356
|
randomGameLoading: "Selecting ...",
|
|
@@ -4411,151 +4425,151 @@ const kt = {
|
|
|
4411
4425
|
}
|
|
4412
4426
|
};
|
|
4413
4427
|
function No(e) {
|
|
4414
|
-
|
|
4428
|
+
sn(e, "svelte-kfgfhx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.CasinoPlayRandomGameWrapper{min-height:0}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{margin:5px 0;font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
|
|
4415
4429
|
}
|
|
4416
|
-
function
|
|
4417
|
-
const
|
|
4418
|
-
return
|
|
4430
|
+
function Xt(e, t, r) {
|
|
4431
|
+
const n = e.slice();
|
|
4432
|
+
return n[41] = t[r], n;
|
|
4419
4433
|
}
|
|
4420
|
-
const
|
|
4421
|
-
function
|
|
4422
|
-
let t,
|
|
4434
|
+
const Co = (e) => ({}), zt = (e) => ({});
|
|
4435
|
+
function Jt(e) {
|
|
4436
|
+
let t, r, n, i, o, a, s;
|
|
4423
4437
|
const h = (
|
|
4424
4438
|
/*#slots*/
|
|
4425
4439
|
e[23].close
|
|
4426
|
-
), l =
|
|
4440
|
+
), l = rn(
|
|
4427
4441
|
h,
|
|
4428
4442
|
e,
|
|
4429
4443
|
/*$$scope*/
|
|
4430
4444
|
e[22],
|
|
4431
|
-
|
|
4432
|
-
), u = l ||
|
|
4433
|
-
function f(
|
|
4445
|
+
zt
|
|
4446
|
+
), u = l || Go();
|
|
4447
|
+
function f(d, p) {
|
|
4434
4448
|
return (
|
|
4435
4449
|
/*hasRandomGames*/
|
|
4436
|
-
|
|
4450
|
+
d[7] ? Fo : Uo
|
|
4437
4451
|
);
|
|
4438
4452
|
}
|
|
4439
|
-
let c = f(e),
|
|
4453
|
+
let c = f(e), m = c(e);
|
|
4440
4454
|
return {
|
|
4441
4455
|
c() {
|
|
4442
|
-
t = S("div"),
|
|
4456
|
+
t = S("div"), r = S("div"), n = S("span"), u && u.c(), i = V(), m.c(), g(n, "class", "ModalCloseBtn"), g(n, "role", "button"), g(r, "class", "ModalContainer"), g(t, "class", "ModalWindow");
|
|
4443
4457
|
},
|
|
4444
|
-
m(
|
|
4445
|
-
|
|
4446
|
-
|
|
4458
|
+
m(d, p) {
|
|
4459
|
+
O(d, t, p), x(t, r), x(r, n), u && u.m(n, null), x(r, i), m.m(r, null), o = !0, a || (s = Be(
|
|
4460
|
+
n,
|
|
4447
4461
|
"click",
|
|
4448
4462
|
/*closeModal*/
|
|
4449
4463
|
e[12]
|
|
4450
4464
|
), a = !0);
|
|
4451
4465
|
},
|
|
4452
|
-
p(
|
|
4466
|
+
p(d, p) {
|
|
4453
4467
|
l && l.p && (!o || p[0] & /*$$scope*/
|
|
4454
|
-
4194304) &&
|
|
4468
|
+
4194304) && on(
|
|
4455
4469
|
l,
|
|
4456
4470
|
h,
|
|
4457
|
-
|
|
4471
|
+
d,
|
|
4458
4472
|
/*$$scope*/
|
|
4459
|
-
|
|
4460
|
-
o ?
|
|
4473
|
+
d[22],
|
|
4474
|
+
o ? nn(
|
|
4461
4475
|
h,
|
|
4462
4476
|
/*$$scope*/
|
|
4463
|
-
|
|
4477
|
+
d[22],
|
|
4464
4478
|
p,
|
|
4465
|
-
|
|
4466
|
-
) :
|
|
4479
|
+
Co
|
|
4480
|
+
) : an(
|
|
4467
4481
|
/*$$scope*/
|
|
4468
|
-
|
|
4482
|
+
d[22]
|
|
4469
4483
|
),
|
|
4470
|
-
|
|
4471
|
-
), c === (c = f(
|
|
4484
|
+
zt
|
|
4485
|
+
), c === (c = f(d)) && m ? m.p(d, p) : (m.d(1), m = c(d), m && (m.c(), m.m(r, null)));
|
|
4472
4486
|
},
|
|
4473
|
-
i(
|
|
4474
|
-
o || (fe(u,
|
|
4487
|
+
i(d) {
|
|
4488
|
+
o || (fe(u, d), o = !0);
|
|
4475
4489
|
},
|
|
4476
|
-
o(
|
|
4477
|
-
|
|
4490
|
+
o(d) {
|
|
4491
|
+
Je(u, d), o = !1;
|
|
4478
4492
|
},
|
|
4479
|
-
d(
|
|
4480
|
-
|
|
4493
|
+
d(d) {
|
|
4494
|
+
d && R(t), u && u.d(d), m.d(), a = !1, s();
|
|
4481
4495
|
}
|
|
4482
4496
|
};
|
|
4483
4497
|
}
|
|
4484
|
-
function
|
|
4485
|
-
let t,
|
|
4498
|
+
function Go(e) {
|
|
4499
|
+
let t, r;
|
|
4486
4500
|
return {
|
|
4487
4501
|
c() {
|
|
4488
|
-
t =
|
|
4502
|
+
t = xt("svg"), r = xt("path"), g(r, "stroke-linecap", "round"), g(r, "stroke-linejoin", "round"), g(r, "stroke-width", "2"), g(r, "d", "M6 18L18 6M6 6l12 12"), g(t, "class", "w-6 h-6"), g(t, "fill", "none"), g(t, "stroke", "currentColor"), g(t, "viewBox", "0 0 24 24"), g(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4489
4503
|
},
|
|
4490
|
-
m(
|
|
4491
|
-
|
|
4504
|
+
m(n, i) {
|
|
4505
|
+
O(n, t, i), x(t, r);
|
|
4492
4506
|
},
|
|
4493
4507
|
p: C,
|
|
4494
|
-
d(
|
|
4495
|
-
|
|
4508
|
+
d(n) {
|
|
4509
|
+
n && R(t);
|
|
4496
4510
|
}
|
|
4497
4511
|
};
|
|
4498
4512
|
}
|
|
4499
|
-
function
|
|
4500
|
-
let t,
|
|
4513
|
+
function Uo(e) {
|
|
4514
|
+
let t, r = (
|
|
4501
4515
|
/*$_*/
|
|
4502
4516
|
e[9]("noGames") + ""
|
|
4503
|
-
),
|
|
4517
|
+
), n;
|
|
4504
4518
|
return {
|
|
4505
4519
|
c() {
|
|
4506
|
-
t = S("p"),
|
|
4520
|
+
t = S("p"), n = k(r), g(t, "class", "RandomGameLoading");
|
|
4507
4521
|
},
|
|
4508
4522
|
m(i, o) {
|
|
4509
|
-
|
|
4523
|
+
O(i, t, o), x(t, n);
|
|
4510
4524
|
},
|
|
4511
4525
|
p(i, o) {
|
|
4512
4526
|
o[0] & /*$_*/
|
|
4513
|
-
512 &&
|
|
4514
|
-
i[9]("noGames") + "") && z(
|
|
4527
|
+
512 && r !== (r = /*$_*/
|
|
4528
|
+
i[9]("noGames") + "") && z(n, r);
|
|
4515
4529
|
},
|
|
4516
4530
|
d(i) {
|
|
4517
4531
|
i && R(t);
|
|
4518
4532
|
}
|
|
4519
4533
|
};
|
|
4520
4534
|
}
|
|
4521
|
-
function
|
|
4522
|
-
let t,
|
|
4535
|
+
function Fo(e) {
|
|
4536
|
+
let t, r, n, i, o = wt(
|
|
4523
4537
|
/*gamesToShow*/
|
|
4524
4538
|
e[4]
|
|
4525
4539
|
), a = [];
|
|
4526
4540
|
for (let u = 0; u < o.length; u += 1)
|
|
4527
|
-
a[u] =
|
|
4541
|
+
a[u] = Zt(Xt(e, o, u));
|
|
4528
4542
|
function s(u, f) {
|
|
4529
4543
|
return (
|
|
4530
4544
|
/*animationDone*/
|
|
4531
|
-
u[6] ?
|
|
4545
|
+
u[6] ? $o : Do
|
|
4532
4546
|
);
|
|
4533
4547
|
}
|
|
4534
4548
|
let h = s(e), l = h(e);
|
|
4535
4549
|
return {
|
|
4536
4550
|
c() {
|
|
4537
|
-
t = S("div"),
|
|
4551
|
+
t = S("div"), r = S("main"), n = S("div");
|
|
4538
4552
|
for (let u = 0; u < a.length; u += 1)
|
|
4539
4553
|
a[u].c();
|
|
4540
|
-
i = V(), l.c(), g(
|
|
4554
|
+
i = V(), l.c(), g(n, "class", "GamesContainer"), g(r, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
|
|
4541
4555
|
},
|
|
4542
4556
|
m(u, f) {
|
|
4543
|
-
|
|
4557
|
+
O(u, t, f), x(t, r), x(r, n);
|
|
4544
4558
|
for (let c = 0; c < a.length; c += 1)
|
|
4545
|
-
a[c] && a[c].m(
|
|
4546
|
-
e[24](
|
|
4559
|
+
a[c] && a[c].m(n, null);
|
|
4560
|
+
e[24](n), x(t, i), l.m(t, null);
|
|
4547
4561
|
},
|
|
4548
4562
|
p(u, f) {
|
|
4549
4563
|
if (f[0] & /*gamesToShow*/
|
|
4550
4564
|
16) {
|
|
4551
|
-
o =
|
|
4565
|
+
o = wt(
|
|
4552
4566
|
/*gamesToShow*/
|
|
4553
4567
|
u[4]
|
|
4554
4568
|
);
|
|
4555
4569
|
let c;
|
|
4556
4570
|
for (c = 0; c < o.length; c += 1) {
|
|
4557
|
-
const
|
|
4558
|
-
a[c] ? a[c].p(
|
|
4571
|
+
const m = Xt(u, o, c);
|
|
4572
|
+
a[c] ? a[c].p(m, f) : (a[c] = Zt(m), a[c].c(), a[c].m(n, null));
|
|
4559
4573
|
}
|
|
4560
4574
|
for (; c < a.length; c += 1)
|
|
4561
4575
|
a[c].d(1);
|
|
@@ -4564,76 +4578,76 @@ function Go(e) {
|
|
|
4564
4578
|
h === (h = s(u)) && l ? l.p(u, f) : (l.d(1), l = h(u), l && (l.c(), l.m(t, null)));
|
|
4565
4579
|
},
|
|
4566
4580
|
d(u) {
|
|
4567
|
-
u && R(t),
|
|
4581
|
+
u && R(t), hn(a, u), e[24](null), l.d();
|
|
4568
4582
|
}
|
|
4569
4583
|
};
|
|
4570
4584
|
}
|
|
4571
|
-
function
|
|
4572
|
-
let t,
|
|
4585
|
+
function Zt(e) {
|
|
4586
|
+
let t, r, n, i, o, a;
|
|
4573
4587
|
return {
|
|
4574
4588
|
c() {
|
|
4575
|
-
t = S("div"),
|
|
4576
|
-
e[41].thumbnail) || g(
|
|
4577
|
-
e[41].name), g(
|
|
4589
|
+
t = S("div"), r = S("img"), a = V(), g(r, "class", "RandomGameImage"), _t(r.src, n = /*game*/
|
|
4590
|
+
e[41].thumbnail) || g(r, "src", n), g(r, "alt", i = /*game*/
|
|
4591
|
+
e[41].name), g(r, "title", o = /*game*/
|
|
4578
4592
|
e[41].name), g(t, "class", "item");
|
|
4579
4593
|
},
|
|
4580
4594
|
m(s, h) {
|
|
4581
|
-
|
|
4595
|
+
O(s, t, h), x(t, r), x(t, a);
|
|
4582
4596
|
},
|
|
4583
4597
|
p(s, h) {
|
|
4584
4598
|
h[0] & /*gamesToShow*/
|
|
4585
|
-
16 && !
|
|
4586
|
-
s[41].thumbnail) && g(
|
|
4599
|
+
16 && !_t(r.src, n = /*game*/
|
|
4600
|
+
s[41].thumbnail) && g(r, "src", n), h[0] & /*gamesToShow*/
|
|
4587
4601
|
16 && i !== (i = /*game*/
|
|
4588
|
-
s[41].name) && g(
|
|
4602
|
+
s[41].name) && g(r, "alt", i), h[0] & /*gamesToShow*/
|
|
4589
4603
|
16 && o !== (o = /*game*/
|
|
4590
|
-
s[41].name) && g(
|
|
4604
|
+
s[41].name) && g(r, "title", o);
|
|
4591
4605
|
},
|
|
4592
4606
|
d(s) {
|
|
4593
4607
|
s && R(t);
|
|
4594
4608
|
}
|
|
4595
4609
|
};
|
|
4596
4610
|
}
|
|
4597
|
-
function
|
|
4598
|
-
let t,
|
|
4611
|
+
function Do(e) {
|
|
4612
|
+
let t, r = (
|
|
4599
4613
|
/*$_*/
|
|
4600
4614
|
e[9]("randomGameLoading") + ""
|
|
4601
|
-
),
|
|
4615
|
+
), n;
|
|
4602
4616
|
return {
|
|
4603
4617
|
c() {
|
|
4604
|
-
t = S("p"),
|
|
4618
|
+
t = S("p"), n = k(r), g(t, "class", "RandomGameLoading");
|
|
4605
4619
|
},
|
|
4606
4620
|
m(i, o) {
|
|
4607
|
-
|
|
4621
|
+
O(i, t, o), x(t, n);
|
|
4608
4622
|
},
|
|
4609
4623
|
p(i, o) {
|
|
4610
4624
|
o[0] & /*$_*/
|
|
4611
|
-
512 &&
|
|
4612
|
-
i[9]("randomGameLoading") + "") && z(
|
|
4625
|
+
512 && r !== (r = /*$_*/
|
|
4626
|
+
i[9]("randomGameLoading") + "") && z(n, r);
|
|
4613
4627
|
},
|
|
4614
4628
|
d(i) {
|
|
4615
4629
|
i && R(t);
|
|
4616
4630
|
}
|
|
4617
4631
|
};
|
|
4618
4632
|
}
|
|
4619
|
-
function
|
|
4620
|
-
let t,
|
|
4633
|
+
function $o(e) {
|
|
4634
|
+
let t, r, n, i, o = (
|
|
4621
4635
|
/*randomGame*/
|
|
4622
4636
|
e[3].name + ""
|
|
4623
4637
|
), a, s, h, l = (
|
|
4624
4638
|
/*randomGame*/
|
|
4625
4639
|
e[3].vendor.name + ""
|
|
4626
|
-
), u, f, c,
|
|
4640
|
+
), u, f, c, m = (
|
|
4627
4641
|
/*$_*/
|
|
4628
4642
|
e[9]("playNowRandomGame") + ""
|
|
4629
|
-
),
|
|
4643
|
+
), d, p, A;
|
|
4630
4644
|
return {
|
|
4631
4645
|
c() {
|
|
4632
4646
|
t = S("button"), t.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
|
|
4633
|
-
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`,
|
|
4647
|
+
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, r = V(), n = S("div"), i = S("p"), a = k(o), s = V(), h = S("p"), u = k(l), f = V(), c = S("button"), d = k(m), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(n, "class", "RandomGameDetails");
|
|
4634
4648
|
},
|
|
4635
4649
|
m(H, T) {
|
|
4636
|
-
|
|
4650
|
+
O(H, t, T), O(H, r, T), O(H, n, T), x(n, i), x(i, a), x(n, s), x(n, h), x(h, u), x(n, f), x(n, c), x(c, d), p || (A = [
|
|
4637
4651
|
Be(
|
|
4638
4652
|
t,
|
|
4639
4653
|
"click",
|
|
@@ -4654,83 +4668,83 @@ function Fo(e) {
|
|
|
4654
4668
|
H[3].name + "") && z(a, o), T[0] & /*randomGame*/
|
|
4655
4669
|
8 && l !== (l = /*randomGame*/
|
|
4656
4670
|
H[3].vendor.name + "") && z(u, l), T[0] & /*$_*/
|
|
4657
|
-
512 &&
|
|
4658
|
-
H[9]("playNowRandomGame") + "") && z(
|
|
4671
|
+
512 && m !== (m = /*$_*/
|
|
4672
|
+
H[9]("playNowRandomGame") + "") && z(d, m);
|
|
4659
4673
|
},
|
|
4660
4674
|
d(H) {
|
|
4661
|
-
H && (R(t), R(
|
|
4675
|
+
H && (R(t), R(r), R(n)), p = !1, J(A);
|
|
4662
4676
|
}
|
|
4663
4677
|
};
|
|
4664
4678
|
}
|
|
4665
|
-
function
|
|
4666
|
-
let t,
|
|
4679
|
+
function jo(e) {
|
|
4680
|
+
let t, r = (
|
|
4667
4681
|
/*$_*/
|
|
4668
4682
|
e[9]("playRandomGame") + ""
|
|
4669
|
-
),
|
|
4683
|
+
), n;
|
|
4670
4684
|
return {
|
|
4671
4685
|
c() {
|
|
4672
|
-
t = S("span"),
|
|
4686
|
+
t = S("span"), n = k(r), g(t, "class", "RandomButtonText");
|
|
4673
4687
|
},
|
|
4674
4688
|
m(i, o) {
|
|
4675
|
-
|
|
4689
|
+
O(i, t, o), x(t, n);
|
|
4676
4690
|
},
|
|
4677
4691
|
p(i, o) {
|
|
4678
4692
|
o[0] & /*$_*/
|
|
4679
|
-
512 &&
|
|
4680
|
-
i[9]("playRandomGame") + "") && z(
|
|
4693
|
+
512 && r !== (r = /*$_*/
|
|
4694
|
+
i[9]("playRandomGame") + "") && z(n, r);
|
|
4681
4695
|
},
|
|
4682
4696
|
d(i) {
|
|
4683
4697
|
i && R(t);
|
|
4684
4698
|
}
|
|
4685
4699
|
};
|
|
4686
4700
|
}
|
|
4687
|
-
function
|
|
4688
|
-
let t,
|
|
4701
|
+
function ko(e) {
|
|
4702
|
+
let t, r;
|
|
4689
4703
|
return {
|
|
4690
4704
|
c() {
|
|
4691
|
-
t = S("span"),
|
|
4705
|
+
t = S("span"), r = k(
|
|
4692
4706
|
/*buttontext*/
|
|
4693
4707
|
e[1]
|
|
4694
4708
|
), g(t, "class", "RandomButtonText");
|
|
4695
4709
|
},
|
|
4696
|
-
m(
|
|
4697
|
-
|
|
4710
|
+
m(n, i) {
|
|
4711
|
+
O(n, t, i), x(t, r);
|
|
4698
4712
|
},
|
|
4699
|
-
p(
|
|
4713
|
+
p(n, i) {
|
|
4700
4714
|
i[0] & /*buttontext*/
|
|
4701
4715
|
2 && z(
|
|
4702
|
-
|
|
4716
|
+
r,
|
|
4703
4717
|
/*buttontext*/
|
|
4704
|
-
|
|
4718
|
+
n[1]
|
|
4705
4719
|
);
|
|
4706
4720
|
},
|
|
4707
|
-
d(
|
|
4708
|
-
|
|
4721
|
+
d(n) {
|
|
4722
|
+
n && R(t);
|
|
4709
4723
|
}
|
|
4710
4724
|
};
|
|
4711
4725
|
}
|
|
4712
|
-
function
|
|
4713
|
-
let t,
|
|
4726
|
+
function Vo(e) {
|
|
4727
|
+
let t, r, n, i, o, a, s, h, l, u = (
|
|
4714
4728
|
/*show*/
|
|
4715
|
-
e[5] &&
|
|
4729
|
+
e[5] && Jt(e)
|
|
4716
4730
|
);
|
|
4717
|
-
function f(
|
|
4731
|
+
function f(d, p) {
|
|
4718
4732
|
if (
|
|
4719
4733
|
/*buttontext*/
|
|
4720
|
-
|
|
4734
|
+
d[1]
|
|
4721
4735
|
)
|
|
4722
|
-
return
|
|
4736
|
+
return ko;
|
|
4723
4737
|
if (!/*buttontext*/
|
|
4724
|
-
|
|
4725
|
-
return
|
|
4738
|
+
d[1])
|
|
4739
|
+
return jo;
|
|
4726
4740
|
}
|
|
4727
|
-
let c = f(e),
|
|
4741
|
+
let c = f(e), m = c && c(e);
|
|
4728
4742
|
return {
|
|
4729
4743
|
c() {
|
|
4730
|
-
t = S("div"), u && u.c(),
|
|
4744
|
+
t = S("div"), u && u.c(), r = V(), n = S("div"), i = S("button"), m && m.c(), o = V(), a = S("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper");
|
|
4731
4745
|
},
|
|
4732
|
-
m(
|
|
4733
|
-
|
|
4746
|
+
m(d, p) {
|
|
4747
|
+
O(d, t, p), u && u.m(t, null), x(t, r), x(t, n), x(n, i), m && m.m(i, null), x(i, o), x(i, a), a.innerHTML = /*randombuttonicon*/
|
|
4734
4748
|
e[0], e[28](t), s = !0, h || (l = Be(
|
|
4735
4749
|
i,
|
|
4736
4750
|
"click",
|
|
@@ -4738,156 +4752,156 @@ function jo(e) {
|
|
|
4738
4752
|
e[27]
|
|
4739
4753
|
), h = !0);
|
|
4740
4754
|
},
|
|
4741
|
-
p(
|
|
4755
|
+
p(d, p) {
|
|
4742
4756
|
/*show*/
|
|
4743
|
-
|
|
4744
|
-
32 && fe(u, 1)) : (u =
|
|
4757
|
+
d[5] ? u ? (u.p(d, p), p[0] & /*show*/
|
|
4758
|
+
32 && fe(u, 1)) : (u = Jt(d), u.c(), fe(u, 1), u.m(t, r)) : u && (yn(), Je(u, 1, 1, () => {
|
|
4745
4759
|
u = null;
|
|
4746
|
-
}),
|
|
4760
|
+
}), vn()), c === (c = f(d)) && m ? m.p(d, p) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(i, o))), (!s || p[0] & /*randombuttonicon*/
|
|
4747
4761
|
1) && (a.innerHTML = /*randombuttonicon*/
|
|
4748
|
-
|
|
4762
|
+
d[0]);
|
|
4749
4763
|
},
|
|
4750
|
-
i(
|
|
4764
|
+
i(d) {
|
|
4751
4765
|
s || (fe(u), s = !0);
|
|
4752
4766
|
},
|
|
4753
|
-
o(
|
|
4754
|
-
|
|
4767
|
+
o(d) {
|
|
4768
|
+
Je(u), s = !1;
|
|
4755
4769
|
},
|
|
4756
|
-
d(
|
|
4757
|
-
|
|
4770
|
+
d(d) {
|
|
4771
|
+
d && R(t), u && u.d(), m && m.d(), e[28](null), h = !1, l();
|
|
4758
4772
|
}
|
|
4759
4773
|
};
|
|
4760
4774
|
}
|
|
4761
|
-
function
|
|
4762
|
-
let
|
|
4763
|
-
|
|
4764
|
-
let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling:
|
|
4765
|
-
|
|
4766
|
-
const
|
|
4775
|
+
function Wo(e, t, r) {
|
|
4776
|
+
let n;
|
|
4777
|
+
tn(e, Ao, (b) => r(9, n = b));
|
|
4778
|
+
let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B, L = !1, N = !1, G = !1, be = window.navigator.userAgent, U, Q, mt, ge, dt = null;
|
|
4779
|
+
Mo({ withLocale: "en", translations: {} });
|
|
4780
|
+
const Lr = () => {
|
|
4767
4781
|
fetch(c).then((E) => E.json()).then((E) => {
|
|
4768
4782
|
Object.keys(E).forEach((F) => {
|
|
4769
|
-
|
|
4783
|
+
Vt(F, E[F]);
|
|
4770
4784
|
});
|
|
4771
4785
|
}).catch((E) => {
|
|
4772
4786
|
console.log(E);
|
|
4773
4787
|
});
|
|
4774
4788
|
};
|
|
4775
|
-
Object.keys(
|
|
4776
|
-
|
|
4789
|
+
Object.keys(Wt).forEach((b) => {
|
|
4790
|
+
Vt(b, Wt[b]);
|
|
4777
4791
|
});
|
|
4778
|
-
const
|
|
4792
|
+
const Nr = () => {
|
|
4779
4793
|
let b = new URL(`${a}/v1/casino/games`);
|
|
4780
|
-
b.searchParams.append("platform",
|
|
4781
|
-
H = E.items, H.length ? (
|
|
4794
|
+
b.searchParams.append("platform", Po(be)), b.searchParams.append("datasource", s), b.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), p && b.searchParams.append("filter", `groups=${p}`), b.searchParams.append("expand", "categories,vendor"), b.searchParams.append("pagination", "offset=0,limit=1000"), fetch(b.href).then((E) => E.json()).then((E) => {
|
|
4795
|
+
H = E.items, H.length ? (r(4, B = Cr(H.slice(0, 19))), r(7, G = !0)) : (r(4, B = []), r(7, G = !1));
|
|
4782
4796
|
}).catch((E) => {
|
|
4783
|
-
console.log(E),
|
|
4797
|
+
console.log(E), r(7, G = !1);
|
|
4784
4798
|
});
|
|
4785
|
-
},
|
|
4786
|
-
const E =
|
|
4799
|
+
}, Cr = (b) => {
|
|
4800
|
+
const E = Ur(b);
|
|
4787
4801
|
return E.concat(E);
|
|
4788
|
-
},
|
|
4789
|
-
yield
|
|
4802
|
+
}, Gr = () => ye(this, null, function* () {
|
|
4803
|
+
yield pn(), ge = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, r(3, T = B[ge]), mt = Q.children[ge];
|
|
4790
4804
|
}), Ce = () => ye(this, null, function* () {
|
|
4791
|
-
|
|
4792
|
-
const b = window.getComputedStyle(Q).getPropertyValue("gap"), E = parseInt(b, 10) || 0, le = (
|
|
4805
|
+
r(6, N = !1), r(5, L = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield Gr();
|
|
4806
|
+
const b = window.getComputedStyle(Q).getPropertyValue("gap"), E = parseInt(b, 10) || 0, le = (mt.offsetHeight + E) * ge, Xr = [
|
|
4793
4807
|
{ transform: "translateX(0px)" },
|
|
4794
4808
|
{ filter: "blur(5px)" },
|
|
4795
4809
|
{
|
|
4796
4810
|
transform: `translateY(-${le}px)`
|
|
4797
4811
|
}
|
|
4798
|
-
],
|
|
4812
|
+
], zr = {
|
|
4799
4813
|
duration: 2e3,
|
|
4800
4814
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
4801
4815
|
fill: "forwards"
|
|
4802
4816
|
};
|
|
4803
|
-
|
|
4804
|
-
|
|
4817
|
+
dt = Q.animate(Xr, zr), dt.onfinish = () => {
|
|
4818
|
+
r(6, N = !0);
|
|
4805
4819
|
};
|
|
4806
|
-
}),
|
|
4820
|
+
}), Ur = (b) => {
|
|
4807
4821
|
const E = structuredClone(b);
|
|
4808
4822
|
let F = E.length, le;
|
|
4809
4823
|
for (; F != 0; )
|
|
4810
4824
|
le = Math.floor(Math.random() * F), F--, [E[F], E[le]] = [E[le], E[F]];
|
|
4811
4825
|
return E;
|
|
4812
|
-
},
|
|
4826
|
+
}, pt = () => {
|
|
4813
4827
|
window.postMessage(
|
|
4814
4828
|
{
|
|
4815
4829
|
type: h,
|
|
4816
4830
|
gameId: T.gId || T.id
|
|
4817
4831
|
},
|
|
4818
4832
|
window.location.href
|
|
4819
|
-
),
|
|
4833
|
+
), r(5, L = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
|
|
4820
4834
|
context: "RandomGameWidget",
|
|
4821
4835
|
gameId: `${T.gId || T.id}`
|
|
4822
4836
|
});
|
|
4823
|
-
},
|
|
4824
|
-
|
|
4825
|
-
},
|
|
4826
|
-
|
|
4837
|
+
}, Fr = () => {
|
|
4838
|
+
r(5, L = !1), window.postMessage({ type: "RandomWidgetState", state: L }, window.location.href);
|
|
4839
|
+
}, Dr = () => {
|
|
4840
|
+
Lo(l);
|
|
4827
4841
|
};
|
|
4828
|
-
|
|
4842
|
+
dn(() => () => {
|
|
4829
4843
|
});
|
|
4830
|
-
function
|
|
4844
|
+
function $r(b) {
|
|
4831
4845
|
Ae[b ? "unshift" : "push"](() => {
|
|
4832
|
-
Q = b,
|
|
4846
|
+
Q = b, r(8, Q);
|
|
4833
4847
|
});
|
|
4834
4848
|
}
|
|
4835
|
-
const
|
|
4836
|
-
function
|
|
4849
|
+
const jr = () => Ce(), kr = () => pt(), Vr = () => Ce();
|
|
4850
|
+
function Wr(b) {
|
|
4837
4851
|
Ae[b ? "unshift" : "push"](() => {
|
|
4838
|
-
U = b,
|
|
4852
|
+
U = b, r(2, U);
|
|
4839
4853
|
});
|
|
4840
4854
|
}
|
|
4841
4855
|
return e.$$set = (b) => {
|
|
4842
|
-
"endpoint" in b &&
|
|
4856
|
+
"endpoint" in b && r(13, a = b.endpoint), "datasource" in b && r(14, s = b.datasource), "gameevent" in b && r(15, h = b.gameevent), "lang" in b && r(16, l = b.lang), "randombuttonicon" in b && r(0, u = b.randombuttonicon), "buttontext" in b && r(1, f = b.buttontext), "translationurl" in b && r(17, c = b.translationurl), "clientstyling" in b && r(18, m = b.clientstyling), "clientstylingurl" in b && r(19, d = b.clientstylingurl), "filteredrandomgamecategories" in b && r(20, p = b.filteredrandomgamecategories), "mbsource" in b && r(21, A = b.mbsource), "$$scope" in b && r(22, o = b.$$scope);
|
|
4843
4857
|
}, e.$$.update = () => {
|
|
4844
4858
|
e.$$.dirty[0] & /*lang*/
|
|
4845
|
-
65536 && l &&
|
|
4846
|
-
131072 && c &&
|
|
4847
|
-
24576 && a && s &&
|
|
4848
|
-
262148 &&
|
|
4849
|
-
524292 &&
|
|
4850
|
-
2097156 && U &&
|
|
4859
|
+
65536 && l && Dr(), e.$$.dirty[0] & /*translationurl*/
|
|
4860
|
+
131072 && c && Lr(), e.$$.dirty[0] & /*endpoint, datasource*/
|
|
4861
|
+
24576 && a && s && Nr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4862
|
+
262148 && m && U && Ro(U, m), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4863
|
+
524292 && d && U && Io(U, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4864
|
+
2097156 && U && Oo(U, `${A}.Style`);
|
|
4851
4865
|
}, [
|
|
4852
4866
|
u,
|
|
4853
4867
|
f,
|
|
4854
4868
|
U,
|
|
4855
4869
|
T,
|
|
4856
4870
|
B,
|
|
4857
|
-
M,
|
|
4858
4871
|
L,
|
|
4872
|
+
N,
|
|
4859
4873
|
G,
|
|
4860
4874
|
Q,
|
|
4861
|
-
|
|
4875
|
+
n,
|
|
4862
4876
|
Ce,
|
|
4863
|
-
|
|
4864
|
-
|
|
4877
|
+
pt,
|
|
4878
|
+
Fr,
|
|
4865
4879
|
a,
|
|
4866
4880
|
s,
|
|
4867
4881
|
h,
|
|
4868
4882
|
l,
|
|
4869
4883
|
c,
|
|
4870
|
-
d,
|
|
4871
4884
|
m,
|
|
4885
|
+
d,
|
|
4872
4886
|
p,
|
|
4873
4887
|
A,
|
|
4874
4888
|
o,
|
|
4875
4889
|
i,
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4890
|
+
$r,
|
|
4891
|
+
jr,
|
|
4892
|
+
kr,
|
|
4893
|
+
Vr,
|
|
4894
|
+
Wr
|
|
4881
4895
|
];
|
|
4882
4896
|
}
|
|
4883
|
-
class
|
|
4897
|
+
class Xo extends Tn {
|
|
4884
4898
|
constructor(t) {
|
|
4885
|
-
super(),
|
|
4899
|
+
super(), wn(
|
|
4886
4900
|
this,
|
|
4887
4901
|
t,
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4902
|
+
Wo,
|
|
4903
|
+
Vo,
|
|
4904
|
+
Yt,
|
|
4891
4905
|
{
|
|
4892
4906
|
endpoint: 13,
|
|
4893
4907
|
datasource: 14,
|
|
@@ -4909,70 +4923,70 @@ class Vo extends Er {
|
|
|
4909
4923
|
return this.$$.ctx[13];
|
|
4910
4924
|
}
|
|
4911
4925
|
set endpoint(t) {
|
|
4912
|
-
this.$$set({ endpoint: t }),
|
|
4926
|
+
this.$$set({ endpoint: t }), I();
|
|
4913
4927
|
}
|
|
4914
4928
|
get datasource() {
|
|
4915
4929
|
return this.$$.ctx[14];
|
|
4916
4930
|
}
|
|
4917
4931
|
set datasource(t) {
|
|
4918
|
-
this.$$set({ datasource: t }),
|
|
4932
|
+
this.$$set({ datasource: t }), I();
|
|
4919
4933
|
}
|
|
4920
4934
|
get gameevent() {
|
|
4921
4935
|
return this.$$.ctx[15];
|
|
4922
4936
|
}
|
|
4923
4937
|
set gameevent(t) {
|
|
4924
|
-
this.$$set({ gameevent: t }),
|
|
4938
|
+
this.$$set({ gameevent: t }), I();
|
|
4925
4939
|
}
|
|
4926
4940
|
get lang() {
|
|
4927
4941
|
return this.$$.ctx[16];
|
|
4928
4942
|
}
|
|
4929
4943
|
set lang(t) {
|
|
4930
|
-
this.$$set({ lang: t }),
|
|
4944
|
+
this.$$set({ lang: t }), I();
|
|
4931
4945
|
}
|
|
4932
4946
|
get randombuttonicon() {
|
|
4933
4947
|
return this.$$.ctx[0];
|
|
4934
4948
|
}
|
|
4935
4949
|
set randombuttonicon(t) {
|
|
4936
|
-
this.$$set({ randombuttonicon: t }),
|
|
4950
|
+
this.$$set({ randombuttonicon: t }), I();
|
|
4937
4951
|
}
|
|
4938
4952
|
get buttontext() {
|
|
4939
4953
|
return this.$$.ctx[1];
|
|
4940
4954
|
}
|
|
4941
4955
|
set buttontext(t) {
|
|
4942
|
-
this.$$set({ buttontext: t }),
|
|
4956
|
+
this.$$set({ buttontext: t }), I();
|
|
4943
4957
|
}
|
|
4944
4958
|
get translationurl() {
|
|
4945
4959
|
return this.$$.ctx[17];
|
|
4946
4960
|
}
|
|
4947
4961
|
set translationurl(t) {
|
|
4948
|
-
this.$$set({ translationurl: t }),
|
|
4962
|
+
this.$$set({ translationurl: t }), I();
|
|
4949
4963
|
}
|
|
4950
4964
|
get clientstyling() {
|
|
4951
4965
|
return this.$$.ctx[18];
|
|
4952
4966
|
}
|
|
4953
4967
|
set clientstyling(t) {
|
|
4954
|
-
this.$$set({ clientstyling: t }),
|
|
4968
|
+
this.$$set({ clientstyling: t }), I();
|
|
4955
4969
|
}
|
|
4956
4970
|
get clientstylingurl() {
|
|
4957
4971
|
return this.$$.ctx[19];
|
|
4958
4972
|
}
|
|
4959
4973
|
set clientstylingurl(t) {
|
|
4960
|
-
this.$$set({ clientstylingurl: t }),
|
|
4974
|
+
this.$$set({ clientstylingurl: t }), I();
|
|
4961
4975
|
}
|
|
4962
4976
|
get filteredrandomgamecategories() {
|
|
4963
4977
|
return this.$$.ctx[20];
|
|
4964
4978
|
}
|
|
4965
4979
|
set filteredrandomgamecategories(t) {
|
|
4966
|
-
this.$$set({ filteredrandomgamecategories: t }),
|
|
4980
|
+
this.$$set({ filteredrandomgamecategories: t }), I();
|
|
4967
4981
|
}
|
|
4968
4982
|
get mbsource() {
|
|
4969
4983
|
return this.$$.ctx[21];
|
|
4970
4984
|
}
|
|
4971
4985
|
set mbsource(t) {
|
|
4972
|
-
this.$$set({ mbsource: t }),
|
|
4986
|
+
this.$$set({ mbsource: t }), I();
|
|
4973
4987
|
}
|
|
4974
4988
|
}
|
|
4975
|
-
|
|
4989
|
+
Sn(Xo, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
|
|
4976
4990
|
export {
|
|
4977
|
-
|
|
4991
|
+
Xo as default
|
|
4978
4992
|
};
|