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