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