@everymatrix/general-icon-progress-bar 1.56.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralIconProgressBar-RIcTdYqm.js → GeneralIconProgressBar-DSaIA0Oc.js} +490 -466
- package/components/GeneralIconProgressBar-DvairRCn.cjs +16 -0
- package/components/{GeneralIconProgressBar-YqbhMYw-.js → GeneralIconProgressBar-DvfGRc7A.js} +384 -360
- 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-Dbtf2ZPD.cjs +0 -3
package/components/{GeneralIconProgressBar-RIcTdYqm.js → GeneralIconProgressBar-DSaIA0Oc.js}
RENAMED
@@ -1,53 +1,53 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var me = (e, t, r) => t in e ?
|
1
|
+
var Ft = Object.defineProperty, jt = Object.defineProperties;
|
2
|
+
var Vt = Object.getOwnPropertyDescriptors;
|
3
|
+
var Fe = Object.getOwnPropertySymbols;
|
4
|
+
var kt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable;
|
5
|
+
var me = (e, t, r) => t in e ? Ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, je = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
kt.call(t, r) && me(e, r, t[r]);
|
8
|
+
if (Fe)
|
9
|
+
for (var r of Fe(t))
|
10
|
+
Xt.call(t, r) && me(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
13
|
-
var T = (e, t, r) => me(e, typeof t != "symbol" ? t + "" : t, r);
|
14
|
-
var
|
15
|
-
var s = (
|
12
|
+
}, Ve = (e, t) => jt(e, Vt(t));
|
13
|
+
var T = (e, t, r) => (me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
|
+
var ke = (e, t, r) => new Promise((n, i) => {
|
15
|
+
var s = (u) => {
|
16
16
|
try {
|
17
|
-
a(r.next(
|
18
|
-
} catch (
|
19
|
-
i(
|
17
|
+
a(r.next(u));
|
18
|
+
} catch (h) {
|
19
|
+
i(h);
|
20
20
|
}
|
21
|
-
}, o = (
|
21
|
+
}, o = (u) => {
|
22
22
|
try {
|
23
|
-
a(r.throw(
|
24
|
-
} catch (
|
25
|
-
i(
|
23
|
+
a(r.throw(u));
|
24
|
+
} catch (h) {
|
25
|
+
i(h);
|
26
26
|
}
|
27
|
-
}, a = (
|
27
|
+
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, o);
|
28
28
|
a((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
30
|
function B() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function ht(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function Xe() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
38
|
function ee(e) {
|
39
|
-
e.forEach(
|
39
|
+
e.forEach(ht);
|
40
40
|
}
|
41
41
|
function Le(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function ut(e, t) {
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
46
46
|
}
|
47
|
-
function
|
47
|
+
function zt(e) {
|
48
48
|
return Object.keys(e).length === 0;
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function lt(e, ...t) {
|
51
51
|
if (e == null) {
|
52
52
|
for (const n of t)
|
53
53
|
n(void 0);
|
@@ -56,21 +56,22 @@ function ut(e, ...t) {
|
|
56
56
|
const r = e.subscribe(...t);
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
58
58
|
}
|
59
|
-
function
|
60
|
-
e.$$.on_destroy.push(
|
59
|
+
function Wt(e, t, r) {
|
60
|
+
e.$$.on_destroy.push(lt(t, r));
|
61
61
|
}
|
62
62
|
function ne(e, t) {
|
63
63
|
e.appendChild(t);
|
64
64
|
}
|
65
|
-
function
|
66
|
-
const n =
|
65
|
+
function Zt(e, t, r) {
|
66
|
+
const n = Qt(e);
|
67
67
|
if (!n.getElementById(t)) {
|
68
68
|
const i = Q("style");
|
69
|
-
i.id = t, i.textContent = r,
|
69
|
+
i.id = t, i.textContent = r, Jt(n, i);
|
70
70
|
}
|
71
71
|
}
|
72
|
-
function
|
73
|
-
if (!e)
|
72
|
+
function Qt(e) {
|
73
|
+
if (!e)
|
74
|
+
return document;
|
74
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
75
76
|
return t && /** @type {ShadowRoot} */
|
76
77
|
t.host ? (
|
@@ -78,14 +79,14 @@ function Wt(e) {
|
|
78
79
|
t
|
79
80
|
) : e.ownerDocument;
|
80
81
|
}
|
81
|
-
function
|
82
|
+
function Jt(e, t) {
|
82
83
|
return ne(
|
83
84
|
/** @type {Document} */
|
84
85
|
e.head || e,
|
85
86
|
t
|
86
87
|
), t.sheet;
|
87
88
|
}
|
88
|
-
function
|
89
|
+
function ft(e, t, r) {
|
89
90
|
e.insertBefore(t, r || null);
|
90
91
|
}
|
91
92
|
function Ce(e) {
|
@@ -94,20 +95,20 @@ function Ce(e) {
|
|
94
95
|
function Q(e) {
|
95
96
|
return document.createElement(e);
|
96
97
|
}
|
97
|
-
function
|
98
|
+
function qt(e) {
|
98
99
|
return document.createTextNode(e);
|
99
100
|
}
|
100
101
|
function C(e, t, r) {
|
101
102
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
102
103
|
}
|
103
|
-
function
|
104
|
+
function Yt(e) {
|
104
105
|
return Array.from(e.childNodes);
|
105
106
|
}
|
106
|
-
function
|
107
|
+
function Kt(e, t) {
|
107
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
108
109
|
t);
|
109
110
|
}
|
110
|
-
function
|
111
|
+
function er(e) {
|
111
112
|
const t = {};
|
112
113
|
return e.childNodes.forEach(
|
113
114
|
/** @param {Element} node */
|
@@ -122,10 +123,10 @@ function J(e) {
|
|
122
123
|
}
|
123
124
|
const G = [], q = [];
|
124
125
|
let D = [];
|
125
|
-
const
|
126
|
+
const ze = [], tr = /* @__PURE__ */ Promise.resolve();
|
126
127
|
let ve = !1;
|
127
|
-
function
|
128
|
-
ve || (ve = !0,
|
128
|
+
function rr() {
|
129
|
+
ve || (ve = !0, tr.then(P));
|
129
130
|
}
|
130
131
|
function He(e) {
|
131
132
|
D.push(e);
|
@@ -140,92 +141,93 @@ function P() {
|
|
140
141
|
try {
|
141
142
|
for (; $ < G.length; ) {
|
142
143
|
const t = G[$];
|
143
|
-
$++, J(t),
|
144
|
+
$++, J(t), nr(t.$$);
|
144
145
|
}
|
145
146
|
} catch (t) {
|
146
147
|
throw G.length = 0, $ = 0, t;
|
147
148
|
}
|
148
|
-
for (J(null), G.length = 0, $ = 0; q.length; )
|
149
|
+
for (J(null), G.length = 0, $ = 0; q.length; )
|
150
|
+
q.pop()();
|
149
151
|
for (let t = 0; t < D.length; t += 1) {
|
150
152
|
const r = D[t];
|
151
153
|
be.has(r) || (be.add(r), r());
|
152
154
|
}
|
153
155
|
D.length = 0;
|
154
156
|
} while (G.length);
|
155
|
-
for (;
|
156
|
-
|
157
|
+
for (; ze.length; )
|
158
|
+
ze.pop()();
|
157
159
|
ve = !1, be.clear(), J(e);
|
158
160
|
}
|
159
|
-
function
|
161
|
+
function nr(e) {
|
160
162
|
if (e.fragment !== null) {
|
161
163
|
e.update(), ee(e.before_update);
|
162
164
|
const t = e.dirty;
|
163
165
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(He);
|
164
166
|
}
|
165
167
|
}
|
166
|
-
function
|
168
|
+
function ir(e) {
|
167
169
|
const t = [], r = [];
|
168
170
|
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
169
171
|
}
|
170
|
-
const
|
171
|
-
function
|
172
|
-
e && e.i && (
|
172
|
+
const sr = /* @__PURE__ */ new Set();
|
173
|
+
function or(e, t) {
|
174
|
+
e && e.i && (sr.delete(e), e.i(t));
|
173
175
|
}
|
174
|
-
function
|
176
|
+
function ar(e, t, r) {
|
175
177
|
const { fragment: n, after_update: i } = e.$$;
|
176
178
|
n && n.m(t, r), He(() => {
|
177
|
-
const s = e.$$.on_mount.map(
|
179
|
+
const s = e.$$.on_mount.map(ht).filter(Le);
|
178
180
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
179
181
|
}), i.forEach(He);
|
180
182
|
}
|
181
|
-
function
|
183
|
+
function hr(e, t) {
|
182
184
|
const r = e.$$;
|
183
|
-
r.fragment !== null && (
|
185
|
+
r.fragment !== null && (ir(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
184
186
|
}
|
185
|
-
function
|
186
|
-
e.$$.dirty[0] === -1 && (G.push(e),
|
187
|
+
function ur(e, t) {
|
188
|
+
e.$$.dirty[0] === -1 && (G.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
187
189
|
}
|
188
|
-
function
|
189
|
-
const
|
190
|
+
function lr(e, t, r, n, i, s, o = null, a = [-1]) {
|
191
|
+
const u = Me;
|
190
192
|
J(e);
|
191
|
-
const
|
193
|
+
const h = e.$$ = {
|
192
194
|
fragment: null,
|
193
195
|
ctx: [],
|
194
196
|
// state
|
195
197
|
props: s,
|
196
198
|
update: B,
|
197
199
|
not_equal: i,
|
198
|
-
bound:
|
200
|
+
bound: Xe(),
|
199
201
|
// lifecycle
|
200
202
|
on_mount: [],
|
201
203
|
on_destroy: [],
|
202
204
|
on_disconnect: [],
|
203
205
|
before_update: [],
|
204
206
|
after_update: [],
|
205
|
-
context: new Map(t.context || (
|
207
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
206
208
|
// everything else
|
207
|
-
callbacks:
|
209
|
+
callbacks: Xe(),
|
208
210
|
dirty: a,
|
209
211
|
skip_bound: !1,
|
210
|
-
root: t.target ||
|
212
|
+
root: t.target || u.$$.root
|
211
213
|
};
|
212
|
-
o && o(
|
214
|
+
o && o(h.root);
|
213
215
|
let l = !1;
|
214
|
-
if (
|
216
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
215
217
|
const g = x.length ? x[0] : f;
|
216
|
-
return
|
217
|
-
}) : [],
|
218
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l && ur(e, c)), f;
|
219
|
+
}) : [], h.update(), l = !0, ee(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
218
220
|
if (t.hydrate) {
|
219
|
-
const c =
|
220
|
-
|
221
|
+
const c = Yt(t.target);
|
222
|
+
h.fragment && h.fragment.l(c), c.forEach(Ce);
|
221
223
|
} else
|
222
|
-
|
223
|
-
t.intro &&
|
224
|
+
h.fragment && h.fragment.c();
|
225
|
+
t.intro && or(e.$$.fragment), ar(e, t.target, t.anchor), P();
|
224
226
|
}
|
225
|
-
J(
|
227
|
+
J(u);
|
226
228
|
}
|
227
|
-
let
|
228
|
-
typeof HTMLElement == "function" && (
|
229
|
+
let ct;
|
230
|
+
typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
229
231
|
constructor(t, r, n) {
|
230
232
|
super();
|
231
233
|
/** The Svelte component constructor */
|
@@ -262,7 +264,7 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
262
264
|
}
|
263
265
|
}
|
264
266
|
connectedCallback() {
|
265
|
-
return
|
267
|
+
return ke(this, null, function* () {
|
266
268
|
if (this.$$cn = !0, !this.$$c) {
|
267
269
|
let t = function(s) {
|
268
270
|
return () => {
|
@@ -275,18 +277,18 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
275
277
|
* @param {HTMLElement} target
|
276
278
|
* @param {HTMLElement} [anchor]
|
277
279
|
*/
|
278
|
-
m: function(
|
279
|
-
|
280
|
+
m: function(h, l) {
|
281
|
+
ft(h, o, l);
|
280
282
|
},
|
281
|
-
d: function(
|
282
|
-
|
283
|
+
d: function(h) {
|
284
|
+
h && Ce(o);
|
283
285
|
}
|
284
286
|
};
|
285
287
|
};
|
286
288
|
};
|
287
289
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
288
290
|
return;
|
289
|
-
const r = {}, n =
|
291
|
+
const r = {}, n = er(this);
|
290
292
|
for (const s of this.$$s)
|
291
293
|
s in n && (r[s] = [t(s)]);
|
292
294
|
for (const s of this.attributes) {
|
@@ -297,7 +299,7 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
297
299
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
298
300
|
this.$$c = new this.$$ctor({
|
299
301
|
target: this.shadowRoot || this,
|
300
|
-
props:
|
302
|
+
props: Ve(je({}, this.$$d), {
|
301
303
|
$$slots: r,
|
302
304
|
$$scope: {
|
303
305
|
ctx: []
|
@@ -375,8 +377,8 @@ function ie(e, t, r, n) {
|
|
375
377
|
return t;
|
376
378
|
}
|
377
379
|
}
|
378
|
-
function
|
379
|
-
let o = class extends
|
380
|
+
function fr(e, t, r, n, i, s) {
|
381
|
+
let o = class extends ct {
|
380
382
|
constructor() {
|
381
383
|
super(e, r, i), this.$$p_d = t;
|
382
384
|
}
|
@@ -391,22 +393,22 @@ function hr(e, t, r, n, i, s) {
|
|
391
393
|
get() {
|
392
394
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
393
395
|
},
|
394
|
-
set(
|
395
|
-
var
|
396
|
-
|
396
|
+
set(u) {
|
397
|
+
var h;
|
398
|
+
u = ie(a, u, t), this.$$d[a] = u, (h = this.$$c) == null || h.$set({ [a]: u });
|
397
399
|
}
|
398
400
|
});
|
399
401
|
}), n.forEach((a) => {
|
400
402
|
Object.defineProperty(o.prototype, a, {
|
401
403
|
get() {
|
402
|
-
var
|
403
|
-
return (
|
404
|
+
var u;
|
405
|
+
return (u = this.$$c) == null ? void 0 : u[a];
|
404
406
|
}
|
405
407
|
});
|
406
408
|
}), e.element = /** @type {any} */
|
407
409
|
o, o;
|
408
410
|
}
|
409
|
-
class
|
411
|
+
class cr {
|
410
412
|
constructor() {
|
411
413
|
/**
|
412
414
|
* ### PRIVATE API
|
@@ -427,7 +429,7 @@ class lr {
|
|
427
429
|
}
|
428
430
|
/** @returns {void} */
|
429
431
|
$destroy() {
|
430
|
-
|
432
|
+
hr(this, 1), this.$destroy = B;
|
431
433
|
}
|
432
434
|
/**
|
433
435
|
* @template {Extract<keyof Events, string>} K
|
@@ -449,28 +451,28 @@ class lr {
|
|
449
451
|
* @returns {void}
|
450
452
|
*/
|
451
453
|
$set(t) {
|
452
|
-
this.$$set && !
|
454
|
+
this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
453
455
|
}
|
454
456
|
}
|
455
|
-
const
|
456
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
457
|
+
const pr = "4";
|
458
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
|
457
459
|
const U = [];
|
458
|
-
function
|
460
|
+
function mr(e, t) {
|
459
461
|
return {
|
460
|
-
subscribe:
|
462
|
+
subscribe: ue(e, t).subscribe
|
461
463
|
};
|
462
464
|
}
|
463
|
-
function
|
465
|
+
function ue(e, t = B) {
|
464
466
|
let r;
|
465
467
|
const n = /* @__PURE__ */ new Set();
|
466
468
|
function i(a) {
|
467
|
-
if (
|
468
|
-
const
|
469
|
-
for (const
|
470
|
-
|
471
|
-
if (
|
472
|
-
for (let
|
473
|
-
U[
|
469
|
+
if (ut(e, a) && (e = a, r)) {
|
470
|
+
const u = !U.length;
|
471
|
+
for (const h of n)
|
472
|
+
h[1](), U.push(h, e);
|
473
|
+
if (u) {
|
474
|
+
for (let h = 0; h < U.length; h += 2)
|
475
|
+
U[h][0](U[h + 1]);
|
474
476
|
U.length = 0;
|
475
477
|
}
|
476
478
|
}
|
@@ -478,10 +480,10 @@ function he(e, t = B) {
|
|
478
480
|
function s(a) {
|
479
481
|
i(a(e));
|
480
482
|
}
|
481
|
-
function o(a,
|
482
|
-
const
|
483
|
-
return n.add(
|
484
|
-
n.delete(
|
483
|
+
function o(a, u = B) {
|
484
|
+
const h = [a, u];
|
485
|
+
return n.add(h), n.size === 1 && (r = t(i, s) || B), a(e), () => {
|
486
|
+
n.delete(h), n.size === 0 && r && (r(), r = null);
|
485
487
|
};
|
486
488
|
}
|
487
489
|
return { set: i, update: s, subscribe: o };
|
@@ -491,96 +493,96 @@ function X(e, t, r) {
|
|
491
493
|
if (!i.every(Boolean))
|
492
494
|
throw new Error("derived() expects stores as input, got a falsy value");
|
493
495
|
const s = t.length < 2;
|
494
|
-
return
|
495
|
-
let
|
496
|
-
const
|
496
|
+
return mr(r, (o, a) => {
|
497
|
+
let u = !1;
|
498
|
+
const h = [];
|
497
499
|
let l = 0, c = B;
|
498
500
|
const f = () => {
|
499
501
|
if (l)
|
500
502
|
return;
|
501
503
|
c();
|
502
|
-
const g = t(n ?
|
504
|
+
const g = t(n ? h[0] : h, o, a);
|
503
505
|
s ? o(g) : c = Le(g) ? g : B;
|
504
506
|
}, x = i.map(
|
505
|
-
(g, y) =>
|
507
|
+
(g, y) => lt(
|
506
508
|
g,
|
507
509
|
(H) => {
|
508
|
-
|
510
|
+
h[y] = H, l &= ~(1 << y), u && f();
|
509
511
|
},
|
510
512
|
() => {
|
511
513
|
l |= 1 << y;
|
512
514
|
}
|
513
515
|
)
|
514
516
|
);
|
515
|
-
return
|
516
|
-
ee(x), c(),
|
517
|
+
return u = !0, f(), function() {
|
518
|
+
ee(x), c(), u = !1;
|
517
519
|
};
|
518
520
|
});
|
519
521
|
}
|
520
|
-
function
|
522
|
+
function br(e) {
|
521
523
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
522
524
|
}
|
523
|
-
var
|
524
|
-
return
|
525
|
+
var dr = function(t) {
|
526
|
+
return gr(t) && !xr(t);
|
525
527
|
};
|
526
|
-
function
|
528
|
+
function gr(e) {
|
527
529
|
return !!e && typeof e == "object";
|
528
530
|
}
|
529
|
-
function
|
531
|
+
function xr(e) {
|
530
532
|
var t = Object.prototype.toString.call(e);
|
531
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
533
|
+
return t === "[object RegExp]" || t === "[object Date]" || _r(e);
|
532
534
|
}
|
533
|
-
var
|
534
|
-
function
|
535
|
-
return e.$$typeof ===
|
535
|
+
var Er = typeof Symbol == "function" && Symbol.for, yr = Er ? Symbol.for("react.element") : 60103;
|
536
|
+
function _r(e) {
|
537
|
+
return e.$$typeof === yr;
|
536
538
|
}
|
537
|
-
function
|
539
|
+
function vr(e) {
|
538
540
|
return Array.isArray(e) ? [] : {};
|
539
541
|
}
|
540
542
|
function Y(e, t) {
|
541
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? F(
|
543
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(vr(e), e, t) : e;
|
542
544
|
}
|
543
|
-
function
|
545
|
+
function Hr(e, t, r) {
|
544
546
|
return e.concat(t).map(function(n) {
|
545
547
|
return Y(n, r);
|
546
548
|
});
|
547
549
|
}
|
548
|
-
function
|
550
|
+
function Tr(e, t) {
|
549
551
|
if (!t.customMerge)
|
550
552
|
return F;
|
551
553
|
var r = t.customMerge(e);
|
552
554
|
return typeof r == "function" ? r : F;
|
553
555
|
}
|
554
|
-
function
|
556
|
+
function Br(e) {
|
555
557
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
556
558
|
return Object.propertyIsEnumerable.call(e, t);
|
557
559
|
}) : [];
|
558
560
|
}
|
559
|
-
function
|
560
|
-
return Object.keys(e).concat(
|
561
|
+
function We(e) {
|
562
|
+
return Object.keys(e).concat(Br(e));
|
561
563
|
}
|
562
|
-
function
|
564
|
+
function pt(e, t) {
|
563
565
|
try {
|
564
566
|
return t in e;
|
565
567
|
} catch (r) {
|
566
568
|
return !1;
|
567
569
|
}
|
568
570
|
}
|
569
|
-
function
|
570
|
-
return
|
571
|
+
function Ar(e, t) {
|
572
|
+
return pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
571
573
|
}
|
572
|
-
function
|
574
|
+
function Sr(e, t, r) {
|
573
575
|
var n = {};
|
574
|
-
return r.isMergeableObject(e) &&
|
576
|
+
return r.isMergeableObject(e) && We(e).forEach(function(i) {
|
575
577
|
n[i] = Y(e[i], r);
|
576
|
-
}),
|
577
|
-
|
578
|
+
}), We(t).forEach(function(i) {
|
579
|
+
Ar(e, i) || (pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
578
580
|
}), n;
|
579
581
|
}
|
580
582
|
function F(e, t, r) {
|
581
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
583
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || dr, r.cloneUnlessOtherwiseSpecified = Y;
|
582
584
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
583
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
585
|
+
return s ? n ? r.arrayMerge(e, t, r) : Sr(e, t, r) : Y(t, r);
|
584
586
|
}
|
585
587
|
F.all = function(t, r) {
|
586
588
|
if (!Array.isArray(t))
|
@@ -589,13 +591,28 @@ F.all = function(t, r) {
|
|
589
591
|
return F(n, i, r);
|
590
592
|
}, {});
|
591
593
|
};
|
592
|
-
var
|
593
|
-
const
|
594
|
+
var Pr = F, Or = Pr;
|
595
|
+
const Nr = /* @__PURE__ */ br(Or);
|
596
|
+
/*! *****************************************************************************
|
597
|
+
Copyright (c) Microsoft Corporation.
|
598
|
+
|
599
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
600
|
+
purpose with or without fee is hereby granted.
|
601
|
+
|
602
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
603
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
604
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
605
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
606
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
607
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
608
|
+
PERFORMANCE OF THIS SOFTWARE.
|
609
|
+
***************************************************************************** */
|
594
610
|
var Te = function(e, t) {
|
595
611
|
return Te = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
596
612
|
r.__proto__ = n;
|
597
613
|
} || function(r, n) {
|
598
|
-
for (var i in n)
|
614
|
+
for (var i in n)
|
615
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
599
616
|
}, Te(e, t);
|
600
617
|
};
|
601
618
|
function le(e, t) {
|
@@ -611,72 +628,77 @@ var d = function() {
|
|
611
628
|
return d = Object.assign || function(t) {
|
612
629
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
613
630
|
r = arguments[n];
|
614
|
-
for (var s in r)
|
631
|
+
for (var s in r)
|
632
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
615
633
|
}
|
616
634
|
return t;
|
617
635
|
}, d.apply(this, arguments);
|
618
636
|
};
|
619
|
-
function
|
637
|
+
function Ir(e, t) {
|
620
638
|
var r = {};
|
621
|
-
for (var n in e)
|
639
|
+
for (var n in e)
|
640
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
622
641
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
623
642
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
624
643
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
625
644
|
return r;
|
626
645
|
}
|
627
646
|
function de(e, t, r) {
|
628
|
-
if (
|
629
|
-
(
|
630
|
-
|
647
|
+
if (arguments.length === 2)
|
648
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
649
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
650
|
+
return e.concat(s || t);
|
631
651
|
}
|
632
652
|
function ge(e, t) {
|
633
|
-
var r = t && t.cache ? t.cache :
|
653
|
+
var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Lr;
|
634
654
|
return i(e, {
|
635
655
|
cache: r,
|
636
656
|
serializer: n
|
637
657
|
});
|
638
658
|
}
|
639
|
-
function
|
659
|
+
function wr(e) {
|
640
660
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
641
661
|
}
|
642
|
-
function
|
643
|
-
var i =
|
662
|
+
function mt(e, t, r, n) {
|
663
|
+
var i = wr(n) ? n : r(n), s = t.get(i);
|
644
664
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
645
665
|
}
|
646
|
-
function
|
666
|
+
function bt(e, t, r) {
|
647
667
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
648
668
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
649
669
|
}
|
650
|
-
function
|
670
|
+
function Re(e, t, r, n, i) {
|
651
671
|
return r.bind(t, e, n, i);
|
652
672
|
}
|
653
|
-
function wr(e, t) {
|
654
|
-
var r = e.length === 1 ? Ir : ct;
|
655
|
-
return pt(e, this, r, t.cache.create(), t.serializer);
|
656
|
-
}
|
657
673
|
function Lr(e, t) {
|
658
|
-
|
674
|
+
var r = e.length === 1 ? mt : bt;
|
675
|
+
return Re(e, this, r, t.cache.create(), t.serializer);
|
676
|
+
}
|
677
|
+
function Cr(e, t) {
|
678
|
+
return Re(e, this, bt, t.cache.create(), t.serializer);
|
679
|
+
}
|
680
|
+
function Mr(e, t) {
|
681
|
+
return Re(e, this, mt, t.cache.create(), t.serializer);
|
659
682
|
}
|
660
|
-
var
|
683
|
+
var Rr = function() {
|
661
684
|
return JSON.stringify(arguments);
|
662
|
-
}
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
}()
|
674
|
-
), Rr = {
|
685
|
+
};
|
686
|
+
function $e() {
|
687
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
688
|
+
}
|
689
|
+
$e.prototype.get = function(e) {
|
690
|
+
return this.cache[e];
|
691
|
+
};
|
692
|
+
$e.prototype.set = function(e, t) {
|
693
|
+
this.cache[e] = t;
|
694
|
+
};
|
695
|
+
var $r = {
|
675
696
|
create: function() {
|
676
|
-
return new
|
697
|
+
return new $e();
|
677
698
|
}
|
678
699
|
}, xe = {
|
679
|
-
variadic:
|
700
|
+
variadic: Cr,
|
701
|
+
monadic: Mr
|
680
702
|
}, m;
|
681
703
|
(function(e) {
|
682
704
|
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";
|
@@ -689,43 +711,43 @@ var j;
|
|
689
711
|
(function(e) {
|
690
712
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
691
713
|
})(j || (j = {}));
|
692
|
-
function
|
714
|
+
function Ze(e) {
|
693
715
|
return e.type === E.literal;
|
694
716
|
}
|
695
|
-
function
|
717
|
+
function Ur(e) {
|
696
718
|
return e.type === E.argument;
|
697
719
|
}
|
698
|
-
function
|
720
|
+
function dt(e) {
|
699
721
|
return e.type === E.number;
|
700
722
|
}
|
701
|
-
function
|
723
|
+
function gt(e) {
|
702
724
|
return e.type === E.date;
|
703
725
|
}
|
704
|
-
function
|
726
|
+
function xt(e) {
|
705
727
|
return e.type === E.time;
|
706
728
|
}
|
707
|
-
function
|
729
|
+
function Et(e) {
|
708
730
|
return e.type === E.select;
|
709
731
|
}
|
710
|
-
function
|
732
|
+
function yt(e) {
|
711
733
|
return e.type === E.plural;
|
712
734
|
}
|
713
|
-
function
|
735
|
+
function Gr(e) {
|
714
736
|
return e.type === E.pound;
|
715
737
|
}
|
716
|
-
function
|
738
|
+
function _t(e) {
|
717
739
|
return e.type === E.tag;
|
718
740
|
}
|
719
|
-
function
|
741
|
+
function vt(e) {
|
720
742
|
return !!(e && typeof e == "object" && e.type === j.number);
|
721
743
|
}
|
722
744
|
function Be(e) {
|
723
745
|
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
724
746
|
}
|
725
|
-
var
|
726
|
-
function
|
747
|
+
var Ht = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
748
|
+
function Fr(e) {
|
727
749
|
var t = {};
|
728
|
-
return e.replace(
|
750
|
+
return e.replace(Dr, function(r) {
|
729
751
|
var n = r.length;
|
730
752
|
switch (r[0]) {
|
731
753
|
case "G":
|
@@ -814,36 +836,36 @@ function Dr(e) {
|
|
814
836
|
return "";
|
815
837
|
}), t;
|
816
838
|
}
|
817
|
-
var
|
818
|
-
function
|
839
|
+
var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
840
|
+
function Vr(e) {
|
819
841
|
if (e.length === 0)
|
820
842
|
throw new Error("Number skeleton cannot be empty");
|
821
|
-
for (var t = e.split(
|
843
|
+
for (var t = e.split(jr).filter(function(f) {
|
822
844
|
return f.length > 0;
|
823
845
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
824
846
|
var s = i[n], o = s.split("/");
|
825
847
|
if (o.length === 0)
|
826
848
|
throw new Error("Invalid number skeleton");
|
827
|
-
for (var a = o[0],
|
828
|
-
var c = l[
|
849
|
+
for (var a = o[0], u = o.slice(1), h = 0, l = u; h < l.length; h++) {
|
850
|
+
var c = l[h];
|
829
851
|
if (c.length === 0)
|
830
852
|
throw new Error("Invalid number skeleton");
|
831
853
|
}
|
832
|
-
r.push({ stem: a, options:
|
854
|
+
r.push({ stem: a, options: u });
|
833
855
|
}
|
834
856
|
return r;
|
835
857
|
}
|
836
|
-
function
|
858
|
+
function kr(e) {
|
837
859
|
return e.replace(/^(.*?)-/, "");
|
838
860
|
}
|
839
|
-
var
|
840
|
-
function
|
861
|
+
var Qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tt = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Bt = /^(0+)$/;
|
862
|
+
function Je(e) {
|
841
863
|
var t = {};
|
842
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
864
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Tt, function(r, n, i) {
|
843
865
|
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)), "";
|
844
866
|
}), t;
|
845
867
|
}
|
846
|
-
function
|
868
|
+
function At(e) {
|
847
869
|
switch (e) {
|
848
870
|
case "sign-auto":
|
849
871
|
return {
|
@@ -883,7 +905,7 @@ function Tt(e) {
|
|
883
905
|
};
|
884
906
|
}
|
885
907
|
}
|
886
|
-
function
|
908
|
+
function zr(e) {
|
887
909
|
var t;
|
888
910
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
889
911
|
notation: "engineering"
|
@@ -891,17 +913,17 @@ function Xr(e) {
|
|
891
913
|
notation: "scientific"
|
892
914
|
}, e = e.slice(1)), t) {
|
893
915
|
var r = e.slice(0, 2);
|
894
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
916
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Bt.test(e))
|
895
917
|
throw new Error("Malformed concise eng/scientific notation");
|
896
918
|
t.minimumIntegerDigits = e.length;
|
897
919
|
}
|
898
920
|
return t;
|
899
921
|
}
|
900
|
-
function
|
901
|
-
var t = {}, r =
|
922
|
+
function qe(e) {
|
923
|
+
var t = {}, r = At(e);
|
902
924
|
return r || t;
|
903
925
|
}
|
904
|
-
function
|
926
|
+
function Wr(e) {
|
905
927
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
906
928
|
var i = n[r];
|
907
929
|
switch (i.stem) {
|
@@ -925,7 +947,7 @@ function zr(e) {
|
|
925
947
|
continue;
|
926
948
|
case "measure-unit":
|
927
949
|
case "unit":
|
928
|
-
t.style = "unit", t.unit =
|
950
|
+
t.style = "unit", t.unit = kr(i.options[0]);
|
929
951
|
continue;
|
930
952
|
case "compact-short":
|
931
953
|
case "K":
|
@@ -936,13 +958,13 @@ function zr(e) {
|
|
936
958
|
t.notation = "compact", t.compactDisplay = "long";
|
937
959
|
continue;
|
938
960
|
case "scientific":
|
939
|
-
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(
|
940
|
-
return d(d({},
|
961
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
962
|
+
return d(d({}, u), qe(h));
|
941
963
|
}, {}));
|
942
964
|
continue;
|
943
965
|
case "engineering":
|
944
|
-
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(
|
945
|
-
return d(d({},
|
966
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
967
|
+
return d(d({}, u), qe(h));
|
946
968
|
}, {}));
|
947
969
|
continue;
|
948
970
|
case "notation-simple":
|
@@ -987,8 +1009,8 @@ function zr(e) {
|
|
987
1009
|
case "integer-width":
|
988
1010
|
if (i.options.length > 1)
|
989
1011
|
throw new RangeError("integer-width stems only accept a single optional option");
|
990
|
-
i.options[0].replace(
|
991
|
-
if (
|
1012
|
+
i.options[0].replace(Xr, function(u, h, l, c, f, x) {
|
1013
|
+
if (h)
|
992
1014
|
t.minimumIntegerDigits = l.length;
|
993
1015
|
else {
|
994
1016
|
if (c && f)
|
@@ -1000,27 +1022,27 @@ function zr(e) {
|
|
1000
1022
|
});
|
1001
1023
|
continue;
|
1002
1024
|
}
|
1003
|
-
if (
|
1025
|
+
if (Bt.test(i.stem)) {
|
1004
1026
|
t.minimumIntegerDigits = i.stem.length;
|
1005
1027
|
continue;
|
1006
1028
|
}
|
1007
|
-
if (
|
1029
|
+
if (Qe.test(i.stem)) {
|
1008
1030
|
if (i.options.length > 1)
|
1009
1031
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1010
|
-
i.stem.replace(
|
1011
|
-
return l === "*" ? t.minimumFractionDigits =
|
1032
|
+
i.stem.replace(Qe, function(u, h, l, c, f, x) {
|
1033
|
+
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && x ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + x.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
1012
1034
|
});
|
1013
1035
|
var s = i.options[0];
|
1014
|
-
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t),
|
1036
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Je(s)));
|
1015
1037
|
continue;
|
1016
1038
|
}
|
1017
|
-
if (
|
1018
|
-
t = d(d({}, t),
|
1039
|
+
if (Tt.test(i.stem)) {
|
1040
|
+
t = d(d({}, t), Je(i.stem));
|
1019
1041
|
continue;
|
1020
1042
|
}
|
1021
|
-
var o =
|
1043
|
+
var o = At(i.stem);
|
1022
1044
|
o && (t = d(d({}, t), o));
|
1023
|
-
var a =
|
1045
|
+
var a = zr(i.stem);
|
1024
1046
|
a && (t = d(d({}, t), a));
|
1025
1047
|
}
|
1026
1048
|
return t;
|
@@ -2440,22 +2462,23 @@ var re = {
|
|
2440
2462
|
"h"
|
2441
2463
|
]
|
2442
2464
|
};
|
2443
|
-
function
|
2465
|
+
function Zr(e, t) {
|
2444
2466
|
for (var r = "", n = 0; n < e.length; n++) {
|
2445
2467
|
var i = e.charAt(n);
|
2446
2468
|
if (i === "j") {
|
2447
2469
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2448
2470
|
s++, n++;
|
2449
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1),
|
2450
|
-
for ((
|
2451
|
-
r +=
|
2471
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", h = Qr(t);
|
2472
|
+
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
2473
|
+
r += u;
|
2452
2474
|
for (; o-- > 0; )
|
2453
|
-
r =
|
2454
|
-
} else
|
2475
|
+
r = h + r;
|
2476
|
+
} else
|
2477
|
+
i === "J" ? r += "H" : r += i;
|
2455
2478
|
}
|
2456
2479
|
return r;
|
2457
2480
|
}
|
2458
|
-
function
|
2481
|
+
function Qr(e) {
|
2459
2482
|
var t = e.hourCycle;
|
2460
2483
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2461
2484
|
e.hourCycles && // @ts-ignore
|
@@ -2477,20 +2500,20 @@ function Zr(e) {
|
|
2477
2500
|
var i = re[n || ""] || re[r || ""] || re["".concat(r, "-001")] || re["001"];
|
2478
2501
|
return i[0];
|
2479
2502
|
}
|
2480
|
-
var Ee,
|
2503
|
+
var Ee, Jr = new RegExp("^".concat(Ht.source, "*")), qr = new RegExp("".concat(Ht.source, "*$"));
|
2481
2504
|
function b(e, t) {
|
2482
2505
|
return { start: e, end: t };
|
2483
2506
|
}
|
2484
|
-
var
|
2507
|
+
var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, on = sn ? Number.isSafeInteger : function(e) {
|
2485
2508
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2486
|
-
},
|
2509
|
+
}, Ae = !0;
|
2487
2510
|
try {
|
2488
|
-
var
|
2489
|
-
|
2511
|
+
var an = Pt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2512
|
+
Ae = ((Ee = an.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
2490
2513
|
} catch (e) {
|
2491
|
-
|
2514
|
+
Ae = !1;
|
2492
2515
|
}
|
2493
|
-
var
|
2516
|
+
var Ye = Yr ? (
|
2494
2517
|
// Native
|
2495
2518
|
function(t, r, n) {
|
2496
2519
|
return t.startsWith(r, n);
|
@@ -2500,7 +2523,7 @@ var Je = qr ? (
|
|
2500
2523
|
function(t, r, n) {
|
2501
2524
|
return t.slice(n, n + r.length) === r;
|
2502
2525
|
}
|
2503
|
-
),
|
2526
|
+
), Se = Kr ? String.fromCodePoint : (
|
2504
2527
|
// IE11
|
2505
2528
|
function() {
|
2506
2529
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2512,9 +2535,9 @@ var Je = qr ? (
|
|
2512
2535
|
}
|
2513
2536
|
return n;
|
2514
2537
|
}
|
2515
|
-
),
|
2538
|
+
), Ke = (
|
2516
2539
|
// native
|
2517
|
-
|
2540
|
+
en ? Object.fromEntries : (
|
2518
2541
|
// Ponyfill
|
2519
2542
|
function(t) {
|
2520
2543
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2524,7 +2547,7 @@ var Je = qr ? (
|
|
2524
2547
|
return r;
|
2525
2548
|
}
|
2526
2549
|
)
|
2527
|
-
),
|
2550
|
+
), St = tn ? (
|
2528
2551
|
// Native
|
2529
2552
|
function(t, r) {
|
2530
2553
|
return t.codePointAt(r);
|
@@ -2538,7 +2561,7 @@ var Je = qr ? (
|
|
2538
2561
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2539
2562
|
}
|
2540
2563
|
}
|
2541
|
-
),
|
2564
|
+
), hn = rn ? (
|
2542
2565
|
// Native
|
2543
2566
|
function(t) {
|
2544
2567
|
return t.trimStart();
|
@@ -2546,9 +2569,9 @@ var Je = qr ? (
|
|
2546
2569
|
) : (
|
2547
2570
|
// Ponyfill
|
2548
2571
|
function(t) {
|
2549
|
-
return t.replace(
|
2572
|
+
return t.replace(Jr, "");
|
2550
2573
|
}
|
2551
|
-
), un =
|
2574
|
+
), un = nn ? (
|
2552
2575
|
// Native
|
2553
2576
|
function(t) {
|
2554
2577
|
return t.trimEnd();
|
@@ -2556,32 +2579,32 @@ var Je = qr ? (
|
|
2556
2579
|
) : (
|
2557
2580
|
// Ponyfill
|
2558
2581
|
function(t) {
|
2559
|
-
return t.replace(
|
2582
|
+
return t.replace(qr, "");
|
2560
2583
|
}
|
2561
2584
|
);
|
2562
|
-
function
|
2585
|
+
function Pt(e, t) {
|
2563
2586
|
return new RegExp(e, t);
|
2564
2587
|
}
|
2565
2588
|
var Pe;
|
2566
|
-
if (
|
2567
|
-
var
|
2589
|
+
if (Ae) {
|
2590
|
+
var et = Pt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2568
2591
|
Pe = function(t, r) {
|
2569
2592
|
var n;
|
2570
|
-
|
2571
|
-
var i =
|
2593
|
+
et.lastIndex = r;
|
2594
|
+
var i = et.exec(t);
|
2572
2595
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2573
2596
|
};
|
2574
2597
|
} else
|
2575
2598
|
Pe = function(t, r) {
|
2576
2599
|
for (var n = []; ; ) {
|
2577
|
-
var i =
|
2578
|
-
if (i === void 0 ||
|
2600
|
+
var i = St(t, r);
|
2601
|
+
if (i === void 0 || Ot(i) || pn(i))
|
2579
2602
|
break;
|
2580
2603
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2581
2604
|
}
|
2582
|
-
return
|
2605
|
+
return Se.apply(void 0, n);
|
2583
2606
|
};
|
2584
|
-
var
|
2607
|
+
var ln = (
|
2585
2608
|
/** @class */
|
2586
2609
|
function() {
|
2587
2610
|
function e(t, r) {
|
@@ -2647,8 +2670,8 @@ var hn = (
|
|
2647
2670
|
if (this.bumpIf("</")) {
|
2648
2671
|
if (this.isEOF() || !Oe(this.char()))
|
2649
2672
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
2650
|
-
var
|
2651
|
-
return i !==
|
2673
|
+
var u = this.clonePosition(), h = this.parseTagName();
|
2674
|
+
return i !== h ? this.error(m.UNMATCHED_CLOSING_TAG, b(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2652
2675
|
val: {
|
2653
2676
|
type: E.tag,
|
2654
2677
|
value: i,
|
@@ -2663,7 +2686,7 @@ var hn = (
|
|
2663
2686
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2664
2687
|
}, e.prototype.parseTagName = function() {
|
2665
2688
|
var t = this.offset();
|
2666
|
-
for (this.bump(); !this.isEOF() &&
|
2689
|
+
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
2667
2690
|
this.bump();
|
2668
2691
|
return this.message.slice(t, this.offset());
|
2669
2692
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2685,14 +2708,14 @@ var hn = (
|
|
2685
2708
|
}
|
2686
2709
|
break;
|
2687
2710
|
}
|
2688
|
-
var
|
2711
|
+
var u = b(n, this.clonePosition());
|
2689
2712
|
return {
|
2690
|
-
val: { type: E.literal, value: i, location:
|
2713
|
+
val: { type: E.literal, value: i, location: u },
|
2691
2714
|
err: null
|
2692
2715
|
};
|
2693
2716
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2694
2717
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2695
|
-
!
|
2718
|
+
!fn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2696
2719
|
}, e.prototype.tryParseQuote = function(t) {
|
2697
2720
|
if (this.isEOF() || this.char() !== 39)
|
2698
2721
|
return null;
|
@@ -2726,12 +2749,12 @@ var hn = (
|
|
2726
2749
|
r.push(n);
|
2727
2750
|
this.bump();
|
2728
2751
|
}
|
2729
|
-
return
|
2752
|
+
return Se.apply(void 0, r);
|
2730
2753
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2731
2754
|
if (this.isEOF())
|
2732
2755
|
return null;
|
2733
2756
|
var n = this.char();
|
2734
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2757
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Se(n));
|
2735
2758
|
}, e.prototype.parseArgument = function(t, r) {
|
2736
2759
|
var n = this.clonePosition();
|
2737
2760
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2765,15 +2788,15 @@ var hn = (
|
|
2765
2788
|
var s = this.clonePosition(), o = b(t, s);
|
2766
2789
|
return { value: n, location: o };
|
2767
2790
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2768
|
-
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
2791
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
2769
2792
|
switch (a) {
|
2770
2793
|
case "":
|
2771
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o,
|
2794
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o, u));
|
2772
2795
|
case "number":
|
2773
2796
|
case "date":
|
2774
2797
|
case "time": {
|
2775
2798
|
this.bumpSpace();
|
2776
|
-
var
|
2799
|
+
var h = null;
|
2777
2800
|
if (this.bumpIf(",")) {
|
2778
2801
|
this.bumpSpace();
|
2779
2802
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
@@ -2783,16 +2806,16 @@ var hn = (
|
|
2783
2806
|
if (f.length === 0)
|
2784
2807
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2785
2808
|
var x = b(l, this.clonePosition());
|
2786
|
-
|
2809
|
+
h = { style: f, styleLocation: x };
|
2787
2810
|
}
|
2788
2811
|
var g = this.tryParseArgumentClose(i);
|
2789
2812
|
if (g.err)
|
2790
2813
|
return g;
|
2791
2814
|
var y = b(i, this.clonePosition());
|
2792
|
-
if (
|
2793
|
-
var H =
|
2815
|
+
if (h && Ye(h == null ? void 0 : h.style, "::", 0)) {
|
2816
|
+
var H = hn(h.style.slice(2));
|
2794
2817
|
if (a === "number") {
|
2795
|
-
var c = this.parseNumberSkeletonFromString(H,
|
2818
|
+
var c = this.parseNumberSkeletonFromString(H, h.styleLocation);
|
2796
2819
|
return c.err ? c : {
|
2797
2820
|
val: { type: E.number, value: n, location: y, style: c.val },
|
2798
2821
|
err: null
|
@@ -2800,16 +2823,16 @@ var hn = (
|
|
2800
2823
|
} else {
|
2801
2824
|
if (H.length === 0)
|
2802
2825
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
2803
|
-
var
|
2804
|
-
this.locale && (
|
2826
|
+
var A = H;
|
2827
|
+
this.locale && (A = Zr(H, this.locale));
|
2805
2828
|
var f = {
|
2806
2829
|
type: j.dateTime,
|
2807
|
-
pattern:
|
2808
|
-
location:
|
2809
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2810
|
-
},
|
2830
|
+
pattern: A,
|
2831
|
+
location: h.styleLocation,
|
2832
|
+
parsedOptions: this.shouldParseSkeletons ? Fr(A) : {}
|
2833
|
+
}, S = a === "date" ? E.date : E.time;
|
2811
2834
|
return {
|
2812
|
-
val: { type:
|
2835
|
+
val: { type: S, value: n, location: y, style: f },
|
2813
2836
|
err: null
|
2814
2837
|
};
|
2815
2838
|
}
|
@@ -2819,7 +2842,7 @@ var hn = (
|
|
2819
2842
|
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
2820
2843
|
value: n,
|
2821
2844
|
location: y,
|
2822
|
-
style: (s =
|
2845
|
+
style: (s = h == null ? void 0 : h.style) !== null && s !== void 0 ? s : null
|
2823
2846
|
},
|
2824
2847
|
err: null
|
2825
2848
|
};
|
@@ -2852,7 +2875,7 @@ var hn = (
|
|
2852
2875
|
val: {
|
2853
2876
|
type: E.select,
|
2854
2877
|
value: n,
|
2855
|
-
options:
|
2878
|
+
options: Ke(R.val),
|
2856
2879
|
location: te
|
2857
2880
|
},
|
2858
2881
|
err: null
|
@@ -2860,7 +2883,7 @@ var hn = (
|
|
2860
2883
|
val: {
|
2861
2884
|
type: E.plural,
|
2862
2885
|
value: n,
|
2863
|
-
options:
|
2886
|
+
options: Ke(R.val),
|
2864
2887
|
offset: O,
|
2865
2888
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2866
2889
|
location: te
|
@@ -2869,7 +2892,7 @@ var hn = (
|
|
2869
2892
|
};
|
2870
2893
|
}
|
2871
2894
|
default:
|
2872
|
-
return this.error(m.INVALID_ARGUMENT_TYPE, b(o,
|
2895
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(o, u));
|
2873
2896
|
}
|
2874
2897
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2875
2898
|
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -2911,7 +2934,7 @@ var hn = (
|
|
2911
2934
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2912
2935
|
var n = [];
|
2913
2936
|
try {
|
2914
|
-
n =
|
2937
|
+
n = Vr(t);
|
2915
2938
|
} catch (i) {
|
2916
2939
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
2917
2940
|
}
|
@@ -2920,25 +2943,25 @@ var hn = (
|
|
2920
2943
|
type: j.number,
|
2921
2944
|
tokens: n,
|
2922
2945
|
location: r,
|
2923
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2946
|
+
parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
|
2924
2947
|
},
|
2925
2948
|
err: null
|
2926
2949
|
};
|
2927
2950
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2928
|
-
for (var s, o = !1, a = [],
|
2929
|
-
if (
|
2951
|
+
for (var s, o = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
|
2952
|
+
if (h.length === 0) {
|
2930
2953
|
var c = this.clonePosition();
|
2931
2954
|
if (r !== "select" && this.bumpIf("=")) {
|
2932
2955
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2933
2956
|
if (f.err)
|
2934
2957
|
return f;
|
2935
|
-
l = b(c, this.clonePosition()),
|
2958
|
+
l = b(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
2936
2959
|
} else
|
2937
2960
|
break;
|
2938
2961
|
}
|
2939
|
-
if (
|
2962
|
+
if (u.has(h))
|
2940
2963
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2941
|
-
|
2964
|
+
h === "other" && (o = !0), this.bumpSpace();
|
2942
2965
|
var x = this.clonePosition();
|
2943
2966
|
if (!this.bumpIf("{"))
|
2944
2967
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
@@ -2949,12 +2972,12 @@ var hn = (
|
|
2949
2972
|
if (y.err)
|
2950
2973
|
return y;
|
2951
2974
|
a.push([
|
2952
|
-
|
2975
|
+
h,
|
2953
2976
|
{
|
2954
2977
|
value: g.val,
|
2955
2978
|
location: b(x, this.clonePosition())
|
2956
2979
|
}
|
2957
|
-
]),
|
2980
|
+
]), u.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, l = s.location;
|
2958
2981
|
}
|
2959
2982
|
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
2960
2983
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
@@ -2967,8 +2990,8 @@ var hn = (
|
|
2967
2990
|
else
|
2968
2991
|
break;
|
2969
2992
|
}
|
2970
|
-
var
|
2971
|
-
return s ? (o *= n,
|
2993
|
+
var u = b(i, this.clonePosition());
|
2994
|
+
return s ? (o *= n, on(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
2972
2995
|
}, e.prototype.offset = function() {
|
2973
2996
|
return this.position.offset;
|
2974
2997
|
}, e.prototype.isEOF = function() {
|
@@ -2983,7 +3006,7 @@ var hn = (
|
|
2983
3006
|
var t = this.position.offset;
|
2984
3007
|
if (t >= this.message.length)
|
2985
3008
|
throw Error("out of bound");
|
2986
|
-
var r =
|
3009
|
+
var r = St(this.message, t);
|
2987
3010
|
if (r === void 0)
|
2988
3011
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2989
3012
|
return r;
|
@@ -3002,7 +3025,7 @@ var hn = (
|
|
3002
3025
|
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);
|
3003
3026
|
}
|
3004
3027
|
}, e.prototype.bumpIf = function(t) {
|
3005
|
-
if (
|
3028
|
+
if (Ye(this.message, t, this.offset())) {
|
3006
3029
|
for (var r = 0; r < t.length; r++)
|
3007
3030
|
this.bump();
|
3008
3031
|
return !0;
|
@@ -3024,7 +3047,7 @@ var hn = (
|
|
3024
3047
|
break;
|
3025
3048
|
}
|
3026
3049
|
}, e.prototype.bumpSpace = function() {
|
3027
|
-
for (; !this.isEOF() &&
|
3050
|
+
for (; !this.isEOF() && Ot(this.char()); )
|
3028
3051
|
this.bump();
|
3029
3052
|
}, e.prototype.peek = function() {
|
3030
3053
|
if (this.isEOF())
|
@@ -3037,29 +3060,30 @@ var hn = (
|
|
3037
3060
|
function Oe(e) {
|
3038
3061
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3039
3062
|
}
|
3040
|
-
function
|
3063
|
+
function fn(e) {
|
3041
3064
|
return Oe(e) || e === 47;
|
3042
3065
|
}
|
3043
|
-
function
|
3066
|
+
function cn(e) {
|
3044
3067
|
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;
|
3045
3068
|
}
|
3046
|
-
function
|
3069
|
+
function Ot(e) {
|
3047
3070
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3048
3071
|
}
|
3049
|
-
function
|
3072
|
+
function pn(e) {
|
3050
3073
|
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;
|
3051
3074
|
}
|
3052
3075
|
function Ne(e) {
|
3053
3076
|
e.forEach(function(t) {
|
3054
|
-
if (delete t.location,
|
3077
|
+
if (delete t.location, Et(t) || yt(t))
|
3055
3078
|
for (var r in t.options)
|
3056
3079
|
delete t.options[r].location, Ne(t.options[r].value);
|
3057
|
-
else
|
3080
|
+
else
|
3081
|
+
dt(t) && vt(t.style) || (gt(t) || xt(t)) && Be(t.style) ? delete t.style.location : _t(t) && Ne(t.children);
|
3058
3082
|
});
|
3059
3083
|
}
|
3060
|
-
function
|
3084
|
+
function mn(e, t) {
|
3061
3085
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3062
|
-
var r = new
|
3086
|
+
var r = new ln(e, t).parse();
|
3063
3087
|
if (r.err) {
|
3064
3088
|
var n = SyntaxError(m[r.err.kind]);
|
3065
3089
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
@@ -3082,7 +3106,7 @@ var fe = (
|
|
3082
3106
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3083
3107
|
}, t;
|
3084
3108
|
}(Error)
|
3085
|
-
),
|
3109
|
+
), tt = (
|
3086
3110
|
/** @class */
|
3087
3111
|
function(e) {
|
3088
3112
|
le(t, e);
|
@@ -3091,7 +3115,7 @@ var fe = (
|
|
3091
3115
|
}
|
3092
3116
|
return t;
|
3093
3117
|
}(fe)
|
3094
|
-
),
|
3118
|
+
), bn = (
|
3095
3119
|
/** @class */
|
3096
3120
|
function(e) {
|
3097
3121
|
le(t, e);
|
@@ -3100,7 +3124,7 @@ var fe = (
|
|
3100
3124
|
}
|
3101
3125
|
return t;
|
3102
3126
|
}(fe)
|
3103
|
-
),
|
3127
|
+
), dn = (
|
3104
3128
|
/** @class */
|
3105
3129
|
function(e) {
|
3106
3130
|
le(t, e);
|
@@ -3113,33 +3137,33 @@ var fe = (
|
|
3113
3137
|
(function(e) {
|
3114
3138
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3115
3139
|
})(_ || (_ = {}));
|
3116
|
-
function
|
3140
|
+
function gn(e) {
|
3117
3141
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3118
3142
|
var n = t[t.length - 1];
|
3119
3143
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
3120
3144
|
}, []);
|
3121
3145
|
}
|
3122
|
-
function
|
3146
|
+
function xn(e) {
|
3123
3147
|
return typeof e == "function";
|
3124
3148
|
}
|
3125
3149
|
function se(e, t, r, n, i, s, o) {
|
3126
|
-
if (e.length === 1 &&
|
3150
|
+
if (e.length === 1 && Ze(e[0]))
|
3127
3151
|
return [
|
3128
3152
|
{
|
3129
3153
|
type: _.literal,
|
3130
3154
|
value: e[0].value
|
3131
3155
|
}
|
3132
3156
|
];
|
3133
|
-
for (var a = [],
|
3134
|
-
var l = u
|
3135
|
-
if (
|
3157
|
+
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
3158
|
+
var l = h[u];
|
3159
|
+
if (Ze(l)) {
|
3136
3160
|
a.push({
|
3137
3161
|
type: _.literal,
|
3138
3162
|
value: l.value
|
3139
3163
|
});
|
3140
3164
|
continue;
|
3141
3165
|
}
|
3142
|
-
if (
|
3166
|
+
if (Gr(l)) {
|
3143
3167
|
typeof s == "number" && a.push({
|
3144
3168
|
type: _.literal,
|
3145
3169
|
value: r.getNumberFormat(t).format(s)
|
@@ -3148,16 +3172,16 @@ function se(e, t, r, n, i, s, o) {
|
|
3148
3172
|
}
|
3149
3173
|
var c = l.value;
|
3150
3174
|
if (!(i && c in i))
|
3151
|
-
throw new
|
3175
|
+
throw new dn(c, o);
|
3152
3176
|
var f = i[c];
|
3153
|
-
if (
|
3177
|
+
if (Ur(l)) {
|
3154
3178
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3155
3179
|
type: typeof f == "string" ? _.literal : _.object,
|
3156
3180
|
value: f
|
3157
3181
|
});
|
3158
3182
|
continue;
|
3159
3183
|
}
|
3160
|
-
if (
|
3184
|
+
if (gt(l)) {
|
3161
3185
|
var x = typeof l.style == "string" ? n.date[l.style] : Be(l.style) ? l.style.parsedOptions : void 0;
|
3162
3186
|
a.push({
|
3163
3187
|
type: _.literal,
|
@@ -3165,7 +3189,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3165
3189
|
});
|
3166
3190
|
continue;
|
3167
3191
|
}
|
3168
|
-
if (
|
3192
|
+
if (xt(l)) {
|
3169
3193
|
var x = typeof l.style == "string" ? n.time[l.style] : Be(l.style) ? l.style.parsedOptions : n.time.medium;
|
3170
3194
|
a.push({
|
3171
3195
|
type: _.literal,
|
@@ -3173,36 +3197,36 @@ function se(e, t, r, n, i, s, o) {
|
|
3173
3197
|
});
|
3174
3198
|
continue;
|
3175
3199
|
}
|
3176
|
-
if (
|
3177
|
-
var x = typeof l.style == "string" ? n.number[l.style] :
|
3200
|
+
if (dt(l)) {
|
3201
|
+
var x = typeof l.style == "string" ? n.number[l.style] : vt(l.style) ? l.style.parsedOptions : void 0;
|
3178
3202
|
x && x.scale && (f = f * (x.scale || 1)), a.push({
|
3179
3203
|
type: _.literal,
|
3180
3204
|
value: r.getNumberFormat(t, x).format(f)
|
3181
3205
|
});
|
3182
3206
|
continue;
|
3183
3207
|
}
|
3184
|
-
if (
|
3208
|
+
if (_t(l)) {
|
3185
3209
|
var g = l.children, y = l.value, H = i[y];
|
3186
|
-
if (!
|
3187
|
-
throw new
|
3188
|
-
var
|
3210
|
+
if (!xn(H))
|
3211
|
+
throw new bn(y, "function", o);
|
3212
|
+
var A = se(g, t, r, n, i, s), S = H(A.map(function(O) {
|
3189
3213
|
return O.value;
|
3190
3214
|
}));
|
3191
|
-
Array.isArray(
|
3215
|
+
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(O) {
|
3192
3216
|
return {
|
3193
3217
|
type: typeof O == "string" ? _.literal : _.object,
|
3194
3218
|
value: O
|
3195
3219
|
};
|
3196
3220
|
}));
|
3197
3221
|
}
|
3198
|
-
if (
|
3222
|
+
if (Et(l)) {
|
3199
3223
|
var v = l.options[f] || l.options.other;
|
3200
3224
|
if (!v)
|
3201
|
-
throw new
|
3225
|
+
throw new tt(l.value, f, Object.keys(l.options), o);
|
3202
3226
|
a.push.apply(a, se(v.value, t, r, n, i));
|
3203
3227
|
continue;
|
3204
3228
|
}
|
3205
|
-
if (
|
3229
|
+
if (yt(l)) {
|
3206
3230
|
var v = l.options["=".concat(f)];
|
3207
3231
|
if (!v) {
|
3208
3232
|
if (!Intl.PluralRules)
|
@@ -3213,21 +3237,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3213
3237
|
v = l.options[N] || l.options.other;
|
3214
3238
|
}
|
3215
3239
|
if (!v)
|
3216
|
-
throw new
|
3240
|
+
throw new tt(l.value, f, Object.keys(l.options), o);
|
3217
3241
|
a.push.apply(a, se(v.value, t, r, n, i, f - (l.offset || 0)));
|
3218
3242
|
continue;
|
3219
3243
|
}
|
3220
3244
|
}
|
3221
|
-
return
|
3245
|
+
return gn(a);
|
3222
3246
|
}
|
3223
|
-
function
|
3247
|
+
function En(e, t) {
|
3224
3248
|
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3225
3249
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3226
3250
|
}, {})) : e;
|
3227
3251
|
}
|
3228
|
-
function
|
3252
|
+
function yn(e, t) {
|
3229
3253
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3230
|
-
return r[n] =
|
3254
|
+
return r[n] = En(e[n], t[n]), r;
|
3231
3255
|
}, d({}, e)) : e;
|
3232
3256
|
}
|
3233
3257
|
function ye(e) {
|
@@ -3244,7 +3268,7 @@ function ye(e) {
|
|
3244
3268
|
}
|
3245
3269
|
};
|
3246
3270
|
}
|
3247
|
-
function
|
3271
|
+
function _n(e) {
|
3248
3272
|
return e === void 0 && (e = {
|
3249
3273
|
number: {},
|
3250
3274
|
dateTime: {},
|
@@ -3276,7 +3300,7 @@ function yn(e) {
|
|
3276
3300
|
})
|
3277
3301
|
};
|
3278
3302
|
}
|
3279
|
-
var
|
3303
|
+
var vn = (
|
3280
3304
|
/** @class */
|
3281
3305
|
function() {
|
3282
3306
|
function e(t, r, n, i) {
|
@@ -3286,20 +3310,20 @@ var _n = (
|
|
3286
3310
|
number: {},
|
3287
3311
|
dateTime: {},
|
3288
3312
|
pluralRules: {}
|
3289
|
-
}, this.format = function(
|
3290
|
-
var
|
3291
|
-
if (
|
3292
|
-
return
|
3293
|
-
var l =
|
3313
|
+
}, this.format = function(u) {
|
3314
|
+
var h = s.formatToParts(u);
|
3315
|
+
if (h.length === 1)
|
3316
|
+
return h[0].value;
|
3317
|
+
var l = h.reduce(function(c, f) {
|
3294
3318
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3295
3319
|
}, []);
|
3296
3320
|
return l.length <= 1 ? l[0] || "" : l;
|
3297
|
-
}, this.formatToParts = function(
|
3298
|
-
return se(s.ast, s.locales, s.formatters, s.formats,
|
3321
|
+
}, this.formatToParts = function(u) {
|
3322
|
+
return se(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
3299
3323
|
}, this.resolvedOptions = function() {
|
3300
|
-
var
|
3324
|
+
var u;
|
3301
3325
|
return {
|
3302
|
-
locale: ((
|
3326
|
+
locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
3303
3327
|
};
|
3304
3328
|
}, this.getAst = function() {
|
3305
3329
|
return s.ast;
|
@@ -3308,13 +3332,13 @@ var _n = (
|
|
3308
3332
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3309
3333
|
var o = i || {};
|
3310
3334
|
o.formatters;
|
3311
|
-
var a =
|
3335
|
+
var a = Ir(o, ["formatters"]);
|
3312
3336
|
this.ast = e.__parse(t, d(d({}, a), { locale: this.resolvedLocale }));
|
3313
3337
|
} else
|
3314
3338
|
this.ast = t;
|
3315
3339
|
if (!Array.isArray(this.ast))
|
3316
3340
|
throw new TypeError("A message must be provided as a String or AST.");
|
3317
|
-
this.formats =
|
3341
|
+
this.formats = yn(e.formats, n), this.formatters = i && i.formatters || _n(this.formatterCache);
|
3318
3342
|
}
|
3319
3343
|
return Object.defineProperty(e, "defaultLocale", {
|
3320
3344
|
get: function() {
|
@@ -3327,7 +3351,7 @@ var _n = (
|
|
3327
3351
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3328
3352
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3329
3353
|
}
|
3330
|
-
}, e.__parse =
|
3354
|
+
}, e.__parse = mn, e.formats = {
|
3331
3355
|
number: {
|
3332
3356
|
integer: {
|
3333
3357
|
maximumFractionDigits: 0
|
@@ -3388,7 +3412,7 @@ var _n = (
|
|
3388
3412
|
}, e;
|
3389
3413
|
}()
|
3390
3414
|
);
|
3391
|
-
function
|
3415
|
+
function Hn(e, t) {
|
3392
3416
|
if (t == null)
|
3393
3417
|
return;
|
3394
3418
|
if (t in e)
|
@@ -3409,31 +3433,31 @@ function vn(e, t) {
|
|
3409
3433
|
n = void 0;
|
3410
3434
|
return n;
|
3411
3435
|
}
|
3412
|
-
const I = {},
|
3436
|
+
const I = {}, Tn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Nt = (e, t) => {
|
3413
3437
|
if (t == null)
|
3414
3438
|
return;
|
3415
3439
|
if (t in I && e in I[t])
|
3416
3440
|
return I[t][e];
|
3417
3441
|
const r = ce(t);
|
3418
3442
|
for (let n = 0; n < r.length; n++) {
|
3419
|
-
const i = r[n], s =
|
3443
|
+
const i = r[n], s = An(i, e);
|
3420
3444
|
if (s)
|
3421
|
-
return
|
3445
|
+
return Tn(e, t, s);
|
3422
3446
|
}
|
3423
3447
|
};
|
3424
|
-
let
|
3425
|
-
const z =
|
3426
|
-
function
|
3427
|
-
return
|
3448
|
+
let Ue;
|
3449
|
+
const z = ue({});
|
3450
|
+
function Bn(e) {
|
3451
|
+
return Ue[e] || null;
|
3428
3452
|
}
|
3429
|
-
function
|
3430
|
-
return e in
|
3453
|
+
function It(e) {
|
3454
|
+
return e in Ue;
|
3431
3455
|
}
|
3432
|
-
function
|
3433
|
-
if (!
|
3456
|
+
function An(e, t) {
|
3457
|
+
if (!It(e))
|
3434
3458
|
return null;
|
3435
|
-
const r =
|
3436
|
-
return
|
3459
|
+
const r = Bn(e);
|
3460
|
+
return Hn(r, t);
|
3437
3461
|
}
|
3438
3462
|
function Sn(e) {
|
3439
3463
|
if (e == null)
|
@@ -3441,28 +3465,28 @@ function Sn(e) {
|
|
3441
3465
|
const t = ce(e);
|
3442
3466
|
for (let r = 0; r < t.length; r++) {
|
3443
3467
|
const n = t[r];
|
3444
|
-
if (
|
3468
|
+
if (It(n))
|
3445
3469
|
return n;
|
3446
3470
|
}
|
3447
3471
|
}
|
3448
|
-
function
|
3449
|
-
delete I[e], z.update((r) => (r[e] =
|
3472
|
+
function wt(e, ...t) {
|
3473
|
+
delete I[e], z.update((r) => (r[e] = Nr.all([r[e] || {}, ...t]), r));
|
3450
3474
|
}
|
3451
3475
|
X(
|
3452
3476
|
[z],
|
3453
3477
|
([e]) => Object.keys(e)
|
3454
3478
|
);
|
3455
|
-
z.subscribe((e) =>
|
3479
|
+
z.subscribe((e) => Ue = e);
|
3456
3480
|
const oe = {};
|
3457
|
-
function
|
3481
|
+
function Pn(e, t) {
|
3458
3482
|
oe[e].delete(t), oe[e].size === 0 && delete oe[e];
|
3459
3483
|
}
|
3460
|
-
function
|
3484
|
+
function Lt(e) {
|
3461
3485
|
return oe[e];
|
3462
3486
|
}
|
3463
|
-
function
|
3487
|
+
function On(e) {
|
3464
3488
|
return ce(e).map((t) => {
|
3465
|
-
const r =
|
3489
|
+
const r = Lt(t);
|
3466
3490
|
return [t, r ? [...r] : []];
|
3467
3491
|
}).filter(([, t]) => t.length > 0);
|
3468
3492
|
}
|
@@ -3470,31 +3494,31 @@ function Ie(e) {
|
|
3470
3494
|
return e == null ? !1 : ce(e).some(
|
3471
3495
|
(t) => {
|
3472
3496
|
var r;
|
3473
|
-
return (r =
|
3497
|
+
return (r = Lt(t)) == null ? void 0 : r.size;
|
3474
3498
|
}
|
3475
3499
|
);
|
3476
3500
|
}
|
3477
|
-
function
|
3501
|
+
function Nn(e, t) {
|
3478
3502
|
return Promise.all(
|
3479
|
-
t.map((n) => (
|
3480
|
-
).then((n) =>
|
3503
|
+
t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
|
3504
|
+
).then((n) => wt(e, ...n));
|
3481
3505
|
}
|
3482
3506
|
const Z = {};
|
3483
|
-
function
|
3507
|
+
function Ct(e) {
|
3484
3508
|
if (!Ie(e))
|
3485
3509
|
return e in Z ? Z[e] : Promise.resolve();
|
3486
|
-
const t =
|
3510
|
+
const t = On(e);
|
3487
3511
|
return Z[e] = Promise.all(
|
3488
3512
|
t.map(
|
3489
|
-
([r, n]) =>
|
3513
|
+
([r, n]) => Nn(r, n)
|
3490
3514
|
)
|
3491
3515
|
).then(() => {
|
3492
3516
|
if (Ie(e))
|
3493
|
-
return
|
3517
|
+
return Ct(e);
|
3494
3518
|
delete Z[e];
|
3495
3519
|
}), Z[e];
|
3496
3520
|
}
|
3497
|
-
const
|
3521
|
+
const In = {
|
3498
3522
|
number: {
|
3499
3523
|
scientific: { notation: "scientific" },
|
3500
3524
|
engineering: { notation: "engineering" },
|
@@ -3523,34 +3547,34 @@ const Nn = {
|
|
3523
3547
|
timeZoneName: "short"
|
3524
3548
|
}
|
3525
3549
|
}
|
3526
|
-
},
|
3550
|
+
}, wn = {
|
3527
3551
|
fallbackLocale: null,
|
3528
3552
|
loadingDelay: 200,
|
3529
|
-
formats:
|
3553
|
+
formats: In,
|
3530
3554
|
warnOnMissingMessages: !0,
|
3531
3555
|
handleMissingMessage: void 0,
|
3532
3556
|
ignoreTag: !0
|
3533
|
-
},
|
3557
|
+
}, Ln = wn;
|
3534
3558
|
function k() {
|
3535
|
-
return
|
3559
|
+
return Ln;
|
3536
3560
|
}
|
3537
|
-
const _e =
|
3538
|
-
var
|
3561
|
+
const _e = ue(!1);
|
3562
|
+
var Cn = Object.defineProperty, Mn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, rt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, nt = (e, t, r) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gn = (e, t) => {
|
3539
3563
|
for (var r in t || (t = {}))
|
3540
|
-
|
3541
|
-
if (
|
3542
|
-
for (var r of
|
3543
|
-
|
3564
|
+
$n.call(t, r) && nt(e, r, t[r]);
|
3565
|
+
if (rt)
|
3566
|
+
for (var r of rt(t))
|
3567
|
+
Un.call(t, r) && nt(e, r, t[r]);
|
3544
3568
|
return e;
|
3545
|
-
},
|
3569
|
+
}, Dn = (e, t) => Mn(e, Rn(t));
|
3546
3570
|
let we;
|
3547
|
-
const ae =
|
3548
|
-
function
|
3571
|
+
const ae = ue(null);
|
3572
|
+
function it(e) {
|
3549
3573
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3550
3574
|
}
|
3551
3575
|
function ce(e, t = k().fallbackLocale) {
|
3552
|
-
const r =
|
3553
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3576
|
+
const r = it(e);
|
3577
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...it(t)])] : r;
|
3554
3578
|
}
|
3555
3579
|
function M() {
|
3556
3580
|
return we != null ? we : void 0;
|
@@ -3558,22 +3582,22 @@ function M() {
|
|
3558
3582
|
ae.subscribe((e) => {
|
3559
3583
|
we = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3560
3584
|
});
|
3561
|
-
const
|
3585
|
+
const Fn = (e) => {
|
3562
3586
|
if (e && Sn(e) && Ie(e)) {
|
3563
3587
|
const { loadingDelay: t } = k();
|
3564
3588
|
let r;
|
3565
3589
|
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
3566
3590
|
() => _e.set(!0),
|
3567
3591
|
t
|
3568
|
-
) : _e.set(!0),
|
3592
|
+
) : _e.set(!0), Ct(e).then(() => {
|
3569
3593
|
ae.set(e);
|
3570
3594
|
}).finally(() => {
|
3571
3595
|
clearTimeout(r), _e.set(!1);
|
3572
3596
|
});
|
3573
3597
|
}
|
3574
3598
|
return ae.set(e);
|
3575
|
-
}, w = Gn(
|
3576
|
-
set:
|
3599
|
+
}, w = Dn(Gn({}, ae), {
|
3600
|
+
set: Fn
|
3577
3601
|
}), pe = (e) => {
|
3578
3602
|
const t = /* @__PURE__ */ Object.create(null);
|
3579
3603
|
return (n) => {
|
@@ -3581,20 +3605,20 @@ const Dn = (e) => {
|
|
3581
3605
|
return i in t ? t[i] : t[i] = e(n);
|
3582
3606
|
};
|
3583
3607
|
};
|
3584
|
-
var
|
3608
|
+
var jn = Object.defineProperty, he = Object.getOwnPropertySymbols, Mt = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ge = (e, t) => {
|
3585
3609
|
for (var r in t || (t = {}))
|
3586
|
-
|
3587
|
-
if (
|
3588
|
-
for (var r of
|
3589
|
-
|
3610
|
+
Mt.call(t, r) && st(e, r, t[r]);
|
3611
|
+
if (he)
|
3612
|
+
for (var r of he(t))
|
3613
|
+
Rt.call(t, r) && st(e, r, t[r]);
|
3590
3614
|
return e;
|
3591
3615
|
}, W = (e, t) => {
|
3592
3616
|
var r = {};
|
3593
3617
|
for (var n in e)
|
3594
|
-
|
3595
|
-
if (e != null &&
|
3596
|
-
for (var n of
|
3597
|
-
t.indexOf(n) < 0 &&
|
3618
|
+
Mt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3619
|
+
if (e != null && he)
|
3620
|
+
for (var n of he(e))
|
3621
|
+
t.indexOf(n) < 0 && Rt.call(e, n) && (r[n] = e[n]);
|
3598
3622
|
return r;
|
3599
3623
|
};
|
3600
3624
|
const K = (e, t) => {
|
@@ -3602,21 +3626,21 @@ const K = (e, t) => {
|
|
3602
3626
|
if (e in r && t in r[e])
|
3603
3627
|
return r[e][t];
|
3604
3628
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3605
|
-
},
|
3629
|
+
}, Vn = pe(
|
3606
3630
|
(e) => {
|
3607
3631
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3608
3632
|
if (r == null)
|
3609
3633
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3610
3634
|
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
3611
3635
|
}
|
3612
|
-
),
|
3636
|
+
), kn = pe(
|
3613
3637
|
(e) => {
|
3614
3638
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3615
3639
|
if (r == null)
|
3616
3640
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3617
3641
|
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
3618
3642
|
}
|
3619
|
-
),
|
3643
|
+
), Xn = pe(
|
3620
3644
|
(e) => {
|
3621
3645
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3622
3646
|
if (r == null)
|
@@ -3625,48 +3649,48 @@ const K = (e, t) => {
|
|
3625
3649
|
);
|
3626
3650
|
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
3627
3651
|
}
|
3628
|
-
),
|
3652
|
+
), zn = (e = {}) => {
|
3629
3653
|
var t = e, {
|
3630
3654
|
locale: r = M()
|
3631
3655
|
} = t, n = W(t, [
|
3632
3656
|
"locale"
|
3633
3657
|
]);
|
3634
|
-
return
|
3635
|
-
},
|
3658
|
+
return Vn(Ge({ locale: r }, n));
|
3659
|
+
}, Wn = (e = {}) => {
|
3636
3660
|
var t = e, {
|
3637
3661
|
locale: r = M()
|
3638
3662
|
} = t, n = W(t, [
|
3639
3663
|
"locale"
|
3640
3664
|
]);
|
3641
|
-
return
|
3642
|
-
},
|
3665
|
+
return kn(Ge({ locale: r }, n));
|
3666
|
+
}, Zn = (e = {}) => {
|
3643
3667
|
var t = e, {
|
3644
3668
|
locale: r = M()
|
3645
3669
|
} = t, n = W(t, [
|
3646
3670
|
"locale"
|
3647
3671
|
]);
|
3648
|
-
return
|
3649
|
-
},
|
3672
|
+
return Xn(Ge({ locale: r }, n));
|
3673
|
+
}, Qn = pe(
|
3650
3674
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3651
|
-
(e, t = M()) => new
|
3675
|
+
(e, t = M()) => new vn(e, t, k().formats, {
|
3652
3676
|
ignoreTag: k().ignoreTag
|
3653
3677
|
})
|
3654
|
-
),
|
3678
|
+
), Jn = (e, t = {}) => {
|
3655
3679
|
var r, n, i, s;
|
3656
3680
|
let o = t;
|
3657
3681
|
typeof e == "object" && (o = e, e = o.id);
|
3658
3682
|
const {
|
3659
3683
|
values: a,
|
3660
|
-
locale:
|
3661
|
-
default:
|
3684
|
+
locale: u = M(),
|
3685
|
+
default: h
|
3662
3686
|
} = o;
|
3663
|
-
if (
|
3687
|
+
if (u == null)
|
3664
3688
|
throw new Error(
|
3665
3689
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3666
3690
|
);
|
3667
|
-
let l =
|
3691
|
+
let l = Nt(e, u);
|
3668
3692
|
if (!l)
|
3669
|
-
l = (s = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
3693
|
+
l = (s = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
|
3670
3694
|
else if (typeof l != "string")
|
3671
3695
|
return console.warn(
|
3672
3696
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -3675,7 +3699,7 @@ const K = (e, t) => {
|
|
3675
3699
|
return l;
|
3676
3700
|
let c = l;
|
3677
3701
|
try {
|
3678
|
-
c =
|
3702
|
+
c = Qn(l, u).format(a);
|
3679
3703
|
} catch (f) {
|
3680
3704
|
f instanceof Error && console.warn(
|
3681
3705
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3683,23 +3707,23 @@ const K = (e, t) => {
|
|
3683
3707
|
);
|
3684
3708
|
}
|
3685
3709
|
return c;
|
3686
|
-
},
|
3687
|
-
X([w], () => Jn);
|
3710
|
+
}, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = M()) => Nt(e, t), ti = X([w, z], () => Jn);
|
3688
3711
|
X([w], () => qn);
|
3689
3712
|
X([w], () => Yn);
|
3690
|
-
X([w
|
3691
|
-
|
3713
|
+
X([w], () => Kn);
|
3714
|
+
X([w, z], () => ei);
|
3715
|
+
function ri({ withLocale: e, translations: t }) {
|
3692
3716
|
w.subscribe((r) => {
|
3693
3717
|
r == null && (z.set(t), w.set(e));
|
3694
3718
|
});
|
3695
3719
|
}
|
3696
|
-
function
|
3697
|
-
|
3720
|
+
function ot(e, t) {
|
3721
|
+
wt(e, t);
|
3698
3722
|
}
|
3699
|
-
function
|
3723
|
+
function ni(e) {
|
3700
3724
|
w.set(e);
|
3701
3725
|
}
|
3702
|
-
const
|
3726
|
+
const at = {
|
3703
3727
|
en: {
|
3704
3728
|
bets: "bets"
|
3705
3729
|
},
|
@@ -3725,25 +3749,25 @@ const st = {
|
|
3725
3749
|
bets: "bets"
|
3726
3750
|
}
|
3727
3751
|
};
|
3728
|
-
function ni(e) {
|
3729
|
-
zt(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}');
|
3730
|
-
}
|
3731
3752
|
function ii(e) {
|
3753
|
+
Zt(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}');
|
3754
|
+
}
|
3755
|
+
function si(e) {
|
3732
3756
|
let t, r, n, i, s;
|
3733
3757
|
return {
|
3734
3758
|
c() {
|
3735
|
-
t = Q("div"), r = Q("div"), n = Q("span"), i =
|
3759
|
+
t = Q("div"), r = Q("div"), n = Q("span"), i = qt(
|
3736
3760
|
/*progressText*/
|
3737
3761
|
e[3]
|
3738
3762
|
), C(n, "part", "progressText"), C(r, "class", s = "stepBar " + /*curTatus*/
|
3739
3763
|
e[4]), C(r, "part", "stepBar"), C(t, "class", "general-icon-progress-bar"), C(t, "part", "totalBar");
|
3740
3764
|
},
|
3741
3765
|
m(o, a) {
|
3742
|
-
|
3766
|
+
ft(o, t, a), ne(t, r), ne(r, n), ne(n, i), e[13](n), e[14](r), e[15](t);
|
3743
3767
|
},
|
3744
3768
|
p(o, [a]) {
|
3745
3769
|
a & /*progressText*/
|
3746
|
-
8 &&
|
3770
|
+
8 && Kt(
|
3747
3771
|
i,
|
3748
3772
|
/*progressText*/
|
3749
3773
|
o[3]
|
@@ -3758,25 +3782,25 @@ function ii(e) {
|
|
3758
3782
|
}
|
3759
3783
|
};
|
3760
3784
|
}
|
3761
|
-
function
|
3785
|
+
function oi(e, t, r) {
|
3762
3786
|
let n;
|
3763
|
-
|
3764
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status:
|
3765
|
-
|
3787
|
+
Wt(e, ti, (p) => r(20, n = p));
|
3788
|
+
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status: u } = t, { translationurl: h = "" } = t, { progressfractiondigit: l = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, A, S, v = "0px", N = "active";
|
3789
|
+
ri({ withLocale: "en", translations: {} });
|
3766
3790
|
const O = () => {
|
3767
|
-
fetch(
|
3768
|
-
Object.keys(L).forEach((
|
3769
|
-
|
3791
|
+
fetch(h).then((L) => L.json()).then((L) => {
|
3792
|
+
Object.keys(L).forEach((De) => {
|
3793
|
+
ot(De, L[De]);
|
3770
3794
|
});
|
3771
3795
|
}).catch((L) => {
|
3772
3796
|
console.log(L);
|
3773
3797
|
});
|
3774
3798
|
};
|
3775
|
-
Object.keys(
|
3776
|
-
|
3799
|
+
Object.keys(at).forEach((p) => {
|
3800
|
+
ot(p, at[p]);
|
3777
3801
|
});
|
3778
3802
|
const R = () => {
|
3779
|
-
|
3803
|
+
ni(a);
|
3780
3804
|
}, te = () => {
|
3781
3805
|
let p = (i / s * 100).toFixed(l);
|
3782
3806
|
setTimeout(
|
@@ -3784,35 +3808,35 @@ function si(e, t, r) {
|
|
3784
3808
|
o || o === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
3785
3809
|
},
|
3786
3810
|
y ? 573 : 0
|
3787
|
-
), p == 0 || p == 100 ? (
|
3788
|
-
},
|
3789
|
-
r(4, N =
|
3811
|
+
), p == 0 || p == 100 ? (A = "0px", S = "0px", v = p == 100 ? "3px" : "0px") : (A = `${f.offsetHeight}px`, H = A, S = `${f.offsetHeight / 3}px`, v = "0px"), x.style.setProperty("--parentElementHeight", H), g.style.setProperty("--currentStep", p + "%"), g.style.setProperty("--triangleHeight", A), g.style.setProperty("--halfOfTriangleHeight", S), g.style.setProperty("--stepBarBorderRadius", v);
|
3812
|
+
}, $t = () => {
|
3813
|
+
r(4, N = u == "active" ? "" : "inactive");
|
3790
3814
|
};
|
3791
|
-
function
|
3815
|
+
function Ut(p) {
|
3792
3816
|
q[p ? "unshift" : "push"](() => {
|
3793
3817
|
x = p, r(1, x);
|
3794
3818
|
});
|
3795
3819
|
}
|
3796
|
-
function
|
3820
|
+
function Gt(p) {
|
3797
3821
|
q[p ? "unshift" : "push"](() => {
|
3798
3822
|
g = p, r(2, g);
|
3799
3823
|
});
|
3800
3824
|
}
|
3801
|
-
function
|
3825
|
+
function Dt(p) {
|
3802
3826
|
q[p ? "unshift" : "push"](() => {
|
3803
3827
|
f = p, r(0, f);
|
3804
3828
|
});
|
3805
3829
|
}
|
3806
3830
|
return e.$$set = (p) => {
|
3807
|
-
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, o = p.showaspercent), "lang" in p && r(8, a = p.lang), "status" in p && r(9,
|
3831
|
+
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, o = p.showaspercent), "lang" in p && r(8, a = p.lang), "status" in p && r(9, u = p.status), "translationurl" in p && r(10, h = p.translationurl), "progressfractiondigit" in p && r(11, l = p.progressfractiondigit), "triggerreset" in p && r(12, c = p.triggerreset);
|
3808
3832
|
}, e.$$.update = () => {
|
3809
3833
|
e.$$.dirty & /*triggerreset, total*/
|
3810
3834
|
4160 && c && s && setTimeout(() => {
|
3811
3835
|
te();
|
3812
3836
|
}), e.$$.dirty & /*lang*/
|
3813
3837
|
256 && a && R(), e.$$.dirty & /*status*/
|
3814
|
-
512 &&
|
3815
|
-
1024 &&
|
3838
|
+
512 && u && $t(), e.$$.dirty & /*translationurl*/
|
3839
|
+
1024 && h && O();
|
3816
3840
|
}, [
|
3817
3841
|
f,
|
3818
3842
|
x,
|
@@ -3823,23 +3847,23 @@ function si(e, t, r) {
|
|
3823
3847
|
s,
|
3824
3848
|
o,
|
3825
3849
|
a,
|
3826
|
-
h,
|
3827
3850
|
u,
|
3851
|
+
h,
|
3828
3852
|
l,
|
3829
3853
|
c,
|
3830
|
-
|
3831
|
-
|
3832
|
-
|
3854
|
+
Ut,
|
3855
|
+
Gt,
|
3856
|
+
Dt
|
3833
3857
|
];
|
3834
3858
|
}
|
3835
|
-
class
|
3859
|
+
class ai extends cr {
|
3836
3860
|
constructor(t) {
|
3837
|
-
super(),
|
3861
|
+
super(), lr(
|
3838
3862
|
this,
|
3839
3863
|
t,
|
3864
|
+
oi,
|
3840
3865
|
si,
|
3841
|
-
|
3842
|
-
at,
|
3866
|
+
ut,
|
3843
3867
|
{
|
3844
3868
|
currentstep: 5,
|
3845
3869
|
total: 6,
|
@@ -3850,7 +3874,7 @@ class oi extends lr {
|
|
3850
3874
|
progressfractiondigit: 11,
|
3851
3875
|
triggerreset: 12
|
3852
3876
|
},
|
3853
|
-
|
3877
|
+
ii
|
3854
3878
|
);
|
3855
3879
|
}
|
3856
3880
|
get currentstep() {
|
@@ -3902,7 +3926,7 @@ class oi extends lr {
|
|
3902
3926
|
this.$$set({ triggerreset: t }), P();
|
3903
3927
|
}
|
3904
3928
|
}
|
3905
|
-
|
3929
|
+
fr(ai, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3906
3930
|
export {
|
3907
|
-
|
3931
|
+
ai as default
|
3908
3932
|
};
|