@everymatrix/casino-sort 1.77.24 → 1.77.26
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/{CasinoSort-CwglHimY.js → CasinoSort-CFnsk9iS.js} +636 -640
- package/components/CasinoSort-CGiRA6Nz.cjs +16 -0
- package/components/{CasinoSort-D1fW_mAs.js → CasinoSort-Cu0Uh0ID.js} +679 -683
- package/es2015/casino-sort.cjs +1 -1
- package/es2015/casino-sort.js +1 -1
- package/esnext/casino-sort.js +1 -1
- package/package.json +1 -1
- package/components/CasinoSort-DOsS6cM-.cjs +0 -3
|
@@ -6,10 +6,10 @@ function vt(e) {
|
|
|
6
6
|
function Ke() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function he(e) {
|
|
10
10
|
e.forEach(vt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Xe(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function Et(e, t) {
|
|
@@ -30,13 +30,13 @@ function _t(e, ...t) {
|
|
|
30
30
|
function Qt(e, t, r) {
|
|
31
31
|
e.$$.on_destroy.push(_t(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function v(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
36
|
function qt(e, t, r) {
|
|
37
37
|
const n = Yt(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
39
|
+
const i = A("style");
|
|
40
40
|
i.id = t, i.textContent = r, Kt(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -51,38 +51,38 @@ function Yt(e) {
|
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
53
|
function Kt(e, t) {
|
|
54
|
-
return
|
|
54
|
+
return v(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function xe(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ce(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
66
|
function er(e, t) {
|
|
67
67
|
for (let r = 0; r < e.length; r += 1)
|
|
68
68
|
e[r] && e[r].d(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function A(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function j(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Le(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function k() {
|
|
80
|
+
return Le(" ");
|
|
81
81
|
}
|
|
82
82
|
function St(e, t, r, n) {
|
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function m(e, t, r) {
|
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
87
87
|
}
|
|
88
88
|
function tr(e) {
|
|
@@ -101,91 +101,91 @@ function rr(e) {
|
|
|
101
101
|
}
|
|
102
102
|
), t;
|
|
103
103
|
}
|
|
104
|
-
let
|
|
105
|
-
function
|
|
106
|
-
|
|
104
|
+
let ae;
|
|
105
|
+
function se(e) {
|
|
106
|
+
ae = e;
|
|
107
107
|
}
|
|
108
108
|
function nr() {
|
|
109
|
-
if (!
|
|
109
|
+
if (!ae)
|
|
110
110
|
throw new Error("Function called outside component initialization");
|
|
111
|
-
return
|
|
111
|
+
return ae;
|
|
112
112
|
}
|
|
113
113
|
function ir(e) {
|
|
114
114
|
nr().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const Q = [],
|
|
116
|
+
const Q = [], Ce = [];
|
|
117
117
|
let q = [];
|
|
118
118
|
const tt = [], or = /* @__PURE__ */ Promise.resolve();
|
|
119
|
-
let
|
|
119
|
+
let Me = !1;
|
|
120
120
|
function sr() {
|
|
121
|
-
|
|
121
|
+
Me || (Me = !0, or.then(F));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Re(e) {
|
|
124
124
|
q.push(e);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
127
127
|
let W = 0;
|
|
128
|
-
function
|
|
128
|
+
function F() {
|
|
129
129
|
if (W !== 0)
|
|
130
130
|
return;
|
|
131
|
-
const e =
|
|
131
|
+
const e = ae;
|
|
132
132
|
do {
|
|
133
133
|
try {
|
|
134
134
|
for (; W < Q.length; ) {
|
|
135
135
|
const t = Q[W];
|
|
136
|
-
W++,
|
|
136
|
+
W++, se(t), ar(t.$$);
|
|
137
137
|
}
|
|
138
138
|
} catch (t) {
|
|
139
139
|
throw Q.length = 0, W = 0, t;
|
|
140
140
|
}
|
|
141
|
-
for (
|
|
142
|
-
|
|
141
|
+
for (se(null), Q.length = 0, W = 0; Ce.length; )
|
|
142
|
+
Ce.pop()();
|
|
143
143
|
for (let t = 0; t < q.length; t += 1) {
|
|
144
144
|
const r = q[t];
|
|
145
|
-
|
|
145
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
146
146
|
}
|
|
147
147
|
q.length = 0;
|
|
148
148
|
} while (Q.length);
|
|
149
149
|
for (; tt.length; )
|
|
150
150
|
tt.pop()();
|
|
151
|
-
|
|
151
|
+
Me = !1, Ae.clear(), se(e);
|
|
152
152
|
}
|
|
153
153
|
function ar(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
|
-
e.update(),
|
|
155
|
+
e.update(), he(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
157
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function lr(e) {
|
|
161
161
|
const t = [], r = [];
|
|
162
162
|
q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const ur = /* @__PURE__ */ new Set();
|
|
165
165
|
function hr(e, t) {
|
|
166
|
-
e && e.i && (
|
|
166
|
+
e && e.i && (ur.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
168
|
function rt(e) {
|
|
169
169
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
170
170
|
}
|
|
171
171
|
function cr(e, t, r) {
|
|
172
172
|
const { fragment: n, after_update: i } = e.$$;
|
|
173
|
-
n && n.m(t, r),
|
|
174
|
-
const o = e.$$.on_mount.map(vt).filter(
|
|
175
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
176
|
-
}), i.forEach(
|
|
173
|
+
n && n.m(t, r), Re(() => {
|
|
174
|
+
const o = e.$$.on_mount.map(vt).filter(Xe);
|
|
175
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : he(o), e.$$.on_mount = [];
|
|
176
|
+
}), i.forEach(Re);
|
|
177
177
|
}
|
|
178
178
|
function fr(e, t) {
|
|
179
179
|
const r = e.$$;
|
|
180
|
-
r.fragment !== null && (
|
|
180
|
+
r.fragment !== null && (lr(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function mr(e, t) {
|
|
183
183
|
e.$$.dirty[0] === -1 && (Q.push(e), sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
const h =
|
|
187
|
-
|
|
188
|
-
const
|
|
185
|
+
function pr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
186
|
+
const h = ae;
|
|
187
|
+
se(e);
|
|
188
|
+
const l = e.$$ = {
|
|
189
189
|
fragment: null,
|
|
190
190
|
ctx: [],
|
|
191
191
|
// state
|
|
@@ -206,20 +206,20 @@ function mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
206
206
|
skip_bound: !1,
|
|
207
207
|
root: t.target || h.$$.root
|
|
208
208
|
};
|
|
209
|
-
s && s(
|
|
210
|
-
let
|
|
211
|
-
if (
|
|
212
|
-
const
|
|
213
|
-
return
|
|
214
|
-
}) : [],
|
|
209
|
+
s && s(l.root);
|
|
210
|
+
let u = !1;
|
|
211
|
+
if (l.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
212
|
+
const g = p.length ? p[0] : f;
|
|
213
|
+
return l.ctx && i(l.ctx[c], l.ctx[c] = g) && (!l.skip_bound && l.bound[c] && l.bound[c](g), u && mr(e, c)), f;
|
|
214
|
+
}) : [], l.update(), u = !0, he(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
215
215
|
if (t.hydrate) {
|
|
216
216
|
const c = tr(t.target);
|
|
217
|
-
|
|
217
|
+
l.fragment && l.fragment.l(c), c.forEach(ce);
|
|
218
218
|
} else
|
|
219
|
-
|
|
220
|
-
t.intro && hr(e.$$.fragment), cr(e, t.target, t.anchor),
|
|
219
|
+
l.fragment && l.fragment.c();
|
|
220
|
+
t.intro && hr(e.$$.fragment), cr(e, t.target, t.anchor), F();
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
se(h);
|
|
223
223
|
}
|
|
224
224
|
let wt;
|
|
225
225
|
typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
@@ -264,17 +264,17 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
264
264
|
let o;
|
|
265
265
|
return {
|
|
266
266
|
c: function() {
|
|
267
|
-
o =
|
|
267
|
+
o = A("slot"), i !== "default" && m(o, "name", i);
|
|
268
268
|
},
|
|
269
269
|
/**
|
|
270
270
|
* @param {HTMLElement} target
|
|
271
271
|
* @param {HTMLElement} [anchor]
|
|
272
272
|
*/
|
|
273
|
-
m: function(h,
|
|
274
|
-
|
|
273
|
+
m: function(h, l) {
|
|
274
|
+
xe(h, o, l);
|
|
275
275
|
},
|
|
276
276
|
d: function(h) {
|
|
277
|
-
h &&
|
|
277
|
+
h && ce(o);
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
};
|
|
@@ -286,7 +286,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
286
286
|
i in r && (t[i] = [e(i)]);
|
|
287
287
|
for (const i of this.attributes) {
|
|
288
288
|
const o = this.$$g_p(i.name);
|
|
289
|
-
o in this.$$d || (this.$$d[o] =
|
|
289
|
+
o in this.$$d || (this.$$d[o] = pe(o, i.value, this.$$p_d, "toProp"));
|
|
290
290
|
}
|
|
291
291
|
for (const i in this.$$p_d)
|
|
292
292
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -304,7 +304,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
304
304
|
this.$$r = !0;
|
|
305
305
|
for (const i in this.$$p_d)
|
|
306
306
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
307
|
-
const o =
|
|
307
|
+
const o = pe(
|
|
308
308
|
i,
|
|
309
309
|
this.$$d[i],
|
|
310
310
|
this.$$p_d,
|
|
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
326
326
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
327
327
|
// and setting attributes through setAttribute etc, this is helpful
|
|
328
328
|
attributeChangedCallback(e, t, r) {
|
|
329
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
329
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
330
330
|
}
|
|
331
331
|
disconnectedCallback() {
|
|
332
332
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
339
339
|
) || e;
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
|
-
function
|
|
342
|
+
function pe(e, t, r, n) {
|
|
343
343
|
const i = r[e]?.type;
|
|
344
344
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
345
345
|
return t;
|
|
@@ -385,7 +385,7 @@ function dr(e, t, r, n, i, o) {
|
|
|
385
385
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
386
386
|
},
|
|
387
387
|
set(h) {
|
|
388
|
-
h =
|
|
388
|
+
h = pe(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
}), n.forEach((a) => {
|
|
@@ -425,7 +425,7 @@ class br {
|
|
|
425
425
|
* @returns {() => void}
|
|
426
426
|
*/
|
|
427
427
|
$on(t, r) {
|
|
428
|
-
if (!
|
|
428
|
+
if (!Xe(r))
|
|
429
429
|
return $;
|
|
430
430
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
431
431
|
return n.push(r), () => {
|
|
@@ -469,20 +469,20 @@ function vr(e, t, r) {
|
|
|
469
469
|
const J = [];
|
|
470
470
|
function Er(e, t) {
|
|
471
471
|
return {
|
|
472
|
-
subscribe:
|
|
472
|
+
subscribe: ve(e, t).subscribe
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function ve(e, t = $) {
|
|
476
476
|
let r;
|
|
477
477
|
const n = /* @__PURE__ */ new Set();
|
|
478
478
|
function i(a) {
|
|
479
479
|
if (Et(e, a) && (e = a, r)) {
|
|
480
480
|
const h = !J.length;
|
|
481
|
-
for (const
|
|
482
|
-
|
|
481
|
+
for (const l of n)
|
|
482
|
+
l[1](), J.push(l, e);
|
|
483
483
|
if (h) {
|
|
484
|
-
for (let
|
|
485
|
-
J[
|
|
484
|
+
for (let l = 0; l < J.length; l += 2)
|
|
485
|
+
J[l][0](J[l + 1]);
|
|
486
486
|
J.length = 0;
|
|
487
487
|
}
|
|
488
488
|
}
|
|
@@ -491,9 +491,9 @@ function _e(e, t = $) {
|
|
|
491
491
|
i(a(e));
|
|
492
492
|
}
|
|
493
493
|
function s(a, h = $) {
|
|
494
|
-
const
|
|
495
|
-
return n.add(
|
|
496
|
-
n.delete(
|
|
494
|
+
const l = [a, h];
|
|
495
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || $), a(e), () => {
|
|
496
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
499
|
return { set: i, update: o, subscribe: s };
|
|
@@ -505,27 +505,27 @@ function re(e, t, r) {
|
|
|
505
505
|
const o = t.length < 2;
|
|
506
506
|
return Er(r, (s, a) => {
|
|
507
507
|
let h = !1;
|
|
508
|
-
const
|
|
509
|
-
let
|
|
508
|
+
const l = [];
|
|
509
|
+
let u = 0, c = $;
|
|
510
510
|
const f = () => {
|
|
511
|
-
if (
|
|
511
|
+
if (u)
|
|
512
512
|
return;
|
|
513
513
|
c();
|
|
514
|
-
const
|
|
515
|
-
o ? s(
|
|
516
|
-
},
|
|
517
|
-
(
|
|
518
|
-
|
|
519
|
-
(
|
|
520
|
-
|
|
514
|
+
const g = t(n ? l[0] : l, s, a);
|
|
515
|
+
o ? s(g) : c = Xe(g) ? g : $;
|
|
516
|
+
}, p = i.map(
|
|
517
|
+
(g, E) => _t(
|
|
518
|
+
g,
|
|
519
|
+
(N) => {
|
|
520
|
+
l[E] = N, u &= ~(1 << E), h && f();
|
|
521
521
|
},
|
|
522
522
|
() => {
|
|
523
|
-
|
|
523
|
+
u |= 1 << E;
|
|
524
524
|
}
|
|
525
525
|
)
|
|
526
526
|
);
|
|
527
527
|
return h = !0, f(), function() {
|
|
528
|
-
|
|
528
|
+
he(p), c(), h = !1;
|
|
529
529
|
};
|
|
530
530
|
});
|
|
531
531
|
}
|
|
@@ -552,12 +552,12 @@ function Nr(e) {
|
|
|
552
552
|
function le(e, t) {
|
|
553
553
|
return t.clone !== !1 && t.isMergeableObject(e) ? Y(Nr(e), e, t) : e;
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function Pr(e, t, r) {
|
|
556
556
|
return e.concat(t).map(function(n) {
|
|
557
557
|
return le(n, r);
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Or(e, t) {
|
|
561
561
|
if (!t.customMerge)
|
|
562
562
|
return Y;
|
|
563
563
|
var r = t.customMerge(e);
|
|
@@ -578,21 +578,21 @@ function Ht(e, t) {
|
|
|
578
578
|
return !1;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Lr(e, t) {
|
|
582
582
|
return Ht(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function Cr(e, t, r) {
|
|
585
585
|
var n = {};
|
|
586
586
|
return r.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
587
587
|
n[i] = le(e[i], r);
|
|
588
588
|
}), nt(t).forEach(function(i) {
|
|
589
|
-
|
|
589
|
+
Lr(e, i) || (Ht(e, i) && r.isMergeableObject(t[i]) ? n[i] = Or(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
|
|
590
590
|
}), n;
|
|
591
591
|
}
|
|
592
592
|
function Y(e, t, r) {
|
|
593
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
593
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Pr, r.isMergeableObject = r.isMergeableObject || Sr, r.cloneUnlessOtherwiseSpecified = le;
|
|
594
594
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
595
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
595
|
+
return o ? n ? r.arrayMerge(e, t, r) : Cr(e, t, r) : le(t, r);
|
|
596
596
|
}
|
|
597
597
|
Y.all = function(t, r) {
|
|
598
598
|
if (!Array.isArray(t))
|
|
@@ -603,32 +603,46 @@ Y.all = function(t, r) {
|
|
|
603
603
|
};
|
|
604
604
|
var Mr = Y, Rr = Mr;
|
|
605
605
|
const $r = /* @__PURE__ */ _r(Rr);
|
|
606
|
-
|
|
607
|
-
|
|
606
|
+
/*! *****************************************************************************
|
|
607
|
+
Copyright (c) Microsoft Corporation.
|
|
608
|
+
|
|
609
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
610
|
+
purpose with or without fee is hereby granted.
|
|
611
|
+
|
|
612
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
613
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
614
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
615
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
616
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
617
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
618
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
619
|
+
***************************************************************************** */
|
|
620
|
+
var $e = function(e, t) {
|
|
621
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
608
622
|
r.__proto__ = n;
|
|
609
623
|
} || function(r, n) {
|
|
610
624
|
for (var i in n)
|
|
611
625
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
612
|
-
},
|
|
626
|
+
}, $e(e, t);
|
|
613
627
|
};
|
|
614
|
-
function
|
|
628
|
+
function Ee(e, t) {
|
|
615
629
|
if (typeof t != "function" && t !== null)
|
|
616
630
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
617
|
-
|
|
631
|
+
$e(e, t);
|
|
618
632
|
function r() {
|
|
619
633
|
this.constructor = e;
|
|
620
634
|
}
|
|
621
635
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
622
636
|
}
|
|
623
|
-
var
|
|
624
|
-
return
|
|
637
|
+
var x = function() {
|
|
638
|
+
return x = Object.assign || function(t) {
|
|
625
639
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
626
640
|
r = arguments[n];
|
|
627
641
|
for (var o in r)
|
|
628
642
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
629
643
|
}
|
|
630
644
|
return t;
|
|
631
|
-
},
|
|
645
|
+
}, x.apply(this, arguments);
|
|
632
646
|
};
|
|
633
647
|
function Dr(e, t) {
|
|
634
648
|
var r = {};
|
|
@@ -639,14 +653,14 @@ function Dr(e, t) {
|
|
|
639
653
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
640
654
|
return r;
|
|
641
655
|
}
|
|
642
|
-
function
|
|
643
|
-
if (
|
|
656
|
+
function Te(e, t, r) {
|
|
657
|
+
if (arguments.length === 2)
|
|
644
658
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
645
659
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
646
|
-
return e.concat(o ||
|
|
660
|
+
return e.concat(o || t);
|
|
647
661
|
}
|
|
648
|
-
function
|
|
649
|
-
var r = t && t.cache ? t.cache :
|
|
662
|
+
function Be(e, t) {
|
|
663
|
+
var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
|
|
650
664
|
return i(e, {
|
|
651
665
|
cache: r,
|
|
652
666
|
serializer: n
|
|
@@ -655,103 +669,95 @@ function Oe(e, t) {
|
|
|
655
669
|
function Ur(e) {
|
|
656
670
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
657
671
|
}
|
|
658
|
-
function
|
|
672
|
+
function At(e, t, r, n) {
|
|
659
673
|
var i = Ur(n) ? n : r(n), o = t.get(i);
|
|
660
674
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
661
675
|
}
|
|
662
|
-
function
|
|
676
|
+
function Tt(e, t, r) {
|
|
663
677
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
664
678
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
665
679
|
}
|
|
666
|
-
function
|
|
680
|
+
function Ze(e, t, r, n, i) {
|
|
667
681
|
return r.bind(t, e, n, i);
|
|
668
682
|
}
|
|
683
|
+
function Fr(e, t) {
|
|
684
|
+
var r = e.length === 1 ? At : Tt;
|
|
685
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
686
|
+
}
|
|
669
687
|
function Gr(e, t) {
|
|
670
|
-
|
|
671
|
-
return Tt(e, this, r, t.cache.create(), t.serializer);
|
|
688
|
+
return Ze(e, this, Tt, t.cache.create(), t.serializer);
|
|
672
689
|
}
|
|
673
690
|
function jr(e, t) {
|
|
674
|
-
return
|
|
691
|
+
return Ze(e, this, At, t.cache.create(), t.serializer);
|
|
675
692
|
}
|
|
676
693
|
var kr = function() {
|
|
677
694
|
return JSON.stringify(arguments);
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}()
|
|
690
|
-
), zr = {
|
|
695
|
+
};
|
|
696
|
+
function We() {
|
|
697
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
698
|
+
}
|
|
699
|
+
We.prototype.get = function(e) {
|
|
700
|
+
return this.cache[e];
|
|
701
|
+
};
|
|
702
|
+
We.prototype.set = function(e, t) {
|
|
703
|
+
this.cache[e] = t;
|
|
704
|
+
};
|
|
705
|
+
var Vr = {
|
|
691
706
|
create: function() {
|
|
692
|
-
return new
|
|
707
|
+
return new We();
|
|
693
708
|
}
|
|
694
|
-
},
|
|
695
|
-
variadic:
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
699
|
-
r = arguments[n];
|
|
700
|
-
for (var o in r)
|
|
701
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
702
|
-
}
|
|
703
|
-
return t;
|
|
704
|
-
}, ye.apply(this, arguments);
|
|
705
|
-
};
|
|
706
|
-
var g;
|
|
709
|
+
}, Ne = {
|
|
710
|
+
variadic: Gr,
|
|
711
|
+
monadic: jr
|
|
712
|
+
}, b;
|
|
707
713
|
(function(e) {
|
|
708
714
|
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";
|
|
709
|
-
})(
|
|
710
|
-
var
|
|
715
|
+
})(b || (b = {}));
|
|
716
|
+
var _;
|
|
711
717
|
(function(e) {
|
|
712
718
|
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";
|
|
713
|
-
})(
|
|
719
|
+
})(_ || (_ = {}));
|
|
714
720
|
var K;
|
|
715
721
|
(function(e) {
|
|
716
722
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
717
723
|
})(K || (K = {}));
|
|
718
724
|
function it(e) {
|
|
719
|
-
return e.type ===
|
|
725
|
+
return e.type === _.literal;
|
|
720
726
|
}
|
|
721
|
-
function
|
|
722
|
-
return e.type ===
|
|
727
|
+
function zr(e) {
|
|
728
|
+
return e.type === _.argument;
|
|
723
729
|
}
|
|
724
730
|
function Bt(e) {
|
|
725
|
-
return e.type ===
|
|
731
|
+
return e.type === _.number;
|
|
726
732
|
}
|
|
727
733
|
function Nt(e) {
|
|
728
|
-
return e.type ===
|
|
729
|
-
}
|
|
730
|
-
function Ot(e) {
|
|
731
|
-
return e.type === v.time;
|
|
734
|
+
return e.type === _.date;
|
|
732
735
|
}
|
|
733
736
|
function Pt(e) {
|
|
734
|
-
return e.type ===
|
|
737
|
+
return e.type === _.time;
|
|
735
738
|
}
|
|
736
|
-
function
|
|
737
|
-
return e.type ===
|
|
739
|
+
function Ot(e) {
|
|
740
|
+
return e.type === _.select;
|
|
738
741
|
}
|
|
739
|
-
function
|
|
740
|
-
return e.type ===
|
|
742
|
+
function It(e) {
|
|
743
|
+
return e.type === _.plural;
|
|
741
744
|
}
|
|
742
|
-
function
|
|
743
|
-
return e.type ===
|
|
745
|
+
function Xr(e) {
|
|
746
|
+
return e.type === _.pound;
|
|
744
747
|
}
|
|
745
748
|
function Lt(e) {
|
|
749
|
+
return e.type === _.tag;
|
|
750
|
+
}
|
|
751
|
+
function Ct(e) {
|
|
746
752
|
return !!(e && typeof e == "object" && e.type === K.number);
|
|
747
753
|
}
|
|
748
|
-
function
|
|
754
|
+
function De(e) {
|
|
749
755
|
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
750
756
|
}
|
|
751
|
-
var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
752
|
-
function
|
|
757
|
+
var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
758
|
+
function Wr(e) {
|
|
753
759
|
var t = {};
|
|
754
|
-
return e.replace(
|
|
760
|
+
return e.replace(Zr, function(r) {
|
|
755
761
|
var n = r.length;
|
|
756
762
|
switch (r[0]) {
|
|
757
763
|
case "G":
|
|
@@ -840,28 +846,18 @@ function Jr(e) {
|
|
|
840
846
|
return "";
|
|
841
847
|
}), t;
|
|
842
848
|
}
|
|
843
|
-
var
|
|
844
|
-
|
|
845
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
846
|
-
r = arguments[n];
|
|
847
|
-
for (var o in r)
|
|
848
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
849
|
-
}
|
|
850
|
-
return t;
|
|
851
|
-
}, _.apply(this, arguments);
|
|
852
|
-
};
|
|
853
|
-
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
854
|
-
function qr(e) {
|
|
849
|
+
var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
850
|
+
function Qr(e) {
|
|
855
851
|
if (e.length === 0)
|
|
856
852
|
throw new Error("Number skeleton cannot be empty");
|
|
857
|
-
for (var t = e.split(
|
|
853
|
+
for (var t = e.split(Jr).filter(function(f) {
|
|
858
854
|
return f.length > 0;
|
|
859
855
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
860
856
|
var o = i[n], s = o.split("/");
|
|
861
857
|
if (s.length === 0)
|
|
862
858
|
throw new Error("Invalid number skeleton");
|
|
863
|
-
for (var a = s[0], h = s.slice(1),
|
|
864
|
-
var c = l
|
|
859
|
+
for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
|
|
860
|
+
var c = u[l];
|
|
865
861
|
if (c.length === 0)
|
|
866
862
|
throw new Error("Invalid number skeleton");
|
|
867
863
|
}
|
|
@@ -869,10 +865,10 @@ function qr(e) {
|
|
|
869
865
|
}
|
|
870
866
|
return r;
|
|
871
867
|
}
|
|
872
|
-
function
|
|
868
|
+
function qr(e) {
|
|
873
869
|
return e.replace(/^(.*?)-/, "");
|
|
874
870
|
}
|
|
875
|
-
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
871
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, $t = /^(0+)$/;
|
|
876
872
|
function st(e) {
|
|
877
873
|
var t = {};
|
|
878
874
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
@@ -919,7 +915,7 @@ function Dt(e) {
|
|
|
919
915
|
};
|
|
920
916
|
}
|
|
921
917
|
}
|
|
922
|
-
function
|
|
918
|
+
function Kr(e) {
|
|
923
919
|
var t;
|
|
924
920
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
925
921
|
notation: "engineering"
|
|
@@ -937,7 +933,7 @@ function at(e) {
|
|
|
937
933
|
var t = {}, r = Dt(e);
|
|
938
934
|
return r || t;
|
|
939
935
|
}
|
|
940
|
-
function
|
|
936
|
+
function en(e) {
|
|
941
937
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
942
938
|
var i = n[r];
|
|
943
939
|
switch (i.stem) {
|
|
@@ -961,7 +957,7 @@ function tn(e) {
|
|
|
961
957
|
continue;
|
|
962
958
|
case "measure-unit":
|
|
963
959
|
case "unit":
|
|
964
|
-
t.style = "unit", t.unit =
|
|
960
|
+
t.style = "unit", t.unit = qr(i.options[0]);
|
|
965
961
|
continue;
|
|
966
962
|
case "compact-short":
|
|
967
963
|
case "K":
|
|
@@ -972,13 +968,13 @@ function tn(e) {
|
|
|
972
968
|
t.notation = "compact", t.compactDisplay = "long";
|
|
973
969
|
continue;
|
|
974
970
|
case "scientific":
|
|
975
|
-
t =
|
|
976
|
-
return
|
|
971
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
972
|
+
return x(x({}, h), at(l));
|
|
977
973
|
}, {}));
|
|
978
974
|
continue;
|
|
979
975
|
case "engineering":
|
|
980
|
-
t =
|
|
981
|
-
return
|
|
976
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
977
|
+
return x(x({}, h), at(l));
|
|
982
978
|
}, {}));
|
|
983
979
|
continue;
|
|
984
980
|
case "notation-simple":
|
|
@@ -1023,13 +1019,13 @@ function tn(e) {
|
|
|
1023
1019
|
case "integer-width":
|
|
1024
1020
|
if (i.options.length > 1)
|
|
1025
1021
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1026
|
-
i.options[0].replace(
|
|
1027
|
-
if (
|
|
1028
|
-
t.minimumIntegerDigits =
|
|
1022
|
+
i.options[0].replace(Yr, function(h, l, u, c, f, p) {
|
|
1023
|
+
if (l)
|
|
1024
|
+
t.minimumIntegerDigits = u.length;
|
|
1029
1025
|
else {
|
|
1030
1026
|
if (c && f)
|
|
1031
1027
|
throw new Error("We currently do not support maximum integer digits");
|
|
1032
|
-
if (
|
|
1028
|
+
if (p)
|
|
1033
1029
|
throw new Error("We currently do not support exact integer digits");
|
|
1034
1030
|
}
|
|
1035
1031
|
return "";
|
|
@@ -1043,21 +1039,21 @@ function tn(e) {
|
|
|
1043
1039
|
if (ot.test(i.stem)) {
|
|
1044
1040
|
if (i.options.length > 1)
|
|
1045
1041
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1046
|
-
i.stem.replace(ot, function(h,
|
|
1047
|
-
return
|
|
1042
|
+
i.stem.replace(ot, function(h, l, u, c, f, p) {
|
|
1043
|
+
return u === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1048
1044
|
});
|
|
1049
1045
|
var o = i.options[0];
|
|
1050
|
-
o === "w" ? t =
|
|
1046
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), st(o)));
|
|
1051
1047
|
continue;
|
|
1052
1048
|
}
|
|
1053
1049
|
if (Rt.test(i.stem)) {
|
|
1054
|
-
t =
|
|
1050
|
+
t = x(x({}, t), st(i.stem));
|
|
1055
1051
|
continue;
|
|
1056
1052
|
}
|
|
1057
1053
|
var s = Dt(i.stem);
|
|
1058
|
-
s && (t =
|
|
1059
|
-
var a =
|
|
1060
|
-
a && (t =
|
|
1054
|
+
s && (t = x(x({}, t), s));
|
|
1055
|
+
var a = Kr(i.stem);
|
|
1056
|
+
a && (t = x(x({}, t), a));
|
|
1061
1057
|
}
|
|
1062
1058
|
return t;
|
|
1063
1059
|
}
|
|
@@ -2476,23 +2472,23 @@ var me = {
|
|
|
2476
2472
|
"h"
|
|
2477
2473
|
]
|
|
2478
2474
|
};
|
|
2479
|
-
function
|
|
2475
|
+
function tn(e, t) {
|
|
2480
2476
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2481
2477
|
var i = e.charAt(n);
|
|
2482
2478
|
if (i === "j") {
|
|
2483
2479
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2484
2480
|
o++, n++;
|
|
2485
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a",
|
|
2486
|
-
for ((
|
|
2481
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = rn(t);
|
|
2482
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2487
2483
|
r += h;
|
|
2488
2484
|
for (; s-- > 0; )
|
|
2489
|
-
r =
|
|
2485
|
+
r = l + r;
|
|
2490
2486
|
} else
|
|
2491
2487
|
i === "J" ? r += "H" : r += i;
|
|
2492
2488
|
}
|
|
2493
2489
|
return r;
|
|
2494
2490
|
}
|
|
2495
|
-
function
|
|
2491
|
+
function rn(e) {
|
|
2496
2492
|
var t = e.hourCycle;
|
|
2497
2493
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2498
2494
|
e.hourCycles && // @ts-ignore
|
|
@@ -2514,20 +2510,20 @@ function nn(e) {
|
|
|
2514
2510
|
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
2515
2511
|
return i[0];
|
|
2516
2512
|
}
|
|
2517
|
-
var
|
|
2513
|
+
var Pe, nn = new RegExp("^".concat(Mt.source, "*")), on = new RegExp("".concat(Mt.source, "*$"));
|
|
2518
2514
|
function y(e, t) {
|
|
2519
2515
|
return { start: e, end: t };
|
|
2520
2516
|
}
|
|
2521
|
-
var
|
|
2517
|
+
var sn = !!String.prototype.startsWith && "_a".startsWith("a", 1), an = !!String.fromCodePoint, ln = !!Object.fromEntries, un = !!String.prototype.codePointAt, hn = !!String.prototype.trimStart, cn = !!String.prototype.trimEnd, fn = !!Number.isSafeInteger, mn = fn ? Number.isSafeInteger : function(e) {
|
|
2522
2518
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2523
|
-
},
|
|
2519
|
+
}, Ue = !0;
|
|
2524
2520
|
try {
|
|
2525
|
-
var
|
|
2526
|
-
|
|
2521
|
+
var pn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2522
|
+
Ue = ((Pe = pn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2527
2523
|
} catch {
|
|
2528
|
-
|
|
2524
|
+
Ue = !1;
|
|
2529
2525
|
}
|
|
2530
|
-
var
|
|
2526
|
+
var lt = sn ? (
|
|
2531
2527
|
// Native
|
|
2532
2528
|
function(t, r, n) {
|
|
2533
2529
|
return t.startsWith(r, n);
|
|
@@ -2537,7 +2533,7 @@ var ut = an ? (
|
|
|
2537
2533
|
function(t, r, n) {
|
|
2538
2534
|
return t.slice(n, n + r.length) === r;
|
|
2539
2535
|
}
|
|
2540
|
-
),
|
|
2536
|
+
), Fe = an ? String.fromCodePoint : (
|
|
2541
2537
|
// IE11
|
|
2542
2538
|
function() {
|
|
2543
2539
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2549,7 +2545,7 @@ var ut = an ? (
|
|
|
2549
2545
|
}
|
|
2550
2546
|
return n;
|
|
2551
2547
|
}
|
|
2552
|
-
),
|
|
2548
|
+
), ut = (
|
|
2553
2549
|
// native
|
|
2554
2550
|
ln ? Object.fromEntries : (
|
|
2555
2551
|
// Ponyfill
|
|
@@ -2561,7 +2557,7 @@ var ut = an ? (
|
|
|
2561
2557
|
return r;
|
|
2562
2558
|
}
|
|
2563
2559
|
)
|
|
2564
|
-
), Ut =
|
|
2560
|
+
), Ut = un ? (
|
|
2565
2561
|
// Native
|
|
2566
2562
|
function(t, r) {
|
|
2567
2563
|
return t.codePointAt(r);
|
|
@@ -2575,7 +2571,7 @@ var ut = an ? (
|
|
|
2575
2571
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2576
2572
|
}
|
|
2577
2573
|
}
|
|
2578
|
-
),
|
|
2574
|
+
), dn = hn ? (
|
|
2579
2575
|
// Native
|
|
2580
2576
|
function(t) {
|
|
2581
2577
|
return t.trimStart();
|
|
@@ -2583,9 +2579,9 @@ var ut = an ? (
|
|
|
2583
2579
|
) : (
|
|
2584
2580
|
// Ponyfill
|
|
2585
2581
|
function(t) {
|
|
2586
|
-
return t.replace(
|
|
2582
|
+
return t.replace(nn, "");
|
|
2587
2583
|
}
|
|
2588
|
-
),
|
|
2584
|
+
), bn = cn ? (
|
|
2589
2585
|
// Native
|
|
2590
2586
|
function(t) {
|
|
2591
2587
|
return t.trimEnd();
|
|
@@ -2593,32 +2589,32 @@ var ut = an ? (
|
|
|
2593
2589
|
) : (
|
|
2594
2590
|
// Ponyfill
|
|
2595
2591
|
function(t) {
|
|
2596
|
-
return t.replace(
|
|
2592
|
+
return t.replace(on, "");
|
|
2597
2593
|
}
|
|
2598
2594
|
);
|
|
2599
2595
|
function Ft(e, t) {
|
|
2600
2596
|
return new RegExp(e, t);
|
|
2601
2597
|
}
|
|
2602
|
-
var
|
|
2603
|
-
if (
|
|
2598
|
+
var Ge;
|
|
2599
|
+
if (Ue) {
|
|
2604
2600
|
var ht = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2605
|
-
|
|
2601
|
+
Ge = function(t, r) {
|
|
2606
2602
|
var n;
|
|
2607
2603
|
ht.lastIndex = r;
|
|
2608
2604
|
var i = ht.exec(t);
|
|
2609
2605
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2610
2606
|
};
|
|
2611
2607
|
} else
|
|
2612
|
-
|
|
2608
|
+
Ge = function(t, r) {
|
|
2613
2609
|
for (var n = []; ; ) {
|
|
2614
2610
|
var i = Ut(t, r);
|
|
2615
|
-
if (i === void 0 || Gt(i) ||
|
|
2611
|
+
if (i === void 0 || Gt(i) || vn(i))
|
|
2616
2612
|
break;
|
|
2617
2613
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2618
2614
|
}
|
|
2619
|
-
return
|
|
2615
|
+
return Fe.apply(void 0, n);
|
|
2620
2616
|
};
|
|
2621
|
-
var
|
|
2617
|
+
var gn = (
|
|
2622
2618
|
/** @class */
|
|
2623
2619
|
function() {
|
|
2624
2620
|
function e(t, r) {
|
|
@@ -2642,14 +2638,14 @@ var yn = (
|
|
|
2642
2638
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2643
2639
|
var a = this.clonePosition();
|
|
2644
2640
|
this.bump(), i.push({
|
|
2645
|
-
type:
|
|
2641
|
+
type: _.pound,
|
|
2646
2642
|
location: y(a, this.clonePosition())
|
|
2647
2643
|
});
|
|
2648
2644
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2649
2645
|
if (n)
|
|
2650
2646
|
break;
|
|
2651
|
-
return this.error(
|
|
2652
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2647
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2648
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2653
2649
|
var s = this.parseTag(t, r);
|
|
2654
2650
|
if (s.err)
|
|
2655
2651
|
return s;
|
|
@@ -2670,7 +2666,7 @@ var yn = (
|
|
|
2670
2666
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2671
2667
|
return {
|
|
2672
2668
|
val: {
|
|
2673
|
-
type:
|
|
2669
|
+
type: _.literal,
|
|
2674
2670
|
value: "<".concat(i, "/>"),
|
|
2675
2671
|
location: y(n, this.clonePosition())
|
|
2676
2672
|
},
|
|
@@ -2682,25 +2678,25 @@ var yn = (
|
|
|
2682
2678
|
return o;
|
|
2683
2679
|
var s = o.val, a = this.clonePosition();
|
|
2684
2680
|
if (this.bumpIf("</")) {
|
|
2685
|
-
if (this.isEOF() || !
|
|
2686
|
-
return this.error(
|
|
2687
|
-
var h = this.clonePosition(),
|
|
2688
|
-
return i !==
|
|
2681
|
+
if (this.isEOF() || !je(this.char()))
|
|
2682
|
+
return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
|
|
2683
|
+
var h = this.clonePosition(), l = this.parseTagName();
|
|
2684
|
+
return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2689
2685
|
val: {
|
|
2690
|
-
type:
|
|
2686
|
+
type: _.tag,
|
|
2691
2687
|
value: i,
|
|
2692
2688
|
children: s,
|
|
2693
2689
|
location: y(n, this.clonePosition())
|
|
2694
2690
|
},
|
|
2695
2691
|
err: null
|
|
2696
|
-
} : this.error(
|
|
2692
|
+
} : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
|
|
2697
2693
|
} else
|
|
2698
|
-
return this.error(
|
|
2694
|
+
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2699
2695
|
} else
|
|
2700
|
-
return this.error(
|
|
2696
|
+
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
2701
2697
|
}, e.prototype.parseTagName = function() {
|
|
2702
2698
|
var t = this.offset();
|
|
2703
|
-
for (this.bump(); !this.isEOF() &&
|
|
2699
|
+
for (this.bump(); !this.isEOF() && xn(this.char()); )
|
|
2704
2700
|
this.bump();
|
|
2705
2701
|
return this.message.slice(t, this.offset());
|
|
2706
2702
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2724,12 +2720,12 @@ var yn = (
|
|
|
2724
2720
|
}
|
|
2725
2721
|
var h = y(n, this.clonePosition());
|
|
2726
2722
|
return {
|
|
2727
|
-
val: { type:
|
|
2723
|
+
val: { type: _.literal, value: i, location: h },
|
|
2728
2724
|
err: null
|
|
2729
2725
|
};
|
|
2730
2726
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2731
2727
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2732
|
-
!
|
|
2728
|
+
!yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2733
2729
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2734
2730
|
if (this.isEOF() || this.char() !== 39)
|
|
2735
2731
|
return null;
|
|
@@ -2763,28 +2759,28 @@ var yn = (
|
|
|
2763
2759
|
r.push(n);
|
|
2764
2760
|
this.bump();
|
|
2765
2761
|
}
|
|
2766
|
-
return
|
|
2762
|
+
return Fe.apply(void 0, r);
|
|
2767
2763
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2768
2764
|
if (this.isEOF())
|
|
2769
2765
|
return null;
|
|
2770
2766
|
var n = this.char();
|
|
2771
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2767
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2772
2768
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2773
2769
|
var n = this.clonePosition();
|
|
2774
2770
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2775
|
-
return this.error(
|
|
2771
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2776
2772
|
if (this.char() === 125)
|
|
2777
|
-
return this.bump(), this.error(
|
|
2773
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
2778
2774
|
var i = this.parseIdentifierIfPossible().value;
|
|
2779
2775
|
if (!i)
|
|
2780
|
-
return this.error(
|
|
2776
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2781
2777
|
if (this.bumpSpace(), this.isEOF())
|
|
2782
|
-
return this.error(
|
|
2778
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2783
2779
|
switch (this.char()) {
|
|
2784
2780
|
case 125:
|
|
2785
2781
|
return this.bump(), {
|
|
2786
2782
|
val: {
|
|
2787
|
-
type:
|
|
2783
|
+
type: _.argument,
|
|
2788
2784
|
// value does not include the opening and closing braces.
|
|
2789
2785
|
value: i,
|
|
2790
2786
|
location: y(n, this.clonePosition())
|
|
@@ -2792,12 +2788,12 @@ var yn = (
|
|
|
2792
2788
|
err: null
|
|
2793
2789
|
};
|
|
2794
2790
|
case 44:
|
|
2795
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2791
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2796
2792
|
default:
|
|
2797
|
-
return this.error(
|
|
2793
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2798
2794
|
}
|
|
2799
2795
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2800
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2796
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2801
2797
|
this.bumpTo(i);
|
|
2802
2798
|
var o = this.clonePosition(), s = y(t, o);
|
|
2803
2799
|
return { value: n, location: s };
|
|
@@ -2805,58 +2801,58 @@ var yn = (
|
|
|
2805
2801
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2806
2802
|
switch (a) {
|
|
2807
2803
|
case "":
|
|
2808
|
-
return this.error(
|
|
2804
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, h));
|
|
2809
2805
|
case "number":
|
|
2810
2806
|
case "date":
|
|
2811
2807
|
case "time": {
|
|
2812
2808
|
this.bumpSpace();
|
|
2813
|
-
var
|
|
2809
|
+
var l = null;
|
|
2814
2810
|
if (this.bumpIf(",")) {
|
|
2815
2811
|
this.bumpSpace();
|
|
2816
|
-
var
|
|
2812
|
+
var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2817
2813
|
if (c.err)
|
|
2818
2814
|
return c;
|
|
2819
|
-
var f =
|
|
2815
|
+
var f = bn(c.val);
|
|
2820
2816
|
if (f.length === 0)
|
|
2821
|
-
return this.error(
|
|
2822
|
-
var
|
|
2823
|
-
|
|
2817
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2818
|
+
var p = y(u, this.clonePosition());
|
|
2819
|
+
l = { style: f, styleLocation: p };
|
|
2824
2820
|
}
|
|
2825
|
-
var
|
|
2826
|
-
if (
|
|
2827
|
-
return
|
|
2828
|
-
var
|
|
2829
|
-
if (
|
|
2830
|
-
var
|
|
2821
|
+
var g = this.tryParseArgumentClose(i);
|
|
2822
|
+
if (g.err)
|
|
2823
|
+
return g;
|
|
2824
|
+
var E = y(i, this.clonePosition());
|
|
2825
|
+
if (l && lt(l?.style, "::", 0)) {
|
|
2826
|
+
var N = dn(l.style.slice(2));
|
|
2831
2827
|
if (a === "number") {
|
|
2832
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2828
|
+
var c = this.parseNumberSkeletonFromString(N, l.styleLocation);
|
|
2833
2829
|
return c.err ? c : {
|
|
2834
|
-
val: { type:
|
|
2830
|
+
val: { type: _.number, value: n, location: E, style: c.val },
|
|
2835
2831
|
err: null
|
|
2836
2832
|
};
|
|
2837
2833
|
} else {
|
|
2838
|
-
if (
|
|
2839
|
-
return this.error(
|
|
2840
|
-
var
|
|
2841
|
-
this.locale && (
|
|
2834
|
+
if (N.length === 0)
|
|
2835
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, E);
|
|
2836
|
+
var P = N;
|
|
2837
|
+
this.locale && (P = tn(N, this.locale));
|
|
2842
2838
|
var f = {
|
|
2843
2839
|
type: K.dateTime,
|
|
2844
|
-
pattern:
|
|
2845
|
-
location:
|
|
2846
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2847
|
-
},
|
|
2840
|
+
pattern: P,
|
|
2841
|
+
location: l.styleLocation,
|
|
2842
|
+
parsedOptions: this.shouldParseSkeletons ? Wr(P) : {}
|
|
2843
|
+
}, M = a === "date" ? _.date : _.time;
|
|
2848
2844
|
return {
|
|
2849
|
-
val: { type:
|
|
2845
|
+
val: { type: M, value: n, location: E, style: f },
|
|
2850
2846
|
err: null
|
|
2851
2847
|
};
|
|
2852
2848
|
}
|
|
2853
2849
|
}
|
|
2854
2850
|
return {
|
|
2855
2851
|
val: {
|
|
2856
|
-
type: a === "number" ?
|
|
2852
|
+
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
2857
2853
|
value: n,
|
|
2858
|
-
location:
|
|
2859
|
-
style: (o =
|
|
2854
|
+
location: E,
|
|
2855
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
2860
2856
|
},
|
|
2861
2857
|
err: null
|
|
2862
2858
|
};
|
|
@@ -2866,50 +2862,50 @@ var yn = (
|
|
|
2866
2862
|
case "select": {
|
|
2867
2863
|
var B = this.clonePosition();
|
|
2868
2864
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2869
|
-
return this.error(
|
|
2865
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(B, x({}, B)));
|
|
2870
2866
|
this.bumpSpace();
|
|
2871
|
-
var
|
|
2872
|
-
if (a !== "select" &&
|
|
2867
|
+
var L = this.parseIdentifierIfPossible(), w = 0;
|
|
2868
|
+
if (a !== "select" && L.value === "offset") {
|
|
2873
2869
|
if (!this.bumpIf(":"))
|
|
2874
|
-
return this.error(
|
|
2870
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2875
2871
|
this.bumpSpace();
|
|
2876
|
-
var c = this.tryParseDecimalInteger(
|
|
2872
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2877
2873
|
if (c.err)
|
|
2878
2874
|
return c;
|
|
2879
|
-
this.bumpSpace(),
|
|
2875
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), w = c.val;
|
|
2880
2876
|
}
|
|
2881
|
-
var
|
|
2882
|
-
if (
|
|
2883
|
-
return
|
|
2884
|
-
var
|
|
2885
|
-
if (
|
|
2886
|
-
return
|
|
2887
|
-
var
|
|
2877
|
+
var C = this.tryParsePluralOrSelectOptions(t, a, r, L);
|
|
2878
|
+
if (C.err)
|
|
2879
|
+
return C;
|
|
2880
|
+
var g = this.tryParseArgumentClose(i);
|
|
2881
|
+
if (g.err)
|
|
2882
|
+
return g;
|
|
2883
|
+
var D = y(i, this.clonePosition());
|
|
2888
2884
|
return a === "select" ? {
|
|
2889
2885
|
val: {
|
|
2890
|
-
type:
|
|
2886
|
+
type: _.select,
|
|
2891
2887
|
value: n,
|
|
2892
|
-
options:
|
|
2893
|
-
location:
|
|
2888
|
+
options: ut(C.val),
|
|
2889
|
+
location: D
|
|
2894
2890
|
},
|
|
2895
2891
|
err: null
|
|
2896
2892
|
} : {
|
|
2897
2893
|
val: {
|
|
2898
|
-
type:
|
|
2894
|
+
type: _.plural,
|
|
2899
2895
|
value: n,
|
|
2900
|
-
options:
|
|
2901
|
-
offset:
|
|
2896
|
+
options: ut(C.val),
|
|
2897
|
+
offset: w,
|
|
2902
2898
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2903
|
-
location:
|
|
2899
|
+
location: D
|
|
2904
2900
|
},
|
|
2905
2901
|
err: null
|
|
2906
2902
|
};
|
|
2907
2903
|
}
|
|
2908
2904
|
default:
|
|
2909
|
-
return this.error(
|
|
2905
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(s, h));
|
|
2910
2906
|
}
|
|
2911
2907
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2912
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2908
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2913
2909
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2914
2910
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2915
2911
|
var n = this.char();
|
|
@@ -2918,7 +2914,7 @@ var yn = (
|
|
|
2918
2914
|
this.bump();
|
|
2919
2915
|
var i = this.clonePosition();
|
|
2920
2916
|
if (!this.bumpUntil("'"))
|
|
2921
|
-
return this.error(
|
|
2917
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
2922
2918
|
this.bump();
|
|
2923
2919
|
break;
|
|
2924
2920
|
}
|
|
@@ -2948,52 +2944,52 @@ var yn = (
|
|
|
2948
2944
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2949
2945
|
var n = [];
|
|
2950
2946
|
try {
|
|
2951
|
-
n =
|
|
2947
|
+
n = Qr(t);
|
|
2952
2948
|
} catch {
|
|
2953
|
-
return this.error(
|
|
2949
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
2954
2950
|
}
|
|
2955
2951
|
return {
|
|
2956
2952
|
val: {
|
|
2957
2953
|
type: K.number,
|
|
2958
2954
|
tokens: n,
|
|
2959
2955
|
location: r,
|
|
2960
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2956
|
+
parsedOptions: this.shouldParseSkeletons ? en(n) : {}
|
|
2961
2957
|
},
|
|
2962
2958
|
err: null
|
|
2963
2959
|
};
|
|
2964
2960
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2965
|
-
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(),
|
|
2966
|
-
if (
|
|
2961
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
|
2962
|
+
if (l.length === 0) {
|
|
2967
2963
|
var c = this.clonePosition();
|
|
2968
2964
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2969
|
-
var f = this.tryParseDecimalInteger(
|
|
2965
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2970
2966
|
if (f.err)
|
|
2971
2967
|
return f;
|
|
2972
|
-
|
|
2968
|
+
u = y(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
2973
2969
|
} else
|
|
2974
2970
|
break;
|
|
2975
2971
|
}
|
|
2976
|
-
if (h.has(
|
|
2977
|
-
return this.error(r === "select" ?
|
|
2978
|
-
|
|
2979
|
-
var
|
|
2972
|
+
if (h.has(l))
|
|
2973
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
2974
|
+
l === "other" && (s = !0), this.bumpSpace();
|
|
2975
|
+
var p = this.clonePosition();
|
|
2980
2976
|
if (!this.bumpIf("{"))
|
|
2981
|
-
return this.error(r === "select" ?
|
|
2982
|
-
var
|
|
2983
|
-
if (
|
|
2984
|
-
return
|
|
2985
|
-
var
|
|
2986
|
-
if (
|
|
2987
|
-
return
|
|
2977
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
2978
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
2979
|
+
if (g.err)
|
|
2980
|
+
return g;
|
|
2981
|
+
var E = this.tryParseArgumentClose(p);
|
|
2982
|
+
if (E.err)
|
|
2983
|
+
return E;
|
|
2988
2984
|
a.push([
|
|
2989
|
-
|
|
2985
|
+
l,
|
|
2990
2986
|
{
|
|
2991
|
-
value:
|
|
2992
|
-
location: y(
|
|
2987
|
+
value: g.val,
|
|
2988
|
+
location: y(p, this.clonePosition())
|
|
2993
2989
|
}
|
|
2994
|
-
]), h.add(
|
|
2990
|
+
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
2995
2991
|
}
|
|
2996
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
2992
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
2997
2993
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2998
2994
|
var n = 1, i = this.clonePosition();
|
|
2999
2995
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3039,7 +3035,7 @@ var yn = (
|
|
|
3039
3035
|
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);
|
|
3040
3036
|
}
|
|
3041
3037
|
}, e.prototype.bumpIf = function(t) {
|
|
3042
|
-
if (
|
|
3038
|
+
if (lt(this.message, t, this.offset())) {
|
|
3043
3039
|
for (var r = 0; r < t.length; r++)
|
|
3044
3040
|
this.bump();
|
|
3045
3041
|
return !0;
|
|
@@ -3071,47 +3067,47 @@ var yn = (
|
|
|
3071
3067
|
}, e;
|
|
3072
3068
|
}()
|
|
3073
3069
|
);
|
|
3074
|
-
function
|
|
3070
|
+
function je(e) {
|
|
3075
3071
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3076
3072
|
}
|
|
3077
|
-
function
|
|
3078
|
-
return
|
|
3073
|
+
function yn(e) {
|
|
3074
|
+
return je(e) || e === 47;
|
|
3079
3075
|
}
|
|
3080
|
-
function
|
|
3076
|
+
function xn(e) {
|
|
3081
3077
|
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;
|
|
3082
3078
|
}
|
|
3083
3079
|
function Gt(e) {
|
|
3084
3080
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3085
3081
|
}
|
|
3086
|
-
function
|
|
3082
|
+
function vn(e) {
|
|
3087
3083
|
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;
|
|
3088
3084
|
}
|
|
3089
|
-
function
|
|
3085
|
+
function ke(e) {
|
|
3090
3086
|
e.forEach(function(t) {
|
|
3091
|
-
if (delete t.location,
|
|
3087
|
+
if (delete t.location, Ot(t) || It(t))
|
|
3092
3088
|
for (var r in t.options)
|
|
3093
|
-
delete t.options[r].location,
|
|
3089
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3094
3090
|
else
|
|
3095
|
-
Bt(t) &&
|
|
3091
|
+
Bt(t) && Ct(t.style) || (Nt(t) || Pt(t)) && De(t.style) ? delete t.style.location : Lt(t) && ke(t.children);
|
|
3096
3092
|
});
|
|
3097
3093
|
}
|
|
3098
|
-
function
|
|
3099
|
-
t === void 0 && (t = {}), t =
|
|
3100
|
-
var r = new
|
|
3094
|
+
function En(e, t) {
|
|
3095
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3096
|
+
var r = new gn(e, t).parse();
|
|
3101
3097
|
if (r.err) {
|
|
3102
|
-
var n = SyntaxError(
|
|
3098
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3103
3099
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3104
3100
|
}
|
|
3105
|
-
return t?.captureLocation ||
|
|
3101
|
+
return t?.captureLocation || ke(r.val), r.val;
|
|
3106
3102
|
}
|
|
3107
3103
|
var ee;
|
|
3108
3104
|
(function(e) {
|
|
3109
3105
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3110
3106
|
})(ee || (ee = {}));
|
|
3111
|
-
var
|
|
3107
|
+
var _e = (
|
|
3112
3108
|
/** @class */
|
|
3113
3109
|
function(e) {
|
|
3114
|
-
|
|
3110
|
+
Ee(t, e);
|
|
3115
3111
|
function t(r, n, i) {
|
|
3116
3112
|
var o = e.call(this, r) || this;
|
|
3117
3113
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3123,152 +3119,152 @@ var we = (
|
|
|
3123
3119
|
), ct = (
|
|
3124
3120
|
/** @class */
|
|
3125
3121
|
function(e) {
|
|
3126
|
-
|
|
3122
|
+
Ee(t, e);
|
|
3127
3123
|
function t(r, n, i, o) {
|
|
3128
3124
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
|
|
3129
3125
|
}
|
|
3130
3126
|
return t;
|
|
3131
|
-
}(
|
|
3132
|
-
),
|
|
3127
|
+
}(_e)
|
|
3128
|
+
), _n = (
|
|
3133
3129
|
/** @class */
|
|
3134
3130
|
function(e) {
|
|
3135
|
-
|
|
3131
|
+
Ee(t, e);
|
|
3136
3132
|
function t(r, n, i) {
|
|
3137
3133
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
|
3138
3134
|
}
|
|
3139
3135
|
return t;
|
|
3140
|
-
}(
|
|
3141
|
-
),
|
|
3136
|
+
}(_e)
|
|
3137
|
+
), Sn = (
|
|
3142
3138
|
/** @class */
|
|
3143
3139
|
function(e) {
|
|
3144
|
-
|
|
3140
|
+
Ee(t, e);
|
|
3145
3141
|
function t(r, n) {
|
|
3146
3142
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
|
3147
3143
|
}
|
|
3148
3144
|
return t;
|
|
3149
|
-
}(
|
|
3150
|
-
),
|
|
3145
|
+
}(_e)
|
|
3146
|
+
), I;
|
|
3151
3147
|
(function(e) {
|
|
3152
3148
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3153
|
-
})(
|
|
3154
|
-
function
|
|
3149
|
+
})(I || (I = {}));
|
|
3150
|
+
function wn(e) {
|
|
3155
3151
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3156
3152
|
var n = t[t.length - 1];
|
|
3157
|
-
return !n || n.type !==
|
|
3153
|
+
return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
|
|
3158
3154
|
}, []);
|
|
3159
3155
|
}
|
|
3160
|
-
function
|
|
3156
|
+
function Hn(e) {
|
|
3161
3157
|
return typeof e == "function";
|
|
3162
3158
|
}
|
|
3163
|
-
function
|
|
3159
|
+
function de(e, t, r, n, i, o, s) {
|
|
3164
3160
|
if (e.length === 1 && it(e[0]))
|
|
3165
3161
|
return [
|
|
3166
3162
|
{
|
|
3167
|
-
type:
|
|
3163
|
+
type: I.literal,
|
|
3168
3164
|
value: e[0].value
|
|
3169
3165
|
}
|
|
3170
3166
|
];
|
|
3171
|
-
for (var a = [], h = 0,
|
|
3172
|
-
var
|
|
3173
|
-
if (it(
|
|
3167
|
+
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
|
3168
|
+
var u = l[h];
|
|
3169
|
+
if (it(u)) {
|
|
3174
3170
|
a.push({
|
|
3175
|
-
type:
|
|
3176
|
-
value:
|
|
3171
|
+
type: I.literal,
|
|
3172
|
+
value: u.value
|
|
3177
3173
|
});
|
|
3178
3174
|
continue;
|
|
3179
3175
|
}
|
|
3180
|
-
if (
|
|
3176
|
+
if (Xr(u)) {
|
|
3181
3177
|
typeof o == "number" && a.push({
|
|
3182
|
-
type:
|
|
3178
|
+
type: I.literal,
|
|
3183
3179
|
value: r.getNumberFormat(t).format(o)
|
|
3184
3180
|
});
|
|
3185
3181
|
continue;
|
|
3186
3182
|
}
|
|
3187
|
-
var c =
|
|
3183
|
+
var c = u.value;
|
|
3188
3184
|
if (!(i && c in i))
|
|
3189
|
-
throw new
|
|
3185
|
+
throw new Sn(c, s);
|
|
3190
3186
|
var f = i[c];
|
|
3191
|
-
if (
|
|
3187
|
+
if (zr(u)) {
|
|
3192
3188
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3193
|
-
type: typeof f == "string" ?
|
|
3189
|
+
type: typeof f == "string" ? I.literal : I.object,
|
|
3194
3190
|
value: f
|
|
3195
3191
|
});
|
|
3196
3192
|
continue;
|
|
3197
3193
|
}
|
|
3198
|
-
if (Nt(
|
|
3199
|
-
var
|
|
3194
|
+
if (Nt(u)) {
|
|
3195
|
+
var p = typeof u.style == "string" ? n.date[u.style] : De(u.style) ? u.style.parsedOptions : void 0;
|
|
3200
3196
|
a.push({
|
|
3201
|
-
type:
|
|
3202
|
-
value: r.getDateTimeFormat(t,
|
|
3197
|
+
type: I.literal,
|
|
3198
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3203
3199
|
});
|
|
3204
3200
|
continue;
|
|
3205
3201
|
}
|
|
3206
|
-
if (
|
|
3207
|
-
var
|
|
3202
|
+
if (Pt(u)) {
|
|
3203
|
+
var p = typeof u.style == "string" ? n.time[u.style] : De(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3208
3204
|
a.push({
|
|
3209
|
-
type:
|
|
3210
|
-
value: r.getDateTimeFormat(t,
|
|
3205
|
+
type: I.literal,
|
|
3206
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3211
3207
|
});
|
|
3212
3208
|
continue;
|
|
3213
3209
|
}
|
|
3214
|
-
if (Bt(
|
|
3215
|
-
var
|
|
3216
|
-
|
|
3217
|
-
type:
|
|
3218
|
-
value: r.getNumberFormat(t,
|
|
3210
|
+
if (Bt(u)) {
|
|
3211
|
+
var p = typeof u.style == "string" ? n.number[u.style] : Ct(u.style) ? u.style.parsedOptions : void 0;
|
|
3212
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3213
|
+
type: I.literal,
|
|
3214
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3219
3215
|
});
|
|
3220
3216
|
continue;
|
|
3221
3217
|
}
|
|
3222
|
-
if (
|
|
3223
|
-
var
|
|
3224
|
-
if (!
|
|
3225
|
-
throw new
|
|
3226
|
-
var
|
|
3227
|
-
return
|
|
3218
|
+
if (Lt(u)) {
|
|
3219
|
+
var g = u.children, E = u.value, N = i[E];
|
|
3220
|
+
if (!Hn(N))
|
|
3221
|
+
throw new _n(E, "function", s);
|
|
3222
|
+
var P = de(g, t, r, n, i, o), M = N(P.map(function(w) {
|
|
3223
|
+
return w.value;
|
|
3228
3224
|
}));
|
|
3229
|
-
Array.isArray(
|
|
3225
|
+
Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(w) {
|
|
3230
3226
|
return {
|
|
3231
|
-
type: typeof
|
|
3232
|
-
value:
|
|
3227
|
+
type: typeof w == "string" ? I.literal : I.object,
|
|
3228
|
+
value: w
|
|
3233
3229
|
};
|
|
3234
3230
|
}));
|
|
3235
3231
|
}
|
|
3236
|
-
if (
|
|
3237
|
-
var B =
|
|
3232
|
+
if (Ot(u)) {
|
|
3233
|
+
var B = u.options[f] || u.options.other;
|
|
3238
3234
|
if (!B)
|
|
3239
|
-
throw new ct(
|
|
3240
|
-
a.push.apply(a,
|
|
3235
|
+
throw new ct(u.value, f, Object.keys(u.options), s);
|
|
3236
|
+
a.push.apply(a, de(B.value, t, r, n, i));
|
|
3241
3237
|
continue;
|
|
3242
3238
|
}
|
|
3243
|
-
if (It(
|
|
3244
|
-
var B =
|
|
3239
|
+
if (It(u)) {
|
|
3240
|
+
var B = u.options["=".concat(f)];
|
|
3245
3241
|
if (!B) {
|
|
3246
3242
|
if (!Intl.PluralRules)
|
|
3247
|
-
throw new
|
|
3243
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3248
3244
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3249
3245
|
`, ee.MISSING_INTL_API, s);
|
|
3250
|
-
var
|
|
3251
|
-
B =
|
|
3246
|
+
var L = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
|
3247
|
+
B = u.options[L] || u.options.other;
|
|
3252
3248
|
}
|
|
3253
3249
|
if (!B)
|
|
3254
|
-
throw new ct(
|
|
3255
|
-
a.push.apply(a,
|
|
3250
|
+
throw new ct(u.value, f, Object.keys(u.options), s);
|
|
3251
|
+
a.push.apply(a, de(B.value, t, r, n, i, f - (u.offset || 0)));
|
|
3256
3252
|
continue;
|
|
3257
3253
|
}
|
|
3258
3254
|
}
|
|
3259
|
-
return
|
|
3255
|
+
return wn(a);
|
|
3260
3256
|
}
|
|
3261
|
-
function
|
|
3262
|
-
return t ?
|
|
3263
|
-
return r[n] =
|
|
3257
|
+
function An(e, t) {
|
|
3258
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3259
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3264
3260
|
}, {})) : e;
|
|
3265
3261
|
}
|
|
3266
|
-
function
|
|
3262
|
+
function Tn(e, t) {
|
|
3267
3263
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3268
|
-
return r[n] =
|
|
3269
|
-
},
|
|
3264
|
+
return r[n] = An(e[n], t[n]), r;
|
|
3265
|
+
}, x({}, e)) : e;
|
|
3270
3266
|
}
|
|
3271
|
-
function
|
|
3267
|
+
function Oe(e) {
|
|
3272
3268
|
return {
|
|
3273
3269
|
create: function() {
|
|
3274
3270
|
return {
|
|
@@ -3282,39 +3278,39 @@ function Ce(e) {
|
|
|
3282
3278
|
}
|
|
3283
3279
|
};
|
|
3284
3280
|
}
|
|
3285
|
-
function
|
|
3281
|
+
function Bn(e) {
|
|
3286
3282
|
return e === void 0 && (e = {
|
|
3287
3283
|
number: {},
|
|
3288
3284
|
dateTime: {},
|
|
3289
3285
|
pluralRules: {}
|
|
3290
3286
|
}), {
|
|
3291
|
-
getNumberFormat:
|
|
3287
|
+
getNumberFormat: Be(function() {
|
|
3292
3288
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3293
3289
|
r[n] = arguments[n];
|
|
3294
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3290
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3295
3291
|
}, {
|
|
3296
|
-
cache:
|
|
3297
|
-
strategy:
|
|
3292
|
+
cache: Oe(e.number),
|
|
3293
|
+
strategy: Ne.variadic
|
|
3298
3294
|
}),
|
|
3299
|
-
getDateTimeFormat:
|
|
3295
|
+
getDateTimeFormat: Be(function() {
|
|
3300
3296
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3301
3297
|
r[n] = arguments[n];
|
|
3302
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3298
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3303
3299
|
}, {
|
|
3304
|
-
cache:
|
|
3305
|
-
strategy:
|
|
3300
|
+
cache: Oe(e.dateTime),
|
|
3301
|
+
strategy: Ne.variadic
|
|
3306
3302
|
}),
|
|
3307
|
-
getPluralRules:
|
|
3303
|
+
getPluralRules: Be(function() {
|
|
3308
3304
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3309
3305
|
r[n] = arguments[n];
|
|
3310
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3306
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Te([void 0], r, !1)))();
|
|
3311
3307
|
}, {
|
|
3312
|
-
cache:
|
|
3313
|
-
strategy:
|
|
3308
|
+
cache: Oe(e.pluralRules),
|
|
3309
|
+
strategy: Ne.variadic
|
|
3314
3310
|
})
|
|
3315
3311
|
};
|
|
3316
3312
|
}
|
|
3317
|
-
var
|
|
3313
|
+
var Nn = (
|
|
3318
3314
|
/** @class */
|
|
3319
3315
|
function() {
|
|
3320
3316
|
function e(t, r, n, i) {
|
|
@@ -3325,15 +3321,15 @@ var On = (
|
|
|
3325
3321
|
dateTime: {},
|
|
3326
3322
|
pluralRules: {}
|
|
3327
3323
|
}, this.format = function(h) {
|
|
3328
|
-
var
|
|
3329
|
-
if (
|
|
3330
|
-
return
|
|
3331
|
-
var
|
|
3332
|
-
return !c.length || f.type !==
|
|
3324
|
+
var l = o.formatToParts(h);
|
|
3325
|
+
if (l.length === 1)
|
|
3326
|
+
return l[0].value;
|
|
3327
|
+
var u = l.reduce(function(c, f) {
|
|
3328
|
+
return !c.length || f.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3333
3329
|
}, []);
|
|
3334
|
-
return
|
|
3330
|
+
return u.length <= 1 ? u[0] || "" : u;
|
|
3335
3331
|
}, this.formatToParts = function(h) {
|
|
3336
|
-
return
|
|
3332
|
+
return de(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3337
3333
|
}, this.resolvedOptions = function() {
|
|
3338
3334
|
var h;
|
|
3339
3335
|
return {
|
|
@@ -3347,12 +3343,12 @@ var On = (
|
|
|
3347
3343
|
var s = i || {};
|
|
3348
3344
|
s.formatters;
|
|
3349
3345
|
var a = Dr(s, ["formatters"]);
|
|
3350
|
-
this.ast = e.__parse(t,
|
|
3346
|
+
this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
|
|
3351
3347
|
} else
|
|
3352
3348
|
this.ast = t;
|
|
3353
3349
|
if (!Array.isArray(this.ast))
|
|
3354
3350
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3355
|
-
this.formats =
|
|
3351
|
+
this.formats = Tn(e.formats, n), this.formatters = i && i.formatters || Bn(this.formatterCache);
|
|
3356
3352
|
}
|
|
3357
3353
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3358
3354
|
get: function() {
|
|
@@ -3365,7 +3361,7 @@ var On = (
|
|
|
3365
3361
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3366
3362
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3367
3363
|
}
|
|
3368
|
-
}, e.__parse =
|
|
3364
|
+
}, e.__parse = En, e.formats = {
|
|
3369
3365
|
number: {
|
|
3370
3366
|
integer: {
|
|
3371
3367
|
maximumFractionDigits: 0
|
|
@@ -3447,21 +3443,21 @@ function Pn(e, t) {
|
|
|
3447
3443
|
n = void 0;
|
|
3448
3444
|
return n;
|
|
3449
3445
|
}
|
|
3450
|
-
const
|
|
3446
|
+
const G = {}, On = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), jt = (e, t) => {
|
|
3451
3447
|
if (t == null)
|
|
3452
3448
|
return;
|
|
3453
|
-
if (t in
|
|
3454
|
-
return
|
|
3455
|
-
const r =
|
|
3449
|
+
if (t in G && e in G[t])
|
|
3450
|
+
return G[t][e];
|
|
3451
|
+
const r = Se(t);
|
|
3456
3452
|
for (let n = 0; n < r.length; n++) {
|
|
3457
3453
|
const i = r[n], o = Ln(i, e);
|
|
3458
3454
|
if (o)
|
|
3459
|
-
return
|
|
3455
|
+
return On(e, t, o);
|
|
3460
3456
|
}
|
|
3461
3457
|
};
|
|
3462
3458
|
let Je;
|
|
3463
|
-
const ne =
|
|
3464
|
-
function
|
|
3459
|
+
const ne = ve({});
|
|
3460
|
+
function In(e) {
|
|
3465
3461
|
return Je[e] || null;
|
|
3466
3462
|
}
|
|
3467
3463
|
function kt(e) {
|
|
@@ -3470,13 +3466,13 @@ function kt(e) {
|
|
|
3470
3466
|
function Ln(e, t) {
|
|
3471
3467
|
if (!kt(e))
|
|
3472
3468
|
return null;
|
|
3473
|
-
const r =
|
|
3469
|
+
const r = In(e);
|
|
3474
3470
|
return Pn(r, t);
|
|
3475
3471
|
}
|
|
3476
|
-
function
|
|
3472
|
+
function Cn(e) {
|
|
3477
3473
|
if (e == null)
|
|
3478
3474
|
return;
|
|
3479
|
-
const t =
|
|
3475
|
+
const t = Se(e);
|
|
3480
3476
|
for (let r = 0; r < t.length; r++) {
|
|
3481
3477
|
const n = t[r];
|
|
3482
3478
|
if (kt(n))
|
|
@@ -3484,55 +3480,55 @@ function Mn(e) {
|
|
|
3484
3480
|
}
|
|
3485
3481
|
}
|
|
3486
3482
|
function Vt(e, ...t) {
|
|
3487
|
-
delete
|
|
3483
|
+
delete G[e], ne.update((r) => (r[e] = $r.all([r[e] || {}, ...t]), r));
|
|
3488
3484
|
}
|
|
3489
3485
|
re(
|
|
3490
3486
|
[ne],
|
|
3491
3487
|
([e]) => Object.keys(e)
|
|
3492
3488
|
);
|
|
3493
3489
|
ne.subscribe((e) => Je = e);
|
|
3494
|
-
const
|
|
3495
|
-
function
|
|
3496
|
-
|
|
3490
|
+
const be = {};
|
|
3491
|
+
function Mn(e, t) {
|
|
3492
|
+
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3497
3493
|
}
|
|
3498
3494
|
function zt(e) {
|
|
3499
|
-
return
|
|
3495
|
+
return be[e];
|
|
3500
3496
|
}
|
|
3501
|
-
function
|
|
3502
|
-
return
|
|
3497
|
+
function Rn(e) {
|
|
3498
|
+
return Se(e).map((t) => {
|
|
3503
3499
|
const r = zt(t);
|
|
3504
3500
|
return [t, r ? [...r] : []];
|
|
3505
3501
|
}).filter(([, t]) => t.length > 0);
|
|
3506
3502
|
}
|
|
3507
|
-
function
|
|
3508
|
-
return e == null ? !1 :
|
|
3503
|
+
function Ve(e) {
|
|
3504
|
+
return e == null ? !1 : Se(e).some(
|
|
3509
3505
|
(t) => {
|
|
3510
3506
|
var r;
|
|
3511
3507
|
return (r = zt(t)) == null ? void 0 : r.size;
|
|
3512
3508
|
}
|
|
3513
3509
|
);
|
|
3514
3510
|
}
|
|
3515
|
-
function
|
|
3511
|
+
function $n(e, t) {
|
|
3516
3512
|
return Promise.all(
|
|
3517
|
-
t.map((n) => (
|
|
3513
|
+
t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
|
|
3518
3514
|
).then((n) => Vt(e, ...n));
|
|
3519
3515
|
}
|
|
3520
|
-
const
|
|
3516
|
+
const oe = {};
|
|
3521
3517
|
function Xt(e) {
|
|
3522
|
-
if (!
|
|
3523
|
-
return e in
|
|
3524
|
-
const t =
|
|
3525
|
-
return
|
|
3518
|
+
if (!Ve(e))
|
|
3519
|
+
return e in oe ? oe[e] : Promise.resolve();
|
|
3520
|
+
const t = Rn(e);
|
|
3521
|
+
return oe[e] = Promise.all(
|
|
3526
3522
|
t.map(
|
|
3527
|
-
([r, n]) =>
|
|
3523
|
+
([r, n]) => $n(r, n)
|
|
3528
3524
|
)
|
|
3529
3525
|
).then(() => {
|
|
3530
|
-
if (
|
|
3526
|
+
if (Ve(e))
|
|
3531
3527
|
return Xt(e);
|
|
3532
|
-
delete
|
|
3533
|
-
}),
|
|
3528
|
+
delete oe[e];
|
|
3529
|
+
}), oe[e];
|
|
3534
3530
|
}
|
|
3535
|
-
const
|
|
3531
|
+
const Dn = {
|
|
3536
3532
|
number: {
|
|
3537
3533
|
scientific: { notation: "scientific" },
|
|
3538
3534
|
engineering: { notation: "engineering" },
|
|
@@ -3561,159 +3557,159 @@ const Un = {
|
|
|
3561
3557
|
timeZoneName: "short"
|
|
3562
3558
|
}
|
|
3563
3559
|
}
|
|
3564
|
-
},
|
|
3560
|
+
}, Un = {
|
|
3565
3561
|
fallbackLocale: null,
|
|
3566
3562
|
loadingDelay: 200,
|
|
3567
|
-
formats:
|
|
3563
|
+
formats: Dn,
|
|
3568
3564
|
warnOnMissingMessages: !0,
|
|
3569
3565
|
handleMissingMessage: void 0,
|
|
3570
3566
|
ignoreTag: !0
|
|
3571
|
-
},
|
|
3567
|
+
}, Fn = Un;
|
|
3572
3568
|
function te() {
|
|
3573
|
-
return
|
|
3569
|
+
return Fn;
|
|
3574
3570
|
}
|
|
3575
|
-
const
|
|
3576
|
-
var
|
|
3571
|
+
const Ie = ve(!1);
|
|
3572
|
+
var Gn = Object.defineProperty, jn = Object.defineProperties, kn = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, Vn = Object.prototype.hasOwnProperty, zn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xn = (e, t) => {
|
|
3577
3573
|
for (var r in t || (t = {}))
|
|
3578
|
-
|
|
3574
|
+
Vn.call(t, r) && mt(e, r, t[r]);
|
|
3579
3575
|
if (ft)
|
|
3580
3576
|
for (var r of ft(t))
|
|
3581
|
-
|
|
3577
|
+
zn.call(t, r) && mt(e, r, t[r]);
|
|
3582
3578
|
return e;
|
|
3583
|
-
},
|
|
3584
|
-
let
|
|
3585
|
-
const
|
|
3586
|
-
function
|
|
3579
|
+
}, Zn = (e, t) => jn(e, kn(t));
|
|
3580
|
+
let ze;
|
|
3581
|
+
const ge = ve(null);
|
|
3582
|
+
function pt(e) {
|
|
3587
3583
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3588
3584
|
}
|
|
3589
|
-
function
|
|
3590
|
-
const r =
|
|
3591
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3585
|
+
function Se(e, t = te().fallbackLocale) {
|
|
3586
|
+
const r = pt(e);
|
|
3587
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3592
3588
|
}
|
|
3593
|
-
function
|
|
3594
|
-
return
|
|
3589
|
+
function z() {
|
|
3590
|
+
return ze ?? void 0;
|
|
3595
3591
|
}
|
|
3596
|
-
|
|
3597
|
-
|
|
3592
|
+
ge.subscribe((e) => {
|
|
3593
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3598
3594
|
});
|
|
3599
|
-
const
|
|
3600
|
-
if (e &&
|
|
3595
|
+
const Wn = (e) => {
|
|
3596
|
+
if (e && Cn(e) && Ve(e)) {
|
|
3601
3597
|
const { loadingDelay: t } = te();
|
|
3602
3598
|
let r;
|
|
3603
|
-
return typeof window < "u" &&
|
|
3604
|
-
() =>
|
|
3599
|
+
return typeof window < "u" && z() != null && t ? r = window.setTimeout(
|
|
3600
|
+
() => Ie.set(!0),
|
|
3605
3601
|
t
|
|
3606
|
-
) :
|
|
3607
|
-
|
|
3602
|
+
) : Ie.set(!0), Xt(e).then(() => {
|
|
3603
|
+
ge.set(e);
|
|
3608
3604
|
}).finally(() => {
|
|
3609
|
-
clearTimeout(r),
|
|
3605
|
+
clearTimeout(r), Ie.set(!1);
|
|
3610
3606
|
});
|
|
3611
3607
|
}
|
|
3612
|
-
return
|
|
3613
|
-
},
|
|
3614
|
-
set:
|
|
3615
|
-
}),
|
|
3608
|
+
return ge.set(e);
|
|
3609
|
+
}, V = Zn(Xn({}, ge), {
|
|
3610
|
+
set: Wn
|
|
3611
|
+
}), we = (e) => {
|
|
3616
3612
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3617
3613
|
return (n) => {
|
|
3618
3614
|
const i = JSON.stringify(n);
|
|
3619
3615
|
return i in t ? t[i] : t[i] = e(n);
|
|
3620
3616
|
};
|
|
3621
3617
|
};
|
|
3622
|
-
var
|
|
3618
|
+
var Jn = Object.defineProperty, ye = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Wt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? Jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3623
3619
|
for (var r in t || (t = {}))
|
|
3624
3620
|
Zt.call(t, r) && dt(e, r, t[r]);
|
|
3625
|
-
if (
|
|
3626
|
-
for (var r of
|
|
3621
|
+
if (ye)
|
|
3622
|
+
for (var r of ye(t))
|
|
3627
3623
|
Wt.call(t, r) && dt(e, r, t[r]);
|
|
3628
3624
|
return e;
|
|
3629
3625
|
}, ie = (e, t) => {
|
|
3630
3626
|
var r = {};
|
|
3631
3627
|
for (var n in e)
|
|
3632
3628
|
Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3633
|
-
if (e != null &&
|
|
3634
|
-
for (var n of
|
|
3629
|
+
if (e != null && ye)
|
|
3630
|
+
for (var n of ye(e))
|
|
3635
3631
|
t.indexOf(n) < 0 && Wt.call(e, n) && (r[n] = e[n]);
|
|
3636
3632
|
return r;
|
|
3637
3633
|
};
|
|
3638
|
-
const
|
|
3634
|
+
const ue = (e, t) => {
|
|
3639
3635
|
const { formats: r } = te();
|
|
3640
3636
|
if (e in r && t in r[e])
|
|
3641
3637
|
return r[e][t];
|
|
3642
3638
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3643
|
-
},
|
|
3639
|
+
}, Qn = we(
|
|
3644
3640
|
(e) => {
|
|
3645
3641
|
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
3646
3642
|
if (r == null)
|
|
3647
3643
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3648
|
-
return n && (i =
|
|
3644
|
+
return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
|
|
3649
3645
|
}
|
|
3650
|
-
),
|
|
3646
|
+
), qn = we(
|
|
3651
3647
|
(e) => {
|
|
3652
3648
|
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
3653
3649
|
if (r == null)
|
|
3654
3650
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3655
|
-
return n ? i =
|
|
3651
|
+
return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3656
3652
|
}
|
|
3657
|
-
),
|
|
3653
|
+
), Yn = we(
|
|
3658
3654
|
(e) => {
|
|
3659
3655
|
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
3660
3656
|
if (r == null)
|
|
3661
3657
|
throw new Error(
|
|
3662
3658
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3663
3659
|
);
|
|
3664
|
-
return n ? i =
|
|
3660
|
+
return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3665
3661
|
}
|
|
3666
|
-
),
|
|
3662
|
+
), Kn = (e = {}) => {
|
|
3667
3663
|
var t = e, {
|
|
3668
|
-
locale: r =
|
|
3664
|
+
locale: r = z()
|
|
3669
3665
|
} = t, n = ie(t, [
|
|
3670
3666
|
"locale"
|
|
3671
3667
|
]);
|
|
3672
|
-
return
|
|
3673
|
-
},
|
|
3668
|
+
return Qn(Qe({ locale: r }, n));
|
|
3669
|
+
}, ei = (e = {}) => {
|
|
3674
3670
|
var t = e, {
|
|
3675
|
-
locale: r =
|
|
3671
|
+
locale: r = z()
|
|
3676
3672
|
} = t, n = ie(t, [
|
|
3677
3673
|
"locale"
|
|
3678
3674
|
]);
|
|
3679
|
-
return
|
|
3680
|
-
},
|
|
3675
|
+
return qn(Qe({ locale: r }, n));
|
|
3676
|
+
}, ti = (e = {}) => {
|
|
3681
3677
|
var t = e, {
|
|
3682
|
-
locale: r =
|
|
3678
|
+
locale: r = z()
|
|
3683
3679
|
} = t, n = ie(t, [
|
|
3684
3680
|
"locale"
|
|
3685
3681
|
]);
|
|
3686
|
-
return
|
|
3687
|
-
},
|
|
3682
|
+
return Yn(Qe({ locale: r }, n));
|
|
3683
|
+
}, ri = we(
|
|
3688
3684
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3689
|
-
(e, t =
|
|
3685
|
+
(e, t = z()) => new Nn(e, t, te().formats, {
|
|
3690
3686
|
ignoreTag: te().ignoreTag
|
|
3691
3687
|
})
|
|
3692
|
-
),
|
|
3688
|
+
), ni = (e, t = {}) => {
|
|
3693
3689
|
var r, n, i, o;
|
|
3694
3690
|
let s = t;
|
|
3695
3691
|
typeof e == "object" && (s = e, e = s.id);
|
|
3696
3692
|
const {
|
|
3697
3693
|
values: a,
|
|
3698
|
-
locale: h =
|
|
3699
|
-
default:
|
|
3694
|
+
locale: h = z(),
|
|
3695
|
+
default: l
|
|
3700
3696
|
} = s;
|
|
3701
3697
|
if (h == null)
|
|
3702
3698
|
throw new Error(
|
|
3703
3699
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3704
3700
|
);
|
|
3705
|
-
let
|
|
3706
|
-
if (!
|
|
3707
|
-
|
|
3708
|
-
else if (typeof
|
|
3701
|
+
let u = jt(e, h);
|
|
3702
|
+
if (!u)
|
|
3703
|
+
u = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3704
|
+
else if (typeof u != "string")
|
|
3709
3705
|
return console.warn(
|
|
3710
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3711
|
-
),
|
|
3706
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3707
|
+
), u;
|
|
3712
3708
|
if (!a)
|
|
3713
|
-
return
|
|
3714
|
-
let c =
|
|
3709
|
+
return u;
|
|
3710
|
+
let c = u;
|
|
3715
3711
|
try {
|
|
3716
|
-
c =
|
|
3712
|
+
c = ri(u, h).format(a);
|
|
3717
3713
|
} catch (f) {
|
|
3718
3714
|
f instanceof Error && console.warn(
|
|
3719
3715
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3721,14 +3717,14 @@ const he = (e, t) => {
|
|
|
3721
3717
|
);
|
|
3722
3718
|
}
|
|
3723
3719
|
return c;
|
|
3724
|
-
},
|
|
3725
|
-
re([
|
|
3726
|
-
re([
|
|
3727
|
-
re([
|
|
3728
|
-
re([
|
|
3729
|
-
function
|
|
3730
|
-
|
|
3731
|
-
r == null && (ne.set(t),
|
|
3720
|
+
}, ii = (e, t) => ti(t).format(e), oi = (e, t) => ei(t).format(e), si = (e, t) => Kn(t).format(e), ai = (e, t = z()) => jt(e, t), li = re([V, ne], () => ni);
|
|
3721
|
+
re([V], () => ii);
|
|
3722
|
+
re([V], () => oi);
|
|
3723
|
+
re([V], () => si);
|
|
3724
|
+
re([V, ne], () => ai);
|
|
3725
|
+
function ui({ withLocale: e, translations: t }) {
|
|
3726
|
+
V.subscribe((r) => {
|
|
3727
|
+
r == null && (ne.set(t), V.set(e));
|
|
3732
3728
|
});
|
|
3733
3729
|
}
|
|
3734
3730
|
function bt(e, t) {
|
|
@@ -3862,84 +3858,84 @@ const gt = {
|
|
|
3862
3858
|
hottest: "Hottest"
|
|
3863
3859
|
}
|
|
3864
3860
|
};
|
|
3865
|
-
function
|
|
3861
|
+
function hi(e) {
|
|
3866
3862
|
qt(e, "svelte-p37neu", ':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}');
|
|
3867
3863
|
}
|
|
3868
3864
|
function yt(e, t, r) {
|
|
3869
3865
|
const n = e.slice();
|
|
3870
3866
|
return n[23] = t[r], n;
|
|
3871
3867
|
}
|
|
3872
|
-
function
|
|
3873
|
-
let t, r, n, i, o, s, a, h,
|
|
3868
|
+
function ci(e) {
|
|
3869
|
+
let t, r, n, i, o, s, a, h, l, u, c, f = (
|
|
3874
3870
|
/*$_*/
|
|
3875
3871
|
e[4]("sortby") + ""
|
|
3876
|
-
),
|
|
3872
|
+
), p, g, E, N, P = (
|
|
3877
3873
|
/*vendorSortingBy*/
|
|
3878
3874
|
(e[3] || /*$_*/
|
|
3879
3875
|
e[4]("all")) + ""
|
|
3880
|
-
),
|
|
3876
|
+
), M, B, L, w, C, D, X, d, H, R, fe, He, qe, Z = rt(Object.values(
|
|
3881
3877
|
/*vendorMap*/
|
|
3882
3878
|
e[5]
|
|
3883
3879
|
)), O = [];
|
|
3884
|
-
for (let
|
|
3885
|
-
O[
|
|
3880
|
+
for (let S = 0; S < Z.length; S += 1)
|
|
3881
|
+
O[S] = xt(yt(e, Z, S));
|
|
3886
3882
|
return {
|
|
3887
3883
|
c() {
|
|
3888
|
-
t =
|
|
3889
|
-
for (let
|
|
3890
|
-
O[
|
|
3891
|
-
|
|
3892
|
-
(e[1] ? "TriangleActive" : "")),
|
|
3893
|
-
(e[1] ? "SorterSelectorOpen" : "")),
|
|
3894
|
-
(e[1] ? "SorterOpen" : "")),
|
|
3884
|
+
t = A("div"), r = A("div"), n = A("div"), i = j("svg"), o = j("g"), s = j("path"), a = j("path"), h = j("path"), l = k(), u = A("div"), c = A("span"), p = Le(f), g = k(), E = A("div"), N = A("span"), M = Le(P), B = k(), L = A("span"), w = j("svg"), C = j("path"), d = k(), H = A("div"), R = A("ul");
|
|
3885
|
+
for (let S = 0; S < O.length; S += 1)
|
|
3886
|
+
O[S].c();
|
|
3887
|
+
m(s, "id", "Path_5267"), m(s, "data-name", "Path 5267"), m(s, "d", "M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"), m(s, "transform", "translate(-206.448 0)"), m(s, "fill", "#fff"), m(a, "id", "Path_5268"), m(a, "data-name", "Path 5268"), m(a, "d", "M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"), m(a, "transform", "translate(0 0)"), m(a, "fill", "#fff"), m(h, "id", "Path_5269"), m(h, "data-name", "Path 5269"), m(h, "d", "M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"), m(h, "transform", "translate(-412.896 0)"), m(h, "fill", "#fff"), m(o, "id", "sortby"), m(o, "transform", "translate(-306 -342)"), m(i, "xmlns", "http://www.w3.org/2000/svg"), m(i, "width", "20"), m(i, "height", "20"), m(i, "viewBox", "0 0 26.003 22.819"), m(c, "class", "SorterName"), m(E, "class", "SorterValueContainer"), m(u, "class", "SorterTextContainer"), m(n, "class", "SorterMainArea"), m(C, "id", "arrow"), m(C, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), m(C, "transform", "translate(-274.511 -441.088)"), m(C, "fill", "#d1d1d1"), m(w, "xmlns", "http://www.w3.org/2000/svg"), m(w, "width", "14"), m(w, "height", "6.835"), m(w, "viewBox", "0 0 14 6.835"), m(L, "class", D = "TriangleInactive " + /*isSorterActive*/
|
|
3888
|
+
(e[1] ? "TriangleActive" : "")), m(r, "class", X = "SorterSelector " + /*isSorterActive*/
|
|
3889
|
+
(e[1] ? "SorterSelectorOpen" : "")), m(R, "class", "SorterDropdown"), m(H, "class", fe = "SorterDropdownContainer " + /*isSorterActive*/
|
|
3890
|
+
(e[1] ? "SorterOpen" : "")), m(t, "class", "SorterContainer");
|
|
3895
3891
|
},
|
|
3896
|
-
m(
|
|
3897
|
-
|
|
3892
|
+
m(S, U) {
|
|
3893
|
+
xe(S, t, U), v(t, r), v(r, n), v(n, i), v(i, o), v(o, s), v(o, a), v(o, h), v(n, l), v(n, u), v(u, c), v(c, p), v(u, g), v(u, E), v(E, N), v(N, M), v(r, B), v(r, L), v(L, w), v(w, C), v(t, d), v(t, H), v(H, R);
|
|
3898
3894
|
for (let T = 0; T < O.length; T += 1)
|
|
3899
|
-
O[T] && O[T].m(
|
|
3900
|
-
|
|
3895
|
+
O[T] && O[T].m(R, null);
|
|
3896
|
+
He || (qe = St(
|
|
3901
3897
|
r,
|
|
3902
3898
|
"click",
|
|
3903
3899
|
/*click_handler*/
|
|
3904
3900
|
e[14]
|
|
3905
|
-
),
|
|
3901
|
+
), He = !0);
|
|
3906
3902
|
},
|
|
3907
|
-
p(
|
|
3908
|
-
if (
|
|
3903
|
+
p(S, U) {
|
|
3904
|
+
if (U & /*$_*/
|
|
3909
3905
|
16 && f !== (f = /*$_*/
|
|
3910
|
-
|
|
3911
|
-
24 &&
|
|
3912
|
-
(
|
|
3913
|
-
|
|
3914
|
-
2 &&
|
|
3915
|
-
(
|
|
3916
|
-
2 &&
|
|
3917
|
-
(
|
|
3906
|
+
S[4]("sortby") + "") && et(p, f), U & /*vendorSortingBy, $_*/
|
|
3907
|
+
24 && P !== (P = /*vendorSortingBy*/
|
|
3908
|
+
(S[3] || /*$_*/
|
|
3909
|
+
S[4]("all")) + "") && et(M, P), U & /*isSorterActive*/
|
|
3910
|
+
2 && D !== (D = "TriangleInactive " + /*isSorterActive*/
|
|
3911
|
+
(S[1] ? "TriangleActive" : "")) && m(L, "class", D), U & /*isSorterActive*/
|
|
3912
|
+
2 && X !== (X = "SorterSelector " + /*isSorterActive*/
|
|
3913
|
+
(S[1] ? "SorterSelectorOpen" : "")) && m(r, "class", X), U & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
|
|
3918
3914
|
120) {
|
|
3919
3915
|
Z = rt(Object.values(
|
|
3920
3916
|
/*vendorMap*/
|
|
3921
|
-
|
|
3917
|
+
S[5]
|
|
3922
3918
|
));
|
|
3923
3919
|
let T;
|
|
3924
3920
|
for (T = 0; T < Z.length; T += 1) {
|
|
3925
|
-
const Ye = yt(
|
|
3926
|
-
O[T] ? O[T].p(Ye,
|
|
3921
|
+
const Ye = yt(S, Z, T);
|
|
3922
|
+
O[T] ? O[T].p(Ye, U) : (O[T] = xt(Ye), O[T].c(), O[T].m(R, null));
|
|
3927
3923
|
}
|
|
3928
3924
|
for (; T < O.length; T += 1)
|
|
3929
3925
|
O[T].d(1);
|
|
3930
3926
|
O.length = Z.length;
|
|
3931
3927
|
}
|
|
3932
|
-
|
|
3933
|
-
2 &&
|
|
3934
|
-
(
|
|
3928
|
+
U & /*isSorterActive*/
|
|
3929
|
+
2 && fe !== (fe = "SorterDropdownContainer " + /*isSorterActive*/
|
|
3930
|
+
(S[1] ? "SorterOpen" : "")) && m(H, "class", fe);
|
|
3935
3931
|
},
|
|
3936
|
-
d(
|
|
3937
|
-
|
|
3932
|
+
d(S) {
|
|
3933
|
+
S && ce(t), er(O, S), He = !1, qe();
|
|
3938
3934
|
}
|
|
3939
3935
|
};
|
|
3940
3936
|
}
|
|
3941
3937
|
function xt(e) {
|
|
3942
|
-
let t, r, n, i, o, s, a, h,
|
|
3938
|
+
let t, r, n, i, o, s, a, h, l, u, c;
|
|
3943
3939
|
function f() {
|
|
3944
3940
|
return (
|
|
3945
3941
|
/*click_handler_1*/
|
|
@@ -3951,8 +3947,8 @@ function xt(e) {
|
|
|
3951
3947
|
}
|
|
3952
3948
|
return {
|
|
3953
3949
|
c() {
|
|
3954
|
-
t =
|
|
3955
|
-
e[23]}`,
|
|
3950
|
+
t = A("li"), r = A("label"), n = A("input"), o = k(), s = A("span"), a = k(), h = A("span"), h.textContent = `${/*sort*/
|
|
3951
|
+
e[23]}`, l = k(), m(n, "type", "radio"), m(n, "name", "radio"), n.value = /*sort*/
|
|
3956
3952
|
e[23], n.checked = i = /*vendorSortingBy*/
|
|
3957
3953
|
e[3] == /*sort*/
|
|
3958
3954
|
e[23] ? !0 : (
|
|
@@ -3960,14 +3956,14 @@ function xt(e) {
|
|
|
3960
3956
|
e[3] == null && /*sort*/
|
|
3961
3957
|
e[23] == /*$_*/
|
|
3962
3958
|
e[4]("all")
|
|
3963
|
-
),
|
|
3959
|
+
), m(s, "class", "SortersCheckmark"), m(r, "class", "SorterLabel CustomRadioButton"), m(t, "class", "SorterItem"), t.value = /*sort*/
|
|
3964
3960
|
e[23];
|
|
3965
3961
|
},
|
|
3966
|
-
m(
|
|
3967
|
-
|
|
3962
|
+
m(p, g) {
|
|
3963
|
+
xe(p, t, g), v(t, r), v(r, n), v(r, o), v(r, s), v(r, a), v(r, h), v(t, l), u || (c = St(n, "click", f), u = !0);
|
|
3968
3964
|
},
|
|
3969
|
-
p(
|
|
3970
|
-
e =
|
|
3965
|
+
p(p, g) {
|
|
3966
|
+
e = p, g & /*vendorSortingBy, $_*/
|
|
3971
3967
|
24 && i !== (i = /*vendorSortingBy*/
|
|
3972
3968
|
e[3] == /*sort*/
|
|
3973
3969
|
e[23] ? !0 : (
|
|
@@ -3977,25 +3973,25 @@ function xt(e) {
|
|
|
3977
3973
|
e[4]("all")
|
|
3978
3974
|
)) && (n.checked = i);
|
|
3979
3975
|
},
|
|
3980
|
-
d(
|
|
3981
|
-
|
|
3976
|
+
d(p) {
|
|
3977
|
+
p && ce(t), u = !1, c();
|
|
3982
3978
|
}
|
|
3983
3979
|
};
|
|
3984
3980
|
}
|
|
3985
|
-
function
|
|
3981
|
+
function fi(e) {
|
|
3986
3982
|
let t;
|
|
3987
3983
|
function r(o, s) {
|
|
3988
3984
|
if (!/*isLoading*/
|
|
3989
3985
|
o[2])
|
|
3990
|
-
return
|
|
3986
|
+
return ci;
|
|
3991
3987
|
}
|
|
3992
3988
|
let n = r(e), i = n && n(e);
|
|
3993
3989
|
return {
|
|
3994
3990
|
c() {
|
|
3995
|
-
t =
|
|
3991
|
+
t = A("div"), i && i.c();
|
|
3996
3992
|
},
|
|
3997
3993
|
m(o, s) {
|
|
3998
|
-
|
|
3994
|
+
xe(o, t, s), i && i.m(t, null), e[16](t);
|
|
3999
3995
|
},
|
|
4000
3996
|
p(o, [s]) {
|
|
4001
3997
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4003,103 +3999,103 @@ function pi(e) {
|
|
|
4003
3999
|
i: $,
|
|
4004
4000
|
o: $,
|
|
4005
4001
|
d(o) {
|
|
4006
|
-
o &&
|
|
4002
|
+
o && ce(t), i && i.d(), e[16](null);
|
|
4007
4003
|
}
|
|
4008
4004
|
};
|
|
4009
4005
|
}
|
|
4010
4006
|
function mi(e, t, r) {
|
|
4011
4007
|
let n;
|
|
4012
4008
|
Qt(e, li, (d) => r(4, n = d));
|
|
4013
|
-
let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid: h = "" } = t, { mbsource:
|
|
4014
|
-
|
|
4015
|
-
const
|
|
4016
|
-
fetch(o).then((
|
|
4017
|
-
Object.keys(
|
|
4018
|
-
bt(R,
|
|
4009
|
+
let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid: h = "" } = t, { mbsource: l } = t, u, c, f = !1, p = !0, g = "", E = "All";
|
|
4010
|
+
ui({ withLocale: "en", translations: {} });
|
|
4011
|
+
const N = () => {
|
|
4012
|
+
fetch(o).then((H) => H.json()).then((H) => {
|
|
4013
|
+
Object.keys(H).forEach((R) => {
|
|
4014
|
+
bt(R, H[R]);
|
|
4019
4015
|
});
|
|
4020
|
-
}).catch((
|
|
4021
|
-
console.log(
|
|
4016
|
+
}).catch((H) => {
|
|
4017
|
+
console.log(H);
|
|
4022
4018
|
});
|
|
4023
4019
|
};
|
|
4024
4020
|
Object.keys(gt).forEach((d) => {
|
|
4025
4021
|
bt(d, gt[d]);
|
|
4026
4022
|
});
|
|
4027
|
-
const
|
|
4023
|
+
const P = {
|
|
4028
4024
|
All: n("all"),
|
|
4029
4025
|
name: n("az"),
|
|
4030
4026
|
isNew: n("newest"),
|
|
4031
4027
|
"advancedTags(name(hot))": n("hottest")
|
|
4032
4028
|
}, M = () => {
|
|
4033
|
-
r(3,
|
|
4029
|
+
r(3, E = "All"), r(2, p = !1), r(1, f = !1);
|
|
4034
4030
|
let d = JSON.parse(localStorage.getItem("vendorSortingBy"))?.[h];
|
|
4035
|
-
d ? r(3,
|
|
4036
|
-
},
|
|
4037
|
-
r(3,
|
|
4038
|
-
let
|
|
4039
|
-
|
|
4040
|
-
for (let R in
|
|
4041
|
-
if (
|
|
4042
|
-
|
|
4031
|
+
d ? r(3, E = d) : r(3, E = "All"), r(3, E = P[d]);
|
|
4032
|
+
}, B = (d) => {
|
|
4033
|
+
r(3, E = d);
|
|
4034
|
+
let H = localStorage.getItem("vendorSortingBy");
|
|
4035
|
+
g = d;
|
|
4036
|
+
for (let R in P)
|
|
4037
|
+
if (P[R] === d) {
|
|
4038
|
+
g = R;
|
|
4043
4039
|
break;
|
|
4044
4040
|
}
|
|
4045
|
-
|
|
4041
|
+
H == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [h]: g })) : (H = JSON.parse(H), H[h] = g, localStorage.setItem("vendorSortingBy", JSON.stringify(H))), window.postMessage(
|
|
4046
4042
|
{
|
|
4047
4043
|
type: "ApplySorter",
|
|
4048
|
-
sortBy:
|
|
4044
|
+
sortBy: g,
|
|
4049
4045
|
itemId: h
|
|
4050
4046
|
},
|
|
4051
4047
|
window.location.href
|
|
4052
|
-
), r(1,
|
|
4053
|
-
},
|
|
4054
|
-
r(1,
|
|
4055
|
-
},
|
|
4056
|
-
d.data.type == "FilterOpened" && r(1,
|
|
4048
|
+
), r(1, f = !f);
|
|
4049
|
+
}, L = () => {
|
|
4050
|
+
r(1, f = !f), window.postMessage({ type: "SortingOpened" }, window.location.href);
|
|
4051
|
+
}, w = (d) => {
|
|
4052
|
+
d.data.type == "FilterOpened" && r(1, f = !1);
|
|
4057
4053
|
};
|
|
4058
|
-
ir(() => (window.addEventListener("message",
|
|
4059
|
-
window.removeEventListener("message",
|
|
4054
|
+
ir(() => (window.addEventListener("message", w, !1), () => {
|
|
4055
|
+
window.emMessageBus != null && u && u.unsubscribe(), window.removeEventListener("message", w);
|
|
4060
4056
|
}));
|
|
4061
|
-
const
|
|
4062
|
-
function
|
|
4063
|
-
|
|
4064
|
-
|
|
4057
|
+
const C = () => L(), D = (d) => B(d);
|
|
4058
|
+
function X(d) {
|
|
4059
|
+
Ce[d ? "unshift" : "push"](() => {
|
|
4060
|
+
c = d, r(0, c);
|
|
4065
4061
|
});
|
|
4066
4062
|
}
|
|
4067
4063
|
return e.$$set = (d) => {
|
|
4068
|
-
"lang" in d && r(8, i = d.lang), "translationurl" in d && r(9, o = d.translationurl), "clientstyling" in d && r(10, s = d.clientstyling), "clientstylingurl" in d && r(11, a = d.clientstylingurl), "categoryid" in d && r(12, h = d.categoryid), "mbsource" in d && r(13,
|
|
4064
|
+
"lang" in d && r(8, i = d.lang), "translationurl" in d && r(9, o = d.translationurl), "clientstyling" in d && r(10, s = d.clientstyling), "clientstylingurl" in d && r(11, a = d.clientstylingurl), "categoryid" in d && r(12, h = d.categoryid), "mbsource" in d && r(13, l = d.mbsource);
|
|
4069
4065
|
}, e.$$.update = () => {
|
|
4070
4066
|
e.$$.dirty & /*categoryid*/
|
|
4071
4067
|
4096 && h && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4072
|
-
1025 && s &&
|
|
4073
|
-
2049 && a &&
|
|
4074
|
-
8193 &&
|
|
4075
|
-
512 && o &&
|
|
4068
|
+
1025 && s && c && yr(c, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4069
|
+
2049 && a && c && xr(c, a), e.$$.dirty & /*customStylingContainer, mbsource*/
|
|
4070
|
+
8193 && c && vr(c, `${l}.Style`), e.$$.dirty & /*translationurl*/
|
|
4071
|
+
512 && o && N();
|
|
4076
4072
|
}, [
|
|
4077
|
-
l,
|
|
4078
4073
|
c,
|
|
4079
4074
|
f,
|
|
4080
|
-
|
|
4075
|
+
p,
|
|
4076
|
+
E,
|
|
4081
4077
|
n,
|
|
4082
|
-
|
|
4083
|
-
C,
|
|
4078
|
+
P,
|
|
4084
4079
|
B,
|
|
4080
|
+
L,
|
|
4085
4081
|
i,
|
|
4086
4082
|
o,
|
|
4087
4083
|
s,
|
|
4088
4084
|
a,
|
|
4089
4085
|
h,
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4086
|
+
l,
|
|
4087
|
+
C,
|
|
4088
|
+
D,
|
|
4089
|
+
X
|
|
4094
4090
|
];
|
|
4095
4091
|
}
|
|
4096
|
-
class
|
|
4092
|
+
class pi extends br {
|
|
4097
4093
|
constructor(t) {
|
|
4098
|
-
super(),
|
|
4094
|
+
super(), pr(
|
|
4099
4095
|
this,
|
|
4100
4096
|
t,
|
|
4101
4097
|
mi,
|
|
4102
|
-
|
|
4098
|
+
fi,
|
|
4103
4099
|
Et,
|
|
4104
4100
|
{
|
|
4105
4101
|
lang: 8,
|
|
@@ -4109,47 +4105,47 @@ class di extends br {
|
|
|
4109
4105
|
categoryid: 12,
|
|
4110
4106
|
mbsource: 13
|
|
4111
4107
|
},
|
|
4112
|
-
|
|
4108
|
+
hi
|
|
4113
4109
|
);
|
|
4114
4110
|
}
|
|
4115
4111
|
get lang() {
|
|
4116
4112
|
return this.$$.ctx[8];
|
|
4117
4113
|
}
|
|
4118
4114
|
set lang(t) {
|
|
4119
|
-
this.$$set({ lang: t }),
|
|
4115
|
+
this.$$set({ lang: t }), F();
|
|
4120
4116
|
}
|
|
4121
4117
|
get translationurl() {
|
|
4122
4118
|
return this.$$.ctx[9];
|
|
4123
4119
|
}
|
|
4124
4120
|
set translationurl(t) {
|
|
4125
|
-
this.$$set({ translationurl: t }),
|
|
4121
|
+
this.$$set({ translationurl: t }), F();
|
|
4126
4122
|
}
|
|
4127
4123
|
get clientstyling() {
|
|
4128
4124
|
return this.$$.ctx[10];
|
|
4129
4125
|
}
|
|
4130
4126
|
set clientstyling(t) {
|
|
4131
|
-
this.$$set({ clientstyling: t }),
|
|
4127
|
+
this.$$set({ clientstyling: t }), F();
|
|
4132
4128
|
}
|
|
4133
4129
|
get clientstylingurl() {
|
|
4134
4130
|
return this.$$.ctx[11];
|
|
4135
4131
|
}
|
|
4136
4132
|
set clientstylingurl(t) {
|
|
4137
|
-
this.$$set({ clientstylingurl: t }),
|
|
4133
|
+
this.$$set({ clientstylingurl: t }), F();
|
|
4138
4134
|
}
|
|
4139
4135
|
get categoryid() {
|
|
4140
4136
|
return this.$$.ctx[12];
|
|
4141
4137
|
}
|
|
4142
4138
|
set categoryid(t) {
|
|
4143
|
-
this.$$set({ categoryid: t }),
|
|
4139
|
+
this.$$set({ categoryid: t }), F();
|
|
4144
4140
|
}
|
|
4145
4141
|
get mbsource() {
|
|
4146
4142
|
return this.$$.ctx[13];
|
|
4147
4143
|
}
|
|
4148
4144
|
set mbsource(t) {
|
|
4149
|
-
this.$$set({ mbsource: t }),
|
|
4145
|
+
this.$$set({ mbsource: t }), F();
|
|
4150
4146
|
}
|
|
4151
4147
|
}
|
|
4152
|
-
dr(
|
|
4148
|
+
dr(pi, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);
|
|
4153
4149
|
export {
|
|
4154
|
-
|
|
4150
|
+
pi as C
|
|
4155
4151
|
};
|