@everymatrix/casino-categories-providers 1.76.3 → 1.76.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategories-CwlYTalh.js → CasinoCategories-BqM-br8V.js} +746 -744
- package/components/{CasinoCategories-BImygVw4.js → CasinoCategories-CXLAuWYF.js} +728 -726
- package/components/CasinoCategories-D2i87Wp_.cjs +3 -0
- package/components/{CasinoCategoriesProviders-BHoYQ2ut.cjs → CasinoCategoriesProviders-BHRb__s-.cjs} +1 -1
- package/components/{CasinoCategoriesProviders-DzQk1OC-.js → CasinoCategoriesProviders-BhaINbEA.js} +18 -18
- package/components/{CasinoCategoriesProviders-v9Vo-YFA.js → CasinoCategoriesProviders-DMIdKBMn.js} +16 -16
- package/components/{CasinoProviders-DNWL194W.cjs → CasinoProviders-BFxUOmAA.cjs} +1 -1
- package/components/{CasinoProviders-BpSAc_EM.js → CasinoProviders-BMvB6Px6.js} +33 -33
- package/components/{CasinoProviders-JB15M5Vn.js → CasinoProviders-Bqh5jFuR.js} +33 -33
- package/es2015/casino-categories-providers.cjs +1 -1
- package/es2015/casino-categories-providers.js +1 -1
- package/esnext/casino-categories-providers.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652--F7PvMq9.js} +176 -176
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-CCFHkzJw.js} +187 -187
- package/stencil/{ui-image-DJWD4G-S.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-D3_FGUyo.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-CYuYAlOX.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CasinoCategories-B97ZfU61.cjs +0 -16
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var rr = Object.defineProperty, nr = Object.defineProperties;
|
|
2
|
+
var ir = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ye = Object.getOwnPropertySymbols;
|
|
4
|
+
var sr = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ae = (e, t, r) => t in e ? rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
sr.call(t, r) && Ae(e, r, t[r]);
|
|
8
|
+
if (Ye)
|
|
9
|
+
for (var r of Ye(t))
|
|
10
|
+
or.call(t, r) && Ae(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var N = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, et = (e, t) => nr(e, ir(t));
|
|
13
|
+
var N = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(h));
|
|
@@ -27,32 +27,32 @@ var et = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
30
|
+
import "../stencil/ui-image-C7s6Uvn5.js";
|
|
31
31
|
function L() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ct(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function rt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
e.forEach(
|
|
39
|
+
function he(e) {
|
|
40
|
+
e.forEach(Ct);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function We(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ht(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
|
-
let
|
|
49
|
-
function
|
|
50
|
-
return e === t ? !0 : (
|
|
48
|
+
let ce;
|
|
49
|
+
function ye(e, t) {
|
|
50
|
+
return e === t ? !0 : (ce || (ce = document.createElement("a")), ce.href = t, e === ce.href);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ar(e) {
|
|
53
53
|
return Object.keys(e).length === 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function St(e, ...t) {
|
|
56
56
|
if (e == null) {
|
|
57
57
|
for (const n of t)
|
|
58
58
|
n(void 0);
|
|
@@ -61,20 +61,20 @@ function Ht(e, ...t) {
|
|
|
61
61
|
const r = e.subscribe(...t);
|
|
62
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
e.$$.on_destroy.push(
|
|
64
|
+
function ur(e, t, r) {
|
|
65
|
+
e.$$.on_destroy.push(St(t, r));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function x(e, t) {
|
|
68
68
|
e.appendChild(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
const n =
|
|
70
|
+
function hr(e, t, r) {
|
|
71
|
+
const n = lr(e);
|
|
72
72
|
if (!n.getElementById(t)) {
|
|
73
|
-
const i =
|
|
74
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
const i = B("style");
|
|
74
|
+
i.id = t, i.textContent = r, fr(n, i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function lr(e) {
|
|
78
78
|
if (!e)
|
|
79
79
|
return document;
|
|
80
80
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -84,34 +84,34 @@ function hr(e) {
|
|
|
84
84
|
t
|
|
85
85
|
) : e.ownerDocument;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function fr(e, t) {
|
|
88
|
+
return x(
|
|
89
89
|
/** @type {Document} */
|
|
90
90
|
e.head || e,
|
|
91
91
|
t
|
|
92
92
|
), t.sheet;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ee(e, t, r) {
|
|
95
95
|
e.insertBefore(t, r || null);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function V(e) {
|
|
98
98
|
e.parentNode && e.parentNode.removeChild(e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function nt(e, t) {
|
|
101
101
|
for (let r = 0; r < e.length; r += 1)
|
|
102
102
|
e[r] && e[r].d(t);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function B(e) {
|
|
105
105
|
return document.createElement(e);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function G(e) {
|
|
108
108
|
return document.createTextNode(e);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
110
|
+
function D() {
|
|
111
|
+
return G(" ");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
return
|
|
113
|
+
function Oi() {
|
|
114
|
+
return G("");
|
|
115
115
|
}
|
|
116
116
|
function At(e, t, r, n) {
|
|
117
117
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -123,14 +123,14 @@ function R(e, t, r) {
|
|
|
123
123
|
const n = t.toLowerCase();
|
|
124
124
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : I(e, t, r);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function cr(e) {
|
|
127
127
|
return Array.from(e.childNodes);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function j(e, t) {
|
|
130
130
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
131
131
|
t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function gr(e) {
|
|
134
134
|
const t = {};
|
|
135
135
|
return e.childNodes.forEach(
|
|
136
136
|
/** @param {Element} node */
|
|
@@ -139,90 +139,90 @@ function cr(e) {
|
|
|
139
139
|
}
|
|
140
140
|
), t;
|
|
141
141
|
}
|
|
142
|
-
let
|
|
143
|
-
function
|
|
144
|
-
|
|
142
|
+
let oe;
|
|
143
|
+
function se(e) {
|
|
144
|
+
oe = e;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
if (!
|
|
146
|
+
function mr() {
|
|
147
|
+
if (!oe)
|
|
148
148
|
throw new Error("Function called outside component initialization");
|
|
149
|
-
return
|
|
149
|
+
return oe;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
151
|
+
function pr(e) {
|
|
152
|
+
mr().$$.on_mount.push(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
function
|
|
159
|
-
|
|
154
|
+
const Z = [], Me = [];
|
|
155
|
+
let Q = [];
|
|
156
|
+
const it = [], dr = /* @__PURE__ */ Promise.resolve();
|
|
157
|
+
let $e = !1;
|
|
158
|
+
function br() {
|
|
159
|
+
$e || ($e = !0, dr.then(M));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
161
|
+
function Re(e) {
|
|
162
|
+
Q.push(e);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
let
|
|
164
|
+
const Be = /* @__PURE__ */ new Set();
|
|
165
|
+
let z = 0;
|
|
166
166
|
function M() {
|
|
167
|
-
if (
|
|
167
|
+
if (z !== 0)
|
|
168
168
|
return;
|
|
169
|
-
const e =
|
|
169
|
+
const e = oe;
|
|
170
170
|
do {
|
|
171
171
|
try {
|
|
172
|
-
for (;
|
|
173
|
-
const t =
|
|
174
|
-
|
|
172
|
+
for (; z < Z.length; ) {
|
|
173
|
+
const t = Z[z];
|
|
174
|
+
z++, se(t), yr(t.$$);
|
|
175
175
|
}
|
|
176
176
|
} catch (t) {
|
|
177
|
-
throw
|
|
177
|
+
throw Z.length = 0, z = 0, t;
|
|
178
178
|
}
|
|
179
|
-
for (
|
|
180
|
-
|
|
181
|
-
for (let t = 0; t <
|
|
182
|
-
const r =
|
|
183
|
-
|
|
179
|
+
for (se(null), Z.length = 0, z = 0; Me.length; )
|
|
180
|
+
Me.pop()();
|
|
181
|
+
for (let t = 0; t < Q.length; t += 1) {
|
|
182
|
+
const r = Q[t];
|
|
183
|
+
Be.has(r) || (Be.add(r), r());
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
} while (
|
|
187
|
-
for (;
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
Q.length = 0;
|
|
186
|
+
} while (Z.length);
|
|
187
|
+
for (; it.length; )
|
|
188
|
+
it.pop()();
|
|
189
|
+
$e = !1, Be.clear(), se(e);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function yr(e) {
|
|
192
192
|
if (e.fragment !== null) {
|
|
193
|
-
e.update(),
|
|
193
|
+
e.update(), he(e.before_update);
|
|
194
194
|
const t = e.dirty;
|
|
195
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
195
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function _r(e) {
|
|
199
199
|
const t = [], r = [];
|
|
200
|
-
|
|
200
|
+
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
201
201
|
}
|
|
202
|
-
const
|
|
202
|
+
const Er = /* @__PURE__ */ new Set();
|
|
203
203
|
function xr(e, t) {
|
|
204
|
-
e && e.i && (
|
|
204
|
+
e && e.i && (Er.delete(e), e.i(t));
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function ge(e) {
|
|
207
207
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function vr(e, t, r) {
|
|
210
210
|
const { fragment: n, after_update: i } = e.$$;
|
|
211
|
-
n && n.m(t, r),
|
|
212
|
-
const s = e.$$.on_mount.map(
|
|
213
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
214
|
-
}), i.forEach(
|
|
211
|
+
n && n.m(t, r), Re(() => {
|
|
212
|
+
const s = e.$$.on_mount.map(Ct).filter(We);
|
|
213
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : he(s), e.$$.on_mount = [];
|
|
214
|
+
}), i.forEach(Re);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Tr(e, t) {
|
|
217
217
|
const r = e.$$;
|
|
218
|
-
r.fragment !== null && (
|
|
218
|
+
r.fragment !== null && (_r(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
e.$$.dirty[0] === -1 && (
|
|
220
|
+
function Cr(e, t) {
|
|
221
|
+
e.$$.dirty[0] === -1 && (Z.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const h =
|
|
225
|
-
|
|
223
|
+
function Hr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
224
|
+
const h = oe;
|
|
225
|
+
se(e);
|
|
226
226
|
const a = e.$$ = {
|
|
227
227
|
fragment: null,
|
|
228
228
|
ctx: [],
|
|
@@ -230,7 +230,7 @@ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
230
230
|
props: s,
|
|
231
231
|
update: L,
|
|
232
232
|
not_equal: i,
|
|
233
|
-
bound:
|
|
233
|
+
bound: rt(),
|
|
234
234
|
// lifecycle
|
|
235
235
|
on_mount: [],
|
|
236
236
|
on_destroy: [],
|
|
@@ -239,25 +239,25 @@ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
239
239
|
after_update: [],
|
|
240
240
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
241
241
|
// everything else
|
|
242
|
-
callbacks:
|
|
242
|
+
callbacks: rt(),
|
|
243
243
|
dirty: u,
|
|
244
244
|
skip_bound: !1,
|
|
245
245
|
root: t.target || h.$$.root
|
|
246
246
|
};
|
|
247
247
|
o && o(a.root);
|
|
248
248
|
let l = !1;
|
|
249
|
-
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
250
|
-
const
|
|
251
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] =
|
|
252
|
-
}) : [], a.update(), l = !0,
|
|
249
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
250
|
+
const d = p.length ? p[0] : f;
|
|
251
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && Cr(e, c)), f;
|
|
252
|
+
}) : [], a.update(), l = !0, he(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
253
253
|
if (t.hydrate) {
|
|
254
|
-
const c =
|
|
255
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
254
|
+
const c = cr(t.target);
|
|
255
|
+
a.fragment && a.fragment.l(c), c.forEach(V);
|
|
256
256
|
} else
|
|
257
257
|
a.fragment && a.fragment.c();
|
|
258
|
-
t.intro && xr(e.$$.fragment),
|
|
258
|
+
t.intro && xr(e.$$.fragment), vr(e, t.target, t.anchor), M();
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
se(h);
|
|
261
261
|
}
|
|
262
262
|
let Bt;
|
|
263
263
|
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
@@ -297,42 +297,42 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
connectedCallback() {
|
|
300
|
-
return
|
|
300
|
+
return tt(this, null, function* () {
|
|
301
301
|
if (this.$$cn = !0, !this.$$c) {
|
|
302
302
|
let t = function(s) {
|
|
303
303
|
return () => {
|
|
304
304
|
let o;
|
|
305
305
|
return {
|
|
306
306
|
c: function() {
|
|
307
|
-
o =
|
|
307
|
+
o = B("slot"), s !== "default" && I(o, "name", s);
|
|
308
308
|
},
|
|
309
309
|
/**
|
|
310
310
|
* @param {HTMLElement} target
|
|
311
311
|
* @param {HTMLElement} [anchor]
|
|
312
312
|
*/
|
|
313
313
|
m: function(a, l) {
|
|
314
|
-
|
|
314
|
+
ee(a, o, l);
|
|
315
315
|
},
|
|
316
316
|
d: function(a) {
|
|
317
|
-
a &&
|
|
317
|
+
a && V(o);
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
320
|
};
|
|
321
321
|
};
|
|
322
322
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
323
323
|
return;
|
|
324
|
-
const r = {}, n =
|
|
324
|
+
const r = {}, n = gr(this);
|
|
325
325
|
for (const s of this.$$s)
|
|
326
326
|
s in n && (r[s] = [t(s)]);
|
|
327
327
|
for (const s of this.attributes) {
|
|
328
328
|
const o = this.$$g_p(s.name);
|
|
329
|
-
o in this.$$d || (this.$$d[o] =
|
|
329
|
+
o in this.$$d || (this.$$d[o] = pe(o, s.value, this.$$p_d, "toProp"));
|
|
330
330
|
}
|
|
331
331
|
for (const s in this.$$p_d)
|
|
332
332
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
333
333
|
this.$$c = new this.$$ctor({
|
|
334
334
|
target: this.shadowRoot || this,
|
|
335
|
-
props: Ke(
|
|
335
|
+
props: et(Ke({}, this.$$d), {
|
|
336
336
|
$$slots: r,
|
|
337
337
|
$$scope: {
|
|
338
338
|
ctx: []
|
|
@@ -343,7 +343,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
343
343
|
this.$$r = !0;
|
|
344
344
|
for (const s in this.$$p_d)
|
|
345
345
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
346
|
-
const o =
|
|
346
|
+
const o = pe(
|
|
347
347
|
s,
|
|
348
348
|
this.$$d[s],
|
|
349
349
|
this.$$p_d,
|
|
@@ -367,7 +367,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
367
367
|
// and setting attributes through setAttribute etc, this is helpful
|
|
368
368
|
attributeChangedCallback(t, r, n) {
|
|
369
369
|
var i;
|
|
370
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
370
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = pe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
371
371
|
}
|
|
372
372
|
disconnectedCallback() {
|
|
373
373
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -380,7 +380,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
380
380
|
) || t;
|
|
381
381
|
}
|
|
382
382
|
});
|
|
383
|
-
function
|
|
383
|
+
function pe(e, t, r, n) {
|
|
384
384
|
var s;
|
|
385
385
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
386
386
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -410,7 +410,7 @@ function me(e, t, r, n) {
|
|
|
410
410
|
return t;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Sr(e, t, r, n, i, s) {
|
|
414
414
|
let o = class extends Bt {
|
|
415
415
|
constructor() {
|
|
416
416
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -428,7 +428,7 @@ function Hr(e, t, r, n, i, s) {
|
|
|
428
428
|
},
|
|
429
429
|
set(h) {
|
|
430
430
|
var a;
|
|
431
|
-
h =
|
|
431
|
+
h = pe(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
}), n.forEach((u) => {
|
|
@@ -462,7 +462,7 @@ class Ar {
|
|
|
462
462
|
}
|
|
463
463
|
/** @returns {void} */
|
|
464
464
|
$destroy() {
|
|
465
|
-
|
|
465
|
+
Tr(this, 1), this.$destroy = L;
|
|
466
466
|
}
|
|
467
467
|
/**
|
|
468
468
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -471,7 +471,7 @@ class Ar {
|
|
|
471
471
|
* @returns {() => void}
|
|
472
472
|
*/
|
|
473
473
|
$on(t, r) {
|
|
474
|
-
if (!
|
|
474
|
+
if (!We(r))
|
|
475
475
|
return L;
|
|
476
476
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
477
477
|
return n.push(r), () => {
|
|
@@ -484,29 +484,29 @@ class Ar {
|
|
|
484
484
|
* @returns {void}
|
|
485
485
|
*/
|
|
486
486
|
$set(t) {
|
|
487
|
-
this.$$set && !
|
|
487
|
+
this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
const Br = "4";
|
|
491
491
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
|
|
492
|
-
const
|
|
493
|
-
function
|
|
492
|
+
const W = [];
|
|
493
|
+
function Or(e, t) {
|
|
494
494
|
return {
|
|
495
|
-
subscribe:
|
|
495
|
+
subscribe: ve(e, t).subscribe
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function ve(e, t = L) {
|
|
499
499
|
let r;
|
|
500
500
|
const n = /* @__PURE__ */ new Set();
|
|
501
501
|
function i(u) {
|
|
502
|
-
if (
|
|
503
|
-
const h = !
|
|
502
|
+
if (Ht(e, u) && (e = u, r)) {
|
|
503
|
+
const h = !W.length;
|
|
504
504
|
for (const a of n)
|
|
505
|
-
a[1](),
|
|
505
|
+
a[1](), W.push(a, e);
|
|
506
506
|
if (h) {
|
|
507
|
-
for (let a = 0; a <
|
|
508
|
-
|
|
509
|
-
|
|
507
|
+
for (let a = 0; a < W.length; a += 2)
|
|
508
|
+
W[a][0](W[a + 1]);
|
|
509
|
+
W.length = 0;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
}
|
|
@@ -521,12 +521,12 @@ function xe(e, t = L) {
|
|
|
521
521
|
}
|
|
522
522
|
return { set: i, update: s, subscribe: o };
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function te(e, t, r) {
|
|
525
525
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
526
526
|
if (!i.every(Boolean))
|
|
527
527
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
528
528
|
const s = t.length < 2;
|
|
529
|
-
return
|
|
529
|
+
return Or(r, (o, u) => {
|
|
530
530
|
let h = !1;
|
|
531
531
|
const a = [];
|
|
532
532
|
let l = 0, c = L;
|
|
@@ -534,11 +534,11 @@ function ee(e, t, r) {
|
|
|
534
534
|
if (l)
|
|
535
535
|
return;
|
|
536
536
|
c();
|
|
537
|
-
const
|
|
538
|
-
s ? o(
|
|
539
|
-
},
|
|
540
|
-
(
|
|
541
|
-
|
|
537
|
+
const d = t(n ? a[0] : a, o, u);
|
|
538
|
+
s ? o(d) : c = We(d) ? d : L;
|
|
539
|
+
}, p = i.map(
|
|
540
|
+
(d, g) => St(
|
|
541
|
+
d,
|
|
542
542
|
(E) => {
|
|
543
543
|
a[g] = E, l &= ~(1 << g), h && f();
|
|
544
544
|
},
|
|
@@ -548,126 +548,112 @@ function ee(e, t, r) {
|
|
|
548
548
|
)
|
|
549
549
|
);
|
|
550
550
|
return h = !0, f(), function() {
|
|
551
|
-
|
|
551
|
+
he(p), c(), h = !1;
|
|
552
552
|
};
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
555
|
+
function wr(e) {
|
|
556
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
557
557
|
}
|
|
558
|
-
var
|
|
559
|
-
return
|
|
558
|
+
var Pr = function(t) {
|
|
559
|
+
return Nr(t) && !Lr(t);
|
|
560
560
|
};
|
|
561
|
-
function
|
|
561
|
+
function Nr(e) {
|
|
562
562
|
return !!e && typeof e == "object";
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Lr(e) {
|
|
565
565
|
var t = Object.prototype.toString.call(e);
|
|
566
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
567
|
-
}
|
|
568
|
-
var Lr = typeof Symbol == "function" && Symbol.for, Ir = Lr ? Symbol.for("react.element") : 60103;
|
|
569
|
-
function Mr(e) {
|
|
570
|
-
return e.$$typeof === Ir;
|
|
566
|
+
return t === "[object RegExp]" || t === "[object Date]" || $r(e);
|
|
571
567
|
}
|
|
568
|
+
var Ir = typeof Symbol == "function" && Symbol.for, Mr = Ir ? Symbol.for("react.element") : 60103;
|
|
572
569
|
function $r(e) {
|
|
570
|
+
return e.$$typeof === Mr;
|
|
571
|
+
}
|
|
572
|
+
function Rr(e) {
|
|
573
573
|
return Array.isArray(e) ? [] : {};
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
575
|
+
function ae(e, t) {
|
|
576
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(Rr(e), e, t) : e;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Ur(e, t, r) {
|
|
579
579
|
return e.concat(t).map(function(n) {
|
|
580
|
-
return
|
|
580
|
+
return ae(n, r);
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function Dr(e, t) {
|
|
584
584
|
if (!t.customMerge)
|
|
585
|
-
return
|
|
585
|
+
return q;
|
|
586
586
|
var r = t.customMerge(e);
|
|
587
|
-
return typeof r == "function" ? r :
|
|
587
|
+
return typeof r == "function" ? r : q;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Gr(e) {
|
|
590
590
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
591
591
|
return Object.propertyIsEnumerable.call(e, t);
|
|
592
592
|
}) : [];
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return Object.keys(e).concat(
|
|
594
|
+
function st(e) {
|
|
595
|
+
return Object.keys(e).concat(Gr(e));
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function Ot(e, t) {
|
|
598
598
|
try {
|
|
599
599
|
return t in e;
|
|
600
600
|
} catch (r) {
|
|
601
601
|
return !1;
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
604
|
+
function Fr(e, t) {
|
|
605
|
+
return Ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function jr(e, t, r) {
|
|
608
608
|
var n = {};
|
|
609
|
-
return r.isMergeableObject(e) &&
|
|
610
|
-
n[i] =
|
|
611
|
-
}),
|
|
612
|
-
|
|
609
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
610
|
+
n[i] = ae(e[i], r);
|
|
611
|
+
}), st(t).forEach(function(i) {
|
|
612
|
+
Fr(e, i) || (Ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dr(i, r)(e[i], t[i], r) : n[i] = ae(t[i], r));
|
|
613
613
|
}), n;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
616
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
615
|
+
function q(e, t, r) {
|
|
616
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ur, r.isMergeableObject = r.isMergeableObject || Pr, r.cloneUnlessOtherwiseSpecified = ae;
|
|
617
617
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
618
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
618
|
+
return s ? n ? r.arrayMerge(e, t, r) : jr(e, t, r) : ae(t, r);
|
|
619
619
|
}
|
|
620
|
-
|
|
620
|
+
q.all = function(t, r) {
|
|
621
621
|
if (!Array.isArray(t))
|
|
622
622
|
throw new Error("first argument should be an array");
|
|
623
623
|
return t.reduce(function(n, i) {
|
|
624
|
-
return
|
|
624
|
+
return q(n, i, r);
|
|
625
625
|
}, {});
|
|
626
626
|
};
|
|
627
|
-
var
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
633
|
-
purpose with or without fee is hereby granted.
|
|
634
|
-
|
|
635
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
636
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
637
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
638
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
639
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
640
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
641
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
642
|
-
***************************************************************************** */
|
|
643
|
-
var $e = function(e, t) {
|
|
644
|
-
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
627
|
+
var kr = q, Vr = kr;
|
|
628
|
+
const Xr = /* @__PURE__ */ wr(Vr);
|
|
629
|
+
var Ue = function(e, t) {
|
|
630
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
645
631
|
r.__proto__ = n;
|
|
646
632
|
} || function(r, n) {
|
|
647
633
|
for (var i in n)
|
|
648
634
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
649
|
-
},
|
|
635
|
+
}, Ue(e, t);
|
|
650
636
|
};
|
|
651
|
-
function
|
|
637
|
+
function Te(e, t) {
|
|
652
638
|
if (typeof t != "function" && t !== null)
|
|
653
639
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
654
|
-
|
|
640
|
+
Ue(e, t);
|
|
655
641
|
function r() {
|
|
656
642
|
this.constructor = e;
|
|
657
643
|
}
|
|
658
644
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
659
645
|
}
|
|
660
|
-
var
|
|
661
|
-
return
|
|
646
|
+
var U = function() {
|
|
647
|
+
return U = Object.assign || function(t) {
|
|
662
648
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
663
649
|
r = arguments[n];
|
|
664
650
|
for (var s in r)
|
|
665
651
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
666
652
|
}
|
|
667
653
|
return t;
|
|
668
|
-
},
|
|
654
|
+
}, U.apply(this, arguments);
|
|
669
655
|
};
|
|
670
|
-
function
|
|
656
|
+
function zr(e, t) {
|
|
671
657
|
var r = {};
|
|
672
658
|
for (var n in e)
|
|
673
659
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -676,46 +662,43 @@ function Xr(e, t) {
|
|
|
676
662
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
677
663
|
return r;
|
|
678
664
|
}
|
|
679
|
-
function
|
|
680
|
-
if (arguments.length === 2)
|
|
665
|
+
function Oe(e, t, r) {
|
|
666
|
+
if (r || arguments.length === 2)
|
|
681
667
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
682
668
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
683
|
-
return e.concat(s || t);
|
|
669
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
684
670
|
}
|
|
685
|
-
function
|
|
686
|
-
var r = t && t.cache ? t.cache :
|
|
671
|
+
function we(e, t) {
|
|
672
|
+
var r = t && t.cache ? t.cache : Kr, n = t && t.serializer ? t.serializer : Jr, i = t && t.strategy ? t.strategy : Qr;
|
|
687
673
|
return i(e, {
|
|
688
674
|
cache: r,
|
|
689
675
|
serializer: n
|
|
690
676
|
});
|
|
691
677
|
}
|
|
692
|
-
function
|
|
678
|
+
function Wr(e) {
|
|
693
679
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
694
680
|
}
|
|
695
|
-
function
|
|
696
|
-
var i =
|
|
681
|
+
function Zr(e, t, r, n) {
|
|
682
|
+
var i = Wr(n) ? n : r(n), s = t.get(i);
|
|
697
683
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
698
684
|
}
|
|
699
685
|
function wt(e, t, r) {
|
|
700
686
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
701
687
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
702
688
|
}
|
|
703
|
-
function
|
|
689
|
+
function Pt(e, t, r, n, i) {
|
|
704
690
|
return r.bind(t, e, n, i);
|
|
705
691
|
}
|
|
706
|
-
function Wr(e, t) {
|
|
707
|
-
var r = e.length === 1 ? Ot : wt;
|
|
708
|
-
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
709
|
-
}
|
|
710
|
-
function Zr(e, t) {
|
|
711
|
-
return ze(e, this, wt, t.cache.create(), t.serializer);
|
|
712
|
-
}
|
|
713
692
|
function Qr(e, t) {
|
|
714
|
-
|
|
693
|
+
var r = e.length === 1 ? Zr : wt;
|
|
694
|
+
return Pt(e, this, r, t.cache.create(), t.serializer);
|
|
715
695
|
}
|
|
716
|
-
|
|
696
|
+
function qr(e, t) {
|
|
697
|
+
return Pt(e, this, wt, t.cache.create(), t.serializer);
|
|
698
|
+
}
|
|
699
|
+
var Jr = function() {
|
|
717
700
|
return JSON.stringify(arguments);
|
|
718
|
-
},
|
|
701
|
+
}, Yr = (
|
|
719
702
|
/** @class */
|
|
720
703
|
function() {
|
|
721
704
|
function e() {
|
|
@@ -727,62 +710,71 @@ var qr = function() {
|
|
|
727
710
|
this.cache[t] = r;
|
|
728
711
|
}, e;
|
|
729
712
|
}()
|
|
730
|
-
),
|
|
713
|
+
), Kr = {
|
|
731
714
|
create: function() {
|
|
732
|
-
return new
|
|
715
|
+
return new Yr();
|
|
733
716
|
}
|
|
734
|
-
},
|
|
735
|
-
variadic:
|
|
736
|
-
|
|
737
|
-
|
|
717
|
+
}, Pe = {
|
|
718
|
+
variadic: qr
|
|
719
|
+
}, _e = function() {
|
|
720
|
+
return _e = Object.assign || function(t) {
|
|
721
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
722
|
+
r = arguments[n];
|
|
723
|
+
for (var s in r)
|
|
724
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
725
|
+
}
|
|
726
|
+
return t;
|
|
727
|
+
}, _e.apply(this, arguments);
|
|
728
|
+
};
|
|
729
|
+
var y;
|
|
738
730
|
(function(e) {
|
|
739
731
|
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";
|
|
740
732
|
})(y || (y = {}));
|
|
741
|
-
var
|
|
733
|
+
var v;
|
|
742
734
|
(function(e) {
|
|
743
735
|
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";
|
|
744
|
-
})(
|
|
745
|
-
var
|
|
736
|
+
})(v || (v = {}));
|
|
737
|
+
var J;
|
|
746
738
|
(function(e) {
|
|
747
739
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
748
|
-
})(
|
|
749
|
-
function
|
|
750
|
-
return e.type ===
|
|
751
|
-
}
|
|
752
|
-
function Kr(e) {
|
|
753
|
-
return e.type === T.argument;
|
|
740
|
+
})(J || (J = {}));
|
|
741
|
+
function ot(e) {
|
|
742
|
+
return e.type === v.literal;
|
|
754
743
|
}
|
|
755
|
-
function
|
|
756
|
-
return e.type ===
|
|
744
|
+
function en(e) {
|
|
745
|
+
return e.type === v.argument;
|
|
757
746
|
}
|
|
758
747
|
function Nt(e) {
|
|
759
|
-
return e.type ===
|
|
748
|
+
return e.type === v.number;
|
|
760
749
|
}
|
|
761
750
|
function Lt(e) {
|
|
762
|
-
return e.type ===
|
|
751
|
+
return e.type === v.date;
|
|
763
752
|
}
|
|
764
753
|
function It(e) {
|
|
765
|
-
return e.type ===
|
|
754
|
+
return e.type === v.time;
|
|
766
755
|
}
|
|
767
756
|
function Mt(e) {
|
|
768
|
-
return e.type ===
|
|
769
|
-
}
|
|
770
|
-
function en(e) {
|
|
771
|
-
return e.type === T.pound;
|
|
757
|
+
return e.type === v.select;
|
|
772
758
|
}
|
|
773
759
|
function $t(e) {
|
|
774
|
-
return e.type ===
|
|
760
|
+
return e.type === v.plural;
|
|
761
|
+
}
|
|
762
|
+
function tn(e) {
|
|
763
|
+
return e.type === v.pound;
|
|
775
764
|
}
|
|
776
765
|
function Rt(e) {
|
|
777
|
-
return
|
|
766
|
+
return e.type === v.tag;
|
|
778
767
|
}
|
|
779
|
-
function
|
|
780
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
768
|
+
function Ut(e) {
|
|
769
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
770
|
+
}
|
|
771
|
+
function De(e) {
|
|
772
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
781
773
|
}
|
|
782
|
-
var
|
|
783
|
-
function
|
|
774
|
+
var Dt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, rn = /(?:[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;
|
|
775
|
+
function nn(e) {
|
|
784
776
|
var t = {};
|
|
785
|
-
return e.replace(
|
|
777
|
+
return e.replace(rn, function(r) {
|
|
786
778
|
var n = r.length;
|
|
787
779
|
switch (r[0]) {
|
|
788
780
|
case "G":
|
|
@@ -871,11 +863,21 @@ function rn(e) {
|
|
|
871
863
|
return "";
|
|
872
864
|
}), t;
|
|
873
865
|
}
|
|
874
|
-
var
|
|
875
|
-
function
|
|
866
|
+
var C = function() {
|
|
867
|
+
return C = Object.assign || function(t) {
|
|
868
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
869
|
+
r = arguments[n];
|
|
870
|
+
for (var s in r)
|
|
871
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
872
|
+
}
|
|
873
|
+
return t;
|
|
874
|
+
}, C.apply(this, arguments);
|
|
875
|
+
};
|
|
876
|
+
var sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
877
|
+
function on(e) {
|
|
876
878
|
if (e.length === 0)
|
|
877
879
|
throw new Error("Number skeleton cannot be empty");
|
|
878
|
-
for (var t = e.split(
|
|
880
|
+
for (var t = e.split(sn).filter(function(f) {
|
|
879
881
|
return f.length > 0;
|
|
880
882
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
881
883
|
var s = i[n], o = s.split("/");
|
|
@@ -890,17 +892,17 @@ function sn(e) {
|
|
|
890
892
|
}
|
|
891
893
|
return r;
|
|
892
894
|
}
|
|
893
|
-
function
|
|
895
|
+
function an(e) {
|
|
894
896
|
return e.replace(/^(.*?)-/, "");
|
|
895
897
|
}
|
|
896
|
-
var
|
|
897
|
-
function
|
|
898
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gt = /^(@+)?(\+|#+)?[rs]?$/g, un = /(\*)(0+)|(#+)(0+)|(0+)/g, Ft = /^(0+)$/;
|
|
899
|
+
function ut(e) {
|
|
898
900
|
var t = {};
|
|
899
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
901
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gt, function(r, n, i) {
|
|
900
902
|
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)), "";
|
|
901
903
|
}), t;
|
|
902
904
|
}
|
|
903
|
-
function
|
|
905
|
+
function jt(e) {
|
|
904
906
|
switch (e) {
|
|
905
907
|
case "sign-auto":
|
|
906
908
|
return {
|
|
@@ -940,7 +942,7 @@ function Ft(e) {
|
|
|
940
942
|
};
|
|
941
943
|
}
|
|
942
944
|
}
|
|
943
|
-
function
|
|
945
|
+
function hn(e) {
|
|
944
946
|
var t;
|
|
945
947
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
946
948
|
notation: "engineering"
|
|
@@ -948,17 +950,17 @@ function un(e) {
|
|
|
948
950
|
notation: "scientific"
|
|
949
951
|
}, e = e.slice(1)), t) {
|
|
950
952
|
var r = e.slice(0, 2);
|
|
951
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
953
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ft.test(e))
|
|
952
954
|
throw new Error("Malformed concise eng/scientific notation");
|
|
953
955
|
t.minimumIntegerDigits = e.length;
|
|
954
956
|
}
|
|
955
957
|
return t;
|
|
956
958
|
}
|
|
957
|
-
function
|
|
958
|
-
var t = {}, r =
|
|
959
|
+
function ht(e) {
|
|
960
|
+
var t = {}, r = jt(e);
|
|
959
961
|
return r || t;
|
|
960
962
|
}
|
|
961
|
-
function
|
|
963
|
+
function ln(e) {
|
|
962
964
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
963
965
|
var i = n[r];
|
|
964
966
|
switch (i.stem) {
|
|
@@ -982,7 +984,7 @@ function hn(e) {
|
|
|
982
984
|
continue;
|
|
983
985
|
case "measure-unit":
|
|
984
986
|
case "unit":
|
|
985
|
-
t.style = "unit", t.unit =
|
|
987
|
+
t.style = "unit", t.unit = an(i.options[0]);
|
|
986
988
|
continue;
|
|
987
989
|
case "compact-short":
|
|
988
990
|
case "K":
|
|
@@ -993,13 +995,13 @@ function hn(e) {
|
|
|
993
995
|
t.notation = "compact", t.compactDisplay = "long";
|
|
994
996
|
continue;
|
|
995
997
|
case "scientific":
|
|
996
|
-
t =
|
|
997
|
-
return
|
|
998
|
+
t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
999
|
+
return C(C({}, h), ht(a));
|
|
998
1000
|
}, {}));
|
|
999
1001
|
continue;
|
|
1000
1002
|
case "engineering":
|
|
1001
|
-
t =
|
|
1002
|
-
return
|
|
1003
|
+
t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
1004
|
+
return C(C({}, h), ht(a));
|
|
1003
1005
|
}, {}));
|
|
1004
1006
|
continue;
|
|
1005
1007
|
case "notation-simple":
|
|
@@ -1044,45 +1046,45 @@ function hn(e) {
|
|
|
1044
1046
|
case "integer-width":
|
|
1045
1047
|
if (i.options.length > 1)
|
|
1046
1048
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1047
|
-
i.options[0].replace(
|
|
1049
|
+
i.options[0].replace(un, function(h, a, l, c, f, p) {
|
|
1048
1050
|
if (a)
|
|
1049
1051
|
t.minimumIntegerDigits = l.length;
|
|
1050
1052
|
else {
|
|
1051
1053
|
if (c && f)
|
|
1052
1054
|
throw new Error("We currently do not support maximum integer digits");
|
|
1053
|
-
if (
|
|
1055
|
+
if (p)
|
|
1054
1056
|
throw new Error("We currently do not support exact integer digits");
|
|
1055
1057
|
}
|
|
1056
1058
|
return "";
|
|
1057
1059
|
});
|
|
1058
1060
|
continue;
|
|
1059
1061
|
}
|
|
1060
|
-
if (
|
|
1062
|
+
if (Ft.test(i.stem)) {
|
|
1061
1063
|
t.minimumIntegerDigits = i.stem.length;
|
|
1062
1064
|
continue;
|
|
1063
1065
|
}
|
|
1064
|
-
if (
|
|
1066
|
+
if (at.test(i.stem)) {
|
|
1065
1067
|
if (i.options.length > 1)
|
|
1066
1068
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1067
|
-
i.stem.replace(
|
|
1068
|
-
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1069
|
+
i.stem.replace(at, function(h, a, l, c, f, p) {
|
|
1070
|
+
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1069
1071
|
});
|
|
1070
1072
|
var s = i.options[0];
|
|
1071
|
-
s === "w" ? t =
|
|
1073
|
+
s === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = C(C({}, t), ut(s)));
|
|
1072
1074
|
continue;
|
|
1073
1075
|
}
|
|
1074
|
-
if (
|
|
1075
|
-
t =
|
|
1076
|
+
if (Gt.test(i.stem)) {
|
|
1077
|
+
t = C(C({}, t), ut(i.stem));
|
|
1076
1078
|
continue;
|
|
1077
1079
|
}
|
|
1078
|
-
var o =
|
|
1079
|
-
o && (t =
|
|
1080
|
-
var u =
|
|
1081
|
-
u && (t =
|
|
1080
|
+
var o = jt(i.stem);
|
|
1081
|
+
o && (t = C(C({}, t), o));
|
|
1082
|
+
var u = hn(i.stem);
|
|
1083
|
+
u && (t = C(C({}, t), u));
|
|
1082
1084
|
}
|
|
1083
1085
|
return t;
|
|
1084
1086
|
}
|
|
1085
|
-
var
|
|
1087
|
+
var me = {
|
|
1086
1088
|
"001": [
|
|
1087
1089
|
"H",
|
|
1088
1090
|
"h"
|
|
@@ -2497,13 +2499,13 @@ var ge = {
|
|
|
2497
2499
|
"h"
|
|
2498
2500
|
]
|
|
2499
2501
|
};
|
|
2500
|
-
function
|
|
2502
|
+
function fn(e, t) {
|
|
2501
2503
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2502
2504
|
var i = e.charAt(n);
|
|
2503
2505
|
if (i === "j") {
|
|
2504
2506
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2505
2507
|
s++, n++;
|
|
2506
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a =
|
|
2508
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = cn(t);
|
|
2507
2509
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2508
2510
|
r += h;
|
|
2509
2511
|
for (; o-- > 0; )
|
|
@@ -2513,7 +2515,7 @@ function ln(e, t) {
|
|
|
2513
2515
|
}
|
|
2514
2516
|
return r;
|
|
2515
2517
|
}
|
|
2516
|
-
function
|
|
2518
|
+
function cn(e) {
|
|
2517
2519
|
var t = e.hourCycle;
|
|
2518
2520
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2519
2521
|
e.hourCycles && // @ts-ignore
|
|
@@ -2532,23 +2534,23 @@ function fn(e) {
|
|
|
2532
2534
|
}
|
|
2533
2535
|
var r = e.language, n;
|
|
2534
2536
|
r !== "root" && (n = e.maximize().region);
|
|
2535
|
-
var i =
|
|
2537
|
+
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
2536
2538
|
return i[0];
|
|
2537
2539
|
}
|
|
2538
|
-
var
|
|
2540
|
+
var Ne, gn = new RegExp("^".concat(Dt.source, "*")), mn = new RegExp("".concat(Dt.source, "*$"));
|
|
2539
2541
|
function _(e, t) {
|
|
2540
2542
|
return { start: e, end: t };
|
|
2541
2543
|
}
|
|
2542
|
-
var
|
|
2544
|
+
var pn = !!String.prototype.startsWith && "_a".startsWith("a", 1), dn = !!String.fromCodePoint, bn = !!Object.fromEntries, yn = !!String.prototype.codePointAt, _n = !!String.prototype.trimStart, En = !!String.prototype.trimEnd, xn = !!Number.isSafeInteger, vn = xn ? Number.isSafeInteger : function(e) {
|
|
2543
2545
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2544
|
-
},
|
|
2546
|
+
}, Ge = !0;
|
|
2545
2547
|
try {
|
|
2546
|
-
var
|
|
2547
|
-
|
|
2548
|
+
var Tn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2549
|
+
Ge = ((Ne = Tn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
|
|
2548
2550
|
} catch (e) {
|
|
2549
|
-
|
|
2551
|
+
Ge = !1;
|
|
2550
2552
|
}
|
|
2551
|
-
var
|
|
2553
|
+
var lt = pn ? (
|
|
2552
2554
|
// Native
|
|
2553
2555
|
function(t, r, n) {
|
|
2554
2556
|
return t.startsWith(r, n);
|
|
@@ -2558,7 +2560,7 @@ var ht = mn ? (
|
|
|
2558
2560
|
function(t, r, n) {
|
|
2559
2561
|
return t.slice(n, n + r.length) === r;
|
|
2560
2562
|
}
|
|
2561
|
-
),
|
|
2563
|
+
), Fe = dn ? String.fromCodePoint : (
|
|
2562
2564
|
// IE11
|
|
2563
2565
|
function() {
|
|
2564
2566
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2570,9 +2572,9 @@ var ht = mn ? (
|
|
|
2570
2572
|
}
|
|
2571
2573
|
return n;
|
|
2572
2574
|
}
|
|
2573
|
-
),
|
|
2575
|
+
), ft = (
|
|
2574
2576
|
// native
|
|
2575
|
-
|
|
2577
|
+
bn ? Object.fromEntries : (
|
|
2576
2578
|
// Ponyfill
|
|
2577
2579
|
function(t) {
|
|
2578
2580
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2582,7 +2584,7 @@ var ht = mn ? (
|
|
|
2582
2584
|
return r;
|
|
2583
2585
|
}
|
|
2584
2586
|
)
|
|
2585
|
-
),
|
|
2587
|
+
), kt = yn ? (
|
|
2586
2588
|
// Native
|
|
2587
2589
|
function(t, r) {
|
|
2588
2590
|
return t.codePointAt(r);
|
|
@@ -2596,7 +2598,7 @@ var ht = mn ? (
|
|
|
2596
2598
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2597
2599
|
}
|
|
2598
2600
|
}
|
|
2599
|
-
),
|
|
2601
|
+
), Cn = _n ? (
|
|
2600
2602
|
// Native
|
|
2601
2603
|
function(t) {
|
|
2602
2604
|
return t.trimStart();
|
|
@@ -2604,9 +2606,9 @@ var ht = mn ? (
|
|
|
2604
2606
|
) : (
|
|
2605
2607
|
// Ponyfill
|
|
2606
2608
|
function(t) {
|
|
2607
|
-
return t.replace(
|
|
2609
|
+
return t.replace(gn, "");
|
|
2608
2610
|
}
|
|
2609
|
-
),
|
|
2611
|
+
), Hn = En ? (
|
|
2610
2612
|
// Native
|
|
2611
2613
|
function(t) {
|
|
2612
2614
|
return t.trimEnd();
|
|
@@ -2614,32 +2616,32 @@ var ht = mn ? (
|
|
|
2614
2616
|
) : (
|
|
2615
2617
|
// Ponyfill
|
|
2616
2618
|
function(t) {
|
|
2617
|
-
return t.replace(
|
|
2619
|
+
return t.replace(mn, "");
|
|
2618
2620
|
}
|
|
2619
2621
|
);
|
|
2620
|
-
function
|
|
2622
|
+
function Vt(e, t) {
|
|
2621
2623
|
return new RegExp(e, t);
|
|
2622
2624
|
}
|
|
2623
|
-
var
|
|
2624
|
-
if (
|
|
2625
|
-
var
|
|
2626
|
-
|
|
2625
|
+
var je;
|
|
2626
|
+
if (Ge) {
|
|
2627
|
+
var ct = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2628
|
+
je = function(t, r) {
|
|
2627
2629
|
var n;
|
|
2628
|
-
|
|
2629
|
-
var i =
|
|
2630
|
+
ct.lastIndex = r;
|
|
2631
|
+
var i = ct.exec(t);
|
|
2630
2632
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2631
2633
|
};
|
|
2632
2634
|
} else
|
|
2633
|
-
|
|
2635
|
+
je = function(t, r) {
|
|
2634
2636
|
for (var n = []; ; ) {
|
|
2635
|
-
var i =
|
|
2636
|
-
if (i === void 0 ||
|
|
2637
|
+
var i = kt(t, r);
|
|
2638
|
+
if (i === void 0 || Xt(i) || On(i))
|
|
2637
2639
|
break;
|
|
2638
2640
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2639
2641
|
}
|
|
2640
|
-
return
|
|
2642
|
+
return Fe.apply(void 0, n);
|
|
2641
2643
|
};
|
|
2642
|
-
var
|
|
2644
|
+
var Sn = (
|
|
2643
2645
|
/** @class */
|
|
2644
2646
|
function() {
|
|
2645
2647
|
function e(t, r) {
|
|
@@ -2663,14 +2665,14 @@ var Hn = (
|
|
|
2663
2665
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2664
2666
|
var u = this.clonePosition();
|
|
2665
2667
|
this.bump(), i.push({
|
|
2666
|
-
type:
|
|
2668
|
+
type: v.pound,
|
|
2667
2669
|
location: _(u, this.clonePosition())
|
|
2668
2670
|
});
|
|
2669
2671
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2670
2672
|
if (n)
|
|
2671
2673
|
break;
|
|
2672
2674
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2673
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2675
|
+
} else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
2674
2676
|
var o = this.parseTag(t, r);
|
|
2675
2677
|
if (o.err)
|
|
2676
2678
|
return o;
|
|
@@ -2691,7 +2693,7 @@ var Hn = (
|
|
|
2691
2693
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2692
2694
|
return {
|
|
2693
2695
|
val: {
|
|
2694
|
-
type:
|
|
2696
|
+
type: v.literal,
|
|
2695
2697
|
value: "<".concat(i, "/>"),
|
|
2696
2698
|
location: _(n, this.clonePosition())
|
|
2697
2699
|
},
|
|
@@ -2703,12 +2705,12 @@ var Hn = (
|
|
|
2703
2705
|
return s;
|
|
2704
2706
|
var o = s.val, u = this.clonePosition();
|
|
2705
2707
|
if (this.bumpIf("</")) {
|
|
2706
|
-
if (this.isEOF() || !
|
|
2708
|
+
if (this.isEOF() || !ke(this.char()))
|
|
2707
2709
|
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2708
2710
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2709
2711
|
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2710
2712
|
val: {
|
|
2711
|
-
type:
|
|
2713
|
+
type: v.tag,
|
|
2712
2714
|
value: i,
|
|
2713
2715
|
children: o,
|
|
2714
2716
|
location: _(n, this.clonePosition())
|
|
@@ -2745,7 +2747,7 @@ var Hn = (
|
|
|
2745
2747
|
}
|
|
2746
2748
|
var h = _(n, this.clonePosition());
|
|
2747
2749
|
return {
|
|
2748
|
-
val: { type:
|
|
2750
|
+
val: { type: v.literal, value: i, location: h },
|
|
2749
2751
|
err: null
|
|
2750
2752
|
};
|
|
2751
2753
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2784,12 +2786,12 @@ var Hn = (
|
|
|
2784
2786
|
r.push(n);
|
|
2785
2787
|
this.bump();
|
|
2786
2788
|
}
|
|
2787
|
-
return
|
|
2789
|
+
return Fe.apply(void 0, r);
|
|
2788
2790
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2789
2791
|
if (this.isEOF())
|
|
2790
2792
|
return null;
|
|
2791
2793
|
var n = this.char();
|
|
2792
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2794
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2793
2795
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2794
2796
|
var n = this.clonePosition();
|
|
2795
2797
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2805,7 +2807,7 @@ var Hn = (
|
|
|
2805
2807
|
case 125:
|
|
2806
2808
|
return this.bump(), {
|
|
2807
2809
|
val: {
|
|
2808
|
-
type:
|
|
2810
|
+
type: v.argument,
|
|
2809
2811
|
// value does not include the opening and closing braces.
|
|
2810
2812
|
value: i,
|
|
2811
2813
|
location: _(n, this.clonePosition())
|
|
@@ -2818,7 +2820,7 @@ var Hn = (
|
|
|
2818
2820
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2819
2821
|
}
|
|
2820
2822
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2821
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2823
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2822
2824
|
this.bumpTo(i);
|
|
2823
2825
|
var s = this.clonePosition(), o = _(t, s);
|
|
2824
2826
|
return { value: n, location: o };
|
|
@@ -2837,44 +2839,44 @@ var Hn = (
|
|
|
2837
2839
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2838
2840
|
if (c.err)
|
|
2839
2841
|
return c;
|
|
2840
|
-
var f =
|
|
2842
|
+
var f = Hn(c.val);
|
|
2841
2843
|
if (f.length === 0)
|
|
2842
2844
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2843
|
-
var
|
|
2844
|
-
a = { style: f, styleLocation:
|
|
2845
|
+
var p = _(l, this.clonePosition());
|
|
2846
|
+
a = { style: f, styleLocation: p };
|
|
2845
2847
|
}
|
|
2846
|
-
var
|
|
2847
|
-
if (
|
|
2848
|
-
return
|
|
2848
|
+
var d = this.tryParseArgumentClose(i);
|
|
2849
|
+
if (d.err)
|
|
2850
|
+
return d;
|
|
2849
2851
|
var g = _(i, this.clonePosition());
|
|
2850
|
-
if (a &&
|
|
2851
|
-
var E =
|
|
2852
|
+
if (a && lt(a == null ? void 0 : a.style, "::", 0)) {
|
|
2853
|
+
var E = Cn(a.style.slice(2));
|
|
2852
2854
|
if (u === "number") {
|
|
2853
2855
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2854
2856
|
return c.err ? c : {
|
|
2855
|
-
val: { type:
|
|
2857
|
+
val: { type: v.number, value: n, location: g, style: c.val },
|
|
2856
2858
|
err: null
|
|
2857
2859
|
};
|
|
2858
2860
|
} else {
|
|
2859
2861
|
if (E.length === 0)
|
|
2860
2862
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2861
2863
|
var m = E;
|
|
2862
|
-
this.locale && (m =
|
|
2864
|
+
this.locale && (m = fn(E, this.locale));
|
|
2863
2865
|
var f = {
|
|
2864
|
-
type:
|
|
2866
|
+
type: J.dateTime,
|
|
2865
2867
|
pattern: m,
|
|
2866
2868
|
location: a.styleLocation,
|
|
2867
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2868
|
-
},
|
|
2869
|
+
parsedOptions: this.shouldParseSkeletons ? nn(m) : {}
|
|
2870
|
+
}, T = u === "date" ? v.date : v.time;
|
|
2869
2871
|
return {
|
|
2870
|
-
val: { type:
|
|
2872
|
+
val: { type: T, value: n, location: g, style: f },
|
|
2871
2873
|
err: null
|
|
2872
2874
|
};
|
|
2873
2875
|
}
|
|
2874
2876
|
}
|
|
2875
2877
|
return {
|
|
2876
2878
|
val: {
|
|
2877
|
-
type: u === "number" ?
|
|
2879
|
+
type: u === "number" ? v.number : u === "date" ? v.date : v.time,
|
|
2878
2880
|
value: n,
|
|
2879
2881
|
location: g,
|
|
2880
2882
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
@@ -2885,11 +2887,11 @@ var Hn = (
|
|
|
2885
2887
|
case "plural":
|
|
2886
2888
|
case "selectordinal":
|
|
2887
2889
|
case "select": {
|
|
2888
|
-
var
|
|
2890
|
+
var S = this.clonePosition();
|
|
2889
2891
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2890
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2892
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, _e({}, S)));
|
|
2891
2893
|
this.bumpSpace();
|
|
2892
|
-
var w = this.parseIdentifierIfPossible(),
|
|
2894
|
+
var w = this.parseIdentifierIfPossible(), A = 0;
|
|
2893
2895
|
if (u !== "select" && w.value === "offset") {
|
|
2894
2896
|
if (!this.bumpIf(":"))
|
|
2895
2897
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -2897,29 +2899,29 @@ var Hn = (
|
|
|
2897
2899
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2898
2900
|
if (c.err)
|
|
2899
2901
|
return c;
|
|
2900
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(),
|
|
2902
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), A = c.val;
|
|
2901
2903
|
}
|
|
2902
2904
|
var H = this.tryParsePluralOrSelectOptions(t, u, r, w);
|
|
2903
2905
|
if (H.err)
|
|
2904
2906
|
return H;
|
|
2905
|
-
var
|
|
2906
|
-
if (
|
|
2907
|
-
return
|
|
2907
|
+
var d = this.tryParseArgumentClose(i);
|
|
2908
|
+
if (d.err)
|
|
2909
|
+
return d;
|
|
2908
2910
|
var P = _(i, this.clonePosition());
|
|
2909
2911
|
return u === "select" ? {
|
|
2910
2912
|
val: {
|
|
2911
|
-
type:
|
|
2913
|
+
type: v.select,
|
|
2912
2914
|
value: n,
|
|
2913
|
-
options:
|
|
2915
|
+
options: ft(H.val),
|
|
2914
2916
|
location: P
|
|
2915
2917
|
},
|
|
2916
2918
|
err: null
|
|
2917
2919
|
} : {
|
|
2918
2920
|
val: {
|
|
2919
|
-
type:
|
|
2921
|
+
type: v.plural,
|
|
2920
2922
|
value: n,
|
|
2921
|
-
options:
|
|
2922
|
-
offset:
|
|
2923
|
+
options: ft(H.val),
|
|
2924
|
+
offset: A,
|
|
2923
2925
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2924
2926
|
location: P
|
|
2925
2927
|
},
|
|
@@ -2969,16 +2971,16 @@ var Hn = (
|
|
|
2969
2971
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2970
2972
|
var n = [];
|
|
2971
2973
|
try {
|
|
2972
|
-
n =
|
|
2974
|
+
n = on(t);
|
|
2973
2975
|
} catch (i) {
|
|
2974
2976
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2975
2977
|
}
|
|
2976
2978
|
return {
|
|
2977
2979
|
val: {
|
|
2978
|
-
type:
|
|
2980
|
+
type: J.number,
|
|
2979
2981
|
tokens: n,
|
|
2980
2982
|
location: r,
|
|
2981
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2983
|
+
parsedOptions: this.shouldParseSkeletons ? ln(n) : {}
|
|
2982
2984
|
},
|
|
2983
2985
|
err: null
|
|
2984
2986
|
};
|
|
@@ -2997,20 +2999,20 @@ var Hn = (
|
|
|
2997
2999
|
if (h.has(a))
|
|
2998
3000
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2999
3001
|
a === "other" && (o = !0), this.bumpSpace();
|
|
3000
|
-
var
|
|
3002
|
+
var p = this.clonePosition();
|
|
3001
3003
|
if (!this.bumpIf("{"))
|
|
3002
3004
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
3003
|
-
var
|
|
3004
|
-
if (
|
|
3005
|
-
return
|
|
3006
|
-
var g = this.tryParseArgumentClose(
|
|
3005
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3006
|
+
if (d.err)
|
|
3007
|
+
return d;
|
|
3008
|
+
var g = this.tryParseArgumentClose(p);
|
|
3007
3009
|
if (g.err)
|
|
3008
3010
|
return g;
|
|
3009
3011
|
u.push([
|
|
3010
3012
|
a,
|
|
3011
3013
|
{
|
|
3012
|
-
value:
|
|
3013
|
-
location: _(
|
|
3014
|
+
value: d.val,
|
|
3015
|
+
location: _(p, this.clonePosition())
|
|
3014
3016
|
}
|
|
3015
3017
|
]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
|
|
3016
3018
|
}
|
|
@@ -3026,7 +3028,7 @@ var Hn = (
|
|
|
3026
3028
|
break;
|
|
3027
3029
|
}
|
|
3028
3030
|
var h = _(i, this.clonePosition());
|
|
3029
|
-
return s ? (o *= n,
|
|
3031
|
+
return s ? (o *= n, vn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3030
3032
|
}, e.prototype.offset = function() {
|
|
3031
3033
|
return this.position.offset;
|
|
3032
3034
|
}, e.prototype.isEOF = function() {
|
|
@@ -3041,7 +3043,7 @@ var Hn = (
|
|
|
3041
3043
|
var t = this.position.offset;
|
|
3042
3044
|
if (t >= this.message.length)
|
|
3043
3045
|
throw Error("out of bound");
|
|
3044
|
-
var r =
|
|
3046
|
+
var r = kt(this.message, t);
|
|
3045
3047
|
if (r === void 0)
|
|
3046
3048
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3047
3049
|
return r;
|
|
@@ -3060,7 +3062,7 @@ var Hn = (
|
|
|
3060
3062
|
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);
|
|
3061
3063
|
}
|
|
3062
3064
|
}, e.prototype.bumpIf = function(t) {
|
|
3063
|
-
if (
|
|
3065
|
+
if (lt(this.message, t, this.offset())) {
|
|
3064
3066
|
for (var r = 0; r < t.length; r++)
|
|
3065
3067
|
this.bump();
|
|
3066
3068
|
return !0;
|
|
@@ -3082,7 +3084,7 @@ var Hn = (
|
|
|
3082
3084
|
break;
|
|
3083
3085
|
}
|
|
3084
3086
|
}, e.prototype.bumpSpace = function() {
|
|
3085
|
-
for (; !this.isEOF() &&
|
|
3087
|
+
for (; !this.isEOF() && Xt(this.char()); )
|
|
3086
3088
|
this.bump();
|
|
3087
3089
|
}, e.prototype.peek = function() {
|
|
3088
3090
|
if (this.isEOF())
|
|
@@ -3092,47 +3094,47 @@ var Hn = (
|
|
|
3092
3094
|
}, e;
|
|
3093
3095
|
}()
|
|
3094
3096
|
);
|
|
3095
|
-
function
|
|
3097
|
+
function ke(e) {
|
|
3096
3098
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3097
3099
|
}
|
|
3098
3100
|
function An(e) {
|
|
3099
|
-
return
|
|
3101
|
+
return ke(e) || e === 47;
|
|
3100
3102
|
}
|
|
3101
3103
|
function Bn(e) {
|
|
3102
3104
|
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;
|
|
3103
3105
|
}
|
|
3104
|
-
function
|
|
3106
|
+
function Xt(e) {
|
|
3105
3107
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3106
3108
|
}
|
|
3107
|
-
function
|
|
3109
|
+
function On(e) {
|
|
3108
3110
|
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;
|
|
3109
3111
|
}
|
|
3110
|
-
function
|
|
3112
|
+
function Ve(e) {
|
|
3111
3113
|
e.forEach(function(t) {
|
|
3112
|
-
if (delete t.location,
|
|
3114
|
+
if (delete t.location, Mt(t) || $t(t))
|
|
3113
3115
|
for (var r in t.options)
|
|
3114
|
-
delete t.options[r].location,
|
|
3116
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3115
3117
|
else
|
|
3116
|
-
|
|
3118
|
+
Nt(t) && Ut(t.style) || (Lt(t) || It(t)) && De(t.style) ? delete t.style.location : Rt(t) && Ve(t.children);
|
|
3117
3119
|
});
|
|
3118
3120
|
}
|
|
3119
|
-
function
|
|
3120
|
-
t === void 0 && (t = {}), t =
|
|
3121
|
-
var r = new
|
|
3121
|
+
function wn(e, t) {
|
|
3122
|
+
t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3123
|
+
var r = new Sn(e, t).parse();
|
|
3122
3124
|
if (r.err) {
|
|
3123
3125
|
var n = SyntaxError(y[r.err.kind]);
|
|
3124
3126
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3125
3127
|
}
|
|
3126
|
-
return t != null && t.captureLocation ||
|
|
3128
|
+
return t != null && t.captureLocation || Ve(r.val), r.val;
|
|
3127
3129
|
}
|
|
3128
|
-
var
|
|
3130
|
+
var Y;
|
|
3129
3131
|
(function(e) {
|
|
3130
3132
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3131
|
-
})(
|
|
3132
|
-
var
|
|
3133
|
+
})(Y || (Y = {}));
|
|
3134
|
+
var Ce = (
|
|
3133
3135
|
/** @class */
|
|
3134
3136
|
function(e) {
|
|
3135
|
-
|
|
3137
|
+
Te(t, e);
|
|
3136
3138
|
function t(r, n, i) {
|
|
3137
3139
|
var s = e.call(this, r) || this;
|
|
3138
3140
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3141,48 +3143,48 @@ var ve = (
|
|
|
3141
3143
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3142
3144
|
}, t;
|
|
3143
3145
|
}(Error)
|
|
3144
|
-
),
|
|
3146
|
+
), gt = (
|
|
3145
3147
|
/** @class */
|
|
3146
3148
|
function(e) {
|
|
3147
|
-
|
|
3149
|
+
Te(t, e);
|
|
3148
3150
|
function t(r, n, i, s) {
|
|
3149
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3151
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
|
|
3150
3152
|
}
|
|
3151
3153
|
return t;
|
|
3152
|
-
}(
|
|
3153
|
-
),
|
|
3154
|
+
}(Ce)
|
|
3155
|
+
), Pn = (
|
|
3154
3156
|
/** @class */
|
|
3155
3157
|
function(e) {
|
|
3156
|
-
|
|
3158
|
+
Te(t, e);
|
|
3157
3159
|
function t(r, n, i) {
|
|
3158
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3160
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3159
3161
|
}
|
|
3160
3162
|
return t;
|
|
3161
|
-
}(
|
|
3162
|
-
),
|
|
3163
|
+
}(Ce)
|
|
3164
|
+
), Nn = (
|
|
3163
3165
|
/** @class */
|
|
3164
3166
|
function(e) {
|
|
3165
|
-
|
|
3167
|
+
Te(t, e);
|
|
3166
3168
|
function t(r, n) {
|
|
3167
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3169
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3168
3170
|
}
|
|
3169
3171
|
return t;
|
|
3170
|
-
}(
|
|
3172
|
+
}(Ce)
|
|
3171
3173
|
), O;
|
|
3172
3174
|
(function(e) {
|
|
3173
3175
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3174
3176
|
})(O || (O = {}));
|
|
3175
|
-
function
|
|
3177
|
+
function Ln(e) {
|
|
3176
3178
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3177
3179
|
var n = t[t.length - 1];
|
|
3178
3180
|
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3179
3181
|
}, []);
|
|
3180
3182
|
}
|
|
3181
|
-
function
|
|
3183
|
+
function In(e) {
|
|
3182
3184
|
return typeof e == "function";
|
|
3183
3185
|
}
|
|
3184
3186
|
function de(e, t, r, n, i, s, o) {
|
|
3185
|
-
if (e.length === 1 &&
|
|
3187
|
+
if (e.length === 1 && ot(e[0]))
|
|
3186
3188
|
return [
|
|
3187
3189
|
{
|
|
3188
3190
|
type: O.literal,
|
|
@@ -3191,14 +3193,14 @@ function de(e, t, r, n, i, s, o) {
|
|
|
3191
3193
|
];
|
|
3192
3194
|
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
|
3193
3195
|
var l = a[h];
|
|
3194
|
-
if (
|
|
3196
|
+
if (ot(l)) {
|
|
3195
3197
|
u.push({
|
|
3196
3198
|
type: O.literal,
|
|
3197
3199
|
value: l.value
|
|
3198
3200
|
});
|
|
3199
3201
|
continue;
|
|
3200
3202
|
}
|
|
3201
|
-
if (
|
|
3203
|
+
if (tn(l)) {
|
|
3202
3204
|
typeof s == "number" && u.push({
|
|
3203
3205
|
type: O.literal,
|
|
3204
3206
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3207,89 +3209,89 @@ function de(e, t, r, n, i, s, o) {
|
|
|
3207
3209
|
}
|
|
3208
3210
|
var c = l.value;
|
|
3209
3211
|
if (!(i && c in i))
|
|
3210
|
-
throw new
|
|
3212
|
+
throw new Nn(c, o);
|
|
3211
3213
|
var f = i[c];
|
|
3212
|
-
if (
|
|
3214
|
+
if (en(l)) {
|
|
3213
3215
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3214
3216
|
type: typeof f == "string" ? O.literal : O.object,
|
|
3215
3217
|
value: f
|
|
3216
3218
|
});
|
|
3217
3219
|
continue;
|
|
3218
3220
|
}
|
|
3219
|
-
if (
|
|
3220
|
-
var
|
|
3221
|
+
if (Lt(l)) {
|
|
3222
|
+
var p = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3221
3223
|
u.push({
|
|
3222
3224
|
type: O.literal,
|
|
3223
|
-
value: r.getDateTimeFormat(t,
|
|
3225
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3224
3226
|
});
|
|
3225
3227
|
continue;
|
|
3226
3228
|
}
|
|
3227
|
-
if (
|
|
3228
|
-
var
|
|
3229
|
+
if (It(l)) {
|
|
3230
|
+
var p = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3229
3231
|
u.push({
|
|
3230
3232
|
type: O.literal,
|
|
3231
|
-
value: r.getDateTimeFormat(t,
|
|
3233
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3232
3234
|
});
|
|
3233
3235
|
continue;
|
|
3234
3236
|
}
|
|
3235
|
-
if (
|
|
3236
|
-
var
|
|
3237
|
-
|
|
3237
|
+
if (Nt(l)) {
|
|
3238
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Ut(l.style) ? l.style.parsedOptions : void 0;
|
|
3239
|
+
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3238
3240
|
type: O.literal,
|
|
3239
|
-
value: r.getNumberFormat(t,
|
|
3241
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3240
3242
|
});
|
|
3241
3243
|
continue;
|
|
3242
3244
|
}
|
|
3243
|
-
if (
|
|
3244
|
-
var
|
|
3245
|
-
if (!
|
|
3246
|
-
throw new
|
|
3247
|
-
var m = de(
|
|
3248
|
-
return
|
|
3245
|
+
if (Rt(l)) {
|
|
3246
|
+
var d = l.children, g = l.value, E = i[g];
|
|
3247
|
+
if (!In(E))
|
|
3248
|
+
throw new Pn(g, "function", o);
|
|
3249
|
+
var m = de(d, t, r, n, i, s), T = E(m.map(function(A) {
|
|
3250
|
+
return A.value;
|
|
3249
3251
|
}));
|
|
3250
|
-
Array.isArray(
|
|
3252
|
+
Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(A) {
|
|
3251
3253
|
return {
|
|
3252
|
-
type: typeof
|
|
3253
|
-
value:
|
|
3254
|
+
type: typeof A == "string" ? O.literal : O.object,
|
|
3255
|
+
value: A
|
|
3254
3256
|
};
|
|
3255
3257
|
}));
|
|
3256
3258
|
}
|
|
3257
|
-
if (
|
|
3258
|
-
var
|
|
3259
|
-
if (!
|
|
3260
|
-
throw new
|
|
3261
|
-
u.push.apply(u, de(
|
|
3259
|
+
if (Mt(l)) {
|
|
3260
|
+
var S = l.options[f] || l.options.other;
|
|
3261
|
+
if (!S)
|
|
3262
|
+
throw new gt(l.value, f, Object.keys(l.options), o);
|
|
3263
|
+
u.push.apply(u, de(S.value, t, r, n, i));
|
|
3262
3264
|
continue;
|
|
3263
3265
|
}
|
|
3264
|
-
if (
|
|
3265
|
-
var
|
|
3266
|
-
if (!
|
|
3266
|
+
if ($t(l)) {
|
|
3267
|
+
var S = l.options["=".concat(f)];
|
|
3268
|
+
if (!S) {
|
|
3267
3269
|
if (!Intl.PluralRules)
|
|
3268
|
-
throw new
|
|
3270
|
+
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
3269
3271
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3270
|
-
`,
|
|
3272
|
+
`, Y.MISSING_INTL_API, o);
|
|
3271
3273
|
var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3272
|
-
|
|
3274
|
+
S = l.options[w] || l.options.other;
|
|
3273
3275
|
}
|
|
3274
|
-
if (!
|
|
3275
|
-
throw new
|
|
3276
|
-
u.push.apply(u, de(
|
|
3276
|
+
if (!S)
|
|
3277
|
+
throw new gt(l.value, f, Object.keys(l.options), o);
|
|
3278
|
+
u.push.apply(u, de(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3277
3279
|
continue;
|
|
3278
3280
|
}
|
|
3279
3281
|
}
|
|
3280
|
-
return
|
|
3282
|
+
return Ln(u);
|
|
3281
3283
|
}
|
|
3282
|
-
function
|
|
3283
|
-
return t ?
|
|
3284
|
-
return r[n] =
|
|
3284
|
+
function Mn(e, t) {
|
|
3285
|
+
return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3286
|
+
return r[n] = U(U({}, e[n]), t[n] || {}), r;
|
|
3285
3287
|
}, {})) : e;
|
|
3286
3288
|
}
|
|
3287
|
-
function
|
|
3289
|
+
function $n(e, t) {
|
|
3288
3290
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3289
|
-
return r[n] =
|
|
3290
|
-
},
|
|
3291
|
+
return r[n] = Mn(e[n], t[n]), r;
|
|
3292
|
+
}, U({}, e)) : e;
|
|
3291
3293
|
}
|
|
3292
|
-
function
|
|
3294
|
+
function Le(e) {
|
|
3293
3295
|
return {
|
|
3294
3296
|
create: function() {
|
|
3295
3297
|
return {
|
|
@@ -3303,39 +3305,39 @@ function Pe(e) {
|
|
|
3303
3305
|
}
|
|
3304
3306
|
};
|
|
3305
3307
|
}
|
|
3306
|
-
function
|
|
3308
|
+
function Rn(e) {
|
|
3307
3309
|
return e === void 0 && (e = {
|
|
3308
3310
|
number: {},
|
|
3309
3311
|
dateTime: {},
|
|
3310
3312
|
pluralRules: {}
|
|
3311
3313
|
}), {
|
|
3312
|
-
getNumberFormat:
|
|
3314
|
+
getNumberFormat: we(function() {
|
|
3313
3315
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3314
3316
|
r[n] = arguments[n];
|
|
3315
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3317
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3316
3318
|
}, {
|
|
3317
|
-
cache:
|
|
3318
|
-
strategy:
|
|
3319
|
+
cache: Le(e.number),
|
|
3320
|
+
strategy: Pe.variadic
|
|
3319
3321
|
}),
|
|
3320
|
-
getDateTimeFormat:
|
|
3322
|
+
getDateTimeFormat: we(function() {
|
|
3321
3323
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3322
3324
|
r[n] = arguments[n];
|
|
3323
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3325
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3324
3326
|
}, {
|
|
3325
|
-
cache:
|
|
3326
|
-
strategy:
|
|
3327
|
+
cache: Le(e.dateTime),
|
|
3328
|
+
strategy: Pe.variadic
|
|
3327
3329
|
}),
|
|
3328
|
-
getPluralRules:
|
|
3330
|
+
getPluralRules: we(function() {
|
|
3329
3331
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3330
3332
|
r[n] = arguments[n];
|
|
3331
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3333
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3332
3334
|
}, {
|
|
3333
|
-
cache:
|
|
3334
|
-
strategy:
|
|
3335
|
+
cache: Le(e.pluralRules),
|
|
3336
|
+
strategy: Pe.variadic
|
|
3335
3337
|
})
|
|
3336
3338
|
};
|
|
3337
3339
|
}
|
|
3338
|
-
var
|
|
3340
|
+
var Un = (
|
|
3339
3341
|
/** @class */
|
|
3340
3342
|
function() {
|
|
3341
3343
|
function e(t, r, n, i) {
|
|
@@ -3367,13 +3369,13 @@ var Rn = (
|
|
|
3367
3369
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3368
3370
|
var o = i || {};
|
|
3369
3371
|
o.formatters;
|
|
3370
|
-
var u =
|
|
3371
|
-
this.ast = e.__parse(t,
|
|
3372
|
+
var u = zr(o, ["formatters"]);
|
|
3373
|
+
this.ast = e.__parse(t, U(U({}, u), { locale: this.resolvedLocale }));
|
|
3372
3374
|
} else
|
|
3373
3375
|
this.ast = t;
|
|
3374
3376
|
if (!Array.isArray(this.ast))
|
|
3375
3377
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3376
|
-
this.formats =
|
|
3378
|
+
this.formats = $n(e.formats, n), this.formatters = i && i.formatters || Rn(this.formatterCache);
|
|
3377
3379
|
}
|
|
3378
3380
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3379
3381
|
get: function() {
|
|
@@ -3386,7 +3388,7 @@ var Rn = (
|
|
|
3386
3388
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3387
3389
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3388
3390
|
}
|
|
3389
|
-
}, e.__parse =
|
|
3391
|
+
}, e.__parse = wn, e.formats = {
|
|
3390
3392
|
number: {
|
|
3391
3393
|
integer: {
|
|
3392
3394
|
maximumFractionDigits: 0
|
|
@@ -3447,7 +3449,7 @@ var Rn = (
|
|
|
3447
3449
|
}, e;
|
|
3448
3450
|
}()
|
|
3449
3451
|
);
|
|
3450
|
-
function
|
|
3452
|
+
function Dn(e, t) {
|
|
3451
3453
|
if (t == null)
|
|
3452
3454
|
return;
|
|
3453
3455
|
if (t in e)
|
|
@@ -3468,92 +3470,92 @@ function Un(e, t) {
|
|
|
3468
3470
|
n = void 0;
|
|
3469
3471
|
return n;
|
|
3470
3472
|
}
|
|
3471
|
-
const
|
|
3473
|
+
const F = {}, Gn = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), zt = (e, t) => {
|
|
3472
3474
|
if (t == null)
|
|
3473
3475
|
return;
|
|
3474
|
-
if (t in
|
|
3475
|
-
return
|
|
3476
|
-
const r =
|
|
3476
|
+
if (t in F && e in F[t])
|
|
3477
|
+
return F[t][e];
|
|
3478
|
+
const r = He(t);
|
|
3477
3479
|
for (let n = 0; n < r.length; n++) {
|
|
3478
|
-
const i = r[n], s =
|
|
3480
|
+
const i = r[n], s = jn(i, e);
|
|
3479
3481
|
if (s)
|
|
3480
|
-
return
|
|
3482
|
+
return Gn(e, t, s);
|
|
3481
3483
|
}
|
|
3482
3484
|
};
|
|
3483
|
-
let
|
|
3484
|
-
const
|
|
3485
|
-
function
|
|
3486
|
-
return
|
|
3485
|
+
let Ze;
|
|
3486
|
+
const le = ve({});
|
|
3487
|
+
function Fn(e) {
|
|
3488
|
+
return Ze[e] || null;
|
|
3487
3489
|
}
|
|
3488
|
-
function
|
|
3489
|
-
return e in
|
|
3490
|
+
function Wt(e) {
|
|
3491
|
+
return e in Ze;
|
|
3490
3492
|
}
|
|
3491
|
-
function
|
|
3492
|
-
if (!
|
|
3493
|
+
function jn(e, t) {
|
|
3494
|
+
if (!Wt(e))
|
|
3493
3495
|
return null;
|
|
3494
|
-
const r =
|
|
3495
|
-
return
|
|
3496
|
+
const r = Fn(e);
|
|
3497
|
+
return Dn(r, t);
|
|
3496
3498
|
}
|
|
3497
|
-
function
|
|
3499
|
+
function kn(e) {
|
|
3498
3500
|
if (e == null)
|
|
3499
3501
|
return;
|
|
3500
|
-
const t =
|
|
3502
|
+
const t = He(e);
|
|
3501
3503
|
for (let r = 0; r < t.length; r++) {
|
|
3502
3504
|
const n = t[r];
|
|
3503
|
-
if (
|
|
3505
|
+
if (Wt(n))
|
|
3504
3506
|
return n;
|
|
3505
3507
|
}
|
|
3506
3508
|
}
|
|
3507
|
-
function
|
|
3508
|
-
delete
|
|
3509
|
+
function Zt(e, ...t) {
|
|
3510
|
+
delete F[e], le.update((r) => (r[e] = Xr.all([r[e] || {}, ...t]), r));
|
|
3509
3511
|
}
|
|
3510
|
-
|
|
3511
|
-
[
|
|
3512
|
+
te(
|
|
3513
|
+
[le],
|
|
3512
3514
|
([e]) => Object.keys(e)
|
|
3513
3515
|
);
|
|
3514
|
-
|
|
3515
|
-
const
|
|
3516
|
-
function
|
|
3517
|
-
|
|
3516
|
+
le.subscribe((e) => Ze = e);
|
|
3517
|
+
const be = {};
|
|
3518
|
+
function Vn(e, t) {
|
|
3519
|
+
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3518
3520
|
}
|
|
3519
|
-
function
|
|
3520
|
-
return
|
|
3521
|
+
function Qt(e) {
|
|
3522
|
+
return be[e];
|
|
3521
3523
|
}
|
|
3522
|
-
function
|
|
3523
|
-
return
|
|
3524
|
-
const r =
|
|
3524
|
+
function Xn(e) {
|
|
3525
|
+
return He(e).map((t) => {
|
|
3526
|
+
const r = Qt(t);
|
|
3525
3527
|
return [t, r ? [...r] : []];
|
|
3526
3528
|
}).filter(([, t]) => t.length > 0);
|
|
3527
3529
|
}
|
|
3528
|
-
function
|
|
3529
|
-
return e == null ? !1 :
|
|
3530
|
+
function Xe(e) {
|
|
3531
|
+
return e == null ? !1 : He(e).some(
|
|
3530
3532
|
(t) => {
|
|
3531
3533
|
var r;
|
|
3532
|
-
return (r =
|
|
3534
|
+
return (r = Qt(t)) == null ? void 0 : r.size;
|
|
3533
3535
|
}
|
|
3534
3536
|
);
|
|
3535
3537
|
}
|
|
3536
|
-
function
|
|
3538
|
+
function zn(e, t) {
|
|
3537
3539
|
return Promise.all(
|
|
3538
|
-
t.map((n) => (
|
|
3539
|
-
).then((n) =>
|
|
3540
|
-
}
|
|
3541
|
-
const
|
|
3542
|
-
function
|
|
3543
|
-
if (!
|
|
3544
|
-
return e in
|
|
3545
|
-
const t =
|
|
3546
|
-
return
|
|
3540
|
+
t.map((n) => (Vn(e, n), n().then((i) => i.default || i)))
|
|
3541
|
+
).then((n) => Zt(e, ...n));
|
|
3542
|
+
}
|
|
3543
|
+
const ie = {};
|
|
3544
|
+
function qt(e) {
|
|
3545
|
+
if (!Xe(e))
|
|
3546
|
+
return e in ie ? ie[e] : Promise.resolve();
|
|
3547
|
+
const t = Xn(e);
|
|
3548
|
+
return ie[e] = Promise.all(
|
|
3547
3549
|
t.map(
|
|
3548
|
-
([r, n]) =>
|
|
3550
|
+
([r, n]) => zn(r, n)
|
|
3549
3551
|
)
|
|
3550
3552
|
).then(() => {
|
|
3551
|
-
if (
|
|
3552
|
-
return
|
|
3553
|
-
delete
|
|
3554
|
-
}),
|
|
3553
|
+
if (Xe(e))
|
|
3554
|
+
return qt(e);
|
|
3555
|
+
delete ie[e];
|
|
3556
|
+
}), ie[e];
|
|
3555
3557
|
}
|
|
3556
|
-
const
|
|
3558
|
+
const Wn = {
|
|
3557
3559
|
number: {
|
|
3558
3560
|
scientific: { notation: "scientific" },
|
|
3559
3561
|
engineering: { notation: "engineering" },
|
|
@@ -3582,150 +3584,150 @@ const zn = {
|
|
|
3582
3584
|
timeZoneName: "short"
|
|
3583
3585
|
}
|
|
3584
3586
|
}
|
|
3585
|
-
},
|
|
3587
|
+
}, Zn = {
|
|
3586
3588
|
fallbackLocale: null,
|
|
3587
3589
|
loadingDelay: 200,
|
|
3588
|
-
formats:
|
|
3590
|
+
formats: Wn,
|
|
3589
3591
|
warnOnMissingMessages: !0,
|
|
3590
3592
|
handleMissingMessage: void 0,
|
|
3591
3593
|
ignoreTag: !0
|
|
3592
|
-
},
|
|
3593
|
-
function
|
|
3594
|
-
return
|
|
3595
|
-
}
|
|
3596
|
-
const
|
|
3597
|
-
var
|
|
3598
|
-
for (var r in t)
|
|
3599
|
-
|
|
3600
|
-
if (
|
|
3601
|
-
for (var r of
|
|
3602
|
-
|
|
3594
|
+
}, Qn = Zn;
|
|
3595
|
+
function K() {
|
|
3596
|
+
return Qn;
|
|
3597
|
+
}
|
|
3598
|
+
const Ie = ve(!1);
|
|
3599
|
+
var qn = Object.defineProperty, Jn = Object.defineProperties, Yn = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ti = (e, t) => {
|
|
3600
|
+
for (var r in t || (t = {}))
|
|
3601
|
+
Kn.call(t, r) && pt(e, r, t[r]);
|
|
3602
|
+
if (mt)
|
|
3603
|
+
for (var r of mt(t))
|
|
3604
|
+
ei.call(t, r) && pt(e, r, t[r]);
|
|
3603
3605
|
return e;
|
|
3604
|
-
},
|
|
3605
|
-
let
|
|
3606
|
-
const
|
|
3606
|
+
}, ri = (e, t) => Jn(e, Yn(t));
|
|
3607
|
+
let ze;
|
|
3608
|
+
const Ee = ve(null);
|
|
3607
3609
|
function dt(e) {
|
|
3608
3610
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3609
3611
|
}
|
|
3610
|
-
function
|
|
3612
|
+
function He(e, t = K().fallbackLocale) {
|
|
3611
3613
|
const r = dt(e);
|
|
3612
3614
|
return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
|
|
3613
3615
|
}
|
|
3614
|
-
function
|
|
3615
|
-
return
|
|
3616
|
+
function X() {
|
|
3617
|
+
return ze != null ? ze : void 0;
|
|
3616
3618
|
}
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
+
Ee.subscribe((e) => {
|
|
3620
|
+
ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3619
3621
|
});
|
|
3620
|
-
const
|
|
3621
|
-
if (e &&
|
|
3622
|
-
const { loadingDelay: t } =
|
|
3622
|
+
const ni = (e) => {
|
|
3623
|
+
if (e && kn(e) && Xe(e)) {
|
|
3624
|
+
const { loadingDelay: t } = K();
|
|
3623
3625
|
let r;
|
|
3624
|
-
return typeof window != "undefined" &&
|
|
3625
|
-
() =>
|
|
3626
|
+
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
|
3627
|
+
() => Ie.set(!0),
|
|
3626
3628
|
t
|
|
3627
|
-
) :
|
|
3628
|
-
|
|
3629
|
+
) : Ie.set(!0), qt(e).then(() => {
|
|
3630
|
+
Ee.set(e);
|
|
3629
3631
|
}).finally(() => {
|
|
3630
|
-
clearTimeout(r),
|
|
3632
|
+
clearTimeout(r), Ie.set(!1);
|
|
3631
3633
|
});
|
|
3632
3634
|
}
|
|
3633
|
-
return
|
|
3634
|
-
},
|
|
3635
|
-
set:
|
|
3636
|
-
}),
|
|
3635
|
+
return Ee.set(e);
|
|
3636
|
+
}, re = ri(ti({}, Ee), {
|
|
3637
|
+
set: ni
|
|
3638
|
+
}), Se = (e) => {
|
|
3637
3639
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3638
3640
|
return (n) => {
|
|
3639
3641
|
const i = JSON.stringify(n);
|
|
3640
3642
|
return i in t ? t[i] : t[i] = e(n);
|
|
3641
3643
|
};
|
|
3642
3644
|
};
|
|
3643
|
-
var
|
|
3645
|
+
var ii = Object.defineProperty, xe = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3644
3646
|
for (var r in t || (t = {}))
|
|
3645
|
-
|
|
3646
|
-
if (
|
|
3647
|
-
for (var r of
|
|
3648
|
-
|
|
3647
|
+
Jt.call(t, r) && bt(e, r, t[r]);
|
|
3648
|
+
if (xe)
|
|
3649
|
+
for (var r of xe(t))
|
|
3650
|
+
Yt.call(t, r) && bt(e, r, t[r]);
|
|
3649
3651
|
return e;
|
|
3650
|
-
},
|
|
3652
|
+
}, ne = (e, t) => {
|
|
3651
3653
|
var r = {};
|
|
3652
3654
|
for (var n in e)
|
|
3653
|
-
|
|
3654
|
-
if (e != null &&
|
|
3655
|
-
for (var n of
|
|
3656
|
-
t.indexOf(n) < 0 &&
|
|
3655
|
+
Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3656
|
+
if (e != null && xe)
|
|
3657
|
+
for (var n of xe(e))
|
|
3658
|
+
t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
|
|
3657
3659
|
return r;
|
|
3658
3660
|
};
|
|
3659
|
-
const
|
|
3660
|
-
const { formats: r } =
|
|
3661
|
+
const ue = (e, t) => {
|
|
3662
|
+
const { formats: r } = K();
|
|
3661
3663
|
if (e in r && t in r[e])
|
|
3662
3664
|
return r[e][t];
|
|
3663
3665
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3664
|
-
},
|
|
3666
|
+
}, si = Se(
|
|
3665
3667
|
(e) => {
|
|
3666
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3668
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
3667
3669
|
if (r == null)
|
|
3668
3670
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3669
|
-
return n && (i =
|
|
3671
|
+
return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
|
|
3670
3672
|
}
|
|
3671
|
-
),
|
|
3673
|
+
), oi = Se(
|
|
3672
3674
|
(e) => {
|
|
3673
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3675
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
3674
3676
|
if (r == null)
|
|
3675
3677
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3676
|
-
return n ? i =
|
|
3678
|
+
return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3677
3679
|
}
|
|
3678
|
-
),
|
|
3680
|
+
), ai = Se(
|
|
3679
3681
|
(e) => {
|
|
3680
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3682
|
+
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
3681
3683
|
if (r == null)
|
|
3682
3684
|
throw new Error(
|
|
3683
3685
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3684
3686
|
);
|
|
3685
|
-
return n ? i =
|
|
3687
|
+
return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3686
3688
|
}
|
|
3687
|
-
),
|
|
3689
|
+
), ui = (e = {}) => {
|
|
3688
3690
|
var t = e, {
|
|
3689
|
-
locale: r =
|
|
3690
|
-
} = t, n =
|
|
3691
|
+
locale: r = X()
|
|
3692
|
+
} = t, n = ne(t, [
|
|
3691
3693
|
"locale"
|
|
3692
3694
|
]);
|
|
3693
|
-
return
|
|
3694
|
-
},
|
|
3695
|
+
return si(Qe({ locale: r }, n));
|
|
3696
|
+
}, hi = (e = {}) => {
|
|
3695
3697
|
var t = e, {
|
|
3696
|
-
locale: r =
|
|
3697
|
-
} = t, n =
|
|
3698
|
+
locale: r = X()
|
|
3699
|
+
} = t, n = ne(t, [
|
|
3698
3700
|
"locale"
|
|
3699
3701
|
]);
|
|
3700
|
-
return
|
|
3701
|
-
},
|
|
3702
|
+
return oi(Qe({ locale: r }, n));
|
|
3703
|
+
}, li = (e = {}) => {
|
|
3702
3704
|
var t = e, {
|
|
3703
|
-
locale: r =
|
|
3704
|
-
} = t, n =
|
|
3705
|
+
locale: r = X()
|
|
3706
|
+
} = t, n = ne(t, [
|
|
3705
3707
|
"locale"
|
|
3706
3708
|
]);
|
|
3707
|
-
return
|
|
3708
|
-
},
|
|
3709
|
+
return ai(Qe({ locale: r }, n));
|
|
3710
|
+
}, fi = Se(
|
|
3709
3711
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3710
|
-
(e, t =
|
|
3711
|
-
ignoreTag:
|
|
3712
|
+
(e, t = X()) => new Un(e, t, K().formats, {
|
|
3713
|
+
ignoreTag: K().ignoreTag
|
|
3712
3714
|
})
|
|
3713
|
-
),
|
|
3715
|
+
), ci = (e, t = {}) => {
|
|
3714
3716
|
var r, n, i, s;
|
|
3715
3717
|
let o = t;
|
|
3716
3718
|
typeof e == "object" && (o = e, e = o.id);
|
|
3717
3719
|
const {
|
|
3718
3720
|
values: u,
|
|
3719
|
-
locale: h =
|
|
3721
|
+
locale: h = X(),
|
|
3720
3722
|
default: a
|
|
3721
3723
|
} = o;
|
|
3722
3724
|
if (h == null)
|
|
3723
3725
|
throw new Error(
|
|
3724
3726
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3725
3727
|
);
|
|
3726
|
-
let l =
|
|
3728
|
+
let l = zt(e, h);
|
|
3727
3729
|
if (!l)
|
|
3728
|
-
l = (s = (i = (n = (r =
|
|
3730
|
+
l = (s = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3729
3731
|
else if (typeof l != "string")
|
|
3730
3732
|
return console.warn(
|
|
3731
3733
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3734,7 +3736,7 @@ const ae = (e, t) => {
|
|
|
3734
3736
|
return l;
|
|
3735
3737
|
let c = l;
|
|
3736
3738
|
try {
|
|
3737
|
-
c =
|
|
3739
|
+
c = fi(l, h).format(u);
|
|
3738
3740
|
} catch (f) {
|
|
3739
3741
|
f instanceof Error && console.warn(
|
|
3740
3742
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3742,18 +3744,18 @@ const ae = (e, t) => {
|
|
|
3742
3744
|
);
|
|
3743
3745
|
}
|
|
3744
3746
|
return c;
|
|
3745
|
-
},
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
function
|
|
3747
|
+
}, gi = (e, t) => li(t).format(e), mi = (e, t) => hi(t).format(e), pi = (e, t) => ui(t).format(e), di = (e, t = X()) => zt(e, t), bi = te([re, le], () => ci);
|
|
3748
|
+
te([re], () => gi);
|
|
3749
|
+
te([re], () => mi);
|
|
3750
|
+
te([re], () => pi);
|
|
3751
|
+
te([re, le], () => di);
|
|
3752
|
+
function yi(e, t) {
|
|
3751
3753
|
if (e) {
|
|
3752
3754
|
const r = document.createElement("style");
|
|
3753
3755
|
r.innerHTML = t, e.appendChild(r);
|
|
3754
3756
|
}
|
|
3755
3757
|
}
|
|
3756
|
-
function
|
|
3758
|
+
function _i(e, t) {
|
|
3757
3759
|
const r = new URL(t);
|
|
3758
3760
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3759
3761
|
const i = document.createElement("style");
|
|
@@ -3762,7 +3764,7 @@ function yi(e, t) {
|
|
|
3762
3764
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3763
3765
|
});
|
|
3764
3766
|
}
|
|
3765
|
-
function
|
|
3767
|
+
function Ei(e, t, r) {
|
|
3766
3768
|
if (window.emMessageBus) {
|
|
3767
3769
|
const n = document.createElement("style");
|
|
3768
3770
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3770,13 +3772,13 @@ function _i(e, t, r) {
|
|
|
3770
3772
|
});
|
|
3771
3773
|
}
|
|
3772
3774
|
}
|
|
3773
|
-
function
|
|
3774
|
-
|
|
3775
|
+
function yt(e, t) {
|
|
3776
|
+
Zt(e, t);
|
|
3775
3777
|
}
|
|
3776
3778
|
function xi(e) {
|
|
3777
|
-
|
|
3779
|
+
re.set(e);
|
|
3778
3780
|
}
|
|
3779
|
-
const
|
|
3781
|
+
const _t = {
|
|
3780
3782
|
en: {
|
|
3781
3783
|
topCategories: "Top Categories",
|
|
3782
3784
|
otherCategories: "Other Categories",
|
|
@@ -3886,10 +3888,10 @@ const yt = {
|
|
|
3886
3888
|
games: "games"
|
|
3887
3889
|
}
|
|
3888
3890
|
};
|
|
3889
|
-
function
|
|
3890
|
-
|
|
3891
|
+
function vi(e) {
|
|
3892
|
+
hr(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3891
3893
|
}
|
|
3892
|
-
function
|
|
3894
|
+
function Et(e, t, r) {
|
|
3893
3895
|
const n = e.slice();
|
|
3894
3896
|
return n[23] = t[r], n;
|
|
3895
3897
|
}
|
|
@@ -3897,56 +3899,56 @@ function xt(e, t, r) {
|
|
|
3897
3899
|
const n = e.slice();
|
|
3898
3900
|
return n[23] = t[r], n;
|
|
3899
3901
|
}
|
|
3900
|
-
function
|
|
3902
|
+
function Ti(e) {
|
|
3901
3903
|
let t, r, n = (
|
|
3902
3904
|
/*$_*/
|
|
3903
3905
|
e[5]("topCategories") + ""
|
|
3904
3906
|
), i, s, o, u, h = (
|
|
3905
3907
|
/*$_*/
|
|
3906
3908
|
e[5]("otherCategories") + ""
|
|
3907
|
-
), a, l, c =
|
|
3909
|
+
), a, l, c = ge(
|
|
3908
3910
|
/*topCategories*/
|
|
3909
3911
|
e[3]
|
|
3910
3912
|
), f = [];
|
|
3911
3913
|
for (let g = 0; g < c.length; g += 1)
|
|
3912
|
-
f[g] =
|
|
3913
|
-
let
|
|
3914
|
+
f[g] = vt(xt(e, c, g));
|
|
3915
|
+
let p = ge(
|
|
3914
3916
|
/*otherCategories*/
|
|
3915
3917
|
e[4]
|
|
3916
|
-
),
|
|
3917
|
-
for (let g = 0; g <
|
|
3918
|
-
|
|
3918
|
+
), d = [];
|
|
3919
|
+
for (let g = 0; g < p.length; g += 1)
|
|
3920
|
+
d[g] = Tt(Et(e, p, g));
|
|
3919
3921
|
return {
|
|
3920
3922
|
c() {
|
|
3921
|
-
t =
|
|
3923
|
+
t = B("div"), r = B("h4"), i = G(n), s = D();
|
|
3922
3924
|
for (let g = 0; g < f.length; g += 1)
|
|
3923
3925
|
f[g].c();
|
|
3924
|
-
o =
|
|
3925
|
-
for (let g = 0; g <
|
|
3926
|
-
|
|
3926
|
+
o = D(), u = B("h4"), a = G(h), l = D();
|
|
3927
|
+
for (let g = 0; g < d.length; g += 1)
|
|
3928
|
+
d[g].c();
|
|
3927
3929
|
I(r, "class", "CategoryTitle"), I(u, "class", "CategoryTitle"), I(t, "class", "CasinoCategories");
|
|
3928
3930
|
},
|
|
3929
3931
|
m(g, E) {
|
|
3930
|
-
|
|
3932
|
+
ee(g, t, E), x(t, r), x(r, i), x(t, s);
|
|
3931
3933
|
for (let m = 0; m < f.length; m += 1)
|
|
3932
3934
|
f[m] && f[m].m(t, null);
|
|
3933
|
-
|
|
3934
|
-
for (let m = 0; m <
|
|
3935
|
-
|
|
3935
|
+
x(t, o), x(t, u), x(u, a), x(t, l);
|
|
3936
|
+
for (let m = 0; m < d.length; m += 1)
|
|
3937
|
+
d[m] && d[m].m(t, null);
|
|
3936
3938
|
},
|
|
3937
3939
|
p(g, E) {
|
|
3938
3940
|
if (E & /*$_*/
|
|
3939
3941
|
32 && n !== (n = /*$_*/
|
|
3940
|
-
g[5]("topCategories") + "") &&
|
|
3942
|
+
g[5]("topCategories") + "") && j(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3941
3943
|
105) {
|
|
3942
|
-
c =
|
|
3944
|
+
c = ge(
|
|
3943
3945
|
/*topCategories*/
|
|
3944
3946
|
g[3]
|
|
3945
3947
|
);
|
|
3946
3948
|
let m;
|
|
3947
3949
|
for (m = 0; m < c.length; m += 1) {
|
|
3948
|
-
const
|
|
3949
|
-
f[m] ? f[m].p(
|
|
3950
|
+
const T = xt(g, c, m);
|
|
3951
|
+
f[m] ? f[m].p(T, E) : (f[m] = vt(T), f[m].c(), f[m].m(t, o));
|
|
3950
3952
|
}
|
|
3951
3953
|
for (; m < f.length; m += 1)
|
|
3952
3954
|
f[m].d(1);
|
|
@@ -3954,53 +3956,53 @@ function vi(e) {
|
|
|
3954
3956
|
}
|
|
3955
3957
|
if (E & /*$_*/
|
|
3956
3958
|
32 && h !== (h = /*$_*/
|
|
3957
|
-
g[5]("otherCategories") + "") &&
|
|
3959
|
+
g[5]("otherCategories") + "") && j(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3958
3960
|
113) {
|
|
3959
|
-
|
|
3961
|
+
p = ge(
|
|
3960
3962
|
/*otherCategories*/
|
|
3961
3963
|
g[4]
|
|
3962
3964
|
);
|
|
3963
3965
|
let m;
|
|
3964
|
-
for (m = 0; m <
|
|
3965
|
-
const
|
|
3966
|
-
|
|
3966
|
+
for (m = 0; m < p.length; m += 1) {
|
|
3967
|
+
const T = Et(g, p, m);
|
|
3968
|
+
d[m] ? d[m].p(T, E) : (d[m] = Tt(T), d[m].c(), d[m].m(t, null));
|
|
3967
3969
|
}
|
|
3968
|
-
for (; m <
|
|
3969
|
-
|
|
3970
|
-
|
|
3970
|
+
for (; m < d.length; m += 1)
|
|
3971
|
+
d[m].d(1);
|
|
3972
|
+
d.length = p.length;
|
|
3971
3973
|
}
|
|
3972
3974
|
},
|
|
3973
3975
|
d(g) {
|
|
3974
|
-
g &&
|
|
3976
|
+
g && V(t), nt(f, g), nt(d, g);
|
|
3975
3977
|
}
|
|
3976
3978
|
};
|
|
3977
3979
|
}
|
|
3978
|
-
function
|
|
3980
|
+
function Ci(e) {
|
|
3979
3981
|
let t;
|
|
3980
3982
|
return {
|
|
3981
3983
|
c() {
|
|
3982
|
-
t =
|
|
3984
|
+
t = B("p"), t.textContent = "Loading, please wait...", I(t, "class", "Message");
|
|
3983
3985
|
},
|
|
3984
3986
|
m(r, n) {
|
|
3985
|
-
|
|
3987
|
+
ee(r, t, n);
|
|
3986
3988
|
},
|
|
3987
3989
|
p: L,
|
|
3988
3990
|
d(r) {
|
|
3989
|
-
r &&
|
|
3991
|
+
r && V(t);
|
|
3990
3992
|
}
|
|
3991
3993
|
};
|
|
3992
3994
|
}
|
|
3993
|
-
function
|
|
3995
|
+
function vt(e) {
|
|
3994
3996
|
let t, r, n, i, s, o, u, h = (
|
|
3995
3997
|
/*category*/
|
|
3996
3998
|
e[23].name + ""
|
|
3997
3999
|
), a, l, c, f = (
|
|
3998
4000
|
/*category*/
|
|
3999
4001
|
e[23].games.count + ""
|
|
4000
|
-
),
|
|
4002
|
+
), p, d, g = (
|
|
4001
4003
|
/*$_*/
|
|
4002
4004
|
e[5]("games") + ""
|
|
4003
|
-
), E, m,
|
|
4005
|
+
), E, m, T, S;
|
|
4004
4006
|
function w() {
|
|
4005
4007
|
return (
|
|
4006
4008
|
/*click_handler*/
|
|
@@ -4012,48 +4014,48 @@ function Et(e) {
|
|
|
4012
4014
|
}
|
|
4013
4015
|
return {
|
|
4014
4016
|
c() {
|
|
4015
|
-
t =
|
|
4017
|
+
t = B("div"), r = B("ui-image"), s = D(), o = B("div"), u = B("p"), a = G(h), l = D(), c = B("p"), p = G(f), d = D(), E = G(g), ye(r.src, n = /*category*/
|
|
4016
4018
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4017
4019
|
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
|
|
4018
4020
|
(e[0] === /*category*/
|
|
4019
4021
|
e[23].id ? "Active" : ""));
|
|
4020
4022
|
},
|
|
4021
|
-
m(
|
|
4022
|
-
|
|
4023
|
+
m(A, H) {
|
|
4024
|
+
ee(A, t, H), x(t, r), x(t, s), x(t, o), x(o, u), x(u, a), x(o, l), x(o, c), x(c, p), x(c, d), x(c, E), T || (S = At(t, "click", w), T = !0);
|
|
4023
4025
|
},
|
|
4024
|
-
p(
|
|
4025
|
-
e =
|
|
4026
|
-
8 && !
|
|
4026
|
+
p(A, H) {
|
|
4027
|
+
e = A, H & /*topCategories*/
|
|
4028
|
+
8 && !ye(r.src, n = /*category*/
|
|
4027
4029
|
e[23].icon) && R(r, "src", n), H & /*topCategories*/
|
|
4028
4030
|
8 && i !== (i = /*category*/
|
|
4029
4031
|
e[23].name) && R(r, "alt", i), H & /*topCategories*/
|
|
4030
4032
|
8 && h !== (h = /*category*/
|
|
4031
|
-
e[23].name + "") &&
|
|
4033
|
+
e[23].name + "") && j(a, h), H & /*topCategories*/
|
|
4032
4034
|
8 && f !== (f = /*category*/
|
|
4033
|
-
e[23].games.count + "") &&
|
|
4035
|
+
e[23].games.count + "") && j(p, f), H & /*$_*/
|
|
4034
4036
|
32 && g !== (g = /*$_*/
|
|
4035
|
-
e[5]("games") + "") &&
|
|
4037
|
+
e[5]("games") + "") && j(E, g), H & /*activecategory, topCategories*/
|
|
4036
4038
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4037
4039
|
(e[0] === /*category*/
|
|
4038
4040
|
e[23].id ? "Active" : "")) && I(t, "class", m);
|
|
4039
4041
|
},
|
|
4040
|
-
d(
|
|
4041
|
-
|
|
4042
|
+
d(A) {
|
|
4043
|
+
A && V(t), T = !1, S();
|
|
4042
4044
|
}
|
|
4043
4045
|
};
|
|
4044
4046
|
}
|
|
4045
|
-
function
|
|
4047
|
+
function Tt(e) {
|
|
4046
4048
|
let t, r, n, i, s, o, u, h = (
|
|
4047
4049
|
/*category*/
|
|
4048
4050
|
e[23].name + ""
|
|
4049
4051
|
), a, l, c, f = (
|
|
4050
4052
|
/*category*/
|
|
4051
4053
|
e[23].games.count + ""
|
|
4052
|
-
),
|
|
4054
|
+
), p, d, g = (
|
|
4053
4055
|
/*$_*/
|
|
4054
4056
|
e[5]("games") + ""
|
|
4055
|
-
), E, m,
|
|
4056
|
-
function
|
|
4057
|
+
), E, m, T, S, w;
|
|
4058
|
+
function A() {
|
|
4057
4059
|
return (
|
|
4058
4060
|
/*click_handler_1*/
|
|
4059
4061
|
e[16](
|
|
@@ -4064,51 +4066,51 @@ function vt(e) {
|
|
|
4064
4066
|
}
|
|
4065
4067
|
return {
|
|
4066
4068
|
c() {
|
|
4067
|
-
t =
|
|
4069
|
+
t = B("div"), r = B("ui-image"), s = D(), o = B("div"), u = B("p"), a = G(h), l = D(), c = B("p"), p = G(f), d = D(), E = G(g), m = D(), ye(r.src, n = /*category*/
|
|
4068
4070
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4069
|
-
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class",
|
|
4071
|
+
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", T = "Category " + /*activecategory*/
|
|
4070
4072
|
(e[0] === /*category*/
|
|
4071
4073
|
e[23].id ? "Active" : ""));
|
|
4072
4074
|
},
|
|
4073
4075
|
m(H, P) {
|
|
4074
|
-
|
|
4076
|
+
ee(H, t, P), x(t, r), x(t, s), x(t, o), x(o, u), x(u, a), x(o, l), x(o, c), x(c, p), x(c, d), x(c, E), x(t, m), S || (w = At(t, "click", A), S = !0);
|
|
4075
4077
|
},
|
|
4076
4078
|
p(H, P) {
|
|
4077
4079
|
e = H, P & /*otherCategories*/
|
|
4078
|
-
16 && !
|
|
4080
|
+
16 && !ye(r.src, n = /*category*/
|
|
4079
4081
|
e[23].icon) && R(r, "src", n), P & /*otherCategories*/
|
|
4080
4082
|
16 && i !== (i = /*category*/
|
|
4081
4083
|
e[23].name) && R(r, "alt", i), P & /*otherCategories*/
|
|
4082
4084
|
16 && h !== (h = /*category*/
|
|
4083
|
-
e[23].name + "") &&
|
|
4085
|
+
e[23].name + "") && j(a, h), P & /*otherCategories*/
|
|
4084
4086
|
16 && f !== (f = /*category*/
|
|
4085
|
-
e[23].games.count + "") &&
|
|
4087
|
+
e[23].games.count + "") && j(p, f), P & /*$_*/
|
|
4086
4088
|
32 && g !== (g = /*$_*/
|
|
4087
|
-
e[5]("games") + "") &&
|
|
4088
|
-
17 &&
|
|
4089
|
+
e[5]("games") + "") && j(E, g), P & /*activecategory, otherCategories*/
|
|
4090
|
+
17 && T !== (T = "Category " + /*activecategory*/
|
|
4089
4091
|
(e[0] === /*category*/
|
|
4090
|
-
e[23].id ? "Active" : "")) && I(t, "class",
|
|
4092
|
+
e[23].id ? "Active" : "")) && I(t, "class", T);
|
|
4091
4093
|
},
|
|
4092
4094
|
d(H) {
|
|
4093
|
-
H &&
|
|
4095
|
+
H && V(t), S = !1, w();
|
|
4094
4096
|
}
|
|
4095
4097
|
};
|
|
4096
4098
|
}
|
|
4097
|
-
function
|
|
4099
|
+
function Hi(e) {
|
|
4098
4100
|
let t;
|
|
4099
4101
|
function r(s, o) {
|
|
4100
4102
|
return (
|
|
4101
4103
|
/*isLoading*/
|
|
4102
|
-
s[2] ?
|
|
4104
|
+
s[2] ? Ci : Ti
|
|
4103
4105
|
);
|
|
4104
4106
|
}
|
|
4105
4107
|
let n = r(e), i = n(e);
|
|
4106
4108
|
return {
|
|
4107
4109
|
c() {
|
|
4108
|
-
t =
|
|
4110
|
+
t = B("div"), i.c();
|
|
4109
4111
|
},
|
|
4110
4112
|
m(s, o) {
|
|
4111
|
-
|
|
4113
|
+
ee(s, t, o), i.m(t, null), e[17](t);
|
|
4112
4114
|
},
|
|
4113
4115
|
p(s, [o]) {
|
|
4114
4116
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4116,67 +4118,67 @@ function Ci(e) {
|
|
|
4116
4118
|
i: L,
|
|
4117
4119
|
o: L,
|
|
4118
4120
|
d(s) {
|
|
4119
|
-
s &&
|
|
4121
|
+
s && V(t), i.d(), e[17](null);
|
|
4120
4122
|
}
|
|
4121
4123
|
};
|
|
4122
4124
|
}
|
|
4123
|
-
function
|
|
4125
|
+
function Si(e, t, r) {
|
|
4124
4126
|
let n;
|
|
4125
|
-
|
|
4126
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t,
|
|
4127
|
+
ur(e, bi, (b) => r(5, n = b));
|
|
4128
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
|
|
4127
4129
|
const g = [];
|
|
4128
4130
|
let E = [], m = [];
|
|
4129
|
-
Object.keys(
|
|
4130
|
-
|
|
4131
|
+
Object.keys(_t).forEach((b) => {
|
|
4132
|
+
yt(b, _t[b]);
|
|
4131
4133
|
});
|
|
4132
|
-
const
|
|
4134
|
+
const T = () => {
|
|
4133
4135
|
fetch(c).then(($) => $.json()).then(($) => {
|
|
4134
|
-
Object.keys($).forEach((
|
|
4135
|
-
|
|
4136
|
+
Object.keys($).forEach((fe) => {
|
|
4137
|
+
yt(fe, $[fe]);
|
|
4136
4138
|
});
|
|
4137
4139
|
}).catch(($) => {
|
|
4138
4140
|
console.log($);
|
|
4139
4141
|
});
|
|
4140
|
-
},
|
|
4141
|
-
r(2,
|
|
4142
|
+
}, S = () => {
|
|
4143
|
+
r(2, d = !0);
|
|
4142
4144
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4143
4145
|
b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
|
|
4144
|
-
r(2,
|
|
4145
|
-
const
|
|
4146
|
+
r(2, d = !1);
|
|
4147
|
+
const fe = h.split(",").map((k) => k.trim());
|
|
4146
4148
|
g.push(...$.items);
|
|
4147
|
-
const
|
|
4148
|
-
var
|
|
4149
|
-
return ((
|
|
4149
|
+
const qe = g.filter((k) => !fe.some((tr) => {
|
|
4150
|
+
var Je;
|
|
4151
|
+
return ((Je = k.flags) == null ? void 0 : Je.indexOf(tr)) >= 0;
|
|
4150
4152
|
}));
|
|
4151
|
-
r(3, E =
|
|
4153
|
+
r(3, E = qe.filter((k) => k.isTopCategory === !0)), r(4, m = qe.filter((k) => k.isTopCategory === !1));
|
|
4152
4154
|
});
|
|
4153
4155
|
}, w = (b) => {
|
|
4154
4156
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4155
|
-
},
|
|
4157
|
+
}, A = () => {
|
|
4156
4158
|
xi(o);
|
|
4157
4159
|
};
|
|
4158
|
-
|
|
4160
|
+
pr(() => () => {
|
|
4159
4161
|
});
|
|
4160
4162
|
const H = (b) => w(b.id), P = (b) => w(b.id);
|
|
4161
|
-
function
|
|
4162
|
-
|
|
4163
|
-
|
|
4163
|
+
function er(b) {
|
|
4164
|
+
Me[b ? "unshift" : "push"](() => {
|
|
4165
|
+
p = b, r(1, p);
|
|
4164
4166
|
});
|
|
4165
4167
|
}
|
|
4166
4168
|
return e.$$set = (b) => {
|
|
4167
4169
|
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4168
4170
|
}, e.$$.update = () => {
|
|
4169
4171
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4170
|
-
384 && i && s &&
|
|
4171
|
-
8192 && c &&
|
|
4172
|
-
512 && o &&
|
|
4173
|
-
2050 && a &&
|
|
4174
|
-
4098 && l &&
|
|
4175
|
-
16386 && f &&
|
|
4172
|
+
384 && i && s && S(), e.$$.dirty & /*translationurl*/
|
|
4173
|
+
8192 && c && T(), e.$$.dirty & /*lang*/
|
|
4174
|
+
512 && o && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4175
|
+
2050 && a && p && yi(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4176
|
+
4098 && l && p && _i(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4177
|
+
16386 && f && p && Ei(p, `${f}.Style`);
|
|
4176
4178
|
}, [
|
|
4177
4179
|
u,
|
|
4178
|
-
d,
|
|
4179
4180
|
p,
|
|
4181
|
+
d,
|
|
4180
4182
|
E,
|
|
4181
4183
|
m,
|
|
4182
4184
|
n,
|
|
@@ -4191,17 +4193,17 @@ function Hi(e, t, r) {
|
|
|
4191
4193
|
f,
|
|
4192
4194
|
H,
|
|
4193
4195
|
P,
|
|
4194
|
-
|
|
4196
|
+
er
|
|
4195
4197
|
];
|
|
4196
4198
|
}
|
|
4197
|
-
class
|
|
4199
|
+
class Kt extends Ar {
|
|
4198
4200
|
constructor(t) {
|
|
4199
|
-
super(),
|
|
4201
|
+
super(), Hr(
|
|
4200
4202
|
this,
|
|
4201
4203
|
t,
|
|
4204
|
+
Si,
|
|
4202
4205
|
Hi,
|
|
4203
|
-
|
|
4204
|
-
Ct,
|
|
4206
|
+
Ht,
|
|
4205
4207
|
{
|
|
4206
4208
|
endpoint: 7,
|
|
4207
4209
|
datasource: 8,
|
|
@@ -4213,7 +4215,7 @@ class Yt extends Ar {
|
|
|
4213
4215
|
translationurl: 13,
|
|
4214
4216
|
mbsource: 14
|
|
4215
4217
|
},
|
|
4216
|
-
|
|
4218
|
+
vi
|
|
4217
4219
|
);
|
|
4218
4220
|
}
|
|
4219
4221
|
get endpoint() {
|
|
@@ -4271,42 +4273,42 @@ class Yt extends Ar {
|
|
|
4271
4273
|
this.$$set({ mbsource: t }), M();
|
|
4272
4274
|
}
|
|
4273
4275
|
}
|
|
4274
|
-
|
|
4275
|
-
const
|
|
4276
|
+
Sr(Kt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4277
|
+
const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4276
4278
|
__proto__: null,
|
|
4277
|
-
default:
|
|
4279
|
+
default: Kt
|
|
4278
4280
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4279
4281
|
export {
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4282
|
+
re as $,
|
|
4283
|
+
nt as A,
|
|
4284
|
+
Oi as B,
|
|
4285
|
+
ye as C,
|
|
4286
|
+
wi as D,
|
|
4285
4287
|
Ar as S,
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4288
|
+
Zt as a,
|
|
4289
|
+
hr as b,
|
|
4290
|
+
Sr as c,
|
|
4291
|
+
V as d,
|
|
4292
|
+
j as e,
|
|
4291
4293
|
M as f,
|
|
4292
4294
|
I as g,
|
|
4293
4295
|
R as h,
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4296
|
+
Hr as i,
|
|
4297
|
+
ee as j,
|
|
4298
|
+
x as k,
|
|
4297
4299
|
At as l,
|
|
4298
|
-
|
|
4300
|
+
B as m,
|
|
4299
4301
|
L as n,
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4302
|
+
D as o,
|
|
4303
|
+
ur as p,
|
|
4304
|
+
pr as q,
|
|
4305
|
+
he as r,
|
|
4306
|
+
Ht as s,
|
|
4307
|
+
G as t,
|
|
4308
|
+
Me as u,
|
|
4307
4309
|
bi as v,
|
|
4308
4310
|
yi as w,
|
|
4309
4311
|
_i as x,
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
+
Ei as y,
|
|
4313
|
+
ge as z
|
|
4312
4314
|
};
|