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