@everymatrix/general-icon-progress-bar 1.74.3 → 1.74.5
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-B2l5IJIC.js → GeneralIconProgressBar-DSaIA0Oc.js} +394 -396
- package/components/GeneralIconProgressBar-DvairRCn.cjs +16 -0
- package/components/{GeneralIconProgressBar-BQOld2VG.js → GeneralIconProgressBar-DvfGRc7A.js} +373 -375
- 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-j-fA-plB.cjs +0 -16
package/components/{GeneralIconProgressBar-B2l5IJIC.js → GeneralIconProgressBar-DSaIA0Oc.js}
RENAMED
@@ -1,42 +1,42 @@
|
|
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
|
-
},
|
12
|
+
}, Ve = (e, t) => jt(e, Vt(t));
|
13
13
|
var T = (e, t, r) => (me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
|
-
var
|
15
|
-
var s = (
|
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";
|
@@ -44,10 +44,10 @@ function Le(e) {
|
|
44
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,20 +56,20 @@ function ht(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
|
72
|
+
function Qt(e) {
|
73
73
|
if (!e)
|
74
74
|
return document;
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -79,14 +79,14 @@ function Zt(e) {
|
|
79
79
|
t
|
80
80
|
) : e.ownerDocument;
|
81
81
|
}
|
82
|
-
function
|
82
|
+
function Jt(e, t) {
|
83
83
|
return ne(
|
84
84
|
/** @type {Document} */
|
85
85
|
e.head || e,
|
86
86
|
t
|
87
87
|
), t.sheet;
|
88
88
|
}
|
89
|
-
function
|
89
|
+
function ft(e, t, r) {
|
90
90
|
e.insertBefore(t, r || null);
|
91
91
|
}
|
92
92
|
function Ce(e) {
|
@@ -95,20 +95,20 @@ function Ce(e) {
|
|
95
95
|
function Q(e) {
|
96
96
|
return document.createElement(e);
|
97
97
|
}
|
98
|
-
function
|
98
|
+
function qt(e) {
|
99
99
|
return document.createTextNode(e);
|
100
100
|
}
|
101
101
|
function C(e, t, r) {
|
102
102
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
103
103
|
}
|
104
|
-
function
|
104
|
+
function Yt(e) {
|
105
105
|
return Array.from(e.childNodes);
|
106
106
|
}
|
107
|
-
function
|
107
|
+
function Kt(e, t) {
|
108
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
109
109
|
t);
|
110
110
|
}
|
111
|
-
function
|
111
|
+
function er(e) {
|
112
112
|
const t = {};
|
113
113
|
return e.childNodes.forEach(
|
114
114
|
/** @param {Element} node */
|
@@ -123,15 +123,15 @@ function J(e) {
|
|
123
123
|
}
|
124
124
|
const G = [], q = [];
|
125
125
|
let D = [];
|
126
|
-
const
|
126
|
+
const ze = [], tr = /* @__PURE__ */ Promise.resolve();
|
127
127
|
let ve = !1;
|
128
|
-
function
|
129
|
-
ve || (ve = !0,
|
128
|
+
function rr() {
|
129
|
+
ve || (ve = !0, tr.then(P));
|
130
130
|
}
|
131
131
|
function He(e) {
|
132
132
|
D.push(e);
|
133
133
|
}
|
134
|
-
const
|
134
|
+
const be = /* @__PURE__ */ new Set();
|
135
135
|
let $ = 0;
|
136
136
|
function P() {
|
137
137
|
if ($ !== 0)
|
@@ -141,7 +141,7 @@ function P() {
|
|
141
141
|
try {
|
142
142
|
for (; $ < G.length; ) {
|
143
143
|
const t = G[$];
|
144
|
-
$++, J(t),
|
144
|
+
$++, J(t), nr(t.$$);
|
145
145
|
}
|
146
146
|
} catch (t) {
|
147
147
|
throw G.length = 0, $ = 0, t;
|
@@ -150,84 +150,84 @@ function P() {
|
|
150
150
|
q.pop()();
|
151
151
|
for (let t = 0; t < D.length; t += 1) {
|
152
152
|
const r = D[t];
|
153
|
-
|
153
|
+
be.has(r) || (be.add(r), r());
|
154
154
|
}
|
155
155
|
D.length = 0;
|
156
156
|
} while (G.length);
|
157
|
-
for (;
|
158
|
-
|
159
|
-
ve = !1,
|
157
|
+
for (; ze.length; )
|
158
|
+
ze.pop()();
|
159
|
+
ve = !1, be.clear(), J(e);
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function nr(e) {
|
162
162
|
if (e.fragment !== null) {
|
163
163
|
e.update(), ee(e.before_update);
|
164
164
|
const t = e.dirty;
|
165
165
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(He);
|
166
166
|
}
|
167
167
|
}
|
168
|
-
function
|
168
|
+
function ir(e) {
|
169
169
|
const t = [], r = [];
|
170
170
|
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
171
171
|
}
|
172
|
-
const
|
173
|
-
function
|
174
|
-
e && e.i && (
|
172
|
+
const sr = /* @__PURE__ */ new Set();
|
173
|
+
function or(e, t) {
|
174
|
+
e && e.i && (sr.delete(e), e.i(t));
|
175
175
|
}
|
176
|
-
function
|
176
|
+
function ar(e, t, r) {
|
177
177
|
const { fragment: n, after_update: i } = e.$$;
|
178
178
|
n && n.m(t, r), He(() => {
|
179
|
-
const s = e.$$.on_mount.map(
|
179
|
+
const s = e.$$.on_mount.map(ht).filter(Le);
|
180
180
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
181
181
|
}), i.forEach(He);
|
182
182
|
}
|
183
|
-
function
|
183
|
+
function hr(e, t) {
|
184
184
|
const r = e.$$;
|
185
|
-
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 = []);
|
186
186
|
}
|
187
187
|
function ur(e, t) {
|
188
|
-
e.$$.dirty[0] === -1 && (G.push(e),
|
188
|
+
e.$$.dirty[0] === -1 && (G.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
189
189
|
}
|
190
|
-
function
|
191
|
-
const
|
190
|
+
function lr(e, t, r, n, i, s, o = null, a = [-1]) {
|
191
|
+
const u = Me;
|
192
192
|
J(e);
|
193
|
-
const
|
193
|
+
const h = e.$$ = {
|
194
194
|
fragment: null,
|
195
195
|
ctx: [],
|
196
196
|
// state
|
197
197
|
props: s,
|
198
198
|
update: B,
|
199
199
|
not_equal: i,
|
200
|
-
bound:
|
200
|
+
bound: Xe(),
|
201
201
|
// lifecycle
|
202
202
|
on_mount: [],
|
203
203
|
on_destroy: [],
|
204
204
|
on_disconnect: [],
|
205
205
|
before_update: [],
|
206
206
|
after_update: [],
|
207
|
-
context: new Map(t.context || (
|
207
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
208
208
|
// everything else
|
209
|
-
callbacks:
|
209
|
+
callbacks: Xe(),
|
210
210
|
dirty: a,
|
211
211
|
skip_bound: !1,
|
212
|
-
root: t.target ||
|
212
|
+
root: t.target || u.$$.root
|
213
213
|
};
|
214
|
-
o && o(
|
214
|
+
o && o(h.root);
|
215
215
|
let l = !1;
|
216
|
-
if (
|
216
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
217
217
|
const g = x.length ? x[0] : f;
|
218
|
-
return
|
219
|
-
}),
|
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) {
|
220
220
|
if (t.hydrate) {
|
221
|
-
const c =
|
222
|
-
|
221
|
+
const c = Yt(t.target);
|
222
|
+
h.fragment && h.fragment.l(c), c.forEach(Ce);
|
223
223
|
} else
|
224
|
-
|
225
|
-
t.intro &&
|
224
|
+
h.fragment && h.fragment.c();
|
225
|
+
t.intro && or(e.$$.fragment), ar(e, t.target, t.anchor), P();
|
226
226
|
}
|
227
|
-
J(
|
227
|
+
J(u);
|
228
228
|
}
|
229
|
-
let
|
230
|
-
typeof HTMLElement == "function" && (
|
229
|
+
let ct;
|
230
|
+
typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
231
231
|
constructor(t, r, n) {
|
232
232
|
super();
|
233
233
|
/** The Svelte component constructor */
|
@@ -264,7 +264,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
264
264
|
}
|
265
265
|
}
|
266
266
|
connectedCallback() {
|
267
|
-
return
|
267
|
+
return ke(this, null, function* () {
|
268
268
|
if (this.$$cn = !0, !this.$$c) {
|
269
269
|
let t = function(s) {
|
270
270
|
return () => {
|
@@ -277,18 +277,18 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
277
277
|
* @param {HTMLElement} target
|
278
278
|
* @param {HTMLElement} [anchor]
|
279
279
|
*/
|
280
|
-
m: function(
|
281
|
-
|
280
|
+
m: function(h, l) {
|
281
|
+
ft(h, o, l);
|
282
282
|
},
|
283
|
-
d: function(
|
284
|
-
|
283
|
+
d: function(h) {
|
284
|
+
h && Ce(o);
|
285
285
|
}
|
286
286
|
};
|
287
287
|
};
|
288
288
|
};
|
289
289
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
290
290
|
return;
|
291
|
-
const r = {}, n =
|
291
|
+
const r = {}, n = er(this);
|
292
292
|
for (const s of this.$$s)
|
293
293
|
s in n && (r[s] = [t(s)]);
|
294
294
|
for (const s of this.attributes) {
|
@@ -299,7 +299,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
299
299
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
300
300
|
this.$$c = new this.$$ctor({
|
301
301
|
target: this.shadowRoot || this,
|
302
|
-
props: je(
|
302
|
+
props: Ve(je({}, this.$$d), {
|
303
303
|
$$slots: r,
|
304
304
|
$$scope: {
|
305
305
|
ctx: []
|
@@ -377,8 +377,8 @@ function ie(e, t, r, n) {
|
|
377
377
|
return t;
|
378
378
|
}
|
379
379
|
}
|
380
|
-
function
|
381
|
-
let o = class extends
|
380
|
+
function fr(e, t, r, n, i, s) {
|
381
|
+
let o = class extends ct {
|
382
382
|
constructor() {
|
383
383
|
super(e, r, i), this.$$p_d = t;
|
384
384
|
}
|
@@ -393,22 +393,22 @@ function lr(e, t, r, n, i, s) {
|
|
393
393
|
get() {
|
394
394
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
395
395
|
},
|
396
|
-
set(
|
397
|
-
var
|
398
|
-
|
396
|
+
set(u) {
|
397
|
+
var h;
|
398
|
+
u = ie(a, u, t), this.$$d[a] = u, (h = this.$$c) == null || h.$set({ [a]: u });
|
399
399
|
}
|
400
400
|
});
|
401
401
|
}), n.forEach((a) => {
|
402
402
|
Object.defineProperty(o.prototype, a, {
|
403
403
|
get() {
|
404
|
-
var
|
405
|
-
return (
|
404
|
+
var u;
|
405
|
+
return (u = this.$$c) == null ? void 0 : u[a];
|
406
406
|
}
|
407
407
|
});
|
408
408
|
}), e.element = /** @type {any} */
|
409
409
|
o, o;
|
410
410
|
}
|
411
|
-
class
|
411
|
+
class cr {
|
412
412
|
constructor() {
|
413
413
|
/**
|
414
414
|
* ### PRIVATE API
|
@@ -429,7 +429,7 @@ class fr {
|
|
429
429
|
}
|
430
430
|
/** @returns {void} */
|
431
431
|
$destroy() {
|
432
|
-
|
432
|
+
hr(this, 1), this.$destroy = B;
|
433
433
|
}
|
434
434
|
/**
|
435
435
|
* @template {Extract<keyof Events, string>} K
|
@@ -451,28 +451,28 @@ class fr {
|
|
451
451
|
* @returns {void}
|
452
452
|
*/
|
453
453
|
$set(t) {
|
454
|
-
this.$$set && !
|
454
|
+
this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
455
455
|
}
|
456
456
|
}
|
457
|
-
const
|
458
|
-
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);
|
459
459
|
const U = [];
|
460
|
-
function
|
460
|
+
function mr(e, t) {
|
461
461
|
return {
|
462
|
-
subscribe:
|
462
|
+
subscribe: ue(e, t).subscribe
|
463
463
|
};
|
464
464
|
}
|
465
|
-
function
|
465
|
+
function ue(e, t = B) {
|
466
466
|
let r;
|
467
467
|
const n = /* @__PURE__ */ new Set();
|
468
468
|
function i(a) {
|
469
469
|
if (ut(e, a) && (e = a, r)) {
|
470
|
-
const
|
471
|
-
for (const
|
472
|
-
|
473
|
-
if (
|
474
|
-
for (let
|
475
|
-
U[
|
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]);
|
476
476
|
U.length = 0;
|
477
477
|
}
|
478
478
|
}
|
@@ -480,10 +480,10 @@ function he(e, t = B) {
|
|
480
480
|
function s(a) {
|
481
481
|
i(a(e));
|
482
482
|
}
|
483
|
-
function o(a,
|
484
|
-
const
|
485
|
-
return n.add(
|
486
|
-
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);
|
487
487
|
};
|
488
488
|
}
|
489
489
|
return { set: i, update: s, subscribe: o };
|
@@ -493,96 +493,96 @@ function X(e, t, r) {
|
|
493
493
|
if (!i.every(Boolean))
|
494
494
|
throw new Error("derived() expects stores as input, got a falsy value");
|
495
495
|
const s = t.length < 2;
|
496
|
-
return
|
497
|
-
let
|
498
|
-
const
|
496
|
+
return mr(r, (o, a) => {
|
497
|
+
let u = !1;
|
498
|
+
const h = [];
|
499
499
|
let l = 0, c = B;
|
500
500
|
const f = () => {
|
501
501
|
if (l)
|
502
502
|
return;
|
503
503
|
c();
|
504
|
-
const g = t(n ?
|
504
|
+
const g = t(n ? h[0] : h, o, a);
|
505
505
|
s ? o(g) : c = Le(g) ? g : B;
|
506
506
|
}, x = i.map(
|
507
|
-
(g, y) =>
|
507
|
+
(g, y) => lt(
|
508
508
|
g,
|
509
509
|
(H) => {
|
510
|
-
|
510
|
+
h[y] = H, l &= ~(1 << y), u && f();
|
511
511
|
},
|
512
512
|
() => {
|
513
513
|
l |= 1 << y;
|
514
514
|
}
|
515
515
|
)
|
516
516
|
);
|
517
|
-
return
|
518
|
-
ee(x), c(),
|
517
|
+
return u = !0, f(), function() {
|
518
|
+
ee(x), c(), u = !1;
|
519
519
|
};
|
520
520
|
});
|
521
521
|
}
|
522
|
-
function
|
523
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
522
|
+
function br(e) {
|
523
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
524
524
|
}
|
525
525
|
var dr = function(t) {
|
526
|
-
return
|
526
|
+
return gr(t) && !xr(t);
|
527
527
|
};
|
528
|
-
function
|
528
|
+
function gr(e) {
|
529
529
|
return !!e && typeof e == "object";
|
530
530
|
}
|
531
|
-
function
|
531
|
+
function xr(e) {
|
532
532
|
var t = Object.prototype.toString.call(e);
|
533
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
534
|
-
}
|
535
|
-
var xr = typeof Symbol == "function" && Symbol.for, Er = xr ? Symbol.for("react.element") : 60103;
|
536
|
-
function yr(e) {
|
537
|
-
return e.$$typeof === Er;
|
533
|
+
return t === "[object RegExp]" || t === "[object Date]" || _r(e);
|
538
534
|
}
|
535
|
+
var Er = typeof Symbol == "function" && Symbol.for, yr = Er ? Symbol.for("react.element") : 60103;
|
539
536
|
function _r(e) {
|
537
|
+
return e.$$typeof === yr;
|
538
|
+
}
|
539
|
+
function vr(e) {
|
540
540
|
return Array.isArray(e) ? [] : {};
|
541
541
|
}
|
542
542
|
function Y(e, t) {
|
543
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? F(
|
543
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(vr(e), e, t) : e;
|
544
544
|
}
|
545
|
-
function
|
545
|
+
function Hr(e, t, r) {
|
546
546
|
return e.concat(t).map(function(n) {
|
547
547
|
return Y(n, r);
|
548
548
|
});
|
549
549
|
}
|
550
|
-
function
|
550
|
+
function Tr(e, t) {
|
551
551
|
if (!t.customMerge)
|
552
552
|
return F;
|
553
553
|
var r = t.customMerge(e);
|
554
554
|
return typeof r == "function" ? r : F;
|
555
555
|
}
|
556
|
-
function
|
556
|
+
function Br(e) {
|
557
557
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
558
558
|
return Object.propertyIsEnumerable.call(e, t);
|
559
559
|
}) : [];
|
560
560
|
}
|
561
|
-
function
|
562
|
-
return Object.keys(e).concat(
|
561
|
+
function We(e) {
|
562
|
+
return Object.keys(e).concat(Br(e));
|
563
563
|
}
|
564
|
-
function
|
564
|
+
function pt(e, t) {
|
565
565
|
try {
|
566
566
|
return t in e;
|
567
567
|
} catch (r) {
|
568
568
|
return !1;
|
569
569
|
}
|
570
570
|
}
|
571
|
-
function
|
572
|
-
return
|
571
|
+
function Ar(e, t) {
|
572
|
+
return pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
573
573
|
}
|
574
|
-
function
|
574
|
+
function Sr(e, t, r) {
|
575
575
|
var n = {};
|
576
|
-
return r.isMergeableObject(e) &&
|
576
|
+
return r.isMergeableObject(e) && We(e).forEach(function(i) {
|
577
577
|
n[i] = Y(e[i], r);
|
578
|
-
}),
|
579
|
-
|
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));
|
580
580
|
}), n;
|
581
581
|
}
|
582
582
|
function F(e, t, r) {
|
583
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
583
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || dr, r.cloneUnlessOtherwiseSpecified = Y;
|
584
584
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
585
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
585
|
+
return s ? n ? r.arrayMerge(e, t, r) : Sr(e, t, r) : Y(t, r);
|
586
586
|
}
|
587
587
|
F.all = function(t, r) {
|
588
588
|
if (!Array.isArray(t))
|
@@ -591,8 +591,8 @@ F.all = function(t, r) {
|
|
591
591
|
return F(n, i, r);
|
592
592
|
}, {});
|
593
593
|
};
|
594
|
-
var
|
595
|
-
const
|
594
|
+
var Pr = F, Or = Pr;
|
595
|
+
const Nr = /* @__PURE__ */ br(Or);
|
596
596
|
/*! *****************************************************************************
|
597
597
|
Copyright (c) Microsoft Corporation.
|
598
598
|
|
@@ -624,17 +624,17 @@ function le(e, t) {
|
|
624
624
|
}
|
625
625
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
626
626
|
}
|
627
|
-
var
|
628
|
-
return
|
627
|
+
var d = function() {
|
628
|
+
return d = Object.assign || function(t) {
|
629
629
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
630
630
|
r = arguments[n];
|
631
631
|
for (var s in r)
|
632
632
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
633
633
|
}
|
634
634
|
return t;
|
635
|
-
},
|
635
|
+
}, d.apply(this, arguments);
|
636
636
|
};
|
637
|
-
function
|
637
|
+
function Ir(e, t) {
|
638
638
|
var r = {};
|
639
639
|
for (var n in e)
|
640
640
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -643,64 +643,62 @@ function Nr(e, t) {
|
|
643
643
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
644
644
|
return r;
|
645
645
|
}
|
646
|
-
function
|
646
|
+
function de(e, t, r) {
|
647
647
|
if (arguments.length === 2)
|
648
648
|
for (var n = 0, i = t.length, s; n < i; n++)
|
649
649
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
650
650
|
return e.concat(s || t);
|
651
651
|
}
|
652
652
|
function ge(e, t) {
|
653
|
-
var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer :
|
653
|
+
var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Lr;
|
654
654
|
return i(e, {
|
655
655
|
cache: r,
|
656
656
|
serializer: n
|
657
657
|
});
|
658
658
|
}
|
659
|
-
function
|
659
|
+
function wr(e) {
|
660
660
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
661
661
|
}
|
662
|
-
function
|
663
|
-
var i =
|
662
|
+
function mt(e, t, r, n) {
|
663
|
+
var i = wr(n) ? n : r(n), s = t.get(i);
|
664
664
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
665
665
|
}
|
666
|
-
function
|
666
|
+
function bt(e, t, r) {
|
667
667
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
668
668
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
669
669
|
}
|
670
670
|
function Re(e, t, r, n, i) {
|
671
671
|
return r.bind(t, e, n, i);
|
672
672
|
}
|
673
|
-
function wr(e, t) {
|
674
|
-
var r = e.length === 1 ? pt : mt;
|
675
|
-
return Re(e, this, r, t.cache.create(), t.serializer);
|
676
|
-
}
|
677
673
|
function Lr(e, t) {
|
678
|
-
|
674
|
+
var r = e.length === 1 ? mt : bt;
|
675
|
+
return Re(e, this, r, t.cache.create(), t.serializer);
|
679
676
|
}
|
680
677
|
function Cr(e, t) {
|
681
|
-
return Re(e, this,
|
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);
|
682
682
|
}
|
683
|
-
var
|
683
|
+
var Rr = function() {
|
684
684
|
return JSON.stringify(arguments);
|
685
|
-
}
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
}()
|
697
|
-
), $r = {
|
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 = {
|
698
696
|
create: function() {
|
699
|
-
return new
|
697
|
+
return new $e();
|
700
698
|
}
|
701
699
|
}, xe = {
|
702
|
-
variadic:
|
703
|
-
monadic:
|
700
|
+
variadic: Cr,
|
701
|
+
monadic: Mr
|
704
702
|
}, m;
|
705
703
|
(function(e) {
|
706
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";
|
@@ -713,7 +711,7 @@ var j;
|
|
713
711
|
(function(e) {
|
714
712
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
715
713
|
})(j || (j = {}));
|
716
|
-
function
|
714
|
+
function Ze(e) {
|
717
715
|
return e.type === E.literal;
|
718
716
|
}
|
719
717
|
function Ur(e) {
|
@@ -722,31 +720,31 @@ function Ur(e) {
|
|
722
720
|
function dt(e) {
|
723
721
|
return e.type === E.number;
|
724
722
|
}
|
725
|
-
function
|
723
|
+
function gt(e) {
|
726
724
|
return e.type === E.date;
|
727
725
|
}
|
728
|
-
function
|
726
|
+
function xt(e) {
|
729
727
|
return e.type === E.time;
|
730
728
|
}
|
731
|
-
function
|
729
|
+
function Et(e) {
|
732
730
|
return e.type === E.select;
|
733
731
|
}
|
734
|
-
function
|
732
|
+
function yt(e) {
|
735
733
|
return e.type === E.plural;
|
736
734
|
}
|
737
735
|
function Gr(e) {
|
738
736
|
return e.type === E.pound;
|
739
737
|
}
|
740
|
-
function
|
738
|
+
function _t(e) {
|
741
739
|
return e.type === E.tag;
|
742
740
|
}
|
743
|
-
function
|
741
|
+
function vt(e) {
|
744
742
|
return !!(e && typeof e == "object" && e.type === j.number);
|
745
743
|
}
|
746
744
|
function Be(e) {
|
747
745
|
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
748
746
|
}
|
749
|
-
var
|
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;
|
750
748
|
function Fr(e) {
|
751
749
|
var t = {};
|
752
750
|
return e.replace(Dr, function(r) {
|
@@ -848,26 +846,26 @@ function Vr(e) {
|
|
848
846
|
var s = i[n], o = s.split("/");
|
849
847
|
if (o.length === 0)
|
850
848
|
throw new Error("Invalid number skeleton");
|
851
|
-
for (var a = o[0],
|
852
|
-
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];
|
853
851
|
if (c.length === 0)
|
854
852
|
throw new Error("Invalid number skeleton");
|
855
853
|
}
|
856
|
-
r.push({ stem: a, options:
|
854
|
+
r.push({ stem: a, options: u });
|
857
855
|
}
|
858
856
|
return r;
|
859
857
|
}
|
860
858
|
function kr(e) {
|
861
859
|
return e.replace(/^(.*?)-/, "");
|
862
860
|
}
|
863
|
-
var
|
864
|
-
function
|
861
|
+
var Qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tt = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Bt = /^(0+)$/;
|
862
|
+
function Je(e) {
|
865
863
|
var t = {};
|
866
|
-
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) {
|
867
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)), "";
|
868
866
|
}), t;
|
869
867
|
}
|
870
|
-
function
|
868
|
+
function At(e) {
|
871
869
|
switch (e) {
|
872
870
|
case "sign-auto":
|
873
871
|
return {
|
@@ -915,14 +913,14 @@ function zr(e) {
|
|
915
913
|
notation: "scientific"
|
916
914
|
}, e = e.slice(1)), t) {
|
917
915
|
var r = e.slice(0, 2);
|
918
|
-
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))
|
919
917
|
throw new Error("Malformed concise eng/scientific notation");
|
920
918
|
t.minimumIntegerDigits = e.length;
|
921
919
|
}
|
922
920
|
return t;
|
923
921
|
}
|
924
|
-
function
|
925
|
-
var t = {}, r =
|
922
|
+
function qe(e) {
|
923
|
+
var t = {}, r = At(e);
|
926
924
|
return r || t;
|
927
925
|
}
|
928
926
|
function Wr(e) {
|
@@ -960,13 +958,13 @@ function Wr(e) {
|
|
960
958
|
t.notation = "compact", t.compactDisplay = "long";
|
961
959
|
continue;
|
962
960
|
case "scientific":
|
963
|
-
t =
|
964
|
-
return
|
961
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
962
|
+
return d(d({}, u), qe(h));
|
965
963
|
}, {}));
|
966
964
|
continue;
|
967
965
|
case "engineering":
|
968
|
-
t =
|
969
|
-
return
|
966
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
967
|
+
return d(d({}, u), qe(h));
|
970
968
|
}, {}));
|
971
969
|
continue;
|
972
970
|
case "notation-simple":
|
@@ -1011,8 +1009,8 @@ function Wr(e) {
|
|
1011
1009
|
case "integer-width":
|
1012
1010
|
if (i.options.length > 1)
|
1013
1011
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1014
|
-
i.options[0].replace(Xr, function(
|
1015
|
-
if (
|
1012
|
+
i.options[0].replace(Xr, function(u, h, l, c, f, x) {
|
1013
|
+
if (h)
|
1016
1014
|
t.minimumIntegerDigits = l.length;
|
1017
1015
|
else {
|
1018
1016
|
if (c && f)
|
@@ -1024,28 +1022,28 @@ function Wr(e) {
|
|
1024
1022
|
});
|
1025
1023
|
continue;
|
1026
1024
|
}
|
1027
|
-
if (
|
1025
|
+
if (Bt.test(i.stem)) {
|
1028
1026
|
t.minimumIntegerDigits = i.stem.length;
|
1029
1027
|
continue;
|
1030
1028
|
}
|
1031
|
-
if (
|
1029
|
+
if (Qe.test(i.stem)) {
|
1032
1030
|
if (i.options.length > 1)
|
1033
1031
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1034
|
-
i.stem.replace(
|
1035
|
-
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), "";
|
1036
1034
|
});
|
1037
1035
|
var s = i.options[0];
|
1038
|
-
s === "w" ? t =
|
1036
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Je(s)));
|
1039
1037
|
continue;
|
1040
1038
|
}
|
1041
|
-
if (
|
1042
|
-
t =
|
1039
|
+
if (Tt.test(i.stem)) {
|
1040
|
+
t = d(d({}, t), Je(i.stem));
|
1043
1041
|
continue;
|
1044
1042
|
}
|
1045
|
-
var o =
|
1046
|
-
o && (t =
|
1043
|
+
var o = At(i.stem);
|
1044
|
+
o && (t = d(d({}, t), o));
|
1047
1045
|
var a = zr(i.stem);
|
1048
|
-
a && (t =
|
1046
|
+
a && (t = d(d({}, t), a));
|
1049
1047
|
}
|
1050
1048
|
return t;
|
1051
1049
|
}
|
@@ -2470,11 +2468,11 @@ function Zr(e, t) {
|
|
2470
2468
|
if (i === "j") {
|
2471
2469
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2472
2470
|
s++, n++;
|
2473
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1),
|
2474
|
-
for ((
|
2475
|
-
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;
|
2476
2474
|
for (; o-- > 0; )
|
2477
|
-
r =
|
2475
|
+
r = h + r;
|
2478
2476
|
} else
|
2479
2477
|
i === "J" ? r += "H" : r += i;
|
2480
2478
|
}
|
@@ -2502,20 +2500,20 @@ function Qr(e) {
|
|
2502
2500
|
var i = re[n || ""] || re[r || ""] || re["".concat(r, "-001")] || re["001"];
|
2503
2501
|
return i[0];
|
2504
2502
|
}
|
2505
|
-
var Ee, Jr = new RegExp("^".concat(
|
2506
|
-
function
|
2503
|
+
var Ee, Jr = new RegExp("^".concat(Ht.source, "*")), qr = new RegExp("".concat(Ht.source, "*$"));
|
2504
|
+
function b(e, t) {
|
2507
2505
|
return { start: e, end: t };
|
2508
2506
|
}
|
2509
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) {
|
2510
2508
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2511
2509
|
}, Ae = !0;
|
2512
2510
|
try {
|
2513
|
-
var an =
|
2511
|
+
var an = Pt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2514
2512
|
Ae = ((Ee = an.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
2515
2513
|
} catch (e) {
|
2516
2514
|
Ae = !1;
|
2517
2515
|
}
|
2518
|
-
var
|
2516
|
+
var Ye = Yr ? (
|
2519
2517
|
// Native
|
2520
2518
|
function(t, r, n) {
|
2521
2519
|
return t.startsWith(r, n);
|
@@ -2537,7 +2535,7 @@ var qe = Yr ? (
|
|
2537
2535
|
}
|
2538
2536
|
return n;
|
2539
2537
|
}
|
2540
|
-
),
|
2538
|
+
), Ke = (
|
2541
2539
|
// native
|
2542
2540
|
en ? Object.fromEntries : (
|
2543
2541
|
// Ponyfill
|
@@ -2549,7 +2547,7 @@ var qe = Yr ? (
|
|
2549
2547
|
return r;
|
2550
2548
|
}
|
2551
2549
|
)
|
2552
|
-
),
|
2550
|
+
), St = tn ? (
|
2553
2551
|
// Native
|
2554
2552
|
function(t, r) {
|
2555
2553
|
return t.codePointAt(r);
|
@@ -2563,7 +2561,7 @@ var qe = Yr ? (
|
|
2563
2561
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2564
2562
|
}
|
2565
2563
|
}
|
2566
|
-
),
|
2564
|
+
), hn = rn ? (
|
2567
2565
|
// Native
|
2568
2566
|
function(t) {
|
2569
2567
|
return t.trimStart();
|
@@ -2573,7 +2571,7 @@ var qe = Yr ? (
|
|
2573
2571
|
function(t) {
|
2574
2572
|
return t.replace(Jr, "");
|
2575
2573
|
}
|
2576
|
-
),
|
2574
|
+
), un = nn ? (
|
2577
2575
|
// Native
|
2578
2576
|
function(t) {
|
2579
2577
|
return t.trimEnd();
|
@@ -2584,23 +2582,23 @@ var qe = Yr ? (
|
|
2584
2582
|
return t.replace(qr, "");
|
2585
2583
|
}
|
2586
2584
|
);
|
2587
|
-
function
|
2585
|
+
function Pt(e, t) {
|
2588
2586
|
return new RegExp(e, t);
|
2589
2587
|
}
|
2590
2588
|
var Pe;
|
2591
2589
|
if (Ae) {
|
2592
|
-
var
|
2590
|
+
var et = Pt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2593
2591
|
Pe = function(t, r) {
|
2594
2592
|
var n;
|
2595
|
-
|
2596
|
-
var i =
|
2593
|
+
et.lastIndex = r;
|
2594
|
+
var i = et.exec(t);
|
2597
2595
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2598
2596
|
};
|
2599
2597
|
} else
|
2600
2598
|
Pe = function(t, r) {
|
2601
2599
|
for (var n = []; ; ) {
|
2602
|
-
var i =
|
2603
|
-
if (i === void 0 ||
|
2600
|
+
var i = St(t, r);
|
2601
|
+
if (i === void 0 || Ot(i) || pn(i))
|
2604
2602
|
break;
|
2605
2603
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2606
2604
|
}
|
@@ -2631,12 +2629,12 @@ var ln = (
|
|
2631
2629
|
var a = this.clonePosition();
|
2632
2630
|
this.bump(), i.push({
|
2633
2631
|
type: E.pound,
|
2634
|
-
location:
|
2632
|
+
location: b(a, this.clonePosition())
|
2635
2633
|
});
|
2636
2634
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2637
2635
|
if (n)
|
2638
2636
|
break;
|
2639
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
2637
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
2640
2638
|
} else if (s === 60 && !this.ignoreTag && Oe(this.peek() || 0)) {
|
2641
2639
|
var o = this.parseTag(t, r);
|
2642
2640
|
if (o.err)
|
@@ -2660,7 +2658,7 @@ var ln = (
|
|
2660
2658
|
val: {
|
2661
2659
|
type: E.literal,
|
2662
2660
|
value: "<".concat(i, "/>"),
|
2663
|
-
location:
|
2661
|
+
location: b(n, this.clonePosition())
|
2664
2662
|
},
|
2665
2663
|
err: null
|
2666
2664
|
};
|
@@ -2671,21 +2669,21 @@ var ln = (
|
|
2671
2669
|
var o = s.val, a = this.clonePosition();
|
2672
2670
|
if (this.bumpIf("</")) {
|
2673
2671
|
if (this.isEOF() || !Oe(this.char()))
|
2674
|
-
return this.error(m.INVALID_TAG,
|
2675
|
-
var
|
2676
|
-
return i !==
|
2672
|
+
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
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(">") ? {
|
2677
2675
|
val: {
|
2678
2676
|
type: E.tag,
|
2679
2677
|
value: i,
|
2680
2678
|
children: o,
|
2681
|
-
location:
|
2679
|
+
location: b(n, this.clonePosition())
|
2682
2680
|
},
|
2683
2681
|
err: null
|
2684
|
-
} : this.error(m.INVALID_TAG,
|
2682
|
+
} : this.error(m.INVALID_TAG, b(a, this.clonePosition())));
|
2685
2683
|
} else
|
2686
|
-
return this.error(m.UNCLOSED_TAG,
|
2684
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
2687
2685
|
} else
|
2688
|
-
return this.error(m.INVALID_TAG,
|
2686
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2689
2687
|
}, e.prototype.parseTagName = function() {
|
2690
2688
|
var t = this.offset();
|
2691
2689
|
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
@@ -2710,9 +2708,9 @@ var ln = (
|
|
2710
2708
|
}
|
2711
2709
|
break;
|
2712
2710
|
}
|
2713
|
-
var
|
2711
|
+
var u = b(n, this.clonePosition());
|
2714
2712
|
return {
|
2715
|
-
val: { type: E.literal, value: i, location:
|
2713
|
+
val: { type: E.literal, value: i, location: u },
|
2716
2714
|
err: null
|
2717
2715
|
};
|
2718
2716
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
@@ -2760,14 +2758,14 @@ var ln = (
|
|
2760
2758
|
}, e.prototype.parseArgument = function(t, r) {
|
2761
2759
|
var n = this.clonePosition();
|
2762
2760
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2763
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2761
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
2764
2762
|
if (this.char() === 125)
|
2765
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
2763
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
2766
2764
|
var i = this.parseIdentifierIfPossible().value;
|
2767
2765
|
if (!i)
|
2768
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2766
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2769
2767
|
if (this.bumpSpace(), this.isEOF())
|
2770
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2768
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
2771
2769
|
switch (this.char()) {
|
2772
2770
|
case 125:
|
2773
2771
|
return this.bump(), {
|
@@ -2775,49 +2773,49 @@ var ln = (
|
|
2775
2773
|
type: E.argument,
|
2776
2774
|
// value does not include the opening and closing braces.
|
2777
2775
|
value: i,
|
2778
|
-
location:
|
2776
|
+
location: b(n, this.clonePosition())
|
2779
2777
|
},
|
2780
2778
|
err: null
|
2781
2779
|
};
|
2782
2780
|
case 44:
|
2783
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2781
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2784
2782
|
default:
|
2785
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2783
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2786
2784
|
}
|
2787
2785
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2788
2786
|
var t = this.clonePosition(), r = this.offset(), n = Pe(this.message, r), i = r + n.length;
|
2789
2787
|
this.bumpTo(i);
|
2790
|
-
var s = this.clonePosition(), o =
|
2788
|
+
var s = this.clonePosition(), o = b(t, s);
|
2791
2789
|
return { value: n, location: o };
|
2792
2790
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2793
|
-
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
2791
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
2794
2792
|
switch (a) {
|
2795
2793
|
case "":
|
2796
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
2794
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(o, u));
|
2797
2795
|
case "number":
|
2798
2796
|
case "date":
|
2799
2797
|
case "time": {
|
2800
2798
|
this.bumpSpace();
|
2801
|
-
var
|
2799
|
+
var h = null;
|
2802
2800
|
if (this.bumpIf(",")) {
|
2803
2801
|
this.bumpSpace();
|
2804
2802
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2805
2803
|
if (c.err)
|
2806
2804
|
return c;
|
2807
|
-
var f =
|
2805
|
+
var f = un(c.val);
|
2808
2806
|
if (f.length === 0)
|
2809
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
2810
|
-
var x =
|
2811
|
-
|
2807
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2808
|
+
var x = b(l, this.clonePosition());
|
2809
|
+
h = { style: f, styleLocation: x };
|
2812
2810
|
}
|
2813
2811
|
var g = this.tryParseArgumentClose(i);
|
2814
2812
|
if (g.err)
|
2815
2813
|
return g;
|
2816
|
-
var y =
|
2817
|
-
if (
|
2818
|
-
var H =
|
2814
|
+
var y = b(i, this.clonePosition());
|
2815
|
+
if (h && Ye(h == null ? void 0 : h.style, "::", 0)) {
|
2816
|
+
var H = hn(h.style.slice(2));
|
2819
2817
|
if (a === "number") {
|
2820
|
-
var c = this.parseNumberSkeletonFromString(H,
|
2818
|
+
var c = this.parseNumberSkeletonFromString(H, h.styleLocation);
|
2821
2819
|
return c.err ? c : {
|
2822
2820
|
val: { type: E.number, value: n, location: y, style: c.val },
|
2823
2821
|
err: null
|
@@ -2830,7 +2828,7 @@ var ln = (
|
|
2830
2828
|
var f = {
|
2831
2829
|
type: j.dateTime,
|
2832
2830
|
pattern: A,
|
2833
|
-
location:
|
2831
|
+
location: h.styleLocation,
|
2834
2832
|
parsedOptions: this.shouldParseSkeletons ? Fr(A) : {}
|
2835
2833
|
}, S = a === "date" ? E.date : E.time;
|
2836
2834
|
return {
|
@@ -2844,7 +2842,7 @@ var ln = (
|
|
2844
2842
|
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
2845
2843
|
value: n,
|
2846
2844
|
location: y,
|
2847
|
-
style: (s =
|
2845
|
+
style: (s = h == null ? void 0 : h.style) !== null && s !== void 0 ? s : null
|
2848
2846
|
},
|
2849
2847
|
err: null
|
2850
2848
|
};
|
@@ -2854,12 +2852,12 @@ var ln = (
|
|
2854
2852
|
case "select": {
|
2855
2853
|
var v = this.clonePosition();
|
2856
2854
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2857
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
2855
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, d({}, v)));
|
2858
2856
|
this.bumpSpace();
|
2859
2857
|
var N = this.parseIdentifierIfPossible(), O = 0;
|
2860
2858
|
if (a !== "select" && N.value === "offset") {
|
2861
2859
|
if (!this.bumpIf(":"))
|
2862
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
2860
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
2863
2861
|
this.bumpSpace();
|
2864
2862
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2865
2863
|
if (c.err)
|
@@ -2872,12 +2870,12 @@ var ln = (
|
|
2872
2870
|
var g = this.tryParseArgumentClose(i);
|
2873
2871
|
if (g.err)
|
2874
2872
|
return g;
|
2875
|
-
var te =
|
2873
|
+
var te = b(i, this.clonePosition());
|
2876
2874
|
return a === "select" ? {
|
2877
2875
|
val: {
|
2878
2876
|
type: E.select,
|
2879
2877
|
value: n,
|
2880
|
-
options:
|
2878
|
+
options: Ke(R.val),
|
2881
2879
|
location: te
|
2882
2880
|
},
|
2883
2881
|
err: null
|
@@ -2885,7 +2883,7 @@ var ln = (
|
|
2885
2883
|
val: {
|
2886
2884
|
type: E.plural,
|
2887
2885
|
value: n,
|
2888
|
-
options:
|
2886
|
+
options: Ke(R.val),
|
2889
2887
|
offset: O,
|
2890
2888
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2891
2889
|
location: te
|
@@ -2894,10 +2892,10 @@ var ln = (
|
|
2894
2892
|
};
|
2895
2893
|
}
|
2896
2894
|
default:
|
2897
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
2895
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(o, u));
|
2898
2896
|
}
|
2899
2897
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2900
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2898
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2901
2899
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2902
2900
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2903
2901
|
var n = this.char();
|
@@ -2906,7 +2904,7 @@ var ln = (
|
|
2906
2904
|
this.bump();
|
2907
2905
|
var i = this.clonePosition();
|
2908
2906
|
if (!this.bumpUntil("'"))
|
2909
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
2907
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
2910
2908
|
this.bump();
|
2911
2909
|
break;
|
2912
2910
|
}
|
@@ -2950,23 +2948,23 @@ var ln = (
|
|
2950
2948
|
err: null
|
2951
2949
|
};
|
2952
2950
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2953
|
-
for (var s, o = !1, a = [],
|
2954
|
-
if (
|
2951
|
+
for (var s, o = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
|
2952
|
+
if (h.length === 0) {
|
2955
2953
|
var c = this.clonePosition();
|
2956
2954
|
if (r !== "select" && this.bumpIf("=")) {
|
2957
2955
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2958
2956
|
if (f.err)
|
2959
2957
|
return f;
|
2960
|
-
l =
|
2958
|
+
l = b(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
2961
2959
|
} else
|
2962
2960
|
break;
|
2963
2961
|
}
|
2964
|
-
if (
|
2962
|
+
if (u.has(h))
|
2965
2963
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2966
|
-
|
2964
|
+
h === "other" && (o = !0), this.bumpSpace();
|
2967
2965
|
var x = this.clonePosition();
|
2968
2966
|
if (!this.bumpIf("{"))
|
2969
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
2967
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
2970
2968
|
var g = this.parseMessage(t + 1, r, n);
|
2971
2969
|
if (g.err)
|
2972
2970
|
return g;
|
@@ -2974,14 +2972,14 @@ var ln = (
|
|
2974
2972
|
if (y.err)
|
2975
2973
|
return y;
|
2976
2974
|
a.push([
|
2977
|
-
|
2975
|
+
h,
|
2978
2976
|
{
|
2979
2977
|
value: g.val,
|
2980
|
-
location:
|
2978
|
+
location: b(x, this.clonePosition())
|
2981
2979
|
}
|
2982
|
-
]),
|
2980
|
+
]), u.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, l = s.location;
|
2983
2981
|
}
|
2984
|
-
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
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 };
|
2985
2983
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
2986
2984
|
var n = 1, i = this.clonePosition();
|
2987
2985
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -2992,8 +2990,8 @@ var ln = (
|
|
2992
2990
|
else
|
2993
2991
|
break;
|
2994
2992
|
}
|
2995
|
-
var
|
2996
|
-
return s ? (o *= n, on(o) ? { val: o, err: null } : this.error(r,
|
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);
|
2997
2995
|
}, e.prototype.offset = function() {
|
2998
2996
|
return this.position.offset;
|
2999
2997
|
}, e.prototype.isEOF = function() {
|
@@ -3008,7 +3006,7 @@ var ln = (
|
|
3008
3006
|
var t = this.position.offset;
|
3009
3007
|
if (t >= this.message.length)
|
3010
3008
|
throw Error("out of bound");
|
3011
|
-
var r =
|
3009
|
+
var r = St(this.message, t);
|
3012
3010
|
if (r === void 0)
|
3013
3011
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3014
3012
|
return r;
|
@@ -3027,7 +3025,7 @@ var ln = (
|
|
3027
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);
|
3028
3026
|
}
|
3029
3027
|
}, e.prototype.bumpIf = function(t) {
|
3030
|
-
if (
|
3028
|
+
if (Ye(this.message, t, this.offset())) {
|
3031
3029
|
for (var r = 0; r < t.length; r++)
|
3032
3030
|
this.bump();
|
3033
3031
|
return !0;
|
@@ -3049,7 +3047,7 @@ var ln = (
|
|
3049
3047
|
break;
|
3050
3048
|
}
|
3051
3049
|
}, e.prototype.bumpSpace = function() {
|
3052
|
-
for (; !this.isEOF() &&
|
3050
|
+
for (; !this.isEOF() && Ot(this.char()); )
|
3053
3051
|
this.bump();
|
3054
3052
|
}, e.prototype.peek = function() {
|
3055
3053
|
if (this.isEOF())
|
@@ -3068,7 +3066,7 @@ function fn(e) {
|
|
3068
3066
|
function cn(e) {
|
3069
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;
|
3070
3068
|
}
|
3071
|
-
function
|
3069
|
+
function Ot(e) {
|
3072
3070
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3073
3071
|
}
|
3074
3072
|
function pn(e) {
|
@@ -3076,15 +3074,15 @@ function pn(e) {
|
|
3076
3074
|
}
|
3077
3075
|
function Ne(e) {
|
3078
3076
|
e.forEach(function(t) {
|
3079
|
-
if (delete t.location,
|
3077
|
+
if (delete t.location, Et(t) || yt(t))
|
3080
3078
|
for (var r in t.options)
|
3081
3079
|
delete t.options[r].location, Ne(t.options[r].value);
|
3082
3080
|
else
|
3083
|
-
dt(t) &&
|
3081
|
+
dt(t) && vt(t.style) || (gt(t) || xt(t)) && Be(t.style) ? delete t.style.location : _t(t) && Ne(t.children);
|
3084
3082
|
});
|
3085
3083
|
}
|
3086
3084
|
function mn(e, t) {
|
3087
|
-
t === void 0 && (t = {}), t =
|
3085
|
+
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3088
3086
|
var r = new ln(e, t).parse();
|
3089
3087
|
if (r.err) {
|
3090
3088
|
var n = SyntaxError(m[r.err.kind]);
|
@@ -3108,7 +3106,7 @@ var fe = (
|
|
3108
3106
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3109
3107
|
}, t;
|
3110
3108
|
}(Error)
|
3111
|
-
),
|
3109
|
+
), tt = (
|
3112
3110
|
/** @class */
|
3113
3111
|
function(e) {
|
3114
3112
|
le(t, e);
|
@@ -3117,7 +3115,7 @@ var fe = (
|
|
3117
3115
|
}
|
3118
3116
|
return t;
|
3119
3117
|
}(fe)
|
3120
|
-
),
|
3118
|
+
), bn = (
|
3121
3119
|
/** @class */
|
3122
3120
|
function(e) {
|
3123
3121
|
le(t, e);
|
@@ -3126,7 +3124,7 @@ var fe = (
|
|
3126
3124
|
}
|
3127
3125
|
return t;
|
3128
3126
|
}(fe)
|
3129
|
-
),
|
3127
|
+
), dn = (
|
3130
3128
|
/** @class */
|
3131
3129
|
function(e) {
|
3132
3130
|
le(t, e);
|
@@ -3149,16 +3147,16 @@ function xn(e) {
|
|
3149
3147
|
return typeof e == "function";
|
3150
3148
|
}
|
3151
3149
|
function se(e, t, r, n, i, s, o) {
|
3152
|
-
if (e.length === 1 &&
|
3150
|
+
if (e.length === 1 && Ze(e[0]))
|
3153
3151
|
return [
|
3154
3152
|
{
|
3155
3153
|
type: _.literal,
|
3156
3154
|
value: e[0].value
|
3157
3155
|
}
|
3158
3156
|
];
|
3159
|
-
for (var a = [],
|
3160
|
-
var l = u
|
3161
|
-
if (
|
3157
|
+
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
3158
|
+
var l = h[u];
|
3159
|
+
if (Ze(l)) {
|
3162
3160
|
a.push({
|
3163
3161
|
type: _.literal,
|
3164
3162
|
value: l.value
|
@@ -3174,7 +3172,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3174
3172
|
}
|
3175
3173
|
var c = l.value;
|
3176
3174
|
if (!(i && c in i))
|
3177
|
-
throw new
|
3175
|
+
throw new dn(c, o);
|
3178
3176
|
var f = i[c];
|
3179
3177
|
if (Ur(l)) {
|
3180
3178
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
@@ -3183,7 +3181,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3183
3181
|
});
|
3184
3182
|
continue;
|
3185
3183
|
}
|
3186
|
-
if (
|
3184
|
+
if (gt(l)) {
|
3187
3185
|
var x = typeof l.style == "string" ? n.date[l.style] : Be(l.style) ? l.style.parsedOptions : void 0;
|
3188
3186
|
a.push({
|
3189
3187
|
type: _.literal,
|
@@ -3191,7 +3189,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3191
3189
|
});
|
3192
3190
|
continue;
|
3193
3191
|
}
|
3194
|
-
if (
|
3192
|
+
if (xt(l)) {
|
3195
3193
|
var x = typeof l.style == "string" ? n.time[l.style] : Be(l.style) ? l.style.parsedOptions : n.time.medium;
|
3196
3194
|
a.push({
|
3197
3195
|
type: _.literal,
|
@@ -3200,17 +3198,17 @@ function se(e, t, r, n, i, s, o) {
|
|
3200
3198
|
continue;
|
3201
3199
|
}
|
3202
3200
|
if (dt(l)) {
|
3203
|
-
var x = typeof l.style == "string" ? n.number[l.style] :
|
3201
|
+
var x = typeof l.style == "string" ? n.number[l.style] : vt(l.style) ? l.style.parsedOptions : void 0;
|
3204
3202
|
x && x.scale && (f = f * (x.scale || 1)), a.push({
|
3205
3203
|
type: _.literal,
|
3206
3204
|
value: r.getNumberFormat(t, x).format(f)
|
3207
3205
|
});
|
3208
3206
|
continue;
|
3209
3207
|
}
|
3210
|
-
if (
|
3208
|
+
if (_t(l)) {
|
3211
3209
|
var g = l.children, y = l.value, H = i[y];
|
3212
3210
|
if (!xn(H))
|
3213
|
-
throw new
|
3211
|
+
throw new bn(y, "function", o);
|
3214
3212
|
var A = se(g, t, r, n, i, s), S = H(A.map(function(O) {
|
3215
3213
|
return O.value;
|
3216
3214
|
}));
|
@@ -3221,14 +3219,14 @@ function se(e, t, r, n, i, s, o) {
|
|
3221
3219
|
};
|
3222
3220
|
}));
|
3223
3221
|
}
|
3224
|
-
if (
|
3222
|
+
if (Et(l)) {
|
3225
3223
|
var v = l.options[f] || l.options.other;
|
3226
3224
|
if (!v)
|
3227
|
-
throw new
|
3225
|
+
throw new tt(l.value, f, Object.keys(l.options), o);
|
3228
3226
|
a.push.apply(a, se(v.value, t, r, n, i));
|
3229
3227
|
continue;
|
3230
3228
|
}
|
3231
|
-
if (
|
3229
|
+
if (yt(l)) {
|
3232
3230
|
var v = l.options["=".concat(f)];
|
3233
3231
|
if (!v) {
|
3234
3232
|
if (!Intl.PluralRules)
|
@@ -3239,7 +3237,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3239
3237
|
v = l.options[N] || l.options.other;
|
3240
3238
|
}
|
3241
3239
|
if (!v)
|
3242
|
-
throw new
|
3240
|
+
throw new tt(l.value, f, Object.keys(l.options), o);
|
3243
3241
|
a.push.apply(a, se(v.value, t, r, n, i, f - (l.offset || 0)));
|
3244
3242
|
continue;
|
3245
3243
|
}
|
@@ -3247,14 +3245,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3247
3245
|
return gn(a);
|
3248
3246
|
}
|
3249
3247
|
function En(e, t) {
|
3250
|
-
return t ?
|
3251
|
-
return r[n] =
|
3248
|
+
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3249
|
+
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3252
3250
|
}, {})) : e;
|
3253
3251
|
}
|
3254
3252
|
function yn(e, t) {
|
3255
3253
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3256
3254
|
return r[n] = En(e[n], t[n]), r;
|
3257
|
-
},
|
3255
|
+
}, d({}, e)) : e;
|
3258
3256
|
}
|
3259
3257
|
function ye(e) {
|
3260
3258
|
return {
|
@@ -3279,7 +3277,7 @@ function _n(e) {
|
|
3279
3277
|
getNumberFormat: ge(function() {
|
3280
3278
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3281
3279
|
r[n] = arguments[n];
|
3282
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3280
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, de([void 0], r, !1)))();
|
3283
3281
|
}, {
|
3284
3282
|
cache: ye(e.number),
|
3285
3283
|
strategy: xe.variadic
|
@@ -3287,7 +3285,7 @@ function _n(e) {
|
|
3287
3285
|
getDateTimeFormat: ge(function() {
|
3288
3286
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3289
3287
|
r[n] = arguments[n];
|
3290
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3288
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, de([void 0], r, !1)))();
|
3291
3289
|
}, {
|
3292
3290
|
cache: ye(e.dateTime),
|
3293
3291
|
strategy: xe.variadic
|
@@ -3295,7 +3293,7 @@ function _n(e) {
|
|
3295
3293
|
getPluralRules: ge(function() {
|
3296
3294
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3297
3295
|
r[n] = arguments[n];
|
3298
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3296
|
+
return new ((t = Intl.PluralRules).bind.apply(t, de([void 0], r, !1)))();
|
3299
3297
|
}, {
|
3300
3298
|
cache: ye(e.pluralRules),
|
3301
3299
|
strategy: xe.variadic
|
@@ -3312,20 +3310,20 @@ var vn = (
|
|
3312
3310
|
number: {},
|
3313
3311
|
dateTime: {},
|
3314
3312
|
pluralRules: {}
|
3315
|
-
}, this.format = function(
|
3316
|
-
var
|
3317
|
-
if (
|
3318
|
-
return
|
3319
|
-
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) {
|
3320
3318
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3321
3319
|
}, []);
|
3322
3320
|
return l.length <= 1 ? l[0] || "" : l;
|
3323
|
-
}, this.formatToParts = function(
|
3324
|
-
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);
|
3325
3323
|
}, this.resolvedOptions = function() {
|
3326
|
-
var
|
3324
|
+
var u;
|
3327
3325
|
return {
|
3328
|
-
locale: ((
|
3326
|
+
locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
3329
3327
|
};
|
3330
3328
|
}, this.getAst = function() {
|
3331
3329
|
return s.ast;
|
@@ -3334,8 +3332,8 @@ var vn = (
|
|
3334
3332
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3335
3333
|
var o = i || {};
|
3336
3334
|
o.formatters;
|
3337
|
-
var a =
|
3338
|
-
this.ast = e.__parse(t,
|
3335
|
+
var a = Ir(o, ["formatters"]);
|
3336
|
+
this.ast = e.__parse(t, d(d({}, a), { locale: this.resolvedLocale }));
|
3339
3337
|
} else
|
3340
3338
|
this.ast = t;
|
3341
3339
|
if (!Array.isArray(this.ast))
|
@@ -3435,7 +3433,7 @@ function Hn(e, t) {
|
|
3435
3433
|
n = void 0;
|
3436
3434
|
return n;
|
3437
3435
|
}
|
3438
|
-
const I = {}, Tn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r),
|
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) => {
|
3439
3437
|
if (t == null)
|
3440
3438
|
return;
|
3441
3439
|
if (t in I && e in I[t])
|
@@ -3447,16 +3445,16 @@ const I = {}, Tn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][
|
|
3447
3445
|
return Tn(e, t, s);
|
3448
3446
|
}
|
3449
3447
|
};
|
3450
|
-
let
|
3451
|
-
const z =
|
3448
|
+
let Ue;
|
3449
|
+
const z = ue({});
|
3452
3450
|
function Bn(e) {
|
3453
|
-
return
|
3451
|
+
return Ue[e] || null;
|
3454
3452
|
}
|
3455
|
-
function
|
3456
|
-
return e in
|
3453
|
+
function It(e) {
|
3454
|
+
return e in Ue;
|
3457
3455
|
}
|
3458
3456
|
function An(e, t) {
|
3459
|
-
if (!
|
3457
|
+
if (!It(e))
|
3460
3458
|
return null;
|
3461
3459
|
const r = Bn(e);
|
3462
3460
|
return Hn(r, t);
|
@@ -3467,28 +3465,28 @@ function Sn(e) {
|
|
3467
3465
|
const t = ce(e);
|
3468
3466
|
for (let r = 0; r < t.length; r++) {
|
3469
3467
|
const n = t[r];
|
3470
|
-
if (
|
3468
|
+
if (It(n))
|
3471
3469
|
return n;
|
3472
3470
|
}
|
3473
3471
|
}
|
3474
|
-
function
|
3475
|
-
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));
|
3476
3474
|
}
|
3477
3475
|
X(
|
3478
3476
|
[z],
|
3479
3477
|
([e]) => Object.keys(e)
|
3480
3478
|
);
|
3481
|
-
z.subscribe((e) =>
|
3479
|
+
z.subscribe((e) => Ue = e);
|
3482
3480
|
const oe = {};
|
3483
3481
|
function Pn(e, t) {
|
3484
3482
|
oe[e].delete(t), oe[e].size === 0 && delete oe[e];
|
3485
3483
|
}
|
3486
|
-
function
|
3484
|
+
function Lt(e) {
|
3487
3485
|
return oe[e];
|
3488
3486
|
}
|
3489
3487
|
function On(e) {
|
3490
3488
|
return ce(e).map((t) => {
|
3491
|
-
const r =
|
3489
|
+
const r = Lt(t);
|
3492
3490
|
return [t, r ? [...r] : []];
|
3493
3491
|
}).filter(([, t]) => t.length > 0);
|
3494
3492
|
}
|
@@ -3496,17 +3494,17 @@ function Ie(e) {
|
|
3496
3494
|
return e == null ? !1 : ce(e).some(
|
3497
3495
|
(t) => {
|
3498
3496
|
var r;
|
3499
|
-
return (r =
|
3497
|
+
return (r = Lt(t)) == null ? void 0 : r.size;
|
3500
3498
|
}
|
3501
3499
|
);
|
3502
3500
|
}
|
3503
3501
|
function Nn(e, t) {
|
3504
3502
|
return Promise.all(
|
3505
3503
|
t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
|
3506
|
-
).then((n) =>
|
3504
|
+
).then((n) => wt(e, ...n));
|
3507
3505
|
}
|
3508
3506
|
const Z = {};
|
3509
|
-
function
|
3507
|
+
function Ct(e) {
|
3510
3508
|
if (!Ie(e))
|
3511
3509
|
return e in Z ? Z[e] : Promise.resolve();
|
3512
3510
|
const t = On(e);
|
@@ -3516,7 +3514,7 @@ function Lt(e) {
|
|
3516
3514
|
)
|
3517
3515
|
).then(() => {
|
3518
3516
|
if (Ie(e))
|
3519
|
-
return
|
3517
|
+
return Ct(e);
|
3520
3518
|
delete Z[e];
|
3521
3519
|
}), Z[e];
|
3522
3520
|
}
|
@@ -3560,23 +3558,23 @@ const In = {
|
|
3560
3558
|
function k() {
|
3561
3559
|
return Ln;
|
3562
3560
|
}
|
3563
|
-
const _e =
|
3564
|
-
var Cn = Object.defineProperty, Mn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors,
|
3565
|
-
for (var r in t)
|
3566
|
-
$n.call(t, r) &&
|
3567
|
-
if (
|
3568
|
-
for (var r of
|
3569
|
-
Un.call(t, r) &&
|
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) => {
|
3563
|
+
for (var r in t || (t = {}))
|
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]);
|
3570
3568
|
return e;
|
3571
3569
|
}, Dn = (e, t) => Mn(e, Rn(t));
|
3572
3570
|
let we;
|
3573
|
-
const ae =
|
3574
|
-
function
|
3571
|
+
const ae = ue(null);
|
3572
|
+
function it(e) {
|
3575
3573
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3576
3574
|
}
|
3577
3575
|
function ce(e, t = k().fallbackLocale) {
|
3578
|
-
const r =
|
3579
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3576
|
+
const r = it(e);
|
3577
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...it(t)])] : r;
|
3580
3578
|
}
|
3581
3579
|
function M() {
|
3582
3580
|
return we != null ? we : void 0;
|
@@ -3591,7 +3589,7 @@ const Fn = (e) => {
|
|
3591
3589
|
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
3592
3590
|
() => _e.set(!0),
|
3593
3591
|
t
|
3594
|
-
) : _e.set(!0),
|
3592
|
+
) : _e.set(!0), Ct(e).then(() => {
|
3595
3593
|
ae.set(e);
|
3596
3594
|
}).finally(() => {
|
3597
3595
|
clearTimeout(r), _e.set(!1);
|
@@ -3607,20 +3605,20 @@ const Fn = (e) => {
|
|
3607
3605
|
return i in t ? t[i] : t[i] = e(n);
|
3608
3606
|
};
|
3609
3607
|
};
|
3610
|
-
var jn = Object.defineProperty,
|
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) => {
|
3611
3609
|
for (var r in t || (t = {}))
|
3612
|
-
|
3613
|
-
if (
|
3614
|
-
for (var r of
|
3615
|
-
|
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]);
|
3616
3614
|
return e;
|
3617
3615
|
}, W = (e, t) => {
|
3618
3616
|
var r = {};
|
3619
3617
|
for (var n in e)
|
3620
|
-
|
3621
|
-
if (e != null &&
|
3622
|
-
for (var n of
|
3623
|
-
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]);
|
3624
3622
|
return r;
|
3625
3623
|
};
|
3626
3624
|
const K = (e, t) => {
|
@@ -3657,21 +3655,21 @@ const K = (e, t) => {
|
|
3657
3655
|
} = t, n = W(t, [
|
3658
3656
|
"locale"
|
3659
3657
|
]);
|
3660
|
-
return Vn(
|
3658
|
+
return Vn(Ge({ locale: r }, n));
|
3661
3659
|
}, Wn = (e = {}) => {
|
3662
3660
|
var t = e, {
|
3663
3661
|
locale: r = M()
|
3664
3662
|
} = t, n = W(t, [
|
3665
3663
|
"locale"
|
3666
3664
|
]);
|
3667
|
-
return kn(
|
3665
|
+
return kn(Ge({ locale: r }, n));
|
3668
3666
|
}, Zn = (e = {}) => {
|
3669
3667
|
var t = e, {
|
3670
3668
|
locale: r = M()
|
3671
3669
|
} = t, n = W(t, [
|
3672
3670
|
"locale"
|
3673
3671
|
]);
|
3674
|
-
return Xn(
|
3672
|
+
return Xn(Ge({ locale: r }, n));
|
3675
3673
|
}, Qn = pe(
|
3676
3674
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3677
3675
|
(e, t = M()) => new vn(e, t, k().formats, {
|
@@ -3683,16 +3681,16 @@ const K = (e, t) => {
|
|
3683
3681
|
typeof e == "object" && (o = e, e = o.id);
|
3684
3682
|
const {
|
3685
3683
|
values: a,
|
3686
|
-
locale:
|
3687
|
-
default:
|
3684
|
+
locale: u = M(),
|
3685
|
+
default: h
|
3688
3686
|
} = o;
|
3689
|
-
if (
|
3687
|
+
if (u == null)
|
3690
3688
|
throw new Error(
|
3691
3689
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3692
3690
|
);
|
3693
|
-
let l =
|
3691
|
+
let l = Nt(e, u);
|
3694
3692
|
if (!l)
|
3695
|
-
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;
|
3696
3694
|
else if (typeof l != "string")
|
3697
3695
|
return console.warn(
|
3698
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.`
|
@@ -3701,7 +3699,7 @@ const K = (e, t) => {
|
|
3701
3699
|
return l;
|
3702
3700
|
let c = l;
|
3703
3701
|
try {
|
3704
|
-
c = Qn(l,
|
3702
|
+
c = Qn(l, u).format(a);
|
3705
3703
|
} catch (f) {
|
3706
3704
|
f instanceof Error && console.warn(
|
3707
3705
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3709,7 +3707,7 @@ const K = (e, t) => {
|
|
3709
3707
|
);
|
3710
3708
|
}
|
3711
3709
|
return c;
|
3712
|
-
}, 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()) =>
|
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);
|
3713
3711
|
X([w], () => qn);
|
3714
3712
|
X([w], () => Yn);
|
3715
3713
|
X([w], () => Kn);
|
@@ -3719,13 +3717,13 @@ function ri({ withLocale: e, translations: t }) {
|
|
3719
3717
|
r == null && (z.set(t), w.set(e));
|
3720
3718
|
});
|
3721
3719
|
}
|
3722
|
-
function
|
3723
|
-
|
3720
|
+
function ot(e, t) {
|
3721
|
+
wt(e, t);
|
3724
3722
|
}
|
3725
3723
|
function ni(e) {
|
3726
3724
|
w.set(e);
|
3727
3725
|
}
|
3728
|
-
const
|
3726
|
+
const at = {
|
3729
3727
|
en: {
|
3730
3728
|
bets: "bets"
|
3731
3729
|
},
|
@@ -3752,24 +3750,24 @@ const ot = {
|
|
3752
3750
|
}
|
3753
3751
|
};
|
3754
3752
|
function ii(e) {
|
3755
|
-
|
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}');
|
3756
3754
|
}
|
3757
3755
|
function si(e) {
|
3758
3756
|
let t, r, n, i, s;
|
3759
3757
|
return {
|
3760
3758
|
c() {
|
3761
|
-
t = Q("div"), r = Q("div"), n = Q("span"), i =
|
3759
|
+
t = Q("div"), r = Q("div"), n = Q("span"), i = qt(
|
3762
3760
|
/*progressText*/
|
3763
3761
|
e[3]
|
3764
3762
|
), C(n, "part", "progressText"), C(r, "class", s = "stepBar " + /*curTatus*/
|
3765
3763
|
e[4]), C(r, "part", "stepBar"), C(t, "class", "general-icon-progress-bar"), C(t, "part", "totalBar");
|
3766
3764
|
},
|
3767
3765
|
m(o, a) {
|
3768
|
-
|
3766
|
+
ft(o, t, a), ne(t, r), ne(r, n), ne(n, i), e[13](n), e[14](r), e[15](t);
|
3769
3767
|
},
|
3770
3768
|
p(o, [a]) {
|
3771
3769
|
a & /*progressText*/
|
3772
|
-
8 &&
|
3770
|
+
8 && Kt(
|
3773
3771
|
i,
|
3774
3772
|
/*progressText*/
|
3775
3773
|
o[3]
|
@@ -3786,20 +3784,20 @@ function si(e) {
|
|
3786
3784
|
}
|
3787
3785
|
function oi(e, t, r) {
|
3788
3786
|
let n;
|
3789
|
-
|
3790
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status:
|
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";
|
3791
3789
|
ri({ withLocale: "en", translations: {} });
|
3792
3790
|
const O = () => {
|
3793
|
-
fetch(
|
3794
|
-
Object.keys(L).forEach((
|
3795
|
-
|
3791
|
+
fetch(h).then((L) => L.json()).then((L) => {
|
3792
|
+
Object.keys(L).forEach((De) => {
|
3793
|
+
ot(De, L[De]);
|
3796
3794
|
});
|
3797
3795
|
}).catch((L) => {
|
3798
3796
|
console.log(L);
|
3799
3797
|
});
|
3800
3798
|
};
|
3801
|
-
Object.keys(
|
3802
|
-
|
3799
|
+
Object.keys(at).forEach((p) => {
|
3800
|
+
ot(p, at[p]);
|
3803
3801
|
});
|
3804
3802
|
const R = () => {
|
3805
3803
|
ni(a);
|
@@ -3811,34 +3809,34 @@ function oi(e, t, r) {
|
|
3811
3809
|
},
|
3812
3810
|
y ? 573 : 0
|
3813
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);
|
3814
|
-
},
|
3815
|
-
r(4, N =
|
3812
|
+
}, $t = () => {
|
3813
|
+
r(4, N = u == "active" ? "" : "inactive");
|
3816
3814
|
};
|
3817
|
-
function
|
3815
|
+
function Ut(p) {
|
3818
3816
|
q[p ? "unshift" : "push"](() => {
|
3819
3817
|
x = p, r(1, x);
|
3820
3818
|
});
|
3821
3819
|
}
|
3822
|
-
function
|
3820
|
+
function Gt(p) {
|
3823
3821
|
q[p ? "unshift" : "push"](() => {
|
3824
3822
|
g = p, r(2, g);
|
3825
3823
|
});
|
3826
3824
|
}
|
3827
|
-
function
|
3825
|
+
function Dt(p) {
|
3828
3826
|
q[p ? "unshift" : "push"](() => {
|
3829
3827
|
f = p, r(0, f);
|
3830
3828
|
});
|
3831
3829
|
}
|
3832
3830
|
return e.$$set = (p) => {
|
3833
|
-
"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);
|
3834
3832
|
}, e.$$.update = () => {
|
3835
3833
|
e.$$.dirty & /*triggerreset, total*/
|
3836
3834
|
4160 && c && s && setTimeout(() => {
|
3837
3835
|
te();
|
3838
3836
|
}), e.$$.dirty & /*lang*/
|
3839
3837
|
256 && a && R(), e.$$.dirty & /*status*/
|
3840
|
-
512 &&
|
3841
|
-
1024 &&
|
3838
|
+
512 && u && $t(), e.$$.dirty & /*translationurl*/
|
3839
|
+
1024 && h && O();
|
3842
3840
|
}, [
|
3843
3841
|
f,
|
3844
3842
|
x,
|
@@ -3849,18 +3847,18 @@ function oi(e, t, r) {
|
|
3849
3847
|
s,
|
3850
3848
|
o,
|
3851
3849
|
a,
|
3852
|
-
h,
|
3853
3850
|
u,
|
3851
|
+
h,
|
3854
3852
|
l,
|
3855
3853
|
c,
|
3856
|
-
$t,
|
3857
3854
|
Ut,
|
3858
|
-
Gt
|
3855
|
+
Gt,
|
3856
|
+
Dt
|
3859
3857
|
];
|
3860
3858
|
}
|
3861
|
-
class ai extends
|
3859
|
+
class ai extends cr {
|
3862
3860
|
constructor(t) {
|
3863
|
-
super(),
|
3861
|
+
super(), lr(
|
3864
3862
|
this,
|
3865
3863
|
t,
|
3866
3864
|
oi,
|
@@ -3928,7 +3926,7 @@ class ai extends fr {
|
|
3928
3926
|
this.$$set({ triggerreset: t }), P();
|
3929
3927
|
}
|
3930
3928
|
}
|
3931
|
-
|
3929
|
+
fr(ai, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3932
3930
|
export {
|
3933
3931
|
ai as default
|
3934
3932
|
};
|