@everymatrix/general-icon-progress-bar 1.61.1 → 1.62.1
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/GeneralIconProgressBar-BtryxH6m.cjs +3 -0
- package/components/{GeneralIconProgressBar-Bt-psNCh.js → GeneralIconProgressBar-D9Uqk4jK.js} +704 -698
- package/components/{GeneralIconProgressBar-g6HVGgOD.js → GeneralIconProgressBar-P5rVTJOT.js} +723 -717
- package/es2015/general-icon-progress-bar.cjs +1 -1
- package/es2015/general-icon-progress-bar.js +1 -1
- package/esnext/general-icon-progress-bar.js +1 -1
- package/package.json +1 -1
- package/components/GeneralIconProgressBar-Cmawx_Ll.cjs +0 -16
package/components/{GeneralIconProgressBar-Bt-psNCh.js → GeneralIconProgressBar-D9Uqk4jK.js}
RENAMED
@@ -1,24 +1,24 @@
|
|
1
1
|
function T() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function rt(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function Ge() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
|
-
function
|
10
|
-
e.forEach(
|
9
|
+
function ee(e) {
|
10
|
+
e.forEach(rt);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function Le(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function nt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function Mt(e) {
|
19
19
|
return Object.keys(e).length === 0;
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function it(e, ...t) {
|
22
22
|
if (e == null) {
|
23
23
|
for (const n of t)
|
24
24
|
n(void 0);
|
@@ -27,20 +27,20 @@ function rt(e, ...t) {
|
|
27
27
|
const r = e.subscribe(...t);
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
29
29
|
}
|
30
|
-
function
|
31
|
-
e.$$.on_destroy.push(
|
30
|
+
function $t(e, t, r) {
|
31
|
+
e.$$.on_destroy.push(it(t, r));
|
32
32
|
}
|
33
|
-
function
|
33
|
+
function ne(e, t) {
|
34
34
|
e.appendChild(t);
|
35
35
|
}
|
36
|
-
function
|
37
|
-
const n =
|
36
|
+
function Rt(e, t, r) {
|
37
|
+
const n = Ut(e);
|
38
38
|
if (!n.getElementById(t)) {
|
39
|
-
const i =
|
40
|
-
i.id = t, i.textContent = r,
|
39
|
+
const i = Q("style");
|
40
|
+
i.id = t, i.textContent = r, Gt(n, i);
|
41
41
|
}
|
42
42
|
}
|
43
|
-
function
|
43
|
+
function Ut(e) {
|
44
44
|
if (!e)
|
45
45
|
return document;
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -50,36 +50,36 @@ function Rt(e) {
|
|
50
50
|
t
|
51
51
|
) : e.ownerDocument;
|
52
52
|
}
|
53
|
-
function
|
54
|
-
return
|
53
|
+
function Gt(e, t) {
|
54
|
+
return ne(
|
55
55
|
/** @type {Document} */
|
56
56
|
e.head || e,
|
57
57
|
t
|
58
58
|
), t.sheet;
|
59
59
|
}
|
60
|
-
function
|
60
|
+
function st(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
|
-
function
|
66
|
+
function Q(e) {
|
67
67
|
return document.createElement(e);
|
68
68
|
}
|
69
|
-
function
|
69
|
+
function Dt(e) {
|
70
70
|
return document.createTextNode(e);
|
71
71
|
}
|
72
|
-
function
|
72
|
+
function C(e, t, r) {
|
73
73
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
74
74
|
}
|
75
|
-
function
|
75
|
+
function Ft(e) {
|
76
76
|
return Array.from(e.childNodes);
|
77
77
|
}
|
78
|
-
function
|
78
|
+
function jt(e, t) {
|
79
79
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
80
80
|
t);
|
81
81
|
}
|
82
|
-
function
|
82
|
+
function Vt(e) {
|
83
83
|
const t = {};
|
84
84
|
return e.childNodes.forEach(
|
85
85
|
/** @param {Element} node */
|
@@ -88,87 +88,87 @@ function Ft(e) {
|
|
88
88
|
}
|
89
89
|
), t;
|
90
90
|
}
|
91
|
-
let
|
92
|
-
function
|
93
|
-
|
91
|
+
let Me;
|
92
|
+
function J(e) {
|
93
|
+
Me = e;
|
94
94
|
}
|
95
|
-
const
|
96
|
-
let
|
97
|
-
const
|
98
|
-
let
|
99
|
-
function
|
100
|
-
|
95
|
+
const G = [], q = [];
|
96
|
+
let D = [];
|
97
|
+
const De = [], kt = /* @__PURE__ */ Promise.resolve();
|
98
|
+
let ve = !1;
|
99
|
+
function Xt() {
|
100
|
+
ve || (ve = !0, kt.then(A));
|
101
101
|
}
|
102
|
-
function
|
103
|
-
|
102
|
+
function He(e) {
|
103
|
+
D.push(e);
|
104
104
|
}
|
105
|
-
const
|
105
|
+
const be = /* @__PURE__ */ new Set();
|
106
106
|
let R = 0;
|
107
|
-
function
|
107
|
+
function A() {
|
108
108
|
if (R !== 0)
|
109
109
|
return;
|
110
|
-
const e =
|
110
|
+
const e = Me;
|
111
111
|
do {
|
112
112
|
try {
|
113
|
-
for (; R <
|
114
|
-
const t =
|
115
|
-
R++,
|
113
|
+
for (; R < G.length; ) {
|
114
|
+
const t = G[R];
|
115
|
+
R++, J(t), zt(t.$$);
|
116
116
|
}
|
117
117
|
} catch (t) {
|
118
|
-
throw
|
118
|
+
throw G.length = 0, R = 0, t;
|
119
119
|
}
|
120
|
-
for (
|
121
|
-
|
122
|
-
for (let t = 0; t <
|
123
|
-
const r =
|
124
|
-
|
120
|
+
for (J(null), G.length = 0, R = 0; q.length; )
|
121
|
+
q.pop()();
|
122
|
+
for (let t = 0; t < D.length; t += 1) {
|
123
|
+
const r = D[t];
|
124
|
+
be.has(r) || (be.add(r), r());
|
125
125
|
}
|
126
|
-
|
127
|
-
} while (
|
128
|
-
for (;
|
129
|
-
|
130
|
-
|
126
|
+
D.length = 0;
|
127
|
+
} while (G.length);
|
128
|
+
for (; De.length; )
|
129
|
+
De.pop()();
|
130
|
+
ve = !1, be.clear(), J(e);
|
131
131
|
}
|
132
|
-
function
|
132
|
+
function zt(e) {
|
133
133
|
if (e.fragment !== null) {
|
134
|
-
e.update(),
|
134
|
+
e.update(), ee(e.before_update);
|
135
135
|
const t = e.dirty;
|
136
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
136
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(He);
|
137
137
|
}
|
138
138
|
}
|
139
|
-
function
|
139
|
+
function Wt(e) {
|
140
140
|
const t = [], r = [];
|
141
|
-
|
141
|
+
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
142
142
|
}
|
143
|
-
const
|
144
|
-
function
|
145
|
-
e && e.i && (
|
143
|
+
const Zt = /* @__PURE__ */ new Set();
|
144
|
+
function Qt(e, t) {
|
145
|
+
e && e.i && (Zt.delete(e), e.i(t));
|
146
146
|
}
|
147
|
-
function
|
147
|
+
function Jt(e, t, r) {
|
148
148
|
const { fragment: n, after_update: i } = e.$$;
|
149
|
-
n && n.m(t, r),
|
150
|
-
const s = e.$$.on_mount.map(
|
151
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
152
|
-
}), i.forEach(
|
149
|
+
n && n.m(t, r), He(() => {
|
150
|
+
const s = e.$$.on_mount.map(rt).filter(Le);
|
151
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
152
|
+
}), i.forEach(He);
|
153
153
|
}
|
154
|
-
function
|
154
|
+
function qt(e, t) {
|
155
155
|
const r = e.$$;
|
156
|
-
r.fragment !== null && (
|
156
|
+
r.fragment !== null && (Wt(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
157
157
|
}
|
158
|
-
function
|
159
|
-
e.$$.dirty[0] === -1 && (
|
158
|
+
function Yt(e, t) {
|
159
|
+
e.$$.dirty[0] === -1 && (G.push(e), Xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
160
160
|
}
|
161
|
-
function
|
162
|
-
const l =
|
163
|
-
|
164
|
-
const
|
161
|
+
function Kt(e, t, r, n, i, s, a = null, o = [-1]) {
|
162
|
+
const l = Me;
|
163
|
+
J(e);
|
164
|
+
const u = e.$$ = {
|
165
165
|
fragment: null,
|
166
166
|
ctx: [],
|
167
167
|
// state
|
168
168
|
props: s,
|
169
169
|
update: T,
|
170
170
|
not_equal: i,
|
171
|
-
bound:
|
171
|
+
bound: Ge(),
|
172
172
|
// lifecycle
|
173
173
|
on_mount: [],
|
174
174
|
on_destroy: [],
|
@@ -177,28 +177,28 @@ function qt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
177
177
|
after_update: [],
|
178
178
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
179
179
|
// everything else
|
180
|
-
callbacks:
|
180
|
+
callbacks: Ge(),
|
181
181
|
dirty: o,
|
182
182
|
skip_bound: !1,
|
183
183
|
root: t.target || l.$$.root
|
184
184
|
};
|
185
|
-
a && a(
|
186
|
-
let
|
187
|
-
if (
|
188
|
-
const
|
189
|
-
return
|
190
|
-
}) : [],
|
185
|
+
a && a(u.root);
|
186
|
+
let h = !1;
|
187
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...g) => {
|
188
|
+
const d = g.length ? g[0] : f;
|
189
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Yt(e, c)), f;
|
190
|
+
}) : [], u.update(), h = !0, ee(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
191
191
|
if (t.hydrate) {
|
192
|
-
const c =
|
193
|
-
|
192
|
+
const c = Ft(t.target);
|
193
|
+
u.fragment && u.fragment.l(c), c.forEach(Ce);
|
194
194
|
} else
|
195
|
-
|
196
|
-
t.intro &&
|
195
|
+
u.fragment && u.fragment.c();
|
196
|
+
t.intro && Qt(e.$$.fragment), Jt(e, t.target, t.anchor), A();
|
197
197
|
}
|
198
|
-
|
198
|
+
J(l);
|
199
199
|
}
|
200
|
-
let
|
201
|
-
typeof HTMLElement == "function" && (
|
200
|
+
let ot;
|
201
|
+
typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
202
202
|
/** The Svelte component constructor */
|
203
203
|
$$ctor;
|
204
204
|
/** Slots */
|
@@ -240,29 +240,29 @@ typeof HTMLElement == "function" && (it = class extends HTMLElement {
|
|
240
240
|
let s;
|
241
241
|
return {
|
242
242
|
c: function() {
|
243
|
-
s =
|
243
|
+
s = Q("slot"), i !== "default" && C(s, "name", i);
|
244
244
|
},
|
245
245
|
/**
|
246
246
|
* @param {HTMLElement} target
|
247
247
|
* @param {HTMLElement} [anchor]
|
248
248
|
*/
|
249
|
-
m: function(l,
|
250
|
-
|
249
|
+
m: function(l, u) {
|
250
|
+
st(l, s, u);
|
251
251
|
},
|
252
252
|
d: function(l) {
|
253
|
-
l &&
|
253
|
+
l && Ce(s);
|
254
254
|
}
|
255
255
|
};
|
256
256
|
};
|
257
257
|
};
|
258
258
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
259
259
|
return;
|
260
|
-
const t = {}, r =
|
260
|
+
const t = {}, r = Vt(this);
|
261
261
|
for (const i of this.$$s)
|
262
262
|
i in r && (t[i] = [e(i)]);
|
263
263
|
for (const i of this.attributes) {
|
264
264
|
const s = this.$$g_p(i.name);
|
265
|
-
s in this.$$d || (this.$$d[s] =
|
265
|
+
s in this.$$d || (this.$$d[s] = ie(s, i.value, this.$$p_d, "toProp"));
|
266
266
|
}
|
267
267
|
for (const i in this.$$p_d)
|
268
268
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
@@ -280,7 +280,7 @@ typeof HTMLElement == "function" && (it = class extends HTMLElement {
|
|
280
280
|
this.$$r = !0;
|
281
281
|
for (const i in this.$$p_d)
|
282
282
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
283
|
-
const s =
|
283
|
+
const s = ie(
|
284
284
|
i,
|
285
285
|
this.$$d[i],
|
286
286
|
this.$$p_d,
|
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (it = class extends HTMLElement {
|
|
302
302
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
303
303
|
// and setting attributes through setAttribute etc, this is helpful
|
304
304
|
attributeChangedCallback(e, t, r) {
|
305
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
305
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ie(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
306
306
|
}
|
307
307
|
disconnectedCallback() {
|
308
308
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -315,7 +315,7 @@ typeof HTMLElement == "function" && (it = class extends HTMLElement {
|
|
315
315
|
) || e;
|
316
316
|
}
|
317
317
|
});
|
318
|
-
function
|
318
|
+
function ie(e, t, r, n) {
|
319
319
|
const i = r[e]?.type;
|
320
320
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
321
321
|
return t;
|
@@ -344,8 +344,8 @@ function ne(e, t, r, n) {
|
|
344
344
|
return t;
|
345
345
|
}
|
346
346
|
}
|
347
|
-
function
|
348
|
-
let a = class extends
|
347
|
+
function er(e, t, r, n, i, s) {
|
348
|
+
let a = class extends ot {
|
349
349
|
constructor() {
|
350
350
|
super(e, r, i), this.$$p_d = t;
|
351
351
|
}
|
@@ -361,7 +361,7 @@ function Yt(e, t, r, n, i, s) {
|
|
361
361
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
362
362
|
},
|
363
363
|
set(l) {
|
364
|
-
l =
|
364
|
+
l = ie(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
365
365
|
}
|
366
366
|
});
|
367
367
|
}), n.forEach((o) => {
|
@@ -373,7 +373,7 @@ function Yt(e, t, r, n, i, s) {
|
|
373
373
|
}), e.element = /** @type {any} */
|
374
374
|
a, a;
|
375
375
|
}
|
376
|
-
class
|
376
|
+
class tr {
|
377
377
|
/**
|
378
378
|
* ### PRIVATE API
|
379
379
|
*
|
@@ -392,7 +392,7 @@ class Kt {
|
|
392
392
|
$$set = void 0;
|
393
393
|
/** @returns {void} */
|
394
394
|
$destroy() {
|
395
|
-
|
395
|
+
qt(this, 1), this.$destroy = T;
|
396
396
|
}
|
397
397
|
/**
|
398
398
|
* @template {Extract<keyof Events, string>} K
|
@@ -401,7 +401,7 @@ class Kt {
|
|
401
401
|
* @returns {() => void}
|
402
402
|
*/
|
403
403
|
$on(t, r) {
|
404
|
-
if (!
|
404
|
+
if (!Le(r))
|
405
405
|
return T;
|
406
406
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
407
407
|
return n.push(r), () => {
|
@@ -414,29 +414,29 @@ class Kt {
|
|
414
414
|
* @returns {void}
|
415
415
|
*/
|
416
416
|
$set(t) {
|
417
|
-
this.$$set && !
|
417
|
+
this.$$set && !Mt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
418
418
|
}
|
419
419
|
}
|
420
|
-
const
|
421
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
422
|
-
const
|
423
|
-
function
|
420
|
+
const rr = "4";
|
421
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rr);
|
422
|
+
const U = [];
|
423
|
+
function nr(e, t) {
|
424
424
|
return {
|
425
|
-
subscribe:
|
425
|
+
subscribe: le(e, t).subscribe
|
426
426
|
};
|
427
427
|
}
|
428
|
-
function
|
428
|
+
function le(e, t = T) {
|
429
429
|
let r;
|
430
430
|
const n = /* @__PURE__ */ new Set();
|
431
431
|
function i(o) {
|
432
|
-
if (
|
433
|
-
const l =
|
434
|
-
for (const
|
435
|
-
|
432
|
+
if (nt(e, o) && (e = o, r)) {
|
433
|
+
const l = !U.length;
|
434
|
+
for (const u of n)
|
435
|
+
u[1](), U.push(u, e);
|
436
436
|
if (l) {
|
437
|
-
for (let
|
438
|
-
|
439
|
-
|
437
|
+
for (let u = 0; u < U.length; u += 2)
|
438
|
+
U[u][0](U[u + 1]);
|
439
|
+
U.length = 0;
|
440
440
|
}
|
441
441
|
}
|
442
442
|
}
|
@@ -444,160 +444,146 @@ function he(e, t = T) {
|
|
444
444
|
i(o(e));
|
445
445
|
}
|
446
446
|
function a(o, l = T) {
|
447
|
-
const
|
448
|
-
return n.add(
|
449
|
-
n.delete(
|
447
|
+
const u = [o, l];
|
448
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || T), o(e), () => {
|
449
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
450
450
|
};
|
451
451
|
}
|
452
452
|
return { set: i, update: s, subscribe: a };
|
453
453
|
}
|
454
|
-
function
|
454
|
+
function X(e, t, r) {
|
455
455
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
456
456
|
if (!i.every(Boolean))
|
457
457
|
throw new Error("derived() expects stores as input, got a falsy value");
|
458
458
|
const s = t.length < 2;
|
459
|
-
return
|
459
|
+
return nr(r, (a, o) => {
|
460
460
|
let l = !1;
|
461
|
-
const
|
462
|
-
let
|
461
|
+
const u = [];
|
462
|
+
let h = 0, c = T;
|
463
463
|
const f = () => {
|
464
|
-
if (
|
464
|
+
if (h)
|
465
465
|
return;
|
466
466
|
c();
|
467
|
-
const
|
468
|
-
s ? a(
|
469
|
-
},
|
470
|
-
(
|
471
|
-
|
467
|
+
const d = t(n ? u[0] : u, a, o);
|
468
|
+
s ? a(d) : c = Le(d) ? d : T;
|
469
|
+
}, g = i.map(
|
470
|
+
(d, y) => it(
|
471
|
+
d,
|
472
472
|
(H) => {
|
473
|
-
|
473
|
+
u[y] = H, h &= ~(1 << y), l && f();
|
474
474
|
},
|
475
475
|
() => {
|
476
|
-
|
476
|
+
h |= 1 << y;
|
477
477
|
}
|
478
478
|
)
|
479
479
|
);
|
480
480
|
return l = !0, f(), function() {
|
481
|
-
|
481
|
+
ee(g), c(), l = !1;
|
482
482
|
};
|
483
483
|
});
|
484
484
|
}
|
485
|
-
function
|
485
|
+
function ir(e) {
|
486
486
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
487
487
|
}
|
488
|
-
var
|
489
|
-
return
|
488
|
+
var sr = function(t) {
|
489
|
+
return or(t) && !ar(t);
|
490
490
|
};
|
491
|
-
function
|
491
|
+
function or(e) {
|
492
492
|
return !!e && typeof e == "object";
|
493
493
|
}
|
494
|
-
function
|
494
|
+
function ar(e) {
|
495
495
|
var t = Object.prototype.toString.call(e);
|
496
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
496
|
+
return t === "[object RegExp]" || t === "[object Date]" || lr(e);
|
497
497
|
}
|
498
|
-
var
|
499
|
-
function
|
500
|
-
return e.$$typeof ===
|
498
|
+
var ur = typeof Symbol == "function" && Symbol.for, hr = ur ? Symbol.for("react.element") : 60103;
|
499
|
+
function lr(e) {
|
500
|
+
return e.$$typeof === hr;
|
501
501
|
}
|
502
|
-
function
|
502
|
+
function fr(e) {
|
503
503
|
return Array.isArray(e) ? [] : {};
|
504
504
|
}
|
505
|
-
function
|
506
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
505
|
+
function Y(e, t) {
|
506
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(fr(e), e, t) : e;
|
507
507
|
}
|
508
|
-
function
|
508
|
+
function cr(e, t, r) {
|
509
509
|
return e.concat(t).map(function(n) {
|
510
|
-
return
|
510
|
+
return Y(n, r);
|
511
511
|
});
|
512
512
|
}
|
513
|
-
function
|
513
|
+
function pr(e, t) {
|
514
514
|
if (!t.customMerge)
|
515
|
-
return
|
515
|
+
return F;
|
516
516
|
var r = t.customMerge(e);
|
517
|
-
return typeof r == "function" ? r :
|
517
|
+
return typeof r == "function" ? r : F;
|
518
518
|
}
|
519
|
-
function
|
519
|
+
function mr(e) {
|
520
520
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
521
521
|
return Object.propertyIsEnumerable.call(e, t);
|
522
522
|
}) : [];
|
523
523
|
}
|
524
|
-
function
|
525
|
-
return Object.keys(e).concat(
|
524
|
+
function Fe(e) {
|
525
|
+
return Object.keys(e).concat(mr(e));
|
526
526
|
}
|
527
|
-
function
|
527
|
+
function at(e, t) {
|
528
528
|
try {
|
529
529
|
return t in e;
|
530
530
|
} catch {
|
531
531
|
return !1;
|
532
532
|
}
|
533
533
|
}
|
534
|
-
function
|
535
|
-
return
|
534
|
+
function br(e, t) {
|
535
|
+
return at(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
536
536
|
}
|
537
|
-
function
|
537
|
+
function dr(e, t, r) {
|
538
538
|
var n = {};
|
539
|
-
return r.isMergeableObject(e) &&
|
540
|
-
n[i] =
|
541
|
-
}),
|
542
|
-
|
539
|
+
return r.isMergeableObject(e) && Fe(e).forEach(function(i) {
|
540
|
+
n[i] = Y(e[i], r);
|
541
|
+
}), Fe(t).forEach(function(i) {
|
542
|
+
br(e, i) || (at(e, i) && r.isMergeableObject(t[i]) ? n[i] = pr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
543
543
|
}), n;
|
544
544
|
}
|
545
|
-
function
|
546
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
545
|
+
function F(e, t, r) {
|
546
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cr, r.isMergeableObject = r.isMergeableObject || sr, r.cloneUnlessOtherwiseSpecified = Y;
|
547
547
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
548
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
548
|
+
return s ? n ? r.arrayMerge(e, t, r) : dr(e, t, r) : Y(t, r);
|
549
549
|
}
|
550
|
-
|
550
|
+
F.all = function(t, r) {
|
551
551
|
if (!Array.isArray(t))
|
552
552
|
throw new Error("first argument should be an array");
|
553
553
|
return t.reduce(function(n, i) {
|
554
|
-
return
|
554
|
+
return F(n, i, r);
|
555
555
|
}, {});
|
556
556
|
};
|
557
|
-
var
|
558
|
-
const
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
563
|
-
purpose with or without fee is hereby granted.
|
564
|
-
|
565
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
566
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
567
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
568
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
569
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
570
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
571
|
-
PERFORMANCE OF THIS SOFTWARE.
|
572
|
-
***************************************************************************** */
|
573
|
-
var ve = function(e, t) {
|
574
|
-
return ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
557
|
+
var gr = F, xr = gr;
|
558
|
+
const Er = /* @__PURE__ */ ir(xr);
|
559
|
+
var Te = function(e, t) {
|
560
|
+
return Te = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
575
561
|
r.__proto__ = n;
|
576
562
|
} || function(r, n) {
|
577
563
|
for (var i in n)
|
578
564
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
579
|
-
},
|
565
|
+
}, Te(e, t);
|
580
566
|
};
|
581
|
-
function
|
567
|
+
function fe(e, t) {
|
582
568
|
if (typeof t != "function" && t !== null)
|
583
569
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
584
|
-
|
570
|
+
Te(e, t);
|
585
571
|
function r() {
|
586
572
|
this.constructor = e;
|
587
573
|
}
|
588
574
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
589
575
|
}
|
590
|
-
var
|
591
|
-
return
|
576
|
+
var P = function() {
|
577
|
+
return P = Object.assign || function(t) {
|
592
578
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
593
579
|
r = arguments[n];
|
594
580
|
for (var s in r)
|
595
581
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
596
582
|
}
|
597
583
|
return t;
|
598
|
-
},
|
584
|
+
}, P.apply(this, arguments);
|
599
585
|
};
|
600
|
-
function
|
586
|
+
function yr(e, t) {
|
601
587
|
var r = {};
|
602
588
|
for (var n in e)
|
603
589
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -606,43 +592,43 @@ function xr(e, t) {
|
|
606
592
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
607
593
|
return r;
|
608
594
|
}
|
609
|
-
function
|
610
|
-
if (arguments.length === 2)
|
595
|
+
function de(e, t, r) {
|
596
|
+
if (r || arguments.length === 2)
|
611
597
|
for (var n = 0, i = t.length, s; n < i; n++)
|
612
598
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
613
|
-
return e.concat(s || t);
|
599
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
614
600
|
}
|
615
|
-
function
|
616
|
-
var r = t && t.cache ? t.cache :
|
601
|
+
function ge(e, t) {
|
602
|
+
var r = t && t.cache ? t.cache : Ar, n = t && t.serializer ? t.serializer : Br, i = t && t.strategy ? t.strategy : Hr;
|
617
603
|
return i(e, {
|
618
604
|
cache: r,
|
619
605
|
serializer: n
|
620
606
|
});
|
621
607
|
}
|
622
|
-
function
|
608
|
+
function _r(e) {
|
623
609
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
624
610
|
}
|
625
|
-
function
|
626
|
-
var i =
|
611
|
+
function vr(e, t, r, n) {
|
612
|
+
var i = _r(n) ? n : r(n), s = t.get(i);
|
627
613
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
628
614
|
}
|
629
|
-
function
|
615
|
+
function ut(e, t, r) {
|
630
616
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
631
617
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
632
618
|
}
|
633
|
-
function
|
619
|
+
function ht(e, t, r, n, i) {
|
634
620
|
return r.bind(t, e, n, i);
|
635
621
|
}
|
636
|
-
function
|
637
|
-
var r = e.length === 1 ?
|
638
|
-
return
|
622
|
+
function Hr(e, t) {
|
623
|
+
var r = e.length === 1 ? vr : ut;
|
624
|
+
return ht(e, this, r, t.cache.create(), t.serializer);
|
639
625
|
}
|
640
|
-
function
|
641
|
-
return
|
626
|
+
function Tr(e, t) {
|
627
|
+
return ht(e, this, ut, t.cache.create(), t.serializer);
|
642
628
|
}
|
643
|
-
var
|
629
|
+
var Br = function() {
|
644
630
|
return JSON.stringify(arguments);
|
645
|
-
},
|
631
|
+
}, Sr = (
|
646
632
|
/** @class */
|
647
633
|
function() {
|
648
634
|
function e() {
|
@@ -654,61 +640,71 @@ var Hr = function() {
|
|
654
640
|
this.cache[t] = r;
|
655
641
|
}, e;
|
656
642
|
}()
|
657
|
-
),
|
643
|
+
), Ar = {
|
658
644
|
create: function() {
|
659
|
-
return new
|
645
|
+
return new Sr();
|
660
646
|
}
|
661
|
-
},
|
662
|
-
variadic:
|
663
|
-
},
|
647
|
+
}, xe = {
|
648
|
+
variadic: Tr
|
649
|
+
}, ae = function() {
|
650
|
+
return ae = Object.assign || function(t) {
|
651
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
652
|
+
r = arguments[n];
|
653
|
+
for (var s in r)
|
654
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
655
|
+
}
|
656
|
+
return t;
|
657
|
+
}, ae.apply(this, arguments);
|
658
|
+
};
|
659
|
+
var m;
|
664
660
|
(function(e) {
|
665
661
|
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";
|
666
662
|
})(m || (m = {}));
|
667
|
-
var
|
663
|
+
var x;
|
668
664
|
(function(e) {
|
669
665
|
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";
|
670
|
-
})(
|
671
|
-
var
|
666
|
+
})(x || (x = {}));
|
667
|
+
var j;
|
672
668
|
(function(e) {
|
673
669
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
674
|
-
})(
|
675
|
-
function
|
676
|
-
return e.type ===
|
677
|
-
}
|
678
|
-
function Ar(e) {
|
679
|
-
return e.type === E.argument;
|
680
|
-
}
|
681
|
-
function ht(e) {
|
682
|
-
return e.type === E.number;
|
670
|
+
})(j || (j = {}));
|
671
|
+
function je(e) {
|
672
|
+
return e.type === x.literal;
|
683
673
|
}
|
684
|
-
function
|
685
|
-
return e.type ===
|
674
|
+
function Pr(e) {
|
675
|
+
return e.type === x.argument;
|
686
676
|
}
|
687
677
|
function lt(e) {
|
688
|
-
return e.type ===
|
678
|
+
return e.type === x.number;
|
689
679
|
}
|
690
680
|
function ft(e) {
|
691
|
-
return e.type ===
|
681
|
+
return e.type === x.date;
|
692
682
|
}
|
693
683
|
function ct(e) {
|
694
|
-
return e.type ===
|
695
|
-
}
|
696
|
-
function Sr(e) {
|
697
|
-
return e.type === E.pound;
|
684
|
+
return e.type === x.time;
|
698
685
|
}
|
699
686
|
function pt(e) {
|
700
|
-
return e.type ===
|
687
|
+
return e.type === x.select;
|
701
688
|
}
|
702
689
|
function mt(e) {
|
703
|
-
return
|
690
|
+
return e.type === x.plural;
|
704
691
|
}
|
705
|
-
function He(e) {
|
706
|
-
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
707
|
-
}
|
708
|
-
var bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pr = /(?:[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;
|
709
692
|
function Or(e) {
|
693
|
+
return e.type === x.pound;
|
694
|
+
}
|
695
|
+
function bt(e) {
|
696
|
+
return e.type === x.tag;
|
697
|
+
}
|
698
|
+
function dt(e) {
|
699
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
700
|
+
}
|
701
|
+
function Be(e) {
|
702
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
703
|
+
}
|
704
|
+
var gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Nr = /(?:[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;
|
705
|
+
function wr(e) {
|
710
706
|
var t = {};
|
711
|
-
return e.replace(
|
707
|
+
return e.replace(Nr, function(r) {
|
712
708
|
var n = r.length;
|
713
709
|
switch (r[0]) {
|
714
710
|
case "G":
|
@@ -797,18 +793,28 @@ function Or(e) {
|
|
797
793
|
return "";
|
798
794
|
}), t;
|
799
795
|
}
|
800
|
-
var
|
801
|
-
function
|
796
|
+
var E = function() {
|
797
|
+
return E = Object.assign || function(t) {
|
798
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
799
|
+
r = arguments[n];
|
800
|
+
for (var s in r)
|
801
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
802
|
+
}
|
803
|
+
return t;
|
804
|
+
}, E.apply(this, arguments);
|
805
|
+
};
|
806
|
+
var Ir = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
807
|
+
function Lr(e) {
|
802
808
|
if (e.length === 0)
|
803
809
|
throw new Error("Number skeleton cannot be empty");
|
804
|
-
for (var t = e.split(
|
810
|
+
for (var t = e.split(Ir).filter(function(f) {
|
805
811
|
return f.length > 0;
|
806
812
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
807
813
|
var s = i[n], a = s.split("/");
|
808
814
|
if (a.length === 0)
|
809
815
|
throw new Error("Invalid number skeleton");
|
810
|
-
for (var o = a[0], l = a.slice(1),
|
811
|
-
var c = u
|
816
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
817
|
+
var c = h[u];
|
812
818
|
if (c.length === 0)
|
813
819
|
throw new Error("Invalid number skeleton");
|
814
820
|
}
|
@@ -816,17 +822,17 @@ function Ir(e) {
|
|
816
822
|
}
|
817
823
|
return r;
|
818
824
|
}
|
819
|
-
function
|
825
|
+
function Cr(e) {
|
820
826
|
return e.replace(/^(.*?)-/, "");
|
821
827
|
}
|
822
|
-
var
|
823
|
-
function
|
828
|
+
var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xt = /^(@+)?(\+|#+)?[rs]?$/g, Mr = /(\*)(0+)|(#+)(0+)|(0+)/g, Et = /^(0+)$/;
|
829
|
+
function ke(e) {
|
824
830
|
var t = {};
|
825
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
831
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xt, function(r, n, i) {
|
826
832
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
827
833
|
}), t;
|
828
834
|
}
|
829
|
-
function
|
835
|
+
function yt(e) {
|
830
836
|
switch (e) {
|
831
837
|
case "sign-auto":
|
832
838
|
return {
|
@@ -866,7 +872,7 @@ function xt(e) {
|
|
866
872
|
};
|
867
873
|
}
|
868
874
|
}
|
869
|
-
function
|
875
|
+
function $r(e) {
|
870
876
|
var t;
|
871
877
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
872
878
|
notation: "engineering"
|
@@ -874,17 +880,17 @@ function Cr(e) {
|
|
874
880
|
notation: "scientific"
|
875
881
|
}, e = e.slice(1)), t) {
|
876
882
|
var r = e.slice(0, 2);
|
877
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
883
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Et.test(e))
|
878
884
|
throw new Error("Malformed concise eng/scientific notation");
|
879
885
|
t.minimumIntegerDigits = e.length;
|
880
886
|
}
|
881
887
|
return t;
|
882
888
|
}
|
883
|
-
function
|
884
|
-
var t = {}, r =
|
889
|
+
function Xe(e) {
|
890
|
+
var t = {}, r = yt(e);
|
885
891
|
return r || t;
|
886
892
|
}
|
887
|
-
function
|
893
|
+
function Rr(e) {
|
888
894
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
889
895
|
var i = n[r];
|
890
896
|
switch (i.stem) {
|
@@ -908,7 +914,7 @@ function Mr(e) {
|
|
908
914
|
continue;
|
909
915
|
case "measure-unit":
|
910
916
|
case "unit":
|
911
|
-
t.style = "unit", t.unit =
|
917
|
+
t.style = "unit", t.unit = Cr(i.options[0]);
|
912
918
|
continue;
|
913
919
|
case "compact-short":
|
914
920
|
case "K":
|
@@ -919,13 +925,13 @@ function Mr(e) {
|
|
919
925
|
t.notation = "compact", t.compactDisplay = "long";
|
920
926
|
continue;
|
921
927
|
case "scientific":
|
922
|
-
t =
|
923
|
-
return
|
928
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
929
|
+
return E(E({}, l), Xe(u));
|
924
930
|
}, {}));
|
925
931
|
continue;
|
926
932
|
case "engineering":
|
927
|
-
t =
|
928
|
-
return
|
933
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
934
|
+
return E(E({}, l), Xe(u));
|
929
935
|
}, {}));
|
930
936
|
continue;
|
931
937
|
case "notation-simple":
|
@@ -970,45 +976,45 @@ function Mr(e) {
|
|
970
976
|
case "integer-width":
|
971
977
|
if (i.options.length > 1)
|
972
978
|
throw new RangeError("integer-width stems only accept a single optional option");
|
973
|
-
i.options[0].replace(
|
974
|
-
if (
|
975
|
-
t.minimumIntegerDigits =
|
979
|
+
i.options[0].replace(Mr, function(l, u, h, c, f, g) {
|
980
|
+
if (u)
|
981
|
+
t.minimumIntegerDigits = h.length;
|
976
982
|
else {
|
977
983
|
if (c && f)
|
978
984
|
throw new Error("We currently do not support maximum integer digits");
|
979
|
-
if (
|
985
|
+
if (g)
|
980
986
|
throw new Error("We currently do not support exact integer digits");
|
981
987
|
}
|
982
988
|
return "";
|
983
989
|
});
|
984
990
|
continue;
|
985
991
|
}
|
986
|
-
if (
|
992
|
+
if (Et.test(i.stem)) {
|
987
993
|
t.minimumIntegerDigits = i.stem.length;
|
988
994
|
continue;
|
989
995
|
}
|
990
|
-
if (
|
996
|
+
if (Ve.test(i.stem)) {
|
991
997
|
if (i.options.length > 1)
|
992
998
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
993
|
-
i.stem.replace(
|
994
|
-
return
|
999
|
+
i.stem.replace(Ve, function(l, u, h, c, f, g) {
|
1000
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
995
1001
|
});
|
996
1002
|
var s = i.options[0];
|
997
|
-
s === "w" ? t =
|
1003
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), ke(s)));
|
998
1004
|
continue;
|
999
1005
|
}
|
1000
|
-
if (
|
1001
|
-
t =
|
1006
|
+
if (xt.test(i.stem)) {
|
1007
|
+
t = E(E({}, t), ke(i.stem));
|
1002
1008
|
continue;
|
1003
1009
|
}
|
1004
|
-
var a =
|
1005
|
-
a && (t =
|
1006
|
-
var o =
|
1007
|
-
o && (t =
|
1010
|
+
var a = yt(i.stem);
|
1011
|
+
a && (t = E(E({}, t), a));
|
1012
|
+
var o = $r(i.stem);
|
1013
|
+
o && (t = E(E({}, t), o));
|
1008
1014
|
}
|
1009
1015
|
return t;
|
1010
1016
|
}
|
1011
|
-
var
|
1017
|
+
var re = {
|
1012
1018
|
"001": [
|
1013
1019
|
"H",
|
1014
1020
|
"h"
|
@@ -2423,23 +2429,23 @@ var te = {
|
|
2423
2429
|
"h"
|
2424
2430
|
]
|
2425
2431
|
};
|
2426
|
-
function
|
2432
|
+
function Ur(e, t) {
|
2427
2433
|
for (var r = "", n = 0; n < e.length; n++) {
|
2428
2434
|
var i = e.charAt(n);
|
2429
2435
|
if (i === "j") {
|
2430
2436
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2431
2437
|
s++, n++;
|
2432
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a",
|
2433
|
-
for ((
|
2438
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Gr(t);
|
2439
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
2434
2440
|
r += l;
|
2435
2441
|
for (; a-- > 0; )
|
2436
|
-
r =
|
2442
|
+
r = u + r;
|
2437
2443
|
} else
|
2438
2444
|
i === "J" ? r += "H" : r += i;
|
2439
2445
|
}
|
2440
2446
|
return r;
|
2441
2447
|
}
|
2442
|
-
function
|
2448
|
+
function Gr(e) {
|
2443
2449
|
var t = e.hourCycle;
|
2444
2450
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2445
2451
|
e.hourCycles && // @ts-ignore
|
@@ -2458,23 +2464,23 @@ function $r(e) {
|
|
2458
2464
|
}
|
2459
2465
|
var r = e.language, n;
|
2460
2466
|
r !== "root" && (n = e.maximize().region);
|
2461
|
-
var i =
|
2467
|
+
var i = re[n || ""] || re[r || ""] || re["".concat(r, "-001")] || re["001"];
|
2462
2468
|
return i[0];
|
2463
2469
|
}
|
2464
|
-
var
|
2470
|
+
var Ee, Dr = new RegExp("^".concat(gt.source, "*")), Fr = new RegExp("".concat(gt.source, "*$"));
|
2465
2471
|
function b(e, t) {
|
2466
2472
|
return { start: e, end: t };
|
2467
2473
|
}
|
2468
|
-
var
|
2474
|
+
var jr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Vr = !!String.fromCodePoint, kr = !!Object.fromEntries, Xr = !!String.prototype.codePointAt, zr = !!String.prototype.trimStart, Wr = !!String.prototype.trimEnd, Zr = !!Number.isSafeInteger, Qr = Zr ? Number.isSafeInteger : function(e) {
|
2469
2475
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2470
|
-
},
|
2476
|
+
}, Se = !0;
|
2471
2477
|
try {
|
2472
|
-
var
|
2473
|
-
|
2478
|
+
var Jr = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2479
|
+
Se = ((Ee = Jr.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
2474
2480
|
} catch {
|
2475
|
-
|
2481
|
+
Se = !1;
|
2476
2482
|
}
|
2477
|
-
var
|
2483
|
+
var ze = jr ? (
|
2478
2484
|
// Native
|
2479
2485
|
function(t, r, n) {
|
2480
2486
|
return t.startsWith(r, n);
|
@@ -2484,7 +2490,7 @@ var ke = Dr ? (
|
|
2484
2490
|
function(t, r, n) {
|
2485
2491
|
return t.slice(n, n + r.length) === r;
|
2486
2492
|
}
|
2487
|
-
),
|
2493
|
+
), Ae = Vr ? String.fromCodePoint : (
|
2488
2494
|
// IE11
|
2489
2495
|
function() {
|
2490
2496
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2496,9 +2502,9 @@ var ke = Dr ? (
|
|
2496
2502
|
}
|
2497
2503
|
return n;
|
2498
2504
|
}
|
2499
|
-
),
|
2505
|
+
), We = (
|
2500
2506
|
// native
|
2501
|
-
|
2507
|
+
kr ? Object.fromEntries : (
|
2502
2508
|
// Ponyfill
|
2503
2509
|
function(t) {
|
2504
2510
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2508,7 +2514,7 @@ var ke = Dr ? (
|
|
2508
2514
|
return r;
|
2509
2515
|
}
|
2510
2516
|
)
|
2511
|
-
),
|
2517
|
+
), _t = Xr ? (
|
2512
2518
|
// Native
|
2513
2519
|
function(t, r) {
|
2514
2520
|
return t.codePointAt(r);
|
@@ -2522,7 +2528,7 @@ var ke = Dr ? (
|
|
2522
2528
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2523
2529
|
}
|
2524
2530
|
}
|
2525
|
-
),
|
2531
|
+
), qr = zr ? (
|
2526
2532
|
// Native
|
2527
2533
|
function(t) {
|
2528
2534
|
return t.trimStart();
|
@@ -2530,9 +2536,9 @@ var ke = Dr ? (
|
|
2530
2536
|
) : (
|
2531
2537
|
// Ponyfill
|
2532
2538
|
function(t) {
|
2533
|
-
return t.replace(
|
2539
|
+
return t.replace(Dr, "");
|
2534
2540
|
}
|
2535
|
-
),
|
2541
|
+
), Yr = Wr ? (
|
2536
2542
|
// Native
|
2537
2543
|
function(t) {
|
2538
2544
|
return t.trimEnd();
|
@@ -2540,32 +2546,32 @@ var ke = Dr ? (
|
|
2540
2546
|
) : (
|
2541
2547
|
// Ponyfill
|
2542
2548
|
function(t) {
|
2543
|
-
return t.replace(
|
2549
|
+
return t.replace(Fr, "");
|
2544
2550
|
}
|
2545
2551
|
);
|
2546
|
-
function
|
2552
|
+
function vt(e, t) {
|
2547
2553
|
return new RegExp(e, t);
|
2548
2554
|
}
|
2549
|
-
var
|
2550
|
-
if (
|
2551
|
-
var
|
2552
|
-
|
2555
|
+
var Pe;
|
2556
|
+
if (Se) {
|
2557
|
+
var Ze = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2558
|
+
Pe = function(t, r) {
|
2553
2559
|
var n;
|
2554
|
-
|
2555
|
-
var i =
|
2560
|
+
Ze.lastIndex = r;
|
2561
|
+
var i = Ze.exec(t);
|
2556
2562
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2557
2563
|
};
|
2558
2564
|
} else
|
2559
|
-
|
2565
|
+
Pe = function(t, r) {
|
2560
2566
|
for (var n = []; ; ) {
|
2561
|
-
var i =
|
2562
|
-
if (i === void 0 ||
|
2567
|
+
var i = _t(t, r);
|
2568
|
+
if (i === void 0 || Ht(i) || rn(i))
|
2563
2569
|
break;
|
2564
2570
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2565
2571
|
}
|
2566
|
-
return
|
2572
|
+
return Ae.apply(void 0, n);
|
2567
2573
|
};
|
2568
|
-
var
|
2574
|
+
var Kr = (
|
2569
2575
|
/** @class */
|
2570
2576
|
function() {
|
2571
2577
|
function e(t, r) {
|
@@ -2589,14 +2595,14 @@ var qr = (
|
|
2589
2595
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
2590
2596
|
var o = this.clonePosition();
|
2591
2597
|
this.bump(), i.push({
|
2592
|
-
type:
|
2598
|
+
type: x.pound,
|
2593
2599
|
location: b(o, this.clonePosition())
|
2594
2600
|
});
|
2595
2601
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2596
2602
|
if (n)
|
2597
2603
|
break;
|
2598
2604
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
2599
|
-
} else if (s === 60 && !this.ignoreTag &&
|
2605
|
+
} else if (s === 60 && !this.ignoreTag && Oe(this.peek() || 0)) {
|
2600
2606
|
var a = this.parseTag(t, r);
|
2601
2607
|
if (a.err)
|
2602
2608
|
return a;
|
@@ -2617,7 +2623,7 @@ var qr = (
|
|
2617
2623
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2618
2624
|
return {
|
2619
2625
|
val: {
|
2620
|
-
type:
|
2626
|
+
type: x.literal,
|
2621
2627
|
value: "<".concat(i, "/>"),
|
2622
2628
|
location: b(n, this.clonePosition())
|
2623
2629
|
},
|
@@ -2629,12 +2635,12 @@ var qr = (
|
|
2629
2635
|
return s;
|
2630
2636
|
var a = s.val, o = this.clonePosition();
|
2631
2637
|
if (this.bumpIf("</")) {
|
2632
|
-
if (this.isEOF() || !
|
2638
|
+
if (this.isEOF() || !Oe(this.char()))
|
2633
2639
|
return this.error(m.INVALID_TAG, b(o, this.clonePosition()));
|
2634
|
-
var l = this.clonePosition(),
|
2635
|
-
return i !==
|
2640
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
2641
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2636
2642
|
val: {
|
2637
|
-
type:
|
2643
|
+
type: x.tag,
|
2638
2644
|
value: i,
|
2639
2645
|
children: a,
|
2640
2646
|
location: b(n, this.clonePosition())
|
@@ -2647,7 +2653,7 @@ var qr = (
|
|
2647
2653
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2648
2654
|
}, e.prototype.parseTagName = function() {
|
2649
2655
|
var t = this.offset();
|
2650
|
-
for (this.bump(); !this.isEOF() &&
|
2656
|
+
for (this.bump(); !this.isEOF() && tn(this.char()); )
|
2651
2657
|
this.bump();
|
2652
2658
|
return this.message.slice(t, this.offset());
|
2653
2659
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2671,12 +2677,12 @@ var qr = (
|
|
2671
2677
|
}
|
2672
2678
|
var l = b(n, this.clonePosition());
|
2673
2679
|
return {
|
2674
|
-
val: { type:
|
2680
|
+
val: { type: x.literal, value: i, location: l },
|
2675
2681
|
err: null
|
2676
2682
|
};
|
2677
2683
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2678
2684
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2679
|
-
!
|
2685
|
+
!en(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2680
2686
|
}, e.prototype.tryParseQuote = function(t) {
|
2681
2687
|
if (this.isEOF() || this.char() !== 39)
|
2682
2688
|
return null;
|
@@ -2710,12 +2716,12 @@ var qr = (
|
|
2710
2716
|
r.push(n);
|
2711
2717
|
this.bump();
|
2712
2718
|
}
|
2713
|
-
return
|
2719
|
+
return Ae.apply(void 0, r);
|
2714
2720
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2715
2721
|
if (this.isEOF())
|
2716
2722
|
return null;
|
2717
2723
|
var n = this.char();
|
2718
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2724
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ae(n));
|
2719
2725
|
}, e.prototype.parseArgument = function(t, r) {
|
2720
2726
|
var n = this.clonePosition();
|
2721
2727
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2731,7 +2737,7 @@ var qr = (
|
|
2731
2737
|
case 125:
|
2732
2738
|
return this.bump(), {
|
2733
2739
|
val: {
|
2734
|
-
type:
|
2740
|
+
type: x.argument,
|
2735
2741
|
// value does not include the opening and closing braces.
|
2736
2742
|
value: i,
|
2737
2743
|
location: b(n, this.clonePosition())
|
@@ -2744,7 +2750,7 @@ var qr = (
|
|
2744
2750
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2745
2751
|
}
|
2746
2752
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2747
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2753
|
+
var t = this.clonePosition(), r = this.offset(), n = Pe(this.message, r), i = r + n.length;
|
2748
2754
|
this.bumpTo(i);
|
2749
2755
|
var s = this.clonePosition(), a = b(t, s);
|
2750
2756
|
return { value: n, location: a };
|
@@ -2757,53 +2763,53 @@ var qr = (
|
|
2757
2763
|
case "date":
|
2758
2764
|
case "time": {
|
2759
2765
|
this.bumpSpace();
|
2760
|
-
var
|
2766
|
+
var u = null;
|
2761
2767
|
if (this.bumpIf(",")) {
|
2762
2768
|
this.bumpSpace();
|
2763
|
-
var
|
2769
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2764
2770
|
if (c.err)
|
2765
2771
|
return c;
|
2766
|
-
var f =
|
2772
|
+
var f = Yr(c.val);
|
2767
2773
|
if (f.length === 0)
|
2768
2774
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2769
|
-
var
|
2770
|
-
|
2775
|
+
var g = b(h, this.clonePosition());
|
2776
|
+
u = { style: f, styleLocation: g };
|
2771
2777
|
}
|
2772
|
-
var
|
2773
|
-
if (
|
2774
|
-
return
|
2778
|
+
var d = this.tryParseArgumentClose(i);
|
2779
|
+
if (d.err)
|
2780
|
+
return d;
|
2775
2781
|
var y = b(i, this.clonePosition());
|
2776
|
-
if (
|
2777
|
-
var H =
|
2782
|
+
if (u && ze(u?.style, "::", 0)) {
|
2783
|
+
var H = qr(u.style.slice(2));
|
2778
2784
|
if (o === "number") {
|
2779
|
-
var c = this.parseNumberSkeletonFromString(H,
|
2785
|
+
var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
2780
2786
|
return c.err ? c : {
|
2781
|
-
val: { type:
|
2787
|
+
val: { type: x.number, value: n, location: y, style: c.val },
|
2782
2788
|
err: null
|
2783
2789
|
};
|
2784
2790
|
} else {
|
2785
2791
|
if (H.length === 0)
|
2786
2792
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
2787
2793
|
var B = H;
|
2788
|
-
this.locale && (B =
|
2794
|
+
this.locale && (B = Ur(H, this.locale));
|
2789
2795
|
var f = {
|
2790
|
-
type:
|
2796
|
+
type: j.dateTime,
|
2791
2797
|
pattern: B,
|
2792
|
-
location:
|
2793
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2794
|
-
},
|
2798
|
+
location: u.styleLocation,
|
2799
|
+
parsedOptions: this.shouldParseSkeletons ? wr(B) : {}
|
2800
|
+
}, S = o === "date" ? x.date : x.time;
|
2795
2801
|
return {
|
2796
|
-
val: { type:
|
2802
|
+
val: { type: S, value: n, location: y, style: f },
|
2797
2803
|
err: null
|
2798
2804
|
};
|
2799
2805
|
}
|
2800
2806
|
}
|
2801
2807
|
return {
|
2802
2808
|
val: {
|
2803
|
-
type: o === "number" ?
|
2809
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
2804
2810
|
value: n,
|
2805
2811
|
location: y,
|
2806
|
-
style: (s =
|
2812
|
+
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
2807
2813
|
},
|
2808
2814
|
err: null
|
2809
2815
|
};
|
@@ -2813,41 +2819,41 @@ var qr = (
|
|
2813
2819
|
case "select": {
|
2814
2820
|
var v = this.clonePosition();
|
2815
2821
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2816
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v,
|
2822
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, ae({}, v)));
|
2817
2823
|
this.bumpSpace();
|
2818
|
-
var
|
2819
|
-
if (o !== "select" &&
|
2824
|
+
var N = this.parseIdentifierIfPossible(), O = 0;
|
2825
|
+
if (o !== "select" && N.value === "offset") {
|
2820
2826
|
if (!this.bumpIf(":"))
|
2821
2827
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
2822
2828
|
this.bumpSpace();
|
2823
2829
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2824
2830
|
if (c.err)
|
2825
2831
|
return c;
|
2826
|
-
this.bumpSpace(),
|
2832
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), O = c.val;
|
2827
2833
|
}
|
2828
|
-
var
|
2829
|
-
if (
|
2830
|
-
return
|
2831
|
-
var
|
2832
|
-
if (
|
2833
|
-
return
|
2834
|
-
var
|
2834
|
+
var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
2835
|
+
if ($.err)
|
2836
|
+
return $;
|
2837
|
+
var d = this.tryParseArgumentClose(i);
|
2838
|
+
if (d.err)
|
2839
|
+
return d;
|
2840
|
+
var te = b(i, this.clonePosition());
|
2835
2841
|
return o === "select" ? {
|
2836
2842
|
val: {
|
2837
|
-
type:
|
2843
|
+
type: x.select,
|
2838
2844
|
value: n,
|
2839
|
-
options:
|
2840
|
-
location:
|
2845
|
+
options: We($.val),
|
2846
|
+
location: te
|
2841
2847
|
},
|
2842
2848
|
err: null
|
2843
2849
|
} : {
|
2844
2850
|
val: {
|
2845
|
-
type:
|
2851
|
+
type: x.plural,
|
2846
2852
|
value: n,
|
2847
|
-
options:
|
2848
|
-
offset:
|
2853
|
+
options: We($.val),
|
2854
|
+
offset: O,
|
2849
2855
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
2850
|
-
location:
|
2856
|
+
location: te
|
2851
2857
|
},
|
2852
2858
|
err: null
|
2853
2859
|
};
|
@@ -2895,50 +2901,50 @@ var qr = (
|
|
2895
2901
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2896
2902
|
var n = [];
|
2897
2903
|
try {
|
2898
|
-
n =
|
2904
|
+
n = Lr(t);
|
2899
2905
|
} catch {
|
2900
2906
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
2901
2907
|
}
|
2902
2908
|
return {
|
2903
2909
|
val: {
|
2904
|
-
type:
|
2910
|
+
type: j.number,
|
2905
2911
|
tokens: n,
|
2906
2912
|
location: r,
|
2907
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2913
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(n) : {}
|
2908
2914
|
},
|
2909
2915
|
err: null
|
2910
2916
|
};
|
2911
2917
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2912
|
-
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(),
|
2913
|
-
if (
|
2918
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
2919
|
+
if (u.length === 0) {
|
2914
2920
|
var c = this.clonePosition();
|
2915
2921
|
if (r !== "select" && this.bumpIf("=")) {
|
2916
2922
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2917
2923
|
if (f.err)
|
2918
2924
|
return f;
|
2919
|
-
|
2925
|
+
h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
2920
2926
|
} else
|
2921
2927
|
break;
|
2922
2928
|
}
|
2923
|
-
if (l.has(
|
2924
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
2925
|
-
|
2926
|
-
var
|
2929
|
+
if (l.has(u))
|
2930
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
2931
|
+
u === "other" && (a = !0), this.bumpSpace();
|
2932
|
+
var g = this.clonePosition();
|
2927
2933
|
if (!this.bumpIf("{"))
|
2928
2934
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
2929
|
-
var
|
2930
|
-
if (
|
2931
|
-
return
|
2932
|
-
var y = this.tryParseArgumentClose(
|
2935
|
+
var d = this.parseMessage(t + 1, r, n);
|
2936
|
+
if (d.err)
|
2937
|
+
return d;
|
2938
|
+
var y = this.tryParseArgumentClose(g);
|
2933
2939
|
if (y.err)
|
2934
2940
|
return y;
|
2935
2941
|
o.push([
|
2936
|
-
|
2942
|
+
u,
|
2937
2943
|
{
|
2938
|
-
value:
|
2939
|
-
location: b(
|
2944
|
+
value: d.val,
|
2945
|
+
location: b(g, this.clonePosition())
|
2940
2946
|
}
|
2941
|
-
]), l.add(
|
2947
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
2942
2948
|
}
|
2943
2949
|
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
2944
2950
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
@@ -2952,7 +2958,7 @@ var qr = (
|
|
2952
2958
|
break;
|
2953
2959
|
}
|
2954
2960
|
var l = b(i, this.clonePosition());
|
2955
|
-
return s ? (a *= n,
|
2961
|
+
return s ? (a *= n, Qr(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
2956
2962
|
}, e.prototype.offset = function() {
|
2957
2963
|
return this.position.offset;
|
2958
2964
|
}, e.prototype.isEOF = function() {
|
@@ -2967,7 +2973,7 @@ var qr = (
|
|
2967
2973
|
var t = this.position.offset;
|
2968
2974
|
if (t >= this.message.length)
|
2969
2975
|
throw Error("out of bound");
|
2970
|
-
var r =
|
2976
|
+
var r = _t(this.message, t);
|
2971
2977
|
if (r === void 0)
|
2972
2978
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2973
2979
|
return r;
|
@@ -2986,7 +2992,7 @@ var qr = (
|
|
2986
2992
|
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);
|
2987
2993
|
}
|
2988
2994
|
}, e.prototype.bumpIf = function(t) {
|
2989
|
-
if (
|
2995
|
+
if (ze(this.message, t, this.offset())) {
|
2990
2996
|
for (var r = 0; r < t.length; r++)
|
2991
2997
|
this.bump();
|
2992
2998
|
return !0;
|
@@ -3008,7 +3014,7 @@ var qr = (
|
|
3008
3014
|
break;
|
3009
3015
|
}
|
3010
3016
|
}, e.prototype.bumpSpace = function() {
|
3011
|
-
for (; !this.isEOF() &&
|
3017
|
+
for (; !this.isEOF() && Ht(this.char()); )
|
3012
3018
|
this.bump();
|
3013
3019
|
}, e.prototype.peek = function() {
|
3014
3020
|
if (this.isEOF())
|
@@ -3018,47 +3024,47 @@ var qr = (
|
|
3018
3024
|
}, e;
|
3019
3025
|
}()
|
3020
3026
|
);
|
3021
|
-
function
|
3027
|
+
function Oe(e) {
|
3022
3028
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3023
3029
|
}
|
3024
|
-
function
|
3025
|
-
return
|
3030
|
+
function en(e) {
|
3031
|
+
return Oe(e) || e === 47;
|
3026
3032
|
}
|
3027
|
-
function
|
3033
|
+
function tn(e) {
|
3028
3034
|
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;
|
3029
3035
|
}
|
3030
|
-
function
|
3036
|
+
function Ht(e) {
|
3031
3037
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3032
3038
|
}
|
3033
|
-
function
|
3039
|
+
function rn(e) {
|
3034
3040
|
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;
|
3035
3041
|
}
|
3036
|
-
function
|
3042
|
+
function Ne(e) {
|
3037
3043
|
e.forEach(function(t) {
|
3038
|
-
if (delete t.location,
|
3044
|
+
if (delete t.location, pt(t) || mt(t))
|
3039
3045
|
for (var r in t.options)
|
3040
|
-
delete t.options[r].location,
|
3046
|
+
delete t.options[r].location, Ne(t.options[r].value);
|
3041
3047
|
else
|
3042
|
-
|
3048
|
+
lt(t) && dt(t.style) || (ft(t) || ct(t)) && Be(t.style) ? delete t.style.location : bt(t) && Ne(t.children);
|
3043
3049
|
});
|
3044
3050
|
}
|
3045
|
-
function
|
3046
|
-
t === void 0 && (t = {}), t =
|
3047
|
-
var r = new
|
3051
|
+
function nn(e, t) {
|
3052
|
+
t === void 0 && (t = {}), t = ae({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3053
|
+
var r = new Kr(e, t).parse();
|
3048
3054
|
if (r.err) {
|
3049
3055
|
var n = SyntaxError(m[r.err.kind]);
|
3050
3056
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3051
3057
|
}
|
3052
|
-
return t?.captureLocation ||
|
3058
|
+
return t?.captureLocation || Ne(r.val), r.val;
|
3053
3059
|
}
|
3054
|
-
var
|
3060
|
+
var V;
|
3055
3061
|
(function(e) {
|
3056
3062
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3057
|
-
})(
|
3058
|
-
var
|
3063
|
+
})(V || (V = {}));
|
3064
|
+
var ce = (
|
3059
3065
|
/** @class */
|
3060
3066
|
function(e) {
|
3061
|
-
|
3067
|
+
fe(t, e);
|
3062
3068
|
function t(r, n, i) {
|
3063
3069
|
var s = e.call(this, r) || this;
|
3064
3070
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3067,155 +3073,155 @@ var le = (
|
|
3067
3073
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3068
3074
|
}, t;
|
3069
3075
|
}(Error)
|
3070
|
-
),
|
3076
|
+
), Qe = (
|
3071
3077
|
/** @class */
|
3072
3078
|
function(e) {
|
3073
|
-
|
3079
|
+
fe(t, e);
|
3074
3080
|
function t(r, n, i, s) {
|
3075
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3081
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
3076
3082
|
}
|
3077
3083
|
return t;
|
3078
|
-
}(
|
3079
|
-
),
|
3084
|
+
}(ce)
|
3085
|
+
), sn = (
|
3080
3086
|
/** @class */
|
3081
3087
|
function(e) {
|
3082
|
-
|
3088
|
+
fe(t, e);
|
3083
3089
|
function t(r, n, i) {
|
3084
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3090
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
3085
3091
|
}
|
3086
3092
|
return t;
|
3087
|
-
}(
|
3088
|
-
),
|
3093
|
+
}(ce)
|
3094
|
+
), on = (
|
3089
3095
|
/** @class */
|
3090
3096
|
function(e) {
|
3091
|
-
|
3097
|
+
fe(t, e);
|
3092
3098
|
function t(r, n) {
|
3093
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3099
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
3094
3100
|
}
|
3095
3101
|
return t;
|
3096
|
-
}(
|
3102
|
+
}(ce)
|
3097
3103
|
), _;
|
3098
3104
|
(function(e) {
|
3099
3105
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3100
3106
|
})(_ || (_ = {}));
|
3101
|
-
function
|
3107
|
+
function an(e) {
|
3102
3108
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3103
3109
|
var n = t[t.length - 1];
|
3104
3110
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
3105
3111
|
}, []);
|
3106
3112
|
}
|
3107
|
-
function
|
3113
|
+
function un(e) {
|
3108
3114
|
return typeof e == "function";
|
3109
3115
|
}
|
3110
|
-
function
|
3111
|
-
if (e.length === 1 &&
|
3116
|
+
function se(e, t, r, n, i, s, a) {
|
3117
|
+
if (e.length === 1 && je(e[0]))
|
3112
3118
|
return [
|
3113
3119
|
{
|
3114
3120
|
type: _.literal,
|
3115
3121
|
value: e[0].value
|
3116
3122
|
}
|
3117
3123
|
];
|
3118
|
-
for (var o = [], l = 0,
|
3119
|
-
var
|
3120
|
-
if (
|
3124
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
3125
|
+
var h = u[l];
|
3126
|
+
if (je(h)) {
|
3121
3127
|
o.push({
|
3122
3128
|
type: _.literal,
|
3123
|
-
value:
|
3129
|
+
value: h.value
|
3124
3130
|
});
|
3125
3131
|
continue;
|
3126
3132
|
}
|
3127
|
-
if (
|
3133
|
+
if (Or(h)) {
|
3128
3134
|
typeof s == "number" && o.push({
|
3129
3135
|
type: _.literal,
|
3130
3136
|
value: r.getNumberFormat(t).format(s)
|
3131
3137
|
});
|
3132
3138
|
continue;
|
3133
3139
|
}
|
3134
|
-
var c =
|
3140
|
+
var c = h.value;
|
3135
3141
|
if (!(i && c in i))
|
3136
|
-
throw new
|
3142
|
+
throw new on(c, a);
|
3137
3143
|
var f = i[c];
|
3138
|
-
if (
|
3144
|
+
if (Pr(h)) {
|
3139
3145
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
3140
3146
|
type: typeof f == "string" ? _.literal : _.object,
|
3141
3147
|
value: f
|
3142
3148
|
});
|
3143
3149
|
continue;
|
3144
3150
|
}
|
3145
|
-
if (
|
3146
|
-
var
|
3151
|
+
if (ft(h)) {
|
3152
|
+
var g = typeof h.style == "string" ? n.date[h.style] : Be(h.style) ? h.style.parsedOptions : void 0;
|
3147
3153
|
o.push({
|
3148
3154
|
type: _.literal,
|
3149
|
-
value: r.getDateTimeFormat(t,
|
3155
|
+
value: r.getDateTimeFormat(t, g).format(f)
|
3150
3156
|
});
|
3151
3157
|
continue;
|
3152
3158
|
}
|
3153
|
-
if (
|
3154
|
-
var
|
3159
|
+
if (ct(h)) {
|
3160
|
+
var g = typeof h.style == "string" ? n.time[h.style] : Be(h.style) ? h.style.parsedOptions : n.time.medium;
|
3155
3161
|
o.push({
|
3156
3162
|
type: _.literal,
|
3157
|
-
value: r.getDateTimeFormat(t,
|
3163
|
+
value: r.getDateTimeFormat(t, g).format(f)
|
3158
3164
|
});
|
3159
3165
|
continue;
|
3160
3166
|
}
|
3161
|
-
if (
|
3162
|
-
var
|
3163
|
-
|
3167
|
+
if (lt(h)) {
|
3168
|
+
var g = typeof h.style == "string" ? n.number[h.style] : dt(h.style) ? h.style.parsedOptions : void 0;
|
3169
|
+
g && g.scale && (f = f * (g.scale || 1)), o.push({
|
3164
3170
|
type: _.literal,
|
3165
|
-
value: r.getNumberFormat(t,
|
3171
|
+
value: r.getNumberFormat(t, g).format(f)
|
3166
3172
|
});
|
3167
3173
|
continue;
|
3168
3174
|
}
|
3169
|
-
if (
|
3170
|
-
var
|
3171
|
-
if (!
|
3172
|
-
throw new
|
3173
|
-
var B =
|
3174
|
-
return
|
3175
|
+
if (bt(h)) {
|
3176
|
+
var d = h.children, y = h.value, H = i[y];
|
3177
|
+
if (!un(H))
|
3178
|
+
throw new sn(y, "function", a);
|
3179
|
+
var B = se(d, t, r, n, i, s), S = H(B.map(function(O) {
|
3180
|
+
return O.value;
|
3175
3181
|
}));
|
3176
|
-
Array.isArray(
|
3182
|
+
Array.isArray(S) || (S = [S]), o.push.apply(o, S.map(function(O) {
|
3177
3183
|
return {
|
3178
|
-
type: typeof
|
3179
|
-
value:
|
3184
|
+
type: typeof O == "string" ? _.literal : _.object,
|
3185
|
+
value: O
|
3180
3186
|
};
|
3181
3187
|
}));
|
3182
3188
|
}
|
3183
|
-
if (
|
3184
|
-
var v =
|
3189
|
+
if (pt(h)) {
|
3190
|
+
var v = h.options[f] || h.options.other;
|
3185
3191
|
if (!v)
|
3186
|
-
throw new
|
3187
|
-
o.push.apply(o,
|
3192
|
+
throw new Qe(h.value, f, Object.keys(h.options), a);
|
3193
|
+
o.push.apply(o, se(v.value, t, r, n, i));
|
3188
3194
|
continue;
|
3189
3195
|
}
|
3190
|
-
if (
|
3191
|
-
var v =
|
3196
|
+
if (mt(h)) {
|
3197
|
+
var v = h.options["=".concat(f)];
|
3192
3198
|
if (!v) {
|
3193
3199
|
if (!Intl.PluralRules)
|
3194
|
-
throw new
|
3200
|
+
throw new ce(`Intl.PluralRules is not available in this environment.
|
3195
3201
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3196
|
-
`,
|
3197
|
-
var
|
3198
|
-
v =
|
3202
|
+
`, V.MISSING_INTL_API, a);
|
3203
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
3204
|
+
v = h.options[N] || h.options.other;
|
3199
3205
|
}
|
3200
3206
|
if (!v)
|
3201
|
-
throw new
|
3202
|
-
o.push.apply(o,
|
3207
|
+
throw new Qe(h.value, f, Object.keys(h.options), a);
|
3208
|
+
o.push.apply(o, se(v.value, t, r, n, i, f - (h.offset || 0)));
|
3203
3209
|
continue;
|
3204
3210
|
}
|
3205
3211
|
}
|
3206
|
-
return
|
3212
|
+
return an(o);
|
3207
3213
|
}
|
3208
|
-
function
|
3209
|
-
return t ?
|
3210
|
-
return r[n] =
|
3214
|
+
function hn(e, t) {
|
3215
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3216
|
+
return r[n] = P(P({}, e[n]), t[n] || {}), r;
|
3211
3217
|
}, {})) : e;
|
3212
3218
|
}
|
3213
|
-
function
|
3219
|
+
function ln(e, t) {
|
3214
3220
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3215
|
-
return r[n] =
|
3216
|
-
},
|
3221
|
+
return r[n] = hn(e[n], t[n]), r;
|
3222
|
+
}, P({}, e)) : e;
|
3217
3223
|
}
|
3218
|
-
function
|
3224
|
+
function ye(e) {
|
3219
3225
|
return {
|
3220
3226
|
create: function() {
|
3221
3227
|
return {
|
@@ -3229,39 +3235,39 @@ function xe(e) {
|
|
3229
3235
|
}
|
3230
3236
|
};
|
3231
3237
|
}
|
3232
|
-
function
|
3238
|
+
function fn(e) {
|
3233
3239
|
return e === void 0 && (e = {
|
3234
3240
|
number: {},
|
3235
3241
|
dateTime: {},
|
3236
3242
|
pluralRules: {}
|
3237
3243
|
}), {
|
3238
|
-
getNumberFormat:
|
3244
|
+
getNumberFormat: ge(function() {
|
3239
3245
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3240
3246
|
r[n] = arguments[n];
|
3241
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3247
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, de([void 0], r, !1)))();
|
3242
3248
|
}, {
|
3243
|
-
cache:
|
3244
|
-
strategy:
|
3249
|
+
cache: ye(e.number),
|
3250
|
+
strategy: xe.variadic
|
3245
3251
|
}),
|
3246
|
-
getDateTimeFormat:
|
3252
|
+
getDateTimeFormat: ge(function() {
|
3247
3253
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3248
3254
|
r[n] = arguments[n];
|
3249
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3255
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, de([void 0], r, !1)))();
|
3250
3256
|
}, {
|
3251
|
-
cache:
|
3252
|
-
strategy:
|
3257
|
+
cache: ye(e.dateTime),
|
3258
|
+
strategy: xe.variadic
|
3253
3259
|
}),
|
3254
|
-
getPluralRules:
|
3260
|
+
getPluralRules: ge(function() {
|
3255
3261
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3256
3262
|
r[n] = arguments[n];
|
3257
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3263
|
+
return new ((t = Intl.PluralRules).bind.apply(t, de([void 0], r, !1)))();
|
3258
3264
|
}, {
|
3259
|
-
cache:
|
3260
|
-
strategy:
|
3265
|
+
cache: ye(e.pluralRules),
|
3266
|
+
strategy: xe.variadic
|
3261
3267
|
})
|
3262
3268
|
};
|
3263
3269
|
}
|
3264
|
-
var
|
3270
|
+
var cn = (
|
3265
3271
|
/** @class */
|
3266
3272
|
function() {
|
3267
3273
|
function e(t, r, n, i) {
|
@@ -3272,15 +3278,15 @@ var ln = (
|
|
3272
3278
|
dateTime: {},
|
3273
3279
|
pluralRules: {}
|
3274
3280
|
}, this.format = function(l) {
|
3275
|
-
var
|
3276
|
-
if (
|
3277
|
-
return
|
3278
|
-
var
|
3281
|
+
var u = s.formatToParts(l);
|
3282
|
+
if (u.length === 1)
|
3283
|
+
return u[0].value;
|
3284
|
+
var h = u.reduce(function(c, f) {
|
3279
3285
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3280
3286
|
}, []);
|
3281
|
-
return
|
3287
|
+
return h.length <= 1 ? h[0] || "" : h;
|
3282
3288
|
}, this.formatToParts = function(l) {
|
3283
|
-
return
|
3289
|
+
return se(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
3284
3290
|
}, this.resolvedOptions = function() {
|
3285
3291
|
var l;
|
3286
3292
|
return {
|
@@ -3293,13 +3299,13 @@ var ln = (
|
|
3293
3299
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3294
3300
|
var a = i || {};
|
3295
3301
|
a.formatters;
|
3296
|
-
var o =
|
3297
|
-
this.ast = e.__parse(t,
|
3302
|
+
var o = yr(a, ["formatters"]);
|
3303
|
+
this.ast = e.__parse(t, P(P({}, o), { locale: this.resolvedLocale }));
|
3298
3304
|
} else
|
3299
3305
|
this.ast = t;
|
3300
3306
|
if (!Array.isArray(this.ast))
|
3301
3307
|
throw new TypeError("A message must be provided as a String or AST.");
|
3302
|
-
this.formats =
|
3308
|
+
this.formats = ln(e.formats, n), this.formatters = i && i.formatters || fn(this.formatterCache);
|
3303
3309
|
}
|
3304
3310
|
return Object.defineProperty(e, "defaultLocale", {
|
3305
3311
|
get: function() {
|
@@ -3312,7 +3318,7 @@ var ln = (
|
|
3312
3318
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3313
3319
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3314
3320
|
}
|
3315
|
-
}, e.__parse =
|
3321
|
+
}, e.__parse = nn, e.formats = {
|
3316
3322
|
number: {
|
3317
3323
|
integer: {
|
3318
3324
|
maximumFractionDigits: 0
|
@@ -3373,7 +3379,7 @@ var ln = (
|
|
3373
3379
|
}, e;
|
3374
3380
|
}()
|
3375
3381
|
);
|
3376
|
-
function
|
3382
|
+
function pn(e, t) {
|
3377
3383
|
if (t == null)
|
3378
3384
|
return;
|
3379
3385
|
if (t in e)
|
@@ -3394,92 +3400,92 @@ function fn(e, t) {
|
|
3394
3400
|
n = void 0;
|
3395
3401
|
return n;
|
3396
3402
|
}
|
3397
|
-
const
|
3403
|
+
const w = {}, mn = (e, t, r) => r && (t in w || (w[t] = {}), e in w[t] || (w[t][e] = r), r), Tt = (e, t) => {
|
3398
3404
|
if (t == null)
|
3399
3405
|
return;
|
3400
|
-
if (t in
|
3401
|
-
return
|
3402
|
-
const r =
|
3406
|
+
if (t in w && e in w[t])
|
3407
|
+
return w[t][e];
|
3408
|
+
const r = pe(t);
|
3403
3409
|
for (let n = 0; n < r.length; n++) {
|
3404
|
-
const i = r[n], s =
|
3410
|
+
const i = r[n], s = dn(i, e);
|
3405
3411
|
if (s)
|
3406
|
-
return
|
3412
|
+
return mn(e, t, s);
|
3407
3413
|
}
|
3408
3414
|
};
|
3409
|
-
let
|
3410
|
-
const
|
3411
|
-
function
|
3412
|
-
return
|
3415
|
+
let $e;
|
3416
|
+
const z = le({});
|
3417
|
+
function bn(e) {
|
3418
|
+
return $e[e] || null;
|
3413
3419
|
}
|
3414
|
-
function
|
3415
|
-
return e in
|
3420
|
+
function Bt(e) {
|
3421
|
+
return e in $e;
|
3416
3422
|
}
|
3417
|
-
function
|
3418
|
-
if (!
|
3423
|
+
function dn(e, t) {
|
3424
|
+
if (!Bt(e))
|
3419
3425
|
return null;
|
3420
|
-
const r =
|
3421
|
-
return
|
3426
|
+
const r = bn(e);
|
3427
|
+
return pn(r, t);
|
3422
3428
|
}
|
3423
|
-
function
|
3429
|
+
function gn(e) {
|
3424
3430
|
if (e == null)
|
3425
3431
|
return;
|
3426
|
-
const t =
|
3432
|
+
const t = pe(e);
|
3427
3433
|
for (let r = 0; r < t.length; r++) {
|
3428
3434
|
const n = t[r];
|
3429
|
-
if (
|
3435
|
+
if (Bt(n))
|
3430
3436
|
return n;
|
3431
3437
|
}
|
3432
3438
|
}
|
3433
|
-
function
|
3434
|
-
delete
|
3439
|
+
function St(e, ...t) {
|
3440
|
+
delete w[e], z.update((r) => (r[e] = Er.all([r[e] || {}, ...t]), r));
|
3435
3441
|
}
|
3436
|
-
|
3437
|
-
[
|
3442
|
+
X(
|
3443
|
+
[z],
|
3438
3444
|
([e]) => Object.keys(e)
|
3439
3445
|
);
|
3440
|
-
|
3441
|
-
const
|
3442
|
-
function
|
3443
|
-
|
3446
|
+
z.subscribe((e) => $e = e);
|
3447
|
+
const oe = {};
|
3448
|
+
function xn(e, t) {
|
3449
|
+
oe[e].delete(t), oe[e].size === 0 && delete oe[e];
|
3444
3450
|
}
|
3445
|
-
function
|
3446
|
-
return
|
3451
|
+
function At(e) {
|
3452
|
+
return oe[e];
|
3447
3453
|
}
|
3448
|
-
function
|
3449
|
-
return
|
3450
|
-
const r =
|
3454
|
+
function En(e) {
|
3455
|
+
return pe(e).map((t) => {
|
3456
|
+
const r = At(t);
|
3451
3457
|
return [t, r ? [...r] : []];
|
3452
3458
|
}).filter(([, t]) => t.length > 0);
|
3453
3459
|
}
|
3454
|
-
function
|
3455
|
-
return e == null ? !1 :
|
3460
|
+
function we(e) {
|
3461
|
+
return e == null ? !1 : pe(e).some(
|
3456
3462
|
(t) => {
|
3457
3463
|
var r;
|
3458
|
-
return (r =
|
3464
|
+
return (r = At(t)) == null ? void 0 : r.size;
|
3459
3465
|
}
|
3460
3466
|
);
|
3461
3467
|
}
|
3462
|
-
function
|
3468
|
+
function yn(e, t) {
|
3463
3469
|
return Promise.all(
|
3464
|
-
t.map((n) => (
|
3465
|
-
).then((n) =>
|
3466
|
-
}
|
3467
|
-
const
|
3468
|
-
function
|
3469
|
-
if (!
|
3470
|
-
return e in
|
3471
|
-
const t =
|
3472
|
-
return
|
3470
|
+
t.map((n) => (xn(e, n), n().then((i) => i.default || i)))
|
3471
|
+
).then((n) => St(e, ...n));
|
3472
|
+
}
|
3473
|
+
const Z = {};
|
3474
|
+
function Pt(e) {
|
3475
|
+
if (!we(e))
|
3476
|
+
return e in Z ? Z[e] : Promise.resolve();
|
3477
|
+
const t = En(e);
|
3478
|
+
return Z[e] = Promise.all(
|
3473
3479
|
t.map(
|
3474
|
-
([r, n]) =>
|
3480
|
+
([r, n]) => yn(r, n)
|
3475
3481
|
)
|
3476
3482
|
).then(() => {
|
3477
|
-
if (
|
3478
|
-
return
|
3479
|
-
delete
|
3480
|
-
}),
|
3483
|
+
if (we(e))
|
3484
|
+
return Pt(e);
|
3485
|
+
delete Z[e];
|
3486
|
+
}), Z[e];
|
3481
3487
|
}
|
3482
|
-
const
|
3488
|
+
const _n = {
|
3483
3489
|
number: {
|
3484
3490
|
scientific: { notation: "scientific" },
|
3485
3491
|
engineering: { notation: "engineering" },
|
@@ -3508,159 +3514,159 @@ const En = {
|
|
3508
3514
|
timeZoneName: "short"
|
3509
3515
|
}
|
3510
3516
|
}
|
3511
|
-
},
|
3517
|
+
}, vn = {
|
3512
3518
|
fallbackLocale: null,
|
3513
3519
|
loadingDelay: 200,
|
3514
|
-
formats:
|
3520
|
+
formats: _n,
|
3515
3521
|
warnOnMissingMessages: !0,
|
3516
3522
|
handleMissingMessage: void 0,
|
3517
3523
|
ignoreTag: !0
|
3518
|
-
},
|
3519
|
-
function
|
3520
|
-
return
|
3524
|
+
}, Hn = vn;
|
3525
|
+
function k() {
|
3526
|
+
return Hn;
|
3521
3527
|
}
|
3522
|
-
const
|
3523
|
-
var
|
3528
|
+
const _e = le(!1);
|
3529
|
+
var Tn = Object.defineProperty, Bn = Object.defineProperties, Sn = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? Tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, On = (e, t) => {
|
3524
3530
|
for (var r in t || (t = {}))
|
3525
|
-
|
3526
|
-
if (
|
3527
|
-
for (var r of
|
3528
|
-
|
3531
|
+
An.call(t, r) && qe(e, r, t[r]);
|
3532
|
+
if (Je)
|
3533
|
+
for (var r of Je(t))
|
3534
|
+
Pn.call(t, r) && qe(e, r, t[r]);
|
3529
3535
|
return e;
|
3530
|
-
},
|
3531
|
-
let
|
3532
|
-
const
|
3533
|
-
function
|
3536
|
+
}, Nn = (e, t) => Bn(e, Sn(t));
|
3537
|
+
let Ie;
|
3538
|
+
const ue = le(null);
|
3539
|
+
function Ye(e) {
|
3534
3540
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3535
3541
|
}
|
3536
|
-
function
|
3537
|
-
const r =
|
3538
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3542
|
+
function pe(e, t = k().fallbackLocale) {
|
3543
|
+
const r = Ye(e);
|
3544
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ye(t)])] : r;
|
3539
3545
|
}
|
3540
|
-
function
|
3541
|
-
return
|
3546
|
+
function M() {
|
3547
|
+
return Ie ?? void 0;
|
3542
3548
|
}
|
3543
|
-
|
3544
|
-
|
3549
|
+
ue.subscribe((e) => {
|
3550
|
+
Ie = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3545
3551
|
});
|
3546
|
-
const
|
3547
|
-
if (e &&
|
3548
|
-
const { loadingDelay: t } =
|
3552
|
+
const wn = (e) => {
|
3553
|
+
if (e && gn(e) && we(e)) {
|
3554
|
+
const { loadingDelay: t } = k();
|
3549
3555
|
let r;
|
3550
|
-
return typeof window < "u" &&
|
3551
|
-
() =>
|
3556
|
+
return typeof window < "u" && M() != null && t ? r = window.setTimeout(
|
3557
|
+
() => _e.set(!0),
|
3552
3558
|
t
|
3553
|
-
) :
|
3554
|
-
|
3559
|
+
) : _e.set(!0), Pt(e).then(() => {
|
3560
|
+
ue.set(e);
|
3555
3561
|
}).finally(() => {
|
3556
|
-
clearTimeout(r),
|
3562
|
+
clearTimeout(r), _e.set(!1);
|
3557
3563
|
});
|
3558
3564
|
}
|
3559
|
-
return
|
3560
|
-
}, I =
|
3561
|
-
set:
|
3562
|
-
}),
|
3565
|
+
return ue.set(e);
|
3566
|
+
}, I = Nn(On({}, ue), {
|
3567
|
+
set: wn
|
3568
|
+
}), me = (e) => {
|
3563
3569
|
const t = /* @__PURE__ */ Object.create(null);
|
3564
3570
|
return (n) => {
|
3565
3571
|
const i = JSON.stringify(n);
|
3566
3572
|
return i in t ? t[i] : t[i] = e(n);
|
3567
3573
|
};
|
3568
3574
|
};
|
3569
|
-
var
|
3575
|
+
var In = Object.defineProperty, he = Object.getOwnPropertySymbols, Ot = Object.prototype.hasOwnProperty, Nt = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Re = (e, t) => {
|
3570
3576
|
for (var r in t || (t = {}))
|
3571
|
-
|
3572
|
-
if (
|
3573
|
-
for (var r of
|
3574
|
-
|
3577
|
+
Ot.call(t, r) && Ke(e, r, t[r]);
|
3578
|
+
if (he)
|
3579
|
+
for (var r of he(t))
|
3580
|
+
Nt.call(t, r) && Ke(e, r, t[r]);
|
3575
3581
|
return e;
|
3576
|
-
},
|
3582
|
+
}, W = (e, t) => {
|
3577
3583
|
var r = {};
|
3578
3584
|
for (var n in e)
|
3579
|
-
|
3580
|
-
if (e != null &&
|
3581
|
-
for (var n of
|
3582
|
-
t.indexOf(n) < 0 &&
|
3585
|
+
Ot.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3586
|
+
if (e != null && he)
|
3587
|
+
for (var n of he(e))
|
3588
|
+
t.indexOf(n) < 0 && Nt.call(e, n) && (r[n] = e[n]);
|
3583
3589
|
return r;
|
3584
3590
|
};
|
3585
|
-
const
|
3586
|
-
const { formats: r } =
|
3591
|
+
const K = (e, t) => {
|
3592
|
+
const { formats: r } = k();
|
3587
3593
|
if (e in r && t in r[e])
|
3588
3594
|
return r[e][t];
|
3589
3595
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3590
|
-
},
|
3596
|
+
}, Ln = me(
|
3591
3597
|
(e) => {
|
3592
|
-
var t = e, { locale: r, format: n } = t, i =
|
3598
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3593
3599
|
if (r == null)
|
3594
3600
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3595
|
-
return n && (i =
|
3601
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
3596
3602
|
}
|
3597
|
-
),
|
3603
|
+
), Cn = me(
|
3598
3604
|
(e) => {
|
3599
|
-
var t = e, { locale: r, format: n } = t, i =
|
3605
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3600
3606
|
if (r == null)
|
3601
3607
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3602
|
-
return n ? i =
|
3608
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
3603
3609
|
}
|
3604
|
-
),
|
3610
|
+
), Mn = me(
|
3605
3611
|
(e) => {
|
3606
|
-
var t = e, { locale: r, format: n } = t, i =
|
3612
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3607
3613
|
if (r == null)
|
3608
3614
|
throw new Error(
|
3609
3615
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3610
3616
|
);
|
3611
|
-
return n ? i =
|
3617
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
3612
3618
|
}
|
3613
|
-
),
|
3619
|
+
), $n = (e = {}) => {
|
3614
3620
|
var t = e, {
|
3615
|
-
locale: r =
|
3616
|
-
} = t, n =
|
3621
|
+
locale: r = M()
|
3622
|
+
} = t, n = W(t, [
|
3617
3623
|
"locale"
|
3618
3624
|
]);
|
3619
|
-
return
|
3620
|
-
},
|
3625
|
+
return Ln(Re({ locale: r }, n));
|
3626
|
+
}, Rn = (e = {}) => {
|
3621
3627
|
var t = e, {
|
3622
|
-
locale: r =
|
3623
|
-
} = t, n =
|
3628
|
+
locale: r = M()
|
3629
|
+
} = t, n = W(t, [
|
3624
3630
|
"locale"
|
3625
3631
|
]);
|
3626
|
-
return
|
3627
|
-
},
|
3632
|
+
return Cn(Re({ locale: r }, n));
|
3633
|
+
}, Un = (e = {}) => {
|
3628
3634
|
var t = e, {
|
3629
|
-
locale: r =
|
3630
|
-
} = t, n =
|
3635
|
+
locale: r = M()
|
3636
|
+
} = t, n = W(t, [
|
3631
3637
|
"locale"
|
3632
3638
|
]);
|
3633
|
-
return
|
3634
|
-
},
|
3639
|
+
return Mn(Re({ locale: r }, n));
|
3640
|
+
}, Gn = me(
|
3635
3641
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3636
|
-
(e, t =
|
3637
|
-
ignoreTag:
|
3642
|
+
(e, t = M()) => new cn(e, t, k().formats, {
|
3643
|
+
ignoreTag: k().ignoreTag
|
3638
3644
|
})
|
3639
|
-
),
|
3645
|
+
), Dn = (e, t = {}) => {
|
3640
3646
|
var r, n, i, s;
|
3641
3647
|
let a = t;
|
3642
3648
|
typeof e == "object" && (a = e, e = a.id);
|
3643
3649
|
const {
|
3644
3650
|
values: o,
|
3645
|
-
locale: l =
|
3646
|
-
default:
|
3651
|
+
locale: l = M(),
|
3652
|
+
default: u
|
3647
3653
|
} = a;
|
3648
3654
|
if (l == null)
|
3649
3655
|
throw new Error(
|
3650
3656
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3651
3657
|
);
|
3652
|
-
let
|
3653
|
-
if (!
|
3654
|
-
|
3655
|
-
else if (typeof
|
3658
|
+
let h = Tt(e, l);
|
3659
|
+
if (!h)
|
3660
|
+
h = (s = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
3661
|
+
else if (typeof h != "string")
|
3656
3662
|
return console.warn(
|
3657
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
3658
|
-
),
|
3663
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
3664
|
+
), h;
|
3659
3665
|
if (!o)
|
3660
|
-
return
|
3661
|
-
let c =
|
3666
|
+
return h;
|
3667
|
+
let c = h;
|
3662
3668
|
try {
|
3663
|
-
c =
|
3669
|
+
c = Gn(h, l).format(o);
|
3664
3670
|
} catch (f) {
|
3665
3671
|
f instanceof Error && console.warn(
|
3666
3672
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3668,23 +3674,23 @@ const Y = (e, t) => {
|
|
3668
3674
|
);
|
3669
3675
|
}
|
3670
3676
|
return c;
|
3671
|
-
},
|
3672
|
-
|
3673
|
-
|
3674
|
-
|
3675
|
-
|
3676
|
-
function
|
3677
|
+
}, Fn = (e, t) => Un(t).format(e), jn = (e, t) => Rn(t).format(e), Vn = (e, t) => $n(t).format(e), kn = (e, t = M()) => Tt(e, t), Xn = X([I, z], () => Dn);
|
3678
|
+
X([I], () => Fn);
|
3679
|
+
X([I], () => jn);
|
3680
|
+
X([I], () => Vn);
|
3681
|
+
X([I, z], () => kn);
|
3682
|
+
function zn({ withLocale: e, translations: t }) {
|
3677
3683
|
I.subscribe((r) => {
|
3678
|
-
r == null && (
|
3684
|
+
r == null && (z.set(t), I.set(e));
|
3679
3685
|
});
|
3680
3686
|
}
|
3681
|
-
function
|
3682
|
-
|
3687
|
+
function et(e, t) {
|
3688
|
+
St(e, t);
|
3683
3689
|
}
|
3684
|
-
function
|
3690
|
+
function Wn(e) {
|
3685
3691
|
I.set(e);
|
3686
3692
|
}
|
3687
|
-
const
|
3693
|
+
const tt = {
|
3688
3694
|
en: {
|
3689
3695
|
bets: "bets"
|
3690
3696
|
},
|
@@ -3710,121 +3716,121 @@ const Ke = {
|
|
3710
3716
|
bets: "bets"
|
3711
3717
|
}
|
3712
3718
|
};
|
3713
|
-
function
|
3714
|
-
|
3719
|
+
function Zn(e) {
|
3720
|
+
Rt(e, "svelte-6dosur", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}');
|
3715
3721
|
}
|
3716
|
-
function
|
3722
|
+
function Qn(e) {
|
3717
3723
|
let t, r, n, i, s;
|
3718
3724
|
return {
|
3719
3725
|
c() {
|
3720
|
-
t =
|
3726
|
+
t = Q("div"), r = Q("div"), n = Q("span"), i = Dt(
|
3721
3727
|
/*progressText*/
|
3722
3728
|
e[3]
|
3723
|
-
),
|
3724
|
-
e[4]),
|
3729
|
+
), C(n, "part", "progressText"), C(r, "class", s = "stepBar " + /*curTatus*/
|
3730
|
+
e[4]), C(r, "part", "stepBar"), C(t, "class", "general-icon-progress-bar"), C(t, "part", "totalBar");
|
3725
3731
|
},
|
3726
3732
|
m(a, o) {
|
3727
|
-
|
3733
|
+
st(a, t, o), ne(t, r), ne(r, n), ne(n, i), e[13](n), e[14](r), e[15](t);
|
3728
3734
|
},
|
3729
3735
|
p(a, [o]) {
|
3730
3736
|
o & /*progressText*/
|
3731
|
-
8 &&
|
3737
|
+
8 && jt(
|
3732
3738
|
i,
|
3733
3739
|
/*progressText*/
|
3734
3740
|
a[3]
|
3735
3741
|
), o & /*curTatus*/
|
3736
3742
|
16 && s !== (s = "stepBar " + /*curTatus*/
|
3737
|
-
a[4]) &&
|
3743
|
+
a[4]) && C(r, "class", s);
|
3738
3744
|
},
|
3739
3745
|
i: T,
|
3740
3746
|
o: T,
|
3741
3747
|
d(a) {
|
3742
|
-
a &&
|
3748
|
+
a && Ce(t), e[13](null), e[14](null), e[15](null);
|
3743
3749
|
}
|
3744
3750
|
};
|
3745
3751
|
}
|
3746
|
-
function
|
3752
|
+
function Jn(e, t, r) {
|
3747
3753
|
let n;
|
3748
|
-
|
3749
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl:
|
3750
|
-
|
3751
|
-
const
|
3752
|
-
fetch(
|
3753
|
-
Object.keys(
|
3754
|
-
|
3754
|
+
$t(e, Xn, (p) => r(20, n = p));
|
3755
|
+
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl: u = "" } = t, { progressfractiondigit: h = 1 } = t, { triggerreset: c } = t, f, g, d, y, H, B, S, v = "0px", N = "active";
|
3756
|
+
zn({ withLocale: "en", translations: {} });
|
3757
|
+
const O = () => {
|
3758
|
+
fetch(u).then((L) => L.json()).then((L) => {
|
3759
|
+
Object.keys(L).forEach((Ue) => {
|
3760
|
+
et(Ue, L[Ue]);
|
3755
3761
|
});
|
3756
|
-
}).catch((
|
3757
|
-
console.log(
|
3762
|
+
}).catch((L) => {
|
3763
|
+
console.log(L);
|
3758
3764
|
});
|
3759
3765
|
};
|
3760
|
-
Object.keys(
|
3761
|
-
|
3766
|
+
Object.keys(tt).forEach((p) => {
|
3767
|
+
et(p, tt[p]);
|
3762
3768
|
});
|
3763
|
-
const
|
3764
|
-
|
3765
|
-
},
|
3766
|
-
let p = (i / s * 100).toFixed(
|
3769
|
+
const $ = () => {
|
3770
|
+
Wn(o);
|
3771
|
+
}, te = () => {
|
3772
|
+
let p = (i / s * 100).toFixed(h);
|
3767
3773
|
setTimeout(
|
3768
3774
|
() => {
|
3769
3775
|
a || a === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
3770
3776
|
},
|
3771
3777
|
y ? 573 : 0
|
3772
|
-
), p == 0 || p == 100 ? (B = "0px",
|
3773
|
-
},
|
3774
|
-
r(4,
|
3778
|
+
), p == 0 || p == 100 ? (B = "0px", S = "0px", v = p == 100 ? "3px" : "0px") : (B = `${f.offsetHeight}px`, H = B, S = `${f.offsetHeight / 3}px`, v = "0px"), g.style.setProperty("--parentElementHeight", H), d.style.setProperty("--currentStep", p + "%"), d.style.setProperty("--triangleHeight", B), d.style.setProperty("--halfOfTriangleHeight", S), d.style.setProperty("--stepBarBorderRadius", v);
|
3779
|
+
}, wt = () => {
|
3780
|
+
r(4, N = l == "active" ? "" : "inactive");
|
3775
3781
|
};
|
3776
|
-
function
|
3777
|
-
|
3778
|
-
|
3782
|
+
function It(p) {
|
3783
|
+
q[p ? "unshift" : "push"](() => {
|
3784
|
+
g = p, r(1, g);
|
3779
3785
|
});
|
3780
3786
|
}
|
3781
|
-
function
|
3782
|
-
|
3783
|
-
|
3787
|
+
function Lt(p) {
|
3788
|
+
q[p ? "unshift" : "push"](() => {
|
3789
|
+
d = p, r(2, d);
|
3784
3790
|
});
|
3785
3791
|
}
|
3786
|
-
function
|
3787
|
-
|
3792
|
+
function Ct(p) {
|
3793
|
+
q[p ? "unshift" : "push"](() => {
|
3788
3794
|
f = p, r(0, f);
|
3789
3795
|
});
|
3790
3796
|
}
|
3791
3797
|
return e.$$set = (p) => {
|
3792
|
-
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, a = p.showaspercent), "lang" in p && r(8, o = p.lang), "status" in p && r(9, l = p.status), "translationurl" in p && r(10,
|
3798
|
+
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, a = p.showaspercent), "lang" in p && r(8, o = p.lang), "status" in p && r(9, l = p.status), "translationurl" in p && r(10, u = p.translationurl), "progressfractiondigit" in p && r(11, h = p.progressfractiondigit), "triggerreset" in p && r(12, c = p.triggerreset);
|
3793
3799
|
}, e.$$.update = () => {
|
3794
3800
|
e.$$.dirty & /*triggerreset, total*/
|
3795
3801
|
4160 && c && s && setTimeout(() => {
|
3796
|
-
|
3802
|
+
te();
|
3797
3803
|
}), e.$$.dirty & /*lang*/
|
3798
|
-
256 && o &&
|
3799
|
-
512 && l &&
|
3800
|
-
1024 &&
|
3804
|
+
256 && o && $(), e.$$.dirty & /*status*/
|
3805
|
+
512 && l && wt(), e.$$.dirty & /*translationurl*/
|
3806
|
+
1024 && u && O();
|
3801
3807
|
}, [
|
3802
3808
|
f,
|
3803
|
-
x,
|
3804
3809
|
g,
|
3810
|
+
d,
|
3805
3811
|
y,
|
3806
|
-
|
3812
|
+
N,
|
3807
3813
|
i,
|
3808
3814
|
s,
|
3809
3815
|
a,
|
3810
3816
|
o,
|
3811
3817
|
l,
|
3812
|
-
h,
|
3813
3818
|
u,
|
3819
|
+
h,
|
3814
3820
|
c,
|
3815
|
-
Nt,
|
3816
3821
|
It,
|
3817
|
-
|
3822
|
+
Lt,
|
3823
|
+
Ct
|
3818
3824
|
];
|
3819
3825
|
}
|
3820
|
-
class
|
3826
|
+
class qn extends tr {
|
3821
3827
|
constructor(t) {
|
3822
|
-
super(),
|
3828
|
+
super(), Kt(
|
3823
3829
|
this,
|
3824
3830
|
t,
|
3825
|
-
|
3826
|
-
|
3827
|
-
|
3831
|
+
Jn,
|
3832
|
+
Qn,
|
3833
|
+
nt,
|
3828
3834
|
{
|
3829
3835
|
currentstep: 5,
|
3830
3836
|
total: 6,
|
@@ -3835,59 +3841,59 @@ class Qn extends Kt {
|
|
3835
3841
|
progressfractiondigit: 11,
|
3836
3842
|
triggerreset: 12
|
3837
3843
|
},
|
3838
|
-
|
3844
|
+
Zn
|
3839
3845
|
);
|
3840
3846
|
}
|
3841
3847
|
get currentstep() {
|
3842
3848
|
return this.$$.ctx[5];
|
3843
3849
|
}
|
3844
3850
|
set currentstep(t) {
|
3845
|
-
this.$$set({ currentstep: t }),
|
3851
|
+
this.$$set({ currentstep: t }), A();
|
3846
3852
|
}
|
3847
3853
|
get total() {
|
3848
3854
|
return this.$$.ctx[6];
|
3849
3855
|
}
|
3850
3856
|
set total(t) {
|
3851
|
-
this.$$set({ total: t }),
|
3857
|
+
this.$$set({ total: t }), A();
|
3852
3858
|
}
|
3853
3859
|
get showaspercent() {
|
3854
3860
|
return this.$$.ctx[7];
|
3855
3861
|
}
|
3856
3862
|
set showaspercent(t) {
|
3857
|
-
this.$$set({ showaspercent: t }),
|
3863
|
+
this.$$set({ showaspercent: t }), A();
|
3858
3864
|
}
|
3859
3865
|
get lang() {
|
3860
3866
|
return this.$$.ctx[8];
|
3861
3867
|
}
|
3862
3868
|
set lang(t) {
|
3863
|
-
this.$$set({ lang: t }),
|
3869
|
+
this.$$set({ lang: t }), A();
|
3864
3870
|
}
|
3865
3871
|
get status() {
|
3866
3872
|
return this.$$.ctx[9];
|
3867
3873
|
}
|
3868
3874
|
set status(t) {
|
3869
|
-
this.$$set({ status: t }),
|
3875
|
+
this.$$set({ status: t }), A();
|
3870
3876
|
}
|
3871
3877
|
get translationurl() {
|
3872
3878
|
return this.$$.ctx[10];
|
3873
3879
|
}
|
3874
3880
|
set translationurl(t) {
|
3875
|
-
this.$$set({ translationurl: t }),
|
3881
|
+
this.$$set({ translationurl: t }), A();
|
3876
3882
|
}
|
3877
3883
|
get progressfractiondigit() {
|
3878
3884
|
return this.$$.ctx[11];
|
3879
3885
|
}
|
3880
3886
|
set progressfractiondigit(t) {
|
3881
|
-
this.$$set({ progressfractiondigit: t }),
|
3887
|
+
this.$$set({ progressfractiondigit: t }), A();
|
3882
3888
|
}
|
3883
3889
|
get triggerreset() {
|
3884
3890
|
return this.$$.ctx[12];
|
3885
3891
|
}
|
3886
3892
|
set triggerreset(t) {
|
3887
|
-
this.$$set({ triggerreset: t }),
|
3893
|
+
this.$$set({ triggerreset: t }), A();
|
3888
3894
|
}
|
3889
3895
|
}
|
3890
|
-
|
3896
|
+
er(qn, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3891
3897
|
export {
|
3892
|
-
|
3898
|
+
qn as G
|
3893
3899
|
};
|