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