@everymatrix/casino-providers 1.52.6 → 1.53.10
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.
|
@@ -1,79 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
var Yt = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
-
var Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Pe = (e, t, r) => t in e ? Jt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
Kt.call(t, r) && Pe(e, r, t[r]);
|
|
8
|
-
if (Qe)
|
|
9
|
-
for (var r of Qe(t))
|
|
10
|
-
er.call(t, r) && Pe(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, qe = (e, t) => qt(e, Yt(t));
|
|
13
|
-
var L = (e, t, r) => Pe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var Ye = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (h) => {
|
|
16
|
-
try {
|
|
17
|
-
u(r.next(h));
|
|
18
|
-
} catch (a) {
|
|
19
|
-
i(a);
|
|
20
|
-
}
|
|
21
|
-
}, o = (h) => {
|
|
22
|
-
try {
|
|
23
|
-
u(r.throw(h));
|
|
24
|
-
} catch (a) {
|
|
25
|
-
i(a);
|
|
26
|
-
}
|
|
27
|
-
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
|
-
u((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function R() {
|
|
1
|
+
function $() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function dt(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function ze() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function se(e) {
|
|
10
|
+
e.forEach(dt);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function Fe(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function mt(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
let
|
|
18
|
+
let ue;
|
|
48
19
|
function de(e, t) {
|
|
49
|
-
return e === t ? !0 : (
|
|
20
|
+
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
50
21
|
}
|
|
51
|
-
function
|
|
22
|
+
function kt(e) {
|
|
52
23
|
return Object.keys(e).length === 0;
|
|
53
24
|
}
|
|
54
|
-
function
|
|
25
|
+
function gt(e, ...t) {
|
|
55
26
|
if (e == null) {
|
|
56
27
|
for (const n of t)
|
|
57
28
|
n(void 0);
|
|
58
|
-
return
|
|
29
|
+
return $;
|
|
59
30
|
}
|
|
60
31
|
const r = e.subscribe(...t);
|
|
61
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
33
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Vt(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(gt(t, r));
|
|
65
36
|
}
|
|
66
37
|
function y(e, t) {
|
|
67
38
|
e.appendChild(t);
|
|
68
39
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
40
|
+
function Xt(e, t, r) {
|
|
41
|
+
const n = zt(e);
|
|
71
42
|
if (!n.getElementById(t)) {
|
|
72
43
|
const i = B("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, Wt(n, i);
|
|
74
45
|
}
|
|
75
46
|
}
|
|
76
|
-
function
|
|
47
|
+
function zt(e) {
|
|
77
48
|
if (!e) return document;
|
|
78
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
50
|
return t && /** @type {ShadowRoot} */
|
|
@@ -82,49 +53,49 @@ function ir(e) {
|
|
|
82
53
|
t
|
|
83
54
|
) : e.ownerDocument;
|
|
84
55
|
}
|
|
85
|
-
function
|
|
56
|
+
function Wt(e, t) {
|
|
86
57
|
return y(
|
|
87
58
|
/** @type {Document} */
|
|
88
59
|
e.head || e,
|
|
89
60
|
t
|
|
90
61
|
), t.sheet;
|
|
91
62
|
}
|
|
92
|
-
function
|
|
63
|
+
function M(e, t, r) {
|
|
93
64
|
e.insertBefore(t, r || null);
|
|
94
65
|
}
|
|
95
|
-
function
|
|
66
|
+
function L(e) {
|
|
96
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
68
|
}
|
|
98
|
-
function
|
|
69
|
+
function We(e, t) {
|
|
99
70
|
for (let r = 0; r < e.length; r += 1)
|
|
100
71
|
e[r] && e[r].d(t);
|
|
101
72
|
}
|
|
102
73
|
function B(e) {
|
|
103
74
|
return document.createElement(e);
|
|
104
75
|
}
|
|
105
|
-
function
|
|
76
|
+
function R(e) {
|
|
106
77
|
return document.createTextNode(e);
|
|
107
78
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
79
|
+
function U() {
|
|
80
|
+
return R(" ");
|
|
110
81
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
82
|
+
function Zt() {
|
|
83
|
+
return R("");
|
|
113
84
|
}
|
|
114
|
-
function
|
|
85
|
+
function bt(e, t, r, n) {
|
|
115
86
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
87
|
}
|
|
117
88
|
function S(e, t, r) {
|
|
118
89
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
90
|
}
|
|
120
|
-
function
|
|
91
|
+
function Qt(e) {
|
|
121
92
|
return Array.from(e.childNodes);
|
|
122
93
|
}
|
|
123
|
-
function
|
|
94
|
+
function D(e, t) {
|
|
124
95
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
96
|
t);
|
|
126
97
|
}
|
|
127
|
-
function
|
|
98
|
+
function Jt(e) {
|
|
128
99
|
const t = {};
|
|
129
100
|
return e.childNodes.forEach(
|
|
130
101
|
/** @param {Element} node */
|
|
@@ -133,241 +104,237 @@ function ur(e) {
|
|
|
133
104
|
}
|
|
134
105
|
), t;
|
|
135
106
|
}
|
|
136
|
-
let
|
|
137
|
-
function
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
const
|
|
141
|
-
let
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
function
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
function
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
function
|
|
153
|
-
if (
|
|
107
|
+
let je;
|
|
108
|
+
function re(e) {
|
|
109
|
+
je = e;
|
|
110
|
+
}
|
|
111
|
+
const z = [], Oe = [];
|
|
112
|
+
let W = [];
|
|
113
|
+
const Ze = [], qt = /* @__PURE__ */ Promise.resolve();
|
|
114
|
+
let Ne = !1;
|
|
115
|
+
function Yt() {
|
|
116
|
+
Ne || (Ne = !0, qt.then(F));
|
|
117
|
+
}
|
|
118
|
+
function we(e) {
|
|
119
|
+
W.push(e);
|
|
120
|
+
}
|
|
121
|
+
const ye = /* @__PURE__ */ new Set();
|
|
122
|
+
let V = 0;
|
|
123
|
+
function F() {
|
|
124
|
+
if (V !== 0)
|
|
154
125
|
return;
|
|
155
|
-
const e =
|
|
126
|
+
const e = je;
|
|
156
127
|
do {
|
|
157
128
|
try {
|
|
158
|
-
for (;
|
|
159
|
-
const t =
|
|
160
|
-
|
|
129
|
+
for (; V < z.length; ) {
|
|
130
|
+
const t = z[V];
|
|
131
|
+
V++, re(t), Kt(t.$$);
|
|
161
132
|
}
|
|
162
133
|
} catch (t) {
|
|
163
|
-
throw
|
|
134
|
+
throw z.length = 0, V = 0, t;
|
|
164
135
|
}
|
|
165
|
-
for (
|
|
166
|
-
for (let t = 0; t <
|
|
167
|
-
const r =
|
|
168
|
-
|
|
136
|
+
for (re(null), z.length = 0, V = 0; Oe.length; ) Oe.pop()();
|
|
137
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
138
|
+
const r = W[t];
|
|
139
|
+
ye.has(r) || (ye.add(r), r());
|
|
169
140
|
}
|
|
170
|
-
|
|
171
|
-
} while (
|
|
172
|
-
for (;
|
|
173
|
-
|
|
174
|
-
|
|
141
|
+
W.length = 0;
|
|
142
|
+
} while (z.length);
|
|
143
|
+
for (; Ze.length; )
|
|
144
|
+
Ze.pop()();
|
|
145
|
+
Ne = !1, ye.clear(), re(e);
|
|
175
146
|
}
|
|
176
|
-
function
|
|
147
|
+
function Kt(e) {
|
|
177
148
|
if (e.fragment !== null) {
|
|
178
|
-
e.update(),
|
|
149
|
+
e.update(), se(e.before_update);
|
|
179
150
|
const t = e.dirty;
|
|
180
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
151
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
|
|
181
152
|
}
|
|
182
153
|
}
|
|
183
|
-
function
|
|
154
|
+
function er(e) {
|
|
184
155
|
const t = [], r = [];
|
|
185
|
-
|
|
156
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
186
157
|
}
|
|
187
|
-
const
|
|
188
|
-
function
|
|
189
|
-
e && e.i && (
|
|
158
|
+
const tr = /* @__PURE__ */ new Set();
|
|
159
|
+
function rr(e, t) {
|
|
160
|
+
e && e.i && (tr.delete(e), e.i(t));
|
|
190
161
|
}
|
|
191
|
-
function
|
|
192
|
-
return
|
|
162
|
+
function he(e) {
|
|
163
|
+
return e?.length !== void 0 ? e : Array.from(e);
|
|
193
164
|
}
|
|
194
|
-
function
|
|
165
|
+
function nr(e, t, r) {
|
|
195
166
|
const { fragment: n, after_update: i } = e.$$;
|
|
196
|
-
n && n.m(t, r),
|
|
197
|
-
const s = e.$$.on_mount.map(
|
|
198
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
199
|
-
}), i.forEach(
|
|
167
|
+
n && n.m(t, r), we(() => {
|
|
168
|
+
const s = e.$$.on_mount.map(dt).filter(Fe);
|
|
169
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : se(s), e.$$.on_mount = [];
|
|
170
|
+
}), i.forEach(we);
|
|
200
171
|
}
|
|
201
|
-
function
|
|
172
|
+
function ir(e, t) {
|
|
202
173
|
const r = e.$$;
|
|
203
|
-
r.fragment !== null && (
|
|
174
|
+
r.fragment !== null && (er(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
204
175
|
}
|
|
205
|
-
function
|
|
206
|
-
e.$$.dirty[0] === -1 && (
|
|
176
|
+
function sr(e, t) {
|
|
177
|
+
e.$$.dirty[0] === -1 && (z.push(e), Yt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
207
178
|
}
|
|
208
|
-
function
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
const
|
|
179
|
+
function or(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
180
|
+
const l = je;
|
|
181
|
+
re(e);
|
|
182
|
+
const u = e.$$ = {
|
|
212
183
|
fragment: null,
|
|
213
184
|
ctx: [],
|
|
214
185
|
// state
|
|
215
186
|
props: s,
|
|
216
|
-
update:
|
|
187
|
+
update: $,
|
|
217
188
|
not_equal: i,
|
|
218
|
-
bound:
|
|
189
|
+
bound: ze(),
|
|
219
190
|
// lifecycle
|
|
220
191
|
on_mount: [],
|
|
221
192
|
on_destroy: [],
|
|
222
193
|
on_disconnect: [],
|
|
223
194
|
before_update: [],
|
|
224
195
|
after_update: [],
|
|
225
|
-
context: new Map(t.context || (
|
|
196
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
226
197
|
// everything else
|
|
227
|
-
callbacks:
|
|
228
|
-
dirty:
|
|
198
|
+
callbacks: ze(),
|
|
199
|
+
dirty: a,
|
|
229
200
|
skip_bound: !1,
|
|
230
|
-
root: t.target ||
|
|
201
|
+
root: t.target || l.$$.root
|
|
231
202
|
};
|
|
232
|
-
o && o(
|
|
233
|
-
let
|
|
234
|
-
if (
|
|
235
|
-
const
|
|
236
|
-
return
|
|
237
|
-
})
|
|
203
|
+
o && o(u.root);
|
|
204
|
+
let h = !1;
|
|
205
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...g) => {
|
|
206
|
+
const m = g.length ? g[0] : f;
|
|
207
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && sr(e, c)), f;
|
|
208
|
+
}), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
238
209
|
if (t.hydrate) {
|
|
239
|
-
const c =
|
|
240
|
-
|
|
210
|
+
const c = Qt(t.target);
|
|
211
|
+
u.fragment && u.fragment.l(c), c.forEach(L);
|
|
241
212
|
} else
|
|
242
|
-
|
|
243
|
-
t.intro &&
|
|
213
|
+
u.fragment && u.fragment.c();
|
|
214
|
+
t.intro && rr(e.$$.fragment), nr(e, t.target, t.anchor), F();
|
|
244
215
|
}
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
let
|
|
248
|
-
typeof HTMLElement == "function" && (
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
216
|
+
re(l);
|
|
217
|
+
}
|
|
218
|
+
let vt;
|
|
219
|
+
typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
220
|
+
/** The Svelte component constructor */
|
|
221
|
+
$$ctor;
|
|
222
|
+
/** Slots */
|
|
223
|
+
$$s;
|
|
224
|
+
/** The Svelte component instance */
|
|
225
|
+
$$c;
|
|
226
|
+
/** Whether or not the custom element is connected */
|
|
227
|
+
$$cn = !1;
|
|
228
|
+
/** Component props data */
|
|
229
|
+
$$d = {};
|
|
230
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
231
|
+
$$r = !1;
|
|
232
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
233
|
+
$$p_d = {};
|
|
234
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
235
|
+
$$l = {};
|
|
236
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
237
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
238
|
+
constructor(e, t, r) {
|
|
239
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
270
240
|
}
|
|
271
|
-
addEventListener(t, r
|
|
272
|
-
if (this.$$l[
|
|
273
|
-
const
|
|
274
|
-
this.$$l_u.set(
|
|
241
|
+
addEventListener(e, t, r) {
|
|
242
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
243
|
+
const n = this.$$c.$on(e, t);
|
|
244
|
+
this.$$l_u.set(t, n);
|
|
275
245
|
}
|
|
276
|
-
super.addEventListener(t, r
|
|
246
|
+
super.addEventListener(e, t, r);
|
|
277
247
|
}
|
|
278
|
-
removeEventListener(t, r
|
|
279
|
-
if (super.removeEventListener(t, r
|
|
280
|
-
const
|
|
281
|
-
|
|
248
|
+
removeEventListener(e, t, r) {
|
|
249
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
250
|
+
const n = this.$$l_u.get(t);
|
|
251
|
+
n && (n(), this.$$l_u.delete(t));
|
|
282
252
|
}
|
|
283
253
|
}
|
|
284
|
-
connectedCallback() {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
};
|
|
254
|
+
async connectedCallback() {
|
|
255
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
256
|
+
let e = function(i) {
|
|
257
|
+
return () => {
|
|
258
|
+
let s;
|
|
259
|
+
return {
|
|
260
|
+
c: function() {
|
|
261
|
+
s = B("slot"), i !== "default" && S(s, "name", i);
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
* @param {HTMLElement} target
|
|
265
|
+
* @param {HTMLElement} [anchor]
|
|
266
|
+
*/
|
|
267
|
+
m: function(l, u) {
|
|
268
|
+
M(l, s, u);
|
|
269
|
+
},
|
|
270
|
+
d: function(l) {
|
|
271
|
+
l && L(s);
|
|
272
|
+
}
|
|
305
273
|
};
|
|
306
274
|
};
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
275
|
+
};
|
|
276
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
277
|
+
return;
|
|
278
|
+
const t = {}, r = Jt(this);
|
|
279
|
+
for (const i of this.$$s)
|
|
280
|
+
i in r && (t[i] = [e(i)]);
|
|
281
|
+
for (const i of this.attributes) {
|
|
282
|
+
const s = this.$$g_p(i.name);
|
|
283
|
+
s in this.$$d || (this.$$d[s] = fe(s, i.value, this.$$p_d, "toProp"));
|
|
284
|
+
}
|
|
285
|
+
for (const i in this.$$p_d)
|
|
286
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
287
|
+
this.$$c = new this.$$ctor({
|
|
288
|
+
target: this.shadowRoot || this,
|
|
289
|
+
props: {
|
|
290
|
+
...this.$$d,
|
|
291
|
+
$$slots: t,
|
|
292
|
+
$$scope: {
|
|
293
|
+
ctx: []
|
|
294
|
+
}
|
|
315
295
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
this.$$
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
this.$$r = !0;
|
|
329
|
-
for (const s in this.$$p_d)
|
|
330
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
331
|
-
const o = ce(
|
|
332
|
-
s,
|
|
333
|
-
this.$$d[s],
|
|
334
|
-
this.$$p_d,
|
|
335
|
-
"toAttribute"
|
|
336
|
-
);
|
|
337
|
-
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
338
|
-
}
|
|
339
|
-
this.$$r = !1;
|
|
340
|
-
};
|
|
341
|
-
this.$$c.$$.after_update.push(i), i();
|
|
342
|
-
for (const s in this.$$l)
|
|
343
|
-
for (const o of this.$$l[s]) {
|
|
344
|
-
const u = this.$$c.$on(s, o);
|
|
345
|
-
this.$$l_u.set(o, u);
|
|
296
|
+
});
|
|
297
|
+
const n = () => {
|
|
298
|
+
this.$$r = !0;
|
|
299
|
+
for (const i in this.$$p_d)
|
|
300
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
301
|
+
const s = fe(
|
|
302
|
+
i,
|
|
303
|
+
this.$$d[i],
|
|
304
|
+
this.$$p_d,
|
|
305
|
+
"toAttribute"
|
|
306
|
+
);
|
|
307
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
346
308
|
}
|
|
347
|
-
this.$$
|
|
348
|
-
}
|
|
349
|
-
|
|
309
|
+
this.$$r = !1;
|
|
310
|
+
};
|
|
311
|
+
this.$$c.$$.after_update.push(n), n();
|
|
312
|
+
for (const i in this.$$l)
|
|
313
|
+
for (const s of this.$$l[i]) {
|
|
314
|
+
const o = this.$$c.$on(i, s);
|
|
315
|
+
this.$$l_u.set(s, o);
|
|
316
|
+
}
|
|
317
|
+
this.$$l = {};
|
|
318
|
+
}
|
|
350
319
|
}
|
|
351
320
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
352
321
|
// and setting attributes through setAttribute etc, this is helpful
|
|
353
|
-
attributeChangedCallback(t, r
|
|
354
|
-
|
|
355
|
-
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] }));
|
|
322
|
+
attributeChangedCallback(e, t, r) {
|
|
323
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
356
324
|
}
|
|
357
325
|
disconnectedCallback() {
|
|
358
326
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
359
327
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
360
328
|
});
|
|
361
329
|
}
|
|
362
|
-
$$g_p(
|
|
330
|
+
$$g_p(e) {
|
|
363
331
|
return Object.keys(this.$$p_d).find(
|
|
364
|
-
(
|
|
365
|
-
) ||
|
|
332
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
333
|
+
) || e;
|
|
366
334
|
}
|
|
367
335
|
});
|
|
368
|
-
function
|
|
369
|
-
|
|
370
|
-
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
336
|
+
function fe(e, t, r, n) {
|
|
337
|
+
const i = r[e]?.type;
|
|
371
338
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
372
339
|
return t;
|
|
373
340
|
if (n === "toAttribute")
|
|
@@ -378,7 +345,7 @@ function ce(e, t, r, n) {
|
|
|
378
345
|
case "Boolean":
|
|
379
346
|
return t ? "" : null;
|
|
380
347
|
case "Number":
|
|
381
|
-
return t
|
|
348
|
+
return t ?? null;
|
|
382
349
|
default:
|
|
383
350
|
return t;
|
|
384
351
|
}
|
|
@@ -395,59 +362,55 @@ function ce(e, t, r, n) {
|
|
|
395
362
|
return t;
|
|
396
363
|
}
|
|
397
364
|
}
|
|
398
|
-
function
|
|
399
|
-
let o = class extends
|
|
365
|
+
function ar(e, t, r, n, i, s) {
|
|
366
|
+
let o = class extends vt {
|
|
400
367
|
constructor() {
|
|
401
368
|
super(e, r, i), this.$$p_d = t;
|
|
402
369
|
}
|
|
403
370
|
static get observedAttributes() {
|
|
404
371
|
return Object.keys(t).map(
|
|
405
|
-
(
|
|
372
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
406
373
|
);
|
|
407
374
|
}
|
|
408
375
|
};
|
|
409
|
-
return Object.keys(t).forEach((
|
|
410
|
-
Object.defineProperty(o.prototype,
|
|
376
|
+
return Object.keys(t).forEach((a) => {
|
|
377
|
+
Object.defineProperty(o.prototype, a, {
|
|
411
378
|
get() {
|
|
412
|
-
return this.$$c &&
|
|
379
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
413
380
|
},
|
|
414
|
-
set(
|
|
415
|
-
|
|
416
|
-
h = ce(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
381
|
+
set(l) {
|
|
382
|
+
l = fe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
417
383
|
}
|
|
418
384
|
});
|
|
419
|
-
}), n.forEach((
|
|
420
|
-
Object.defineProperty(o.prototype,
|
|
385
|
+
}), n.forEach((a) => {
|
|
386
|
+
Object.defineProperty(o.prototype, a, {
|
|
421
387
|
get() {
|
|
422
|
-
|
|
423
|
-
return (h = this.$$c) == null ? void 0 : h[u];
|
|
388
|
+
return this.$$c?.[a];
|
|
424
389
|
}
|
|
425
390
|
});
|
|
426
391
|
}), e.element = /** @type {any} */
|
|
427
392
|
o, o;
|
|
428
393
|
}
|
|
429
|
-
class
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
L(this, "$$set");
|
|
447
|
-
}
|
|
394
|
+
class ur {
|
|
395
|
+
/**
|
|
396
|
+
* ### PRIVATE API
|
|
397
|
+
*
|
|
398
|
+
* Do not use, may change at any time
|
|
399
|
+
*
|
|
400
|
+
* @type {any}
|
|
401
|
+
*/
|
|
402
|
+
$$ = void 0;
|
|
403
|
+
/**
|
|
404
|
+
* ### PRIVATE API
|
|
405
|
+
*
|
|
406
|
+
* Do not use, may change at any time
|
|
407
|
+
*
|
|
408
|
+
* @type {any}
|
|
409
|
+
*/
|
|
410
|
+
$$set = void 0;
|
|
448
411
|
/** @returns {void} */
|
|
449
412
|
$destroy() {
|
|
450
|
-
|
|
413
|
+
ir(this, 1), this.$destroy = $;
|
|
451
414
|
}
|
|
452
415
|
/**
|
|
453
416
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -456,8 +419,8 @@ class _r {
|
|
|
456
419
|
* @returns {() => void}
|
|
457
420
|
*/
|
|
458
421
|
$on(t, r) {
|
|
459
|
-
if (!
|
|
460
|
-
return
|
|
422
|
+
if (!Fe(r))
|
|
423
|
+
return $;
|
|
461
424
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
462
425
|
return n.push(r), () => {
|
|
463
426
|
const i = n.indexOf(r);
|
|
@@ -469,12 +432,12 @@ class _r {
|
|
|
469
432
|
* @returns {void}
|
|
470
433
|
*/
|
|
471
434
|
$set(t) {
|
|
472
|
-
this.$$set && !
|
|
435
|
+
this.$$set && !kt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
473
436
|
}
|
|
474
437
|
}
|
|
475
|
-
const
|
|
476
|
-
typeof window
|
|
477
|
-
const
|
|
438
|
+
const hr = "4";
|
|
439
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(hr);
|
|
440
|
+
const Qe = {
|
|
478
441
|
en: {
|
|
479
442
|
popularProviders: "Popular Suppliers",
|
|
480
443
|
otherProviders: "Other Suppliers",
|
|
@@ -583,154 +546,154 @@ const rt = {
|
|
|
583
546
|
loading: "Loading, please wait...",
|
|
584
547
|
games: "games"
|
|
585
548
|
}
|
|
586
|
-
},
|
|
587
|
-
function
|
|
549
|
+
}, X = [];
|
|
550
|
+
function lr(e, t) {
|
|
588
551
|
return {
|
|
589
|
-
subscribe:
|
|
552
|
+
subscribe: be(e, t).subscribe
|
|
590
553
|
};
|
|
591
554
|
}
|
|
592
|
-
function
|
|
555
|
+
function be(e, t = $) {
|
|
593
556
|
let r;
|
|
594
557
|
const n = /* @__PURE__ */ new Set();
|
|
595
|
-
function i(
|
|
596
|
-
if (
|
|
597
|
-
const
|
|
598
|
-
for (const
|
|
599
|
-
|
|
600
|
-
if (
|
|
601
|
-
for (let
|
|
602
|
-
|
|
603
|
-
|
|
558
|
+
function i(a) {
|
|
559
|
+
if (mt(e, a) && (e = a, r)) {
|
|
560
|
+
const l = !X.length;
|
|
561
|
+
for (const u of n)
|
|
562
|
+
u[1](), X.push(u, e);
|
|
563
|
+
if (l) {
|
|
564
|
+
for (let u = 0; u < X.length; u += 2)
|
|
565
|
+
X[u][0](X[u + 1]);
|
|
566
|
+
X.length = 0;
|
|
604
567
|
}
|
|
605
568
|
}
|
|
606
569
|
}
|
|
607
|
-
function s(
|
|
608
|
-
i(
|
|
570
|
+
function s(a) {
|
|
571
|
+
i(a(e));
|
|
609
572
|
}
|
|
610
|
-
function o(
|
|
611
|
-
const
|
|
612
|
-
return n.add(
|
|
613
|
-
n.delete(
|
|
573
|
+
function o(a, l = $) {
|
|
574
|
+
const u = [a, l];
|
|
575
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || $), a(e), () => {
|
|
576
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
614
577
|
};
|
|
615
578
|
}
|
|
616
579
|
return { set: i, update: s, subscribe: o };
|
|
617
580
|
}
|
|
618
|
-
function
|
|
581
|
+
function Y(e, t, r) {
|
|
619
582
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
620
583
|
if (!i.every(Boolean))
|
|
621
584
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
622
585
|
const s = t.length < 2;
|
|
623
|
-
return
|
|
624
|
-
let
|
|
625
|
-
const
|
|
626
|
-
let
|
|
586
|
+
return lr(r, (o, a) => {
|
|
587
|
+
let l = !1;
|
|
588
|
+
const u = [];
|
|
589
|
+
let h = 0, c = $;
|
|
627
590
|
const f = () => {
|
|
628
|
-
if (
|
|
591
|
+
if (h)
|
|
629
592
|
return;
|
|
630
593
|
c();
|
|
631
|
-
const
|
|
632
|
-
s ? o(
|
|
594
|
+
const m = t(n ? u[0] : u, o, a);
|
|
595
|
+
s ? o(m) : c = Fe(m) ? m : $;
|
|
633
596
|
}, g = i.map(
|
|
634
|
-
(
|
|
635
|
-
|
|
597
|
+
(m, p) => gt(
|
|
598
|
+
m,
|
|
636
599
|
(v) => {
|
|
637
|
-
|
|
600
|
+
u[p] = v, h &= ~(1 << p), l && f();
|
|
638
601
|
},
|
|
639
602
|
() => {
|
|
640
|
-
|
|
603
|
+
h |= 1 << p;
|
|
641
604
|
}
|
|
642
605
|
)
|
|
643
606
|
);
|
|
644
|
-
return
|
|
645
|
-
|
|
607
|
+
return l = !0, f(), function() {
|
|
608
|
+
se(g), c(), l = !1;
|
|
646
609
|
};
|
|
647
610
|
});
|
|
648
611
|
}
|
|
649
|
-
function
|
|
650
|
-
return e
|
|
612
|
+
function fr(e) {
|
|
613
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
651
614
|
}
|
|
652
|
-
var
|
|
653
|
-
return
|
|
615
|
+
var cr = function(t) {
|
|
616
|
+
return pr(t) && !dr(t);
|
|
654
617
|
};
|
|
655
|
-
function
|
|
618
|
+
function pr(e) {
|
|
656
619
|
return !!e && typeof e == "object";
|
|
657
620
|
}
|
|
658
|
-
function
|
|
621
|
+
function dr(e) {
|
|
659
622
|
var t = Object.prototype.toString.call(e);
|
|
660
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
623
|
+
return t === "[object RegExp]" || t === "[object Date]" || br(e);
|
|
661
624
|
}
|
|
662
|
-
var
|
|
663
|
-
function
|
|
664
|
-
return e.$$typeof ===
|
|
625
|
+
var mr = typeof Symbol == "function" && Symbol.for, gr = mr ? Symbol.for("react.element") : 60103;
|
|
626
|
+
function br(e) {
|
|
627
|
+
return e.$$typeof === gr;
|
|
665
628
|
}
|
|
666
|
-
function
|
|
629
|
+
function vr(e) {
|
|
667
630
|
return Array.isArray(e) ? [] : {};
|
|
668
631
|
}
|
|
669
|
-
function
|
|
670
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
632
|
+
function ne(e, t) {
|
|
633
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(vr(e), e, t) : e;
|
|
671
634
|
}
|
|
672
|
-
function
|
|
635
|
+
function _r(e, t, r) {
|
|
673
636
|
return e.concat(t).map(function(n) {
|
|
674
|
-
return
|
|
637
|
+
return ne(n, r);
|
|
675
638
|
});
|
|
676
639
|
}
|
|
677
|
-
function
|
|
640
|
+
function Er(e, t) {
|
|
678
641
|
if (!t.customMerge)
|
|
679
|
-
return
|
|
642
|
+
return Z;
|
|
680
643
|
var r = t.customMerge(e);
|
|
681
|
-
return typeof r == "function" ? r :
|
|
644
|
+
return typeof r == "function" ? r : Z;
|
|
682
645
|
}
|
|
683
|
-
function
|
|
646
|
+
function xr(e) {
|
|
684
647
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
685
648
|
return Object.propertyIsEnumerable.call(e, t);
|
|
686
649
|
}) : [];
|
|
687
650
|
}
|
|
688
|
-
function
|
|
689
|
-
return Object.keys(e).concat(
|
|
651
|
+
function Je(e) {
|
|
652
|
+
return Object.keys(e).concat(xr(e));
|
|
690
653
|
}
|
|
691
|
-
function
|
|
654
|
+
function _t(e, t) {
|
|
692
655
|
try {
|
|
693
656
|
return t in e;
|
|
694
|
-
} catch
|
|
657
|
+
} catch {
|
|
695
658
|
return !1;
|
|
696
659
|
}
|
|
697
660
|
}
|
|
698
|
-
function
|
|
699
|
-
return
|
|
661
|
+
function yr(e, t) {
|
|
662
|
+
return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
700
663
|
}
|
|
701
|
-
function
|
|
664
|
+
function Pr(e, t, r) {
|
|
702
665
|
var n = {};
|
|
703
|
-
return r.isMergeableObject(e) &&
|
|
704
|
-
n[i] =
|
|
705
|
-
}),
|
|
706
|
-
|
|
666
|
+
return r.isMergeableObject(e) && Je(e).forEach(function(i) {
|
|
667
|
+
n[i] = ne(e[i], r);
|
|
668
|
+
}), Je(t).forEach(function(i) {
|
|
669
|
+
yr(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Er(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
707
670
|
}), n;
|
|
708
671
|
}
|
|
709
|
-
function
|
|
710
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
672
|
+
function Z(e, t, r) {
|
|
673
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _r, r.isMergeableObject = r.isMergeableObject || cr, r.cloneUnlessOtherwiseSpecified = ne;
|
|
711
674
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
712
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
675
|
+
return s ? n ? r.arrayMerge(e, t, r) : Pr(e, t, r) : ne(t, r);
|
|
713
676
|
}
|
|
714
|
-
|
|
677
|
+
Z.all = function(t, r) {
|
|
715
678
|
if (!Array.isArray(t))
|
|
716
679
|
throw new Error("first argument should be an array");
|
|
717
680
|
return t.reduce(function(n, i) {
|
|
718
|
-
return
|
|
681
|
+
return Z(n, i, r);
|
|
719
682
|
}, {});
|
|
720
683
|
};
|
|
721
|
-
var
|
|
722
|
-
const
|
|
723
|
-
var
|
|
724
|
-
return
|
|
684
|
+
var Hr = Z, Tr = Hr;
|
|
685
|
+
const Sr = /* @__PURE__ */ fr(Tr);
|
|
686
|
+
var Ie = function(e, t) {
|
|
687
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
725
688
|
r.__proto__ = n;
|
|
726
689
|
} || function(r, n) {
|
|
727
690
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
728
|
-
},
|
|
691
|
+
}, Ie(e, t);
|
|
729
692
|
};
|
|
730
|
-
function
|
|
693
|
+
function ve(e, t) {
|
|
731
694
|
if (typeof t != "function" && t !== null)
|
|
732
695
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
733
|
-
|
|
696
|
+
Ie(e, t);
|
|
734
697
|
function r() {
|
|
735
698
|
this.constructor = e;
|
|
736
699
|
}
|
|
@@ -745,7 +708,7 @@ var x = function() {
|
|
|
745
708
|
return t;
|
|
746
709
|
}, x.apply(this, arguments);
|
|
747
710
|
};
|
|
748
|
-
function
|
|
711
|
+
function Ar(e, t) {
|
|
749
712
|
var r = {};
|
|
750
713
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
751
714
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -753,110 +716,112 @@ function Gr(e, t) {
|
|
|
753
716
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
754
717
|
return r;
|
|
755
718
|
}
|
|
756
|
-
function
|
|
719
|
+
function Pe(e, t, r) {
|
|
757
720
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
758
721
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
759
722
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
760
723
|
}
|
|
761
|
-
function
|
|
762
|
-
var r = t && t.cache ? t.cache :
|
|
724
|
+
function He(e, t) {
|
|
725
|
+
var r = t && t.cache ? t.cache : Cr, n = t && t.serializer ? t.serializer : Ir, i = t && t.strategy ? t.strategy : Or;
|
|
763
726
|
return i(e, {
|
|
764
727
|
cache: r,
|
|
765
728
|
serializer: n
|
|
766
729
|
});
|
|
767
730
|
}
|
|
768
|
-
function
|
|
731
|
+
function Br(e) {
|
|
769
732
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
770
733
|
}
|
|
771
|
-
function
|
|
772
|
-
var i =
|
|
773
|
-
return typeof s
|
|
734
|
+
function Et(e, t, r, n) {
|
|
735
|
+
var i = Br(n) ? n : r(n), s = t.get(i);
|
|
736
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
774
737
|
}
|
|
775
|
-
function
|
|
738
|
+
function xt(e, t, r) {
|
|
776
739
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
777
|
-
return typeof s
|
|
740
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
778
741
|
}
|
|
779
|
-
function
|
|
742
|
+
function ke(e, t, r, n, i) {
|
|
780
743
|
return r.bind(t, e, n, i);
|
|
781
744
|
}
|
|
782
|
-
function
|
|
783
|
-
var r = e.length === 1 ?
|
|
784
|
-
return
|
|
745
|
+
function Or(e, t) {
|
|
746
|
+
var r = e.length === 1 ? Et : xt;
|
|
747
|
+
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
785
748
|
}
|
|
786
|
-
function
|
|
787
|
-
return
|
|
749
|
+
function Nr(e, t) {
|
|
750
|
+
return ke(e, this, xt, t.cache.create(), t.serializer);
|
|
788
751
|
}
|
|
789
|
-
function
|
|
790
|
-
return
|
|
752
|
+
function wr(e, t) {
|
|
753
|
+
return ke(e, this, Et, t.cache.create(), t.serializer);
|
|
791
754
|
}
|
|
792
|
-
var
|
|
755
|
+
var Ir = function() {
|
|
793
756
|
return JSON.stringify(arguments);
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
757
|
+
}, Lr = (
|
|
758
|
+
/** @class */
|
|
759
|
+
function() {
|
|
760
|
+
function e() {
|
|
761
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
762
|
+
}
|
|
763
|
+
return e.prototype.get = function(t) {
|
|
764
|
+
return this.cache[t];
|
|
765
|
+
}, e.prototype.set = function(t, r) {
|
|
766
|
+
this.cache[t] = r;
|
|
767
|
+
}, e;
|
|
768
|
+
}()
|
|
769
|
+
), Cr = {
|
|
805
770
|
create: function() {
|
|
806
|
-
return new
|
|
771
|
+
return new Lr();
|
|
807
772
|
}
|
|
808
|
-
},
|
|
809
|
-
variadic:
|
|
810
|
-
monadic:
|
|
811
|
-
},
|
|
773
|
+
}, Te = {
|
|
774
|
+
variadic: Nr,
|
|
775
|
+
monadic: wr
|
|
776
|
+
}, _;
|
|
812
777
|
(function(e) {
|
|
813
778
|
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";
|
|
814
|
-
})(
|
|
779
|
+
})(_ || (_ = {}));
|
|
815
780
|
var P;
|
|
816
781
|
(function(e) {
|
|
817
782
|
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";
|
|
818
783
|
})(P || (P = {}));
|
|
819
|
-
var
|
|
784
|
+
var Q;
|
|
820
785
|
(function(e) {
|
|
821
786
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
822
|
-
})(
|
|
823
|
-
function
|
|
787
|
+
})(Q || (Q = {}));
|
|
788
|
+
function qe(e) {
|
|
824
789
|
return e.type === P.literal;
|
|
825
790
|
}
|
|
826
|
-
function
|
|
791
|
+
function Mr(e) {
|
|
827
792
|
return e.type === P.argument;
|
|
828
793
|
}
|
|
829
|
-
function
|
|
794
|
+
function yt(e) {
|
|
830
795
|
return e.type === P.number;
|
|
831
796
|
}
|
|
832
|
-
function
|
|
797
|
+
function Pt(e) {
|
|
833
798
|
return e.type === P.date;
|
|
834
799
|
}
|
|
835
|
-
function
|
|
800
|
+
function Ht(e) {
|
|
836
801
|
return e.type === P.time;
|
|
837
802
|
}
|
|
838
|
-
function
|
|
803
|
+
function Tt(e) {
|
|
839
804
|
return e.type === P.select;
|
|
840
805
|
}
|
|
841
|
-
function
|
|
806
|
+
function St(e) {
|
|
842
807
|
return e.type === P.plural;
|
|
843
808
|
}
|
|
844
|
-
function
|
|
809
|
+
function $r(e) {
|
|
845
810
|
return e.type === P.pound;
|
|
846
811
|
}
|
|
847
|
-
function
|
|
812
|
+
function At(e) {
|
|
848
813
|
return e.type === P.tag;
|
|
849
814
|
}
|
|
850
|
-
function
|
|
851
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
815
|
+
function Bt(e) {
|
|
816
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
852
817
|
}
|
|
853
|
-
function
|
|
854
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
818
|
+
function Le(e) {
|
|
819
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
855
820
|
}
|
|
856
|
-
var
|
|
857
|
-
function
|
|
821
|
+
var Ot = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Rr = /(?:[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;
|
|
822
|
+
function Ur(e) {
|
|
858
823
|
var t = {};
|
|
859
|
-
return e.replace(
|
|
824
|
+
return e.replace(Rr, function(r) {
|
|
860
825
|
var n = r.length;
|
|
861
826
|
switch (r[0]) {
|
|
862
827
|
case "G":
|
|
@@ -945,36 +910,36 @@ function Qr(e) {
|
|
|
945
910
|
return "";
|
|
946
911
|
}), t;
|
|
947
912
|
}
|
|
948
|
-
var
|
|
949
|
-
function
|
|
913
|
+
var Gr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
914
|
+
function Dr(e) {
|
|
950
915
|
if (e.length === 0)
|
|
951
916
|
throw new Error("Number skeleton cannot be empty");
|
|
952
|
-
for (var t = e.split(
|
|
917
|
+
for (var t = e.split(Gr).filter(function(f) {
|
|
953
918
|
return f.length > 0;
|
|
954
919
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
955
920
|
var s = i[n], o = s.split("/");
|
|
956
921
|
if (o.length === 0)
|
|
957
922
|
throw new Error("Invalid number skeleton");
|
|
958
|
-
for (var
|
|
959
|
-
var c =
|
|
923
|
+
for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
924
|
+
var c = h[u];
|
|
960
925
|
if (c.length === 0)
|
|
961
926
|
throw new Error("Invalid number skeleton");
|
|
962
927
|
}
|
|
963
|
-
r.push({ stem:
|
|
928
|
+
r.push({ stem: a, options: l });
|
|
964
929
|
}
|
|
965
930
|
return r;
|
|
966
931
|
}
|
|
967
|
-
function
|
|
932
|
+
function Fr(e) {
|
|
968
933
|
return e.replace(/^(.*?)-/, "");
|
|
969
934
|
}
|
|
970
|
-
var
|
|
971
|
-
function
|
|
935
|
+
var Ye = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, jr = /(\*)(0+)|(#+)(0+)|(0+)/g, wt = /^(0+)$/;
|
|
936
|
+
function Ke(e) {
|
|
972
937
|
var t = {};
|
|
973
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
938
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
|
|
974
939
|
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)), "";
|
|
975
940
|
}), t;
|
|
976
941
|
}
|
|
977
|
-
function
|
|
942
|
+
function It(e) {
|
|
978
943
|
switch (e) {
|
|
979
944
|
case "sign-auto":
|
|
980
945
|
return {
|
|
@@ -1014,7 +979,7 @@ function Gt(e) {
|
|
|
1014
979
|
};
|
|
1015
980
|
}
|
|
1016
981
|
}
|
|
1017
|
-
function
|
|
982
|
+
function kr(e) {
|
|
1018
983
|
var t;
|
|
1019
984
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1020
985
|
notation: "engineering"
|
|
@@ -1022,17 +987,17 @@ function en(e) {
|
|
|
1022
987
|
notation: "scientific"
|
|
1023
988
|
}, e = e.slice(1)), t) {
|
|
1024
989
|
var r = e.slice(0, 2);
|
|
1025
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
990
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wt.test(e))
|
|
1026
991
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1027
992
|
t.minimumIntegerDigits = e.length;
|
|
1028
993
|
}
|
|
1029
994
|
return t;
|
|
1030
995
|
}
|
|
1031
|
-
function
|
|
1032
|
-
var t = {}, r =
|
|
996
|
+
function et(e) {
|
|
997
|
+
var t = {}, r = It(e);
|
|
1033
998
|
return r || t;
|
|
1034
999
|
}
|
|
1035
|
-
function
|
|
1000
|
+
function Vr(e) {
|
|
1036
1001
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1037
1002
|
var i = n[r];
|
|
1038
1003
|
switch (i.stem) {
|
|
@@ -1056,7 +1021,7 @@ function tn(e) {
|
|
|
1056
1021
|
continue;
|
|
1057
1022
|
case "measure-unit":
|
|
1058
1023
|
case "unit":
|
|
1059
|
-
t.style = "unit", t.unit =
|
|
1024
|
+
t.style = "unit", t.unit = Fr(i.options[0]);
|
|
1060
1025
|
continue;
|
|
1061
1026
|
case "compact-short":
|
|
1062
1027
|
case "K":
|
|
@@ -1067,13 +1032,13 @@ function tn(e) {
|
|
|
1067
1032
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1068
1033
|
continue;
|
|
1069
1034
|
case "scientific":
|
|
1070
|
-
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1071
|
-
return x(x({},
|
|
1035
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1036
|
+
return x(x({}, l), et(u));
|
|
1072
1037
|
}, {}));
|
|
1073
1038
|
continue;
|
|
1074
1039
|
case "engineering":
|
|
1075
|
-
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1076
|
-
return x(x({},
|
|
1040
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1041
|
+
return x(x({}, l), et(u));
|
|
1077
1042
|
}, {}));
|
|
1078
1043
|
continue;
|
|
1079
1044
|
case "notation-simple":
|
|
@@ -1118,9 +1083,9 @@ function tn(e) {
|
|
|
1118
1083
|
case "integer-width":
|
|
1119
1084
|
if (i.options.length > 1)
|
|
1120
1085
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1121
|
-
i.options[0].replace(
|
|
1122
|
-
if (
|
|
1123
|
-
t.minimumIntegerDigits =
|
|
1086
|
+
i.options[0].replace(jr, function(l, u, h, c, f, g) {
|
|
1087
|
+
if (u)
|
|
1088
|
+
t.minimumIntegerDigits = h.length;
|
|
1124
1089
|
else {
|
|
1125
1090
|
if (c && f)
|
|
1126
1091
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1131,32 +1096,32 @@ function tn(e) {
|
|
|
1131
1096
|
});
|
|
1132
1097
|
continue;
|
|
1133
1098
|
}
|
|
1134
|
-
if (
|
|
1099
|
+
if (wt.test(i.stem)) {
|
|
1135
1100
|
t.minimumIntegerDigits = i.stem.length;
|
|
1136
1101
|
continue;
|
|
1137
1102
|
}
|
|
1138
|
-
if (
|
|
1103
|
+
if (Ye.test(i.stem)) {
|
|
1139
1104
|
if (i.options.length > 1)
|
|
1140
1105
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1141
|
-
i.stem.replace(
|
|
1142
|
-
return
|
|
1106
|
+
i.stem.replace(Ye, function(l, u, h, c, f, g) {
|
|
1107
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1143
1108
|
});
|
|
1144
1109
|
var s = i.options[0];
|
|
1145
|
-
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t),
|
|
1110
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), Ke(s)));
|
|
1146
1111
|
continue;
|
|
1147
1112
|
}
|
|
1148
|
-
if (
|
|
1149
|
-
t = x(x({}, t),
|
|
1113
|
+
if (Nt.test(i.stem)) {
|
|
1114
|
+
t = x(x({}, t), Ke(i.stem));
|
|
1150
1115
|
continue;
|
|
1151
1116
|
}
|
|
1152
|
-
var o =
|
|
1117
|
+
var o = It(i.stem);
|
|
1153
1118
|
o && (t = x(x({}, t), o));
|
|
1154
|
-
var
|
|
1155
|
-
|
|
1119
|
+
var a = kr(i.stem);
|
|
1120
|
+
a && (t = x(x({}, t), a));
|
|
1156
1121
|
}
|
|
1157
1122
|
return t;
|
|
1158
1123
|
}
|
|
1159
|
-
var
|
|
1124
|
+
var le = {
|
|
1160
1125
|
"001": [
|
|
1161
1126
|
"H",
|
|
1162
1127
|
"h"
|
|
@@ -2571,22 +2536,22 @@ var fe = {
|
|
|
2571
2536
|
"h"
|
|
2572
2537
|
]
|
|
2573
2538
|
};
|
|
2574
|
-
function
|
|
2539
|
+
function Xr(e, t) {
|
|
2575
2540
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2576
2541
|
var i = e.charAt(n);
|
|
2577
2542
|
if (i === "j") {
|
|
2578
2543
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2579
2544
|
s++, n++;
|
|
2580
|
-
var o = 1 + (s & 1),
|
|
2581
|
-
for ((
|
|
2582
|
-
r +=
|
|
2545
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = zr(t);
|
|
2546
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2547
|
+
r += l;
|
|
2583
2548
|
for (; o-- > 0; )
|
|
2584
|
-
r =
|
|
2549
|
+
r = u + r;
|
|
2585
2550
|
} else i === "J" ? r += "H" : r += i;
|
|
2586
2551
|
}
|
|
2587
2552
|
return r;
|
|
2588
2553
|
}
|
|
2589
|
-
function
|
|
2554
|
+
function zr(e) {
|
|
2590
2555
|
var t = e.hourCycle;
|
|
2591
2556
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2592
2557
|
e.hourCycles && // @ts-ignore
|
|
@@ -2605,23 +2570,23 @@ function nn(e) {
|
|
|
2605
2570
|
}
|
|
2606
2571
|
var r = e.language, n;
|
|
2607
2572
|
r !== "root" && (n = e.maximize().region);
|
|
2608
|
-
var i =
|
|
2573
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2609
2574
|
return i[0];
|
|
2610
2575
|
}
|
|
2611
|
-
var
|
|
2612
|
-
function
|
|
2576
|
+
var Se, Wr = new RegExp("^".concat(Ot.source, "*")), Zr = new RegExp("".concat(Ot.source, "*$"));
|
|
2577
|
+
function E(e, t) {
|
|
2613
2578
|
return { start: e, end: t };
|
|
2614
2579
|
}
|
|
2615
|
-
var
|
|
2580
|
+
var Qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Jr = !!String.fromCodePoint, qr = !!Object.fromEntries, Yr = !!String.prototype.codePointAt, Kr = !!String.prototype.trimStart, en = !!String.prototype.trimEnd, tn = !!Number.isSafeInteger, rn = tn ? Number.isSafeInteger : function(e) {
|
|
2616
2581
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2617
|
-
},
|
|
2582
|
+
}, Ce = !0;
|
|
2618
2583
|
try {
|
|
2619
|
-
var
|
|
2620
|
-
|
|
2621
|
-
} catch
|
|
2622
|
-
|
|
2584
|
+
var nn = Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2585
|
+
Ce = ((Se = nn.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
|
|
2586
|
+
} catch {
|
|
2587
|
+
Ce = !1;
|
|
2623
2588
|
}
|
|
2624
|
-
var
|
|
2589
|
+
var tt = Qr ? (
|
|
2625
2590
|
// Native
|
|
2626
2591
|
function(t, r, n) {
|
|
2627
2592
|
return t.startsWith(r, n);
|
|
@@ -2631,7 +2596,7 @@ var ut = an ? (
|
|
|
2631
2596
|
function(t, r, n) {
|
|
2632
2597
|
return t.slice(n, n + r.length) === r;
|
|
2633
2598
|
}
|
|
2634
|
-
),
|
|
2599
|
+
), Me = Jr ? String.fromCodePoint : (
|
|
2635
2600
|
// IE11
|
|
2636
2601
|
function() {
|
|
2637
2602
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2643,19 +2608,19 @@ var ut = an ? (
|
|
|
2643
2608
|
}
|
|
2644
2609
|
return n;
|
|
2645
2610
|
}
|
|
2646
|
-
),
|
|
2611
|
+
), rt = (
|
|
2647
2612
|
// native
|
|
2648
|
-
|
|
2613
|
+
qr ? Object.fromEntries : (
|
|
2649
2614
|
// Ponyfill
|
|
2650
2615
|
function(t) {
|
|
2651
2616
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2652
|
-
var s = i[n], o = s[0],
|
|
2653
|
-
r[o] =
|
|
2617
|
+
var s = i[n], o = s[0], a = s[1];
|
|
2618
|
+
r[o] = a;
|
|
2654
2619
|
}
|
|
2655
2620
|
return r;
|
|
2656
2621
|
}
|
|
2657
2622
|
)
|
|
2658
|
-
),
|
|
2623
|
+
), Lt = Yr ? (
|
|
2659
2624
|
// Native
|
|
2660
2625
|
function(t, r) {
|
|
2661
2626
|
return t.codePointAt(r);
|
|
@@ -2669,7 +2634,7 @@ var ut = an ? (
|
|
|
2669
2634
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2670
2635
|
}
|
|
2671
2636
|
}
|
|
2672
|
-
),
|
|
2637
|
+
), sn = Kr ? (
|
|
2673
2638
|
// Native
|
|
2674
2639
|
function(t) {
|
|
2675
2640
|
return t.trimStart();
|
|
@@ -2677,9 +2642,9 @@ var ut = an ? (
|
|
|
2677
2642
|
) : (
|
|
2678
2643
|
// Ponyfill
|
|
2679
2644
|
function(t) {
|
|
2680
|
-
return t.replace(
|
|
2645
|
+
return t.replace(Wr, "");
|
|
2681
2646
|
}
|
|
2682
|
-
),
|
|
2647
|
+
), on = en ? (
|
|
2683
2648
|
// Native
|
|
2684
2649
|
function(t) {
|
|
2685
2650
|
return t.trimEnd();
|
|
@@ -2687,32 +2652,32 @@ var ut = an ? (
|
|
|
2687
2652
|
) : (
|
|
2688
2653
|
// Ponyfill
|
|
2689
2654
|
function(t) {
|
|
2690
|
-
return t.replace(
|
|
2655
|
+
return t.replace(Zr, "");
|
|
2691
2656
|
}
|
|
2692
2657
|
);
|
|
2693
|
-
function
|
|
2658
|
+
function Ct(e, t) {
|
|
2694
2659
|
return new RegExp(e, t);
|
|
2695
2660
|
}
|
|
2696
|
-
var
|
|
2697
|
-
if (
|
|
2698
|
-
var
|
|
2699
|
-
|
|
2661
|
+
var $e;
|
|
2662
|
+
if (Ce) {
|
|
2663
|
+
var nt = Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2664
|
+
$e = function(t, r) {
|
|
2700
2665
|
var n;
|
|
2701
|
-
|
|
2702
|
-
var i =
|
|
2666
|
+
nt.lastIndex = r;
|
|
2667
|
+
var i = nt.exec(t);
|
|
2703
2668
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2704
2669
|
};
|
|
2705
2670
|
} else
|
|
2706
|
-
|
|
2671
|
+
$e = function(t, r) {
|
|
2707
2672
|
for (var n = []; ; ) {
|
|
2708
|
-
var i =
|
|
2709
|
-
if (i === void 0 ||
|
|
2673
|
+
var i = Lt(t, r);
|
|
2674
|
+
if (i === void 0 || Mt(i) || ln(i))
|
|
2710
2675
|
break;
|
|
2711
2676
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2712
2677
|
}
|
|
2713
|
-
return
|
|
2678
|
+
return Me.apply(void 0, n);
|
|
2714
2679
|
};
|
|
2715
|
-
var
|
|
2680
|
+
var an = (
|
|
2716
2681
|
/** @class */
|
|
2717
2682
|
function() {
|
|
2718
2683
|
function e(t, r) {
|
|
@@ -2734,16 +2699,16 @@ var vn = (
|
|
|
2734
2699
|
if (s === 125 && t > 0)
|
|
2735
2700
|
break;
|
|
2736
2701
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2737
|
-
var
|
|
2702
|
+
var a = this.clonePosition();
|
|
2738
2703
|
this.bump(), i.push({
|
|
2739
2704
|
type: P.pound,
|
|
2740
|
-
location:
|
|
2705
|
+
location: E(a, this.clonePosition())
|
|
2741
2706
|
});
|
|
2742
2707
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2743
2708
|
if (n)
|
|
2744
2709
|
break;
|
|
2745
|
-
return this.error(
|
|
2746
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2710
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
2711
|
+
} else if (s === 60 && !this.ignoreTag && Re(this.peek() || 0)) {
|
|
2747
2712
|
var o = this.parseTag(t, r);
|
|
2748
2713
|
if (o.err)
|
|
2749
2714
|
return o;
|
|
@@ -2766,7 +2731,7 @@ var vn = (
|
|
|
2766
2731
|
val: {
|
|
2767
2732
|
type: P.literal,
|
|
2768
2733
|
value: "<".concat(i, "/>"),
|
|
2769
|
-
location:
|
|
2734
|
+
location: E(n, this.clonePosition())
|
|
2770
2735
|
},
|
|
2771
2736
|
err: null
|
|
2772
2737
|
};
|
|
@@ -2774,27 +2739,27 @@ var vn = (
|
|
|
2774
2739
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2775
2740
|
if (s.err)
|
|
2776
2741
|
return s;
|
|
2777
|
-
var o = s.val,
|
|
2742
|
+
var o = s.val, a = this.clonePosition();
|
|
2778
2743
|
if (this.bumpIf("</")) {
|
|
2779
|
-
if (this.isEOF() || !
|
|
2780
|
-
return this.error(
|
|
2781
|
-
var
|
|
2782
|
-
return i !==
|
|
2744
|
+
if (this.isEOF() || !Re(this.char()))
|
|
2745
|
+
return this.error(_.INVALID_TAG, E(a, this.clonePosition()));
|
|
2746
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2747
|
+
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2783
2748
|
val: {
|
|
2784
2749
|
type: P.tag,
|
|
2785
2750
|
value: i,
|
|
2786
2751
|
children: o,
|
|
2787
|
-
location:
|
|
2752
|
+
location: E(n, this.clonePosition())
|
|
2788
2753
|
},
|
|
2789
2754
|
err: null
|
|
2790
|
-
} : this.error(
|
|
2755
|
+
} : this.error(_.INVALID_TAG, E(a, this.clonePosition())));
|
|
2791
2756
|
} else
|
|
2792
|
-
return this.error(
|
|
2757
|
+
return this.error(_.UNCLOSED_TAG, E(n, this.clonePosition()));
|
|
2793
2758
|
} else
|
|
2794
|
-
return this.error(
|
|
2759
|
+
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
2795
2760
|
}, e.prototype.parseTagName = function() {
|
|
2796
2761
|
var t = this.offset();
|
|
2797
|
-
for (this.bump(); !this.isEOF() &&
|
|
2762
|
+
for (this.bump(); !this.isEOF() && hn(this.char()); )
|
|
2798
2763
|
this.bump();
|
|
2799
2764
|
return this.message.slice(t, this.offset());
|
|
2800
2765
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2809,21 +2774,21 @@ var vn = (
|
|
|
2809
2774
|
i += o;
|
|
2810
2775
|
continue;
|
|
2811
2776
|
}
|
|
2812
|
-
var
|
|
2813
|
-
if (
|
|
2814
|
-
i +=
|
|
2777
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2778
|
+
if (a) {
|
|
2779
|
+
i += a;
|
|
2815
2780
|
continue;
|
|
2816
2781
|
}
|
|
2817
2782
|
break;
|
|
2818
2783
|
}
|
|
2819
|
-
var
|
|
2784
|
+
var l = E(n, this.clonePosition());
|
|
2820
2785
|
return {
|
|
2821
|
-
val: { type: P.literal, value: i, location:
|
|
2786
|
+
val: { type: P.literal, value: i, location: l },
|
|
2822
2787
|
err: null
|
|
2823
2788
|
};
|
|
2824
2789
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2825
2790
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2826
|
-
!
|
|
2791
|
+
!un(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2827
2792
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2828
2793
|
if (this.isEOF() || this.char() !== 39)
|
|
2829
2794
|
return null;
|
|
@@ -2857,23 +2822,23 @@ var vn = (
|
|
|
2857
2822
|
r.push(n);
|
|
2858
2823
|
this.bump();
|
|
2859
2824
|
}
|
|
2860
|
-
return
|
|
2825
|
+
return Me.apply(void 0, r);
|
|
2861
2826
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2862
2827
|
if (this.isEOF())
|
|
2863
2828
|
return null;
|
|
2864
2829
|
var n = this.char();
|
|
2865
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2830
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Me(n));
|
|
2866
2831
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2867
2832
|
var n = this.clonePosition();
|
|
2868
2833
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2869
|
-
return this.error(
|
|
2834
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
2870
2835
|
if (this.char() === 125)
|
|
2871
|
-
return this.bump(), this.error(
|
|
2836
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, E(n, this.clonePosition()));
|
|
2872
2837
|
var i = this.parseIdentifierIfPossible().value;
|
|
2873
2838
|
if (!i)
|
|
2874
|
-
return this.error(
|
|
2839
|
+
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
2875
2840
|
if (this.bumpSpace(), this.isEOF())
|
|
2876
|
-
return this.error(
|
|
2841
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
2877
2842
|
switch (this.char()) {
|
|
2878
2843
|
case 125:
|
|
2879
2844
|
return this.bump(), {
|
|
@@ -2881,64 +2846,64 @@ var vn = (
|
|
|
2881
2846
|
type: P.argument,
|
|
2882
2847
|
// value does not include the opening and closing braces.
|
|
2883
2848
|
value: i,
|
|
2884
|
-
location:
|
|
2849
|
+
location: E(n, this.clonePosition())
|
|
2885
2850
|
},
|
|
2886
2851
|
err: null
|
|
2887
2852
|
};
|
|
2888
2853
|
case 44:
|
|
2889
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2854
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2890
2855
|
default:
|
|
2891
|
-
return this.error(
|
|
2856
|
+
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
2892
2857
|
}
|
|
2893
2858
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2894
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2859
|
+
var t = this.clonePosition(), r = this.offset(), n = $e(this.message, r), i = r + n.length;
|
|
2895
2860
|
this.bumpTo(i);
|
|
2896
|
-
var s = this.clonePosition(), o =
|
|
2861
|
+
var s = this.clonePosition(), o = E(t, s);
|
|
2897
2862
|
return { value: n, location: o };
|
|
2898
2863
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2899
|
-
var s, o = this.clonePosition(),
|
|
2900
|
-
switch (
|
|
2864
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2865
|
+
switch (a) {
|
|
2901
2866
|
case "":
|
|
2902
|
-
return this.error(
|
|
2867
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, E(o, l));
|
|
2903
2868
|
case "number":
|
|
2904
2869
|
case "date":
|
|
2905
2870
|
case "time": {
|
|
2906
2871
|
this.bumpSpace();
|
|
2907
|
-
var
|
|
2872
|
+
var u = null;
|
|
2908
2873
|
if (this.bumpIf(",")) {
|
|
2909
2874
|
this.bumpSpace();
|
|
2910
|
-
var
|
|
2875
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2911
2876
|
if (c.err)
|
|
2912
2877
|
return c;
|
|
2913
|
-
var f =
|
|
2878
|
+
var f = on(c.val);
|
|
2914
2879
|
if (f.length === 0)
|
|
2915
|
-
return this.error(
|
|
2916
|
-
var g =
|
|
2917
|
-
|
|
2880
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
2881
|
+
var g = E(h, this.clonePosition());
|
|
2882
|
+
u = { style: f, styleLocation: g };
|
|
2918
2883
|
}
|
|
2919
|
-
var
|
|
2920
|
-
if (
|
|
2921
|
-
return
|
|
2922
|
-
var p =
|
|
2923
|
-
if (
|
|
2924
|
-
var v =
|
|
2925
|
-
if (
|
|
2926
|
-
var c = this.parseNumberSkeletonFromString(v,
|
|
2884
|
+
var m = this.tryParseArgumentClose(i);
|
|
2885
|
+
if (m.err)
|
|
2886
|
+
return m;
|
|
2887
|
+
var p = E(i, this.clonePosition());
|
|
2888
|
+
if (u && tt(u?.style, "::", 0)) {
|
|
2889
|
+
var v = sn(u.style.slice(2));
|
|
2890
|
+
if (a === "number") {
|
|
2891
|
+
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2927
2892
|
return c.err ? c : {
|
|
2928
2893
|
val: { type: P.number, value: n, location: p, style: c.val },
|
|
2929
2894
|
err: null
|
|
2930
2895
|
};
|
|
2931
2896
|
} else {
|
|
2932
2897
|
if (v.length === 0)
|
|
2933
|
-
return this.error(
|
|
2934
|
-
var
|
|
2935
|
-
this.locale && (
|
|
2898
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, p);
|
|
2899
|
+
var d = v;
|
|
2900
|
+
this.locale && (d = Xr(v, this.locale));
|
|
2936
2901
|
var f = {
|
|
2937
|
-
type:
|
|
2938
|
-
pattern:
|
|
2939
|
-
location:
|
|
2940
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2941
|
-
}, T =
|
|
2902
|
+
type: Q.dateTime,
|
|
2903
|
+
pattern: d,
|
|
2904
|
+
location: u.styleLocation,
|
|
2905
|
+
parsedOptions: this.shouldParseSkeletons ? Ur(d) : {}
|
|
2906
|
+
}, T = a === "date" ? P.date : P.time;
|
|
2942
2907
|
return {
|
|
2943
2908
|
val: { type: T, value: n, location: p, style: f },
|
|
2944
2909
|
err: null
|
|
@@ -2947,10 +2912,10 @@ var vn = (
|
|
|
2947
2912
|
}
|
|
2948
2913
|
return {
|
|
2949
2914
|
val: {
|
|
2950
|
-
type:
|
|
2915
|
+
type: a === "number" ? P.number : a === "date" ? P.date : P.time,
|
|
2951
2916
|
value: n,
|
|
2952
2917
|
location: p,
|
|
2953
|
-
style: (s =
|
|
2918
|
+
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2954
2919
|
},
|
|
2955
2920
|
err: null
|
|
2956
2921
|
};
|
|
@@ -2960,50 +2925,50 @@ var vn = (
|
|
|
2960
2925
|
case "select": {
|
|
2961
2926
|
var A = this.clonePosition();
|
|
2962
2927
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2963
|
-
return this.error(
|
|
2928
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(A, x({}, A)));
|
|
2964
2929
|
this.bumpSpace();
|
|
2965
2930
|
var O = this.parseIdentifierIfPossible(), H = 0;
|
|
2966
|
-
if (
|
|
2931
|
+
if (a !== "select" && O.value === "offset") {
|
|
2967
2932
|
if (!this.bumpIf(":"))
|
|
2968
|
-
return this.error(
|
|
2933
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
2969
2934
|
this.bumpSpace();
|
|
2970
|
-
var c = this.tryParseDecimalInteger(
|
|
2935
|
+
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2971
2936
|
if (c.err)
|
|
2972
2937
|
return c;
|
|
2973
2938
|
this.bumpSpace(), O = this.parseIdentifierIfPossible(), H = c.val;
|
|
2974
2939
|
}
|
|
2975
|
-
var I = this.tryParsePluralOrSelectOptions(t,
|
|
2940
|
+
var I = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
2976
2941
|
if (I.err)
|
|
2977
2942
|
return I;
|
|
2978
|
-
var
|
|
2979
|
-
if (
|
|
2980
|
-
return
|
|
2981
|
-
var
|
|
2982
|
-
return
|
|
2943
|
+
var m = this.tryParseArgumentClose(i);
|
|
2944
|
+
if (m.err)
|
|
2945
|
+
return m;
|
|
2946
|
+
var ae = E(i, this.clonePosition());
|
|
2947
|
+
return a === "select" ? {
|
|
2983
2948
|
val: {
|
|
2984
2949
|
type: P.select,
|
|
2985
2950
|
value: n,
|
|
2986
|
-
options:
|
|
2987
|
-
location:
|
|
2951
|
+
options: rt(I.val),
|
|
2952
|
+
location: ae
|
|
2988
2953
|
},
|
|
2989
2954
|
err: null
|
|
2990
2955
|
} : {
|
|
2991
2956
|
val: {
|
|
2992
2957
|
type: P.plural,
|
|
2993
2958
|
value: n,
|
|
2994
|
-
options:
|
|
2959
|
+
options: rt(I.val),
|
|
2995
2960
|
offset: H,
|
|
2996
|
-
pluralType:
|
|
2997
|
-
location:
|
|
2961
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2962
|
+
location: ae
|
|
2998
2963
|
},
|
|
2999
2964
|
err: null
|
|
3000
2965
|
};
|
|
3001
2966
|
}
|
|
3002
2967
|
default:
|
|
3003
|
-
return this.error(
|
|
2968
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, E(o, l));
|
|
3004
2969
|
}
|
|
3005
2970
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3006
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2971
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3007
2972
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3008
2973
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3009
2974
|
var n = this.char();
|
|
@@ -3012,7 +2977,7 @@ var vn = (
|
|
|
3012
2977
|
this.bump();
|
|
3013
2978
|
var i = this.clonePosition();
|
|
3014
2979
|
if (!this.bumpUntil("'"))
|
|
3015
|
-
return this.error(
|
|
2980
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
|
|
3016
2981
|
this.bump();
|
|
3017
2982
|
break;
|
|
3018
2983
|
}
|
|
@@ -3042,64 +3007,64 @@ var vn = (
|
|
|
3042
3007
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3043
3008
|
var n = [];
|
|
3044
3009
|
try {
|
|
3045
|
-
n =
|
|
3046
|
-
} catch
|
|
3047
|
-
return this.error(
|
|
3010
|
+
n = Dr(t);
|
|
3011
|
+
} catch {
|
|
3012
|
+
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3048
3013
|
}
|
|
3049
3014
|
return {
|
|
3050
3015
|
val: {
|
|
3051
|
-
type:
|
|
3016
|
+
type: Q.number,
|
|
3052
3017
|
tokens: n,
|
|
3053
3018
|
location: r,
|
|
3054
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3019
|
+
parsedOptions: this.shouldParseSkeletons ? Vr(n) : {}
|
|
3055
3020
|
},
|
|
3056
3021
|
err: null
|
|
3057
3022
|
};
|
|
3058
3023
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3059
|
-
for (var s, o = !1,
|
|
3060
|
-
if (
|
|
3024
|
+
for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3025
|
+
if (u.length === 0) {
|
|
3061
3026
|
var c = this.clonePosition();
|
|
3062
3027
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3063
|
-
var f = this.tryParseDecimalInteger(
|
|
3028
|
+
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3064
3029
|
if (f.err)
|
|
3065
3030
|
return f;
|
|
3066
|
-
|
|
3031
|
+
h = E(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3067
3032
|
} else
|
|
3068
3033
|
break;
|
|
3069
3034
|
}
|
|
3070
|
-
if (
|
|
3071
|
-
return this.error(r === "select" ?
|
|
3072
|
-
|
|
3035
|
+
if (l.has(u))
|
|
3036
|
+
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3037
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3073
3038
|
var g = this.clonePosition();
|
|
3074
3039
|
if (!this.bumpIf("{"))
|
|
3075
|
-
return this.error(r === "select" ?
|
|
3076
|
-
var
|
|
3077
|
-
if (
|
|
3078
|
-
return
|
|
3040
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3041
|
+
var m = this.parseMessage(t + 1, r, n);
|
|
3042
|
+
if (m.err)
|
|
3043
|
+
return m;
|
|
3079
3044
|
var p = this.tryParseArgumentClose(g);
|
|
3080
3045
|
if (p.err)
|
|
3081
3046
|
return p;
|
|
3082
|
-
|
|
3083
|
-
|
|
3047
|
+
a.push([
|
|
3048
|
+
u,
|
|
3084
3049
|
{
|
|
3085
|
-
value:
|
|
3086
|
-
location:
|
|
3050
|
+
value: m.val,
|
|
3051
|
+
location: E(g, this.clonePosition())
|
|
3087
3052
|
}
|
|
3088
|
-
]),
|
|
3053
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3089
3054
|
}
|
|
3090
|
-
return
|
|
3055
|
+
return a.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3091
3056
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3092
3057
|
var n = 1, i = this.clonePosition();
|
|
3093
3058
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3094
3059
|
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3095
|
-
var
|
|
3096
|
-
if (
|
|
3097
|
-
s = !0, o = o * 10 + (
|
|
3060
|
+
var a = this.char();
|
|
3061
|
+
if (a >= 48 && a <= 57)
|
|
3062
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3098
3063
|
else
|
|
3099
3064
|
break;
|
|
3100
3065
|
}
|
|
3101
|
-
var
|
|
3102
|
-
return s ? (o *= n,
|
|
3066
|
+
var l = E(i, this.clonePosition());
|
|
3067
|
+
return s ? (o *= n, rn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3103
3068
|
}, e.prototype.offset = function() {
|
|
3104
3069
|
return this.position.offset;
|
|
3105
3070
|
}, e.prototype.isEOF = function() {
|
|
@@ -3114,7 +3079,7 @@ var vn = (
|
|
|
3114
3079
|
var t = this.position.offset;
|
|
3115
3080
|
if (t >= this.message.length)
|
|
3116
3081
|
throw Error("out of bound");
|
|
3117
|
-
var r =
|
|
3082
|
+
var r = Lt(this.message, t);
|
|
3118
3083
|
if (r === void 0)
|
|
3119
3084
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3120
3085
|
return r;
|
|
@@ -3133,7 +3098,7 @@ var vn = (
|
|
|
3133
3098
|
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);
|
|
3134
3099
|
}
|
|
3135
3100
|
}, e.prototype.bumpIf = function(t) {
|
|
3136
|
-
if (
|
|
3101
|
+
if (tt(this.message, t, this.offset())) {
|
|
3137
3102
|
for (var r = 0; r < t.length; r++)
|
|
3138
3103
|
this.bump();
|
|
3139
3104
|
return !0;
|
|
@@ -3155,56 +3120,56 @@ var vn = (
|
|
|
3155
3120
|
break;
|
|
3156
3121
|
}
|
|
3157
3122
|
}, e.prototype.bumpSpace = function() {
|
|
3158
|
-
for (; !this.isEOF() &&
|
|
3123
|
+
for (; !this.isEOF() && Mt(this.char()); )
|
|
3159
3124
|
this.bump();
|
|
3160
3125
|
}, e.prototype.peek = function() {
|
|
3161
3126
|
if (this.isEOF())
|
|
3162
3127
|
return null;
|
|
3163
3128
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3164
|
-
return n
|
|
3129
|
+
return n ?? null;
|
|
3165
3130
|
}, e;
|
|
3166
3131
|
}()
|
|
3167
3132
|
);
|
|
3168
|
-
function
|
|
3133
|
+
function Re(e) {
|
|
3169
3134
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3170
3135
|
}
|
|
3171
|
-
function
|
|
3172
|
-
return
|
|
3136
|
+
function un(e) {
|
|
3137
|
+
return Re(e) || e === 47;
|
|
3173
3138
|
}
|
|
3174
|
-
function
|
|
3139
|
+
function hn(e) {
|
|
3175
3140
|
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;
|
|
3176
3141
|
}
|
|
3177
|
-
function
|
|
3142
|
+
function Mt(e) {
|
|
3178
3143
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3179
3144
|
}
|
|
3180
|
-
function
|
|
3145
|
+
function ln(e) {
|
|
3181
3146
|
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;
|
|
3182
3147
|
}
|
|
3183
|
-
function
|
|
3148
|
+
function Ue(e) {
|
|
3184
3149
|
e.forEach(function(t) {
|
|
3185
|
-
if (delete t.location,
|
|
3150
|
+
if (delete t.location, Tt(t) || St(t))
|
|
3186
3151
|
for (var r in t.options)
|
|
3187
|
-
delete t.options[r].location,
|
|
3188
|
-
else
|
|
3152
|
+
delete t.options[r].location, Ue(t.options[r].value);
|
|
3153
|
+
else yt(t) && Bt(t.style) || (Pt(t) || Ht(t)) && Le(t.style) ? delete t.style.location : At(t) && Ue(t.children);
|
|
3189
3154
|
});
|
|
3190
3155
|
}
|
|
3191
|
-
function
|
|
3156
|
+
function fn(e, t) {
|
|
3192
3157
|
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3193
|
-
var r = new
|
|
3158
|
+
var r = new an(e, t).parse();
|
|
3194
3159
|
if (r.err) {
|
|
3195
|
-
var n = SyntaxError(
|
|
3160
|
+
var n = SyntaxError(_[r.err.kind]);
|
|
3196
3161
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3197
3162
|
}
|
|
3198
|
-
return t
|
|
3163
|
+
return t?.captureLocation || Ue(r.val), r.val;
|
|
3199
3164
|
}
|
|
3200
|
-
var
|
|
3165
|
+
var J;
|
|
3201
3166
|
(function(e) {
|
|
3202
3167
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3203
|
-
})(
|
|
3168
|
+
})(J || (J = {}));
|
|
3204
3169
|
var _e = (
|
|
3205
3170
|
/** @class */
|
|
3206
3171
|
function(e) {
|
|
3207
|
-
|
|
3172
|
+
ve(t, e);
|
|
3208
3173
|
function t(r, n, i) {
|
|
3209
3174
|
var s = e.call(this, r) || this;
|
|
3210
3175
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3213,30 +3178,30 @@ var _e = (
|
|
|
3213
3178
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3214
3179
|
}, t;
|
|
3215
3180
|
}(Error)
|
|
3216
|
-
),
|
|
3181
|
+
), it = (
|
|
3217
3182
|
/** @class */
|
|
3218
3183
|
function(e) {
|
|
3219
|
-
|
|
3184
|
+
ve(t, e);
|
|
3220
3185
|
function t(r, n, i, s) {
|
|
3221
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3186
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
|
|
3222
3187
|
}
|
|
3223
3188
|
return t;
|
|
3224
3189
|
}(_e)
|
|
3225
|
-
),
|
|
3190
|
+
), cn = (
|
|
3226
3191
|
/** @class */
|
|
3227
3192
|
function(e) {
|
|
3228
|
-
|
|
3193
|
+
ve(t, e);
|
|
3229
3194
|
function t(r, n, i) {
|
|
3230
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3195
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3231
3196
|
}
|
|
3232
3197
|
return t;
|
|
3233
3198
|
}(_e)
|
|
3234
|
-
),
|
|
3199
|
+
), pn = (
|
|
3235
3200
|
/** @class */
|
|
3236
3201
|
function(e) {
|
|
3237
|
-
|
|
3202
|
+
ve(t, e);
|
|
3238
3203
|
function t(r, n) {
|
|
3239
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3204
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3240
3205
|
}
|
|
3241
3206
|
return t;
|
|
3242
3207
|
}(_e)
|
|
@@ -3244,124 +3209,124 @@ var _e = (
|
|
|
3244
3209
|
(function(e) {
|
|
3245
3210
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3246
3211
|
})(w || (w = {}));
|
|
3247
|
-
function
|
|
3212
|
+
function dn(e) {
|
|
3248
3213
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3249
3214
|
var n = t[t.length - 1];
|
|
3250
3215
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3251
3216
|
}, []);
|
|
3252
3217
|
}
|
|
3253
|
-
function
|
|
3218
|
+
function mn(e) {
|
|
3254
3219
|
return typeof e == "function";
|
|
3255
3220
|
}
|
|
3256
|
-
function
|
|
3257
|
-
if (e.length === 1 &&
|
|
3221
|
+
function ce(e, t, r, n, i, s, o) {
|
|
3222
|
+
if (e.length === 1 && qe(e[0]))
|
|
3258
3223
|
return [
|
|
3259
3224
|
{
|
|
3260
3225
|
type: w.literal,
|
|
3261
3226
|
value: e[0].value
|
|
3262
3227
|
}
|
|
3263
3228
|
];
|
|
3264
|
-
for (var
|
|
3265
|
-
var
|
|
3266
|
-
if (
|
|
3267
|
-
|
|
3229
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3230
|
+
var h = u[l];
|
|
3231
|
+
if (qe(h)) {
|
|
3232
|
+
a.push({
|
|
3268
3233
|
type: w.literal,
|
|
3269
|
-
value:
|
|
3234
|
+
value: h.value
|
|
3270
3235
|
});
|
|
3271
3236
|
continue;
|
|
3272
3237
|
}
|
|
3273
|
-
if (
|
|
3274
|
-
typeof s == "number" &&
|
|
3238
|
+
if ($r(h)) {
|
|
3239
|
+
typeof s == "number" && a.push({
|
|
3275
3240
|
type: w.literal,
|
|
3276
3241
|
value: r.getNumberFormat(t).format(s)
|
|
3277
3242
|
});
|
|
3278
3243
|
continue;
|
|
3279
3244
|
}
|
|
3280
|
-
var c =
|
|
3245
|
+
var c = h.value;
|
|
3281
3246
|
if (!(i && c in i))
|
|
3282
|
-
throw new
|
|
3247
|
+
throw new pn(c, o);
|
|
3283
3248
|
var f = i[c];
|
|
3284
|
-
if (
|
|
3285
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3249
|
+
if (Mr(h)) {
|
|
3250
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3286
3251
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3287
3252
|
value: f
|
|
3288
3253
|
});
|
|
3289
3254
|
continue;
|
|
3290
3255
|
}
|
|
3291
|
-
if (
|
|
3292
|
-
var g = typeof
|
|
3293
|
-
|
|
3256
|
+
if (Pt(h)) {
|
|
3257
|
+
var g = typeof h.style == "string" ? n.date[h.style] : Le(h.style) ? h.style.parsedOptions : void 0;
|
|
3258
|
+
a.push({
|
|
3294
3259
|
type: w.literal,
|
|
3295
3260
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3296
3261
|
});
|
|
3297
3262
|
continue;
|
|
3298
3263
|
}
|
|
3299
|
-
if (
|
|
3300
|
-
var g = typeof
|
|
3301
|
-
|
|
3264
|
+
if (Ht(h)) {
|
|
3265
|
+
var g = typeof h.style == "string" ? n.time[h.style] : Le(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3266
|
+
a.push({
|
|
3302
3267
|
type: w.literal,
|
|
3303
3268
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3304
3269
|
});
|
|
3305
3270
|
continue;
|
|
3306
3271
|
}
|
|
3307
|
-
if (
|
|
3308
|
-
var g = typeof
|
|
3309
|
-
g && g.scale && (f = f * (g.scale || 1)),
|
|
3272
|
+
if (yt(h)) {
|
|
3273
|
+
var g = typeof h.style == "string" ? n.number[h.style] : Bt(h.style) ? h.style.parsedOptions : void 0;
|
|
3274
|
+
g && g.scale && (f = f * (g.scale || 1)), a.push({
|
|
3310
3275
|
type: w.literal,
|
|
3311
3276
|
value: r.getNumberFormat(t, g).format(f)
|
|
3312
3277
|
});
|
|
3313
3278
|
continue;
|
|
3314
3279
|
}
|
|
3315
|
-
if (
|
|
3316
|
-
var
|
|
3317
|
-
if (!
|
|
3318
|
-
throw new
|
|
3319
|
-
var
|
|
3280
|
+
if (At(h)) {
|
|
3281
|
+
var m = h.children, p = h.value, v = i[p];
|
|
3282
|
+
if (!mn(v))
|
|
3283
|
+
throw new cn(p, "function", o);
|
|
3284
|
+
var d = ce(m, t, r, n, i, s), T = v(d.map(function(H) {
|
|
3320
3285
|
return H.value;
|
|
3321
3286
|
}));
|
|
3322
|
-
Array.isArray(T) || (T = [T]),
|
|
3287
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(H) {
|
|
3323
3288
|
return {
|
|
3324
3289
|
type: typeof H == "string" ? w.literal : w.object,
|
|
3325
3290
|
value: H
|
|
3326
3291
|
};
|
|
3327
3292
|
}));
|
|
3328
3293
|
}
|
|
3329
|
-
if (
|
|
3330
|
-
var A =
|
|
3294
|
+
if (Tt(h)) {
|
|
3295
|
+
var A = h.options[f] || h.options.other;
|
|
3331
3296
|
if (!A)
|
|
3332
|
-
throw new
|
|
3333
|
-
|
|
3297
|
+
throw new it(h.value, f, Object.keys(h.options), o);
|
|
3298
|
+
a.push.apply(a, ce(A.value, t, r, n, i));
|
|
3334
3299
|
continue;
|
|
3335
3300
|
}
|
|
3336
|
-
if (
|
|
3337
|
-
var A =
|
|
3301
|
+
if (St(h)) {
|
|
3302
|
+
var A = h.options["=".concat(f)];
|
|
3338
3303
|
if (!A) {
|
|
3339
3304
|
if (!Intl.PluralRules)
|
|
3340
3305
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3341
3306
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3342
|
-
`,
|
|
3343
|
-
var O = r.getPluralRules(t, { type:
|
|
3344
|
-
A =
|
|
3307
|
+
`, J.MISSING_INTL_API, o);
|
|
3308
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3309
|
+
A = h.options[O] || h.options.other;
|
|
3345
3310
|
}
|
|
3346
3311
|
if (!A)
|
|
3347
|
-
throw new
|
|
3348
|
-
|
|
3312
|
+
throw new it(h.value, f, Object.keys(h.options), o);
|
|
3313
|
+
a.push.apply(a, ce(A.value, t, r, n, i, f - (h.offset || 0)));
|
|
3349
3314
|
continue;
|
|
3350
3315
|
}
|
|
3351
3316
|
}
|
|
3352
|
-
return
|
|
3317
|
+
return dn(a);
|
|
3353
3318
|
}
|
|
3354
|
-
function
|
|
3319
|
+
function gn(e, t) {
|
|
3355
3320
|
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3356
3321
|
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3357
3322
|
}, {})) : e;
|
|
3358
3323
|
}
|
|
3359
|
-
function
|
|
3324
|
+
function bn(e, t) {
|
|
3360
3325
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3361
|
-
return r[n] =
|
|
3326
|
+
return r[n] = gn(e[n], t[n]), r;
|
|
3362
3327
|
}, x({}, e)) : e;
|
|
3363
3328
|
}
|
|
3364
|
-
function
|
|
3329
|
+
function Ae(e) {
|
|
3365
3330
|
return {
|
|
3366
3331
|
create: function() {
|
|
3367
3332
|
return {
|
|
@@ -3375,39 +3340,39 @@ function Oe(e) {
|
|
|
3375
3340
|
}
|
|
3376
3341
|
};
|
|
3377
3342
|
}
|
|
3378
|
-
function
|
|
3343
|
+
function vn(e) {
|
|
3379
3344
|
return e === void 0 && (e = {
|
|
3380
3345
|
number: {},
|
|
3381
3346
|
dateTime: {},
|
|
3382
3347
|
pluralRules: {}
|
|
3383
3348
|
}), {
|
|
3384
|
-
getNumberFormat:
|
|
3349
|
+
getNumberFormat: He(function() {
|
|
3385
3350
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3386
3351
|
r[n] = arguments[n];
|
|
3387
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3352
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3388
3353
|
}, {
|
|
3389
|
-
cache:
|
|
3390
|
-
strategy:
|
|
3354
|
+
cache: Ae(e.number),
|
|
3355
|
+
strategy: Te.variadic
|
|
3391
3356
|
}),
|
|
3392
|
-
getDateTimeFormat:
|
|
3357
|
+
getDateTimeFormat: He(function() {
|
|
3393
3358
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3394
3359
|
r[n] = arguments[n];
|
|
3395
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3360
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3396
3361
|
}, {
|
|
3397
|
-
cache:
|
|
3398
|
-
strategy:
|
|
3362
|
+
cache: Ae(e.dateTime),
|
|
3363
|
+
strategy: Te.variadic
|
|
3399
3364
|
}),
|
|
3400
|
-
getPluralRules:
|
|
3365
|
+
getPluralRules: He(function() {
|
|
3401
3366
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3402
3367
|
r[n] = arguments[n];
|
|
3403
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3368
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3404
3369
|
}, {
|
|
3405
|
-
cache:
|
|
3406
|
-
strategy:
|
|
3370
|
+
cache: Ae(e.pluralRules),
|
|
3371
|
+
strategy: Te.variadic
|
|
3407
3372
|
})
|
|
3408
3373
|
};
|
|
3409
3374
|
}
|
|
3410
|
-
var
|
|
3375
|
+
var _n = (
|
|
3411
3376
|
/** @class */
|
|
3412
3377
|
function() {
|
|
3413
3378
|
function e(t, r, n, i) {
|
|
@@ -3417,20 +3382,20 @@ var Nn = (
|
|
|
3417
3382
|
number: {},
|
|
3418
3383
|
dateTime: {},
|
|
3419
3384
|
pluralRules: {}
|
|
3420
|
-
}, this.format = function(
|
|
3421
|
-
var
|
|
3422
|
-
if (
|
|
3423
|
-
return
|
|
3424
|
-
var
|
|
3385
|
+
}, this.format = function(l) {
|
|
3386
|
+
var u = s.formatToParts(l);
|
|
3387
|
+
if (u.length === 1)
|
|
3388
|
+
return u[0].value;
|
|
3389
|
+
var h = u.reduce(function(c, f) {
|
|
3425
3390
|
return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3426
3391
|
}, []);
|
|
3427
|
-
return
|
|
3428
|
-
}, this.formatToParts = function(
|
|
3429
|
-
return
|
|
3392
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3393
|
+
}, this.formatToParts = function(l) {
|
|
3394
|
+
return ce(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3430
3395
|
}, this.resolvedOptions = function() {
|
|
3431
|
-
var
|
|
3396
|
+
var l;
|
|
3432
3397
|
return {
|
|
3433
|
-
locale: ((
|
|
3398
|
+
locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3434
3399
|
};
|
|
3435
3400
|
}, this.getAst = function() {
|
|
3436
3401
|
return s.ast;
|
|
@@ -3439,13 +3404,13 @@ var Nn = (
|
|
|
3439
3404
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3440
3405
|
var o = i || {};
|
|
3441
3406
|
o.formatters;
|
|
3442
|
-
var
|
|
3443
|
-
this.ast = e.__parse(t, x(x({},
|
|
3407
|
+
var a = Ar(o, ["formatters"]);
|
|
3408
|
+
this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
|
|
3444
3409
|
} else
|
|
3445
3410
|
this.ast = t;
|
|
3446
3411
|
if (!Array.isArray(this.ast))
|
|
3447
3412
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3448
|
-
this.formats =
|
|
3413
|
+
this.formats = bn(e.formats, n), this.formatters = i && i.formatters || vn(this.formatterCache);
|
|
3449
3414
|
}
|
|
3450
3415
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3451
3416
|
get: function() {
|
|
@@ -3454,11 +3419,11 @@ var Nn = (
|
|
|
3454
3419
|
enumerable: !1,
|
|
3455
3420
|
configurable: !0
|
|
3456
3421
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3457
|
-
if (typeof Intl.Locale
|
|
3422
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3458
3423
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3459
3424
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3460
3425
|
}
|
|
3461
|
-
}, e.__parse =
|
|
3426
|
+
}, e.__parse = fn, e.formats = {
|
|
3462
3427
|
number: {
|
|
3463
3428
|
integer: {
|
|
3464
3429
|
maximumFractionDigits: 0
|
|
@@ -3519,7 +3484,7 @@ var Nn = (
|
|
|
3519
3484
|
}, e;
|
|
3520
3485
|
}()
|
|
3521
3486
|
);
|
|
3522
|
-
function
|
|
3487
|
+
function En(e, t) {
|
|
3523
3488
|
if (t == null)
|
|
3524
3489
|
return;
|
|
3525
3490
|
if (t in e)
|
|
@@ -3540,92 +3505,92 @@ function wn(e, t) {
|
|
|
3540
3505
|
n = void 0;
|
|
3541
3506
|
return n;
|
|
3542
3507
|
}
|
|
3543
|
-
const
|
|
3508
|
+
const j = {}, xn = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), $t = (e, t) => {
|
|
3544
3509
|
if (t == null)
|
|
3545
3510
|
return;
|
|
3546
|
-
if (t in
|
|
3547
|
-
return
|
|
3548
|
-
const r =
|
|
3511
|
+
if (t in j && e in j[t])
|
|
3512
|
+
return j[t][e];
|
|
3513
|
+
const r = Ee(t);
|
|
3549
3514
|
for (let n = 0; n < r.length; n++) {
|
|
3550
|
-
const i = r[n], s =
|
|
3515
|
+
const i = r[n], s = Pn(i, e);
|
|
3551
3516
|
if (s)
|
|
3552
|
-
return
|
|
3517
|
+
return xn(e, t, s);
|
|
3553
3518
|
}
|
|
3554
3519
|
};
|
|
3555
|
-
let
|
|
3556
|
-
const
|
|
3557
|
-
function
|
|
3558
|
-
return
|
|
3520
|
+
let Ve;
|
|
3521
|
+
const oe = be({});
|
|
3522
|
+
function yn(e) {
|
|
3523
|
+
return Ve[e] || null;
|
|
3559
3524
|
}
|
|
3560
|
-
function
|
|
3561
|
-
return e in
|
|
3525
|
+
function Rt(e) {
|
|
3526
|
+
return e in Ve;
|
|
3562
3527
|
}
|
|
3563
|
-
function
|
|
3564
|
-
if (!
|
|
3528
|
+
function Pn(e, t) {
|
|
3529
|
+
if (!Rt(e))
|
|
3565
3530
|
return null;
|
|
3566
|
-
const r =
|
|
3567
|
-
return
|
|
3531
|
+
const r = yn(e);
|
|
3532
|
+
return En(r, t);
|
|
3568
3533
|
}
|
|
3569
|
-
function
|
|
3534
|
+
function Hn(e) {
|
|
3570
3535
|
if (e == null)
|
|
3571
3536
|
return;
|
|
3572
|
-
const t =
|
|
3537
|
+
const t = Ee(e);
|
|
3573
3538
|
for (let r = 0; r < t.length; r++) {
|
|
3574
3539
|
const n = t[r];
|
|
3575
|
-
if (
|
|
3540
|
+
if (Rt(n))
|
|
3576
3541
|
return n;
|
|
3577
3542
|
}
|
|
3578
3543
|
}
|
|
3579
|
-
function
|
|
3580
|
-
delete
|
|
3544
|
+
function Ut(e, ...t) {
|
|
3545
|
+
delete j[e], oe.update((r) => (r[e] = Sr.all([r[e] || {}, ...t]), r));
|
|
3581
3546
|
}
|
|
3582
|
-
|
|
3583
|
-
[
|
|
3547
|
+
Y(
|
|
3548
|
+
[oe],
|
|
3584
3549
|
([e]) => Object.keys(e)
|
|
3585
3550
|
);
|
|
3586
|
-
|
|
3587
|
-
const
|
|
3588
|
-
function
|
|
3589
|
-
|
|
3551
|
+
oe.subscribe((e) => Ve = e);
|
|
3552
|
+
const pe = {};
|
|
3553
|
+
function Tn(e, t) {
|
|
3554
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3590
3555
|
}
|
|
3591
|
-
function
|
|
3592
|
-
return
|
|
3556
|
+
function Gt(e) {
|
|
3557
|
+
return pe[e];
|
|
3593
3558
|
}
|
|
3594
|
-
function
|
|
3595
|
-
return
|
|
3596
|
-
const r =
|
|
3559
|
+
function Sn(e) {
|
|
3560
|
+
return Ee(e).map((t) => {
|
|
3561
|
+
const r = Gt(t);
|
|
3597
3562
|
return [t, r ? [...r] : []];
|
|
3598
3563
|
}).filter(([, t]) => t.length > 0);
|
|
3599
3564
|
}
|
|
3600
|
-
function
|
|
3601
|
-
return e == null ? !1 :
|
|
3565
|
+
function Ge(e) {
|
|
3566
|
+
return e == null ? !1 : Ee(e).some(
|
|
3602
3567
|
(t) => {
|
|
3603
3568
|
var r;
|
|
3604
|
-
return (r =
|
|
3569
|
+
return (r = Gt(t)) == null ? void 0 : r.size;
|
|
3605
3570
|
}
|
|
3606
3571
|
);
|
|
3607
3572
|
}
|
|
3608
|
-
function
|
|
3573
|
+
function An(e, t) {
|
|
3609
3574
|
return Promise.all(
|
|
3610
|
-
t.map((n) => (
|
|
3611
|
-
).then((n) =>
|
|
3612
|
-
}
|
|
3613
|
-
const
|
|
3614
|
-
function
|
|
3615
|
-
if (!
|
|
3616
|
-
return e in
|
|
3617
|
-
const t =
|
|
3618
|
-
return
|
|
3575
|
+
t.map((n) => (Tn(e, n), n().then((i) => i.default || i)))
|
|
3576
|
+
).then((n) => Ut(e, ...n));
|
|
3577
|
+
}
|
|
3578
|
+
const te = {};
|
|
3579
|
+
function Dt(e) {
|
|
3580
|
+
if (!Ge(e))
|
|
3581
|
+
return e in te ? te[e] : Promise.resolve();
|
|
3582
|
+
const t = Sn(e);
|
|
3583
|
+
return te[e] = Promise.all(
|
|
3619
3584
|
t.map(
|
|
3620
|
-
([r, n]) =>
|
|
3585
|
+
([r, n]) => An(r, n)
|
|
3621
3586
|
)
|
|
3622
3587
|
).then(() => {
|
|
3623
|
-
if (
|
|
3624
|
-
return
|
|
3625
|
-
delete
|
|
3626
|
-
}),
|
|
3588
|
+
if (Ge(e))
|
|
3589
|
+
return Dt(e);
|
|
3590
|
+
delete te[e];
|
|
3591
|
+
}), te[e];
|
|
3627
3592
|
}
|
|
3628
|
-
const
|
|
3593
|
+
const Bn = {
|
|
3629
3594
|
number: {
|
|
3630
3595
|
scientific: { notation: "scientific" },
|
|
3631
3596
|
engineering: { notation: "engineering" },
|
|
@@ -3654,159 +3619,159 @@ const Gn = {
|
|
|
3654
3619
|
timeZoneName: "short"
|
|
3655
3620
|
}
|
|
3656
3621
|
}
|
|
3657
|
-
},
|
|
3622
|
+
}, On = {
|
|
3658
3623
|
fallbackLocale: null,
|
|
3659
3624
|
loadingDelay: 200,
|
|
3660
|
-
formats:
|
|
3625
|
+
formats: Bn,
|
|
3661
3626
|
warnOnMissingMessages: !0,
|
|
3662
3627
|
handleMissingMessage: void 0,
|
|
3663
3628
|
ignoreTag: !0
|
|
3664
|
-
},
|
|
3665
|
-
function
|
|
3666
|
-
return
|
|
3667
|
-
}
|
|
3668
|
-
const
|
|
3669
|
-
var
|
|
3670
|
-
for (var r in t
|
|
3671
|
-
|
|
3672
|
-
if (
|
|
3673
|
-
for (var r of
|
|
3674
|
-
|
|
3629
|
+
}, Nn = On;
|
|
3630
|
+
function q() {
|
|
3631
|
+
return Nn;
|
|
3632
|
+
}
|
|
3633
|
+
const Be = be(!1);
|
|
3634
|
+
var wn = Object.defineProperty, In = Object.defineProperties, Ln = Object.getOwnPropertyDescriptors, st = Object.getOwnPropertySymbols, Cn = Object.prototype.hasOwnProperty, Mn = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $n = (e, t) => {
|
|
3635
|
+
for (var r in t)
|
|
3636
|
+
Cn.call(t, r) && ot(e, r, t[r]);
|
|
3637
|
+
if (st)
|
|
3638
|
+
for (var r of st(t))
|
|
3639
|
+
Mn.call(t, r) && ot(e, r, t[r]);
|
|
3675
3640
|
return e;
|
|
3676
|
-
},
|
|
3677
|
-
let
|
|
3678
|
-
const
|
|
3679
|
-
function
|
|
3641
|
+
}, Rn = (e, t) => In(e, Ln(t));
|
|
3642
|
+
let De;
|
|
3643
|
+
const me = be(null);
|
|
3644
|
+
function at(e) {
|
|
3680
3645
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3681
3646
|
}
|
|
3682
|
-
function
|
|
3683
|
-
const r =
|
|
3684
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3647
|
+
function Ee(e, t = q().fallbackLocale) {
|
|
3648
|
+
const r = at(e);
|
|
3649
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...at(t)])] : r;
|
|
3685
3650
|
}
|
|
3686
|
-
function
|
|
3687
|
-
return
|
|
3651
|
+
function k() {
|
|
3652
|
+
return De ?? void 0;
|
|
3688
3653
|
}
|
|
3689
|
-
|
|
3690
|
-
|
|
3654
|
+
me.subscribe((e) => {
|
|
3655
|
+
De = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3691
3656
|
});
|
|
3692
|
-
const
|
|
3693
|
-
if (e &&
|
|
3694
|
-
const { loadingDelay: t } =
|
|
3657
|
+
const Un = (e) => {
|
|
3658
|
+
if (e && Hn(e) && Ge(e)) {
|
|
3659
|
+
const { loadingDelay: t } = q();
|
|
3695
3660
|
let r;
|
|
3696
|
-
return typeof window
|
|
3697
|
-
() =>
|
|
3661
|
+
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3662
|
+
() => Be.set(!0),
|
|
3698
3663
|
t
|
|
3699
|
-
) :
|
|
3700
|
-
|
|
3664
|
+
) : Be.set(!0), Dt(e).then(() => {
|
|
3665
|
+
me.set(e);
|
|
3701
3666
|
}).finally(() => {
|
|
3702
|
-
clearTimeout(r),
|
|
3667
|
+
clearTimeout(r), Be.set(!1);
|
|
3703
3668
|
});
|
|
3704
3669
|
}
|
|
3705
|
-
return
|
|
3706
|
-
},
|
|
3707
|
-
set:
|
|
3708
|
-
}),
|
|
3670
|
+
return me.set(e);
|
|
3671
|
+
}, K = Rn($n({}, me), {
|
|
3672
|
+
set: Un
|
|
3673
|
+
}), xe = (e) => {
|
|
3709
3674
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3710
3675
|
return (n) => {
|
|
3711
3676
|
const i = JSON.stringify(n);
|
|
3712
3677
|
return i in t ? t[i] : t[i] = e(n);
|
|
3713
3678
|
};
|
|
3714
3679
|
};
|
|
3715
|
-
var
|
|
3680
|
+
var Gn = Object.defineProperty, ge = Object.getOwnPropertySymbols, Ft = Object.prototype.hasOwnProperty, jt = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
|
|
3716
3681
|
for (var r in t || (t = {}))
|
|
3717
|
-
|
|
3718
|
-
if (
|
|
3719
|
-
for (var r of
|
|
3720
|
-
|
|
3682
|
+
Ft.call(t, r) && ut(e, r, t[r]);
|
|
3683
|
+
if (ge)
|
|
3684
|
+
for (var r of ge(t))
|
|
3685
|
+
jt.call(t, r) && ut(e, r, t[r]);
|
|
3721
3686
|
return e;
|
|
3722
|
-
},
|
|
3687
|
+
}, ee = (e, t) => {
|
|
3723
3688
|
var r = {};
|
|
3724
3689
|
for (var n in e)
|
|
3725
|
-
|
|
3726
|
-
if (e != null &&
|
|
3727
|
-
for (var n of
|
|
3728
|
-
t.indexOf(n) < 0 &&
|
|
3690
|
+
Ft.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3691
|
+
if (e != null && ge)
|
|
3692
|
+
for (var n of ge(e))
|
|
3693
|
+
t.indexOf(n) < 0 && jt.call(e, n) && (r[n] = e[n]);
|
|
3729
3694
|
return r;
|
|
3730
3695
|
};
|
|
3731
|
-
const
|
|
3732
|
-
const { formats: r } =
|
|
3696
|
+
const ie = (e, t) => {
|
|
3697
|
+
const { formats: r } = q();
|
|
3733
3698
|
if (e in r && t in r[e])
|
|
3734
3699
|
return r[e][t];
|
|
3735
3700
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3736
|
-
},
|
|
3701
|
+
}, Dn = xe(
|
|
3737
3702
|
(e) => {
|
|
3738
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3703
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3739
3704
|
if (r == null)
|
|
3740
3705
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3741
|
-
return n && (i =
|
|
3706
|
+
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
3742
3707
|
}
|
|
3743
|
-
),
|
|
3708
|
+
), Fn = xe(
|
|
3744
3709
|
(e) => {
|
|
3745
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3710
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3746
3711
|
if (r == null)
|
|
3747
3712
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3748
|
-
return n ? i =
|
|
3713
|
+
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3749
3714
|
}
|
|
3750
|
-
),
|
|
3715
|
+
), jn = xe(
|
|
3751
3716
|
(e) => {
|
|
3752
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3717
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3753
3718
|
if (r == null)
|
|
3754
3719
|
throw new Error(
|
|
3755
3720
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3756
3721
|
);
|
|
3757
|
-
return n ? i =
|
|
3722
|
+
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3758
3723
|
}
|
|
3759
|
-
),
|
|
3724
|
+
), kn = (e = {}) => {
|
|
3760
3725
|
var t = e, {
|
|
3761
|
-
locale: r =
|
|
3762
|
-
} = t, n =
|
|
3726
|
+
locale: r = k()
|
|
3727
|
+
} = t, n = ee(t, [
|
|
3763
3728
|
"locale"
|
|
3764
3729
|
]);
|
|
3765
|
-
return
|
|
3766
|
-
},
|
|
3730
|
+
return Dn(Xe({ locale: r }, n));
|
|
3731
|
+
}, Vn = (e = {}) => {
|
|
3767
3732
|
var t = e, {
|
|
3768
|
-
locale: r =
|
|
3769
|
-
} = t, n =
|
|
3733
|
+
locale: r = k()
|
|
3734
|
+
} = t, n = ee(t, [
|
|
3770
3735
|
"locale"
|
|
3771
3736
|
]);
|
|
3772
|
-
return
|
|
3773
|
-
},
|
|
3737
|
+
return Fn(Xe({ locale: r }, n));
|
|
3738
|
+
}, Xn = (e = {}) => {
|
|
3774
3739
|
var t = e, {
|
|
3775
|
-
locale: r =
|
|
3776
|
-
} = t, n =
|
|
3740
|
+
locale: r = k()
|
|
3741
|
+
} = t, n = ee(t, [
|
|
3777
3742
|
"locale"
|
|
3778
3743
|
]);
|
|
3779
|
-
return
|
|
3780
|
-
},
|
|
3744
|
+
return jn(Xe({ locale: r }, n));
|
|
3745
|
+
}, zn = xe(
|
|
3781
3746
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3782
|
-
(e, t =
|
|
3783
|
-
ignoreTag:
|
|
3747
|
+
(e, t = k()) => new _n(e, t, q().formats, {
|
|
3748
|
+
ignoreTag: q().ignoreTag
|
|
3784
3749
|
})
|
|
3785
|
-
),
|
|
3750
|
+
), Wn = (e, t = {}) => {
|
|
3786
3751
|
var r, n, i, s;
|
|
3787
3752
|
let o = t;
|
|
3788
3753
|
typeof e == "object" && (o = e, e = o.id);
|
|
3789
3754
|
const {
|
|
3790
|
-
values:
|
|
3791
|
-
locale:
|
|
3792
|
-
default:
|
|
3755
|
+
values: a,
|
|
3756
|
+
locale: l = k(),
|
|
3757
|
+
default: u
|
|
3793
3758
|
} = o;
|
|
3794
|
-
if (
|
|
3759
|
+
if (l == null)
|
|
3795
3760
|
throw new Error(
|
|
3796
3761
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3797
3762
|
);
|
|
3798
|
-
let
|
|
3799
|
-
if (!
|
|
3800
|
-
|
|
3801
|
-
else if (typeof
|
|
3763
|
+
let h = $t(e, l);
|
|
3764
|
+
if (!h)
|
|
3765
|
+
h = (s = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3766
|
+
else if (typeof h != "string")
|
|
3802
3767
|
return console.warn(
|
|
3803
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3804
|
-
),
|
|
3805
|
-
if (!
|
|
3806
|
-
return
|
|
3807
|
-
let c =
|
|
3768
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3769
|
+
), h;
|
|
3770
|
+
if (!a)
|
|
3771
|
+
return h;
|
|
3772
|
+
let c = h;
|
|
3808
3773
|
try {
|
|
3809
|
-
c =
|
|
3774
|
+
c = zn(h, l).format(a);
|
|
3810
3775
|
} catch (f) {
|
|
3811
3776
|
f instanceof Error && console.warn(
|
|
3812
3777
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3814,140 +3779,140 @@ const se = (e, t) => {
|
|
|
3814
3779
|
);
|
|
3815
3780
|
}
|
|
3816
3781
|
return c;
|
|
3817
|
-
},
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
function
|
|
3823
|
-
|
|
3782
|
+
}, Zn = (e, t) => Xn(t).format(e), Qn = (e, t) => Vn(t).format(e), Jn = (e, t) => kn(t).format(e), qn = (e, t = k()) => $t(e, t), Yn = Y([K, oe], () => Wn);
|
|
3783
|
+
Y([K], () => Zn);
|
|
3784
|
+
Y([K], () => Qn);
|
|
3785
|
+
Y([K], () => Jn);
|
|
3786
|
+
Y([K, oe], () => qn);
|
|
3787
|
+
function ht(e, t) {
|
|
3788
|
+
Ut(e, t);
|
|
3824
3789
|
}
|
|
3825
|
-
function
|
|
3826
|
-
|
|
3790
|
+
function Kn(e) {
|
|
3791
|
+
K.set(e);
|
|
3827
3792
|
}
|
|
3828
|
-
function
|
|
3829
|
-
|
|
3793
|
+
function ei(e) {
|
|
3794
|
+
Xt(e, "svelte-r0nv1e", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.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%)}");
|
|
3830
3795
|
}
|
|
3831
|
-
function
|
|
3796
|
+
function lt(e, t, r) {
|
|
3832
3797
|
const n = e.slice();
|
|
3833
3798
|
return n[21] = t[r], n;
|
|
3834
3799
|
}
|
|
3835
|
-
function
|
|
3800
|
+
function ft(e, t, r) {
|
|
3836
3801
|
const n = e.slice();
|
|
3837
3802
|
return n[21] = t[r], n;
|
|
3838
3803
|
}
|
|
3839
|
-
function
|
|
3804
|
+
function ti(e) {
|
|
3840
3805
|
let t, r = (
|
|
3841
3806
|
/*$_*/
|
|
3842
3807
|
e[4]("popularProviders") + ""
|
|
3843
|
-
), n, i, s, o,
|
|
3808
|
+
), n, i, s, o, a = (
|
|
3844
3809
|
/*$_*/
|
|
3845
3810
|
e[4]("otherProviders") + ""
|
|
3846
|
-
),
|
|
3811
|
+
), l, u, h, c = he(
|
|
3847
3812
|
/*topProviders*/
|
|
3848
3813
|
e[1]
|
|
3849
3814
|
), f = [];
|
|
3850
3815
|
for (let p = 0; p < c.length; p += 1)
|
|
3851
|
-
f[p] =
|
|
3852
|
-
let g =
|
|
3816
|
+
f[p] = ct(ft(e, c, p));
|
|
3817
|
+
let g = he(
|
|
3853
3818
|
/*otherProviders*/
|
|
3854
3819
|
e[2]
|
|
3855
|
-
),
|
|
3820
|
+
), m = [];
|
|
3856
3821
|
for (let p = 0; p < g.length; p += 1)
|
|
3857
|
-
|
|
3822
|
+
m[p] = pt(lt(e, g, p));
|
|
3858
3823
|
return {
|
|
3859
3824
|
c() {
|
|
3860
|
-
t = B("h4"), n =
|
|
3825
|
+
t = B("h4"), n = R(r), i = U();
|
|
3861
3826
|
for (let p = 0; p < f.length; p += 1)
|
|
3862
3827
|
f[p].c();
|
|
3863
|
-
s =
|
|
3864
|
-
for (let p = 0; p <
|
|
3865
|
-
|
|
3866
|
-
|
|
3828
|
+
s = U(), o = B("h4"), l = R(a), u = U();
|
|
3829
|
+
for (let p = 0; p < m.length; p += 1)
|
|
3830
|
+
m[p].c();
|
|
3831
|
+
h = Zt(), S(t, "class", "ProviderTitle"), S(o, "class", "ProviderTitle");
|
|
3867
3832
|
},
|
|
3868
3833
|
m(p, v) {
|
|
3869
|
-
|
|
3870
|
-
for (let
|
|
3871
|
-
f[
|
|
3872
|
-
|
|
3873
|
-
for (let
|
|
3874
|
-
d
|
|
3875
|
-
|
|
3834
|
+
M(p, t, v), y(t, n), M(p, i, v);
|
|
3835
|
+
for (let d = 0; d < f.length; d += 1)
|
|
3836
|
+
f[d] && f[d].m(p, v);
|
|
3837
|
+
M(p, s, v), M(p, o, v), y(o, l), M(p, u, v);
|
|
3838
|
+
for (let d = 0; d < m.length; d += 1)
|
|
3839
|
+
m[d] && m[d].m(p, v);
|
|
3840
|
+
M(p, h, v);
|
|
3876
3841
|
},
|
|
3877
3842
|
p(p, v) {
|
|
3878
3843
|
if (v & /*$_*/
|
|
3879
3844
|
16 && r !== (r = /*$_*/
|
|
3880
|
-
p[4]("popularProviders") + "") &&
|
|
3845
|
+
p[4]("popularProviders") + "") && D(n, r), v & /*openGameProviderPage, topProviders, $_*/
|
|
3881
3846
|
50) {
|
|
3882
|
-
c =
|
|
3847
|
+
c = he(
|
|
3883
3848
|
/*topProviders*/
|
|
3884
3849
|
p[1]
|
|
3885
3850
|
);
|
|
3886
|
-
let
|
|
3887
|
-
for (
|
|
3888
|
-
const T =
|
|
3889
|
-
f[
|
|
3851
|
+
let d;
|
|
3852
|
+
for (d = 0; d < c.length; d += 1) {
|
|
3853
|
+
const T = ft(p, c, d);
|
|
3854
|
+
f[d] ? f[d].p(T, v) : (f[d] = ct(T), f[d].c(), f[d].m(s.parentNode, s));
|
|
3890
3855
|
}
|
|
3891
|
-
for (;
|
|
3892
|
-
f[
|
|
3856
|
+
for (; d < f.length; d += 1)
|
|
3857
|
+
f[d].d(1);
|
|
3893
3858
|
f.length = c.length;
|
|
3894
3859
|
}
|
|
3895
3860
|
if (v & /*$_*/
|
|
3896
|
-
16 &&
|
|
3897
|
-
p[4]("otherProviders") + "") &&
|
|
3861
|
+
16 && a !== (a = /*$_*/
|
|
3862
|
+
p[4]("otherProviders") + "") && D(l, a), v & /*openGameProviderPage, otherProviders, $_*/
|
|
3898
3863
|
52) {
|
|
3899
|
-
g =
|
|
3864
|
+
g = he(
|
|
3900
3865
|
/*otherProviders*/
|
|
3901
3866
|
p[2]
|
|
3902
3867
|
);
|
|
3903
|
-
let
|
|
3904
|
-
for (
|
|
3905
|
-
const T =
|
|
3906
|
-
d
|
|
3868
|
+
let d;
|
|
3869
|
+
for (d = 0; d < g.length; d += 1) {
|
|
3870
|
+
const T = lt(p, g, d);
|
|
3871
|
+
m[d] ? m[d].p(T, v) : (m[d] = pt(T), m[d].c(), m[d].m(h.parentNode, h));
|
|
3907
3872
|
}
|
|
3908
|
-
for (;
|
|
3909
|
-
d
|
|
3910
|
-
|
|
3873
|
+
for (; d < m.length; d += 1)
|
|
3874
|
+
m[d].d(1);
|
|
3875
|
+
m.length = g.length;
|
|
3911
3876
|
}
|
|
3912
3877
|
},
|
|
3913
3878
|
d(p) {
|
|
3914
|
-
p && (
|
|
3879
|
+
p && (L(t), L(i), L(s), L(o), L(u), L(h)), We(f, p), We(m, p);
|
|
3915
3880
|
}
|
|
3916
3881
|
};
|
|
3917
3882
|
}
|
|
3918
|
-
function
|
|
3883
|
+
function ri(e) {
|
|
3919
3884
|
let t, r = (
|
|
3920
3885
|
/*$_*/
|
|
3921
3886
|
e[4]("loading") + ""
|
|
3922
3887
|
), n;
|
|
3923
3888
|
return {
|
|
3924
3889
|
c() {
|
|
3925
|
-
t = B("p"), n =
|
|
3890
|
+
t = B("p"), n = R(r), S(t, "class", "Message");
|
|
3926
3891
|
},
|
|
3927
3892
|
m(i, s) {
|
|
3928
|
-
|
|
3893
|
+
M(i, t, s), y(t, n);
|
|
3929
3894
|
},
|
|
3930
3895
|
p(i, s) {
|
|
3931
3896
|
s & /*$_*/
|
|
3932
3897
|
16 && r !== (r = /*$_*/
|
|
3933
|
-
i[4]("loading") + "") &&
|
|
3898
|
+
i[4]("loading") + "") && D(n, r);
|
|
3934
3899
|
},
|
|
3935
3900
|
d(i) {
|
|
3936
|
-
i &&
|
|
3901
|
+
i && L(t);
|
|
3937
3902
|
}
|
|
3938
3903
|
};
|
|
3939
3904
|
}
|
|
3940
|
-
function
|
|
3941
|
-
let t, r, n, i, s, o,
|
|
3905
|
+
function ct(e) {
|
|
3906
|
+
let t, r, n, i, s, o, a, l = (
|
|
3942
3907
|
/*provider*/
|
|
3943
3908
|
e[21].name + ""
|
|
3944
|
-
),
|
|
3909
|
+
), u, h, c, f = (
|
|
3945
3910
|
/*provider*/
|
|
3946
3911
|
e[21].games.count + ""
|
|
3947
|
-
), g,
|
|
3912
|
+
), g, m, p = (
|
|
3948
3913
|
/*$_*/
|
|
3949
3914
|
e[4]("games") + ""
|
|
3950
|
-
), v,
|
|
3915
|
+
), v, d, T;
|
|
3951
3916
|
function A() {
|
|
3952
3917
|
return (
|
|
3953
3918
|
/*click_handler*/
|
|
@@ -3959,12 +3924,12 @@ function Et(e) {
|
|
|
3959
3924
|
}
|
|
3960
3925
|
return {
|
|
3961
3926
|
c() {
|
|
3962
|
-
t = B("div"), r = B("img"), s =
|
|
3927
|
+
t = B("div"), r = B("img"), s = U(), o = B("div"), a = B("p"), u = R(l), h = U(), c = B("p"), g = R(f), m = U(), v = R(p), de(r.src, n = /*provider*/
|
|
3963
3928
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
3964
3929
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
3965
3930
|
},
|
|
3966
3931
|
m(O, H) {
|
|
3967
|
-
|
|
3932
|
+
M(O, t, H), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c, m), y(c, v), d || (T = bt(t, "click", A), d = !0);
|
|
3968
3933
|
},
|
|
3969
3934
|
p(O, H) {
|
|
3970
3935
|
e = O, H & /*topProviders*/
|
|
@@ -3972,29 +3937,29 @@ function Et(e) {
|
|
|
3972
3937
|
e[21].logo) && S(r, "src", n), H & /*topProviders*/
|
|
3973
3938
|
2 && i !== (i = /*provider*/
|
|
3974
3939
|
e[21].name) && S(r, "alt", i), H & /*topProviders*/
|
|
3975
|
-
2 &&
|
|
3976
|
-
e[21].name + "") &&
|
|
3940
|
+
2 && l !== (l = /*provider*/
|
|
3941
|
+
e[21].name + "") && D(u, l), H & /*topProviders*/
|
|
3977
3942
|
2 && f !== (f = /*provider*/
|
|
3978
|
-
e[21].games.count + "") &&
|
|
3943
|
+
e[21].games.count + "") && D(g, f), H & /*$_*/
|
|
3979
3944
|
16 && p !== (p = /*$_*/
|
|
3980
|
-
e[4]("games") + "") &&
|
|
3945
|
+
e[4]("games") + "") && D(v, p);
|
|
3981
3946
|
},
|
|
3982
3947
|
d(O) {
|
|
3983
|
-
O &&
|
|
3948
|
+
O && L(t), d = !1, T();
|
|
3984
3949
|
}
|
|
3985
3950
|
};
|
|
3986
3951
|
}
|
|
3987
|
-
function
|
|
3988
|
-
let t, r, n, i, s, o,
|
|
3952
|
+
function pt(e) {
|
|
3953
|
+
let t, r, n, i, s, o, a, l = (
|
|
3989
3954
|
/*provider*/
|
|
3990
3955
|
e[21].name + ""
|
|
3991
|
-
),
|
|
3956
|
+
), u, h, c, f = (
|
|
3992
3957
|
/*provider*/
|
|
3993
3958
|
e[21].games.count + ""
|
|
3994
|
-
), g,
|
|
3959
|
+
), g, m, p = (
|
|
3995
3960
|
/*$_*/
|
|
3996
3961
|
e[4]("games") + ""
|
|
3997
|
-
), v,
|
|
3962
|
+
), v, d, T, A;
|
|
3998
3963
|
function O() {
|
|
3999
3964
|
return (
|
|
4000
3965
|
/*click_handler_1*/
|
|
@@ -4006,12 +3971,12 @@ function _t(e) {
|
|
|
4006
3971
|
}
|
|
4007
3972
|
return {
|
|
4008
3973
|
c() {
|
|
4009
|
-
t = B("div"), r = B("img"), s =
|
|
3974
|
+
t = B("div"), r = B("img"), s = U(), o = B("div"), a = B("p"), u = R(l), h = U(), c = B("p"), g = R(f), m = U(), v = R(p), d = U(), de(r.src, n = /*provider*/
|
|
4010
3975
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
4011
3976
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
4012
3977
|
},
|
|
4013
3978
|
m(H, I) {
|
|
4014
|
-
|
|
3979
|
+
M(H, t, I), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c, m), y(c, v), y(t, d), T || (A = bt(t, "click", O), T = !0);
|
|
4015
3980
|
},
|
|
4016
3981
|
p(H, I) {
|
|
4017
3982
|
e = H, I & /*otherProviders*/
|
|
@@ -4019,24 +3984,24 @@ function _t(e) {
|
|
|
4019
3984
|
e[21].logo) && S(r, "src", n), I & /*otherProviders*/
|
|
4020
3985
|
4 && i !== (i = /*provider*/
|
|
4021
3986
|
e[21].name) && S(r, "alt", i), I & /*otherProviders*/
|
|
4022
|
-
4 &&
|
|
4023
|
-
e[21].name + "") &&
|
|
3987
|
+
4 && l !== (l = /*provider*/
|
|
3988
|
+
e[21].name + "") && D(u, l), I & /*otherProviders*/
|
|
4024
3989
|
4 && f !== (f = /*provider*/
|
|
4025
|
-
e[21].games.count + "") &&
|
|
3990
|
+
e[21].games.count + "") && D(g, f), I & /*$_*/
|
|
4026
3991
|
16 && p !== (p = /*$_*/
|
|
4027
|
-
e[4]("games") + "") &&
|
|
3992
|
+
e[4]("games") + "") && D(v, p);
|
|
4028
3993
|
},
|
|
4029
3994
|
d(H) {
|
|
4030
|
-
H &&
|
|
3995
|
+
H && L(t), T = !1, A();
|
|
4031
3996
|
}
|
|
4032
3997
|
};
|
|
4033
3998
|
}
|
|
4034
|
-
function
|
|
3999
|
+
function ni(e) {
|
|
4035
4000
|
let t;
|
|
4036
4001
|
function r(s, o) {
|
|
4037
4002
|
return (
|
|
4038
4003
|
/*isLoading*/
|
|
4039
|
-
s[3] === !0 ?
|
|
4004
|
+
s[3] === !0 ? ri : ti
|
|
4040
4005
|
);
|
|
4041
4006
|
}
|
|
4042
4007
|
let n = r(e), i = n(e);
|
|
@@ -4045,108 +4010,108 @@ function mi(e) {
|
|
|
4045
4010
|
t = B("div"), i.c(), S(t, "class", "CasinoProviders");
|
|
4046
4011
|
},
|
|
4047
4012
|
m(s, o) {
|
|
4048
|
-
|
|
4013
|
+
M(s, t, o), i.m(t, null), e[14](t);
|
|
4049
4014
|
},
|
|
4050
4015
|
p(s, [o]) {
|
|
4051
4016
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4052
4017
|
},
|
|
4053
|
-
i:
|
|
4054
|
-
o:
|
|
4018
|
+
i: $,
|
|
4019
|
+
o: $,
|
|
4055
4020
|
d(s) {
|
|
4056
|
-
s &&
|
|
4021
|
+
s && L(t), i.d(), e[14](null);
|
|
4057
4022
|
}
|
|
4058
4023
|
};
|
|
4059
4024
|
}
|
|
4060
|
-
function
|
|
4025
|
+
function ii(e, t, r) {
|
|
4061
4026
|
let n;
|
|
4062
|
-
|
|
4063
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling:
|
|
4027
|
+
Vt(e, Yn, (b) => r(4, n = b));
|
|
4028
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, h = [], c = [], f = [], g = !1, m;
|
|
4064
4029
|
const p = () => {
|
|
4065
|
-
fetch(
|
|
4066
|
-
Object.keys(N).forEach((
|
|
4067
|
-
|
|
4030
|
+
fetch(u).then((N) => N.json()).then((N) => {
|
|
4031
|
+
Object.keys(N).forEach((C) => {
|
|
4032
|
+
ht(C, N[C]);
|
|
4068
4033
|
});
|
|
4069
4034
|
}).catch((N) => {
|
|
4070
4035
|
console.log(N);
|
|
4071
4036
|
});
|
|
4072
4037
|
};
|
|
4073
|
-
Object.keys(
|
|
4074
|
-
|
|
4038
|
+
Object.keys(Qe).forEach((b) => {
|
|
4039
|
+
ht(b, Qe[b]);
|
|
4075
4040
|
});
|
|
4076
4041
|
const v = () => {
|
|
4077
4042
|
r(3, g = !0);
|
|
4078
4043
|
const b = new URL(`${i}/v1/casino/vendors`);
|
|
4079
4044
|
b.searchParams.append("datasource", s), b.searchParams.append("language", o), b.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(b).then((N) => N.json()).then((N) => {
|
|
4080
|
-
r(3, g = !1),
|
|
4081
|
-
let
|
|
4082
|
-
|
|
4045
|
+
r(3, g = !1), h = N.items.map((G) => G), r(1, c = h.filter((G) => G.isTopVendor === !0)), r(2, f = h.filter((G) => G.isTopVendor === !1));
|
|
4046
|
+
let C = [];
|
|
4047
|
+
C = h.flatMap((G) => G.subVendors), f.push(...C.filter((G) => G.games.count > 0));
|
|
4083
4048
|
});
|
|
4084
|
-
},
|
|
4049
|
+
}, d = (b, N, C) => {
|
|
4085
4050
|
window.postMessage(
|
|
4086
4051
|
{
|
|
4087
4052
|
type: "OpenGameProvider",
|
|
4088
4053
|
providerId: b,
|
|
4089
4054
|
providerName: N,
|
|
4090
|
-
providerLogo:
|
|
4055
|
+
providerLogo: C
|
|
4091
4056
|
},
|
|
4092
4057
|
window.location.href
|
|
4093
4058
|
);
|
|
4094
4059
|
}, T = () => {
|
|
4095
|
-
|
|
4060
|
+
Kn(o);
|
|
4096
4061
|
}, A = () => {
|
|
4097
4062
|
let b = document.createElement("style");
|
|
4098
|
-
b.innerHTML =
|
|
4063
|
+
b.innerHTML = a, m.appendChild(b);
|
|
4099
4064
|
}, O = () => {
|
|
4100
|
-
let b = new URL(
|
|
4101
|
-
fetch(b.href).then((
|
|
4102
|
-
N.innerHTML =
|
|
4065
|
+
let b = new URL(l), N = document.createElement("style");
|
|
4066
|
+
fetch(b.href).then((C) => C.text()).then((C) => {
|
|
4067
|
+
N.innerHTML = C, setTimeout(
|
|
4103
4068
|
() => {
|
|
4104
|
-
|
|
4069
|
+
m.appendChild(N);
|
|
4105
4070
|
},
|
|
4106
4071
|
1
|
|
4107
4072
|
);
|
|
4108
4073
|
});
|
|
4109
|
-
}, H = (b) =>
|
|
4110
|
-
function
|
|
4111
|
-
|
|
4112
|
-
|
|
4074
|
+
}, H = (b) => d(b.id, b.name, b.logo), I = (b) => d(b.id, b.name, b.logo);
|
|
4075
|
+
function ae(b) {
|
|
4076
|
+
Oe[b ? "unshift" : "push"](() => {
|
|
4077
|
+
m = b, r(0, m);
|
|
4113
4078
|
});
|
|
4114
4079
|
}
|
|
4115
4080
|
return e.$$set = (b) => {
|
|
4116
|
-
"endpoint" in b && r(6, i = b.endpoint), "datasource" in b && r(7, s = b.datasource), "lang" in b && r(8, o = b.lang), "clientstyling" in b && r(9,
|
|
4081
|
+
"endpoint" in b && r(6, i = b.endpoint), "datasource" in b && r(7, s = b.datasource), "lang" in b && r(8, o = b.lang), "clientstyling" in b && r(9, a = b.clientstyling), "clientstylingurl" in b && r(10, l = b.clientstylingurl), "translationurl" in b && r(11, u = b.translationurl);
|
|
4117
4082
|
}, e.$$.update = () => {
|
|
4118
4083
|
e.$$.dirty & /*endpoint, lang, datasource*/
|
|
4119
4084
|
448 && i && o && s && v(), e.$$.dirty & /*lang*/
|
|
4120
4085
|
256 && o && T(), e.$$.dirty & /*translationurl*/
|
|
4121
|
-
2048 &&
|
|
4122
|
-
513 &&
|
|
4123
|
-
1025 &&
|
|
4086
|
+
2048 && u && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4087
|
+
513 && a && m && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4088
|
+
1025 && l && m && O();
|
|
4124
4089
|
}, [
|
|
4125
|
-
|
|
4090
|
+
m,
|
|
4126
4091
|
c,
|
|
4127
4092
|
f,
|
|
4128
4093
|
g,
|
|
4129
4094
|
n,
|
|
4130
|
-
|
|
4095
|
+
d,
|
|
4131
4096
|
i,
|
|
4132
4097
|
s,
|
|
4133
4098
|
o,
|
|
4134
|
-
u,
|
|
4135
|
-
h,
|
|
4136
4099
|
a,
|
|
4100
|
+
l,
|
|
4101
|
+
u,
|
|
4137
4102
|
H,
|
|
4138
4103
|
I,
|
|
4139
|
-
|
|
4104
|
+
ae
|
|
4140
4105
|
];
|
|
4141
4106
|
}
|
|
4142
|
-
class
|
|
4107
|
+
class si extends ur {
|
|
4143
4108
|
constructor(t) {
|
|
4144
|
-
super(),
|
|
4109
|
+
super(), or(
|
|
4145
4110
|
this,
|
|
4146
4111
|
t,
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4112
|
+
ii,
|
|
4113
|
+
ni,
|
|
4114
|
+
mt,
|
|
4150
4115
|
{
|
|
4151
4116
|
endpoint: 6,
|
|
4152
4117
|
datasource: 7,
|
|
@@ -4155,47 +4120,47 @@ class gi extends _r {
|
|
|
4155
4120
|
clientstylingurl: 10,
|
|
4156
4121
|
translationurl: 11
|
|
4157
4122
|
},
|
|
4158
|
-
|
|
4123
|
+
ei
|
|
4159
4124
|
);
|
|
4160
4125
|
}
|
|
4161
4126
|
get endpoint() {
|
|
4162
4127
|
return this.$$.ctx[6];
|
|
4163
4128
|
}
|
|
4164
4129
|
set endpoint(t) {
|
|
4165
|
-
this.$$set({ endpoint: t }),
|
|
4130
|
+
this.$$set({ endpoint: t }), F();
|
|
4166
4131
|
}
|
|
4167
4132
|
get datasource() {
|
|
4168
4133
|
return this.$$.ctx[7];
|
|
4169
4134
|
}
|
|
4170
4135
|
set datasource(t) {
|
|
4171
|
-
this.$$set({ datasource: t }),
|
|
4136
|
+
this.$$set({ datasource: t }), F();
|
|
4172
4137
|
}
|
|
4173
4138
|
get lang() {
|
|
4174
4139
|
return this.$$.ctx[8];
|
|
4175
4140
|
}
|
|
4176
4141
|
set lang(t) {
|
|
4177
|
-
this.$$set({ lang: t }),
|
|
4142
|
+
this.$$set({ lang: t }), F();
|
|
4178
4143
|
}
|
|
4179
4144
|
get clientstyling() {
|
|
4180
4145
|
return this.$$.ctx[9];
|
|
4181
4146
|
}
|
|
4182
4147
|
set clientstyling(t) {
|
|
4183
|
-
this.$$set({ clientstyling: t }),
|
|
4148
|
+
this.$$set({ clientstyling: t }), F();
|
|
4184
4149
|
}
|
|
4185
4150
|
get clientstylingurl() {
|
|
4186
4151
|
return this.$$.ctx[10];
|
|
4187
4152
|
}
|
|
4188
4153
|
set clientstylingurl(t) {
|
|
4189
|
-
this.$$set({ clientstylingurl: t }),
|
|
4154
|
+
this.$$set({ clientstylingurl: t }), F();
|
|
4190
4155
|
}
|
|
4191
4156
|
get translationurl() {
|
|
4192
4157
|
return this.$$.ctx[11];
|
|
4193
4158
|
}
|
|
4194
4159
|
set translationurl(t) {
|
|
4195
|
-
this.$$set({ translationurl: t }),
|
|
4160
|
+
this.$$set({ translationurl: t }), F();
|
|
4196
4161
|
}
|
|
4197
4162
|
}
|
|
4198
|
-
|
|
4163
|
+
ar(si, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4199
4164
|
export {
|
|
4200
|
-
|
|
4165
|
+
si as C
|
|
4201
4166
|
};
|