@everymatrix/casino-sort 1.86.2 → 1.86.3
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-B6Q4IW6U.js → CasinoSort-BADl-v9A.js} +679 -683
- package/components/CasinoSort-BAsq8D6d.cjs +16 -0
- package/components/{CasinoSort-CG1_pDDV.js → CasinoSort-D5KS311Q.js} +630 -634
- 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-CBO6dfMj.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), () => {
|
|
@@ -471,20 +471,20 @@ function vr(e, t, r) {
|
|
|
471
471
|
const J = [];
|
|
472
472
|
function Er(e, t) {
|
|
473
473
|
return {
|
|
474
|
-
subscribe:
|
|
474
|
+
subscribe: ve(e, t).subscribe
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function ve(e, t = $) {
|
|
478
478
|
let r;
|
|
479
479
|
const n = /* @__PURE__ */ new Set();
|
|
480
480
|
function i(a) {
|
|
481
481
|
if (Et(e, a) && (e = a, r)) {
|
|
482
482
|
const h = !J.length;
|
|
483
|
-
for (const
|
|
484
|
-
|
|
483
|
+
for (const l of n)
|
|
484
|
+
l[1](), J.push(l, e);
|
|
485
485
|
if (h) {
|
|
486
|
-
for (let
|
|
487
|
-
J[
|
|
486
|
+
for (let l = 0; l < J.length; l += 2)
|
|
487
|
+
J[l][0](J[l + 1]);
|
|
488
488
|
J.length = 0;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
@@ -493,9 +493,9 @@ function _e(e, t = $) {
|
|
|
493
493
|
i(a(e));
|
|
494
494
|
}
|
|
495
495
|
function s(a, h = $) {
|
|
496
|
-
const
|
|
497
|
-
return n.add(
|
|
498
|
-
n.delete(
|
|
496
|
+
const l = [a, h];
|
|
497
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || $), a(e), () => {
|
|
498
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
501
|
return { set: i, update: o, subscribe: s };
|
|
@@ -507,27 +507,27 @@ function re(e, t, r) {
|
|
|
507
507
|
const o = t.length < 2;
|
|
508
508
|
return Er(r, (s, a) => {
|
|
509
509
|
let h = !1;
|
|
510
|
-
const
|
|
511
|
-
let
|
|
510
|
+
const l = [];
|
|
511
|
+
let u = 0, c = $;
|
|
512
512
|
const f = () => {
|
|
513
|
-
if (
|
|
513
|
+
if (u)
|
|
514
514
|
return;
|
|
515
515
|
c();
|
|
516
|
-
const
|
|
517
|
-
o ? s(
|
|
518
|
-
},
|
|
519
|
-
(
|
|
520
|
-
|
|
521
|
-
(
|
|
522
|
-
|
|
516
|
+
const g = t(n ? l[0] : l, s, a);
|
|
517
|
+
o ? s(g) : c = Xe(g) ? g : $;
|
|
518
|
+
}, p = i.map(
|
|
519
|
+
(g, E) => _t(
|
|
520
|
+
g,
|
|
521
|
+
(N) => {
|
|
522
|
+
l[E] = N, u &= ~(1 << E), h && f();
|
|
523
523
|
},
|
|
524
524
|
() => {
|
|
525
|
-
|
|
525
|
+
u |= 1 << E;
|
|
526
526
|
}
|
|
527
527
|
)
|
|
528
528
|
);
|
|
529
529
|
return h = !0, f(), function() {
|
|
530
|
-
|
|
530
|
+
he(p), c(), h = !1;
|
|
531
531
|
};
|
|
532
532
|
});
|
|
533
533
|
}
|
|
@@ -554,12 +554,12 @@ function Nr(e) {
|
|
|
554
554
|
function le(e, t) {
|
|
555
555
|
return t.clone !== !1 && t.isMergeableObject(e) ? Y(Nr(e), e, t) : e;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Pr(e, t, r) {
|
|
558
558
|
return e.concat(t).map(function(n) {
|
|
559
559
|
return le(n, r);
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Or(e, t) {
|
|
563
563
|
if (!t.customMerge)
|
|
564
564
|
return Y;
|
|
565
565
|
var r = t.customMerge(e);
|
|
@@ -588,11 +588,11 @@ function Cr(e, t, r) {
|
|
|
588
588
|
return r.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
589
589
|
n[i] = le(e[i], r);
|
|
590
590
|
}), nt(t).forEach(function(i) {
|
|
591
|
-
Lr(e, i) || (Ht(e, i) && r.isMergeableObject(t[i]) ? n[i] =
|
|
591
|
+
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));
|
|
592
592
|
}), n;
|
|
593
593
|
}
|
|
594
594
|
function Y(e, t, r) {
|
|
595
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
595
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Pr, r.isMergeableObject = r.isMergeableObject || Sr, r.cloneUnlessOtherwiseSpecified = le;
|
|
596
596
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
597
597
|
return o ? n ? r.arrayMerge(e, t, r) : Cr(e, t, r) : le(t, r);
|
|
598
598
|
}
|
|
@@ -605,32 +605,46 @@ Y.all = function(t, r) {
|
|
|
605
605
|
};
|
|
606
606
|
var Mr = Y, Rr = Mr;
|
|
607
607
|
const $r = /* @__PURE__ */ _r(Rr);
|
|
608
|
-
|
|
609
|
-
|
|
608
|
+
/*! *****************************************************************************
|
|
609
|
+
Copyright (c) Microsoft Corporation.
|
|
610
|
+
|
|
611
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
612
|
+
purpose with or without fee is hereby granted.
|
|
613
|
+
|
|
614
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
615
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
616
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
617
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
618
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
619
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
620
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
621
|
+
***************************************************************************** */
|
|
622
|
+
var $e = function(e, t) {
|
|
623
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
610
624
|
r.__proto__ = n;
|
|
611
625
|
} || function(r, n) {
|
|
612
626
|
for (var i in n)
|
|
613
627
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
614
|
-
},
|
|
628
|
+
}, $e(e, t);
|
|
615
629
|
};
|
|
616
|
-
function
|
|
630
|
+
function Ee(e, t) {
|
|
617
631
|
if (typeof t != "function" && t !== null)
|
|
618
632
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
619
|
-
|
|
633
|
+
$e(e, t);
|
|
620
634
|
function r() {
|
|
621
635
|
this.constructor = e;
|
|
622
636
|
}
|
|
623
637
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
624
638
|
}
|
|
625
|
-
var
|
|
626
|
-
return
|
|
639
|
+
var x = function() {
|
|
640
|
+
return x = Object.assign || function(t) {
|
|
627
641
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
628
642
|
r = arguments[n];
|
|
629
643
|
for (var o in r)
|
|
630
644
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
631
645
|
}
|
|
632
646
|
return t;
|
|
633
|
-
},
|
|
647
|
+
}, x.apply(this, arguments);
|
|
634
648
|
};
|
|
635
649
|
function Dr(e, t) {
|
|
636
650
|
var r = {};
|
|
@@ -641,14 +655,14 @@ function Dr(e, t) {
|
|
|
641
655
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
642
656
|
return r;
|
|
643
657
|
}
|
|
644
|
-
function
|
|
645
|
-
if (
|
|
658
|
+
function Te(e, t, r) {
|
|
659
|
+
if (arguments.length === 2)
|
|
646
660
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
647
661
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
648
|
-
return e.concat(o ||
|
|
662
|
+
return e.concat(o || t);
|
|
649
663
|
}
|
|
650
|
-
function
|
|
651
|
-
var r = t && t.cache ? t.cache :
|
|
664
|
+
function Be(e, t) {
|
|
665
|
+
var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
|
|
652
666
|
return i(e, {
|
|
653
667
|
cache: r,
|
|
654
668
|
serializer: n
|
|
@@ -657,103 +671,95 @@ function Oe(e, t) {
|
|
|
657
671
|
function Ur(e) {
|
|
658
672
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
659
673
|
}
|
|
660
|
-
function
|
|
674
|
+
function At(e, t, r, n) {
|
|
661
675
|
var i = Ur(n) ? n : r(n), o = t.get(i);
|
|
662
676
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
663
677
|
}
|
|
664
|
-
function
|
|
678
|
+
function Tt(e, t, r) {
|
|
665
679
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
666
680
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
667
681
|
}
|
|
668
|
-
function
|
|
682
|
+
function Ze(e, t, r, n, i) {
|
|
669
683
|
return r.bind(t, e, n, i);
|
|
670
684
|
}
|
|
685
|
+
function Fr(e, t) {
|
|
686
|
+
var r = e.length === 1 ? At : Tt;
|
|
687
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
688
|
+
}
|
|
671
689
|
function Gr(e, t) {
|
|
672
|
-
|
|
673
|
-
return Tt(e, this, r, t.cache.create(), t.serializer);
|
|
690
|
+
return Ze(e, this, Tt, t.cache.create(), t.serializer);
|
|
674
691
|
}
|
|
675
692
|
function jr(e, t) {
|
|
676
|
-
return
|
|
693
|
+
return Ze(e, this, At, t.cache.create(), t.serializer);
|
|
677
694
|
}
|
|
678
695
|
var kr = function() {
|
|
679
696
|
return JSON.stringify(arguments);
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
}()
|
|
692
|
-
), zr = {
|
|
697
|
+
};
|
|
698
|
+
function We() {
|
|
699
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
700
|
+
}
|
|
701
|
+
We.prototype.get = function(e) {
|
|
702
|
+
return this.cache[e];
|
|
703
|
+
};
|
|
704
|
+
We.prototype.set = function(e, t) {
|
|
705
|
+
this.cache[e] = t;
|
|
706
|
+
};
|
|
707
|
+
var Vr = {
|
|
693
708
|
create: function() {
|
|
694
|
-
return new
|
|
709
|
+
return new We();
|
|
695
710
|
}
|
|
696
|
-
},
|
|
697
|
-
variadic:
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
701
|
-
r = arguments[n];
|
|
702
|
-
for (var o in r)
|
|
703
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
704
|
-
}
|
|
705
|
-
return t;
|
|
706
|
-
}, ye.apply(this, arguments);
|
|
707
|
-
};
|
|
708
|
-
var g;
|
|
711
|
+
}, Ne = {
|
|
712
|
+
variadic: Gr,
|
|
713
|
+
monadic: jr
|
|
714
|
+
}, b;
|
|
709
715
|
(function(e) {
|
|
710
716
|
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";
|
|
711
|
-
})(
|
|
712
|
-
var
|
|
717
|
+
})(b || (b = {}));
|
|
718
|
+
var _;
|
|
713
719
|
(function(e) {
|
|
714
720
|
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";
|
|
715
|
-
})(
|
|
721
|
+
})(_ || (_ = {}));
|
|
716
722
|
var K;
|
|
717
723
|
(function(e) {
|
|
718
724
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
719
725
|
})(K || (K = {}));
|
|
720
726
|
function it(e) {
|
|
721
|
-
return e.type ===
|
|
727
|
+
return e.type === _.literal;
|
|
722
728
|
}
|
|
723
|
-
function
|
|
724
|
-
return e.type ===
|
|
729
|
+
function zr(e) {
|
|
730
|
+
return e.type === _.argument;
|
|
725
731
|
}
|
|
726
732
|
function Bt(e) {
|
|
727
|
-
return e.type ===
|
|
733
|
+
return e.type === _.number;
|
|
728
734
|
}
|
|
729
735
|
function Nt(e) {
|
|
730
|
-
return e.type ===
|
|
731
|
-
}
|
|
732
|
-
function Ot(e) {
|
|
733
|
-
return e.type === v.time;
|
|
736
|
+
return e.type === _.date;
|
|
734
737
|
}
|
|
735
738
|
function Pt(e) {
|
|
736
|
-
return e.type ===
|
|
739
|
+
return e.type === _.time;
|
|
740
|
+
}
|
|
741
|
+
function Ot(e) {
|
|
742
|
+
return e.type === _.select;
|
|
737
743
|
}
|
|
738
744
|
function It(e) {
|
|
739
|
-
return e.type ===
|
|
745
|
+
return e.type === _.plural;
|
|
740
746
|
}
|
|
741
|
-
function
|
|
742
|
-
return e.type ===
|
|
747
|
+
function Xr(e) {
|
|
748
|
+
return e.type === _.pound;
|
|
743
749
|
}
|
|
744
750
|
function Lt(e) {
|
|
745
|
-
return e.type ===
|
|
751
|
+
return e.type === _.tag;
|
|
746
752
|
}
|
|
747
753
|
function Ct(e) {
|
|
748
754
|
return !!(e && typeof e == "object" && e.type === K.number);
|
|
749
755
|
}
|
|
750
|
-
function
|
|
756
|
+
function De(e) {
|
|
751
757
|
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
752
758
|
}
|
|
753
|
-
var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
754
|
-
function
|
|
759
|
+
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;
|
|
760
|
+
function Wr(e) {
|
|
755
761
|
var t = {};
|
|
756
|
-
return e.replace(
|
|
762
|
+
return e.replace(Zr, function(r) {
|
|
757
763
|
var n = r.length;
|
|
758
764
|
switch (r[0]) {
|
|
759
765
|
case "G":
|
|
@@ -842,28 +848,18 @@ function Jr(e) {
|
|
|
842
848
|
return "";
|
|
843
849
|
}), t;
|
|
844
850
|
}
|
|
845
|
-
var
|
|
846
|
-
|
|
847
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
848
|
-
r = arguments[n];
|
|
849
|
-
for (var o in r)
|
|
850
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
851
|
-
}
|
|
852
|
-
return t;
|
|
853
|
-
}, _.apply(this, arguments);
|
|
854
|
-
};
|
|
855
|
-
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
856
|
-
function qr(e) {
|
|
851
|
+
var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
852
|
+
function Qr(e) {
|
|
857
853
|
if (e.length === 0)
|
|
858
854
|
throw new Error("Number skeleton cannot be empty");
|
|
859
|
-
for (var t = e.split(
|
|
855
|
+
for (var t = e.split(Jr).filter(function(f) {
|
|
860
856
|
return f.length > 0;
|
|
861
857
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
862
858
|
var o = i[n], s = o.split("/");
|
|
863
859
|
if (s.length === 0)
|
|
864
860
|
throw new Error("Invalid number skeleton");
|
|
865
|
-
for (var a = s[0], h = s.slice(1),
|
|
866
|
-
var c = l
|
|
861
|
+
for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
|
|
862
|
+
var c = u[l];
|
|
867
863
|
if (c.length === 0)
|
|
868
864
|
throw new Error("Invalid number skeleton");
|
|
869
865
|
}
|
|
@@ -871,10 +867,10 @@ function qr(e) {
|
|
|
871
867
|
}
|
|
872
868
|
return r;
|
|
873
869
|
}
|
|
874
|
-
function
|
|
870
|
+
function qr(e) {
|
|
875
871
|
return e.replace(/^(.*?)-/, "");
|
|
876
872
|
}
|
|
877
|
-
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
873
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, $t = /^(0+)$/;
|
|
878
874
|
function st(e) {
|
|
879
875
|
var t = {};
|
|
880
876
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
@@ -921,7 +917,7 @@ function Dt(e) {
|
|
|
921
917
|
};
|
|
922
918
|
}
|
|
923
919
|
}
|
|
924
|
-
function
|
|
920
|
+
function Kr(e) {
|
|
925
921
|
var t;
|
|
926
922
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
927
923
|
notation: "engineering"
|
|
@@ -939,7 +935,7 @@ function at(e) {
|
|
|
939
935
|
var t = {}, r = Dt(e);
|
|
940
936
|
return r || t;
|
|
941
937
|
}
|
|
942
|
-
function
|
|
938
|
+
function en(e) {
|
|
943
939
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
944
940
|
var i = n[r];
|
|
945
941
|
switch (i.stem) {
|
|
@@ -963,7 +959,7 @@ function tn(e) {
|
|
|
963
959
|
continue;
|
|
964
960
|
case "measure-unit":
|
|
965
961
|
case "unit":
|
|
966
|
-
t.style = "unit", t.unit =
|
|
962
|
+
t.style = "unit", t.unit = qr(i.options[0]);
|
|
967
963
|
continue;
|
|
968
964
|
case "compact-short":
|
|
969
965
|
case "K":
|
|
@@ -974,13 +970,13 @@ function tn(e) {
|
|
|
974
970
|
t.notation = "compact", t.compactDisplay = "long";
|
|
975
971
|
continue;
|
|
976
972
|
case "scientific":
|
|
977
|
-
t =
|
|
978
|
-
return
|
|
973
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
974
|
+
return x(x({}, h), at(l));
|
|
979
975
|
}, {}));
|
|
980
976
|
continue;
|
|
981
977
|
case "engineering":
|
|
982
|
-
t =
|
|
983
|
-
return
|
|
978
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
979
|
+
return x(x({}, h), at(l));
|
|
984
980
|
}, {}));
|
|
985
981
|
continue;
|
|
986
982
|
case "notation-simple":
|
|
@@ -1025,13 +1021,13 @@ function tn(e) {
|
|
|
1025
1021
|
case "integer-width":
|
|
1026
1022
|
if (i.options.length > 1)
|
|
1027
1023
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1028
|
-
i.options[0].replace(
|
|
1029
|
-
if (
|
|
1030
|
-
t.minimumIntegerDigits =
|
|
1024
|
+
i.options[0].replace(Yr, function(h, l, u, c, f, p) {
|
|
1025
|
+
if (l)
|
|
1026
|
+
t.minimumIntegerDigits = u.length;
|
|
1031
1027
|
else {
|
|
1032
1028
|
if (c && f)
|
|
1033
1029
|
throw new Error("We currently do not support maximum integer digits");
|
|
1034
|
-
if (
|
|
1030
|
+
if (p)
|
|
1035
1031
|
throw new Error("We currently do not support exact integer digits");
|
|
1036
1032
|
}
|
|
1037
1033
|
return "";
|
|
@@ -1045,21 +1041,21 @@ function tn(e) {
|
|
|
1045
1041
|
if (ot.test(i.stem)) {
|
|
1046
1042
|
if (i.options.length > 1)
|
|
1047
1043
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1048
|
-
i.stem.replace(ot, function(h,
|
|
1049
|
-
return
|
|
1044
|
+
i.stem.replace(ot, function(h, l, u, c, f, p) {
|
|
1045
|
+
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), "";
|
|
1050
1046
|
});
|
|
1051
1047
|
var o = i.options[0];
|
|
1052
|
-
o === "w" ? t =
|
|
1048
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), st(o)));
|
|
1053
1049
|
continue;
|
|
1054
1050
|
}
|
|
1055
1051
|
if (Rt.test(i.stem)) {
|
|
1056
|
-
t =
|
|
1052
|
+
t = x(x({}, t), st(i.stem));
|
|
1057
1053
|
continue;
|
|
1058
1054
|
}
|
|
1059
1055
|
var s = Dt(i.stem);
|
|
1060
|
-
s && (t =
|
|
1061
|
-
var a =
|
|
1062
|
-
a && (t =
|
|
1056
|
+
s && (t = x(x({}, t), s));
|
|
1057
|
+
var a = Kr(i.stem);
|
|
1058
|
+
a && (t = x(x({}, t), a));
|
|
1063
1059
|
}
|
|
1064
1060
|
return t;
|
|
1065
1061
|
}
|
|
@@ -2478,23 +2474,23 @@ var me = {
|
|
|
2478
2474
|
"h"
|
|
2479
2475
|
]
|
|
2480
2476
|
};
|
|
2481
|
-
function
|
|
2477
|
+
function tn(e, t) {
|
|
2482
2478
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2483
2479
|
var i = e.charAt(n);
|
|
2484
2480
|
if (i === "j") {
|
|
2485
2481
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2486
2482
|
o++, n++;
|
|
2487
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a",
|
|
2488
|
-
for ((
|
|
2483
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = rn(t);
|
|
2484
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2489
2485
|
r += h;
|
|
2490
2486
|
for (; s-- > 0; )
|
|
2491
|
-
r =
|
|
2487
|
+
r = l + r;
|
|
2492
2488
|
} else
|
|
2493
2489
|
i === "J" ? r += "H" : r += i;
|
|
2494
2490
|
}
|
|
2495
2491
|
return r;
|
|
2496
2492
|
}
|
|
2497
|
-
function
|
|
2493
|
+
function rn(e) {
|
|
2498
2494
|
var t = e.hourCycle;
|
|
2499
2495
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2500
2496
|
e.hourCycles && // @ts-ignore
|
|
@@ -2516,20 +2512,20 @@ function nn(e) {
|
|
|
2516
2512
|
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
2517
2513
|
return i[0];
|
|
2518
2514
|
}
|
|
2519
|
-
var
|
|
2515
|
+
var Pe, nn = new RegExp("^".concat(Mt.source, "*")), on = new RegExp("".concat(Mt.source, "*$"));
|
|
2520
2516
|
function y(e, t) {
|
|
2521
2517
|
return { start: e, end: t };
|
|
2522
2518
|
}
|
|
2523
|
-
var
|
|
2519
|
+
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) {
|
|
2524
2520
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2525
|
-
},
|
|
2521
|
+
}, Ue = !0;
|
|
2526
2522
|
try {
|
|
2527
|
-
var
|
|
2528
|
-
|
|
2523
|
+
var pn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2524
|
+
Ue = ((Pe = pn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2529
2525
|
} catch {
|
|
2530
|
-
|
|
2526
|
+
Ue = !1;
|
|
2531
2527
|
}
|
|
2532
|
-
var
|
|
2528
|
+
var lt = sn ? (
|
|
2533
2529
|
// Native
|
|
2534
2530
|
function(t, r, n) {
|
|
2535
2531
|
return t.startsWith(r, n);
|
|
@@ -2539,7 +2535,7 @@ var ut = an ? (
|
|
|
2539
2535
|
function(t, r, n) {
|
|
2540
2536
|
return t.slice(n, n + r.length) === r;
|
|
2541
2537
|
}
|
|
2542
|
-
),
|
|
2538
|
+
), Fe = an ? String.fromCodePoint : (
|
|
2543
2539
|
// IE11
|
|
2544
2540
|
function() {
|
|
2545
2541
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2551,7 +2547,7 @@ var ut = an ? (
|
|
|
2551
2547
|
}
|
|
2552
2548
|
return n;
|
|
2553
2549
|
}
|
|
2554
|
-
),
|
|
2550
|
+
), ut = (
|
|
2555
2551
|
// native
|
|
2556
2552
|
ln ? Object.fromEntries : (
|
|
2557
2553
|
// Ponyfill
|
|
@@ -2563,7 +2559,7 @@ var ut = an ? (
|
|
|
2563
2559
|
return r;
|
|
2564
2560
|
}
|
|
2565
2561
|
)
|
|
2566
|
-
), Ut =
|
|
2562
|
+
), Ut = un ? (
|
|
2567
2563
|
// Native
|
|
2568
2564
|
function(t, r) {
|
|
2569
2565
|
return t.codePointAt(r);
|
|
@@ -2577,7 +2573,7 @@ var ut = an ? (
|
|
|
2577
2573
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2578
2574
|
}
|
|
2579
2575
|
}
|
|
2580
|
-
),
|
|
2576
|
+
), dn = hn ? (
|
|
2581
2577
|
// Native
|
|
2582
2578
|
function(t) {
|
|
2583
2579
|
return t.trimStart();
|
|
@@ -2585,9 +2581,9 @@ var ut = an ? (
|
|
|
2585
2581
|
) : (
|
|
2586
2582
|
// Ponyfill
|
|
2587
2583
|
function(t) {
|
|
2588
|
-
return t.replace(
|
|
2584
|
+
return t.replace(nn, "");
|
|
2589
2585
|
}
|
|
2590
|
-
),
|
|
2586
|
+
), bn = cn ? (
|
|
2591
2587
|
// Native
|
|
2592
2588
|
function(t) {
|
|
2593
2589
|
return t.trimEnd();
|
|
@@ -2595,32 +2591,32 @@ var ut = an ? (
|
|
|
2595
2591
|
) : (
|
|
2596
2592
|
// Ponyfill
|
|
2597
2593
|
function(t) {
|
|
2598
|
-
return t.replace(
|
|
2594
|
+
return t.replace(on, "");
|
|
2599
2595
|
}
|
|
2600
2596
|
);
|
|
2601
2597
|
function Ft(e, t) {
|
|
2602
2598
|
return new RegExp(e, t);
|
|
2603
2599
|
}
|
|
2604
|
-
var
|
|
2605
|
-
if (
|
|
2600
|
+
var Ge;
|
|
2601
|
+
if (Ue) {
|
|
2606
2602
|
var ht = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2607
|
-
|
|
2603
|
+
Ge = function(t, r) {
|
|
2608
2604
|
var n;
|
|
2609
2605
|
ht.lastIndex = r;
|
|
2610
2606
|
var i = ht.exec(t);
|
|
2611
2607
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2612
2608
|
};
|
|
2613
2609
|
} else
|
|
2614
|
-
|
|
2610
|
+
Ge = function(t, r) {
|
|
2615
2611
|
for (var n = []; ; ) {
|
|
2616
2612
|
var i = Ut(t, r);
|
|
2617
|
-
if (i === void 0 || Gt(i) ||
|
|
2613
|
+
if (i === void 0 || Gt(i) || vn(i))
|
|
2618
2614
|
break;
|
|
2619
2615
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2620
2616
|
}
|
|
2621
|
-
return
|
|
2617
|
+
return Fe.apply(void 0, n);
|
|
2622
2618
|
};
|
|
2623
|
-
var
|
|
2619
|
+
var gn = (
|
|
2624
2620
|
/** @class */
|
|
2625
2621
|
function() {
|
|
2626
2622
|
function e(t, r) {
|
|
@@ -2644,14 +2640,14 @@ var yn = (
|
|
|
2644
2640
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2645
2641
|
var a = this.clonePosition();
|
|
2646
2642
|
this.bump(), i.push({
|
|
2647
|
-
type:
|
|
2643
|
+
type: _.pound,
|
|
2648
2644
|
location: y(a, this.clonePosition())
|
|
2649
2645
|
});
|
|
2650
2646
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2651
2647
|
if (n)
|
|
2652
2648
|
break;
|
|
2653
|
-
return this.error(
|
|
2654
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2649
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2650
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2655
2651
|
var s = this.parseTag(t, r);
|
|
2656
2652
|
if (s.err)
|
|
2657
2653
|
return s;
|
|
@@ -2672,7 +2668,7 @@ var yn = (
|
|
|
2672
2668
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2673
2669
|
return {
|
|
2674
2670
|
val: {
|
|
2675
|
-
type:
|
|
2671
|
+
type: _.literal,
|
|
2676
2672
|
value: "<".concat(i, "/>"),
|
|
2677
2673
|
location: y(n, this.clonePosition())
|
|
2678
2674
|
},
|
|
@@ -2684,25 +2680,25 @@ var yn = (
|
|
|
2684
2680
|
return o;
|
|
2685
2681
|
var s = o.val, a = this.clonePosition();
|
|
2686
2682
|
if (this.bumpIf("</")) {
|
|
2687
|
-
if (this.isEOF() || !
|
|
2688
|
-
return this.error(
|
|
2689
|
-
var h = this.clonePosition(),
|
|
2690
|
-
return i !==
|
|
2683
|
+
if (this.isEOF() || !je(this.char()))
|
|
2684
|
+
return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
|
|
2685
|
+
var h = this.clonePosition(), l = this.parseTagName();
|
|
2686
|
+
return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2691
2687
|
val: {
|
|
2692
|
-
type:
|
|
2688
|
+
type: _.tag,
|
|
2693
2689
|
value: i,
|
|
2694
2690
|
children: s,
|
|
2695
2691
|
location: y(n, this.clonePosition())
|
|
2696
2692
|
},
|
|
2697
2693
|
err: null
|
|
2698
|
-
} : this.error(
|
|
2694
|
+
} : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
|
|
2699
2695
|
} else
|
|
2700
|
-
return this.error(
|
|
2696
|
+
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2701
2697
|
} else
|
|
2702
|
-
return this.error(
|
|
2698
|
+
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
2703
2699
|
}, e.prototype.parseTagName = function() {
|
|
2704
2700
|
var t = this.offset();
|
|
2705
|
-
for (this.bump(); !this.isEOF() &&
|
|
2701
|
+
for (this.bump(); !this.isEOF() && xn(this.char()); )
|
|
2706
2702
|
this.bump();
|
|
2707
2703
|
return this.message.slice(t, this.offset());
|
|
2708
2704
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2726,12 +2722,12 @@ var yn = (
|
|
|
2726
2722
|
}
|
|
2727
2723
|
var h = y(n, this.clonePosition());
|
|
2728
2724
|
return {
|
|
2729
|
-
val: { type:
|
|
2725
|
+
val: { type: _.literal, value: i, location: h },
|
|
2730
2726
|
err: null
|
|
2731
2727
|
};
|
|
2732
2728
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2733
2729
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2734
|
-
!
|
|
2730
|
+
!yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2735
2731
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2736
2732
|
if (this.isEOF() || this.char() !== 39)
|
|
2737
2733
|
return null;
|
|
@@ -2765,28 +2761,28 @@ var yn = (
|
|
|
2765
2761
|
r.push(n);
|
|
2766
2762
|
this.bump();
|
|
2767
2763
|
}
|
|
2768
|
-
return
|
|
2764
|
+
return Fe.apply(void 0, r);
|
|
2769
2765
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2770
2766
|
if (this.isEOF())
|
|
2771
2767
|
return null;
|
|
2772
2768
|
var n = this.char();
|
|
2773
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2769
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2774
2770
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2775
2771
|
var n = this.clonePosition();
|
|
2776
2772
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2777
|
-
return this.error(
|
|
2773
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2778
2774
|
if (this.char() === 125)
|
|
2779
|
-
return this.bump(), this.error(
|
|
2775
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
2780
2776
|
var i = this.parseIdentifierIfPossible().value;
|
|
2781
2777
|
if (!i)
|
|
2782
|
-
return this.error(
|
|
2778
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2783
2779
|
if (this.bumpSpace(), this.isEOF())
|
|
2784
|
-
return this.error(
|
|
2780
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2785
2781
|
switch (this.char()) {
|
|
2786
2782
|
case 125:
|
|
2787
2783
|
return this.bump(), {
|
|
2788
2784
|
val: {
|
|
2789
|
-
type:
|
|
2785
|
+
type: _.argument,
|
|
2790
2786
|
// value does not include the opening and closing braces.
|
|
2791
2787
|
value: i,
|
|
2792
2788
|
location: y(n, this.clonePosition())
|
|
@@ -2794,12 +2790,12 @@ var yn = (
|
|
|
2794
2790
|
err: null
|
|
2795
2791
|
};
|
|
2796
2792
|
case 44:
|
|
2797
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2793
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2798
2794
|
default:
|
|
2799
|
-
return this.error(
|
|
2795
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2800
2796
|
}
|
|
2801
2797
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2802
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2798
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2803
2799
|
this.bumpTo(i);
|
|
2804
2800
|
var o = this.clonePosition(), s = y(t, o);
|
|
2805
2801
|
return { value: n, location: s };
|
|
@@ -2807,58 +2803,58 @@ var yn = (
|
|
|
2807
2803
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2808
2804
|
switch (a) {
|
|
2809
2805
|
case "":
|
|
2810
|
-
return this.error(
|
|
2806
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, h));
|
|
2811
2807
|
case "number":
|
|
2812
2808
|
case "date":
|
|
2813
2809
|
case "time": {
|
|
2814
2810
|
this.bumpSpace();
|
|
2815
|
-
var
|
|
2811
|
+
var l = null;
|
|
2816
2812
|
if (this.bumpIf(",")) {
|
|
2817
2813
|
this.bumpSpace();
|
|
2818
|
-
var
|
|
2814
|
+
var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2819
2815
|
if (c.err)
|
|
2820
2816
|
return c;
|
|
2821
|
-
var f =
|
|
2817
|
+
var f = bn(c.val);
|
|
2822
2818
|
if (f.length === 0)
|
|
2823
|
-
return this.error(
|
|
2824
|
-
var
|
|
2825
|
-
|
|
2819
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2820
|
+
var p = y(u, this.clonePosition());
|
|
2821
|
+
l = { style: f, styleLocation: p };
|
|
2826
2822
|
}
|
|
2827
|
-
var
|
|
2828
|
-
if (
|
|
2829
|
-
return
|
|
2830
|
-
var
|
|
2831
|
-
if (
|
|
2832
|
-
var
|
|
2823
|
+
var g = this.tryParseArgumentClose(i);
|
|
2824
|
+
if (g.err)
|
|
2825
|
+
return g;
|
|
2826
|
+
var E = y(i, this.clonePosition());
|
|
2827
|
+
if (l && lt(l?.style, "::", 0)) {
|
|
2828
|
+
var N = dn(l.style.slice(2));
|
|
2833
2829
|
if (a === "number") {
|
|
2834
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2830
|
+
var c = this.parseNumberSkeletonFromString(N, l.styleLocation);
|
|
2835
2831
|
return c.err ? c : {
|
|
2836
|
-
val: { type:
|
|
2832
|
+
val: { type: _.number, value: n, location: E, style: c.val },
|
|
2837
2833
|
err: null
|
|
2838
2834
|
};
|
|
2839
2835
|
} else {
|
|
2840
|
-
if (
|
|
2841
|
-
return this.error(
|
|
2842
|
-
var
|
|
2843
|
-
this.locale && (
|
|
2836
|
+
if (N.length === 0)
|
|
2837
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, E);
|
|
2838
|
+
var P = N;
|
|
2839
|
+
this.locale && (P = tn(N, this.locale));
|
|
2844
2840
|
var f = {
|
|
2845
2841
|
type: K.dateTime,
|
|
2846
|
-
pattern:
|
|
2847
|
-
location:
|
|
2848
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2849
|
-
},
|
|
2842
|
+
pattern: P,
|
|
2843
|
+
location: l.styleLocation,
|
|
2844
|
+
parsedOptions: this.shouldParseSkeletons ? Wr(P) : {}
|
|
2845
|
+
}, M = a === "date" ? _.date : _.time;
|
|
2850
2846
|
return {
|
|
2851
|
-
val: { type:
|
|
2847
|
+
val: { type: M, value: n, location: E, style: f },
|
|
2852
2848
|
err: null
|
|
2853
2849
|
};
|
|
2854
2850
|
}
|
|
2855
2851
|
}
|
|
2856
2852
|
return {
|
|
2857
2853
|
val: {
|
|
2858
|
-
type: a === "number" ?
|
|
2854
|
+
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
2859
2855
|
value: n,
|
|
2860
|
-
location:
|
|
2861
|
-
style: (o =
|
|
2856
|
+
location: E,
|
|
2857
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
2862
2858
|
},
|
|
2863
2859
|
err: null
|
|
2864
2860
|
};
|
|
@@ -2868,50 +2864,50 @@ var yn = (
|
|
|
2868
2864
|
case "select": {
|
|
2869
2865
|
var B = this.clonePosition();
|
|
2870
2866
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2871
|
-
return this.error(
|
|
2867
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(B, x({}, B)));
|
|
2872
2868
|
this.bumpSpace();
|
|
2873
|
-
var
|
|
2874
|
-
if (a !== "select" &&
|
|
2869
|
+
var L = this.parseIdentifierIfPossible(), w = 0;
|
|
2870
|
+
if (a !== "select" && L.value === "offset") {
|
|
2875
2871
|
if (!this.bumpIf(":"))
|
|
2876
|
-
return this.error(
|
|
2872
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2877
2873
|
this.bumpSpace();
|
|
2878
|
-
var c = this.tryParseDecimalInteger(
|
|
2874
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2879
2875
|
if (c.err)
|
|
2880
2876
|
return c;
|
|
2881
|
-
this.bumpSpace(),
|
|
2877
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), w = c.val;
|
|
2882
2878
|
}
|
|
2883
|
-
var C = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
2879
|
+
var C = this.tryParsePluralOrSelectOptions(t, a, r, L);
|
|
2884
2880
|
if (C.err)
|
|
2885
2881
|
return C;
|
|
2886
|
-
var
|
|
2887
|
-
if (
|
|
2888
|
-
return
|
|
2889
|
-
var
|
|
2882
|
+
var g = this.tryParseArgumentClose(i);
|
|
2883
|
+
if (g.err)
|
|
2884
|
+
return g;
|
|
2885
|
+
var D = y(i, this.clonePosition());
|
|
2890
2886
|
return a === "select" ? {
|
|
2891
2887
|
val: {
|
|
2892
|
-
type:
|
|
2888
|
+
type: _.select,
|
|
2893
2889
|
value: n,
|
|
2894
|
-
options:
|
|
2895
|
-
location:
|
|
2890
|
+
options: ut(C.val),
|
|
2891
|
+
location: D
|
|
2896
2892
|
},
|
|
2897
2893
|
err: null
|
|
2898
2894
|
} : {
|
|
2899
2895
|
val: {
|
|
2900
|
-
type:
|
|
2896
|
+
type: _.plural,
|
|
2901
2897
|
value: n,
|
|
2902
|
-
options:
|
|
2903
|
-
offset:
|
|
2898
|
+
options: ut(C.val),
|
|
2899
|
+
offset: w,
|
|
2904
2900
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2905
|
-
location:
|
|
2901
|
+
location: D
|
|
2906
2902
|
},
|
|
2907
2903
|
err: null
|
|
2908
2904
|
};
|
|
2909
2905
|
}
|
|
2910
2906
|
default:
|
|
2911
|
-
return this.error(
|
|
2907
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(s, h));
|
|
2912
2908
|
}
|
|
2913
2909
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2914
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2910
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2915
2911
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2916
2912
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2917
2913
|
var n = this.char();
|
|
@@ -2920,7 +2916,7 @@ var yn = (
|
|
|
2920
2916
|
this.bump();
|
|
2921
2917
|
var i = this.clonePosition();
|
|
2922
2918
|
if (!this.bumpUntil("'"))
|
|
2923
|
-
return this.error(
|
|
2919
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
2924
2920
|
this.bump();
|
|
2925
2921
|
break;
|
|
2926
2922
|
}
|
|
@@ -2950,52 +2946,52 @@ var yn = (
|
|
|
2950
2946
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2951
2947
|
var n = [];
|
|
2952
2948
|
try {
|
|
2953
|
-
n =
|
|
2949
|
+
n = Qr(t);
|
|
2954
2950
|
} catch {
|
|
2955
|
-
return this.error(
|
|
2951
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
2956
2952
|
}
|
|
2957
2953
|
return {
|
|
2958
2954
|
val: {
|
|
2959
2955
|
type: K.number,
|
|
2960
2956
|
tokens: n,
|
|
2961
2957
|
location: r,
|
|
2962
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2958
|
+
parsedOptions: this.shouldParseSkeletons ? en(n) : {}
|
|
2963
2959
|
},
|
|
2964
2960
|
err: null
|
|
2965
2961
|
};
|
|
2966
2962
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2967
|
-
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(),
|
|
2968
|
-
if (
|
|
2963
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
|
2964
|
+
if (l.length === 0) {
|
|
2969
2965
|
var c = this.clonePosition();
|
|
2970
2966
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2971
|
-
var f = this.tryParseDecimalInteger(
|
|
2967
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2972
2968
|
if (f.err)
|
|
2973
2969
|
return f;
|
|
2974
|
-
|
|
2970
|
+
u = y(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
2975
2971
|
} else
|
|
2976
2972
|
break;
|
|
2977
2973
|
}
|
|
2978
|
-
if (h.has(
|
|
2979
|
-
return this.error(r === "select" ?
|
|
2980
|
-
|
|
2981
|
-
var
|
|
2974
|
+
if (h.has(l))
|
|
2975
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
2976
|
+
l === "other" && (s = !0), this.bumpSpace();
|
|
2977
|
+
var p = this.clonePosition();
|
|
2982
2978
|
if (!this.bumpIf("{"))
|
|
2983
|
-
return this.error(r === "select" ?
|
|
2984
|
-
var
|
|
2985
|
-
if (
|
|
2986
|
-
return
|
|
2987
|
-
var
|
|
2988
|
-
if (
|
|
2989
|
-
return
|
|
2979
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
2980
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
2981
|
+
if (g.err)
|
|
2982
|
+
return g;
|
|
2983
|
+
var E = this.tryParseArgumentClose(p);
|
|
2984
|
+
if (E.err)
|
|
2985
|
+
return E;
|
|
2990
2986
|
a.push([
|
|
2991
|
-
|
|
2987
|
+
l,
|
|
2992
2988
|
{
|
|
2993
|
-
value:
|
|
2994
|
-
location: y(
|
|
2989
|
+
value: g.val,
|
|
2990
|
+
location: y(p, this.clonePosition())
|
|
2995
2991
|
}
|
|
2996
|
-
]), h.add(
|
|
2992
|
+
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
2997
2993
|
}
|
|
2998
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
2994
|
+
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 };
|
|
2999
2995
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3000
2996
|
var n = 1, i = this.clonePosition();
|
|
3001
2997
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3041,7 +3037,7 @@ var yn = (
|
|
|
3041
3037
|
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);
|
|
3042
3038
|
}
|
|
3043
3039
|
}, e.prototype.bumpIf = function(t) {
|
|
3044
|
-
if (
|
|
3040
|
+
if (lt(this.message, t, this.offset())) {
|
|
3045
3041
|
for (var r = 0; r < t.length; r++)
|
|
3046
3042
|
this.bump();
|
|
3047
3043
|
return !0;
|
|
@@ -3073,47 +3069,47 @@ var yn = (
|
|
|
3073
3069
|
}, e;
|
|
3074
3070
|
}()
|
|
3075
3071
|
);
|
|
3076
|
-
function
|
|
3072
|
+
function je(e) {
|
|
3077
3073
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3078
3074
|
}
|
|
3079
|
-
function
|
|
3080
|
-
return
|
|
3075
|
+
function yn(e) {
|
|
3076
|
+
return je(e) || e === 47;
|
|
3081
3077
|
}
|
|
3082
|
-
function
|
|
3078
|
+
function xn(e) {
|
|
3083
3079
|
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;
|
|
3084
3080
|
}
|
|
3085
3081
|
function Gt(e) {
|
|
3086
3082
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3087
3083
|
}
|
|
3088
|
-
function
|
|
3084
|
+
function vn(e) {
|
|
3089
3085
|
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;
|
|
3090
3086
|
}
|
|
3091
|
-
function
|
|
3087
|
+
function ke(e) {
|
|
3092
3088
|
e.forEach(function(t) {
|
|
3093
|
-
if (delete t.location,
|
|
3089
|
+
if (delete t.location, Ot(t) || It(t))
|
|
3094
3090
|
for (var r in t.options)
|
|
3095
|
-
delete t.options[r].location,
|
|
3091
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3096
3092
|
else
|
|
3097
|
-
Bt(t) && Ct(t.style) || (Nt(t) ||
|
|
3093
|
+
Bt(t) && Ct(t.style) || (Nt(t) || Pt(t)) && De(t.style) ? delete t.style.location : Lt(t) && ke(t.children);
|
|
3098
3094
|
});
|
|
3099
3095
|
}
|
|
3100
|
-
function
|
|
3101
|
-
t === void 0 && (t = {}), t =
|
|
3102
|
-
var r = new
|
|
3096
|
+
function En(e, t) {
|
|
3097
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3098
|
+
var r = new gn(e, t).parse();
|
|
3103
3099
|
if (r.err) {
|
|
3104
|
-
var n = SyntaxError(
|
|
3100
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3105
3101
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3106
3102
|
}
|
|
3107
|
-
return t?.captureLocation ||
|
|
3103
|
+
return t?.captureLocation || ke(r.val), r.val;
|
|
3108
3104
|
}
|
|
3109
3105
|
var ee;
|
|
3110
3106
|
(function(e) {
|
|
3111
3107
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3112
3108
|
})(ee || (ee = {}));
|
|
3113
|
-
var
|
|
3109
|
+
var _e = (
|
|
3114
3110
|
/** @class */
|
|
3115
3111
|
function(e) {
|
|
3116
|
-
|
|
3112
|
+
Ee(t, e);
|
|
3117
3113
|
function t(r, n, i) {
|
|
3118
3114
|
var o = e.call(this, r) || this;
|
|
3119
3115
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3125,152 +3121,152 @@ var we = (
|
|
|
3125
3121
|
), ct = (
|
|
3126
3122
|
/** @class */
|
|
3127
3123
|
function(e) {
|
|
3128
|
-
|
|
3124
|
+
Ee(t, e);
|
|
3129
3125
|
function t(r, n, i, o) {
|
|
3130
3126
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
|
|
3131
3127
|
}
|
|
3132
3128
|
return t;
|
|
3133
|
-
}(
|
|
3134
|
-
),
|
|
3129
|
+
}(_e)
|
|
3130
|
+
), _n = (
|
|
3135
3131
|
/** @class */
|
|
3136
3132
|
function(e) {
|
|
3137
|
-
|
|
3133
|
+
Ee(t, e);
|
|
3138
3134
|
function t(r, n, i) {
|
|
3139
3135
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
|
3140
3136
|
}
|
|
3141
3137
|
return t;
|
|
3142
|
-
}(
|
|
3143
|
-
),
|
|
3138
|
+
}(_e)
|
|
3139
|
+
), Sn = (
|
|
3144
3140
|
/** @class */
|
|
3145
3141
|
function(e) {
|
|
3146
|
-
|
|
3142
|
+
Ee(t, e);
|
|
3147
3143
|
function t(r, n) {
|
|
3148
3144
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
|
3149
3145
|
}
|
|
3150
3146
|
return t;
|
|
3151
|
-
}(
|
|
3152
|
-
),
|
|
3147
|
+
}(_e)
|
|
3148
|
+
), I;
|
|
3153
3149
|
(function(e) {
|
|
3154
3150
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3155
|
-
})(
|
|
3156
|
-
function
|
|
3151
|
+
})(I || (I = {}));
|
|
3152
|
+
function wn(e) {
|
|
3157
3153
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3158
3154
|
var n = t[t.length - 1];
|
|
3159
|
-
return !n || n.type !==
|
|
3155
|
+
return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
|
|
3160
3156
|
}, []);
|
|
3161
3157
|
}
|
|
3162
|
-
function
|
|
3158
|
+
function Hn(e) {
|
|
3163
3159
|
return typeof e == "function";
|
|
3164
3160
|
}
|
|
3165
|
-
function
|
|
3161
|
+
function de(e, t, r, n, i, o, s) {
|
|
3166
3162
|
if (e.length === 1 && it(e[0]))
|
|
3167
3163
|
return [
|
|
3168
3164
|
{
|
|
3169
|
-
type:
|
|
3165
|
+
type: I.literal,
|
|
3170
3166
|
value: e[0].value
|
|
3171
3167
|
}
|
|
3172
3168
|
];
|
|
3173
|
-
for (var a = [], h = 0,
|
|
3174
|
-
var
|
|
3175
|
-
if (it(
|
|
3169
|
+
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
|
3170
|
+
var u = l[h];
|
|
3171
|
+
if (it(u)) {
|
|
3176
3172
|
a.push({
|
|
3177
|
-
type:
|
|
3178
|
-
value:
|
|
3173
|
+
type: I.literal,
|
|
3174
|
+
value: u.value
|
|
3179
3175
|
});
|
|
3180
3176
|
continue;
|
|
3181
3177
|
}
|
|
3182
|
-
if (
|
|
3178
|
+
if (Xr(u)) {
|
|
3183
3179
|
typeof o == "number" && a.push({
|
|
3184
|
-
type:
|
|
3180
|
+
type: I.literal,
|
|
3185
3181
|
value: r.getNumberFormat(t).format(o)
|
|
3186
3182
|
});
|
|
3187
3183
|
continue;
|
|
3188
3184
|
}
|
|
3189
|
-
var c =
|
|
3185
|
+
var c = u.value;
|
|
3190
3186
|
if (!(i && c in i))
|
|
3191
|
-
throw new
|
|
3187
|
+
throw new Sn(c, s);
|
|
3192
3188
|
var f = i[c];
|
|
3193
|
-
if (
|
|
3189
|
+
if (zr(u)) {
|
|
3194
3190
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3195
|
-
type: typeof f == "string" ?
|
|
3191
|
+
type: typeof f == "string" ? I.literal : I.object,
|
|
3196
3192
|
value: f
|
|
3197
3193
|
});
|
|
3198
3194
|
continue;
|
|
3199
3195
|
}
|
|
3200
|
-
if (Nt(
|
|
3201
|
-
var
|
|
3196
|
+
if (Nt(u)) {
|
|
3197
|
+
var p = typeof u.style == "string" ? n.date[u.style] : De(u.style) ? u.style.parsedOptions : void 0;
|
|
3202
3198
|
a.push({
|
|
3203
|
-
type:
|
|
3204
|
-
value: r.getDateTimeFormat(t,
|
|
3199
|
+
type: I.literal,
|
|
3200
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3205
3201
|
});
|
|
3206
3202
|
continue;
|
|
3207
3203
|
}
|
|
3208
|
-
if (
|
|
3209
|
-
var
|
|
3204
|
+
if (Pt(u)) {
|
|
3205
|
+
var p = typeof u.style == "string" ? n.time[u.style] : De(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3210
3206
|
a.push({
|
|
3211
|
-
type:
|
|
3212
|
-
value: r.getDateTimeFormat(t,
|
|
3207
|
+
type: I.literal,
|
|
3208
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3213
3209
|
});
|
|
3214
3210
|
continue;
|
|
3215
3211
|
}
|
|
3216
|
-
if (Bt(
|
|
3217
|
-
var
|
|
3218
|
-
|
|
3219
|
-
type:
|
|
3220
|
-
value: r.getNumberFormat(t,
|
|
3212
|
+
if (Bt(u)) {
|
|
3213
|
+
var p = typeof u.style == "string" ? n.number[u.style] : Ct(u.style) ? u.style.parsedOptions : void 0;
|
|
3214
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3215
|
+
type: I.literal,
|
|
3216
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3221
3217
|
});
|
|
3222
3218
|
continue;
|
|
3223
3219
|
}
|
|
3224
|
-
if (Lt(
|
|
3225
|
-
var
|
|
3226
|
-
if (!
|
|
3227
|
-
throw new
|
|
3228
|
-
var
|
|
3229
|
-
return
|
|
3220
|
+
if (Lt(u)) {
|
|
3221
|
+
var g = u.children, E = u.value, N = i[E];
|
|
3222
|
+
if (!Hn(N))
|
|
3223
|
+
throw new _n(E, "function", s);
|
|
3224
|
+
var P = de(g, t, r, n, i, o), M = N(P.map(function(w) {
|
|
3225
|
+
return w.value;
|
|
3230
3226
|
}));
|
|
3231
|
-
Array.isArray(
|
|
3227
|
+
Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(w) {
|
|
3232
3228
|
return {
|
|
3233
|
-
type: typeof
|
|
3234
|
-
value:
|
|
3229
|
+
type: typeof w == "string" ? I.literal : I.object,
|
|
3230
|
+
value: w
|
|
3235
3231
|
};
|
|
3236
3232
|
}));
|
|
3237
3233
|
}
|
|
3238
|
-
if (
|
|
3239
|
-
var B =
|
|
3234
|
+
if (Ot(u)) {
|
|
3235
|
+
var B = u.options[f] || u.options.other;
|
|
3240
3236
|
if (!B)
|
|
3241
|
-
throw new ct(
|
|
3242
|
-
a.push.apply(a,
|
|
3237
|
+
throw new ct(u.value, f, Object.keys(u.options), s);
|
|
3238
|
+
a.push.apply(a, de(B.value, t, r, n, i));
|
|
3243
3239
|
continue;
|
|
3244
3240
|
}
|
|
3245
|
-
if (It(
|
|
3246
|
-
var B =
|
|
3241
|
+
if (It(u)) {
|
|
3242
|
+
var B = u.options["=".concat(f)];
|
|
3247
3243
|
if (!B) {
|
|
3248
3244
|
if (!Intl.PluralRules)
|
|
3249
|
-
throw new
|
|
3245
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3250
3246
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3251
3247
|
`, ee.MISSING_INTL_API, s);
|
|
3252
|
-
var
|
|
3253
|
-
B =
|
|
3248
|
+
var L = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
|
3249
|
+
B = u.options[L] || u.options.other;
|
|
3254
3250
|
}
|
|
3255
3251
|
if (!B)
|
|
3256
|
-
throw new ct(
|
|
3257
|
-
a.push.apply(a,
|
|
3252
|
+
throw new ct(u.value, f, Object.keys(u.options), s);
|
|
3253
|
+
a.push.apply(a, de(B.value, t, r, n, i, f - (u.offset || 0)));
|
|
3258
3254
|
continue;
|
|
3259
3255
|
}
|
|
3260
3256
|
}
|
|
3261
|
-
return
|
|
3257
|
+
return wn(a);
|
|
3262
3258
|
}
|
|
3263
|
-
function
|
|
3264
|
-
return t ?
|
|
3265
|
-
return r[n] =
|
|
3259
|
+
function An(e, t) {
|
|
3260
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3261
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3266
3262
|
}, {})) : e;
|
|
3267
3263
|
}
|
|
3268
|
-
function
|
|
3264
|
+
function Tn(e, t) {
|
|
3269
3265
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3270
|
-
return r[n] =
|
|
3271
|
-
},
|
|
3266
|
+
return r[n] = An(e[n], t[n]), r;
|
|
3267
|
+
}, x({}, e)) : e;
|
|
3272
3268
|
}
|
|
3273
|
-
function
|
|
3269
|
+
function Oe(e) {
|
|
3274
3270
|
return {
|
|
3275
3271
|
create: function() {
|
|
3276
3272
|
return {
|
|
@@ -3284,39 +3280,39 @@ function Le(e) {
|
|
|
3284
3280
|
}
|
|
3285
3281
|
};
|
|
3286
3282
|
}
|
|
3287
|
-
function
|
|
3283
|
+
function Bn(e) {
|
|
3288
3284
|
return e === void 0 && (e = {
|
|
3289
3285
|
number: {},
|
|
3290
3286
|
dateTime: {},
|
|
3291
3287
|
pluralRules: {}
|
|
3292
3288
|
}), {
|
|
3293
|
-
getNumberFormat:
|
|
3289
|
+
getNumberFormat: Be(function() {
|
|
3294
3290
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3295
3291
|
r[n] = arguments[n];
|
|
3296
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3292
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3297
3293
|
}, {
|
|
3298
|
-
cache:
|
|
3299
|
-
strategy:
|
|
3294
|
+
cache: Oe(e.number),
|
|
3295
|
+
strategy: Ne.variadic
|
|
3300
3296
|
}),
|
|
3301
|
-
getDateTimeFormat:
|
|
3297
|
+
getDateTimeFormat: Be(function() {
|
|
3302
3298
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3303
3299
|
r[n] = arguments[n];
|
|
3304
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3300
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3305
3301
|
}, {
|
|
3306
|
-
cache:
|
|
3307
|
-
strategy:
|
|
3302
|
+
cache: Oe(e.dateTime),
|
|
3303
|
+
strategy: Ne.variadic
|
|
3308
3304
|
}),
|
|
3309
|
-
getPluralRules:
|
|
3305
|
+
getPluralRules: Be(function() {
|
|
3310
3306
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3311
3307
|
r[n] = arguments[n];
|
|
3312
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3308
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Te([void 0], r, !1)))();
|
|
3313
3309
|
}, {
|
|
3314
|
-
cache:
|
|
3315
|
-
strategy:
|
|
3310
|
+
cache: Oe(e.pluralRules),
|
|
3311
|
+
strategy: Ne.variadic
|
|
3316
3312
|
})
|
|
3317
3313
|
};
|
|
3318
3314
|
}
|
|
3319
|
-
var
|
|
3315
|
+
var Nn = (
|
|
3320
3316
|
/** @class */
|
|
3321
3317
|
function() {
|
|
3322
3318
|
function e(t, r, n, i) {
|
|
@@ -3327,15 +3323,15 @@ var On = (
|
|
|
3327
3323
|
dateTime: {},
|
|
3328
3324
|
pluralRules: {}
|
|
3329
3325
|
}, this.format = function(h) {
|
|
3330
|
-
var
|
|
3331
|
-
if (
|
|
3332
|
-
return
|
|
3333
|
-
var
|
|
3334
|
-
return !c.length || f.type !==
|
|
3326
|
+
var l = o.formatToParts(h);
|
|
3327
|
+
if (l.length === 1)
|
|
3328
|
+
return l[0].value;
|
|
3329
|
+
var u = l.reduce(function(c, f) {
|
|
3330
|
+
return !c.length || f.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3335
3331
|
}, []);
|
|
3336
|
-
return
|
|
3332
|
+
return u.length <= 1 ? u[0] || "" : u;
|
|
3337
3333
|
}, this.formatToParts = function(h) {
|
|
3338
|
-
return
|
|
3334
|
+
return de(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3339
3335
|
}, this.resolvedOptions = function() {
|
|
3340
3336
|
var h;
|
|
3341
3337
|
return {
|
|
@@ -3349,12 +3345,12 @@ var On = (
|
|
|
3349
3345
|
var s = i || {};
|
|
3350
3346
|
s.formatters;
|
|
3351
3347
|
var a = Dr(s, ["formatters"]);
|
|
3352
|
-
this.ast = e.__parse(t,
|
|
3348
|
+
this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
|
|
3353
3349
|
} else
|
|
3354
3350
|
this.ast = t;
|
|
3355
3351
|
if (!Array.isArray(this.ast))
|
|
3356
3352
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3357
|
-
this.formats =
|
|
3353
|
+
this.formats = Tn(e.formats, n), this.formatters = i && i.formatters || Bn(this.formatterCache);
|
|
3358
3354
|
}
|
|
3359
3355
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3360
3356
|
get: function() {
|
|
@@ -3367,7 +3363,7 @@ var On = (
|
|
|
3367
3363
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3368
3364
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3369
3365
|
}
|
|
3370
|
-
}, e.__parse =
|
|
3366
|
+
}, e.__parse = En, e.formats = {
|
|
3371
3367
|
number: {
|
|
3372
3368
|
integer: {
|
|
3373
3369
|
maximumFractionDigits: 0
|
|
@@ -3449,36 +3445,36 @@ function Pn(e, t) {
|
|
|
3449
3445
|
n = void 0;
|
|
3450
3446
|
return n;
|
|
3451
3447
|
}
|
|
3452
|
-
const
|
|
3448
|
+
const G = {}, On = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), jt = (e, t) => {
|
|
3453
3449
|
if (t == null)
|
|
3454
3450
|
return;
|
|
3455
|
-
if (t in
|
|
3456
|
-
return
|
|
3457
|
-
const r =
|
|
3451
|
+
if (t in G && e in G[t])
|
|
3452
|
+
return G[t][e];
|
|
3453
|
+
const r = Se(t);
|
|
3458
3454
|
for (let n = 0; n < r.length; n++) {
|
|
3459
|
-
const i = r[n], o =
|
|
3455
|
+
const i = r[n], o = Ln(i, e);
|
|
3460
3456
|
if (o)
|
|
3461
|
-
return
|
|
3457
|
+
return On(e, t, o);
|
|
3462
3458
|
}
|
|
3463
3459
|
};
|
|
3464
3460
|
let Je;
|
|
3465
|
-
const ne =
|
|
3466
|
-
function
|
|
3461
|
+
const ne = ve({});
|
|
3462
|
+
function In(e) {
|
|
3467
3463
|
return Je[e] || null;
|
|
3468
3464
|
}
|
|
3469
3465
|
function kt(e) {
|
|
3470
3466
|
return e in Je;
|
|
3471
3467
|
}
|
|
3472
|
-
function
|
|
3468
|
+
function Ln(e, t) {
|
|
3473
3469
|
if (!kt(e))
|
|
3474
3470
|
return null;
|
|
3475
|
-
const r =
|
|
3471
|
+
const r = In(e);
|
|
3476
3472
|
return Pn(r, t);
|
|
3477
3473
|
}
|
|
3478
|
-
function
|
|
3474
|
+
function Cn(e) {
|
|
3479
3475
|
if (e == null)
|
|
3480
3476
|
return;
|
|
3481
|
-
const t =
|
|
3477
|
+
const t = Se(e);
|
|
3482
3478
|
for (let r = 0; r < t.length; r++) {
|
|
3483
3479
|
const n = t[r];
|
|
3484
3480
|
if (kt(n))
|
|
@@ -3486,55 +3482,55 @@ function Mn(e) {
|
|
|
3486
3482
|
}
|
|
3487
3483
|
}
|
|
3488
3484
|
function Vt(e, ...t) {
|
|
3489
|
-
delete
|
|
3485
|
+
delete G[e], ne.update((r) => (r[e] = $r.all([r[e] || {}, ...t]), r));
|
|
3490
3486
|
}
|
|
3491
3487
|
re(
|
|
3492
3488
|
[ne],
|
|
3493
3489
|
([e]) => Object.keys(e)
|
|
3494
3490
|
);
|
|
3495
3491
|
ne.subscribe((e) => Je = e);
|
|
3496
|
-
const
|
|
3497
|
-
function
|
|
3498
|
-
|
|
3492
|
+
const be = {};
|
|
3493
|
+
function Mn(e, t) {
|
|
3494
|
+
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3499
3495
|
}
|
|
3500
3496
|
function zt(e) {
|
|
3501
|
-
return
|
|
3497
|
+
return be[e];
|
|
3502
3498
|
}
|
|
3503
|
-
function
|
|
3504
|
-
return
|
|
3499
|
+
function Rn(e) {
|
|
3500
|
+
return Se(e).map((t) => {
|
|
3505
3501
|
const r = zt(t);
|
|
3506
3502
|
return [t, r ? [...r] : []];
|
|
3507
3503
|
}).filter(([, t]) => t.length > 0);
|
|
3508
3504
|
}
|
|
3509
|
-
function
|
|
3510
|
-
return e == null ? !1 :
|
|
3505
|
+
function Ve(e) {
|
|
3506
|
+
return e == null ? !1 : Se(e).some(
|
|
3511
3507
|
(t) => {
|
|
3512
3508
|
var r;
|
|
3513
3509
|
return (r = zt(t)) == null ? void 0 : r.size;
|
|
3514
3510
|
}
|
|
3515
3511
|
);
|
|
3516
3512
|
}
|
|
3517
|
-
function
|
|
3513
|
+
function $n(e, t) {
|
|
3518
3514
|
return Promise.all(
|
|
3519
|
-
t.map((n) => (
|
|
3515
|
+
t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
|
|
3520
3516
|
).then((n) => Vt(e, ...n));
|
|
3521
3517
|
}
|
|
3522
|
-
const
|
|
3518
|
+
const oe = {};
|
|
3523
3519
|
function Xt(e) {
|
|
3524
|
-
if (!
|
|
3525
|
-
return e in
|
|
3526
|
-
const t =
|
|
3527
|
-
return
|
|
3520
|
+
if (!Ve(e))
|
|
3521
|
+
return e in oe ? oe[e] : Promise.resolve();
|
|
3522
|
+
const t = Rn(e);
|
|
3523
|
+
return oe[e] = Promise.all(
|
|
3528
3524
|
t.map(
|
|
3529
|
-
([r, n]) =>
|
|
3525
|
+
([r, n]) => $n(r, n)
|
|
3530
3526
|
)
|
|
3531
3527
|
).then(() => {
|
|
3532
|
-
if (
|
|
3528
|
+
if (Ve(e))
|
|
3533
3529
|
return Xt(e);
|
|
3534
|
-
delete
|
|
3535
|
-
}),
|
|
3530
|
+
delete oe[e];
|
|
3531
|
+
}), oe[e];
|
|
3536
3532
|
}
|
|
3537
|
-
const
|
|
3533
|
+
const Dn = {
|
|
3538
3534
|
number: {
|
|
3539
3535
|
scientific: { notation: "scientific" },
|
|
3540
3536
|
engineering: { notation: "engineering" },
|
|
@@ -3563,159 +3559,159 @@ const Un = {
|
|
|
3563
3559
|
timeZoneName: "short"
|
|
3564
3560
|
}
|
|
3565
3561
|
}
|
|
3566
|
-
},
|
|
3562
|
+
}, Un = {
|
|
3567
3563
|
fallbackLocale: null,
|
|
3568
3564
|
loadingDelay: 200,
|
|
3569
|
-
formats:
|
|
3565
|
+
formats: Dn,
|
|
3570
3566
|
warnOnMissingMessages: !0,
|
|
3571
3567
|
handleMissingMessage: void 0,
|
|
3572
3568
|
ignoreTag: !0
|
|
3573
|
-
},
|
|
3569
|
+
}, Fn = Un;
|
|
3574
3570
|
function te() {
|
|
3575
|
-
return
|
|
3571
|
+
return Fn;
|
|
3576
3572
|
}
|
|
3577
|
-
const
|
|
3578
|
-
var
|
|
3573
|
+
const Ie = ve(!1);
|
|
3574
|
+
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) => {
|
|
3579
3575
|
for (var r in t || (t = {}))
|
|
3580
|
-
|
|
3576
|
+
Vn.call(t, r) && mt(e, r, t[r]);
|
|
3581
3577
|
if (ft)
|
|
3582
3578
|
for (var r of ft(t))
|
|
3583
|
-
|
|
3579
|
+
zn.call(t, r) && mt(e, r, t[r]);
|
|
3584
3580
|
return e;
|
|
3585
|
-
},
|
|
3586
|
-
let
|
|
3587
|
-
const
|
|
3588
|
-
function
|
|
3581
|
+
}, Zn = (e, t) => jn(e, kn(t));
|
|
3582
|
+
let ze;
|
|
3583
|
+
const ge = ve(null);
|
|
3584
|
+
function pt(e) {
|
|
3589
3585
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3590
3586
|
}
|
|
3591
|
-
function
|
|
3592
|
-
const r =
|
|
3593
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3587
|
+
function Se(e, t = te().fallbackLocale) {
|
|
3588
|
+
const r = pt(e);
|
|
3589
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3594
3590
|
}
|
|
3595
|
-
function
|
|
3596
|
-
return
|
|
3591
|
+
function z() {
|
|
3592
|
+
return ze ?? void 0;
|
|
3597
3593
|
}
|
|
3598
|
-
|
|
3599
|
-
|
|
3594
|
+
ge.subscribe((e) => {
|
|
3595
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3600
3596
|
});
|
|
3601
|
-
const
|
|
3602
|
-
if (e &&
|
|
3597
|
+
const Wn = (e) => {
|
|
3598
|
+
if (e && Cn(e) && Ve(e)) {
|
|
3603
3599
|
const { loadingDelay: t } = te();
|
|
3604
3600
|
let r;
|
|
3605
|
-
return typeof window < "u" &&
|
|
3606
|
-
() =>
|
|
3601
|
+
return typeof window < "u" && z() != null && t ? r = window.setTimeout(
|
|
3602
|
+
() => Ie.set(!0),
|
|
3607
3603
|
t
|
|
3608
|
-
) :
|
|
3609
|
-
|
|
3604
|
+
) : Ie.set(!0), Xt(e).then(() => {
|
|
3605
|
+
ge.set(e);
|
|
3610
3606
|
}).finally(() => {
|
|
3611
|
-
clearTimeout(r),
|
|
3607
|
+
clearTimeout(r), Ie.set(!1);
|
|
3612
3608
|
});
|
|
3613
3609
|
}
|
|
3614
|
-
return
|
|
3615
|
-
},
|
|
3616
|
-
set:
|
|
3617
|
-
}),
|
|
3610
|
+
return ge.set(e);
|
|
3611
|
+
}, V = Zn(Xn({}, ge), {
|
|
3612
|
+
set: Wn
|
|
3613
|
+
}), we = (e) => {
|
|
3618
3614
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3619
3615
|
return (n) => {
|
|
3620
3616
|
const i = JSON.stringify(n);
|
|
3621
3617
|
return i in t ? t[i] : t[i] = e(n);
|
|
3622
3618
|
};
|
|
3623
3619
|
};
|
|
3624
|
-
var
|
|
3620
|
+
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) => {
|
|
3625
3621
|
for (var r in t || (t = {}))
|
|
3626
3622
|
Zt.call(t, r) && dt(e, r, t[r]);
|
|
3627
|
-
if (
|
|
3628
|
-
for (var r of
|
|
3623
|
+
if (ye)
|
|
3624
|
+
for (var r of ye(t))
|
|
3629
3625
|
Wt.call(t, r) && dt(e, r, t[r]);
|
|
3630
3626
|
return e;
|
|
3631
3627
|
}, ie = (e, t) => {
|
|
3632
3628
|
var r = {};
|
|
3633
3629
|
for (var n in e)
|
|
3634
3630
|
Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3635
|
-
if (e != null &&
|
|
3636
|
-
for (var n of
|
|
3631
|
+
if (e != null && ye)
|
|
3632
|
+
for (var n of ye(e))
|
|
3637
3633
|
t.indexOf(n) < 0 && Wt.call(e, n) && (r[n] = e[n]);
|
|
3638
3634
|
return r;
|
|
3639
3635
|
};
|
|
3640
|
-
const
|
|
3636
|
+
const ue = (e, t) => {
|
|
3641
3637
|
const { formats: r } = te();
|
|
3642
3638
|
if (e in r && t in r[e])
|
|
3643
3639
|
return r[e][t];
|
|
3644
3640
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3645
|
-
},
|
|
3641
|
+
}, Qn = we(
|
|
3646
3642
|
(e) => {
|
|
3647
3643
|
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
3648
3644
|
if (r == null)
|
|
3649
3645
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3650
|
-
return n && (i =
|
|
3646
|
+
return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
|
|
3651
3647
|
}
|
|
3652
|
-
),
|
|
3648
|
+
), qn = we(
|
|
3653
3649
|
(e) => {
|
|
3654
3650
|
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
3655
3651
|
if (r == null)
|
|
3656
3652
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3657
|
-
return n ? i =
|
|
3653
|
+
return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3658
3654
|
}
|
|
3659
|
-
),
|
|
3655
|
+
), Yn = we(
|
|
3660
3656
|
(e) => {
|
|
3661
3657
|
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
3662
3658
|
if (r == null)
|
|
3663
3659
|
throw new Error(
|
|
3664
3660
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3665
3661
|
);
|
|
3666
|
-
return n ? i =
|
|
3662
|
+
return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3667
3663
|
}
|
|
3668
|
-
),
|
|
3664
|
+
), Kn = (e = {}) => {
|
|
3669
3665
|
var t = e, {
|
|
3670
|
-
locale: r =
|
|
3666
|
+
locale: r = z()
|
|
3671
3667
|
} = t, n = ie(t, [
|
|
3672
3668
|
"locale"
|
|
3673
3669
|
]);
|
|
3674
|
-
return
|
|
3675
|
-
},
|
|
3670
|
+
return Qn(Qe({ locale: r }, n));
|
|
3671
|
+
}, ei = (e = {}) => {
|
|
3676
3672
|
var t = e, {
|
|
3677
|
-
locale: r =
|
|
3673
|
+
locale: r = z()
|
|
3678
3674
|
} = t, n = ie(t, [
|
|
3679
3675
|
"locale"
|
|
3680
3676
|
]);
|
|
3681
|
-
return
|
|
3682
|
-
},
|
|
3677
|
+
return qn(Qe({ locale: r }, n));
|
|
3678
|
+
}, ti = (e = {}) => {
|
|
3683
3679
|
var t = e, {
|
|
3684
|
-
locale: r =
|
|
3680
|
+
locale: r = z()
|
|
3685
3681
|
} = t, n = ie(t, [
|
|
3686
3682
|
"locale"
|
|
3687
3683
|
]);
|
|
3688
|
-
return
|
|
3689
|
-
},
|
|
3684
|
+
return Yn(Qe({ locale: r }, n));
|
|
3685
|
+
}, ri = we(
|
|
3690
3686
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3691
|
-
(e, t =
|
|
3687
|
+
(e, t = z()) => new Nn(e, t, te().formats, {
|
|
3692
3688
|
ignoreTag: te().ignoreTag
|
|
3693
3689
|
})
|
|
3694
|
-
),
|
|
3690
|
+
), ni = (e, t = {}) => {
|
|
3695
3691
|
var r, n, i, o;
|
|
3696
3692
|
let s = t;
|
|
3697
3693
|
typeof e == "object" && (s = e, e = s.id);
|
|
3698
3694
|
const {
|
|
3699
3695
|
values: a,
|
|
3700
|
-
locale: h =
|
|
3701
|
-
default:
|
|
3696
|
+
locale: h = z(),
|
|
3697
|
+
default: l
|
|
3702
3698
|
} = s;
|
|
3703
3699
|
if (h == null)
|
|
3704
3700
|
throw new Error(
|
|
3705
3701
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3706
3702
|
);
|
|
3707
|
-
let
|
|
3708
|
-
if (!
|
|
3709
|
-
|
|
3710
|
-
else if (typeof
|
|
3703
|
+
let u = jt(e, h);
|
|
3704
|
+
if (!u)
|
|
3705
|
+
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;
|
|
3706
|
+
else if (typeof u != "string")
|
|
3711
3707
|
return console.warn(
|
|
3712
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3713
|
-
),
|
|
3708
|
+
`[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.`
|
|
3709
|
+
), u;
|
|
3714
3710
|
if (!a)
|
|
3715
|
-
return
|
|
3716
|
-
let c =
|
|
3711
|
+
return u;
|
|
3712
|
+
let c = u;
|
|
3717
3713
|
try {
|
|
3718
|
-
c =
|
|
3714
|
+
c = ri(u, h).format(a);
|
|
3719
3715
|
} catch (f) {
|
|
3720
3716
|
f instanceof Error && console.warn(
|
|
3721
3717
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3723,14 +3719,14 @@ const he = (e, t) => {
|
|
|
3723
3719
|
);
|
|
3724
3720
|
}
|
|
3725
3721
|
return c;
|
|
3726
|
-
},
|
|
3727
|
-
re([
|
|
3728
|
-
re([
|
|
3729
|
-
re([
|
|
3730
|
-
re([
|
|
3731
|
-
function
|
|
3732
|
-
|
|
3733
|
-
r == null && (ne.set(t),
|
|
3722
|
+
}, 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);
|
|
3723
|
+
re([V], () => ii);
|
|
3724
|
+
re([V], () => oi);
|
|
3725
|
+
re([V], () => si);
|
|
3726
|
+
re([V, ne], () => ai);
|
|
3727
|
+
function ui({ withLocale: e, translations: t }) {
|
|
3728
|
+
V.subscribe((r) => {
|
|
3729
|
+
r == null && (ne.set(t), V.set(e));
|
|
3734
3730
|
});
|
|
3735
3731
|
}
|
|
3736
3732
|
function bt(e, t) {
|
|
@@ -3864,84 +3860,84 @@ const gt = {
|
|
|
3864
3860
|
hottest: "Hottest"
|
|
3865
3861
|
}
|
|
3866
3862
|
};
|
|
3867
|
-
function
|
|
3863
|
+
function hi(e) {
|
|
3868
3864
|
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)}}');
|
|
3869
3865
|
}
|
|
3870
3866
|
function yt(e, t, r) {
|
|
3871
3867
|
const n = e.slice();
|
|
3872
3868
|
return n[23] = t[r], n;
|
|
3873
3869
|
}
|
|
3874
|
-
function
|
|
3875
|
-
let t, r, n, i, o, s, a, h,
|
|
3870
|
+
function ci(e) {
|
|
3871
|
+
let t, r, n, i, o, s, a, h, l, u, c, f = (
|
|
3876
3872
|
/*$_*/
|
|
3877
3873
|
e[4]("sortby") + ""
|
|
3878
|
-
),
|
|
3874
|
+
), p, g, E, N, P = (
|
|
3879
3875
|
/*vendorSortingBy*/
|
|
3880
3876
|
(e[3] || /*$_*/
|
|
3881
3877
|
e[4]("all")) + ""
|
|
3882
|
-
),
|
|
3878
|
+
), M, B, L, w, C, D, X, d, H, R, fe, He, qe, Z = rt(Object.values(
|
|
3883
3879
|
/*vendorMap*/
|
|
3884
3880
|
e[5]
|
|
3885
3881
|
)), O = [];
|
|
3886
|
-
for (let
|
|
3887
|
-
O[
|
|
3882
|
+
for (let S = 0; S < Z.length; S += 1)
|
|
3883
|
+
O[S] = xt(yt(e, Z, S));
|
|
3888
3884
|
return {
|
|
3889
3885
|
c() {
|
|
3890
|
-
t =
|
|
3891
|
-
for (let
|
|
3892
|
-
O[
|
|
3893
|
-
|
|
3894
|
-
(e[1] ? "TriangleActive" : "")),
|
|
3895
|
-
(e[1] ? "SorterSelectorOpen" : "")),
|
|
3896
|
-
(e[1] ? "SorterOpen" : "")),
|
|
3886
|
+
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");
|
|
3887
|
+
for (let S = 0; S < O.length; S += 1)
|
|
3888
|
+
O[S].c();
|
|
3889
|
+
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*/
|
|
3890
|
+
(e[1] ? "TriangleActive" : "")), m(r, "class", X = "SorterSelector " + /*isSorterActive*/
|
|
3891
|
+
(e[1] ? "SorterSelectorOpen" : "")), m(R, "class", "SorterDropdown"), m(H, "class", fe = "SorterDropdownContainer " + /*isSorterActive*/
|
|
3892
|
+
(e[1] ? "SorterOpen" : "")), m(t, "class", "SorterContainer");
|
|
3897
3893
|
},
|
|
3898
|
-
m(
|
|
3899
|
-
|
|
3894
|
+
m(S, U) {
|
|
3895
|
+
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);
|
|
3900
3896
|
for (let T = 0; T < O.length; T += 1)
|
|
3901
|
-
O[T] && O[T].m(
|
|
3902
|
-
|
|
3897
|
+
O[T] && O[T].m(R, null);
|
|
3898
|
+
He || (qe = St(
|
|
3903
3899
|
r,
|
|
3904
3900
|
"click",
|
|
3905
3901
|
/*click_handler*/
|
|
3906
3902
|
e[14]
|
|
3907
|
-
),
|
|
3903
|
+
), He = !0);
|
|
3908
3904
|
},
|
|
3909
|
-
p(
|
|
3910
|
-
if (
|
|
3905
|
+
p(S, U) {
|
|
3906
|
+
if (U & /*$_*/
|
|
3911
3907
|
16 && f !== (f = /*$_*/
|
|
3912
|
-
|
|
3913
|
-
24 &&
|
|
3914
|
-
(
|
|
3915
|
-
|
|
3916
|
-
2 &&
|
|
3917
|
-
(
|
|
3918
|
-
2 &&
|
|
3919
|
-
(
|
|
3908
|
+
S[4]("sortby") + "") && et(p, f), U & /*vendorSortingBy, $_*/
|
|
3909
|
+
24 && P !== (P = /*vendorSortingBy*/
|
|
3910
|
+
(S[3] || /*$_*/
|
|
3911
|
+
S[4]("all")) + "") && et(M, P), U & /*isSorterActive*/
|
|
3912
|
+
2 && D !== (D = "TriangleInactive " + /*isSorterActive*/
|
|
3913
|
+
(S[1] ? "TriangleActive" : "")) && m(L, "class", D), U & /*isSorterActive*/
|
|
3914
|
+
2 && X !== (X = "SorterSelector " + /*isSorterActive*/
|
|
3915
|
+
(S[1] ? "SorterSelectorOpen" : "")) && m(r, "class", X), U & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
|
|
3920
3916
|
120) {
|
|
3921
3917
|
Z = rt(Object.values(
|
|
3922
3918
|
/*vendorMap*/
|
|
3923
|
-
|
|
3919
|
+
S[5]
|
|
3924
3920
|
));
|
|
3925
3921
|
let T;
|
|
3926
3922
|
for (T = 0; T < Z.length; T += 1) {
|
|
3927
|
-
const Ye = yt(
|
|
3928
|
-
O[T] ? O[T].p(Ye,
|
|
3923
|
+
const Ye = yt(S, Z, T);
|
|
3924
|
+
O[T] ? O[T].p(Ye, U) : (O[T] = xt(Ye), O[T].c(), O[T].m(R, null));
|
|
3929
3925
|
}
|
|
3930
3926
|
for (; T < O.length; T += 1)
|
|
3931
3927
|
O[T].d(1);
|
|
3932
3928
|
O.length = Z.length;
|
|
3933
3929
|
}
|
|
3934
|
-
|
|
3935
|
-
2 &&
|
|
3936
|
-
(
|
|
3930
|
+
U & /*isSorterActive*/
|
|
3931
|
+
2 && fe !== (fe = "SorterDropdownContainer " + /*isSorterActive*/
|
|
3932
|
+
(S[1] ? "SorterOpen" : "")) && m(H, "class", fe);
|
|
3937
3933
|
},
|
|
3938
|
-
d(
|
|
3939
|
-
|
|
3934
|
+
d(S) {
|
|
3935
|
+
S && ce(t), er(O, S), He = !1, qe();
|
|
3940
3936
|
}
|
|
3941
3937
|
};
|
|
3942
3938
|
}
|
|
3943
3939
|
function xt(e) {
|
|
3944
|
-
let t, r, n, i, o, s, a, h,
|
|
3940
|
+
let t, r, n, i, o, s, a, h, l, u, c;
|
|
3945
3941
|
function f() {
|
|
3946
3942
|
return (
|
|
3947
3943
|
/*click_handler_1*/
|
|
@@ -3953,8 +3949,8 @@ function xt(e) {
|
|
|
3953
3949
|
}
|
|
3954
3950
|
return {
|
|
3955
3951
|
c() {
|
|
3956
|
-
t =
|
|
3957
|
-
e[23]}`,
|
|
3952
|
+
t = A("li"), r = A("label"), n = A("input"), o = k(), s = A("span"), a = k(), h = A("span"), h.textContent = `${/*sort*/
|
|
3953
|
+
e[23]}`, l = k(), m(n, "type", "radio"), m(n, "name", "radio"), n.value = /*sort*/
|
|
3958
3954
|
e[23], n.checked = i = /*vendorSortingBy*/
|
|
3959
3955
|
e[3] == /*sort*/
|
|
3960
3956
|
e[23] ? !0 : (
|
|
@@ -3962,14 +3958,14 @@ function xt(e) {
|
|
|
3962
3958
|
e[3] == null && /*sort*/
|
|
3963
3959
|
e[23] == /*$_*/
|
|
3964
3960
|
e[4]("all")
|
|
3965
|
-
),
|
|
3961
|
+
), m(s, "class", "SortersCheckmark"), m(r, "class", "SorterLabel CustomRadioButton"), m(t, "class", "SorterItem"), t.value = /*sort*/
|
|
3966
3962
|
e[23];
|
|
3967
3963
|
},
|
|
3968
|
-
m(
|
|
3969
|
-
|
|
3964
|
+
m(p, g) {
|
|
3965
|
+
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);
|
|
3970
3966
|
},
|
|
3971
|
-
p(
|
|
3972
|
-
e =
|
|
3967
|
+
p(p, g) {
|
|
3968
|
+
e = p, g & /*vendorSortingBy, $_*/
|
|
3973
3969
|
24 && i !== (i = /*vendorSortingBy*/
|
|
3974
3970
|
e[3] == /*sort*/
|
|
3975
3971
|
e[23] ? !0 : (
|
|
@@ -3979,25 +3975,25 @@ function xt(e) {
|
|
|
3979
3975
|
e[4]("all")
|
|
3980
3976
|
)) && (n.checked = i);
|
|
3981
3977
|
},
|
|
3982
|
-
d(
|
|
3983
|
-
|
|
3978
|
+
d(p) {
|
|
3979
|
+
p && ce(t), u = !1, c();
|
|
3984
3980
|
}
|
|
3985
3981
|
};
|
|
3986
3982
|
}
|
|
3987
|
-
function
|
|
3983
|
+
function fi(e) {
|
|
3988
3984
|
let t;
|
|
3989
3985
|
function r(o, s) {
|
|
3990
3986
|
if (!/*isLoading*/
|
|
3991
3987
|
o[2])
|
|
3992
|
-
return
|
|
3988
|
+
return ci;
|
|
3993
3989
|
}
|
|
3994
3990
|
let n = r(e), i = n && n(e);
|
|
3995
3991
|
return {
|
|
3996
3992
|
c() {
|
|
3997
|
-
t =
|
|
3993
|
+
t = A("div"), i && i.c();
|
|
3998
3994
|
},
|
|
3999
3995
|
m(o, s) {
|
|
4000
|
-
|
|
3996
|
+
xe(o, t, s), i && i.m(t, null), e[16](t);
|
|
4001
3997
|
},
|
|
4002
3998
|
p(o, [s]) {
|
|
4003
3999
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4005,103 +4001,103 @@ function pi(e) {
|
|
|
4005
4001
|
i: $,
|
|
4006
4002
|
o: $,
|
|
4007
4003
|
d(o) {
|
|
4008
|
-
o &&
|
|
4004
|
+
o && ce(t), i && i.d(), e[16](null);
|
|
4009
4005
|
}
|
|
4010
4006
|
};
|
|
4011
4007
|
}
|
|
4012
4008
|
function mi(e, t, r) {
|
|
4013
4009
|
let n;
|
|
4014
4010
|
Qt(e, li, (d) => r(4, n = d));
|
|
4015
|
-
let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid: h = "" } = t, { mbsource:
|
|
4016
|
-
|
|
4017
|
-
const
|
|
4018
|
-
fetch(o).then((
|
|
4019
|
-
Object.keys(
|
|
4020
|
-
bt(R,
|
|
4011
|
+
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";
|
|
4012
|
+
ui({ withLocale: "en", translations: {} });
|
|
4013
|
+
const N = () => {
|
|
4014
|
+
fetch(o).then((H) => H.json()).then((H) => {
|
|
4015
|
+
Object.keys(H).forEach((R) => {
|
|
4016
|
+
bt(R, H[R]);
|
|
4021
4017
|
});
|
|
4022
|
-
}).catch((
|
|
4023
|
-
console.log(
|
|
4018
|
+
}).catch((H) => {
|
|
4019
|
+
console.log(H);
|
|
4024
4020
|
});
|
|
4025
4021
|
};
|
|
4026
4022
|
Object.keys(gt).forEach((d) => {
|
|
4027
4023
|
bt(d, gt[d]);
|
|
4028
4024
|
});
|
|
4029
|
-
const
|
|
4025
|
+
const P = {
|
|
4030
4026
|
All: n("all"),
|
|
4031
4027
|
name: n("az"),
|
|
4032
4028
|
isNew: n("newest"),
|
|
4033
4029
|
"advancedTags(name(hot))": n("hottest")
|
|
4034
4030
|
}, M = () => {
|
|
4035
|
-
r(3,
|
|
4031
|
+
r(3, E = "All"), r(2, p = !1), r(1, f = !1);
|
|
4036
4032
|
let d = JSON.parse(localStorage.getItem("vendorSortingBy"))?.[h];
|
|
4037
|
-
d ? r(3,
|
|
4038
|
-
},
|
|
4039
|
-
r(3,
|
|
4040
|
-
let
|
|
4041
|
-
|
|
4042
|
-
for (let R in
|
|
4043
|
-
if (
|
|
4044
|
-
|
|
4033
|
+
d ? r(3, E = d) : r(3, E = "All"), r(3, E = P[d]);
|
|
4034
|
+
}, B = (d) => {
|
|
4035
|
+
r(3, E = d);
|
|
4036
|
+
let H = localStorage.getItem("vendorSortingBy");
|
|
4037
|
+
g = d;
|
|
4038
|
+
for (let R in P)
|
|
4039
|
+
if (P[R] === d) {
|
|
4040
|
+
g = R;
|
|
4045
4041
|
break;
|
|
4046
4042
|
}
|
|
4047
|
-
|
|
4043
|
+
H == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [h]: g })) : (H = JSON.parse(H), H[h] = g, localStorage.setItem("vendorSortingBy", JSON.stringify(H))), window.postMessage(
|
|
4048
4044
|
{
|
|
4049
4045
|
type: "ApplySorter",
|
|
4050
|
-
sortBy:
|
|
4046
|
+
sortBy: g,
|
|
4051
4047
|
itemId: h
|
|
4052
4048
|
},
|
|
4053
4049
|
window.location.href
|
|
4054
|
-
), r(1,
|
|
4055
|
-
},
|
|
4056
|
-
r(1,
|
|
4057
|
-
},
|
|
4058
|
-
d.data.type == "FilterOpened" && r(1,
|
|
4050
|
+
), r(1, f = !f);
|
|
4051
|
+
}, L = () => {
|
|
4052
|
+
r(1, f = !f), window.postMessage({ type: "SortingOpened" }, window.location.href);
|
|
4053
|
+
}, w = (d) => {
|
|
4054
|
+
d.data.type == "FilterOpened" && r(1, f = !1);
|
|
4059
4055
|
};
|
|
4060
|
-
ir(() => (window.addEventListener("message",
|
|
4061
|
-
window.removeEventListener("message",
|
|
4056
|
+
ir(() => (window.addEventListener("message", w, !1), () => {
|
|
4057
|
+
window.emMessageBus != null && u && u.unsubscribe(), window.removeEventListener("message", w);
|
|
4062
4058
|
}));
|
|
4063
|
-
const
|
|
4064
|
-
function
|
|
4065
|
-
|
|
4066
|
-
|
|
4059
|
+
const C = () => L(), D = (d) => B(d);
|
|
4060
|
+
function X(d) {
|
|
4061
|
+
Ce[d ? "unshift" : "push"](() => {
|
|
4062
|
+
c = d, r(0, c);
|
|
4067
4063
|
});
|
|
4068
4064
|
}
|
|
4069
4065
|
return e.$$set = (d) => {
|
|
4070
|
-
"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,
|
|
4066
|
+
"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);
|
|
4071
4067
|
}, e.$$.update = () => {
|
|
4072
4068
|
e.$$.dirty & /*categoryid*/
|
|
4073
4069
|
4096 && h && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4074
|
-
1025 && s &&
|
|
4075
|
-
2049 && a &&
|
|
4076
|
-
8193 &&
|
|
4077
|
-
512 && o &&
|
|
4070
|
+
1025 && s && c && yr(c, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4071
|
+
2049 && a && c && xr(c, a), e.$$.dirty & /*customStylingContainer, mbsource*/
|
|
4072
|
+
8193 && c && vr(c, `${l}.Style`), e.$$.dirty & /*translationurl*/
|
|
4073
|
+
512 && o && N();
|
|
4078
4074
|
}, [
|
|
4079
|
-
l,
|
|
4080
4075
|
c,
|
|
4081
4076
|
f,
|
|
4082
|
-
|
|
4077
|
+
p,
|
|
4078
|
+
E,
|
|
4083
4079
|
n,
|
|
4084
|
-
|
|
4085
|
-
L,
|
|
4080
|
+
P,
|
|
4086
4081
|
B,
|
|
4082
|
+
L,
|
|
4087
4083
|
i,
|
|
4088
4084
|
o,
|
|
4089
4085
|
s,
|
|
4090
4086
|
a,
|
|
4091
4087
|
h,
|
|
4092
|
-
|
|
4093
|
-
A,
|
|
4088
|
+
l,
|
|
4094
4089
|
C,
|
|
4095
|
-
|
|
4090
|
+
D,
|
|
4091
|
+
X
|
|
4096
4092
|
];
|
|
4097
4093
|
}
|
|
4098
|
-
class
|
|
4094
|
+
class pi extends br {
|
|
4099
4095
|
constructor(t) {
|
|
4100
|
-
super(),
|
|
4096
|
+
super(), pr(
|
|
4101
4097
|
this,
|
|
4102
4098
|
t,
|
|
4103
4099
|
mi,
|
|
4104
|
-
|
|
4100
|
+
fi,
|
|
4105
4101
|
Et,
|
|
4106
4102
|
{
|
|
4107
4103
|
lang: 8,
|
|
@@ -4111,47 +4107,47 @@ class di extends br {
|
|
|
4111
4107
|
categoryid: 12,
|
|
4112
4108
|
mbsource: 13
|
|
4113
4109
|
},
|
|
4114
|
-
|
|
4110
|
+
hi
|
|
4115
4111
|
);
|
|
4116
4112
|
}
|
|
4117
4113
|
get lang() {
|
|
4118
4114
|
return this.$$.ctx[8];
|
|
4119
4115
|
}
|
|
4120
4116
|
set lang(t) {
|
|
4121
|
-
this.$$set({ lang: t }),
|
|
4117
|
+
this.$$set({ lang: t }), F();
|
|
4122
4118
|
}
|
|
4123
4119
|
get translationurl() {
|
|
4124
4120
|
return this.$$.ctx[9];
|
|
4125
4121
|
}
|
|
4126
4122
|
set translationurl(t) {
|
|
4127
|
-
this.$$set({ translationurl: t }),
|
|
4123
|
+
this.$$set({ translationurl: t }), F();
|
|
4128
4124
|
}
|
|
4129
4125
|
get clientstyling() {
|
|
4130
4126
|
return this.$$.ctx[10];
|
|
4131
4127
|
}
|
|
4132
4128
|
set clientstyling(t) {
|
|
4133
|
-
this.$$set({ clientstyling: t }),
|
|
4129
|
+
this.$$set({ clientstyling: t }), F();
|
|
4134
4130
|
}
|
|
4135
4131
|
get clientstylingurl() {
|
|
4136
4132
|
return this.$$.ctx[11];
|
|
4137
4133
|
}
|
|
4138
4134
|
set clientstylingurl(t) {
|
|
4139
|
-
this.$$set({ clientstylingurl: t }),
|
|
4135
|
+
this.$$set({ clientstylingurl: t }), F();
|
|
4140
4136
|
}
|
|
4141
4137
|
get categoryid() {
|
|
4142
4138
|
return this.$$.ctx[12];
|
|
4143
4139
|
}
|
|
4144
4140
|
set categoryid(t) {
|
|
4145
|
-
this.$$set({ categoryid: t }),
|
|
4141
|
+
this.$$set({ categoryid: t }), F();
|
|
4146
4142
|
}
|
|
4147
4143
|
get mbsource() {
|
|
4148
4144
|
return this.$$.ctx[13];
|
|
4149
4145
|
}
|
|
4150
4146
|
set mbsource(t) {
|
|
4151
|
-
this.$$set({ mbsource: t }),
|
|
4147
|
+
this.$$set({ mbsource: t }), F();
|
|
4152
4148
|
}
|
|
4153
4149
|
}
|
|
4154
|
-
dr(
|
|
4150
|
+
dr(pi, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);
|
|
4155
4151
|
export {
|
|
4156
|
-
|
|
4152
|
+
pi as C
|
|
4157
4153
|
};
|