@everymatrix/general-icon-progress-bar 1.65.1 → 1.65.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralIconProgressBar-P5rVTJOT.js → GeneralIconProgressBar-B2l5IJIC.js} +659 -661
- package/components/{GeneralIconProgressBar-D9Uqk4jK.js → GeneralIconProgressBar-BQOld2VG.js} +660 -662
- package/components/GeneralIconProgressBar-j-fA-plB.cjs +16 -0
- 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-BtryxH6m.cjs +0 -3
package/components/{GeneralIconProgressBar-P5rVTJOT.js → GeneralIconProgressBar-B2l5IJIC.js}
RENAMED
@@ -1,17 +1,17 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var
|
1
|
+
var Dt = Object.defineProperty, Ft = Object.defineProperties;
|
2
|
+
var jt = Object.getOwnPropertyDescriptors;
|
3
|
+
var De = Object.getOwnPropertySymbols;
|
4
|
+
var Vt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable;
|
5
|
+
var me = (e, t, r) => t in e ? Dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fe = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
Vt.call(t, r) && me(e, r, t[r]);
|
8
|
+
if (De)
|
9
|
+
for (var r of De(t))
|
10
|
+
kt.call(t, r) && me(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
13
|
-
var T = (e, t, r) => (
|
14
|
-
var
|
12
|
+
}, je = (e, t) => Ft(e, jt(t));
|
13
|
+
var T = (e, t, r) => (me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
|
+
var Ve = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var s = (h) => {
|
16
16
|
try {
|
17
17
|
a(r.next(h));
|
@@ -29,25 +29,25 @@ var ke = (e, t, r) => new Promise((n, i) => {
|
|
29
29
|
});
|
30
30
|
function B() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function at(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function ke() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
|
-
function
|
39
|
-
e.forEach(
|
38
|
+
function ee(e) {
|
39
|
+
e.forEach(at);
|
40
40
|
}
|
41
|
-
function
|
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 Xt(e) {
|
48
48
|
return Object.keys(e).length === 0;
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function ht(e, ...t) {
|
51
51
|
if (e == null) {
|
52
52
|
for (const n of t)
|
53
53
|
n(void 0);
|
@@ -56,20 +56,20 @@ function lt(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 zt(e, t, r) {
|
60
|
+
e.$$.on_destroy.push(ht(t, r));
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function ne(e, t) {
|
63
63
|
e.appendChild(t);
|
64
64
|
}
|
65
|
-
function
|
66
|
-
const n =
|
65
|
+
function Wt(e, t, r) {
|
66
|
+
const n = Zt(e);
|
67
67
|
if (!n.getElementById(t)) {
|
68
|
-
const i =
|
69
|
-
i.id = t, i.textContent = r,
|
68
|
+
const i = Q("style");
|
69
|
+
i.id = t, i.textContent = r, Qt(n, i);
|
70
70
|
}
|
71
71
|
}
|
72
|
-
function
|
72
|
+
function Zt(e) {
|
73
73
|
if (!e)
|
74
74
|
return document;
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -79,36 +79,36 @@ function Qt(e) {
|
|
79
79
|
t
|
80
80
|
) : e.ownerDocument;
|
81
81
|
}
|
82
|
-
function
|
83
|
-
return
|
82
|
+
function Qt(e, t) {
|
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 lt(e, t, r) {
|
90
90
|
e.insertBefore(t, r || null);
|
91
91
|
}
|
92
|
-
function
|
92
|
+
function Ce(e) {
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function Q(e) {
|
96
96
|
return document.createElement(e);
|
97
97
|
}
|
98
|
-
function
|
98
|
+
function Jt(e) {
|
99
99
|
return document.createTextNode(e);
|
100
100
|
}
|
101
|
-
function
|
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 qt(e) {
|
105
105
|
return Array.from(e.childNodes);
|
106
106
|
}
|
107
|
-
function
|
107
|
+
function Yt(e, t) {
|
108
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
109
109
|
t);
|
110
110
|
}
|
111
|
-
function
|
111
|
+
function Kt(e) {
|
112
112
|
const t = {};
|
113
113
|
return e.childNodes.forEach(
|
114
114
|
/** @param {Element} node */
|
@@ -117,79 +117,79 @@ function er(e) {
|
|
117
117
|
}
|
118
118
|
), t;
|
119
119
|
}
|
120
|
-
let
|
121
|
-
function
|
122
|
-
|
120
|
+
let Me;
|
121
|
+
function J(e) {
|
122
|
+
Me = e;
|
123
123
|
}
|
124
|
-
const
|
125
|
-
let
|
126
|
-
const
|
127
|
-
let
|
128
|
-
function
|
129
|
-
|
124
|
+
const G = [], q = [];
|
125
|
+
let D = [];
|
126
|
+
const Xe = [], er = /* @__PURE__ */ Promise.resolve();
|
127
|
+
let ve = !1;
|
128
|
+
function tr() {
|
129
|
+
ve || (ve = !0, er.then(P));
|
130
130
|
}
|
131
|
-
function
|
132
|
-
|
131
|
+
function He(e) {
|
132
|
+
D.push(e);
|
133
133
|
}
|
134
|
-
const
|
135
|
-
let
|
134
|
+
const de = /* @__PURE__ */ new Set();
|
135
|
+
let $ = 0;
|
136
136
|
function P() {
|
137
|
-
if (
|
137
|
+
if ($ !== 0)
|
138
138
|
return;
|
139
|
-
const e =
|
139
|
+
const e = Me;
|
140
140
|
do {
|
141
141
|
try {
|
142
|
-
for (;
|
143
|
-
const t =
|
144
|
-
|
142
|
+
for (; $ < G.length; ) {
|
143
|
+
const t = G[$];
|
144
|
+
$++, J(t), rr(t.$$);
|
145
145
|
}
|
146
146
|
} catch (t) {
|
147
|
-
throw
|
147
|
+
throw G.length = 0, $ = 0, t;
|
148
148
|
}
|
149
|
-
for (
|
150
|
-
|
151
|
-
for (let t = 0; t <
|
152
|
-
const r =
|
153
|
-
|
149
|
+
for (J(null), G.length = 0, $ = 0; q.length; )
|
150
|
+
q.pop()();
|
151
|
+
for (let t = 0; t < D.length; t += 1) {
|
152
|
+
const r = D[t];
|
153
|
+
de.has(r) || (de.add(r), r());
|
154
154
|
}
|
155
|
-
|
156
|
-
} while (
|
157
|
-
for (;
|
158
|
-
|
159
|
-
|
155
|
+
D.length = 0;
|
156
|
+
} while (G.length);
|
157
|
+
for (; Xe.length; )
|
158
|
+
Xe.pop()();
|
159
|
+
ve = !1, de.clear(), J(e);
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function rr(e) {
|
162
162
|
if (e.fragment !== null) {
|
163
|
-
e.update(),
|
163
|
+
e.update(), ee(e.before_update);
|
164
164
|
const t = e.dirty;
|
165
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
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 nr(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 ir = /* @__PURE__ */ new Set();
|
173
|
+
function sr(e, t) {
|
174
|
+
e && e.i && (ir.delete(e), e.i(t));
|
175
175
|
}
|
176
|
-
function
|
176
|
+
function or(e, t, r) {
|
177
177
|
const { fragment: n, after_update: i } = e.$$;
|
178
|
-
n && n.m(t, r),
|
179
|
-
const s = e.$$.on_mount.map(
|
180
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
181
|
-
}), i.forEach(
|
178
|
+
n && n.m(t, r), He(() => {
|
179
|
+
const s = e.$$.on_mount.map(at).filter(Le);
|
180
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
181
|
+
}), i.forEach(He);
|
182
182
|
}
|
183
|
-
function
|
183
|
+
function ar(e, t) {
|
184
184
|
const r = e.$$;
|
185
|
-
r.fragment !== null && (
|
185
|
+
r.fragment !== null && (nr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
186
186
|
}
|
187
|
-
function
|
188
|
-
e.$$.dirty[0] === -1 && (
|
187
|
+
function ur(e, t) {
|
188
|
+
e.$$.dirty[0] === -1 && (G.push(e), tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
189
189
|
}
|
190
|
-
function
|
191
|
-
const h =
|
192
|
-
|
190
|
+
function hr(e, t, r, n, i, s, o = null, a = [-1]) {
|
191
|
+
const h = Me;
|
192
|
+
J(e);
|
193
193
|
const u = e.$$ = {
|
194
194
|
fragment: null,
|
195
195
|
ctx: [],
|
@@ -197,7 +197,7 @@ function lr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
197
197
|
props: s,
|
198
198
|
update: B,
|
199
199
|
not_equal: i,
|
200
|
-
bound:
|
200
|
+
bound: ke(),
|
201
201
|
// lifecycle
|
202
202
|
on_mount: [],
|
203
203
|
on_destroy: [],
|
@@ -206,28 +206,28 @@ function lr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
206
206
|
after_update: [],
|
207
207
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
208
208
|
// everything else
|
209
|
-
callbacks:
|
209
|
+
callbacks: ke(),
|
210
210
|
dirty: a,
|
211
211
|
skip_bound: !1,
|
212
212
|
root: t.target || h.$$.root
|
213
213
|
};
|
214
214
|
o && o(u.root);
|
215
215
|
let l = !1;
|
216
|
-
if (u.ctx = r
|
217
|
-
const
|
218
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
219
|
-
})
|
216
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...x) => {
|
217
|
+
const g = x.length ? x[0] : f;
|
218
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), l && ur(e, c)), f;
|
219
|
+
}), u.update(), l = !0, ee(u.before_update), u.fragment = n(u.ctx), t.target) {
|
220
220
|
if (t.hydrate) {
|
221
|
-
const c =
|
222
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
221
|
+
const c = qt(t.target);
|
222
|
+
u.fragment && u.fragment.l(c), c.forEach(Ce);
|
223
223
|
} else
|
224
224
|
u.fragment && u.fragment.c();
|
225
|
-
t.intro &&
|
225
|
+
t.intro && sr(e.$$.fragment), or(e, t.target, t.anchor), P();
|
226
226
|
}
|
227
|
-
|
227
|
+
J(h);
|
228
228
|
}
|
229
|
-
let
|
230
|
-
typeof HTMLElement == "function" && (
|
229
|
+
let ft;
|
230
|
+
typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
231
231
|
constructor(t, r, n) {
|
232
232
|
super();
|
233
233
|
/** The Svelte component constructor */
|
@@ -264,42 +264,42 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
264
264
|
}
|
265
265
|
}
|
266
266
|
connectedCallback() {
|
267
|
-
return
|
267
|
+
return Ve(this, null, function* () {
|
268
268
|
if (this.$$cn = !0, !this.$$c) {
|
269
269
|
let t = function(s) {
|
270
270
|
return () => {
|
271
271
|
let o;
|
272
272
|
return {
|
273
273
|
c: function() {
|
274
|
-
o =
|
274
|
+
o = Q("slot"), s !== "default" && C(o, "name", s);
|
275
275
|
},
|
276
276
|
/**
|
277
277
|
* @param {HTMLElement} target
|
278
278
|
* @param {HTMLElement} [anchor]
|
279
279
|
*/
|
280
280
|
m: function(u, l) {
|
281
|
-
|
281
|
+
lt(u, o, l);
|
282
282
|
},
|
283
283
|
d: function(u) {
|
284
|
-
u &&
|
284
|
+
u && 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 = Kt(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) {
|
295
295
|
const o = this.$$g_p(s.name);
|
296
|
-
o in this.$$d || (this.$$d[o] =
|
296
|
+
o in this.$$d || (this.$$d[o] = ie(o, s.value, this.$$p_d, "toProp"));
|
297
297
|
}
|
298
298
|
for (const s in this.$$p_d)
|
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:
|
302
|
+
props: je(Fe({}, this.$$d), {
|
303
303
|
$$slots: r,
|
304
304
|
$$scope: {
|
305
305
|
ctx: []
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
310
310
|
this.$$r = !0;
|
311
311
|
for (const s in this.$$p_d)
|
312
312
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
313
|
-
const o =
|
313
|
+
const o = ie(
|
314
314
|
s,
|
315
315
|
this.$$d[s],
|
316
316
|
this.$$p_d,
|
@@ -334,7 +334,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
334
334
|
// and setting attributes through setAttribute etc, this is helpful
|
335
335
|
attributeChangedCallback(t, r, n) {
|
336
336
|
var i;
|
337
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
337
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ie(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
338
338
|
}
|
339
339
|
disconnectedCallback() {
|
340
340
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -347,7 +347,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
347
347
|
) || t;
|
348
348
|
}
|
349
349
|
});
|
350
|
-
function
|
350
|
+
function ie(e, t, r, n) {
|
351
351
|
var s;
|
352
352
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
353
353
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
@@ -377,8 +377,8 @@ function se(e, t, r, n) {
|
|
377
377
|
return t;
|
378
378
|
}
|
379
379
|
}
|
380
|
-
function
|
381
|
-
let o = class extends
|
380
|
+
function lr(e, t, r, n, i, s) {
|
381
|
+
let o = class extends ft {
|
382
382
|
constructor() {
|
383
383
|
super(e, r, i), this.$$p_d = t;
|
384
384
|
}
|
@@ -395,7 +395,7 @@ function fr(e, t, r, n, i, s) {
|
|
395
395
|
},
|
396
396
|
set(h) {
|
397
397
|
var u;
|
398
|
-
h =
|
398
|
+
h = ie(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
399
399
|
}
|
400
400
|
});
|
401
401
|
}), n.forEach((a) => {
|
@@ -408,7 +408,7 @@ function fr(e, t, r, n, i, s) {
|
|
408
408
|
}), e.element = /** @type {any} */
|
409
409
|
o, o;
|
410
410
|
}
|
411
|
-
class
|
411
|
+
class fr {
|
412
412
|
constructor() {
|
413
413
|
/**
|
414
414
|
* ### PRIVATE API
|
@@ -429,7 +429,7 @@ class cr {
|
|
429
429
|
}
|
430
430
|
/** @returns {void} */
|
431
431
|
$destroy() {
|
432
|
-
|
432
|
+
ar(this, 1), this.$destroy = B;
|
433
433
|
}
|
434
434
|
/**
|
435
435
|
* @template {Extract<keyof Events, string>} K
|
@@ -438,7 +438,7 @@ class cr {
|
|
438
438
|
* @returns {() => void}
|
439
439
|
*/
|
440
440
|
$on(t, r) {
|
441
|
-
if (!
|
441
|
+
if (!Le(r))
|
442
442
|
return B;
|
443
443
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
444
444
|
return n.push(r), () => {
|
@@ -451,29 +451,29 @@ class cr {
|
|
451
451
|
* @returns {void}
|
452
452
|
*/
|
453
453
|
$set(t) {
|
454
|
-
this.$$set && !
|
454
|
+
this.$$set && !Xt(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(
|
459
|
-
const
|
460
|
-
function
|
457
|
+
const cr = "4";
|
458
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
|
459
|
+
const U = [];
|
460
|
+
function pr(e, t) {
|
461
461
|
return {
|
462
|
-
subscribe:
|
462
|
+
subscribe: he(e, t).subscribe
|
463
463
|
};
|
464
464
|
}
|
465
|
-
function
|
465
|
+
function he(e, t = B) {
|
466
466
|
let r;
|
467
467
|
const n = /* @__PURE__ */ new Set();
|
468
468
|
function i(a) {
|
469
|
-
if (
|
470
|
-
const h = !
|
469
|
+
if (ut(e, a) && (e = a, r)) {
|
470
|
+
const h = !U.length;
|
471
471
|
for (const u of n)
|
472
|
-
u[1](),
|
472
|
+
u[1](), U.push(u, e);
|
473
473
|
if (h) {
|
474
|
-
for (let u = 0; u <
|
475
|
-
|
476
|
-
|
474
|
+
for (let u = 0; u < U.length; u += 2)
|
475
|
+
U[u][0](U[u + 1]);
|
476
|
+
U.length = 0;
|
477
477
|
}
|
478
478
|
}
|
479
479
|
}
|
@@ -488,12 +488,12 @@ function fe(e, t = B) {
|
|
488
488
|
}
|
489
489
|
return { set: i, update: s, subscribe: o };
|
490
490
|
}
|
491
|
-
function
|
491
|
+
function X(e, t, r) {
|
492
492
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
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
|
496
|
+
return pr(r, (o, a) => {
|
497
497
|
let h = !1;
|
498
498
|
const u = [];
|
499
499
|
let l = 0, c = B;
|
@@ -501,11 +501,11 @@ function z(e, t, r) {
|
|
501
501
|
if (l)
|
502
502
|
return;
|
503
503
|
c();
|
504
|
-
const
|
505
|
-
s ? o(
|
506
|
-
},
|
507
|
-
(
|
508
|
-
|
504
|
+
const g = t(n ? u[0] : u, o, a);
|
505
|
+
s ? o(g) : c = Le(g) ? g : B;
|
506
|
+
}, x = i.map(
|
507
|
+
(g, y) => ht(
|
508
|
+
g,
|
509
509
|
(H) => {
|
510
510
|
u[y] = H, l &= ~(1 << y), h && f();
|
511
511
|
},
|
@@ -515,112 +515,126 @@ function z(e, t, r) {
|
|
515
515
|
)
|
516
516
|
);
|
517
517
|
return h = !0, f(), function() {
|
518
|
-
|
518
|
+
ee(x), c(), h = !1;
|
519
519
|
};
|
520
520
|
});
|
521
521
|
}
|
522
|
-
function
|
523
|
-
return e
|
522
|
+
function mr(e) {
|
523
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
524
524
|
}
|
525
525
|
var dr = function(t) {
|
526
|
-
return
|
526
|
+
return br(t) && !gr(t);
|
527
527
|
};
|
528
|
-
function
|
528
|
+
function br(e) {
|
529
529
|
return !!e && typeof e == "object";
|
530
530
|
}
|
531
|
-
function
|
531
|
+
function gr(e) {
|
532
532
|
var t = Object.prototype.toString.call(e);
|
533
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
533
|
+
return t === "[object RegExp]" || t === "[object Date]" || yr(e);
|
534
534
|
}
|
535
|
-
var
|
536
|
-
function
|
537
|
-
return e.$$typeof ===
|
535
|
+
var xr = typeof Symbol == "function" && Symbol.for, Er = xr ? Symbol.for("react.element") : 60103;
|
536
|
+
function yr(e) {
|
537
|
+
return e.$$typeof === Er;
|
538
538
|
}
|
539
|
-
function
|
539
|
+
function _r(e) {
|
540
540
|
return Array.isArray(e) ? [] : {};
|
541
541
|
}
|
542
|
-
function
|
543
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
542
|
+
function Y(e, t) {
|
543
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(_r(e), e, t) : e;
|
544
544
|
}
|
545
|
-
function
|
545
|
+
function vr(e, t, r) {
|
546
546
|
return e.concat(t).map(function(n) {
|
547
|
-
return
|
547
|
+
return Y(n, r);
|
548
548
|
});
|
549
549
|
}
|
550
|
-
function
|
550
|
+
function Hr(e, t) {
|
551
551
|
if (!t.customMerge)
|
552
|
-
return
|
552
|
+
return F;
|
553
553
|
var r = t.customMerge(e);
|
554
|
-
return typeof r == "function" ? r :
|
554
|
+
return typeof r == "function" ? r : F;
|
555
555
|
}
|
556
|
-
function
|
556
|
+
function Tr(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 ze(e) {
|
562
|
+
return Object.keys(e).concat(Tr(e));
|
563
563
|
}
|
564
|
-
function
|
564
|
+
function ct(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 Br(e, t) {
|
572
|
+
return ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
573
573
|
}
|
574
574
|
function Ar(e, t, r) {
|
575
575
|
var n = {};
|
576
|
-
return r.isMergeableObject(e) &&
|
577
|
-
n[i] =
|
578
|
-
}),
|
579
|
-
|
576
|
+
return r.isMergeableObject(e) && ze(e).forEach(function(i) {
|
577
|
+
n[i] = Y(e[i], r);
|
578
|
+
}), ze(t).forEach(function(i) {
|
579
|
+
Br(e, i) || (ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
580
580
|
}), n;
|
581
581
|
}
|
582
|
-
function
|
583
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
582
|
+
function F(e, t, r) {
|
583
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || vr, 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) : Ar(e, t, r) :
|
585
|
+
return s ? n ? r.arrayMerge(e, t, r) : Ar(e, t, r) : Y(t, r);
|
586
586
|
}
|
587
|
-
|
587
|
+
F.all = function(t, r) {
|
588
588
|
if (!Array.isArray(t))
|
589
589
|
throw new Error("first argument should be an array");
|
590
590
|
return t.reduce(function(n, i) {
|
591
|
-
return
|
591
|
+
return F(n, i, r);
|
592
592
|
}, {});
|
593
593
|
};
|
594
|
-
var
|
595
|
-
const
|
596
|
-
|
597
|
-
|
594
|
+
var Sr = F, Pr = Sr;
|
595
|
+
const Or = /* @__PURE__ */ mr(Pr);
|
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
|
+
***************************************************************************** */
|
610
|
+
var Te = function(e, t) {
|
611
|
+
return Te = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
598
612
|
r.__proto__ = n;
|
599
613
|
} || function(r, n) {
|
600
614
|
for (var i in n)
|
601
615
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
602
|
-
},
|
616
|
+
}, Te(e, t);
|
603
617
|
};
|
604
|
-
function
|
618
|
+
function le(e, t) {
|
605
619
|
if (typeof t != "function" && t !== null)
|
606
620
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
607
|
-
|
621
|
+
Te(e, t);
|
608
622
|
function r() {
|
609
623
|
this.constructor = e;
|
610
624
|
}
|
611
625
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
612
626
|
}
|
613
|
-
var
|
614
|
-
return
|
627
|
+
var b = function() {
|
628
|
+
return b = Object.assign || function(t) {
|
615
629
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
616
630
|
r = arguments[n];
|
617
631
|
for (var s in r)
|
618
632
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
619
633
|
}
|
620
634
|
return t;
|
621
|
-
},
|
635
|
+
}, b.apply(this, arguments);
|
622
636
|
};
|
623
|
-
function
|
637
|
+
function Nr(e, t) {
|
624
638
|
var r = {};
|
625
639
|
for (var n in e)
|
626
640
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -629,14 +643,14 @@ function wr(e, t) {
|
|
629
643
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
630
644
|
return r;
|
631
645
|
}
|
632
|
-
function
|
633
|
-
if (
|
646
|
+
function be(e, t, r) {
|
647
|
+
if (arguments.length === 2)
|
634
648
|
for (var n = 0, i = t.length, s; n < i; n++)
|
635
649
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
636
|
-
return e.concat(s ||
|
650
|
+
return e.concat(s || t);
|
637
651
|
}
|
638
|
-
function
|
639
|
-
var r = t && t.cache ? t.cache :
|
652
|
+
function ge(e, t) {
|
653
|
+
var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer : Mr, i = t && t.strategy ? t.strategy : wr;
|
640
654
|
return i(e, {
|
641
655
|
cache: r,
|
642
656
|
serializer: n
|
@@ -645,7 +659,7 @@ function Ee(e, t) {
|
|
645
659
|
function Ir(e) {
|
646
660
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
647
661
|
}
|
648
|
-
function
|
662
|
+
function pt(e, t, r, n) {
|
649
663
|
var i = Ir(n) ? n : r(n), s = t.get(i);
|
650
664
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
651
665
|
}
|
@@ -653,17 +667,20 @@ function mt(e, t, r) {
|
|
653
667
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
654
668
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
655
669
|
}
|
656
|
-
function
|
670
|
+
function Re(e, t, r, n, i) {
|
657
671
|
return r.bind(t, e, n, i);
|
658
672
|
}
|
659
|
-
function
|
660
|
-
var r = e.length === 1 ?
|
661
|
-
return
|
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
|
+
function Lr(e, t) {
|
678
|
+
return Re(e, this, mt, t.cache.create(), t.serializer);
|
662
679
|
}
|
663
|
-
function
|
664
|
-
return
|
680
|
+
function Cr(e, t) {
|
681
|
+
return Re(e, this, pt, t.cache.create(), t.serializer);
|
665
682
|
}
|
666
|
-
var
|
683
|
+
var Mr = function() {
|
667
684
|
return JSON.stringify(arguments);
|
668
685
|
}, Rr = (
|
669
686
|
/** @class */
|
@@ -677,71 +694,62 @@ var $r = function() {
|
|
677
694
|
this.cache[t] = r;
|
678
695
|
}, e;
|
679
696
|
}()
|
680
|
-
),
|
697
|
+
), $r = {
|
681
698
|
create: function() {
|
682
699
|
return new Rr();
|
683
700
|
}
|
684
|
-
},
|
685
|
-
variadic:
|
686
|
-
|
687
|
-
|
688
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
689
|
-
r = arguments[n];
|
690
|
-
for (var s in r)
|
691
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
692
|
-
}
|
693
|
-
return t;
|
694
|
-
}, ue.apply(this, arguments);
|
695
|
-
};
|
696
|
-
var m;
|
701
|
+
}, xe = {
|
702
|
+
variadic: Lr,
|
703
|
+
monadic: Cr
|
704
|
+
}, m;
|
697
705
|
(function(e) {
|
698
706
|
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";
|
699
707
|
})(m || (m = {}));
|
700
|
-
var
|
708
|
+
var E;
|
701
709
|
(function(e) {
|
702
710
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
703
|
-
})(
|
704
|
-
var
|
711
|
+
})(E || (E = {}));
|
712
|
+
var j;
|
705
713
|
(function(e) {
|
706
714
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
707
|
-
})(
|
708
|
-
function
|
709
|
-
return e.type ===
|
715
|
+
})(j || (j = {}));
|
716
|
+
function We(e) {
|
717
|
+
return e.type === E.literal;
|
710
718
|
}
|
711
|
-
function
|
712
|
-
return e.type ===
|
719
|
+
function Ur(e) {
|
720
|
+
return e.type === E.argument;
|
713
721
|
}
|
714
722
|
function dt(e) {
|
715
|
-
return e.type ===
|
723
|
+
return e.type === E.number;
|
724
|
+
}
|
725
|
+
function bt(e) {
|
726
|
+
return e.type === E.date;
|
716
727
|
}
|
717
728
|
function gt(e) {
|
718
|
-
return e.type ===
|
729
|
+
return e.type === E.time;
|
719
730
|
}
|
720
731
|
function xt(e) {
|
721
|
-
return e.type ===
|
732
|
+
return e.type === E.select;
|
722
733
|
}
|
723
734
|
function Et(e) {
|
724
|
-
return e.type ===
|
735
|
+
return e.type === E.plural;
|
725
736
|
}
|
726
|
-
function
|
727
|
-
return e.type ===
|
737
|
+
function Gr(e) {
|
738
|
+
return e.type === E.pound;
|
728
739
|
}
|
729
|
-
function
|
730
|
-
return e.type ===
|
740
|
+
function yt(e) {
|
741
|
+
return e.type === E.tag;
|
731
742
|
}
|
732
743
|
function _t(e) {
|
733
|
-
return e.type ===
|
744
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
734
745
|
}
|
735
|
-
function
|
736
|
-
return !!(e && typeof e == "object" && e.type ===
|
737
|
-
}
|
738
|
-
function Ae(e) {
|
739
|
-
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
746
|
+
function Be(e) {
|
747
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
740
748
|
}
|
741
|
-
var
|
742
|
-
function
|
749
|
+
var vt = /[ \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
|
+
function Fr(e) {
|
743
751
|
var t = {};
|
744
|
-
return e.replace(
|
752
|
+
return e.replace(Dr, function(r) {
|
745
753
|
var n = r.length;
|
746
754
|
switch (r[0]) {
|
747
755
|
case "G":
|
@@ -830,21 +838,11 @@ function jr(e) {
|
|
830
838
|
return "";
|
831
839
|
}), t;
|
832
840
|
}
|
833
|
-
var
|
834
|
-
|
835
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
836
|
-
r = arguments[n];
|
837
|
-
for (var s in r)
|
838
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
839
|
-
}
|
840
|
-
return t;
|
841
|
-
}, E.apply(this, arguments);
|
842
|
-
};
|
843
|
-
var Vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
844
|
-
function kr(e) {
|
841
|
+
var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
842
|
+
function Vr(e) {
|
845
843
|
if (e.length === 0)
|
846
844
|
throw new Error("Number skeleton cannot be empty");
|
847
|
-
for (var t = e.split(
|
845
|
+
for (var t = e.split(jr).filter(function(f) {
|
848
846
|
return f.length > 0;
|
849
847
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
850
848
|
var s = i[n], o = s.split("/");
|
@@ -859,17 +857,17 @@ function kr(e) {
|
|
859
857
|
}
|
860
858
|
return r;
|
861
859
|
}
|
862
|
-
function
|
860
|
+
function kr(e) {
|
863
861
|
return e.replace(/^(.*?)-/, "");
|
864
862
|
}
|
865
|
-
var
|
866
|
-
function
|
863
|
+
var Ze = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Tt = /^(0+)$/;
|
864
|
+
function Qe(e) {
|
867
865
|
var t = {};
|
868
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
866
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ht, function(r, n, i) {
|
869
867
|
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)), "";
|
870
868
|
}), t;
|
871
869
|
}
|
872
|
-
function
|
870
|
+
function Bt(e) {
|
873
871
|
switch (e) {
|
874
872
|
case "sign-auto":
|
875
873
|
return {
|
@@ -909,7 +907,7 @@ function St(e) {
|
|
909
907
|
};
|
910
908
|
}
|
911
909
|
}
|
912
|
-
function
|
910
|
+
function zr(e) {
|
913
911
|
var t;
|
914
912
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
915
913
|
notation: "engineering"
|
@@ -917,17 +915,17 @@ function Wr(e) {
|
|
917
915
|
notation: "scientific"
|
918
916
|
}, e = e.slice(1)), t) {
|
919
917
|
var r = e.slice(0, 2);
|
920
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
918
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tt.test(e))
|
921
919
|
throw new Error("Malformed concise eng/scientific notation");
|
922
920
|
t.minimumIntegerDigits = e.length;
|
923
921
|
}
|
924
922
|
return t;
|
925
923
|
}
|
926
|
-
function
|
927
|
-
var t = {}, r =
|
924
|
+
function Je(e) {
|
925
|
+
var t = {}, r = Bt(e);
|
928
926
|
return r || t;
|
929
927
|
}
|
930
|
-
function
|
928
|
+
function Wr(e) {
|
931
929
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
932
930
|
var i = n[r];
|
933
931
|
switch (i.stem) {
|
@@ -951,7 +949,7 @@ function Zr(e) {
|
|
951
949
|
continue;
|
952
950
|
case "measure-unit":
|
953
951
|
case "unit":
|
954
|
-
t.style = "unit", t.unit =
|
952
|
+
t.style = "unit", t.unit = kr(i.options[0]);
|
955
953
|
continue;
|
956
954
|
case "compact-short":
|
957
955
|
case "K":
|
@@ -962,13 +960,13 @@ function Zr(e) {
|
|
962
960
|
t.notation = "compact", t.compactDisplay = "long";
|
963
961
|
continue;
|
964
962
|
case "scientific":
|
965
|
-
t =
|
966
|
-
return
|
963
|
+
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
964
|
+
return b(b({}, h), Je(u));
|
967
965
|
}, {}));
|
968
966
|
continue;
|
969
967
|
case "engineering":
|
970
|
-
t =
|
971
|
-
return
|
968
|
+
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
969
|
+
return b(b({}, h), Je(u));
|
972
970
|
}, {}));
|
973
971
|
continue;
|
974
972
|
case "notation-simple":
|
@@ -1013,45 +1011,45 @@ function Zr(e) {
|
|
1013
1011
|
case "integer-width":
|
1014
1012
|
if (i.options.length > 1)
|
1015
1013
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1016
|
-
i.options[0].replace(
|
1014
|
+
i.options[0].replace(Xr, function(h, u, l, c, f, x) {
|
1017
1015
|
if (u)
|
1018
1016
|
t.minimumIntegerDigits = l.length;
|
1019
1017
|
else {
|
1020
1018
|
if (c && f)
|
1021
1019
|
throw new Error("We currently do not support maximum integer digits");
|
1022
|
-
if (
|
1020
|
+
if (x)
|
1023
1021
|
throw new Error("We currently do not support exact integer digits");
|
1024
1022
|
}
|
1025
1023
|
return "";
|
1026
1024
|
});
|
1027
1025
|
continue;
|
1028
1026
|
}
|
1029
|
-
if (
|
1027
|
+
if (Tt.test(i.stem)) {
|
1030
1028
|
t.minimumIntegerDigits = i.stem.length;
|
1031
1029
|
continue;
|
1032
1030
|
}
|
1033
|
-
if (
|
1031
|
+
if (Ze.test(i.stem)) {
|
1034
1032
|
if (i.options.length > 1)
|
1035
1033
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1036
|
-
i.stem.replace(
|
1037
|
-
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
1034
|
+
i.stem.replace(Ze, function(h, u, l, c, f, x) {
|
1035
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && x ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
1038
1036
|
});
|
1039
1037
|
var s = i.options[0];
|
1040
|
-
s === "w" ? t =
|
1038
|
+
s === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = b(b({}, t), Qe(s)));
|
1041
1039
|
continue;
|
1042
1040
|
}
|
1043
|
-
if (
|
1044
|
-
t =
|
1041
|
+
if (Ht.test(i.stem)) {
|
1042
|
+
t = b(b({}, t), Qe(i.stem));
|
1045
1043
|
continue;
|
1046
1044
|
}
|
1047
|
-
var o =
|
1048
|
-
o && (t =
|
1049
|
-
var a =
|
1050
|
-
a && (t =
|
1045
|
+
var o = Bt(i.stem);
|
1046
|
+
o && (t = b(b({}, t), o));
|
1047
|
+
var a = zr(i.stem);
|
1048
|
+
a && (t = b(b({}, t), a));
|
1051
1049
|
}
|
1052
1050
|
return t;
|
1053
1051
|
}
|
1054
|
-
var
|
1052
|
+
var re = {
|
1055
1053
|
"001": [
|
1056
1054
|
"H",
|
1057
1055
|
"h"
|
@@ -2466,13 +2464,13 @@ var ne = {
|
|
2466
2464
|
"h"
|
2467
2465
|
]
|
2468
2466
|
};
|
2469
|
-
function
|
2467
|
+
function Zr(e, t) {
|
2470
2468
|
for (var r = "", n = 0; n < e.length; n++) {
|
2471
2469
|
var i = e.charAt(n);
|
2472
2470
|
if (i === "j") {
|
2473
2471
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2474
2472
|
s++, n++;
|
2475
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
2473
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Qr(t);
|
2476
2474
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
2477
2475
|
r += h;
|
2478
2476
|
for (; o-- > 0; )
|
@@ -2482,7 +2480,7 @@ function Qr(e, t) {
|
|
2482
2480
|
}
|
2483
2481
|
return r;
|
2484
2482
|
}
|
2485
|
-
function
|
2483
|
+
function Qr(e) {
|
2486
2484
|
var t = e.hourCycle;
|
2487
2485
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2488
2486
|
e.hourCycles && // @ts-ignore
|
@@ -2501,23 +2499,23 @@ function Jr(e) {
|
|
2501
2499
|
}
|
2502
2500
|
var r = e.language, n;
|
2503
2501
|
r !== "root" && (n = e.maximize().region);
|
2504
|
-
var i =
|
2502
|
+
var i = re[n || ""] || re[r || ""] || re["".concat(r, "-001")] || re["001"];
|
2505
2503
|
return i[0];
|
2506
2504
|
}
|
2507
|
-
var
|
2508
|
-
function
|
2505
|
+
var Ee, Jr = new RegExp("^".concat(vt.source, "*")), qr = new RegExp("".concat(vt.source, "*$"));
|
2506
|
+
function d(e, t) {
|
2509
2507
|
return { start: e, end: t };
|
2510
2508
|
}
|
2511
|
-
var
|
2509
|
+
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) {
|
2512
2510
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2513
|
-
},
|
2511
|
+
}, Ae = !0;
|
2514
2512
|
try {
|
2515
|
-
var
|
2516
|
-
|
2513
|
+
var an = St("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2514
|
+
Ae = ((Ee = an.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
2517
2515
|
} catch (e) {
|
2518
|
-
|
2516
|
+
Ae = !1;
|
2519
2517
|
}
|
2520
|
-
var
|
2518
|
+
var qe = Yr ? (
|
2521
2519
|
// Native
|
2522
2520
|
function(t, r, n) {
|
2523
2521
|
return t.startsWith(r, n);
|
@@ -2527,7 +2525,7 @@ var Ye = Kr ? (
|
|
2527
2525
|
function(t, r, n) {
|
2528
2526
|
return t.slice(n, n + r.length) === r;
|
2529
2527
|
}
|
2530
|
-
),
|
2528
|
+
), Se = Kr ? String.fromCodePoint : (
|
2531
2529
|
// IE11
|
2532
2530
|
function() {
|
2533
2531
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2539,9 +2537,9 @@ var Ye = Kr ? (
|
|
2539
2537
|
}
|
2540
2538
|
return n;
|
2541
2539
|
}
|
2542
|
-
),
|
2540
|
+
), Ye = (
|
2543
2541
|
// native
|
2544
|
-
|
2542
|
+
en ? Object.fromEntries : (
|
2545
2543
|
// Ponyfill
|
2546
2544
|
function(t) {
|
2547
2545
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2551,7 +2549,7 @@ var Ye = Kr ? (
|
|
2551
2549
|
return r;
|
2552
2550
|
}
|
2553
2551
|
)
|
2554
|
-
), At =
|
2552
|
+
), At = tn ? (
|
2555
2553
|
// Native
|
2556
2554
|
function(t, r) {
|
2557
2555
|
return t.codePointAt(r);
|
@@ -2565,7 +2563,7 @@ var Ye = Kr ? (
|
|
2565
2563
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2566
2564
|
}
|
2567
2565
|
}
|
2568
|
-
),
|
2566
|
+
), un = rn ? (
|
2569
2567
|
// Native
|
2570
2568
|
function(t) {
|
2571
2569
|
return t.trimStart();
|
@@ -2573,9 +2571,9 @@ var Ye = Kr ? (
|
|
2573
2571
|
) : (
|
2574
2572
|
// Ponyfill
|
2575
2573
|
function(t) {
|
2576
|
-
return t.replace(
|
2574
|
+
return t.replace(Jr, "");
|
2577
2575
|
}
|
2578
|
-
),
|
2576
|
+
), hn = nn ? (
|
2579
2577
|
// Native
|
2580
2578
|
function(t) {
|
2581
2579
|
return t.trimEnd();
|
@@ -2583,32 +2581,32 @@ var Ye = Kr ? (
|
|
2583
2581
|
) : (
|
2584
2582
|
// Ponyfill
|
2585
2583
|
function(t) {
|
2586
|
-
return t.replace(
|
2584
|
+
return t.replace(qr, "");
|
2587
2585
|
}
|
2588
2586
|
);
|
2589
|
-
function
|
2587
|
+
function St(e, t) {
|
2590
2588
|
return new RegExp(e, t);
|
2591
2589
|
}
|
2592
|
-
var
|
2593
|
-
if (
|
2594
|
-
var
|
2595
|
-
|
2590
|
+
var Pe;
|
2591
|
+
if (Ae) {
|
2592
|
+
var Ke = St("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2593
|
+
Pe = function(t, r) {
|
2596
2594
|
var n;
|
2597
|
-
|
2598
|
-
var i =
|
2595
|
+
Ke.lastIndex = r;
|
2596
|
+
var i = Ke.exec(t);
|
2599
2597
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2600
2598
|
};
|
2601
2599
|
} else
|
2602
|
-
|
2600
|
+
Pe = function(t, r) {
|
2603
2601
|
for (var n = []; ; ) {
|
2604
2602
|
var i = At(t, r);
|
2605
|
-
if (i === void 0 ||
|
2603
|
+
if (i === void 0 || Pt(i) || pn(i))
|
2606
2604
|
break;
|
2607
2605
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2608
2606
|
}
|
2609
|
-
return
|
2607
|
+
return Se.apply(void 0, n);
|
2610
2608
|
};
|
2611
|
-
var
|
2609
|
+
var ln = (
|
2612
2610
|
/** @class */
|
2613
2611
|
function() {
|
2614
2612
|
function e(t, r) {
|
@@ -2632,14 +2630,14 @@ var fn = (
|
|
2632
2630
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
2633
2631
|
var a = this.clonePosition();
|
2634
2632
|
this.bump(), i.push({
|
2635
|
-
type:
|
2636
|
-
location:
|
2633
|
+
type: E.pound,
|
2634
|
+
location: d(a, this.clonePosition())
|
2637
2635
|
});
|
2638
2636
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2639
2637
|
if (n)
|
2640
2638
|
break;
|
2641
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
2642
|
-
} else if (s === 60 && !this.ignoreTag &&
|
2639
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
2640
|
+
} else if (s === 60 && !this.ignoreTag && Oe(this.peek() || 0)) {
|
2643
2641
|
var o = this.parseTag(t, r);
|
2644
2642
|
if (o.err)
|
2645
2643
|
return o;
|
@@ -2660,9 +2658,9 @@ var fn = (
|
|
2660
2658
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2661
2659
|
return {
|
2662
2660
|
val: {
|
2663
|
-
type:
|
2661
|
+
type: E.literal,
|
2664
2662
|
value: "<".concat(i, "/>"),
|
2665
|
-
location:
|
2663
|
+
location: d(n, this.clonePosition())
|
2666
2664
|
},
|
2667
2665
|
err: null
|
2668
2666
|
};
|
@@ -2672,25 +2670,25 @@ var fn = (
|
|
2672
2670
|
return s;
|
2673
2671
|
var o = s.val, a = this.clonePosition();
|
2674
2672
|
if (this.bumpIf("</")) {
|
2675
|
-
if (this.isEOF() || !
|
2676
|
-
return this.error(m.INVALID_TAG,
|
2673
|
+
if (this.isEOF() || !Oe(this.char()))
|
2674
|
+
return this.error(m.INVALID_TAG, d(a, this.clonePosition()));
|
2677
2675
|
var h = this.clonePosition(), u = this.parseTagName();
|
2678
|
-
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG,
|
2676
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2679
2677
|
val: {
|
2680
|
-
type:
|
2678
|
+
type: E.tag,
|
2681
2679
|
value: i,
|
2682
2680
|
children: o,
|
2683
|
-
location:
|
2681
|
+
location: d(n, this.clonePosition())
|
2684
2682
|
},
|
2685
2683
|
err: null
|
2686
|
-
} : this.error(m.INVALID_TAG,
|
2684
|
+
} : this.error(m.INVALID_TAG, d(a, this.clonePosition())));
|
2687
2685
|
} else
|
2688
|
-
return this.error(m.UNCLOSED_TAG,
|
2686
|
+
return this.error(m.UNCLOSED_TAG, d(n, this.clonePosition()));
|
2689
2687
|
} else
|
2690
|
-
return this.error(m.INVALID_TAG,
|
2688
|
+
return this.error(m.INVALID_TAG, d(n, this.clonePosition()));
|
2691
2689
|
}, e.prototype.parseTagName = function() {
|
2692
2690
|
var t = this.offset();
|
2693
|
-
for (this.bump(); !this.isEOF() &&
|
2691
|
+
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
2694
2692
|
this.bump();
|
2695
2693
|
return this.message.slice(t, this.offset());
|
2696
2694
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2712,14 +2710,14 @@ var fn = (
|
|
2712
2710
|
}
|
2713
2711
|
break;
|
2714
2712
|
}
|
2715
|
-
var h =
|
2713
|
+
var h = d(n, this.clonePosition());
|
2716
2714
|
return {
|
2717
|
-
val: { type:
|
2715
|
+
val: { type: E.literal, value: i, location: h },
|
2718
2716
|
err: null
|
2719
2717
|
};
|
2720
2718
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2721
2719
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2722
|
-
!
|
2720
|
+
!fn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2723
2721
|
}, e.prototype.tryParseQuote = function(t) {
|
2724
2722
|
if (this.isEOF() || this.char() !== 39)
|
2725
2723
|
return null;
|
@@ -2753,49 +2751,49 @@ var fn = (
|
|
2753
2751
|
r.push(n);
|
2754
2752
|
this.bump();
|
2755
2753
|
}
|
2756
|
-
return
|
2754
|
+
return Se.apply(void 0, r);
|
2757
2755
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2758
2756
|
if (this.isEOF())
|
2759
2757
|
return null;
|
2760
2758
|
var n = this.char();
|
2761
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2759
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Se(n));
|
2762
2760
|
}, e.prototype.parseArgument = function(t, r) {
|
2763
2761
|
var n = this.clonePosition();
|
2764
2762
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2765
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2763
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
2766
2764
|
if (this.char() === 125)
|
2767
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
2765
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
2768
2766
|
var i = this.parseIdentifierIfPossible().value;
|
2769
2767
|
if (!i)
|
2770
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2768
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
2771
2769
|
if (this.bumpSpace(), this.isEOF())
|
2772
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2770
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
2773
2771
|
switch (this.char()) {
|
2774
2772
|
case 125:
|
2775
2773
|
return this.bump(), {
|
2776
2774
|
val: {
|
2777
|
-
type:
|
2775
|
+
type: E.argument,
|
2778
2776
|
// value does not include the opening and closing braces.
|
2779
2777
|
value: i,
|
2780
|
-
location:
|
2778
|
+
location: d(n, this.clonePosition())
|
2781
2779
|
},
|
2782
2780
|
err: null
|
2783
2781
|
};
|
2784
2782
|
case 44:
|
2785
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2783
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2786
2784
|
default:
|
2787
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2785
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
2788
2786
|
}
|
2789
2787
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2790
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2788
|
+
var t = this.clonePosition(), r = this.offset(), n = Pe(this.message, r), i = r + n.length;
|
2791
2789
|
this.bumpTo(i);
|
2792
|
-
var s = this.clonePosition(), o =
|
2790
|
+
var s = this.clonePosition(), o = d(t, s);
|
2793
2791
|
return { value: n, location: o };
|
2794
2792
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2795
2793
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2796
2794
|
switch (a) {
|
2797
2795
|
case "":
|
2798
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
2796
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, d(o, h));
|
2799
2797
|
case "number":
|
2800
2798
|
case "date":
|
2801
2799
|
case "time": {
|
@@ -2806,44 +2804,44 @@ var fn = (
|
|
2806
2804
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2807
2805
|
if (c.err)
|
2808
2806
|
return c;
|
2809
|
-
var f =
|
2807
|
+
var f = hn(c.val);
|
2810
2808
|
if (f.length === 0)
|
2811
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
2812
|
-
var
|
2813
|
-
u = { style: f, styleLocation:
|
2809
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
2810
|
+
var x = d(l, this.clonePosition());
|
2811
|
+
u = { style: f, styleLocation: x };
|
2814
2812
|
}
|
2815
|
-
var
|
2816
|
-
if (
|
2817
|
-
return
|
2818
|
-
var y =
|
2819
|
-
if (u &&
|
2820
|
-
var H =
|
2813
|
+
var g = this.tryParseArgumentClose(i);
|
2814
|
+
if (g.err)
|
2815
|
+
return g;
|
2816
|
+
var y = d(i, this.clonePosition());
|
2817
|
+
if (u && qe(u == null ? void 0 : u.style, "::", 0)) {
|
2818
|
+
var H = un(u.style.slice(2));
|
2821
2819
|
if (a === "number") {
|
2822
2820
|
var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
2823
2821
|
return c.err ? c : {
|
2824
|
-
val: { type:
|
2822
|
+
val: { type: E.number, value: n, location: y, style: c.val },
|
2825
2823
|
err: null
|
2826
2824
|
};
|
2827
2825
|
} else {
|
2828
2826
|
if (H.length === 0)
|
2829
2827
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
2830
|
-
var
|
2831
|
-
this.locale && (
|
2828
|
+
var A = H;
|
2829
|
+
this.locale && (A = Zr(H, this.locale));
|
2832
2830
|
var f = {
|
2833
|
-
type:
|
2834
|
-
pattern:
|
2831
|
+
type: j.dateTime,
|
2832
|
+
pattern: A,
|
2835
2833
|
location: u.styleLocation,
|
2836
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2837
|
-
},
|
2834
|
+
parsedOptions: this.shouldParseSkeletons ? Fr(A) : {}
|
2835
|
+
}, S = a === "date" ? E.date : E.time;
|
2838
2836
|
return {
|
2839
|
-
val: { type:
|
2837
|
+
val: { type: S, value: n, location: y, style: f },
|
2840
2838
|
err: null
|
2841
2839
|
};
|
2842
2840
|
}
|
2843
2841
|
}
|
2844
2842
|
return {
|
2845
2843
|
val: {
|
2846
|
-
type: a === "number" ?
|
2844
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
2847
2845
|
value: n,
|
2848
2846
|
location: y,
|
2849
2847
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
@@ -2856,50 +2854,50 @@ var fn = (
|
|
2856
2854
|
case "select": {
|
2857
2855
|
var v = this.clonePosition();
|
2858
2856
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2859
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
2857
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(v, b({}, v)));
|
2860
2858
|
this.bumpSpace();
|
2861
|
-
var
|
2862
|
-
if (a !== "select" &&
|
2859
|
+
var N = this.parseIdentifierIfPossible(), O = 0;
|
2860
|
+
if (a !== "select" && N.value === "offset") {
|
2863
2861
|
if (!this.bumpIf(":"))
|
2864
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
2862
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
2865
2863
|
this.bumpSpace();
|
2866
2864
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2867
2865
|
if (c.err)
|
2868
2866
|
return c;
|
2869
|
-
this.bumpSpace(),
|
2867
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), O = c.val;
|
2870
2868
|
}
|
2871
|
-
var R = this.tryParsePluralOrSelectOptions(t, a, r,
|
2869
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, N);
|
2872
2870
|
if (R.err)
|
2873
2871
|
return R;
|
2874
|
-
var
|
2875
|
-
if (
|
2876
|
-
return
|
2877
|
-
var
|
2872
|
+
var g = this.tryParseArgumentClose(i);
|
2873
|
+
if (g.err)
|
2874
|
+
return g;
|
2875
|
+
var te = d(i, this.clonePosition());
|
2878
2876
|
return a === "select" ? {
|
2879
2877
|
val: {
|
2880
|
-
type:
|
2878
|
+
type: E.select,
|
2881
2879
|
value: n,
|
2882
|
-
options:
|
2883
|
-
location:
|
2880
|
+
options: Ye(R.val),
|
2881
|
+
location: te
|
2884
2882
|
},
|
2885
2883
|
err: null
|
2886
2884
|
} : {
|
2887
2885
|
val: {
|
2888
|
-
type:
|
2886
|
+
type: E.plural,
|
2889
2887
|
value: n,
|
2890
|
-
options:
|
2891
|
-
offset:
|
2888
|
+
options: Ye(R.val),
|
2889
|
+
offset: O,
|
2892
2890
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2893
|
-
location:
|
2891
|
+
location: te
|
2894
2892
|
},
|
2895
2893
|
err: null
|
2896
2894
|
};
|
2897
2895
|
}
|
2898
2896
|
default:
|
2899
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
2897
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, d(o, h));
|
2900
2898
|
}
|
2901
2899
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2902
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2900
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2903
2901
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2904
2902
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2905
2903
|
var n = this.char();
|
@@ -2908,7 +2906,7 @@ var fn = (
|
|
2908
2906
|
this.bump();
|
2909
2907
|
var i = this.clonePosition();
|
2910
2908
|
if (!this.bumpUntil("'"))
|
2911
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
2909
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
2912
2910
|
this.bump();
|
2913
2911
|
break;
|
2914
2912
|
}
|
@@ -2938,16 +2936,16 @@ var fn = (
|
|
2938
2936
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2939
2937
|
var n = [];
|
2940
2938
|
try {
|
2941
|
-
n =
|
2939
|
+
n = Vr(t);
|
2942
2940
|
} catch (i) {
|
2943
2941
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
2944
2942
|
}
|
2945
2943
|
return {
|
2946
2944
|
val: {
|
2947
|
-
type:
|
2945
|
+
type: j.number,
|
2948
2946
|
tokens: n,
|
2949
2947
|
location: r,
|
2950
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2948
|
+
parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
|
2951
2949
|
},
|
2952
2950
|
err: null
|
2953
2951
|
};
|
@@ -2959,31 +2957,31 @@ var fn = (
|
|
2959
2957
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2960
2958
|
if (f.err)
|
2961
2959
|
return f;
|
2962
|
-
l =
|
2960
|
+
l = d(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
2963
2961
|
} else
|
2964
2962
|
break;
|
2965
2963
|
}
|
2966
2964
|
if (h.has(u))
|
2967
2965
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2968
2966
|
u === "other" && (o = !0), this.bumpSpace();
|
2969
|
-
var
|
2967
|
+
var x = this.clonePosition();
|
2970
2968
|
if (!this.bumpIf("{"))
|
2971
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
2972
|
-
var
|
2973
|
-
if (
|
2974
|
-
return
|
2975
|
-
var y = this.tryParseArgumentClose(
|
2969
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
2970
|
+
var g = this.parseMessage(t + 1, r, n);
|
2971
|
+
if (g.err)
|
2972
|
+
return g;
|
2973
|
+
var y = this.tryParseArgumentClose(x);
|
2976
2974
|
if (y.err)
|
2977
2975
|
return y;
|
2978
2976
|
a.push([
|
2979
2977
|
u,
|
2980
2978
|
{
|
2981
|
-
value:
|
2982
|
-
location:
|
2979
|
+
value: g.val,
|
2980
|
+
location: d(x, this.clonePosition())
|
2983
2981
|
}
|
2984
2982
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
2985
2983
|
}
|
2986
|
-
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
2984
|
+
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
2987
2985
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
2988
2986
|
var n = 1, i = this.clonePosition();
|
2989
2987
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -2994,8 +2992,8 @@ var fn = (
|
|
2994
2992
|
else
|
2995
2993
|
break;
|
2996
2994
|
}
|
2997
|
-
var h =
|
2998
|
-
return s ? (o *= n,
|
2995
|
+
var h = d(i, this.clonePosition());
|
2996
|
+
return s ? (o *= n, on(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
2999
2997
|
}, e.prototype.offset = function() {
|
3000
2998
|
return this.position.offset;
|
3001
2999
|
}, e.prototype.isEOF = function() {
|
@@ -3029,7 +3027,7 @@ var fn = (
|
|
3029
3027
|
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);
|
3030
3028
|
}
|
3031
3029
|
}, e.prototype.bumpIf = function(t) {
|
3032
|
-
if (
|
3030
|
+
if (qe(this.message, t, this.offset())) {
|
3033
3031
|
for (var r = 0; r < t.length; r++)
|
3034
3032
|
this.bump();
|
3035
3033
|
return !0;
|
@@ -3051,7 +3049,7 @@ var fn = (
|
|
3051
3049
|
break;
|
3052
3050
|
}
|
3053
3051
|
}, e.prototype.bumpSpace = function() {
|
3054
|
-
for (; !this.isEOF() &&
|
3052
|
+
for (; !this.isEOF() && Pt(this.char()); )
|
3055
3053
|
this.bump();
|
3056
3054
|
}, e.prototype.peek = function() {
|
3057
3055
|
if (this.isEOF())
|
@@ -3061,47 +3059,47 @@ var fn = (
|
|
3061
3059
|
}, e;
|
3062
3060
|
}()
|
3063
3061
|
);
|
3064
|
-
function
|
3062
|
+
function Oe(e) {
|
3065
3063
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3066
3064
|
}
|
3067
|
-
function
|
3068
|
-
return
|
3065
|
+
function fn(e) {
|
3066
|
+
return Oe(e) || e === 47;
|
3069
3067
|
}
|
3070
|
-
function
|
3068
|
+
function cn(e) {
|
3071
3069
|
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;
|
3072
3070
|
}
|
3073
|
-
function
|
3071
|
+
function Pt(e) {
|
3074
3072
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3075
3073
|
}
|
3076
|
-
function
|
3074
|
+
function pn(e) {
|
3077
3075
|
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;
|
3078
3076
|
}
|
3079
|
-
function
|
3077
|
+
function Ne(e) {
|
3080
3078
|
e.forEach(function(t) {
|
3081
|
-
if (delete t.location,
|
3079
|
+
if (delete t.location, xt(t) || Et(t))
|
3082
3080
|
for (var r in t.options)
|
3083
|
-
delete t.options[r].location,
|
3081
|
+
delete t.options[r].location, Ne(t.options[r].value);
|
3084
3082
|
else
|
3085
|
-
dt(t) &&
|
3083
|
+
dt(t) && _t(t.style) || (bt(t) || gt(t)) && Be(t.style) ? delete t.style.location : yt(t) && Ne(t.children);
|
3086
3084
|
});
|
3087
3085
|
}
|
3088
|
-
function
|
3089
|
-
t === void 0 && (t = {}), t =
|
3090
|
-
var r = new
|
3086
|
+
function mn(e, t) {
|
3087
|
+
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3088
|
+
var r = new ln(e, t).parse();
|
3091
3089
|
if (r.err) {
|
3092
3090
|
var n = SyntaxError(m[r.err.kind]);
|
3093
3091
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3094
3092
|
}
|
3095
|
-
return t != null && t.captureLocation ||
|
3093
|
+
return t != null && t.captureLocation || Ne(r.val), r.val;
|
3096
3094
|
}
|
3097
|
-
var
|
3095
|
+
var V;
|
3098
3096
|
(function(e) {
|
3099
3097
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3100
|
-
})(
|
3101
|
-
var
|
3098
|
+
})(V || (V = {}));
|
3099
|
+
var fe = (
|
3102
3100
|
/** @class */
|
3103
3101
|
function(e) {
|
3104
|
-
|
3102
|
+
le(t, e);
|
3105
3103
|
function t(r, n, i) {
|
3106
3104
|
var s = e.call(this, r) || this;
|
3107
3105
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3110,48 +3108,48 @@ var pe = (
|
|
3110
3108
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3111
3109
|
}, t;
|
3112
3110
|
}(Error)
|
3113
|
-
),
|
3111
|
+
), et = (
|
3114
3112
|
/** @class */
|
3115
3113
|
function(e) {
|
3116
|
-
|
3114
|
+
le(t, e);
|
3117
3115
|
function t(r, n, i, s) {
|
3118
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3116
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
3119
3117
|
}
|
3120
3118
|
return t;
|
3121
|
-
}(
|
3119
|
+
}(fe)
|
3122
3120
|
), dn = (
|
3123
3121
|
/** @class */
|
3124
3122
|
function(e) {
|
3125
|
-
|
3123
|
+
le(t, e);
|
3126
3124
|
function t(r, n, i) {
|
3127
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3125
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
3128
3126
|
}
|
3129
3127
|
return t;
|
3130
|
-
}(
|
3131
|
-
),
|
3128
|
+
}(fe)
|
3129
|
+
), bn = (
|
3132
3130
|
/** @class */
|
3133
3131
|
function(e) {
|
3134
|
-
|
3132
|
+
le(t, e);
|
3135
3133
|
function t(r, n) {
|
3136
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3134
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
3137
3135
|
}
|
3138
3136
|
return t;
|
3139
|
-
}(
|
3137
|
+
}(fe)
|
3140
3138
|
), _;
|
3141
3139
|
(function(e) {
|
3142
3140
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3143
3141
|
})(_ || (_ = {}));
|
3144
|
-
function
|
3142
|
+
function gn(e) {
|
3145
3143
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3146
3144
|
var n = t[t.length - 1];
|
3147
3145
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
3148
3146
|
}, []);
|
3149
3147
|
}
|
3150
|
-
function
|
3148
|
+
function xn(e) {
|
3151
3149
|
return typeof e == "function";
|
3152
3150
|
}
|
3153
|
-
function
|
3154
|
-
if (e.length === 1 &&
|
3151
|
+
function se(e, t, r, n, i, s, o) {
|
3152
|
+
if (e.length === 1 && We(e[0]))
|
3155
3153
|
return [
|
3156
3154
|
{
|
3157
3155
|
type: _.literal,
|
@@ -3160,14 +3158,14 @@ function oe(e, t, r, n, i, s, o) {
|
|
3160
3158
|
];
|
3161
3159
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
3162
3160
|
var l = u[h];
|
3163
|
-
if (
|
3161
|
+
if (We(l)) {
|
3164
3162
|
a.push({
|
3165
3163
|
type: _.literal,
|
3166
3164
|
value: l.value
|
3167
3165
|
});
|
3168
3166
|
continue;
|
3169
3167
|
}
|
3170
|
-
if (
|
3168
|
+
if (Gr(l)) {
|
3171
3169
|
typeof s == "number" && a.push({
|
3172
3170
|
type: _.literal,
|
3173
3171
|
value: r.getNumberFormat(t).format(s)
|
@@ -3176,89 +3174,89 @@ function oe(e, t, r, n, i, s, o) {
|
|
3176
3174
|
}
|
3177
3175
|
var c = l.value;
|
3178
3176
|
if (!(i && c in i))
|
3179
|
-
throw new
|
3177
|
+
throw new bn(c, o);
|
3180
3178
|
var f = i[c];
|
3181
|
-
if (
|
3179
|
+
if (Ur(l)) {
|
3182
3180
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3183
3181
|
type: typeof f == "string" ? _.literal : _.object,
|
3184
3182
|
value: f
|
3185
3183
|
});
|
3186
3184
|
continue;
|
3187
3185
|
}
|
3188
|
-
if (
|
3189
|
-
var
|
3186
|
+
if (bt(l)) {
|
3187
|
+
var x = typeof l.style == "string" ? n.date[l.style] : Be(l.style) ? l.style.parsedOptions : void 0;
|
3190
3188
|
a.push({
|
3191
3189
|
type: _.literal,
|
3192
|
-
value: r.getDateTimeFormat(t,
|
3190
|
+
value: r.getDateTimeFormat(t, x).format(f)
|
3193
3191
|
});
|
3194
3192
|
continue;
|
3195
3193
|
}
|
3196
|
-
if (
|
3197
|
-
var
|
3194
|
+
if (gt(l)) {
|
3195
|
+
var x = typeof l.style == "string" ? n.time[l.style] : Be(l.style) ? l.style.parsedOptions : n.time.medium;
|
3198
3196
|
a.push({
|
3199
3197
|
type: _.literal,
|
3200
|
-
value: r.getDateTimeFormat(t,
|
3198
|
+
value: r.getDateTimeFormat(t, x).format(f)
|
3201
3199
|
});
|
3202
3200
|
continue;
|
3203
3201
|
}
|
3204
3202
|
if (dt(l)) {
|
3205
|
-
var
|
3206
|
-
|
3203
|
+
var x = typeof l.style == "string" ? n.number[l.style] : _t(l.style) ? l.style.parsedOptions : void 0;
|
3204
|
+
x && x.scale && (f = f * (x.scale || 1)), a.push({
|
3207
3205
|
type: _.literal,
|
3208
|
-
value: r.getNumberFormat(t,
|
3206
|
+
value: r.getNumberFormat(t, x).format(f)
|
3209
3207
|
});
|
3210
3208
|
continue;
|
3211
3209
|
}
|
3212
|
-
if (
|
3213
|
-
var
|
3214
|
-
if (!
|
3210
|
+
if (yt(l)) {
|
3211
|
+
var g = l.children, y = l.value, H = i[y];
|
3212
|
+
if (!xn(H))
|
3215
3213
|
throw new dn(y, "function", o);
|
3216
|
-
var
|
3217
|
-
return
|
3214
|
+
var A = se(g, t, r, n, i, s), S = H(A.map(function(O) {
|
3215
|
+
return O.value;
|
3218
3216
|
}));
|
3219
|
-
Array.isArray(
|
3217
|
+
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(O) {
|
3220
3218
|
return {
|
3221
|
-
type: typeof
|
3222
|
-
value:
|
3219
|
+
type: typeof O == "string" ? _.literal : _.object,
|
3220
|
+
value: O
|
3223
3221
|
};
|
3224
3222
|
}));
|
3225
3223
|
}
|
3226
|
-
if (
|
3224
|
+
if (xt(l)) {
|
3227
3225
|
var v = l.options[f] || l.options.other;
|
3228
3226
|
if (!v)
|
3229
|
-
throw new
|
3230
|
-
a.push.apply(a,
|
3227
|
+
throw new et(l.value, f, Object.keys(l.options), o);
|
3228
|
+
a.push.apply(a, se(v.value, t, r, n, i));
|
3231
3229
|
continue;
|
3232
3230
|
}
|
3233
|
-
if (
|
3231
|
+
if (Et(l)) {
|
3234
3232
|
var v = l.options["=".concat(f)];
|
3235
3233
|
if (!v) {
|
3236
3234
|
if (!Intl.PluralRules)
|
3237
|
-
throw new
|
3235
|
+
throw new fe(`Intl.PluralRules is not available in this environment.
|
3238
3236
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3239
|
-
`,
|
3240
|
-
var
|
3241
|
-
v = l.options[
|
3237
|
+
`, V.MISSING_INTL_API, o);
|
3238
|
+
var N = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
3239
|
+
v = l.options[N] || l.options.other;
|
3242
3240
|
}
|
3243
3241
|
if (!v)
|
3244
|
-
throw new
|
3245
|
-
a.push.apply(a,
|
3242
|
+
throw new et(l.value, f, Object.keys(l.options), o);
|
3243
|
+
a.push.apply(a, se(v.value, t, r, n, i, f - (l.offset || 0)));
|
3246
3244
|
continue;
|
3247
3245
|
}
|
3248
3246
|
}
|
3249
|
-
return
|
3247
|
+
return gn(a);
|
3250
3248
|
}
|
3251
|
-
function
|
3252
|
-
return t ?
|
3253
|
-
return r[n] =
|
3249
|
+
function En(e, t) {
|
3250
|
+
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3251
|
+
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
3254
3252
|
}, {})) : e;
|
3255
3253
|
}
|
3256
|
-
function
|
3254
|
+
function yn(e, t) {
|
3257
3255
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3258
|
-
return r[n] =
|
3259
|
-
},
|
3256
|
+
return r[n] = En(e[n], t[n]), r;
|
3257
|
+
}, b({}, e)) : e;
|
3260
3258
|
}
|
3261
|
-
function
|
3259
|
+
function ye(e) {
|
3262
3260
|
return {
|
3263
3261
|
create: function() {
|
3264
3262
|
return {
|
@@ -3272,39 +3270,39 @@ function ve(e) {
|
|
3272
3270
|
}
|
3273
3271
|
};
|
3274
3272
|
}
|
3275
|
-
function
|
3273
|
+
function _n(e) {
|
3276
3274
|
return e === void 0 && (e = {
|
3277
3275
|
number: {},
|
3278
3276
|
dateTime: {},
|
3279
3277
|
pluralRules: {}
|
3280
3278
|
}), {
|
3281
|
-
getNumberFormat:
|
3279
|
+
getNumberFormat: ge(function() {
|
3282
3280
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3283
3281
|
r[n] = arguments[n];
|
3284
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3282
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, be([void 0], r, !1)))();
|
3285
3283
|
}, {
|
3286
|
-
cache:
|
3287
|
-
strategy:
|
3284
|
+
cache: ye(e.number),
|
3285
|
+
strategy: xe.variadic
|
3288
3286
|
}),
|
3289
|
-
getDateTimeFormat:
|
3287
|
+
getDateTimeFormat: ge(function() {
|
3290
3288
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3291
3289
|
r[n] = arguments[n];
|
3292
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3290
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, be([void 0], r, !1)))();
|
3293
3291
|
}, {
|
3294
|
-
cache:
|
3295
|
-
strategy:
|
3292
|
+
cache: ye(e.dateTime),
|
3293
|
+
strategy: xe.variadic
|
3296
3294
|
}),
|
3297
|
-
getPluralRules:
|
3295
|
+
getPluralRules: ge(function() {
|
3298
3296
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3299
3297
|
r[n] = arguments[n];
|
3300
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3298
|
+
return new ((t = Intl.PluralRules).bind.apply(t, be([void 0], r, !1)))();
|
3301
3299
|
}, {
|
3302
|
-
cache:
|
3303
|
-
strategy:
|
3300
|
+
cache: ye(e.pluralRules),
|
3301
|
+
strategy: xe.variadic
|
3304
3302
|
})
|
3305
3303
|
};
|
3306
3304
|
}
|
3307
|
-
var
|
3305
|
+
var vn = (
|
3308
3306
|
/** @class */
|
3309
3307
|
function() {
|
3310
3308
|
function e(t, r, n, i) {
|
@@ -3323,7 +3321,7 @@ var Hn = (
|
|
3323
3321
|
}, []);
|
3324
3322
|
return l.length <= 1 ? l[0] || "" : l;
|
3325
3323
|
}, this.formatToParts = function(h) {
|
3326
|
-
return
|
3324
|
+
return se(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
3327
3325
|
}, this.resolvedOptions = function() {
|
3328
3326
|
var h;
|
3329
3327
|
return {
|
@@ -3336,13 +3334,13 @@ var Hn = (
|
|
3336
3334
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3337
3335
|
var o = i || {};
|
3338
3336
|
o.formatters;
|
3339
|
-
var a =
|
3340
|
-
this.ast = e.__parse(t,
|
3337
|
+
var a = Nr(o, ["formatters"]);
|
3338
|
+
this.ast = e.__parse(t, b(b({}, a), { locale: this.resolvedLocale }));
|
3341
3339
|
} else
|
3342
3340
|
this.ast = t;
|
3343
3341
|
if (!Array.isArray(this.ast))
|
3344
3342
|
throw new TypeError("A message must be provided as a String or AST.");
|
3345
|
-
this.formats =
|
3343
|
+
this.formats = yn(e.formats, n), this.formatters = i && i.formatters || _n(this.formatterCache);
|
3346
3344
|
}
|
3347
3345
|
return Object.defineProperty(e, "defaultLocale", {
|
3348
3346
|
get: function() {
|
@@ -3355,7 +3353,7 @@ var Hn = (
|
|
3355
3353
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3356
3354
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3357
3355
|
}
|
3358
|
-
}, e.__parse =
|
3356
|
+
}, e.__parse = mn, e.formats = {
|
3359
3357
|
number: {
|
3360
3358
|
integer: {
|
3361
3359
|
maximumFractionDigits: 0
|
@@ -3416,7 +3414,7 @@ var Hn = (
|
|
3416
3414
|
}, e;
|
3417
3415
|
}()
|
3418
3416
|
);
|
3419
|
-
function
|
3417
|
+
function Hn(e, t) {
|
3420
3418
|
if (t == null)
|
3421
3419
|
return;
|
3422
3420
|
if (t in e)
|
@@ -3437,90 +3435,90 @@ function Tn(e, t) {
|
|
3437
3435
|
n = void 0;
|
3438
3436
|
return n;
|
3439
3437
|
}
|
3440
|
-
const I = {},
|
3438
|
+
const I = {}, Tn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Ot = (e, t) => {
|
3441
3439
|
if (t == null)
|
3442
3440
|
return;
|
3443
3441
|
if (t in I && e in I[t])
|
3444
3442
|
return I[t][e];
|
3445
|
-
const r =
|
3443
|
+
const r = ce(t);
|
3446
3444
|
for (let n = 0; n < r.length; n++) {
|
3447
3445
|
const i = r[n], s = An(i, e);
|
3448
3446
|
if (s)
|
3449
|
-
return
|
3447
|
+
return Tn(e, t, s);
|
3450
3448
|
}
|
3451
3449
|
};
|
3452
|
-
let
|
3453
|
-
const
|
3454
|
-
function
|
3455
|
-
return
|
3450
|
+
let $e;
|
3451
|
+
const z = he({});
|
3452
|
+
function Bn(e) {
|
3453
|
+
return $e[e] || null;
|
3456
3454
|
}
|
3457
|
-
function
|
3458
|
-
return e in
|
3455
|
+
function Nt(e) {
|
3456
|
+
return e in $e;
|
3459
3457
|
}
|
3460
3458
|
function An(e, t) {
|
3461
|
-
if (!
|
3459
|
+
if (!Nt(e))
|
3462
3460
|
return null;
|
3463
|
-
const r =
|
3464
|
-
return
|
3461
|
+
const r = Bn(e);
|
3462
|
+
return Hn(r, t);
|
3465
3463
|
}
|
3466
|
-
function
|
3464
|
+
function Sn(e) {
|
3467
3465
|
if (e == null)
|
3468
3466
|
return;
|
3469
|
-
const t =
|
3467
|
+
const t = ce(e);
|
3470
3468
|
for (let r = 0; r < t.length; r++) {
|
3471
3469
|
const n = t[r];
|
3472
|
-
if (
|
3470
|
+
if (Nt(n))
|
3473
3471
|
return n;
|
3474
3472
|
}
|
3475
3473
|
}
|
3476
3474
|
function It(e, ...t) {
|
3477
|
-
delete I[e],
|
3475
|
+
delete I[e], z.update((r) => (r[e] = Or.all([r[e] || {}, ...t]), r));
|
3478
3476
|
}
|
3479
|
-
|
3480
|
-
[
|
3477
|
+
X(
|
3478
|
+
[z],
|
3481
3479
|
([e]) => Object.keys(e)
|
3482
3480
|
);
|
3483
|
-
|
3484
|
-
const
|
3485
|
-
function
|
3486
|
-
|
3481
|
+
z.subscribe((e) => $e = e);
|
3482
|
+
const oe = {};
|
3483
|
+
function Pn(e, t) {
|
3484
|
+
oe[e].delete(t), oe[e].size === 0 && delete oe[e];
|
3487
3485
|
}
|
3488
|
-
function
|
3489
|
-
return
|
3486
|
+
function wt(e) {
|
3487
|
+
return oe[e];
|
3490
3488
|
}
|
3491
|
-
function
|
3492
|
-
return
|
3493
|
-
const r =
|
3489
|
+
function On(e) {
|
3490
|
+
return ce(e).map((t) => {
|
3491
|
+
const r = wt(t);
|
3494
3492
|
return [t, r ? [...r] : []];
|
3495
3493
|
}).filter(([, t]) => t.length > 0);
|
3496
3494
|
}
|
3497
|
-
function
|
3498
|
-
return e == null ? !1 :
|
3495
|
+
function Ie(e) {
|
3496
|
+
return e == null ? !1 : ce(e).some(
|
3499
3497
|
(t) => {
|
3500
3498
|
var r;
|
3501
|
-
return (r =
|
3499
|
+
return (r = wt(t)) == null ? void 0 : r.size;
|
3502
3500
|
}
|
3503
3501
|
);
|
3504
3502
|
}
|
3505
|
-
function
|
3503
|
+
function Nn(e, t) {
|
3506
3504
|
return Promise.all(
|
3507
|
-
t.map((n) => (
|
3505
|
+
t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
|
3508
3506
|
).then((n) => It(e, ...n));
|
3509
3507
|
}
|
3510
|
-
const
|
3511
|
-
function
|
3512
|
-
if (!
|
3513
|
-
return e in
|
3514
|
-
const t =
|
3515
|
-
return
|
3508
|
+
const Z = {};
|
3509
|
+
function Lt(e) {
|
3510
|
+
if (!Ie(e))
|
3511
|
+
return e in Z ? Z[e] : Promise.resolve();
|
3512
|
+
const t = On(e);
|
3513
|
+
return Z[e] = Promise.all(
|
3516
3514
|
t.map(
|
3517
|
-
([r, n]) =>
|
3515
|
+
([r, n]) => Nn(r, n)
|
3518
3516
|
)
|
3519
3517
|
).then(() => {
|
3520
|
-
if (
|
3521
|
-
return
|
3522
|
-
delete
|
3523
|
-
}),
|
3518
|
+
if (Ie(e))
|
3519
|
+
return Lt(e);
|
3520
|
+
delete Z[e];
|
3521
|
+
}), Z[e];
|
3524
3522
|
}
|
3525
3523
|
const In = {
|
3526
3524
|
number: {
|
@@ -3551,150 +3549,150 @@ const In = {
|
|
3551
3549
|
timeZoneName: "short"
|
3552
3550
|
}
|
3553
3551
|
}
|
3554
|
-
},
|
3552
|
+
}, wn = {
|
3555
3553
|
fallbackLocale: null,
|
3556
3554
|
loadingDelay: 200,
|
3557
3555
|
formats: In,
|
3558
3556
|
warnOnMissingMessages: !0,
|
3559
3557
|
handleMissingMessage: void 0,
|
3560
3558
|
ignoreTag: !0
|
3561
|
-
},
|
3562
|
-
function
|
3563
|
-
return
|
3564
|
-
}
|
3565
|
-
const
|
3566
|
-
var
|
3567
|
-
for (var r in t
|
3568
|
-
|
3569
|
-
if (
|
3570
|
-
for (var r of
|
3571
|
-
|
3559
|
+
}, Ln = wn;
|
3560
|
+
function k() {
|
3561
|
+
return Ln;
|
3562
|
+
}
|
3563
|
+
const _e = he(!1);
|
3564
|
+
var Cn = Object.defineProperty, Mn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, tt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, rt = (e, t, r) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gn = (e, t) => {
|
3565
|
+
for (var r in t)
|
3566
|
+
$n.call(t, r) && rt(e, r, t[r]);
|
3567
|
+
if (tt)
|
3568
|
+
for (var r of tt(t))
|
3569
|
+
Un.call(t, r) && rt(e, r, t[r]);
|
3572
3570
|
return e;
|
3573
|
-
},
|
3574
|
-
let
|
3575
|
-
const
|
3576
|
-
function
|
3571
|
+
}, Dn = (e, t) => Mn(e, Rn(t));
|
3572
|
+
let we;
|
3573
|
+
const ae = he(null);
|
3574
|
+
function nt(e) {
|
3577
3575
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3578
3576
|
}
|
3579
|
-
function
|
3580
|
-
const r =
|
3581
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3577
|
+
function ce(e, t = k().fallbackLocale) {
|
3578
|
+
const r = nt(e);
|
3579
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...nt(t)])] : r;
|
3582
3580
|
}
|
3583
|
-
function
|
3584
|
-
return
|
3581
|
+
function M() {
|
3582
|
+
return we != null ? we : void 0;
|
3585
3583
|
}
|
3586
|
-
|
3587
|
-
|
3584
|
+
ae.subscribe((e) => {
|
3585
|
+
we = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3588
3586
|
});
|
3589
|
-
const
|
3590
|
-
if (e &&
|
3591
|
-
const { loadingDelay: t } =
|
3587
|
+
const Fn = (e) => {
|
3588
|
+
if (e && Sn(e) && Ie(e)) {
|
3589
|
+
const { loadingDelay: t } = k();
|
3592
3590
|
let r;
|
3593
|
-
return typeof window != "undefined" &&
|
3594
|
-
() =>
|
3591
|
+
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
3592
|
+
() => _e.set(!0),
|
3595
3593
|
t
|
3596
|
-
) :
|
3597
|
-
|
3594
|
+
) : _e.set(!0), Lt(e).then(() => {
|
3595
|
+
ae.set(e);
|
3598
3596
|
}).finally(() => {
|
3599
|
-
clearTimeout(r),
|
3597
|
+
clearTimeout(r), _e.set(!1);
|
3600
3598
|
});
|
3601
3599
|
}
|
3602
|
-
return
|
3603
|
-
},
|
3604
|
-
set:
|
3605
|
-
}),
|
3600
|
+
return ae.set(e);
|
3601
|
+
}, w = Dn(Gn({}, ae), {
|
3602
|
+
set: Fn
|
3603
|
+
}), pe = (e) => {
|
3606
3604
|
const t = /* @__PURE__ */ Object.create(null);
|
3607
3605
|
return (n) => {
|
3608
3606
|
const i = JSON.stringify(n);
|
3609
3607
|
return i in t ? t[i] : t[i] = e(n);
|
3610
3608
|
};
|
3611
3609
|
};
|
3612
|
-
var
|
3610
|
+
var jn = Object.defineProperty, ue = Object.getOwnPropertySymbols, Ct = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, it = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t) => {
|
3613
3611
|
for (var r in t || (t = {}))
|
3614
|
-
|
3615
|
-
if (
|
3616
|
-
for (var r of
|
3617
|
-
|
3612
|
+
Ct.call(t, r) && it(e, r, t[r]);
|
3613
|
+
if (ue)
|
3614
|
+
for (var r of ue(t))
|
3615
|
+
Mt.call(t, r) && it(e, r, t[r]);
|
3618
3616
|
return e;
|
3619
|
-
},
|
3617
|
+
}, W = (e, t) => {
|
3620
3618
|
var r = {};
|
3621
3619
|
for (var n in e)
|
3622
|
-
|
3623
|
-
if (e != null &&
|
3624
|
-
for (var n of
|
3625
|
-
t.indexOf(n) < 0 &&
|
3620
|
+
Ct.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3621
|
+
if (e != null && ue)
|
3622
|
+
for (var n of ue(e))
|
3623
|
+
t.indexOf(n) < 0 && Mt.call(e, n) && (r[n] = e[n]);
|
3626
3624
|
return r;
|
3627
3625
|
};
|
3628
|
-
const
|
3629
|
-
const { formats: r } =
|
3626
|
+
const K = (e, t) => {
|
3627
|
+
const { formats: r } = k();
|
3630
3628
|
if (e in r && t in r[e])
|
3631
3629
|
return r[e][t];
|
3632
3630
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3633
|
-
},
|
3631
|
+
}, Vn = pe(
|
3634
3632
|
(e) => {
|
3635
|
-
var t = e, { locale: r, format: n } = t, i =
|
3633
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3636
3634
|
if (r == null)
|
3637
3635
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3638
|
-
return n && (i =
|
3636
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
3639
3637
|
}
|
3640
|
-
),
|
3638
|
+
), kn = pe(
|
3641
3639
|
(e) => {
|
3642
|
-
var t = e, { locale: r, format: n } = t, i =
|
3640
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3643
3641
|
if (r == null)
|
3644
3642
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3645
|
-
return n ? i =
|
3643
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
3646
3644
|
}
|
3647
|
-
),
|
3645
|
+
), Xn = pe(
|
3648
3646
|
(e) => {
|
3649
|
-
var t = e, { locale: r, format: n } = t, i =
|
3647
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3650
3648
|
if (r == null)
|
3651
3649
|
throw new Error(
|
3652
3650
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3653
3651
|
);
|
3654
|
-
return n ? i =
|
3652
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
3655
3653
|
}
|
3656
|
-
),
|
3654
|
+
), zn = (e = {}) => {
|
3657
3655
|
var t = e, {
|
3658
|
-
locale: r =
|
3659
|
-
} = t, n =
|
3656
|
+
locale: r = M()
|
3657
|
+
} = t, n = W(t, [
|
3660
3658
|
"locale"
|
3661
3659
|
]);
|
3662
|
-
return
|
3663
|
-
},
|
3660
|
+
return Vn(Ue({ locale: r }, n));
|
3661
|
+
}, Wn = (e = {}) => {
|
3664
3662
|
var t = e, {
|
3665
|
-
locale: r =
|
3666
|
-
} = t, n =
|
3663
|
+
locale: r = M()
|
3664
|
+
} = t, n = W(t, [
|
3667
3665
|
"locale"
|
3668
3666
|
]);
|
3669
|
-
return
|
3670
|
-
},
|
3667
|
+
return kn(Ue({ locale: r }, n));
|
3668
|
+
}, Zn = (e = {}) => {
|
3671
3669
|
var t = e, {
|
3672
|
-
locale: r =
|
3673
|
-
} = t, n =
|
3670
|
+
locale: r = M()
|
3671
|
+
} = t, n = W(t, [
|
3674
3672
|
"locale"
|
3675
3673
|
]);
|
3676
|
-
return
|
3677
|
-
},
|
3674
|
+
return Xn(Ue({ locale: r }, n));
|
3675
|
+
}, Qn = pe(
|
3678
3676
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3679
|
-
(e, t =
|
3680
|
-
ignoreTag:
|
3677
|
+
(e, t = M()) => new vn(e, t, k().formats, {
|
3678
|
+
ignoreTag: k().ignoreTag
|
3681
3679
|
})
|
3682
|
-
),
|
3680
|
+
), Jn = (e, t = {}) => {
|
3683
3681
|
var r, n, i, s;
|
3684
3682
|
let o = t;
|
3685
3683
|
typeof e == "object" && (o = e, e = o.id);
|
3686
3684
|
const {
|
3687
3685
|
values: a,
|
3688
|
-
locale: h =
|
3686
|
+
locale: h = M(),
|
3689
3687
|
default: u
|
3690
3688
|
} = o;
|
3691
3689
|
if (h == null)
|
3692
3690
|
throw new Error(
|
3693
3691
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3694
3692
|
);
|
3695
|
-
let l =
|
3693
|
+
let l = Ot(e, h);
|
3696
3694
|
if (!l)
|
3697
|
-
l = (s = (i = (n = (r =
|
3695
|
+
l = (s = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
3698
3696
|
else if (typeof l != "string")
|
3699
3697
|
return console.warn(
|
3700
3698
|
`[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.`
|
@@ -3703,7 +3701,7 @@ const ee = (e, t) => {
|
|
3703
3701
|
return l;
|
3704
3702
|
let c = l;
|
3705
3703
|
try {
|
3706
|
-
c =
|
3704
|
+
c = Qn(l, h).format(a);
|
3707
3705
|
} catch (f) {
|
3708
3706
|
f instanceof Error && console.warn(
|
3709
3707
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3711,23 +3709,23 @@ const ee = (e, t) => {
|
|
3711
3709
|
);
|
3712
3710
|
}
|
3713
3711
|
return c;
|
3714
|
-
},
|
3715
|
-
|
3716
|
-
|
3717
|
-
|
3718
|
-
|
3719
|
-
function
|
3720
|
-
|
3721
|
-
r == null && (
|
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()) => Ot(e, t), ti = X([w, z], () => Jn);
|
3713
|
+
X([w], () => qn);
|
3714
|
+
X([w], () => Yn);
|
3715
|
+
X([w], () => Kn);
|
3716
|
+
X([w, z], () => ei);
|
3717
|
+
function ri({ withLocale: e, translations: t }) {
|
3718
|
+
w.subscribe((r) => {
|
3719
|
+
r == null && (z.set(t), w.set(e));
|
3722
3720
|
});
|
3723
3721
|
}
|
3724
|
-
function
|
3722
|
+
function st(e, t) {
|
3725
3723
|
It(e, t);
|
3726
3724
|
}
|
3727
|
-
function
|
3728
|
-
|
3725
|
+
function ni(e) {
|
3726
|
+
w.set(e);
|
3729
3727
|
}
|
3730
|
-
const
|
3728
|
+
const ot = {
|
3731
3729
|
en: {
|
3732
3730
|
bets: "bets"
|
3733
3731
|
},
|
@@ -3753,81 +3751,81 @@ const at = {
|
|
3753
3751
|
bets: "bets"
|
3754
3752
|
}
|
3755
3753
|
};
|
3756
|
-
function
|
3757
|
-
|
3754
|
+
function ii(e) {
|
3755
|
+
Wt(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}');
|
3758
3756
|
}
|
3759
|
-
function
|
3757
|
+
function si(e) {
|
3760
3758
|
let t, r, n, i, s;
|
3761
3759
|
return {
|
3762
3760
|
c() {
|
3763
|
-
t =
|
3761
|
+
t = Q("div"), r = Q("div"), n = Q("span"), i = Jt(
|
3764
3762
|
/*progressText*/
|
3765
3763
|
e[3]
|
3766
|
-
),
|
3767
|
-
e[4]),
|
3764
|
+
), C(n, "part", "progressText"), C(r, "class", s = "stepBar " + /*curTatus*/
|
3765
|
+
e[4]), C(r, "part", "stepBar"), C(t, "class", "general-icon-progress-bar"), C(t, "part", "totalBar");
|
3768
3766
|
},
|
3769
3767
|
m(o, a) {
|
3770
|
-
|
3768
|
+
lt(o, t, a), ne(t, r), ne(r, n), ne(n, i), e[13](n), e[14](r), e[15](t);
|
3771
3769
|
},
|
3772
3770
|
p(o, [a]) {
|
3773
3771
|
a & /*progressText*/
|
3774
|
-
8 &&
|
3772
|
+
8 && Yt(
|
3775
3773
|
i,
|
3776
3774
|
/*progressText*/
|
3777
3775
|
o[3]
|
3778
3776
|
), a & /*curTatus*/
|
3779
3777
|
16 && s !== (s = "stepBar " + /*curTatus*/
|
3780
|
-
o[4]) &&
|
3778
|
+
o[4]) && C(r, "class", s);
|
3781
3779
|
},
|
3782
3780
|
i: B,
|
3783
3781
|
o: B,
|
3784
3782
|
d(o) {
|
3785
|
-
o &&
|
3783
|
+
o && Ce(t), e[13](null), e[14](null), e[15](null);
|
3786
3784
|
}
|
3787
3785
|
};
|
3788
3786
|
}
|
3789
|
-
function
|
3787
|
+
function oi(e, t, r) {
|
3790
3788
|
let n;
|
3791
|
-
|
3792
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status: h } = t, { translationurl: u = "" } = t, { progressfractiondigit: l = 1 } = t, { triggerreset: c } = t, f,
|
3793
|
-
|
3794
|
-
const
|
3795
|
-
fetch(u).then((
|
3796
|
-
Object.keys(
|
3797
|
-
|
3789
|
+
zt(e, ti, (p) => r(20, n = p));
|
3790
|
+
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status: h } = t, { translationurl: u = "" } = t, { progressfractiondigit: l = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, A, S, v = "0px", N = "active";
|
3791
|
+
ri({ withLocale: "en", translations: {} });
|
3792
|
+
const O = () => {
|
3793
|
+
fetch(u).then((L) => L.json()).then((L) => {
|
3794
|
+
Object.keys(L).forEach((Ge) => {
|
3795
|
+
st(Ge, L[Ge]);
|
3798
3796
|
});
|
3799
|
-
}).catch((
|
3800
|
-
console.log(
|
3797
|
+
}).catch((L) => {
|
3798
|
+
console.log(L);
|
3801
3799
|
});
|
3802
3800
|
};
|
3803
|
-
Object.keys(
|
3804
|
-
|
3801
|
+
Object.keys(ot).forEach((p) => {
|
3802
|
+
st(p, ot[p]);
|
3805
3803
|
});
|
3806
3804
|
const R = () => {
|
3807
|
-
|
3808
|
-
},
|
3805
|
+
ni(a);
|
3806
|
+
}, te = () => {
|
3809
3807
|
let p = (i / s * 100).toFixed(l);
|
3810
3808
|
setTimeout(
|
3811
3809
|
() => {
|
3812
3810
|
o || o === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
3813
3811
|
},
|
3814
3812
|
y ? 573 : 0
|
3815
|
-
), p == 0 || p == 100 ? (
|
3813
|
+
), 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);
|
3816
3814
|
}, Rt = () => {
|
3817
|
-
r(4,
|
3815
|
+
r(4, N = h == "active" ? "" : "inactive");
|
3818
3816
|
};
|
3819
|
-
function
|
3820
|
-
|
3821
|
-
|
3817
|
+
function $t(p) {
|
3818
|
+
q[p ? "unshift" : "push"](() => {
|
3819
|
+
x = p, r(1, x);
|
3822
3820
|
});
|
3823
3821
|
}
|
3824
|
-
function
|
3825
|
-
|
3826
|
-
|
3822
|
+
function Ut(p) {
|
3823
|
+
q[p ? "unshift" : "push"](() => {
|
3824
|
+
g = p, r(2, g);
|
3827
3825
|
});
|
3828
3826
|
}
|
3829
|
-
function
|
3830
|
-
|
3827
|
+
function Gt(p) {
|
3828
|
+
q[p ? "unshift" : "push"](() => {
|
3831
3829
|
f = p, r(0, f);
|
3832
3830
|
});
|
3833
3831
|
}
|
@@ -3836,17 +3834,17 @@ function ai(e, t, r) {
|
|
3836
3834
|
}, e.$$.update = () => {
|
3837
3835
|
e.$$.dirty & /*triggerreset, total*/
|
3838
3836
|
4160 && c && s && setTimeout(() => {
|
3839
|
-
|
3837
|
+
te();
|
3840
3838
|
}), e.$$.dirty & /*lang*/
|
3841
3839
|
256 && a && R(), e.$$.dirty & /*status*/
|
3842
3840
|
512 && h && Rt(), e.$$.dirty & /*translationurl*/
|
3843
|
-
1024 && u &&
|
3841
|
+
1024 && u && O();
|
3844
3842
|
}, [
|
3845
3843
|
f,
|
3844
|
+
x,
|
3846
3845
|
g,
|
3847
|
-
d,
|
3848
3846
|
y,
|
3849
|
-
|
3847
|
+
N,
|
3850
3848
|
i,
|
3851
3849
|
s,
|
3852
3850
|
o,
|
@@ -3855,19 +3853,19 @@ function ai(e, t, r) {
|
|
3855
3853
|
u,
|
3856
3854
|
l,
|
3857
3855
|
c,
|
3856
|
+
$t,
|
3858
3857
|
Ut,
|
3859
|
-
Gt
|
3860
|
-
Dt
|
3858
|
+
Gt
|
3861
3859
|
];
|
3862
3860
|
}
|
3863
|
-
class
|
3861
|
+
class ai extends fr {
|
3864
3862
|
constructor(t) {
|
3865
|
-
super(),
|
3863
|
+
super(), hr(
|
3866
3864
|
this,
|
3867
3865
|
t,
|
3868
|
-
ai,
|
3869
3866
|
oi,
|
3870
|
-
|
3867
|
+
si,
|
3868
|
+
ut,
|
3871
3869
|
{
|
3872
3870
|
currentstep: 5,
|
3873
3871
|
total: 6,
|
@@ -3878,7 +3876,7 @@ class ui extends cr {
|
|
3878
3876
|
progressfractiondigit: 11,
|
3879
3877
|
triggerreset: 12
|
3880
3878
|
},
|
3881
|
-
|
3879
|
+
ii
|
3882
3880
|
);
|
3883
3881
|
}
|
3884
3882
|
get currentstep() {
|
@@ -3930,7 +3928,7 @@ class ui extends cr {
|
|
3930
3928
|
this.$$set({ triggerreset: t }), P();
|
3931
3929
|
}
|
3932
3930
|
}
|
3933
|
-
|
3931
|
+
lr(ai, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3934
3932
|
export {
|
3935
|
-
|
3933
|
+
ai as default
|
3936
3934
|
};
|