@everymatrix/casino-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/{CasinoProviders-ofpGnWLA.js → CasinoProviders-BqMPCH3r.js} +702 -700
- package/components/CasinoProviders-D2WegCyi.cjs +3 -0
- package/components/{CasinoProviders-LwC7cLP2.js → CasinoProviders-qQkwlKEj.js} +689 -687
- package/es2015/casino-providers.cjs +1 -1
- package/es2015/casino-providers.js +1 -1
- package/esnext/casino-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoProviders-BYYBUFLe.cjs +0 -16
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Qt = Object.defineProperty, qt = Object.defineProperties;
|
|
2
|
+
var Jt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ze = Object.getOwnPropertySymbols;
|
|
4
|
+
var Yt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (e, t, r) => t in e ? Qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Yt.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (Ze)
|
|
9
|
+
for (var r of Ze(t))
|
|
10
|
+
Kt.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var I = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, qe = (e, t) => qt(e, Jt(t));
|
|
13
|
+
var I = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Je = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(h));
|
|
@@ -29,26 +29,26 @@ var qe = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function $() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function _t(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ye() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ae(e) {
|
|
39
|
+
e.forEach(_t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ve(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function yt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let he;
|
|
48
|
+
function de(e, t) {
|
|
49
|
+
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function er(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
54
|
function xt(e, ...t) {
|
|
@@ -60,20 +60,20 @@ function xt(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function tr(e, t, r) {
|
|
64
64
|
e.$$.on_destroy.push(xt(t, r));
|
|
65
65
|
}
|
|
66
66
|
function y(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function rr(e, t, r) {
|
|
70
|
+
const n = nr(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
72
|
const i = A("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, ir(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function nr(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,7 +83,7 @@ function rr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function ir(e, t) {
|
|
87
87
|
return y(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
@@ -96,7 +96,7 @@ function M(e, t, r) {
|
|
|
96
96
|
function C(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ke(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
@@ -106,26 +106,26 @@ function A(e) {
|
|
|
106
106
|
function R(e) {
|
|
107
107
|
return document.createTextNode(e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function G() {
|
|
110
110
|
return R(" ");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function sr() {
|
|
113
113
|
return R("");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Pt(e, t, r, n) {
|
|
116
116
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
117
117
|
}
|
|
118
118
|
function S(e, t, r) {
|
|
119
119
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function or(e) {
|
|
122
122
|
return Array.from(e.childNodes);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function j(e, t) {
|
|
125
125
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
126
126
|
t);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ar(e) {
|
|
129
129
|
const t = {};
|
|
130
130
|
return e.childNodes.forEach(
|
|
131
131
|
/** @param {Element} node */
|
|
@@ -134,82 +134,82 @@ function or(e) {
|
|
|
134
134
|
}
|
|
135
135
|
), t;
|
|
136
136
|
}
|
|
137
|
-
let
|
|
138
|
-
function
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
const
|
|
142
|
-
let
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
function
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
153
|
-
function
|
|
154
|
-
if (
|
|
137
|
+
let Xe;
|
|
138
|
+
function ie(e) {
|
|
139
|
+
Xe = e;
|
|
140
|
+
}
|
|
141
|
+
const Z = [], Le = [];
|
|
142
|
+
let Q = [];
|
|
143
|
+
const et = [], ur = /* @__PURE__ */ Promise.resolve();
|
|
144
|
+
let Ie = !1;
|
|
145
|
+
function hr() {
|
|
146
|
+
Ie || (Ie = !0, ur.then(F));
|
|
147
|
+
}
|
|
148
|
+
function Ce(e) {
|
|
149
|
+
Q.push(e);
|
|
150
|
+
}
|
|
151
|
+
const Te = /* @__PURE__ */ new Set();
|
|
152
|
+
let z = 0;
|
|
153
|
+
function F() {
|
|
154
|
+
if (z !== 0)
|
|
155
155
|
return;
|
|
156
|
-
const e =
|
|
156
|
+
const e = Xe;
|
|
157
157
|
do {
|
|
158
158
|
try {
|
|
159
|
-
for (;
|
|
160
|
-
const t =
|
|
161
|
-
|
|
159
|
+
for (; z < Z.length; ) {
|
|
160
|
+
const t = Z[z];
|
|
161
|
+
z++, ie(t), lr(t.$$);
|
|
162
162
|
}
|
|
163
163
|
} catch (t) {
|
|
164
|
-
throw
|
|
164
|
+
throw Z.length = 0, z = 0, t;
|
|
165
165
|
}
|
|
166
|
-
for (
|
|
167
|
-
|
|
168
|
-
for (let t = 0; t <
|
|
169
|
-
const r =
|
|
170
|
-
|
|
166
|
+
for (ie(null), Z.length = 0, z = 0; Le.length; )
|
|
167
|
+
Le.pop()();
|
|
168
|
+
for (let t = 0; t < Q.length; t += 1) {
|
|
169
|
+
const r = Q[t];
|
|
170
|
+
Te.has(r) || (Te.add(r), r());
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
} while (
|
|
174
|
-
for (;
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
Q.length = 0;
|
|
173
|
+
} while (Z.length);
|
|
174
|
+
for (; et.length; )
|
|
175
|
+
et.pop()();
|
|
176
|
+
Ie = !1, Te.clear(), ie(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function lr(e) {
|
|
179
179
|
if (e.fragment !== null) {
|
|
180
|
-
e.update(),
|
|
180
|
+
e.update(), ae(e.before_update);
|
|
181
181
|
const t = e.dirty;
|
|
182
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
182
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function fr(e) {
|
|
186
186
|
const t = [], r = [];
|
|
187
|
-
|
|
187
|
+
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
188
188
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
e && e.i && (
|
|
189
|
+
const cr = /* @__PURE__ */ new Set();
|
|
190
|
+
function pr(e, t) {
|
|
191
|
+
e && e.i && (cr.delete(e), e.i(t));
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function le(e) {
|
|
194
194
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function mr(e, t, r) {
|
|
197
197
|
const { fragment: n, after_update: i } = e.$$;
|
|
198
|
-
n && n.m(t, r),
|
|
199
|
-
const s = e.$$.on_mount.map(
|
|
200
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
201
|
-
}), i.forEach(
|
|
198
|
+
n && n.m(t, r), Ce(() => {
|
|
199
|
+
const s = e.$$.on_mount.map(_t).filter(Ve);
|
|
200
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
201
|
+
}), i.forEach(Ce);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function dr(e, t) {
|
|
204
204
|
const r = e.$$;
|
|
205
|
-
r.fragment !== null && (
|
|
205
|
+
r.fragment !== null && (fr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
e.$$.dirty[0] === -1 && (
|
|
207
|
+
function gr(e, t) {
|
|
208
|
+
e.$$.dirty[0] === -1 && (Z.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
const h =
|
|
212
|
-
|
|
210
|
+
function br(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
211
|
+
const h = Xe;
|
|
212
|
+
ie(e);
|
|
213
213
|
const a = e.$$ = {
|
|
214
214
|
fragment: null,
|
|
215
215
|
ctx: [],
|
|
@@ -217,7 +217,7 @@ function gr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
217
217
|
props: s,
|
|
218
218
|
update: $,
|
|
219
219
|
not_equal: i,
|
|
220
|
-
bound:
|
|
220
|
+
bound: Ye(),
|
|
221
221
|
// lifecycle
|
|
222
222
|
on_mount: [],
|
|
223
223
|
on_destroy: [],
|
|
@@ -226,28 +226,28 @@ function gr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
226
226
|
after_update: [],
|
|
227
227
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
228
228
|
// everything else
|
|
229
|
-
callbacks:
|
|
229
|
+
callbacks: Ye(),
|
|
230
230
|
dirty: u,
|
|
231
231
|
skip_bound: !1,
|
|
232
232
|
root: t.target || h.$$.root
|
|
233
233
|
};
|
|
234
234
|
o && o(a.root);
|
|
235
235
|
let l = !1;
|
|
236
|
-
if (a.ctx = r(e, t.props || {}, (c, f, ...g) => {
|
|
237
|
-
const
|
|
238
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] =
|
|
239
|
-
}), a.update(), l = !0,
|
|
236
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...g) => {
|
|
237
|
+
const d = g.length ? g[0] : f;
|
|
238
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && gr(e, c)), f;
|
|
239
|
+
}) : [], a.update(), l = !0, ae(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
240
240
|
if (t.hydrate) {
|
|
241
|
-
const c =
|
|
241
|
+
const c = or(t.target);
|
|
242
242
|
a.fragment && a.fragment.l(c), c.forEach(C);
|
|
243
243
|
} else
|
|
244
244
|
a.fragment && a.fragment.c();
|
|
245
|
-
t.intro &&
|
|
245
|
+
t.intro && pr(e.$$.fragment), mr(e, t.target, t.anchor), F();
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
ie(h);
|
|
248
248
|
}
|
|
249
|
-
let
|
|
250
|
-
typeof HTMLElement == "function" && (
|
|
249
|
+
let Ht;
|
|
250
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
251
251
|
constructor(t, r, n) {
|
|
252
252
|
super();
|
|
253
253
|
/** The Svelte component constructor */
|
|
@@ -284,7 +284,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
connectedCallback() {
|
|
287
|
-
return
|
|
287
|
+
return Je(this, null, function* () {
|
|
288
288
|
if (this.$$cn = !0, !this.$$c) {
|
|
289
289
|
let t = function(s) {
|
|
290
290
|
return () => {
|
|
@@ -308,18 +308,18 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
308
308
|
};
|
|
309
309
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const r = {}, n =
|
|
311
|
+
const r = {}, n = ar(this);
|
|
312
312
|
for (const s of this.$$s)
|
|
313
313
|
s in n && (r[s] = [t(s)]);
|
|
314
314
|
for (const s of this.attributes) {
|
|
315
315
|
const o = this.$$g_p(s.name);
|
|
316
|
-
o in this.$$d || (this.$$d[o] =
|
|
316
|
+
o in this.$$d || (this.$$d[o] = ce(o, s.value, this.$$p_d, "toProp"));
|
|
317
317
|
}
|
|
318
318
|
for (const s in this.$$p_d)
|
|
319
319
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
320
320
|
this.$$c = new this.$$ctor({
|
|
321
321
|
target: this.shadowRoot || this,
|
|
322
|
-
props: Qe(
|
|
322
|
+
props: qe(Qe({}, this.$$d), {
|
|
323
323
|
$$slots: r,
|
|
324
324
|
$$scope: {
|
|
325
325
|
ctx: []
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
330
330
|
this.$$r = !0;
|
|
331
331
|
for (const s in this.$$p_d)
|
|
332
332
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
333
|
-
const o =
|
|
333
|
+
const o = ce(
|
|
334
334
|
s,
|
|
335
335
|
this.$$d[s],
|
|
336
336
|
this.$$p_d,
|
|
@@ -354,7 +354,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
354
354
|
// and setting attributes through setAttribute etc, this is helpful
|
|
355
355
|
attributeChangedCallback(t, r, n) {
|
|
356
356
|
var i;
|
|
357
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
357
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ce(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
358
358
|
}
|
|
359
359
|
disconnectedCallback() {
|
|
360
360
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -367,7 +367,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
367
367
|
) || t;
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
|
-
function
|
|
370
|
+
function ce(e, t, r, n) {
|
|
371
371
|
var s;
|
|
372
372
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
373
373
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -397,8 +397,8 @@ function fe(e, t, r, n) {
|
|
|
397
397
|
return t;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
let o = class extends
|
|
400
|
+
function vr(e, t, r, n, i, s) {
|
|
401
|
+
let o = class extends Ht {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(e, r, i), this.$$p_d = t;
|
|
404
404
|
}
|
|
@@ -415,7 +415,7 @@ function br(e, t, r, n, i, s) {
|
|
|
415
415
|
},
|
|
416
416
|
set(h) {
|
|
417
417
|
var a;
|
|
418
|
-
h =
|
|
418
|
+
h = ce(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
}), n.forEach((u) => {
|
|
@@ -428,7 +428,7 @@ function br(e, t, r, n, i, s) {
|
|
|
428
428
|
}), e.element = /** @type {any} */
|
|
429
429
|
o, o;
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class Er {
|
|
432
432
|
constructor() {
|
|
433
433
|
/**
|
|
434
434
|
* ### PRIVATE API
|
|
@@ -449,7 +449,7 @@ class vr {
|
|
|
449
449
|
}
|
|
450
450
|
/** @returns {void} */
|
|
451
451
|
$destroy() {
|
|
452
|
-
|
|
452
|
+
dr(this, 1), this.$destroy = $;
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -458,7 +458,7 @@ class vr {
|
|
|
458
458
|
* @returns {() => void}
|
|
459
459
|
*/
|
|
460
460
|
$on(t, r) {
|
|
461
|
-
if (!
|
|
461
|
+
if (!Ve(r))
|
|
462
462
|
return $;
|
|
463
463
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
464
464
|
return n.push(r), () => {
|
|
@@ -471,12 +471,12 @@ class vr {
|
|
|
471
471
|
* @returns {void}
|
|
472
472
|
*/
|
|
473
473
|
$set(t) {
|
|
474
|
-
this.$$set && !
|
|
474
|
+
this.$$set && !er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
479
|
-
const
|
|
477
|
+
const _r = "4";
|
|
478
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_r);
|
|
479
|
+
const tt = {
|
|
480
480
|
en: {
|
|
481
481
|
popularProviders: "Popular Suppliers",
|
|
482
482
|
otherProviders: "Other Suppliers",
|
|
@@ -585,24 +585,24 @@ const et = {
|
|
|
585
585
|
loading: "Loading, please wait...",
|
|
586
586
|
games: "games"
|
|
587
587
|
}
|
|
588
|
-
},
|
|
589
|
-
function
|
|
588
|
+
}, W = [];
|
|
589
|
+
function yr(e, t) {
|
|
590
590
|
return {
|
|
591
|
-
subscribe:
|
|
591
|
+
subscribe: Ee(e, t).subscribe
|
|
592
592
|
};
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Ee(e, t = $) {
|
|
595
595
|
let r;
|
|
596
596
|
const n = /* @__PURE__ */ new Set();
|
|
597
597
|
function i(u) {
|
|
598
|
-
if (
|
|
599
|
-
const h = !
|
|
598
|
+
if (yt(e, u) && (e = u, r)) {
|
|
599
|
+
const h = !W.length;
|
|
600
600
|
for (const a of n)
|
|
601
|
-
a[1](),
|
|
601
|
+
a[1](), W.push(a, e);
|
|
602
602
|
if (h) {
|
|
603
|
-
for (let a = 0; a <
|
|
604
|
-
|
|
605
|
-
|
|
603
|
+
for (let a = 0; a < W.length; a += 2)
|
|
604
|
+
W[a][0](W[a + 1]);
|
|
605
|
+
W.length = 0;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
}
|
|
@@ -617,12 +617,12 @@ function be(e, t = $) {
|
|
|
617
617
|
}
|
|
618
618
|
return { set: i, update: s, subscribe: o };
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function ee(e, t, r) {
|
|
621
621
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
622
622
|
if (!i.every(Boolean))
|
|
623
623
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
624
624
|
const s = t.length < 2;
|
|
625
|
-
return
|
|
625
|
+
return yr(r, (o, u) => {
|
|
626
626
|
let h = !1;
|
|
627
627
|
const a = [];
|
|
628
628
|
let l = 0, c = $;
|
|
@@ -630,140 +630,126 @@ function K(e, t, r) {
|
|
|
630
630
|
if (l)
|
|
631
631
|
return;
|
|
632
632
|
c();
|
|
633
|
-
const
|
|
634
|
-
s ? o(
|
|
633
|
+
const d = t(n ? a[0] : a, o, u);
|
|
634
|
+
s ? o(d) : c = Ve(d) ? d : $;
|
|
635
635
|
}, g = i.map(
|
|
636
|
-
(
|
|
637
|
-
|
|
636
|
+
(d, p) => xt(
|
|
637
|
+
d,
|
|
638
638
|
(v) => {
|
|
639
|
-
a[
|
|
639
|
+
a[p] = v, l &= ~(1 << p), h && f();
|
|
640
640
|
},
|
|
641
641
|
() => {
|
|
642
|
-
l |= 1 <<
|
|
642
|
+
l |= 1 << p;
|
|
643
643
|
}
|
|
644
644
|
)
|
|
645
645
|
);
|
|
646
646
|
return h = !0, f(), function() {
|
|
647
|
-
|
|
647
|
+
ae(g), c(), h = !1;
|
|
648
648
|
};
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
651
|
function xr(e) {
|
|
652
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
652
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
653
653
|
}
|
|
654
|
-
var
|
|
655
|
-
return
|
|
654
|
+
var Pr = function(t) {
|
|
655
|
+
return Hr(t) && !Tr(t);
|
|
656
656
|
};
|
|
657
|
-
function
|
|
657
|
+
function Hr(e) {
|
|
658
658
|
return !!e && typeof e == "object";
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function Tr(e) {
|
|
661
661
|
var t = Object.prototype.toString.call(e);
|
|
662
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
663
|
-
}
|
|
664
|
-
var Tr = typeof Symbol == "function" && Symbol.for, Sr = Tr ? Symbol.for("react.element") : 60103;
|
|
665
|
-
function Br(e) {
|
|
666
|
-
return e.$$typeof === Sr;
|
|
662
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ar(e);
|
|
667
663
|
}
|
|
664
|
+
var Sr = typeof Symbol == "function" && Symbol.for, Br = Sr ? Symbol.for("react.element") : 60103;
|
|
668
665
|
function Ar(e) {
|
|
666
|
+
return e.$$typeof === Br;
|
|
667
|
+
}
|
|
668
|
+
function Or(e) {
|
|
669
669
|
return Array.isArray(e) ? [] : {};
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
671
|
+
function se(e, t) {
|
|
672
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(Or(e), e, t) : e;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function wr(e, t, r) {
|
|
675
675
|
return e.concat(t).map(function(n) {
|
|
676
|
-
return
|
|
676
|
+
return se(n, r);
|
|
677
677
|
});
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function Nr(e, t) {
|
|
680
680
|
if (!t.customMerge)
|
|
681
|
-
return
|
|
681
|
+
return q;
|
|
682
682
|
var r = t.customMerge(e);
|
|
683
|
-
return typeof r == "function" ? r :
|
|
683
|
+
return typeof r == "function" ? r : q;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function Lr(e) {
|
|
686
686
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
687
687
|
return Object.propertyIsEnumerable.call(e, t);
|
|
688
688
|
}) : [];
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
return Object.keys(e).concat(
|
|
690
|
+
function rt(e) {
|
|
691
|
+
return Object.keys(e).concat(Lr(e));
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Tt(e, t) {
|
|
694
694
|
try {
|
|
695
695
|
return t in e;
|
|
696
696
|
} catch (r) {
|
|
697
697
|
return !1;
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
return
|
|
700
|
+
function Ir(e, t) {
|
|
701
|
+
return Tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Cr(e, t, r) {
|
|
704
704
|
var n = {};
|
|
705
|
-
return r.isMergeableObject(e) &&
|
|
706
|
-
n[i] =
|
|
707
|
-
}),
|
|
708
|
-
|
|
705
|
+
return r.isMergeableObject(e) && rt(e).forEach(function(i) {
|
|
706
|
+
n[i] = se(e[i], r);
|
|
707
|
+
}), rt(t).forEach(function(i) {
|
|
708
|
+
Ir(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
709
709
|
}), n;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
711
|
+
function q(e, t, r) {
|
|
712
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || wr, r.isMergeableObject = r.isMergeableObject || Pr, r.cloneUnlessOtherwiseSpecified = se;
|
|
713
713
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
714
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
714
|
+
return s ? n ? r.arrayMerge(e, t, r) : Cr(e, t, r) : se(t, r);
|
|
715
715
|
}
|
|
716
|
-
|
|
716
|
+
q.all = function(t, r) {
|
|
717
717
|
if (!Array.isArray(t))
|
|
718
718
|
throw new Error("first argument should be an array");
|
|
719
719
|
return t.reduce(function(n, i) {
|
|
720
|
-
return
|
|
720
|
+
return q(n, i, r);
|
|
721
721
|
}, {});
|
|
722
722
|
};
|
|
723
|
-
var
|
|
724
|
-
const
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
729
|
-
purpose with or without fee is hereby granted.
|
|
730
|
-
|
|
731
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
732
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
733
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
734
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
735
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
736
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
737
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
738
|
-
***************************************************************************** */
|
|
739
|
-
var Ie = function(e, t) {
|
|
740
|
-
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
723
|
+
var Mr = q, $r = Mr;
|
|
724
|
+
const Rr = /* @__PURE__ */ xr($r);
|
|
725
|
+
var Me = function(e, t) {
|
|
726
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
741
727
|
r.__proto__ = n;
|
|
742
728
|
} || function(r, n) {
|
|
743
729
|
for (var i in n)
|
|
744
730
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
745
|
-
},
|
|
731
|
+
}, Me(e, t);
|
|
746
732
|
};
|
|
747
|
-
function
|
|
733
|
+
function _e(e, t) {
|
|
748
734
|
if (typeof t != "function" && t !== null)
|
|
749
735
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
750
|
-
|
|
736
|
+
Me(e, t);
|
|
751
737
|
function r() {
|
|
752
738
|
this.constructor = e;
|
|
753
739
|
}
|
|
754
740
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
755
741
|
}
|
|
756
|
-
var
|
|
757
|
-
return
|
|
742
|
+
var U = function() {
|
|
743
|
+
return U = Object.assign || function(t) {
|
|
758
744
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
759
745
|
r = arguments[n];
|
|
760
746
|
for (var s in r)
|
|
761
747
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
762
748
|
}
|
|
763
749
|
return t;
|
|
764
|
-
},
|
|
750
|
+
}, U.apply(this, arguments);
|
|
765
751
|
};
|
|
766
|
-
function
|
|
752
|
+
function Ur(e, t) {
|
|
767
753
|
var r = {};
|
|
768
754
|
for (var n in e)
|
|
769
755
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -772,46 +758,43 @@ function Rr(e, t) {
|
|
|
772
758
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
773
759
|
return r;
|
|
774
760
|
}
|
|
775
|
-
function
|
|
776
|
-
if (arguments.length === 2)
|
|
761
|
+
function Se(e, t, r) {
|
|
762
|
+
if (r || arguments.length === 2)
|
|
777
763
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
778
764
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
779
|
-
return e.concat(s || t);
|
|
765
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
780
766
|
}
|
|
781
|
-
function
|
|
782
|
-
var r = t && t.cache ? t.cache :
|
|
767
|
+
function Be(e, t) {
|
|
768
|
+
var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
|
|
783
769
|
return i(e, {
|
|
784
770
|
cache: r,
|
|
785
771
|
serializer: n
|
|
786
772
|
});
|
|
787
773
|
}
|
|
788
|
-
function
|
|
774
|
+
function Gr(e) {
|
|
789
775
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
790
776
|
}
|
|
791
|
-
function
|
|
792
|
-
var i =
|
|
777
|
+
function Dr(e, t, r, n) {
|
|
778
|
+
var i = Gr(n) ? n : r(n), s = t.get(i);
|
|
793
779
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
794
780
|
}
|
|
795
781
|
function St(e, t, r) {
|
|
796
782
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
797
783
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
798
784
|
}
|
|
799
|
-
function
|
|
785
|
+
function Bt(e, t, r, n, i) {
|
|
800
786
|
return r.bind(t, e, n, i);
|
|
801
787
|
}
|
|
802
|
-
function Gr(e, t) {
|
|
803
|
-
var r = e.length === 1 ? Tt : St;
|
|
804
|
-
return Ve(e, this, r, t.cache.create(), t.serializer);
|
|
805
|
-
}
|
|
806
|
-
function Dr(e, t) {
|
|
807
|
-
return Ve(e, this, St, t.cache.create(), t.serializer);
|
|
808
|
-
}
|
|
809
788
|
function Fr(e, t) {
|
|
810
|
-
|
|
789
|
+
var r = e.length === 1 ? Dr : St;
|
|
790
|
+
return Bt(e, this, r, t.cache.create(), t.serializer);
|
|
791
|
+
}
|
|
792
|
+
function jr(e, t) {
|
|
793
|
+
return Bt(e, this, St, t.cache.create(), t.serializer);
|
|
811
794
|
}
|
|
812
|
-
var
|
|
795
|
+
var kr = function() {
|
|
813
796
|
return JSON.stringify(arguments);
|
|
814
|
-
},
|
|
797
|
+
}, Vr = (
|
|
815
798
|
/** @class */
|
|
816
799
|
function() {
|
|
817
800
|
function e() {
|
|
@@ -823,62 +806,71 @@ var jr = function() {
|
|
|
823
806
|
this.cache[t] = r;
|
|
824
807
|
}, e;
|
|
825
808
|
}()
|
|
826
|
-
),
|
|
809
|
+
), Xr = {
|
|
827
810
|
create: function() {
|
|
828
|
-
return new
|
|
811
|
+
return new Vr();
|
|
829
812
|
}
|
|
830
|
-
},
|
|
831
|
-
variadic:
|
|
832
|
-
|
|
833
|
-
|
|
813
|
+
}, Ae = {
|
|
814
|
+
variadic: jr
|
|
815
|
+
}, ge = function() {
|
|
816
|
+
return ge = Object.assign || function(t) {
|
|
817
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
818
|
+
r = arguments[n];
|
|
819
|
+
for (var s in r)
|
|
820
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
821
|
+
}
|
|
822
|
+
return t;
|
|
823
|
+
}, ge.apply(this, arguments);
|
|
824
|
+
};
|
|
825
|
+
var E;
|
|
834
826
|
(function(e) {
|
|
835
827
|
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";
|
|
836
828
|
})(E || (E = {}));
|
|
837
|
-
var
|
|
829
|
+
var x;
|
|
838
830
|
(function(e) {
|
|
839
831
|
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";
|
|
840
|
-
})(
|
|
841
|
-
var
|
|
832
|
+
})(x || (x = {}));
|
|
833
|
+
var J;
|
|
842
834
|
(function(e) {
|
|
843
835
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
844
|
-
})(
|
|
845
|
-
function
|
|
846
|
-
return e.type ===
|
|
847
|
-
}
|
|
848
|
-
function Xr(e) {
|
|
849
|
-
return e.type === P.argument;
|
|
836
|
+
})(J || (J = {}));
|
|
837
|
+
function nt(e) {
|
|
838
|
+
return e.type === x.literal;
|
|
850
839
|
}
|
|
851
|
-
function
|
|
852
|
-
return e.type ===
|
|
840
|
+
function zr(e) {
|
|
841
|
+
return e.type === x.argument;
|
|
853
842
|
}
|
|
854
843
|
function At(e) {
|
|
855
|
-
return e.type ===
|
|
844
|
+
return e.type === x.number;
|
|
856
845
|
}
|
|
857
846
|
function Ot(e) {
|
|
858
|
-
return e.type ===
|
|
847
|
+
return e.type === x.date;
|
|
859
848
|
}
|
|
860
849
|
function wt(e) {
|
|
861
|
-
return e.type ===
|
|
850
|
+
return e.type === x.time;
|
|
862
851
|
}
|
|
863
852
|
function Nt(e) {
|
|
864
|
-
return e.type ===
|
|
865
|
-
}
|
|
866
|
-
function zr(e) {
|
|
867
|
-
return e.type === P.pound;
|
|
853
|
+
return e.type === x.select;
|
|
868
854
|
}
|
|
869
855
|
function Lt(e) {
|
|
870
|
-
return e.type ===
|
|
856
|
+
return e.type === x.plural;
|
|
857
|
+
}
|
|
858
|
+
function Wr(e) {
|
|
859
|
+
return e.type === x.pound;
|
|
871
860
|
}
|
|
872
861
|
function It(e) {
|
|
873
|
-
return
|
|
862
|
+
return e.type === x.tag;
|
|
874
863
|
}
|
|
875
|
-
function
|
|
876
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
864
|
+
function Ct(e) {
|
|
865
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
866
|
+
}
|
|
867
|
+
function $e(e) {
|
|
868
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
877
869
|
}
|
|
878
|
-
var
|
|
879
|
-
function
|
|
870
|
+
var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[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;
|
|
871
|
+
function Qr(e) {
|
|
880
872
|
var t = {};
|
|
881
|
-
return e.replace(
|
|
873
|
+
return e.replace(Zr, function(r) {
|
|
882
874
|
var n = r.length;
|
|
883
875
|
switch (r[0]) {
|
|
884
876
|
case "G":
|
|
@@ -967,11 +959,21 @@ function Zr(e) {
|
|
|
967
959
|
return "";
|
|
968
960
|
}), t;
|
|
969
961
|
}
|
|
970
|
-
var
|
|
971
|
-
function
|
|
962
|
+
var T = function() {
|
|
963
|
+
return T = Object.assign || function(t) {
|
|
964
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
965
|
+
r = arguments[n];
|
|
966
|
+
for (var s in r)
|
|
967
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
968
|
+
}
|
|
969
|
+
return t;
|
|
970
|
+
}, T.apply(this, arguments);
|
|
971
|
+
};
|
|
972
|
+
var qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
973
|
+
function Jr(e) {
|
|
972
974
|
if (e.length === 0)
|
|
973
975
|
throw new Error("Number skeleton cannot be empty");
|
|
974
|
-
for (var t = e.split(
|
|
976
|
+
for (var t = e.split(qr).filter(function(f) {
|
|
975
977
|
return f.length > 0;
|
|
976
978
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
977
979
|
var s = i[n], o = s.split("/");
|
|
@@ -986,17 +988,17 @@ function qr(e) {
|
|
|
986
988
|
}
|
|
987
989
|
return r;
|
|
988
990
|
}
|
|
989
|
-
function
|
|
991
|
+
function Yr(e) {
|
|
990
992
|
return e.replace(/^(.*?)-/, "");
|
|
991
993
|
}
|
|
992
|
-
var
|
|
993
|
-
function
|
|
994
|
+
var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, Kr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
|
|
995
|
+
function st(e) {
|
|
994
996
|
var t = {};
|
|
995
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
997
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
|
|
996
998
|
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)), "";
|
|
997
999
|
}), t;
|
|
998
1000
|
}
|
|
999
|
-
function
|
|
1001
|
+
function Ut(e) {
|
|
1000
1002
|
switch (e) {
|
|
1001
1003
|
case "sign-auto":
|
|
1002
1004
|
return {
|
|
@@ -1036,7 +1038,7 @@ function Rt(e) {
|
|
|
1036
1038
|
};
|
|
1037
1039
|
}
|
|
1038
1040
|
}
|
|
1039
|
-
function
|
|
1041
|
+
function en(e) {
|
|
1040
1042
|
var t;
|
|
1041
1043
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1042
1044
|
notation: "engineering"
|
|
@@ -1044,17 +1046,17 @@ function Kr(e) {
|
|
|
1044
1046
|
notation: "scientific"
|
|
1045
1047
|
}, e = e.slice(1)), t) {
|
|
1046
1048
|
var r = e.slice(0, 2);
|
|
1047
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
1049
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
|
|
1048
1050
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1049
1051
|
t.minimumIntegerDigits = e.length;
|
|
1050
1052
|
}
|
|
1051
1053
|
return t;
|
|
1052
1054
|
}
|
|
1053
|
-
function
|
|
1054
|
-
var t = {}, r =
|
|
1055
|
+
function ot(e) {
|
|
1056
|
+
var t = {}, r = Ut(e);
|
|
1055
1057
|
return r || t;
|
|
1056
1058
|
}
|
|
1057
|
-
function
|
|
1059
|
+
function tn(e) {
|
|
1058
1060
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1059
1061
|
var i = n[r];
|
|
1060
1062
|
switch (i.stem) {
|
|
@@ -1078,7 +1080,7 @@ function en(e) {
|
|
|
1078
1080
|
continue;
|
|
1079
1081
|
case "measure-unit":
|
|
1080
1082
|
case "unit":
|
|
1081
|
-
t.style = "unit", t.unit =
|
|
1083
|
+
t.style = "unit", t.unit = Yr(i.options[0]);
|
|
1082
1084
|
continue;
|
|
1083
1085
|
case "compact-short":
|
|
1084
1086
|
case "K":
|
|
@@ -1089,13 +1091,13 @@ function en(e) {
|
|
|
1089
1091
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1090
1092
|
continue;
|
|
1091
1093
|
case "scientific":
|
|
1092
|
-
t =
|
|
1093
|
-
return
|
|
1094
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
1095
|
+
return T(T({}, h), ot(a));
|
|
1094
1096
|
}, {}));
|
|
1095
1097
|
continue;
|
|
1096
1098
|
case "engineering":
|
|
1097
|
-
t =
|
|
1098
|
-
return
|
|
1099
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
1100
|
+
return T(T({}, h), ot(a));
|
|
1099
1101
|
}, {}));
|
|
1100
1102
|
continue;
|
|
1101
1103
|
case "notation-simple":
|
|
@@ -1140,7 +1142,7 @@ function en(e) {
|
|
|
1140
1142
|
case "integer-width":
|
|
1141
1143
|
if (i.options.length > 1)
|
|
1142
1144
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1143
|
-
i.options[0].replace(
|
|
1145
|
+
i.options[0].replace(Kr, function(h, a, l, c, f, g) {
|
|
1144
1146
|
if (a)
|
|
1145
1147
|
t.minimumIntegerDigits = l.length;
|
|
1146
1148
|
else {
|
|
@@ -1153,32 +1155,32 @@ function en(e) {
|
|
|
1153
1155
|
});
|
|
1154
1156
|
continue;
|
|
1155
1157
|
}
|
|
1156
|
-
if (
|
|
1158
|
+
if (Rt.test(i.stem)) {
|
|
1157
1159
|
t.minimumIntegerDigits = i.stem.length;
|
|
1158
1160
|
continue;
|
|
1159
1161
|
}
|
|
1160
|
-
if (
|
|
1162
|
+
if (it.test(i.stem)) {
|
|
1161
1163
|
if (i.options.length > 1)
|
|
1162
1164
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1163
|
-
i.stem.replace(
|
|
1165
|
+
i.stem.replace(it, function(h, a, l, c, f, g) {
|
|
1164
1166
|
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1165
1167
|
});
|
|
1166
1168
|
var s = i.options[0];
|
|
1167
|
-
s === "w" ? t =
|
|
1169
|
+
s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), st(s)));
|
|
1168
1170
|
continue;
|
|
1169
1171
|
}
|
|
1170
|
-
if (
|
|
1171
|
-
t =
|
|
1172
|
+
if ($t.test(i.stem)) {
|
|
1173
|
+
t = T(T({}, t), st(i.stem));
|
|
1172
1174
|
continue;
|
|
1173
1175
|
}
|
|
1174
|
-
var o =
|
|
1175
|
-
o && (t =
|
|
1176
|
-
var u =
|
|
1177
|
-
u && (t =
|
|
1176
|
+
var o = Ut(i.stem);
|
|
1177
|
+
o && (t = T(T({}, t), o));
|
|
1178
|
+
var u = en(i.stem);
|
|
1179
|
+
u && (t = T(T({}, t), u));
|
|
1178
1180
|
}
|
|
1179
1181
|
return t;
|
|
1180
1182
|
}
|
|
1181
|
-
var
|
|
1183
|
+
var fe = {
|
|
1182
1184
|
"001": [
|
|
1183
1185
|
"H",
|
|
1184
1186
|
"h"
|
|
@@ -2593,13 +2595,13 @@ var le = {
|
|
|
2593
2595
|
"h"
|
|
2594
2596
|
]
|
|
2595
2597
|
};
|
|
2596
|
-
function
|
|
2598
|
+
function rn(e, t) {
|
|
2597
2599
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2598
2600
|
var i = e.charAt(n);
|
|
2599
2601
|
if (i === "j") {
|
|
2600
2602
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2601
2603
|
s++, n++;
|
|
2602
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a =
|
|
2604
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = nn(t);
|
|
2603
2605
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2604
2606
|
r += h;
|
|
2605
2607
|
for (; o-- > 0; )
|
|
@@ -2609,7 +2611,7 @@ function tn(e, t) {
|
|
|
2609
2611
|
}
|
|
2610
2612
|
return r;
|
|
2611
2613
|
}
|
|
2612
|
-
function
|
|
2614
|
+
function nn(e) {
|
|
2613
2615
|
var t = e.hourCycle;
|
|
2614
2616
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2615
2617
|
e.hourCycles && // @ts-ignore
|
|
@@ -2628,23 +2630,23 @@ function rn(e) {
|
|
|
2628
2630
|
}
|
|
2629
2631
|
var r = e.language, n;
|
|
2630
2632
|
r !== "root" && (n = e.maximize().region);
|
|
2631
|
-
var i =
|
|
2633
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2632
2634
|
return i[0];
|
|
2633
2635
|
}
|
|
2634
|
-
var
|
|
2636
|
+
var Oe, sn = new RegExp("^".concat(Mt.source, "*")), on = new RegExp("".concat(Mt.source, "*$"));
|
|
2635
2637
|
function _(e, t) {
|
|
2636
2638
|
return { start: e, end: t };
|
|
2637
2639
|
}
|
|
2638
|
-
var
|
|
2640
|
+
var an = !!String.prototype.startsWith && "_a".startsWith("a", 1), un = !!String.fromCodePoint, hn = !!Object.fromEntries, ln = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, cn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, mn = pn ? Number.isSafeInteger : function(e) {
|
|
2639
2641
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2640
|
-
},
|
|
2642
|
+
}, Re = !0;
|
|
2641
2643
|
try {
|
|
2642
|
-
var
|
|
2643
|
-
|
|
2644
|
+
var dn = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2645
|
+
Re = ((Oe = dn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2644
2646
|
} catch (e) {
|
|
2645
|
-
|
|
2647
|
+
Re = !1;
|
|
2646
2648
|
}
|
|
2647
|
-
var
|
|
2649
|
+
var at = an ? (
|
|
2648
2650
|
// Native
|
|
2649
2651
|
function(t, r, n) {
|
|
2650
2652
|
return t.startsWith(r, n);
|
|
@@ -2654,7 +2656,7 @@ var ot = on ? (
|
|
|
2654
2656
|
function(t, r, n) {
|
|
2655
2657
|
return t.slice(n, n + r.length) === r;
|
|
2656
2658
|
}
|
|
2657
|
-
),
|
|
2659
|
+
), Ue = un ? String.fromCodePoint : (
|
|
2658
2660
|
// IE11
|
|
2659
2661
|
function() {
|
|
2660
2662
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2666,9 +2668,9 @@ var ot = on ? (
|
|
|
2666
2668
|
}
|
|
2667
2669
|
return n;
|
|
2668
2670
|
}
|
|
2669
|
-
),
|
|
2671
|
+
), ut = (
|
|
2670
2672
|
// native
|
|
2671
|
-
|
|
2673
|
+
hn ? Object.fromEntries : (
|
|
2672
2674
|
// Ponyfill
|
|
2673
2675
|
function(t) {
|
|
2674
2676
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2678,7 +2680,7 @@ var ot = on ? (
|
|
|
2678
2680
|
return r;
|
|
2679
2681
|
}
|
|
2680
2682
|
)
|
|
2681
|
-
),
|
|
2683
|
+
), Gt = ln ? (
|
|
2682
2684
|
// Native
|
|
2683
2685
|
function(t, r) {
|
|
2684
2686
|
return t.codePointAt(r);
|
|
@@ -2692,7 +2694,7 @@ var ot = on ? (
|
|
|
2692
2694
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2693
2695
|
}
|
|
2694
2696
|
}
|
|
2695
|
-
),
|
|
2697
|
+
), gn = fn ? (
|
|
2696
2698
|
// Native
|
|
2697
2699
|
function(t) {
|
|
2698
2700
|
return t.trimStart();
|
|
@@ -2700,9 +2702,9 @@ var ot = on ? (
|
|
|
2700
2702
|
) : (
|
|
2701
2703
|
// Ponyfill
|
|
2702
2704
|
function(t) {
|
|
2703
|
-
return t.replace(
|
|
2705
|
+
return t.replace(sn, "");
|
|
2704
2706
|
}
|
|
2705
|
-
),
|
|
2707
|
+
), bn = cn ? (
|
|
2706
2708
|
// Native
|
|
2707
2709
|
function(t) {
|
|
2708
2710
|
return t.trimEnd();
|
|
@@ -2710,32 +2712,32 @@ var ot = on ? (
|
|
|
2710
2712
|
) : (
|
|
2711
2713
|
// Ponyfill
|
|
2712
2714
|
function(t) {
|
|
2713
|
-
return t.replace(
|
|
2715
|
+
return t.replace(on, "");
|
|
2714
2716
|
}
|
|
2715
2717
|
);
|
|
2716
|
-
function
|
|
2718
|
+
function Dt(e, t) {
|
|
2717
2719
|
return new RegExp(e, t);
|
|
2718
2720
|
}
|
|
2719
|
-
var
|
|
2720
|
-
if (
|
|
2721
|
-
var
|
|
2722
|
-
|
|
2721
|
+
var Ge;
|
|
2722
|
+
if (Re) {
|
|
2723
|
+
var ht = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2724
|
+
Ge = function(t, r) {
|
|
2723
2725
|
var n;
|
|
2724
|
-
|
|
2725
|
-
var i =
|
|
2726
|
+
ht.lastIndex = r;
|
|
2727
|
+
var i = ht.exec(t);
|
|
2726
2728
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2727
2729
|
};
|
|
2728
2730
|
} else
|
|
2729
|
-
|
|
2731
|
+
Ge = function(t, r) {
|
|
2730
2732
|
for (var n = []; ; ) {
|
|
2731
|
-
var i =
|
|
2732
|
-
if (i === void 0 ||
|
|
2733
|
+
var i = Gt(t, r);
|
|
2734
|
+
if (i === void 0 || Ft(i) || yn(i))
|
|
2733
2735
|
break;
|
|
2734
2736
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2735
2737
|
}
|
|
2736
|
-
return
|
|
2738
|
+
return Ue.apply(void 0, n);
|
|
2737
2739
|
};
|
|
2738
|
-
var
|
|
2740
|
+
var vn = (
|
|
2739
2741
|
/** @class */
|
|
2740
2742
|
function() {
|
|
2741
2743
|
function e(t, r) {
|
|
@@ -2759,14 +2761,14 @@ var bn = (
|
|
|
2759
2761
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2760
2762
|
var u = this.clonePosition();
|
|
2761
2763
|
this.bump(), i.push({
|
|
2762
|
-
type:
|
|
2764
|
+
type: x.pound,
|
|
2763
2765
|
location: _(u, this.clonePosition())
|
|
2764
2766
|
});
|
|
2765
2767
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2766
2768
|
if (n)
|
|
2767
2769
|
break;
|
|
2768
2770
|
return this.error(E.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2769
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2771
|
+
} else if (s === 60 && !this.ignoreTag && De(this.peek() || 0)) {
|
|
2770
2772
|
var o = this.parseTag(t, r);
|
|
2771
2773
|
if (o.err)
|
|
2772
2774
|
return o;
|
|
@@ -2787,7 +2789,7 @@ var bn = (
|
|
|
2787
2789
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2788
2790
|
return {
|
|
2789
2791
|
val: {
|
|
2790
|
-
type:
|
|
2792
|
+
type: x.literal,
|
|
2791
2793
|
value: "<".concat(i, "/>"),
|
|
2792
2794
|
location: _(n, this.clonePosition())
|
|
2793
2795
|
},
|
|
@@ -2799,12 +2801,12 @@ var bn = (
|
|
|
2799
2801
|
return s;
|
|
2800
2802
|
var o = s.val, u = this.clonePosition();
|
|
2801
2803
|
if (this.bumpIf("</")) {
|
|
2802
|
-
if (this.isEOF() || !
|
|
2804
|
+
if (this.isEOF() || !De(this.char()))
|
|
2803
2805
|
return this.error(E.INVALID_TAG, _(u, this.clonePosition()));
|
|
2804
2806
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2805
2807
|
return i !== a ? this.error(E.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2806
2808
|
val: {
|
|
2807
|
-
type:
|
|
2809
|
+
type: x.tag,
|
|
2808
2810
|
value: i,
|
|
2809
2811
|
children: o,
|
|
2810
2812
|
location: _(n, this.clonePosition())
|
|
@@ -2817,7 +2819,7 @@ var bn = (
|
|
|
2817
2819
|
return this.error(E.INVALID_TAG, _(n, this.clonePosition()));
|
|
2818
2820
|
}, e.prototype.parseTagName = function() {
|
|
2819
2821
|
var t = this.offset();
|
|
2820
|
-
for (this.bump(); !this.isEOF() &&
|
|
2822
|
+
for (this.bump(); !this.isEOF() && _n(this.char()); )
|
|
2821
2823
|
this.bump();
|
|
2822
2824
|
return this.message.slice(t, this.offset());
|
|
2823
2825
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2841,12 +2843,12 @@ var bn = (
|
|
|
2841
2843
|
}
|
|
2842
2844
|
var h = _(n, this.clonePosition());
|
|
2843
2845
|
return {
|
|
2844
|
-
val: { type:
|
|
2846
|
+
val: { type: x.literal, value: i, location: h },
|
|
2845
2847
|
err: null
|
|
2846
2848
|
};
|
|
2847
2849
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2848
2850
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2849
|
-
!
|
|
2851
|
+
!En(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2850
2852
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2851
2853
|
if (this.isEOF() || this.char() !== 39)
|
|
2852
2854
|
return null;
|
|
@@ -2880,12 +2882,12 @@ var bn = (
|
|
|
2880
2882
|
r.push(n);
|
|
2881
2883
|
this.bump();
|
|
2882
2884
|
}
|
|
2883
|
-
return
|
|
2885
|
+
return Ue.apply(void 0, r);
|
|
2884
2886
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2885
2887
|
if (this.isEOF())
|
|
2886
2888
|
return null;
|
|
2887
2889
|
var n = this.char();
|
|
2888
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2890
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2889
2891
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2890
2892
|
var n = this.clonePosition();
|
|
2891
2893
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2901,7 +2903,7 @@ var bn = (
|
|
|
2901
2903
|
case 125:
|
|
2902
2904
|
return this.bump(), {
|
|
2903
2905
|
val: {
|
|
2904
|
-
type:
|
|
2906
|
+
type: x.argument,
|
|
2905
2907
|
// value does not include the opening and closing braces.
|
|
2906
2908
|
value: i,
|
|
2907
2909
|
location: _(n, this.clonePosition())
|
|
@@ -2914,7 +2916,7 @@ var bn = (
|
|
|
2914
2916
|
return this.error(E.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2915
2917
|
}
|
|
2916
2918
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2917
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2919
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2918
2920
|
this.bumpTo(i);
|
|
2919
2921
|
var s = this.clonePosition(), o = _(t, s);
|
|
2920
2922
|
return { value: n, location: o };
|
|
@@ -2933,46 +2935,46 @@ var bn = (
|
|
|
2933
2935
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2934
2936
|
if (c.err)
|
|
2935
2937
|
return c;
|
|
2936
|
-
var f =
|
|
2938
|
+
var f = bn(c.val);
|
|
2937
2939
|
if (f.length === 0)
|
|
2938
2940
|
return this.error(E.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2939
2941
|
var g = _(l, this.clonePosition());
|
|
2940
2942
|
a = { style: f, styleLocation: g };
|
|
2941
2943
|
}
|
|
2942
|
-
var
|
|
2943
|
-
if (
|
|
2944
|
-
return
|
|
2945
|
-
var
|
|
2946
|
-
if (a &&
|
|
2947
|
-
var v =
|
|
2944
|
+
var d = this.tryParseArgumentClose(i);
|
|
2945
|
+
if (d.err)
|
|
2946
|
+
return d;
|
|
2947
|
+
var p = _(i, this.clonePosition());
|
|
2948
|
+
if (a && at(a == null ? void 0 : a.style, "::", 0)) {
|
|
2949
|
+
var v = gn(a.style.slice(2));
|
|
2948
2950
|
if (u === "number") {
|
|
2949
2951
|
var c = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2950
2952
|
return c.err ? c : {
|
|
2951
|
-
val: { type:
|
|
2953
|
+
val: { type: x.number, value: n, location: p, style: c.val },
|
|
2952
2954
|
err: null
|
|
2953
2955
|
};
|
|
2954
2956
|
} else {
|
|
2955
2957
|
if (v.length === 0)
|
|
2956
|
-
return this.error(E.EXPECT_DATE_TIME_SKELETON,
|
|
2958
|
+
return this.error(E.EXPECT_DATE_TIME_SKELETON, p);
|
|
2957
2959
|
var m = v;
|
|
2958
|
-
this.locale && (m =
|
|
2960
|
+
this.locale && (m = rn(v, this.locale));
|
|
2959
2961
|
var f = {
|
|
2960
|
-
type:
|
|
2962
|
+
type: J.dateTime,
|
|
2961
2963
|
pattern: m,
|
|
2962
2964
|
location: a.styleLocation,
|
|
2963
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2964
|
-
},
|
|
2965
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(m) : {}
|
|
2966
|
+
}, P = u === "date" ? x.date : x.time;
|
|
2965
2967
|
return {
|
|
2966
|
-
val: { type:
|
|
2968
|
+
val: { type: P, value: n, location: p, style: f },
|
|
2967
2969
|
err: null
|
|
2968
2970
|
};
|
|
2969
2971
|
}
|
|
2970
2972
|
}
|
|
2971
2973
|
return {
|
|
2972
2974
|
val: {
|
|
2973
|
-
type: u === "number" ?
|
|
2975
|
+
type: u === "number" ? x.number : u === "date" ? x.date : x.time,
|
|
2974
2976
|
value: n,
|
|
2975
|
-
location:
|
|
2977
|
+
location: p,
|
|
2976
2978
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
2977
2979
|
},
|
|
2978
2980
|
err: null
|
|
@@ -2983,9 +2985,9 @@ var bn = (
|
|
|
2983
2985
|
case "select": {
|
|
2984
2986
|
var B = this.clonePosition();
|
|
2985
2987
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2986
|
-
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, _(B,
|
|
2988
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, _(B, ge({}, B)));
|
|
2987
2989
|
this.bumpSpace();
|
|
2988
|
-
var O = this.parseIdentifierIfPossible(),
|
|
2990
|
+
var O = this.parseIdentifierIfPossible(), H = 0;
|
|
2989
2991
|
if (u !== "select" && O.value === "offset") {
|
|
2990
2992
|
if (!this.bumpIf(":"))
|
|
2991
2993
|
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -2993,29 +2995,29 @@ var bn = (
|
|
|
2993
2995
|
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2994
2996
|
if (c.err)
|
|
2995
2997
|
return c;
|
|
2996
|
-
this.bumpSpace(), O = this.parseIdentifierIfPossible(),
|
|
2998
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), H = c.val;
|
|
2997
2999
|
}
|
|
2998
3000
|
var N = this.tryParsePluralOrSelectOptions(t, u, r, O);
|
|
2999
3001
|
if (N.err)
|
|
3000
3002
|
return N;
|
|
3001
|
-
var
|
|
3002
|
-
if (
|
|
3003
|
-
return
|
|
3003
|
+
var d = this.tryParseArgumentClose(i);
|
|
3004
|
+
if (d.err)
|
|
3005
|
+
return d;
|
|
3004
3006
|
var b = _(i, this.clonePosition());
|
|
3005
3007
|
return u === "select" ? {
|
|
3006
3008
|
val: {
|
|
3007
|
-
type:
|
|
3009
|
+
type: x.select,
|
|
3008
3010
|
value: n,
|
|
3009
|
-
options:
|
|
3011
|
+
options: ut(N.val),
|
|
3010
3012
|
location: b
|
|
3011
3013
|
},
|
|
3012
3014
|
err: null
|
|
3013
3015
|
} : {
|
|
3014
3016
|
val: {
|
|
3015
|
-
type:
|
|
3017
|
+
type: x.plural,
|
|
3016
3018
|
value: n,
|
|
3017
|
-
options:
|
|
3018
|
-
offset:
|
|
3019
|
+
options: ut(N.val),
|
|
3020
|
+
offset: H,
|
|
3019
3021
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3020
3022
|
location: b
|
|
3021
3023
|
},
|
|
@@ -3065,16 +3067,16 @@ var bn = (
|
|
|
3065
3067
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3066
3068
|
var n = [];
|
|
3067
3069
|
try {
|
|
3068
|
-
n =
|
|
3070
|
+
n = Jr(t);
|
|
3069
3071
|
} catch (i) {
|
|
3070
3072
|
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
|
3071
3073
|
}
|
|
3072
3074
|
return {
|
|
3073
3075
|
val: {
|
|
3074
|
-
type:
|
|
3076
|
+
type: J.number,
|
|
3075
3077
|
tokens: n,
|
|
3076
3078
|
location: r,
|
|
3077
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3079
|
+
parsedOptions: this.shouldParseSkeletons ? tn(n) : {}
|
|
3078
3080
|
},
|
|
3079
3081
|
err: null
|
|
3080
3082
|
};
|
|
@@ -3096,16 +3098,16 @@ var bn = (
|
|
|
3096
3098
|
var g = this.clonePosition();
|
|
3097
3099
|
if (!this.bumpIf("{"))
|
|
3098
3100
|
return this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
3099
|
-
var
|
|
3100
|
-
if (p.err)
|
|
3101
|
-
return p;
|
|
3102
|
-
var d = this.tryParseArgumentClose(g);
|
|
3101
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3103
3102
|
if (d.err)
|
|
3104
3103
|
return d;
|
|
3104
|
+
var p = this.tryParseArgumentClose(g);
|
|
3105
|
+
if (p.err)
|
|
3106
|
+
return p;
|
|
3105
3107
|
u.push([
|
|
3106
3108
|
a,
|
|
3107
3109
|
{
|
|
3108
|
-
value:
|
|
3110
|
+
value: d.val,
|
|
3109
3111
|
location: _(g, this.clonePosition())
|
|
3110
3112
|
}
|
|
3111
3113
|
]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
|
|
@@ -3122,7 +3124,7 @@ var bn = (
|
|
|
3122
3124
|
break;
|
|
3123
3125
|
}
|
|
3124
3126
|
var h = _(i, this.clonePosition());
|
|
3125
|
-
return s ? (o *= n,
|
|
3127
|
+
return s ? (o *= n, mn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3126
3128
|
}, e.prototype.offset = function() {
|
|
3127
3129
|
return this.position.offset;
|
|
3128
3130
|
}, e.prototype.isEOF = function() {
|
|
@@ -3137,7 +3139,7 @@ var bn = (
|
|
|
3137
3139
|
var t = this.position.offset;
|
|
3138
3140
|
if (t >= this.message.length)
|
|
3139
3141
|
throw Error("out of bound");
|
|
3140
|
-
var r =
|
|
3142
|
+
var r = Gt(this.message, t);
|
|
3141
3143
|
if (r === void 0)
|
|
3142
3144
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3143
3145
|
return r;
|
|
@@ -3156,7 +3158,7 @@ var bn = (
|
|
|
3156
3158
|
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);
|
|
3157
3159
|
}
|
|
3158
3160
|
}, e.prototype.bumpIf = function(t) {
|
|
3159
|
-
if (
|
|
3161
|
+
if (at(this.message, t, this.offset())) {
|
|
3160
3162
|
for (var r = 0; r < t.length; r++)
|
|
3161
3163
|
this.bump();
|
|
3162
3164
|
return !0;
|
|
@@ -3178,7 +3180,7 @@ var bn = (
|
|
|
3178
3180
|
break;
|
|
3179
3181
|
}
|
|
3180
3182
|
}, e.prototype.bumpSpace = function() {
|
|
3181
|
-
for (; !this.isEOF() &&
|
|
3183
|
+
for (; !this.isEOF() && Ft(this.char()); )
|
|
3182
3184
|
this.bump();
|
|
3183
3185
|
}, e.prototype.peek = function() {
|
|
3184
3186
|
if (this.isEOF())
|
|
@@ -3188,47 +3190,47 @@ var bn = (
|
|
|
3188
3190
|
}, e;
|
|
3189
3191
|
}()
|
|
3190
3192
|
);
|
|
3191
|
-
function
|
|
3193
|
+
function De(e) {
|
|
3192
3194
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3193
3195
|
}
|
|
3194
|
-
function vn(e) {
|
|
3195
|
-
return Ue(e) || e === 47;
|
|
3196
|
-
}
|
|
3197
3196
|
function En(e) {
|
|
3197
|
+
return De(e) || e === 47;
|
|
3198
|
+
}
|
|
3199
|
+
function _n(e) {
|
|
3198
3200
|
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;
|
|
3199
3201
|
}
|
|
3200
|
-
function
|
|
3202
|
+
function Ft(e) {
|
|
3201
3203
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3202
3204
|
}
|
|
3203
|
-
function
|
|
3205
|
+
function yn(e) {
|
|
3204
3206
|
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;
|
|
3205
3207
|
}
|
|
3206
|
-
function
|
|
3208
|
+
function Fe(e) {
|
|
3207
3209
|
e.forEach(function(t) {
|
|
3208
|
-
if (delete t.location,
|
|
3210
|
+
if (delete t.location, Nt(t) || Lt(t))
|
|
3209
3211
|
for (var r in t.options)
|
|
3210
|
-
delete t.options[r].location,
|
|
3212
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3211
3213
|
else
|
|
3212
|
-
|
|
3214
|
+
At(t) && Ct(t.style) || (Ot(t) || wt(t)) && $e(t.style) ? delete t.style.location : It(t) && Fe(t.children);
|
|
3213
3215
|
});
|
|
3214
3216
|
}
|
|
3215
3217
|
function xn(e, t) {
|
|
3216
|
-
t === void 0 && (t = {}), t =
|
|
3217
|
-
var r = new
|
|
3218
|
+
t === void 0 && (t = {}), t = ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3219
|
+
var r = new vn(e, t).parse();
|
|
3218
3220
|
if (r.err) {
|
|
3219
3221
|
var n = SyntaxError(E[r.err.kind]);
|
|
3220
3222
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3221
3223
|
}
|
|
3222
|
-
return t != null && t.captureLocation ||
|
|
3224
|
+
return t != null && t.captureLocation || Fe(r.val), r.val;
|
|
3223
3225
|
}
|
|
3224
|
-
var
|
|
3226
|
+
var Y;
|
|
3225
3227
|
(function(e) {
|
|
3226
3228
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3227
|
-
})(
|
|
3228
|
-
var
|
|
3229
|
+
})(Y || (Y = {}));
|
|
3230
|
+
var ye = (
|
|
3229
3231
|
/** @class */
|
|
3230
3232
|
function(e) {
|
|
3231
|
-
|
|
3233
|
+
_e(t, e);
|
|
3232
3234
|
function t(r, n, i) {
|
|
3233
3235
|
var s = e.call(this, r) || this;
|
|
3234
3236
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3237,48 +3239,48 @@ var Ee = (
|
|
|
3237
3239
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3238
3240
|
}, t;
|
|
3239
3241
|
}(Error)
|
|
3240
|
-
),
|
|
3242
|
+
), lt = (
|
|
3241
3243
|
/** @class */
|
|
3242
3244
|
function(e) {
|
|
3243
|
-
|
|
3245
|
+
_e(t, e);
|
|
3244
3246
|
function t(r, n, i, s) {
|
|
3245
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3247
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
|
|
3246
3248
|
}
|
|
3247
3249
|
return t;
|
|
3248
|
-
}(
|
|
3249
|
-
),
|
|
3250
|
+
}(ye)
|
|
3251
|
+
), Pn = (
|
|
3250
3252
|
/** @class */
|
|
3251
3253
|
function(e) {
|
|
3252
|
-
|
|
3254
|
+
_e(t, e);
|
|
3253
3255
|
function t(r, n, i) {
|
|
3254
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3256
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3255
3257
|
}
|
|
3256
3258
|
return t;
|
|
3257
|
-
}(
|
|
3258
|
-
),
|
|
3259
|
+
}(ye)
|
|
3260
|
+
), Hn = (
|
|
3259
3261
|
/** @class */
|
|
3260
3262
|
function(e) {
|
|
3261
|
-
|
|
3263
|
+
_e(t, e);
|
|
3262
3264
|
function t(r, n) {
|
|
3263
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3265
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3264
3266
|
}
|
|
3265
3267
|
return t;
|
|
3266
|
-
}(
|
|
3268
|
+
}(ye)
|
|
3267
3269
|
), w;
|
|
3268
3270
|
(function(e) {
|
|
3269
3271
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3270
3272
|
})(w || (w = {}));
|
|
3271
|
-
function
|
|
3273
|
+
function Tn(e) {
|
|
3272
3274
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3273
3275
|
var n = t[t.length - 1];
|
|
3274
3276
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3275
3277
|
}, []);
|
|
3276
3278
|
}
|
|
3277
|
-
function
|
|
3279
|
+
function Sn(e) {
|
|
3278
3280
|
return typeof e == "function";
|
|
3279
3281
|
}
|
|
3280
|
-
function
|
|
3281
|
-
if (e.length === 1 &&
|
|
3282
|
+
function pe(e, t, r, n, i, s, o) {
|
|
3283
|
+
if (e.length === 1 && nt(e[0]))
|
|
3282
3284
|
return [
|
|
3283
3285
|
{
|
|
3284
3286
|
type: w.literal,
|
|
@@ -3287,14 +3289,14 @@ function ce(e, t, r, n, i, s, o) {
|
|
|
3287
3289
|
];
|
|
3288
3290
|
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
|
3289
3291
|
var l = a[h];
|
|
3290
|
-
if (
|
|
3292
|
+
if (nt(l)) {
|
|
3291
3293
|
u.push({
|
|
3292
3294
|
type: w.literal,
|
|
3293
3295
|
value: l.value
|
|
3294
3296
|
});
|
|
3295
3297
|
continue;
|
|
3296
3298
|
}
|
|
3297
|
-
if (
|
|
3299
|
+
if (Wr(l)) {
|
|
3298
3300
|
typeof s == "number" && u.push({
|
|
3299
3301
|
type: w.literal,
|
|
3300
3302
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3303,89 +3305,89 @@ function ce(e, t, r, n, i, s, o) {
|
|
|
3303
3305
|
}
|
|
3304
3306
|
var c = l.value;
|
|
3305
3307
|
if (!(i && c in i))
|
|
3306
|
-
throw new
|
|
3308
|
+
throw new Hn(c, o);
|
|
3307
3309
|
var f = i[c];
|
|
3308
|
-
if (
|
|
3310
|
+
if (zr(l)) {
|
|
3309
3311
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3310
3312
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3311
3313
|
value: f
|
|
3312
3314
|
});
|
|
3313
3315
|
continue;
|
|
3314
3316
|
}
|
|
3315
|
-
if (
|
|
3316
|
-
var g = typeof l.style == "string" ? n.date[l.style] :
|
|
3317
|
+
if (Ot(l)) {
|
|
3318
|
+
var g = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
|
|
3317
3319
|
u.push({
|
|
3318
3320
|
type: w.literal,
|
|
3319
3321
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3320
3322
|
});
|
|
3321
3323
|
continue;
|
|
3322
3324
|
}
|
|
3323
|
-
if (
|
|
3324
|
-
var g = typeof l.style == "string" ? n.time[l.style] :
|
|
3325
|
+
if (wt(l)) {
|
|
3326
|
+
var g = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3325
3327
|
u.push({
|
|
3326
3328
|
type: w.literal,
|
|
3327
3329
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3328
3330
|
});
|
|
3329
3331
|
continue;
|
|
3330
3332
|
}
|
|
3331
|
-
if (
|
|
3332
|
-
var g = typeof l.style == "string" ? n.number[l.style] :
|
|
3333
|
+
if (At(l)) {
|
|
3334
|
+
var g = typeof l.style == "string" ? n.number[l.style] : Ct(l.style) ? l.style.parsedOptions : void 0;
|
|
3333
3335
|
g && g.scale && (f = f * (g.scale || 1)), u.push({
|
|
3334
3336
|
type: w.literal,
|
|
3335
3337
|
value: r.getNumberFormat(t, g).format(f)
|
|
3336
3338
|
});
|
|
3337
3339
|
continue;
|
|
3338
3340
|
}
|
|
3339
|
-
if (
|
|
3340
|
-
var
|
|
3341
|
-
if (!
|
|
3342
|
-
throw new
|
|
3343
|
-
var m =
|
|
3344
|
-
return
|
|
3341
|
+
if (It(l)) {
|
|
3342
|
+
var d = l.children, p = l.value, v = i[p];
|
|
3343
|
+
if (!Sn(v))
|
|
3344
|
+
throw new Pn(p, "function", o);
|
|
3345
|
+
var m = pe(d, t, r, n, i, s), P = v(m.map(function(H) {
|
|
3346
|
+
return H.value;
|
|
3345
3347
|
}));
|
|
3346
|
-
Array.isArray(
|
|
3348
|
+
Array.isArray(P) || (P = [P]), u.push.apply(u, P.map(function(H) {
|
|
3347
3349
|
return {
|
|
3348
|
-
type: typeof
|
|
3349
|
-
value:
|
|
3350
|
+
type: typeof H == "string" ? w.literal : w.object,
|
|
3351
|
+
value: H
|
|
3350
3352
|
};
|
|
3351
3353
|
}));
|
|
3352
3354
|
}
|
|
3353
|
-
if (
|
|
3355
|
+
if (Nt(l)) {
|
|
3354
3356
|
var B = l.options[f] || l.options.other;
|
|
3355
3357
|
if (!B)
|
|
3356
|
-
throw new
|
|
3357
|
-
u.push.apply(u,
|
|
3358
|
+
throw new lt(l.value, f, Object.keys(l.options), o);
|
|
3359
|
+
u.push.apply(u, pe(B.value, t, r, n, i));
|
|
3358
3360
|
continue;
|
|
3359
3361
|
}
|
|
3360
|
-
if (
|
|
3362
|
+
if (Lt(l)) {
|
|
3361
3363
|
var B = l.options["=".concat(f)];
|
|
3362
3364
|
if (!B) {
|
|
3363
3365
|
if (!Intl.PluralRules)
|
|
3364
|
-
throw new
|
|
3366
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3365
3367
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3366
|
-
`,
|
|
3368
|
+
`, Y.MISSING_INTL_API, o);
|
|
3367
3369
|
var O = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3368
3370
|
B = l.options[O] || l.options.other;
|
|
3369
3371
|
}
|
|
3370
3372
|
if (!B)
|
|
3371
|
-
throw new
|
|
3372
|
-
u.push.apply(u,
|
|
3373
|
+
throw new lt(l.value, f, Object.keys(l.options), o);
|
|
3374
|
+
u.push.apply(u, pe(B.value, t, r, n, i, f - (l.offset || 0)));
|
|
3373
3375
|
continue;
|
|
3374
3376
|
}
|
|
3375
3377
|
}
|
|
3376
|
-
return
|
|
3378
|
+
return Tn(u);
|
|
3377
3379
|
}
|
|
3378
|
-
function
|
|
3379
|
-
return t ?
|
|
3380
|
-
return r[n] =
|
|
3380
|
+
function Bn(e, t) {
|
|
3381
|
+
return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3382
|
+
return r[n] = U(U({}, e[n]), t[n] || {}), r;
|
|
3381
3383
|
}, {})) : e;
|
|
3382
3384
|
}
|
|
3383
|
-
function
|
|
3385
|
+
function An(e, t) {
|
|
3384
3386
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3385
|
-
return r[n] =
|
|
3386
|
-
},
|
|
3387
|
+
return r[n] = Bn(e[n], t[n]), r;
|
|
3388
|
+
}, U({}, e)) : e;
|
|
3387
3389
|
}
|
|
3388
|
-
function
|
|
3390
|
+
function we(e) {
|
|
3389
3391
|
return {
|
|
3390
3392
|
create: function() {
|
|
3391
3393
|
return {
|
|
@@ -3399,39 +3401,39 @@ function Ae(e) {
|
|
|
3399
3401
|
}
|
|
3400
3402
|
};
|
|
3401
3403
|
}
|
|
3402
|
-
function
|
|
3404
|
+
function On(e) {
|
|
3403
3405
|
return e === void 0 && (e = {
|
|
3404
3406
|
number: {},
|
|
3405
3407
|
dateTime: {},
|
|
3406
3408
|
pluralRules: {}
|
|
3407
3409
|
}), {
|
|
3408
|
-
getNumberFormat:
|
|
3410
|
+
getNumberFormat: Be(function() {
|
|
3409
3411
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3410
3412
|
r[n] = arguments[n];
|
|
3411
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3413
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3412
3414
|
}, {
|
|
3413
|
-
cache:
|
|
3414
|
-
strategy:
|
|
3415
|
+
cache: we(e.number),
|
|
3416
|
+
strategy: Ae.variadic
|
|
3415
3417
|
}),
|
|
3416
|
-
getDateTimeFormat:
|
|
3418
|
+
getDateTimeFormat: Be(function() {
|
|
3417
3419
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3418
3420
|
r[n] = arguments[n];
|
|
3419
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3421
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3420
3422
|
}, {
|
|
3421
|
-
cache:
|
|
3422
|
-
strategy:
|
|
3423
|
+
cache: we(e.dateTime),
|
|
3424
|
+
strategy: Ae.variadic
|
|
3423
3425
|
}),
|
|
3424
|
-
getPluralRules:
|
|
3426
|
+
getPluralRules: Be(function() {
|
|
3425
3427
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3426
3428
|
r[n] = arguments[n];
|
|
3427
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3429
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3428
3430
|
}, {
|
|
3429
|
-
cache:
|
|
3430
|
-
strategy:
|
|
3431
|
+
cache: we(e.pluralRules),
|
|
3432
|
+
strategy: Ae.variadic
|
|
3431
3433
|
})
|
|
3432
3434
|
};
|
|
3433
3435
|
}
|
|
3434
|
-
var
|
|
3436
|
+
var wn = (
|
|
3435
3437
|
/** @class */
|
|
3436
3438
|
function() {
|
|
3437
3439
|
function e(t, r, n, i) {
|
|
@@ -3450,7 +3452,7 @@ var On = (
|
|
|
3450
3452
|
}, []);
|
|
3451
3453
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3452
3454
|
}, this.formatToParts = function(h) {
|
|
3453
|
-
return
|
|
3455
|
+
return pe(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3454
3456
|
}, this.resolvedOptions = function() {
|
|
3455
3457
|
var h;
|
|
3456
3458
|
return {
|
|
@@ -3463,13 +3465,13 @@ var On = (
|
|
|
3463
3465
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3464
3466
|
var o = i || {};
|
|
3465
3467
|
o.formatters;
|
|
3466
|
-
var u =
|
|
3467
|
-
this.ast = e.__parse(t,
|
|
3468
|
+
var u = Ur(o, ["formatters"]);
|
|
3469
|
+
this.ast = e.__parse(t, U(U({}, u), { locale: this.resolvedLocale }));
|
|
3468
3470
|
} else
|
|
3469
3471
|
this.ast = t;
|
|
3470
3472
|
if (!Array.isArray(this.ast))
|
|
3471
3473
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3472
|
-
this.formats =
|
|
3474
|
+
this.formats = An(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
|
|
3473
3475
|
}
|
|
3474
3476
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3475
3477
|
get: function() {
|
|
@@ -3543,7 +3545,7 @@ var On = (
|
|
|
3543
3545
|
}, e;
|
|
3544
3546
|
}()
|
|
3545
3547
|
);
|
|
3546
|
-
function
|
|
3548
|
+
function Nn(e, t) {
|
|
3547
3549
|
if (t == null)
|
|
3548
3550
|
return;
|
|
3549
3551
|
if (t in e)
|
|
@@ -3564,92 +3566,92 @@ function wn(e, t) {
|
|
|
3564
3566
|
n = void 0;
|
|
3565
3567
|
return n;
|
|
3566
3568
|
}
|
|
3567
|
-
const
|
|
3569
|
+
const k = {}, Ln = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), jt = (e, t) => {
|
|
3568
3570
|
if (t == null)
|
|
3569
3571
|
return;
|
|
3570
|
-
if (t in
|
|
3571
|
-
return
|
|
3572
|
-
const r =
|
|
3572
|
+
if (t in k && e in k[t])
|
|
3573
|
+
return k[t][e];
|
|
3574
|
+
const r = xe(t);
|
|
3573
3575
|
for (let n = 0; n < r.length; n++) {
|
|
3574
|
-
const i = r[n], s =
|
|
3576
|
+
const i = r[n], s = Cn(i, e);
|
|
3575
3577
|
if (s)
|
|
3576
|
-
return
|
|
3578
|
+
return Ln(e, t, s);
|
|
3577
3579
|
}
|
|
3578
3580
|
};
|
|
3579
|
-
let
|
|
3580
|
-
const
|
|
3581
|
-
function
|
|
3582
|
-
return
|
|
3581
|
+
let ze;
|
|
3582
|
+
const ue = Ee({});
|
|
3583
|
+
function In(e) {
|
|
3584
|
+
return ze[e] || null;
|
|
3583
3585
|
}
|
|
3584
|
-
function
|
|
3585
|
-
return e in
|
|
3586
|
+
function kt(e) {
|
|
3587
|
+
return e in ze;
|
|
3586
3588
|
}
|
|
3587
|
-
function
|
|
3588
|
-
if (!
|
|
3589
|
+
function Cn(e, t) {
|
|
3590
|
+
if (!kt(e))
|
|
3589
3591
|
return null;
|
|
3590
|
-
const r =
|
|
3591
|
-
return
|
|
3592
|
+
const r = In(e);
|
|
3593
|
+
return Nn(r, t);
|
|
3592
3594
|
}
|
|
3593
|
-
function
|
|
3595
|
+
function Mn(e) {
|
|
3594
3596
|
if (e == null)
|
|
3595
3597
|
return;
|
|
3596
|
-
const t =
|
|
3598
|
+
const t = xe(e);
|
|
3597
3599
|
for (let r = 0; r < t.length; r++) {
|
|
3598
3600
|
const n = t[r];
|
|
3599
|
-
if (
|
|
3601
|
+
if (kt(n))
|
|
3600
3602
|
return n;
|
|
3601
3603
|
}
|
|
3602
3604
|
}
|
|
3603
|
-
function
|
|
3604
|
-
delete
|
|
3605
|
+
function Vt(e, ...t) {
|
|
3606
|
+
delete k[e], ue.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3605
3607
|
}
|
|
3606
|
-
|
|
3607
|
-
[
|
|
3608
|
+
ee(
|
|
3609
|
+
[ue],
|
|
3608
3610
|
([e]) => Object.keys(e)
|
|
3609
3611
|
);
|
|
3610
|
-
|
|
3611
|
-
const
|
|
3612
|
-
function
|
|
3613
|
-
|
|
3612
|
+
ue.subscribe((e) => ze = e);
|
|
3613
|
+
const me = {};
|
|
3614
|
+
function $n(e, t) {
|
|
3615
|
+
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
3614
3616
|
}
|
|
3615
|
-
function
|
|
3616
|
-
return
|
|
3617
|
+
function Xt(e) {
|
|
3618
|
+
return me[e];
|
|
3617
3619
|
}
|
|
3618
|
-
function
|
|
3619
|
-
return
|
|
3620
|
-
const r =
|
|
3620
|
+
function Rn(e) {
|
|
3621
|
+
return xe(e).map((t) => {
|
|
3622
|
+
const r = Xt(t);
|
|
3621
3623
|
return [t, r ? [...r] : []];
|
|
3622
3624
|
}).filter(([, t]) => t.length > 0);
|
|
3623
3625
|
}
|
|
3624
|
-
function
|
|
3625
|
-
return e == null ? !1 :
|
|
3626
|
+
function je(e) {
|
|
3627
|
+
return e == null ? !1 : xe(e).some(
|
|
3626
3628
|
(t) => {
|
|
3627
3629
|
var r;
|
|
3628
|
-
return (r =
|
|
3630
|
+
return (r = Xt(t)) == null ? void 0 : r.size;
|
|
3629
3631
|
}
|
|
3630
3632
|
);
|
|
3631
3633
|
}
|
|
3632
|
-
function
|
|
3634
|
+
function Un(e, t) {
|
|
3633
3635
|
return Promise.all(
|
|
3634
|
-
t.map((n) => (
|
|
3635
|
-
).then((n) =>
|
|
3636
|
-
}
|
|
3637
|
-
const
|
|
3638
|
-
function
|
|
3639
|
-
if (!
|
|
3640
|
-
return e in
|
|
3641
|
-
const t =
|
|
3642
|
-
return
|
|
3636
|
+
t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
|
|
3637
|
+
).then((n) => Vt(e, ...n));
|
|
3638
|
+
}
|
|
3639
|
+
const ne = {};
|
|
3640
|
+
function zt(e) {
|
|
3641
|
+
if (!je(e))
|
|
3642
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3643
|
+
const t = Rn(e);
|
|
3644
|
+
return ne[e] = Promise.all(
|
|
3643
3645
|
t.map(
|
|
3644
|
-
([r, n]) =>
|
|
3646
|
+
([r, n]) => Un(r, n)
|
|
3645
3647
|
)
|
|
3646
3648
|
).then(() => {
|
|
3647
|
-
if (
|
|
3648
|
-
return
|
|
3649
|
-
delete
|
|
3650
|
-
}),
|
|
3649
|
+
if (je(e))
|
|
3650
|
+
return zt(e);
|
|
3651
|
+
delete ne[e];
|
|
3652
|
+
}), ne[e];
|
|
3651
3653
|
}
|
|
3652
|
-
const
|
|
3654
|
+
const Gn = {
|
|
3653
3655
|
number: {
|
|
3654
3656
|
scientific: { notation: "scientific" },
|
|
3655
3657
|
engineering: { notation: "engineering" },
|
|
@@ -3678,150 +3680,150 @@ const Un = {
|
|
|
3678
3680
|
timeZoneName: "short"
|
|
3679
3681
|
}
|
|
3680
3682
|
}
|
|
3681
|
-
},
|
|
3683
|
+
}, Dn = {
|
|
3682
3684
|
fallbackLocale: null,
|
|
3683
3685
|
loadingDelay: 200,
|
|
3684
|
-
formats:
|
|
3686
|
+
formats: Gn,
|
|
3685
3687
|
warnOnMissingMessages: !0,
|
|
3686
3688
|
handleMissingMessage: void 0,
|
|
3687
3689
|
ignoreTag: !0
|
|
3688
|
-
},
|
|
3689
|
-
function
|
|
3690
|
-
return
|
|
3691
|
-
}
|
|
3692
|
-
const
|
|
3693
|
-
var
|
|
3694
|
-
for (var r in t)
|
|
3695
|
-
|
|
3696
|
-
if (
|
|
3697
|
-
for (var r of
|
|
3698
|
-
|
|
3690
|
+
}, Fn = Dn;
|
|
3691
|
+
function K() {
|
|
3692
|
+
return Fn;
|
|
3693
|
+
}
|
|
3694
|
+
const Ne = Ee(!1);
|
|
3695
|
+
var jn = Object.defineProperty, kn = Object.defineProperties, Vn = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, Xn = Object.prototype.hasOwnProperty, zn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Wn = (e, t) => {
|
|
3696
|
+
for (var r in t || (t = {}))
|
|
3697
|
+
Xn.call(t, r) && ct(e, r, t[r]);
|
|
3698
|
+
if (ft)
|
|
3699
|
+
for (var r of ft(t))
|
|
3700
|
+
zn.call(t, r) && ct(e, r, t[r]);
|
|
3699
3701
|
return e;
|
|
3700
|
-
},
|
|
3701
|
-
let
|
|
3702
|
-
const
|
|
3703
|
-
function
|
|
3702
|
+
}, Zn = (e, t) => kn(e, Vn(t));
|
|
3703
|
+
let ke;
|
|
3704
|
+
const be = Ee(null);
|
|
3705
|
+
function pt(e) {
|
|
3704
3706
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3705
3707
|
}
|
|
3706
|
-
function
|
|
3707
|
-
const r =
|
|
3708
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3708
|
+
function xe(e, t = K().fallbackLocale) {
|
|
3709
|
+
const r = pt(e);
|
|
3710
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3709
3711
|
}
|
|
3710
|
-
function
|
|
3711
|
-
return
|
|
3712
|
+
function X() {
|
|
3713
|
+
return ke != null ? ke : void 0;
|
|
3712
3714
|
}
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
+
be.subscribe((e) => {
|
|
3716
|
+
ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3715
3717
|
});
|
|
3716
|
-
const
|
|
3717
|
-
if (e &&
|
|
3718
|
-
const { loadingDelay: t } =
|
|
3718
|
+
const Qn = (e) => {
|
|
3719
|
+
if (e && Mn(e) && je(e)) {
|
|
3720
|
+
const { loadingDelay: t } = K();
|
|
3719
3721
|
let r;
|
|
3720
|
-
return typeof window != "undefined" &&
|
|
3721
|
-
() =>
|
|
3722
|
+
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
|
3723
|
+
() => Ne.set(!0),
|
|
3722
3724
|
t
|
|
3723
|
-
) :
|
|
3724
|
-
|
|
3725
|
+
) : Ne.set(!0), zt(e).then(() => {
|
|
3726
|
+
be.set(e);
|
|
3725
3727
|
}).finally(() => {
|
|
3726
|
-
clearTimeout(r),
|
|
3728
|
+
clearTimeout(r), Ne.set(!1);
|
|
3727
3729
|
});
|
|
3728
3730
|
}
|
|
3729
|
-
return
|
|
3730
|
-
},
|
|
3731
|
-
set:
|
|
3732
|
-
}),
|
|
3731
|
+
return be.set(e);
|
|
3732
|
+
}, te = Zn(Wn({}, be), {
|
|
3733
|
+
set: Qn
|
|
3734
|
+
}), Pe = (e) => {
|
|
3733
3735
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3734
3736
|
return (n) => {
|
|
3735
3737
|
const i = JSON.stringify(n);
|
|
3736
3738
|
return i in t ? t[i] : t[i] = e(n);
|
|
3737
3739
|
};
|
|
3738
3740
|
};
|
|
3739
|
-
var
|
|
3741
|
+
var qn = Object.defineProperty, ve = Object.getOwnPropertySymbols, Wt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3740
3742
|
for (var r in t || (t = {}))
|
|
3741
|
-
|
|
3742
|
-
if (
|
|
3743
|
-
for (var r of
|
|
3744
|
-
|
|
3743
|
+
Wt.call(t, r) && mt(e, r, t[r]);
|
|
3744
|
+
if (ve)
|
|
3745
|
+
for (var r of ve(t))
|
|
3746
|
+
Zt.call(t, r) && mt(e, r, t[r]);
|
|
3745
3747
|
return e;
|
|
3746
|
-
},
|
|
3748
|
+
}, re = (e, t) => {
|
|
3747
3749
|
var r = {};
|
|
3748
3750
|
for (var n in e)
|
|
3749
|
-
|
|
3750
|
-
if (e != null &&
|
|
3751
|
-
for (var n of
|
|
3752
|
-
t.indexOf(n) < 0 &&
|
|
3751
|
+
Wt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3752
|
+
if (e != null && ve)
|
|
3753
|
+
for (var n of ve(e))
|
|
3754
|
+
t.indexOf(n) < 0 && Zt.call(e, n) && (r[n] = e[n]);
|
|
3753
3755
|
return r;
|
|
3754
3756
|
};
|
|
3755
|
-
const
|
|
3756
|
-
const { formats: r } =
|
|
3757
|
+
const oe = (e, t) => {
|
|
3758
|
+
const { formats: r } = K();
|
|
3757
3759
|
if (e in r && t in r[e])
|
|
3758
3760
|
return r[e][t];
|
|
3759
3761
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3760
|
-
},
|
|
3762
|
+
}, Jn = Pe(
|
|
3761
3763
|
(e) => {
|
|
3762
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3764
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3763
3765
|
if (r == null)
|
|
3764
3766
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3765
|
-
return n && (i =
|
|
3767
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3766
3768
|
}
|
|
3767
|
-
),
|
|
3769
|
+
), Yn = Pe(
|
|
3768
3770
|
(e) => {
|
|
3769
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3771
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3770
3772
|
if (r == null)
|
|
3771
3773
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3772
|
-
return n ? i =
|
|
3774
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3773
3775
|
}
|
|
3774
|
-
),
|
|
3776
|
+
), Kn = Pe(
|
|
3775
3777
|
(e) => {
|
|
3776
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3778
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3777
3779
|
if (r == null)
|
|
3778
3780
|
throw new Error(
|
|
3779
3781
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3780
3782
|
);
|
|
3781
|
-
return n ? i =
|
|
3783
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3782
3784
|
}
|
|
3783
|
-
),
|
|
3785
|
+
), ei = (e = {}) => {
|
|
3784
3786
|
var t = e, {
|
|
3785
|
-
locale: r =
|
|
3786
|
-
} = t, n =
|
|
3787
|
+
locale: r = X()
|
|
3788
|
+
} = t, n = re(t, [
|
|
3787
3789
|
"locale"
|
|
3788
3790
|
]);
|
|
3789
|
-
return
|
|
3790
|
-
},
|
|
3791
|
+
return Jn(We({ locale: r }, n));
|
|
3792
|
+
}, ti = (e = {}) => {
|
|
3791
3793
|
var t = e, {
|
|
3792
|
-
locale: r =
|
|
3793
|
-
} = t, n =
|
|
3794
|
+
locale: r = X()
|
|
3795
|
+
} = t, n = re(t, [
|
|
3794
3796
|
"locale"
|
|
3795
3797
|
]);
|
|
3796
|
-
return
|
|
3797
|
-
},
|
|
3798
|
+
return Yn(We({ locale: r }, n));
|
|
3799
|
+
}, ri = (e = {}) => {
|
|
3798
3800
|
var t = e, {
|
|
3799
|
-
locale: r =
|
|
3800
|
-
} = t, n =
|
|
3801
|
+
locale: r = X()
|
|
3802
|
+
} = t, n = re(t, [
|
|
3801
3803
|
"locale"
|
|
3802
3804
|
]);
|
|
3803
|
-
return
|
|
3804
|
-
},
|
|
3805
|
+
return Kn(We({ locale: r }, n));
|
|
3806
|
+
}, ni = Pe(
|
|
3805
3807
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3806
|
-
(e, t =
|
|
3807
|
-
ignoreTag:
|
|
3808
|
+
(e, t = X()) => new wn(e, t, K().formats, {
|
|
3809
|
+
ignoreTag: K().ignoreTag
|
|
3808
3810
|
})
|
|
3809
|
-
),
|
|
3811
|
+
), ii = (e, t = {}) => {
|
|
3810
3812
|
var r, n, i, s;
|
|
3811
3813
|
let o = t;
|
|
3812
3814
|
typeof e == "object" && (o = e, e = o.id);
|
|
3813
3815
|
const {
|
|
3814
3816
|
values: u,
|
|
3815
|
-
locale: h =
|
|
3817
|
+
locale: h = X(),
|
|
3816
3818
|
default: a
|
|
3817
3819
|
} = o;
|
|
3818
3820
|
if (h == null)
|
|
3819
3821
|
throw new Error(
|
|
3820
3822
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3821
3823
|
);
|
|
3822
|
-
let l =
|
|
3824
|
+
let l = jt(e, h);
|
|
3823
3825
|
if (!l)
|
|
3824
|
-
l = (s = (i = (n = (r =
|
|
3826
|
+
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;
|
|
3825
3827
|
else if (typeof l != "string")
|
|
3826
3828
|
return console.warn(
|
|
3827
3829
|
`[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.`
|
|
@@ -3830,7 +3832,7 @@ const se = (e, t) => {
|
|
|
3830
3832
|
return l;
|
|
3831
3833
|
let c = l;
|
|
3832
3834
|
try {
|
|
3833
|
-
c =
|
|
3835
|
+
c = ni(l, h).format(u);
|
|
3834
3836
|
} catch (f) {
|
|
3835
3837
|
f instanceof Error && console.warn(
|
|
3836
3838
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3838,24 +3840,24 @@ const se = (e, t) => {
|
|
|
3838
3840
|
);
|
|
3839
3841
|
}
|
|
3840
3842
|
return c;
|
|
3841
|
-
},
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
function
|
|
3847
|
-
|
|
3848
|
-
}
|
|
3849
|
-
function
|
|
3850
|
-
|
|
3851
|
-
}
|
|
3852
|
-
function
|
|
3843
|
+
}, si = (e, t) => ri(t).format(e), oi = (e, t) => ti(t).format(e), ai = (e, t) => ei(t).format(e), ui = (e, t = X()) => jt(e, t), hi = ee([te, ue], () => ii);
|
|
3844
|
+
ee([te], () => si);
|
|
3845
|
+
ee([te], () => oi);
|
|
3846
|
+
ee([te], () => ai);
|
|
3847
|
+
ee([te, ue], () => ui);
|
|
3848
|
+
function dt(e, t) {
|
|
3849
|
+
Vt(e, t);
|
|
3850
|
+
}
|
|
3851
|
+
function li(e) {
|
|
3852
|
+
te.set(e);
|
|
3853
|
+
}
|
|
3854
|
+
function fi(e, t) {
|
|
3853
3855
|
if (e) {
|
|
3854
3856
|
const r = document.createElement("style");
|
|
3855
3857
|
r.innerHTML = t, e.appendChild(r);
|
|
3856
3858
|
}
|
|
3857
3859
|
}
|
|
3858
|
-
function
|
|
3860
|
+
function ci(e, t) {
|
|
3859
3861
|
const r = new URL(t);
|
|
3860
3862
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3861
3863
|
const i = document.createElement("style");
|
|
@@ -3864,7 +3866,7 @@ function fi(e, t) {
|
|
|
3864
3866
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3865
3867
|
});
|
|
3866
3868
|
}
|
|
3867
|
-
function
|
|
3869
|
+
function pi(e, t, r) {
|
|
3868
3870
|
if (window.emMessageBus) {
|
|
3869
3871
|
const n = document.createElement("style");
|
|
3870
3872
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3872,68 +3874,68 @@ function ci(e, t, r) {
|
|
|
3872
3874
|
});
|
|
3873
3875
|
}
|
|
3874
3876
|
}
|
|
3875
|
-
function
|
|
3876
|
-
|
|
3877
|
+
function mi(e) {
|
|
3878
|
+
rr(e, "svelte-1bsli1q", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emw--color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}");
|
|
3877
3879
|
}
|
|
3878
|
-
function
|
|
3880
|
+
function gt(e, t, r) {
|
|
3879
3881
|
const n = e.slice();
|
|
3880
3882
|
return n[21] = t[r], n;
|
|
3881
3883
|
}
|
|
3882
|
-
function
|
|
3884
|
+
function bt(e, t, r) {
|
|
3883
3885
|
const n = e.slice();
|
|
3884
3886
|
return n[21] = t[r], n;
|
|
3885
3887
|
}
|
|
3886
|
-
function
|
|
3888
|
+
function di(e) {
|
|
3887
3889
|
let t, r = (
|
|
3888
3890
|
/*$_*/
|
|
3889
3891
|
e[4]("popularProviders") + ""
|
|
3890
3892
|
), n, i, s, o, u = (
|
|
3891
3893
|
/*$_*/
|
|
3892
3894
|
e[4]("otherProviders") + ""
|
|
3893
|
-
), h, a, l, c =
|
|
3895
|
+
), h, a, l, c = le(
|
|
3894
3896
|
/*topProviders*/
|
|
3895
3897
|
e[1]
|
|
3896
3898
|
), f = [];
|
|
3897
|
-
for (let
|
|
3898
|
-
f[
|
|
3899
|
-
let g =
|
|
3899
|
+
for (let p = 0; p < c.length; p += 1)
|
|
3900
|
+
f[p] = vt(bt(e, c, p));
|
|
3901
|
+
let g = le(
|
|
3900
3902
|
/*otherProviders*/
|
|
3901
3903
|
e[2]
|
|
3902
|
-
),
|
|
3903
|
-
for (let
|
|
3904
|
-
p
|
|
3904
|
+
), d = [];
|
|
3905
|
+
for (let p = 0; p < g.length; p += 1)
|
|
3906
|
+
d[p] = Et(gt(e, g, p));
|
|
3905
3907
|
return {
|
|
3906
3908
|
c() {
|
|
3907
|
-
t = A("h4"), n = R(r), i =
|
|
3908
|
-
for (let
|
|
3909
|
-
f[
|
|
3910
|
-
s =
|
|
3911
|
-
for (let
|
|
3912
|
-
p
|
|
3913
|
-
l =
|
|
3909
|
+
t = A("h4"), n = R(r), i = G();
|
|
3910
|
+
for (let p = 0; p < f.length; p += 1)
|
|
3911
|
+
f[p].c();
|
|
3912
|
+
s = G(), o = A("h4"), h = R(u), a = G();
|
|
3913
|
+
for (let p = 0; p < d.length; p += 1)
|
|
3914
|
+
d[p].c();
|
|
3915
|
+
l = sr(), S(t, "class", "ProviderTitle"), S(o, "class", "ProviderTitle");
|
|
3914
3916
|
},
|
|
3915
|
-
m(
|
|
3916
|
-
M(
|
|
3917
|
+
m(p, v) {
|
|
3918
|
+
M(p, t, v), y(t, n), M(p, i, v);
|
|
3917
3919
|
for (let m = 0; m < f.length; m += 1)
|
|
3918
|
-
f[m] && f[m].m(
|
|
3919
|
-
M(
|
|
3920
|
-
for (let m = 0; m <
|
|
3921
|
-
|
|
3922
|
-
M(
|
|
3920
|
+
f[m] && f[m].m(p, v);
|
|
3921
|
+
M(p, s, v), M(p, o, v), y(o, h), M(p, a, v);
|
|
3922
|
+
for (let m = 0; m < d.length; m += 1)
|
|
3923
|
+
d[m] && d[m].m(p, v);
|
|
3924
|
+
M(p, l, v);
|
|
3923
3925
|
},
|
|
3924
|
-
p(
|
|
3926
|
+
p(p, v) {
|
|
3925
3927
|
if (v & /*$_*/
|
|
3926
3928
|
16 && r !== (r = /*$_*/
|
|
3927
|
-
|
|
3929
|
+
p[4]("popularProviders") + "") && j(n, r), v & /*openGameProviderPage, topProviders, $_*/
|
|
3928
3930
|
50) {
|
|
3929
|
-
c =
|
|
3931
|
+
c = le(
|
|
3930
3932
|
/*topProviders*/
|
|
3931
|
-
|
|
3933
|
+
p[1]
|
|
3932
3934
|
);
|
|
3933
3935
|
let m;
|
|
3934
3936
|
for (m = 0; m < c.length; m += 1) {
|
|
3935
|
-
const
|
|
3936
|
-
f[m] ? f[m].p(
|
|
3937
|
+
const P = bt(p, c, m);
|
|
3938
|
+
f[m] ? f[m].p(P, v) : (f[m] = vt(P), f[m].c(), f[m].m(s.parentNode, s));
|
|
3937
3939
|
}
|
|
3938
3940
|
for (; m < f.length; m += 1)
|
|
3939
3941
|
f[m].d(1);
|
|
@@ -3941,28 +3943,28 @@ function mi(e) {
|
|
|
3941
3943
|
}
|
|
3942
3944
|
if (v & /*$_*/
|
|
3943
3945
|
16 && u !== (u = /*$_*/
|
|
3944
|
-
|
|
3946
|
+
p[4]("otherProviders") + "") && j(h, u), v & /*openGameProviderPage, otherProviders, $_*/
|
|
3945
3947
|
52) {
|
|
3946
|
-
g =
|
|
3948
|
+
g = le(
|
|
3947
3949
|
/*otherProviders*/
|
|
3948
|
-
|
|
3950
|
+
p[2]
|
|
3949
3951
|
);
|
|
3950
3952
|
let m;
|
|
3951
3953
|
for (m = 0; m < g.length; m += 1) {
|
|
3952
|
-
const
|
|
3953
|
-
|
|
3954
|
+
const P = gt(p, g, m);
|
|
3955
|
+
d[m] ? d[m].p(P, v) : (d[m] = Et(P), d[m].c(), d[m].m(l.parentNode, l));
|
|
3954
3956
|
}
|
|
3955
|
-
for (; m <
|
|
3956
|
-
|
|
3957
|
-
|
|
3957
|
+
for (; m < d.length; m += 1)
|
|
3958
|
+
d[m].d(1);
|
|
3959
|
+
d.length = g.length;
|
|
3958
3960
|
}
|
|
3959
3961
|
},
|
|
3960
|
-
d(
|
|
3961
|
-
|
|
3962
|
+
d(p) {
|
|
3963
|
+
p && (C(t), C(i), C(s), C(o), C(a), C(l)), Ke(f, p), Ke(d, p);
|
|
3962
3964
|
}
|
|
3963
3965
|
};
|
|
3964
3966
|
}
|
|
3965
|
-
function
|
|
3967
|
+
function gi(e) {
|
|
3966
3968
|
let t, r = (
|
|
3967
3969
|
/*$_*/
|
|
3968
3970
|
e[4]("loading") + ""
|
|
@@ -3977,24 +3979,24 @@ function pi(e) {
|
|
|
3977
3979
|
p(i, s) {
|
|
3978
3980
|
s & /*$_*/
|
|
3979
3981
|
16 && r !== (r = /*$_*/
|
|
3980
|
-
i[4]("loading") + "") &&
|
|
3982
|
+
i[4]("loading") + "") && j(n, r);
|
|
3981
3983
|
},
|
|
3982
3984
|
d(i) {
|
|
3983
3985
|
i && C(t);
|
|
3984
3986
|
}
|
|
3985
3987
|
};
|
|
3986
3988
|
}
|
|
3987
|
-
function
|
|
3989
|
+
function vt(e) {
|
|
3988
3990
|
let t, r, n, i, s, o, u, h = (
|
|
3989
3991
|
/*provider*/
|
|
3990
3992
|
e[21].name + ""
|
|
3991
3993
|
), a, l, c, f = (
|
|
3992
3994
|
/*provider*/
|
|
3993
3995
|
e[21].games.count + ""
|
|
3994
|
-
), g,
|
|
3996
|
+
), g, d, p = (
|
|
3995
3997
|
/*$_*/
|
|
3996
3998
|
e[4]("games") + ""
|
|
3997
|
-
), v, m,
|
|
3999
|
+
), v, m, P;
|
|
3998
4000
|
function B() {
|
|
3999
4001
|
return (
|
|
4000
4002
|
/*click_handler*/
|
|
@@ -4006,42 +4008,42 @@ function bt(e) {
|
|
|
4006
4008
|
}
|
|
4007
4009
|
return {
|
|
4008
4010
|
c() {
|
|
4009
|
-
t = A("div"), r = A("img"), s =
|
|
4011
|
+
t = A("div"), r = A("img"), s = G(), o = A("div"), u = A("p"), a = R(h), l = G(), c = A("p"), g = R(f), d = G(), v = R(p), de(r.src, n = /*provider*/
|
|
4010
4012
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
4011
4013
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
4012
4014
|
},
|
|
4013
|
-
m(O,
|
|
4014
|
-
M(O, t,
|
|
4015
|
+
m(O, H) {
|
|
4016
|
+
M(O, t, H), y(t, r), y(t, s), y(t, o), y(o, u), y(u, a), y(o, l), y(o, c), y(c, g), y(c, d), y(c, v), m || (P = Pt(t, "click", B), m = !0);
|
|
4015
4017
|
},
|
|
4016
|
-
p(O,
|
|
4017
|
-
e = O,
|
|
4018
|
-
2 && !
|
|
4019
|
-
e[21].logo) && S(r, "src", n),
|
|
4018
|
+
p(O, H) {
|
|
4019
|
+
e = O, H & /*topProviders*/
|
|
4020
|
+
2 && !de(r.src, n = /*provider*/
|
|
4021
|
+
e[21].logo) && S(r, "src", n), H & /*topProviders*/
|
|
4020
4022
|
2 && i !== (i = /*provider*/
|
|
4021
|
-
e[21].name) && S(r, "alt", i),
|
|
4023
|
+
e[21].name) && S(r, "alt", i), H & /*topProviders*/
|
|
4022
4024
|
2 && h !== (h = /*provider*/
|
|
4023
|
-
e[21].name + "") &&
|
|
4025
|
+
e[21].name + "") && j(a, h), H & /*topProviders*/
|
|
4024
4026
|
2 && f !== (f = /*provider*/
|
|
4025
|
-
e[21].games.count + "") &&
|
|
4026
|
-
16 &&
|
|
4027
|
-
e[4]("games") + "") &&
|
|
4027
|
+
e[21].games.count + "") && j(g, f), H & /*$_*/
|
|
4028
|
+
16 && p !== (p = /*$_*/
|
|
4029
|
+
e[4]("games") + "") && j(v, p);
|
|
4028
4030
|
},
|
|
4029
4031
|
d(O) {
|
|
4030
|
-
O && C(t), m = !1,
|
|
4032
|
+
O && C(t), m = !1, P();
|
|
4031
4033
|
}
|
|
4032
4034
|
};
|
|
4033
4035
|
}
|
|
4034
|
-
function
|
|
4036
|
+
function Et(e) {
|
|
4035
4037
|
let t, r, n, i, s, o, u, h = (
|
|
4036
4038
|
/*provider*/
|
|
4037
4039
|
e[21].name + ""
|
|
4038
4040
|
), a, l, c, f = (
|
|
4039
4041
|
/*provider*/
|
|
4040
4042
|
e[21].games.count + ""
|
|
4041
|
-
), g,
|
|
4043
|
+
), g, d, p = (
|
|
4042
4044
|
/*$_*/
|
|
4043
4045
|
e[4]("games") + ""
|
|
4044
|
-
), v, m,
|
|
4046
|
+
), v, m, P, B;
|
|
4045
4047
|
function O() {
|
|
4046
4048
|
return (
|
|
4047
4049
|
/*click_handler_1*/
|
|
@@ -4053,37 +4055,37 @@ function vt(e) {
|
|
|
4053
4055
|
}
|
|
4054
4056
|
return {
|
|
4055
4057
|
c() {
|
|
4056
|
-
t = A("div"), r = A("img"), s =
|
|
4058
|
+
t = A("div"), r = A("img"), s = G(), o = A("div"), u = A("p"), a = R(h), l = G(), c = A("p"), g = R(f), d = G(), v = R(p), m = G(), de(r.src, n = /*provider*/
|
|
4057
4059
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
4058
4060
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
4059
4061
|
},
|
|
4060
|
-
m(
|
|
4061
|
-
M(
|
|
4062
|
+
m(H, N) {
|
|
4063
|
+
M(H, t, N), y(t, r), y(t, s), y(t, o), y(o, u), y(u, a), y(o, l), y(o, c), y(c, g), y(c, d), y(c, v), y(t, m), P || (B = Pt(t, "click", O), P = !0);
|
|
4062
4064
|
},
|
|
4063
|
-
p(
|
|
4064
|
-
e =
|
|
4065
|
-
4 && !
|
|
4065
|
+
p(H, N) {
|
|
4066
|
+
e = H, N & /*otherProviders*/
|
|
4067
|
+
4 && !de(r.src, n = /*provider*/
|
|
4066
4068
|
e[21].logo) && S(r, "src", n), N & /*otherProviders*/
|
|
4067
4069
|
4 && i !== (i = /*provider*/
|
|
4068
4070
|
e[21].name) && S(r, "alt", i), N & /*otherProviders*/
|
|
4069
4071
|
4 && h !== (h = /*provider*/
|
|
4070
|
-
e[21].name + "") &&
|
|
4072
|
+
e[21].name + "") && j(a, h), N & /*otherProviders*/
|
|
4071
4073
|
4 && f !== (f = /*provider*/
|
|
4072
|
-
e[21].games.count + "") &&
|
|
4073
|
-
16 &&
|
|
4074
|
-
e[4]("games") + "") &&
|
|
4074
|
+
e[21].games.count + "") && j(g, f), N & /*$_*/
|
|
4075
|
+
16 && p !== (p = /*$_*/
|
|
4076
|
+
e[4]("games") + "") && j(v, p);
|
|
4075
4077
|
},
|
|
4076
|
-
d(
|
|
4077
|
-
|
|
4078
|
+
d(H) {
|
|
4079
|
+
H && C(t), P = !1, B();
|
|
4078
4080
|
}
|
|
4079
4081
|
};
|
|
4080
4082
|
}
|
|
4081
|
-
function
|
|
4083
|
+
function bi(e) {
|
|
4082
4084
|
let t;
|
|
4083
4085
|
function r(s, o) {
|
|
4084
4086
|
return (
|
|
4085
4087
|
/*isLoading*/
|
|
4086
|
-
s[3] === !0 ?
|
|
4088
|
+
s[3] === !0 ? gi : di
|
|
4087
4089
|
);
|
|
4088
4090
|
}
|
|
4089
4091
|
let n = r(e), i = n(e);
|
|
@@ -4104,46 +4106,46 @@ function gi(e) {
|
|
|
4104
4106
|
}
|
|
4105
4107
|
};
|
|
4106
4108
|
}
|
|
4107
|
-
function
|
|
4109
|
+
function vi(e, t, r) {
|
|
4108
4110
|
let n;
|
|
4109
|
-
|
|
4110
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: a = "" } = t, { mbsource: l } = t, c = [], f = [], g = [],
|
|
4111
|
+
tr(e, hi, (b) => r(4, n = b));
|
|
4112
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: a = "" } = t, { mbsource: l } = t, c = [], f = [], g = [], d = !1, p;
|
|
4111
4113
|
const v = () => {
|
|
4112
4114
|
fetch(a).then((L) => L.json()).then((L) => {
|
|
4113
|
-
Object.keys(L).forEach((
|
|
4114
|
-
|
|
4115
|
+
Object.keys(L).forEach((V) => {
|
|
4116
|
+
dt(V, L[V]);
|
|
4115
4117
|
});
|
|
4116
4118
|
}).catch((L) => {
|
|
4117
4119
|
console.log(L);
|
|
4118
4120
|
});
|
|
4119
4121
|
};
|
|
4120
|
-
Object.keys(
|
|
4121
|
-
|
|
4122
|
+
Object.keys(tt).forEach((b) => {
|
|
4123
|
+
dt(b, tt[b]);
|
|
4122
4124
|
});
|
|
4123
4125
|
const m = () => {
|
|
4124
|
-
r(3,
|
|
4126
|
+
r(3, d = !0);
|
|
4125
4127
|
const b = new URL(`${i}/v1/casino/vendors`);
|
|
4126
4128
|
b.searchParams.append("datasource", s), b.searchParams.append("language", o), b.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(b).then((L) => L.json()).then((L) => {
|
|
4127
|
-
r(3,
|
|
4128
|
-
let
|
|
4129
|
-
|
|
4129
|
+
r(3, d = !1), c = L.items.map((D) => D), r(1, f = c.filter((D) => D.isTopVendor === !0)), r(2, g = c.filter((D) => D.isTopVendor === !1));
|
|
4130
|
+
let V = [];
|
|
4131
|
+
V = c.flatMap((D) => D.subVendors), g.push(...V.filter((D) => D.games.count > 0));
|
|
4130
4132
|
});
|
|
4131
|
-
},
|
|
4133
|
+
}, P = (b, L, V) => {
|
|
4132
4134
|
window.postMessage(
|
|
4133
4135
|
{
|
|
4134
4136
|
type: "OpenGameProvider",
|
|
4135
4137
|
providerId: b,
|
|
4136
4138
|
providerName: L,
|
|
4137
|
-
providerLogo:
|
|
4139
|
+
providerLogo: V
|
|
4138
4140
|
},
|
|
4139
4141
|
window.location.href
|
|
4140
4142
|
);
|
|
4141
4143
|
}, B = () => {
|
|
4142
|
-
|
|
4143
|
-
}, O = (b) =>
|
|
4144
|
+
li(o);
|
|
4145
|
+
}, O = (b) => P(b.id, b.name, b.logo), H = (b) => P(b.id, b.name, b.logo);
|
|
4144
4146
|
function N(b) {
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
+
Le[b ? "unshift" : "push"](() => {
|
|
4148
|
+
p = b, r(0, p);
|
|
4147
4149
|
});
|
|
4148
4150
|
}
|
|
4149
4151
|
return e.$$set = (b) => {
|
|
@@ -4153,16 +4155,16 @@ function bi(e, t, r) {
|
|
|
4153
4155
|
448 && i && o && s && m(), e.$$.dirty & /*lang*/
|
|
4154
4156
|
256 && o && B(), e.$$.dirty & /*translationurl*/
|
|
4155
4157
|
2048 && a && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4156
|
-
513 && u &&
|
|
4157
|
-
1025 && h &&
|
|
4158
|
-
4097 && l &&
|
|
4158
|
+
513 && u && p && fi(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4159
|
+
1025 && h && p && ci(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4160
|
+
4097 && l && p && pi(p, `${l}.Style`);
|
|
4159
4161
|
}, [
|
|
4160
|
-
|
|
4162
|
+
p,
|
|
4161
4163
|
f,
|
|
4162
4164
|
g,
|
|
4163
|
-
|
|
4165
|
+
d,
|
|
4164
4166
|
n,
|
|
4165
|
-
|
|
4167
|
+
P,
|
|
4166
4168
|
i,
|
|
4167
4169
|
s,
|
|
4168
4170
|
o,
|
|
@@ -4171,18 +4173,18 @@ function bi(e, t, r) {
|
|
|
4171
4173
|
a,
|
|
4172
4174
|
l,
|
|
4173
4175
|
O,
|
|
4174
|
-
|
|
4176
|
+
H,
|
|
4175
4177
|
N
|
|
4176
4178
|
];
|
|
4177
4179
|
}
|
|
4178
|
-
class
|
|
4180
|
+
class Ei extends Er {
|
|
4179
4181
|
constructor(t) {
|
|
4180
|
-
super(),
|
|
4182
|
+
super(), br(
|
|
4181
4183
|
this,
|
|
4182
4184
|
t,
|
|
4185
|
+
vi,
|
|
4183
4186
|
bi,
|
|
4184
|
-
|
|
4185
|
-
_t,
|
|
4187
|
+
yt,
|
|
4186
4188
|
{
|
|
4187
4189
|
endpoint: 6,
|
|
4188
4190
|
datasource: 7,
|
|
@@ -4192,53 +4194,53 @@ class vi extends vr {
|
|
|
4192
4194
|
translationurl: 11,
|
|
4193
4195
|
mbsource: 12
|
|
4194
4196
|
},
|
|
4195
|
-
|
|
4197
|
+
mi
|
|
4196
4198
|
);
|
|
4197
4199
|
}
|
|
4198
4200
|
get endpoint() {
|
|
4199
4201
|
return this.$$.ctx[6];
|
|
4200
4202
|
}
|
|
4201
4203
|
set endpoint(t) {
|
|
4202
|
-
this.$$set({ endpoint: t }),
|
|
4204
|
+
this.$$set({ endpoint: t }), F();
|
|
4203
4205
|
}
|
|
4204
4206
|
get datasource() {
|
|
4205
4207
|
return this.$$.ctx[7];
|
|
4206
4208
|
}
|
|
4207
4209
|
set datasource(t) {
|
|
4208
|
-
this.$$set({ datasource: t }),
|
|
4210
|
+
this.$$set({ datasource: t }), F();
|
|
4209
4211
|
}
|
|
4210
4212
|
get lang() {
|
|
4211
4213
|
return this.$$.ctx[8];
|
|
4212
4214
|
}
|
|
4213
4215
|
set lang(t) {
|
|
4214
|
-
this.$$set({ lang: t }),
|
|
4216
|
+
this.$$set({ lang: t }), F();
|
|
4215
4217
|
}
|
|
4216
4218
|
get clientstyling() {
|
|
4217
4219
|
return this.$$.ctx[9];
|
|
4218
4220
|
}
|
|
4219
4221
|
set clientstyling(t) {
|
|
4220
|
-
this.$$set({ clientstyling: t }),
|
|
4222
|
+
this.$$set({ clientstyling: t }), F();
|
|
4221
4223
|
}
|
|
4222
4224
|
get clientstylingurl() {
|
|
4223
4225
|
return this.$$.ctx[10];
|
|
4224
4226
|
}
|
|
4225
4227
|
set clientstylingurl(t) {
|
|
4226
|
-
this.$$set({ clientstylingurl: t }),
|
|
4228
|
+
this.$$set({ clientstylingurl: t }), F();
|
|
4227
4229
|
}
|
|
4228
4230
|
get translationurl() {
|
|
4229
4231
|
return this.$$.ctx[11];
|
|
4230
4232
|
}
|
|
4231
4233
|
set translationurl(t) {
|
|
4232
|
-
this.$$set({ translationurl: t }),
|
|
4234
|
+
this.$$set({ translationurl: t }), F();
|
|
4233
4235
|
}
|
|
4234
4236
|
get mbsource() {
|
|
4235
4237
|
return this.$$.ctx[12];
|
|
4236
4238
|
}
|
|
4237
4239
|
set mbsource(t) {
|
|
4238
|
-
this.$$set({ mbsource: t }),
|
|
4240
|
+
this.$$set({ mbsource: t }), F();
|
|
4239
4241
|
}
|
|
4240
4242
|
}
|
|
4241
|
-
|
|
4243
|
+
vr(Ei, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4242
4244
|
export {
|
|
4243
|
-
|
|
4245
|
+
Ei as default
|
|
4244
4246
|
};
|