@everymatrix/casino-403 1.55.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Casino403-BqAXh92-.cjs +16 -0
- package/components/{Casino403-k0y6zIsX.js → Casino403-D5S7gC1s.js} +662 -610
- package/components/{Casino403-DJGq5-eq.js → Casino403-DQe_kvMd.js} +643 -591
- package/es2015/casino-403.cjs +1 -1
- package/es2015/casino-403.js +1 -1
- package/esnext/casino-403.js +1 -1
- package/package.json +1 -1
- package/components/Casino403-DRqaOHTH.cjs +0 -3
@@ -2,30 +2,30 @@ var Ut = Object.defineProperty, Gt = Object.defineProperties;
|
|
2
2
|
var Ft = Object.getOwnPropertyDescriptors;
|
3
3
|
var Ve = Object.getOwnPropertySymbols;
|
4
4
|
var jt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable;
|
5
|
-
var
|
5
|
+
var ge = (e, t, r) => t in e ? Ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ke = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
jt.call(t, r) &&
|
7
|
+
jt.call(t, r) && ge(e, r, t[r]);
|
8
8
|
if (Ve)
|
9
9
|
for (var r of Ve(t))
|
10
|
-
Vt.call(t, r) &&
|
10
|
+
Vt.call(t, r) && ge(e, r, t[r]);
|
11
11
|
return e;
|
12
12
|
}, Xe = (e, t) => Gt(e, Ft(t));
|
13
|
-
var
|
13
|
+
var S = (e, t, r) => (ge(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
14
|
var ze = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var s = (h) => {
|
16
16
|
try {
|
17
|
-
|
18
|
-
} catch (
|
19
|
-
i(
|
17
|
+
u(r.next(h));
|
18
|
+
} catch (o) {
|
19
|
+
i(o);
|
20
20
|
}
|
21
|
-
},
|
21
|
+
}, a = (h) => {
|
22
22
|
try {
|
23
|
-
|
24
|
-
} catch (
|
25
|
-
i(
|
23
|
+
u(r.throw(h));
|
24
|
+
} catch (o) {
|
25
|
+
i(o);
|
26
26
|
}
|
27
|
-
},
|
28
|
-
|
27
|
+
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, a);
|
28
|
+
u((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
30
|
function w() {
|
31
31
|
}
|
@@ -35,10 +35,10 @@ function lt(e) {
|
|
35
35
|
function We() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
|
-
function
|
38
|
+
function te(e) {
|
39
39
|
e.forEach(lt);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function Re(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
44
|
function ct(e, t) {
|
@@ -59,7 +59,7 @@ function ft(e, ...t) {
|
|
59
59
|
function Xt(e, t, r) {
|
60
60
|
e.$$.on_destroy.push(ft(t, r));
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function _(e, t) {
|
63
63
|
e.appendChild(t);
|
64
64
|
}
|
65
65
|
function zt(e, t, r) {
|
@@ -70,7 +70,8 @@ function zt(e, t, r) {
|
|
70
70
|
}
|
71
71
|
}
|
72
72
|
function Wt(e) {
|
73
|
-
if (!e)
|
73
|
+
if (!e)
|
74
|
+
return document;
|
74
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
75
76
|
return t && /** @type {ShadowRoot} */
|
76
77
|
t.host ? (
|
@@ -79,7 +80,7 @@ function Wt(e) {
|
|
79
80
|
) : e.ownerDocument;
|
80
81
|
}
|
81
82
|
function Zt(e, t) {
|
82
|
-
return
|
83
|
+
return _(
|
83
84
|
/** @type {Document} */
|
84
85
|
e.head || e,
|
85
86
|
t
|
@@ -88,20 +89,20 @@ function Zt(e, t) {
|
|
88
89
|
function mt(e, t, r) {
|
89
90
|
e.insertBefore(t, r || null);
|
90
91
|
}
|
91
|
-
function
|
92
|
+
function De(e) {
|
92
93
|
e.parentNode && e.parentNode.removeChild(e);
|
93
94
|
}
|
94
95
|
function C(e) {
|
95
96
|
return document.createElement(e);
|
96
97
|
}
|
97
|
-
function
|
98
|
+
function R(e) {
|
98
99
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
99
100
|
}
|
100
|
-
function
|
101
|
+
function ie(e) {
|
101
102
|
return document.createTextNode(e);
|
102
103
|
}
|
103
|
-
function
|
104
|
-
return
|
104
|
+
function de() {
|
105
|
+
return ie(" ");
|
105
106
|
}
|
106
107
|
function qt(e, t, r, n) {
|
107
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
@@ -112,7 +113,7 @@ function v(e, t, r) {
|
|
112
113
|
function Qt(e) {
|
113
114
|
return Array.from(e.childNodes);
|
114
115
|
}
|
115
|
-
function
|
116
|
+
function be(e, t) {
|
116
117
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
117
118
|
t);
|
118
119
|
}
|
@@ -125,79 +126,88 @@ function Jt(e) {
|
|
125
126
|
}
|
126
127
|
), t;
|
127
128
|
}
|
128
|
-
let
|
129
|
+
let Y;
|
129
130
|
function J(e) {
|
130
|
-
|
131
|
+
Y = e;
|
132
|
+
}
|
133
|
+
function Yt() {
|
134
|
+
if (!Y)
|
135
|
+
throw new Error("Function called outside component initialization");
|
136
|
+
return Y;
|
131
137
|
}
|
132
|
-
|
138
|
+
function Kt(e) {
|
139
|
+
Yt().$$.on_mount.push(e);
|
140
|
+
}
|
141
|
+
const G = [], Be = [];
|
133
142
|
let F = [];
|
134
|
-
const Ze = [],
|
135
|
-
let
|
136
|
-
function
|
137
|
-
|
143
|
+
const Ze = [], er = /* @__PURE__ */ Promise.resolve();
|
144
|
+
let Se = !1;
|
145
|
+
function tr() {
|
146
|
+
Se || (Se = !0, er.then($));
|
138
147
|
}
|
139
|
-
function
|
148
|
+
function Pe(e) {
|
140
149
|
F.push(e);
|
141
150
|
}
|
142
|
-
const
|
143
|
-
let
|
144
|
-
function
|
145
|
-
if (
|
151
|
+
const ye = /* @__PURE__ */ new Set();
|
152
|
+
let D = 0;
|
153
|
+
function $() {
|
154
|
+
if (D !== 0)
|
146
155
|
return;
|
147
|
-
const e =
|
156
|
+
const e = Y;
|
148
157
|
do {
|
149
158
|
try {
|
150
|
-
for (;
|
151
|
-
const t =
|
152
|
-
|
159
|
+
for (; D < G.length; ) {
|
160
|
+
const t = G[D];
|
161
|
+
D++, J(t), rr(t.$$);
|
153
162
|
}
|
154
163
|
} catch (t) {
|
155
|
-
throw
|
164
|
+
throw G.length = 0, D = 0, t;
|
156
165
|
}
|
157
|
-
for (J(null),
|
166
|
+
for (J(null), G.length = 0, D = 0; Be.length; )
|
167
|
+
Be.pop()();
|
158
168
|
for (let t = 0; t < F.length; t += 1) {
|
159
169
|
const r = F[t];
|
160
|
-
|
170
|
+
ye.has(r) || (ye.add(r), r());
|
161
171
|
}
|
162
172
|
F.length = 0;
|
163
|
-
} while (
|
173
|
+
} while (G.length);
|
164
174
|
for (; Ze.length; )
|
165
175
|
Ze.pop()();
|
166
|
-
|
176
|
+
Se = !1, ye.clear(), J(e);
|
167
177
|
}
|
168
|
-
function
|
178
|
+
function rr(e) {
|
169
179
|
if (e.fragment !== null) {
|
170
|
-
e.update(),
|
180
|
+
e.update(), te(e.before_update);
|
171
181
|
const t = e.dirty;
|
172
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
182
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Pe);
|
173
183
|
}
|
174
184
|
}
|
175
|
-
function
|
185
|
+
function nr(e) {
|
176
186
|
const t = [], r = [];
|
177
187
|
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
178
188
|
}
|
179
|
-
const
|
180
|
-
function
|
181
|
-
e && e.i && (
|
189
|
+
const ir = /* @__PURE__ */ new Set();
|
190
|
+
function sr(e, t) {
|
191
|
+
e && e.i && (ir.delete(e), e.i(t));
|
182
192
|
}
|
183
|
-
function
|
193
|
+
function or(e, t, r) {
|
184
194
|
const { fragment: n, after_update: i } = e.$$;
|
185
|
-
n && n.m(t, r),
|
186
|
-
const s = e.$$.on_mount.map(lt).filter(
|
187
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
188
|
-
}), i.forEach(
|
195
|
+
n && n.m(t, r), Pe(() => {
|
196
|
+
const s = e.$$.on_mount.map(lt).filter(Re);
|
197
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
198
|
+
}), i.forEach(Pe);
|
189
199
|
}
|
190
|
-
function
|
200
|
+
function ar(e, t) {
|
191
201
|
const r = e.$$;
|
192
|
-
r.fragment !== null && (
|
202
|
+
r.fragment !== null && (nr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
193
203
|
}
|
194
|
-
function
|
195
|
-
e.$$.dirty[0] === -1 && (
|
204
|
+
function ur(e, t) {
|
205
|
+
e.$$.dirty[0] === -1 && (G.push(e), tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
196
206
|
}
|
197
|
-
function
|
198
|
-
const h =
|
207
|
+
function hr(e, t, r, n, i, s, a = null, u = [-1]) {
|
208
|
+
const h = Y;
|
199
209
|
J(e);
|
200
|
-
const
|
210
|
+
const o = e.$$ = {
|
201
211
|
fragment: null,
|
202
212
|
ctx: [],
|
203
213
|
// state
|
@@ -214,22 +224,22 @@ function ar(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
214
224
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
215
225
|
// everything else
|
216
226
|
callbacks: We(),
|
217
|
-
dirty:
|
227
|
+
dirty: u,
|
218
228
|
skip_bound: !1,
|
219
229
|
root: t.target || h.$$.root
|
220
230
|
};
|
221
|
-
|
231
|
+
a && a(o.root);
|
222
232
|
let l = !1;
|
223
|
-
if (
|
233
|
+
if (o.ctx = r ? r(e, t.props || {}, (c, f, ...b) => {
|
224
234
|
const y = b.length ? b[0] : f;
|
225
|
-
return
|
226
|
-
}) : [],
|
235
|
+
return o.ctx && i(o.ctx[c], o.ctx[c] = y) && (!o.skip_bound && o.bound[c] && o.bound[c](y), l && ur(e, c)), f;
|
236
|
+
}) : [], o.update(), l = !0, te(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
|
227
237
|
if (t.hydrate) {
|
228
238
|
const c = Qt(t.target);
|
229
|
-
|
239
|
+
o.fragment && o.fragment.l(c), c.forEach(De);
|
230
240
|
} else
|
231
|
-
|
232
|
-
t.intro &&
|
241
|
+
o.fragment && o.fragment.c();
|
242
|
+
t.intro && sr(e.$$.fragment), or(e, t.target, t.anchor), $();
|
233
243
|
}
|
234
244
|
J(h);
|
235
245
|
}
|
@@ -238,23 +248,23 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
238
248
|
constructor(t, r, n) {
|
239
249
|
super();
|
240
250
|
/** The Svelte component constructor */
|
241
|
-
|
251
|
+
S(this, "$$ctor");
|
242
252
|
/** Slots */
|
243
|
-
|
253
|
+
S(this, "$$s");
|
244
254
|
/** The Svelte component instance */
|
245
|
-
|
255
|
+
S(this, "$$c");
|
246
256
|
/** Whether or not the custom element is connected */
|
247
|
-
|
257
|
+
S(this, "$$cn", !1);
|
248
258
|
/** Component props data */
|
249
|
-
|
259
|
+
S(this, "$$d", {});
|
250
260
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
251
|
-
|
261
|
+
S(this, "$$r", !1);
|
252
262
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
253
|
-
|
263
|
+
S(this, "$$p_d", {});
|
254
264
|
/** @type {Record<string, Function[]>} Event listeners */
|
255
|
-
|
265
|
+
S(this, "$$l", {});
|
256
266
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
257
|
-
|
267
|
+
S(this, "$$l_u", /* @__PURE__ */ new Map());
|
258
268
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
259
269
|
}
|
260
270
|
addEventListener(t, r, n) {
|
@@ -275,20 +285,20 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
275
285
|
if (this.$$cn = !0, !this.$$c) {
|
276
286
|
let t = function(s) {
|
277
287
|
return () => {
|
278
|
-
let
|
288
|
+
let a;
|
279
289
|
return {
|
280
290
|
c: function() {
|
281
|
-
|
291
|
+
a = C("slot"), s !== "default" && v(a, "name", s);
|
282
292
|
},
|
283
293
|
/**
|
284
294
|
* @param {HTMLElement} target
|
285
295
|
* @param {HTMLElement} [anchor]
|
286
296
|
*/
|
287
|
-
m: function(
|
288
|
-
mt(
|
297
|
+
m: function(o, l) {
|
298
|
+
mt(o, a, l);
|
289
299
|
},
|
290
|
-
d: function(
|
291
|
-
|
300
|
+
d: function(o) {
|
301
|
+
o && De(a);
|
292
302
|
}
|
293
303
|
};
|
294
304
|
};
|
@@ -299,8 +309,8 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
299
309
|
for (const s of this.$$s)
|
300
310
|
s in n && (r[s] = [t(s)]);
|
301
311
|
for (const s of this.attributes) {
|
302
|
-
const
|
303
|
-
|
312
|
+
const a = this.$$g_p(s.name);
|
313
|
+
a in this.$$d || (this.$$d[a] = se(a, s.value, this.$$p_d, "toProp"));
|
304
314
|
}
|
305
315
|
for (const s in this.$$p_d)
|
306
316
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
@@ -317,21 +327,21 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
317
327
|
this.$$r = !0;
|
318
328
|
for (const s in this.$$p_d)
|
319
329
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
320
|
-
const
|
330
|
+
const a = se(
|
321
331
|
s,
|
322
332
|
this.$$d[s],
|
323
333
|
this.$$p_d,
|
324
334
|
"toAttribute"
|
325
335
|
);
|
326
|
-
|
336
|
+
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
327
337
|
}
|
328
338
|
this.$$r = !1;
|
329
339
|
};
|
330
340
|
this.$$c.$$.after_update.push(i), i();
|
331
341
|
for (const s in this.$$l)
|
332
|
-
for (const
|
333
|
-
const
|
334
|
-
this.$$l_u.set(
|
342
|
+
for (const a of this.$$l[s]) {
|
343
|
+
const u = this.$$c.$on(s, a);
|
344
|
+
this.$$l_u.set(a, u);
|
335
345
|
}
|
336
346
|
this.$$l = {};
|
337
347
|
}
|
@@ -341,7 +351,7 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
341
351
|
// and setting attributes through setAttribute etc, this is helpful
|
342
352
|
attributeChangedCallback(t, r, n) {
|
343
353
|
var i;
|
344
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
354
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = se(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
345
355
|
}
|
346
356
|
disconnectedCallback() {
|
347
357
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -354,7 +364,7 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
354
364
|
) || t;
|
355
365
|
}
|
356
366
|
});
|
357
|
-
function
|
367
|
+
function se(e, t, r, n) {
|
358
368
|
var s;
|
359
369
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
360
370
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
@@ -384,38 +394,38 @@ function ie(e, t, r, n) {
|
|
384
394
|
return t;
|
385
395
|
}
|
386
396
|
}
|
387
|
-
function
|
388
|
-
let
|
397
|
+
function lr(e, t, r, n, i, s) {
|
398
|
+
let a = class extends pt {
|
389
399
|
constructor() {
|
390
400
|
super(e, r, i), this.$$p_d = t;
|
391
401
|
}
|
392
402
|
static get observedAttributes() {
|
393
403
|
return Object.keys(t).map(
|
394
|
-
(
|
404
|
+
(u) => (t[u].attribute || u).toLowerCase()
|
395
405
|
);
|
396
406
|
}
|
397
407
|
};
|
398
|
-
return Object.keys(t).forEach((
|
399
|
-
Object.defineProperty(
|
408
|
+
return Object.keys(t).forEach((u) => {
|
409
|
+
Object.defineProperty(a.prototype, u, {
|
400
410
|
get() {
|
401
|
-
return this.$$c &&
|
411
|
+
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
402
412
|
},
|
403
413
|
set(h) {
|
404
|
-
var
|
405
|
-
h =
|
414
|
+
var o;
|
415
|
+
h = se(u, h, t), this.$$d[u] = h, (o = this.$$c) == null || o.$set({ [u]: h });
|
406
416
|
}
|
407
417
|
});
|
408
|
-
}), n.forEach((
|
409
|
-
Object.defineProperty(
|
418
|
+
}), n.forEach((u) => {
|
419
|
+
Object.defineProperty(a.prototype, u, {
|
410
420
|
get() {
|
411
421
|
var h;
|
412
|
-
return (h = this.$$c) == null ? void 0 : h[
|
422
|
+
return (h = this.$$c) == null ? void 0 : h[u];
|
413
423
|
}
|
414
424
|
});
|
415
425
|
}), e.element = /** @type {any} */
|
416
|
-
|
426
|
+
a, a;
|
417
427
|
}
|
418
|
-
class
|
428
|
+
class cr {
|
419
429
|
constructor() {
|
420
430
|
/**
|
421
431
|
* ### PRIVATE API
|
@@ -424,7 +434,7 @@ class hr {
|
|
424
434
|
*
|
425
435
|
* @type {any}
|
426
436
|
*/
|
427
|
-
|
437
|
+
S(this, "$$");
|
428
438
|
/**
|
429
439
|
* ### PRIVATE API
|
430
440
|
*
|
@@ -432,11 +442,11 @@ class hr {
|
|
432
442
|
*
|
433
443
|
* @type {any}
|
434
444
|
*/
|
435
|
-
|
445
|
+
S(this, "$$set");
|
436
446
|
}
|
437
447
|
/** @returns {void} */
|
438
448
|
$destroy() {
|
439
|
-
|
449
|
+
ar(this, 1), this.$destroy = w;
|
440
450
|
}
|
441
451
|
/**
|
442
452
|
* @template {Extract<keyof Events, string>} K
|
@@ -445,7 +455,7 @@ class hr {
|
|
445
455
|
* @returns {() => void}
|
446
456
|
*/
|
447
457
|
$on(t, r) {
|
448
|
-
if (!
|
458
|
+
if (!Re(r))
|
449
459
|
return w;
|
450
460
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
451
461
|
return n.push(r), () => {
|
@@ -461,112 +471,112 @@ class hr {
|
|
461
471
|
this.$$set && !kt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
462
472
|
}
|
463
473
|
}
|
464
|
-
const
|
465
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
466
|
-
const
|
467
|
-
function
|
474
|
+
const fr = "4";
|
475
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fr);
|
476
|
+
const U = [];
|
477
|
+
function mr(e, t) {
|
468
478
|
return {
|
469
|
-
subscribe:
|
479
|
+
subscribe: le(e, t).subscribe
|
470
480
|
};
|
471
481
|
}
|
472
|
-
function
|
482
|
+
function le(e, t = w) {
|
473
483
|
let r;
|
474
484
|
const n = /* @__PURE__ */ new Set();
|
475
|
-
function i(
|
476
|
-
if (ct(e,
|
477
|
-
const h = !
|
478
|
-
for (const
|
479
|
-
|
485
|
+
function i(u) {
|
486
|
+
if (ct(e, u) && (e = u, r)) {
|
487
|
+
const h = !U.length;
|
488
|
+
for (const o of n)
|
489
|
+
o[1](), U.push(o, e);
|
480
490
|
if (h) {
|
481
|
-
for (let
|
482
|
-
|
483
|
-
|
491
|
+
for (let o = 0; o < U.length; o += 2)
|
492
|
+
U[o][0](U[o + 1]);
|
493
|
+
U.length = 0;
|
484
494
|
}
|
485
495
|
}
|
486
496
|
}
|
487
|
-
function s(
|
488
|
-
i(
|
497
|
+
function s(u) {
|
498
|
+
i(u(e));
|
489
499
|
}
|
490
|
-
function
|
491
|
-
const
|
492
|
-
return n.add(
|
493
|
-
n.delete(
|
500
|
+
function a(u, h = w) {
|
501
|
+
const o = [u, h];
|
502
|
+
return n.add(o), n.size === 1 && (r = t(i, s) || w), u(e), () => {
|
503
|
+
n.delete(o), n.size === 0 && r && (r(), r = null);
|
494
504
|
};
|
495
505
|
}
|
496
|
-
return { set: i, update: s, subscribe:
|
506
|
+
return { set: i, update: s, subscribe: a };
|
497
507
|
}
|
498
508
|
function z(e, t, r) {
|
499
509
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
500
510
|
if (!i.every(Boolean))
|
501
511
|
throw new Error("derived() expects stores as input, got a falsy value");
|
502
512
|
const s = t.length < 2;
|
503
|
-
return
|
513
|
+
return mr(r, (a, u) => {
|
504
514
|
let h = !1;
|
505
|
-
const
|
515
|
+
const o = [];
|
506
516
|
let l = 0, c = w;
|
507
517
|
const f = () => {
|
508
518
|
if (l)
|
509
519
|
return;
|
510
520
|
c();
|
511
|
-
const y = t(n ?
|
512
|
-
s ?
|
521
|
+
const y = t(n ? o[0] : o, a, u);
|
522
|
+
s ? a(y) : c = Re(y) ? y : w;
|
513
523
|
}, b = i.map(
|
514
|
-
(y,
|
524
|
+
(y, m) => ft(
|
515
525
|
y,
|
516
|
-
(
|
517
|
-
|
526
|
+
(E) => {
|
527
|
+
o[m] = E, l &= ~(1 << m), h && f();
|
518
528
|
},
|
519
529
|
() => {
|
520
|
-
l |= 1 <<
|
530
|
+
l |= 1 << m;
|
521
531
|
}
|
522
532
|
)
|
523
533
|
);
|
524
534
|
return h = !0, f(), function() {
|
525
|
-
|
535
|
+
te(b), c(), h = !1;
|
526
536
|
};
|
527
537
|
});
|
528
538
|
}
|
529
|
-
function
|
539
|
+
function pr(e) {
|
530
540
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
531
541
|
}
|
532
|
-
var
|
533
|
-
return
|
542
|
+
var gr = function(t) {
|
543
|
+
return dr(t) && !br(t);
|
534
544
|
};
|
535
|
-
function
|
545
|
+
function dr(e) {
|
536
546
|
return !!e && typeof e == "object";
|
537
547
|
}
|
538
|
-
function
|
548
|
+
function br(e) {
|
539
549
|
var t = Object.prototype.toString.call(e);
|
540
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
550
|
+
return t === "[object RegExp]" || t === "[object Date]" || vr(e);
|
541
551
|
}
|
542
|
-
var
|
543
|
-
function
|
544
|
-
return e.$$typeof ===
|
552
|
+
var yr = typeof Symbol == "function" && Symbol.for, xr = yr ? Symbol.for("react.element") : 60103;
|
553
|
+
function vr(e) {
|
554
|
+
return e.$$typeof === xr;
|
545
555
|
}
|
546
|
-
function
|
556
|
+
function Er(e) {
|
547
557
|
return Array.isArray(e) ? [] : {};
|
548
558
|
}
|
549
|
-
function
|
550
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? j(
|
559
|
+
function K(e, t) {
|
560
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(Er(e), e, t) : e;
|
551
561
|
}
|
552
|
-
function
|
562
|
+
function _r(e, t, r) {
|
553
563
|
return e.concat(t).map(function(n) {
|
554
|
-
return
|
564
|
+
return K(n, r);
|
555
565
|
});
|
556
566
|
}
|
557
|
-
function
|
567
|
+
function Hr(e, t) {
|
558
568
|
if (!t.customMerge)
|
559
569
|
return j;
|
560
570
|
var r = t.customMerge(e);
|
561
571
|
return typeof r == "function" ? r : j;
|
562
572
|
}
|
563
|
-
function
|
573
|
+
function Tr(e) {
|
564
574
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
565
575
|
return Object.propertyIsEnumerable.call(e, t);
|
566
576
|
}) : [];
|
567
577
|
}
|
568
578
|
function qe(e) {
|
569
|
-
return Object.keys(e).concat(
|
579
|
+
return Object.keys(e).concat(Tr(e));
|
570
580
|
}
|
571
581
|
function gt(e, t) {
|
572
582
|
try {
|
@@ -575,21 +585,21 @@ function gt(e, t) {
|
|
575
585
|
return !1;
|
576
586
|
}
|
577
587
|
}
|
578
|
-
function
|
588
|
+
function Br(e, t) {
|
579
589
|
return gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
580
590
|
}
|
581
|
-
function
|
591
|
+
function Sr(e, t, r) {
|
582
592
|
var n = {};
|
583
593
|
return r.isMergeableObject(e) && qe(e).forEach(function(i) {
|
584
|
-
n[i] =
|
594
|
+
n[i] = K(e[i], r);
|
585
595
|
}), qe(t).forEach(function(i) {
|
586
|
-
|
596
|
+
Br(e, i) || (gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
587
597
|
}), n;
|
588
598
|
}
|
589
599
|
function j(e, t, r) {
|
590
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
600
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _r, r.isMergeableObject = r.isMergeableObject || gr, r.cloneUnlessOtherwiseSpecified = K;
|
591
601
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
592
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
602
|
+
return s ? n ? r.arrayMerge(e, t, r) : Sr(e, t, r) : K(t, r);
|
593
603
|
}
|
594
604
|
j.all = function(t, r) {
|
595
605
|
if (!Array.isArray(t))
|
@@ -598,16 +608,31 @@ j.all = function(t, r) {
|
|
598
608
|
return j(n, i, r);
|
599
609
|
}, {});
|
600
610
|
};
|
601
|
-
var
|
602
|
-
const
|
611
|
+
var Pr = j, Ar = Pr;
|
612
|
+
const wr = /* @__PURE__ */ pr(Ar);
|
613
|
+
/*! *****************************************************************************
|
614
|
+
Copyright (c) Microsoft Corporation.
|
615
|
+
|
616
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
617
|
+
purpose with or without fee is hereby granted.
|
618
|
+
|
619
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
620
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
621
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
622
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
623
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
624
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
625
|
+
PERFORMANCE OF THIS SOFTWARE.
|
626
|
+
***************************************************************************** */
|
603
627
|
var Ae = function(e, t) {
|
604
628
|
return Ae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
605
629
|
r.__proto__ = n;
|
606
630
|
} || function(r, n) {
|
607
|
-
for (var i in n)
|
631
|
+
for (var i in n)
|
632
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
608
633
|
}, Ae(e, t);
|
609
634
|
};
|
610
|
-
function
|
635
|
+
function ce(e, t) {
|
611
636
|
if (typeof t != "function" && t !== null)
|
612
637
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
613
638
|
Ae(e, t);
|
@@ -620,36 +645,39 @@ var d = function() {
|
|
620
645
|
return d = Object.assign || function(t) {
|
621
646
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
622
647
|
r = arguments[n];
|
623
|
-
for (var s in r)
|
648
|
+
for (var s in r)
|
649
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
624
650
|
}
|
625
651
|
return t;
|
626
652
|
}, d.apply(this, arguments);
|
627
653
|
};
|
628
|
-
function
|
654
|
+
function Nr(e, t) {
|
629
655
|
var r = {};
|
630
|
-
for (var n in e)
|
656
|
+
for (var n in e)
|
657
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
631
658
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
632
659
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
633
660
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
634
661
|
return r;
|
635
662
|
}
|
636
|
-
function
|
637
|
-
if (
|
638
|
-
(
|
639
|
-
|
663
|
+
function xe(e, t, r) {
|
664
|
+
if (arguments.length === 2)
|
665
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
666
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
667
|
+
return e.concat(s || t);
|
640
668
|
}
|
641
|
-
function
|
642
|
-
var r = t && t.cache ? t.cache :
|
669
|
+
function ve(e, t) {
|
670
|
+
var r = t && t.cache ? t.cache : Mr, n = t && t.serializer ? t.serializer : $r, i = t && t.strategy ? t.strategy : Or;
|
643
671
|
return i(e, {
|
644
672
|
cache: r,
|
645
673
|
serializer: n
|
646
674
|
});
|
647
675
|
}
|
648
|
-
function
|
676
|
+
function Lr(e) {
|
649
677
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
650
678
|
}
|
651
679
|
function dt(e, t, r, n) {
|
652
|
-
var i =
|
680
|
+
var i = Lr(n) ? n : r(n), s = t.get(i);
|
653
681
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
654
682
|
}
|
655
683
|
function bt(e, t, r) {
|
@@ -659,17 +687,17 @@ function bt(e, t, r) {
|
|
659
687
|
function Ue(e, t, r, n, i) {
|
660
688
|
return r.bind(t, e, n, i);
|
661
689
|
}
|
662
|
-
function
|
690
|
+
function Or(e, t) {
|
663
691
|
var r = e.length === 1 ? dt : bt;
|
664
692
|
return Ue(e, this, r, t.cache.create(), t.serializer);
|
665
693
|
}
|
666
|
-
function
|
694
|
+
function Ir(e, t) {
|
667
695
|
return Ue(e, this, bt, t.cache.create(), t.serializer);
|
668
696
|
}
|
669
|
-
function
|
697
|
+
function Cr(e, t) {
|
670
698
|
return Ue(e, this, dt, t.cache.create(), t.serializer);
|
671
699
|
}
|
672
|
-
var
|
700
|
+
var $r = function() {
|
673
701
|
return JSON.stringify(arguments);
|
674
702
|
};
|
675
703
|
function Ge() {
|
@@ -681,13 +709,13 @@ Ge.prototype.get = function(e) {
|
|
681
709
|
Ge.prototype.set = function(e, t) {
|
682
710
|
this.cache[e] = t;
|
683
711
|
};
|
684
|
-
var
|
712
|
+
var Mr = {
|
685
713
|
create: function() {
|
686
714
|
return new Ge();
|
687
715
|
}
|
688
|
-
},
|
689
|
-
variadic:
|
690
|
-
monadic:
|
716
|
+
}, Ee = {
|
717
|
+
variadic: Ir,
|
718
|
+
monadic: Cr
|
691
719
|
}, p;
|
692
720
|
(function(e) {
|
693
721
|
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";
|
@@ -703,7 +731,7 @@ var V;
|
|
703
731
|
function Qe(e) {
|
704
732
|
return e.type === x.literal;
|
705
733
|
}
|
706
|
-
function
|
734
|
+
function Rr(e) {
|
707
735
|
return e.type === x.argument;
|
708
736
|
}
|
709
737
|
function yt(e) {
|
@@ -721,7 +749,7 @@ function Et(e) {
|
|
721
749
|
function _t(e) {
|
722
750
|
return e.type === x.plural;
|
723
751
|
}
|
724
|
-
function
|
752
|
+
function Dr(e) {
|
725
753
|
return e.type === x.pound;
|
726
754
|
}
|
727
755
|
function Ht(e) {
|
@@ -730,13 +758,13 @@ function Ht(e) {
|
|
730
758
|
function Tt(e) {
|
731
759
|
return !!(e && typeof e == "object" && e.type === V.number);
|
732
760
|
}
|
733
|
-
function
|
761
|
+
function we(e) {
|
734
762
|
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
735
763
|
}
|
736
|
-
var Bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
737
|
-
function
|
764
|
+
var Bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ur = /(?:[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;
|
765
|
+
function Gr(e) {
|
738
766
|
var t = {};
|
739
|
-
return e.replace(
|
767
|
+
return e.replace(Ur, function(r) {
|
740
768
|
var n = r.length;
|
741
769
|
switch (r[0]) {
|
742
770
|
case "G":
|
@@ -825,36 +853,36 @@ function Dr(e) {
|
|
825
853
|
return "";
|
826
854
|
}), t;
|
827
855
|
}
|
828
|
-
var
|
829
|
-
function
|
856
|
+
var Fr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
857
|
+
function jr(e) {
|
830
858
|
if (e.length === 0)
|
831
859
|
throw new Error("Number skeleton cannot be empty");
|
832
|
-
for (var t = e.split(
|
860
|
+
for (var t = e.split(Fr).filter(function(f) {
|
833
861
|
return f.length > 0;
|
834
862
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
835
|
-
var s = i[n],
|
836
|
-
if (
|
863
|
+
var s = i[n], a = s.split("/");
|
864
|
+
if (a.length === 0)
|
837
865
|
throw new Error("Invalid number skeleton");
|
838
|
-
for (var
|
839
|
-
var c = l[
|
866
|
+
for (var u = a[0], h = a.slice(1), o = 0, l = h; o < l.length; o++) {
|
867
|
+
var c = l[o];
|
840
868
|
if (c.length === 0)
|
841
869
|
throw new Error("Invalid number skeleton");
|
842
870
|
}
|
843
|
-
r.push({ stem:
|
871
|
+
r.push({ stem: u, options: h });
|
844
872
|
}
|
845
873
|
return r;
|
846
874
|
}
|
847
|
-
function
|
875
|
+
function Vr(e) {
|
848
876
|
return e.replace(/^(.*?)-/, "");
|
849
877
|
}
|
850
|
-
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, St = /^(@+)?(\+|#+)?[rs]?$/g,
|
878
|
+
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, St = /^(@+)?(\+|#+)?[rs]?$/g, kr = /(\*)(0+)|(#+)(0+)|(0+)/g, Pt = /^(0+)$/;
|
851
879
|
function Ye(e) {
|
852
880
|
var t = {};
|
853
881
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(St, function(r, n, i) {
|
854
882
|
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)), "";
|
855
883
|
}), t;
|
856
884
|
}
|
857
|
-
function
|
885
|
+
function At(e) {
|
858
886
|
switch (e) {
|
859
887
|
case "sign-auto":
|
860
888
|
return {
|
@@ -894,7 +922,7 @@ function Pt(e) {
|
|
894
922
|
};
|
895
923
|
}
|
896
924
|
}
|
897
|
-
function
|
925
|
+
function Xr(e) {
|
898
926
|
var t;
|
899
927
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
900
928
|
notation: "engineering"
|
@@ -902,17 +930,17 @@ function Vr(e) {
|
|
902
930
|
notation: "scientific"
|
903
931
|
}, e = e.slice(1)), t) {
|
904
932
|
var r = e.slice(0, 2);
|
905
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
933
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Pt.test(e))
|
906
934
|
throw new Error("Malformed concise eng/scientific notation");
|
907
935
|
t.minimumIntegerDigits = e.length;
|
908
936
|
}
|
909
937
|
return t;
|
910
938
|
}
|
911
939
|
function Ke(e) {
|
912
|
-
var t = {}, r =
|
940
|
+
var t = {}, r = At(e);
|
913
941
|
return r || t;
|
914
942
|
}
|
915
|
-
function
|
943
|
+
function zr(e) {
|
916
944
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
917
945
|
var i = n[r];
|
918
946
|
switch (i.stem) {
|
@@ -936,7 +964,7 @@ function kr(e) {
|
|
936
964
|
continue;
|
937
965
|
case "measure-unit":
|
938
966
|
case "unit":
|
939
|
-
t.style = "unit", t.unit =
|
967
|
+
t.style = "unit", t.unit = Vr(i.options[0]);
|
940
968
|
continue;
|
941
969
|
case "compact-short":
|
942
970
|
case "K":
|
@@ -947,13 +975,13 @@ function kr(e) {
|
|
947
975
|
t.notation = "compact", t.compactDisplay = "long";
|
948
976
|
continue;
|
949
977
|
case "scientific":
|
950
|
-
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(h,
|
951
|
-
return d(d({}, h), Ke(
|
978
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(h, o) {
|
979
|
+
return d(d({}, h), Ke(o));
|
952
980
|
}, {}));
|
953
981
|
continue;
|
954
982
|
case "engineering":
|
955
|
-
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(h,
|
956
|
-
return d(d({}, h), Ke(
|
983
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(h, o) {
|
984
|
+
return d(d({}, h), Ke(o));
|
957
985
|
}, {}));
|
958
986
|
continue;
|
959
987
|
case "notation-simple":
|
@@ -998,8 +1026,8 @@ function kr(e) {
|
|
998
1026
|
case "integer-width":
|
999
1027
|
if (i.options.length > 1)
|
1000
1028
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1001
|
-
i.options[0].replace(
|
1002
|
-
if (
|
1029
|
+
i.options[0].replace(kr, function(h, o, l, c, f, b) {
|
1030
|
+
if (o)
|
1003
1031
|
t.minimumIntegerDigits = l.length;
|
1004
1032
|
else {
|
1005
1033
|
if (c && f)
|
@@ -1011,15 +1039,15 @@ function kr(e) {
|
|
1011
1039
|
});
|
1012
1040
|
continue;
|
1013
1041
|
}
|
1014
|
-
if (
|
1042
|
+
if (Pt.test(i.stem)) {
|
1015
1043
|
t.minimumIntegerDigits = i.stem.length;
|
1016
1044
|
continue;
|
1017
1045
|
}
|
1018
1046
|
if (Je.test(i.stem)) {
|
1019
1047
|
if (i.options.length > 1)
|
1020
1048
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1021
|
-
i.stem.replace(Je, function(h,
|
1022
|
-
return l === "*" ? t.minimumFractionDigits =
|
1049
|
+
i.stem.replace(Je, function(h, o, l, c, f, b) {
|
1050
|
+
return l === "*" ? t.minimumFractionDigits = o.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
|
1023
1051
|
});
|
1024
1052
|
var s = i.options[0];
|
1025
1053
|
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Ye(s)));
|
@@ -1029,14 +1057,14 @@ function kr(e) {
|
|
1029
1057
|
t = d(d({}, t), Ye(i.stem));
|
1030
1058
|
continue;
|
1031
1059
|
}
|
1032
|
-
var
|
1033
|
-
o && (t = d(d({}, t), o));
|
1034
|
-
var a = Vr(i.stem);
|
1060
|
+
var a = At(i.stem);
|
1035
1061
|
a && (t = d(d({}, t), a));
|
1062
|
+
var u = Xr(i.stem);
|
1063
|
+
u && (t = d(d({}, t), u));
|
1036
1064
|
}
|
1037
1065
|
return t;
|
1038
1066
|
}
|
1039
|
-
var
|
1067
|
+
var ne = {
|
1040
1068
|
"001": [
|
1041
1069
|
"H",
|
1042
1070
|
"h"
|
@@ -2451,22 +2479,23 @@ var re = {
|
|
2451
2479
|
"h"
|
2452
2480
|
]
|
2453
2481
|
};
|
2454
|
-
function
|
2482
|
+
function Wr(e, t) {
|
2455
2483
|
for (var r = "", n = 0; n < e.length; n++) {
|
2456
2484
|
var i = e.charAt(n);
|
2457
2485
|
if (i === "j") {
|
2458
2486
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2459
2487
|
s++, n++;
|
2460
|
-
var
|
2461
|
-
for ((
|
2488
|
+
var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", o = Zr(t);
|
2489
|
+
for ((o == "H" || o == "k") && (u = 0); u-- > 0; )
|
2462
2490
|
r += h;
|
2463
|
-
for (;
|
2464
|
-
r =
|
2465
|
-
} else
|
2491
|
+
for (; a-- > 0; )
|
2492
|
+
r = o + r;
|
2493
|
+
} else
|
2494
|
+
i === "J" ? r += "H" : r += i;
|
2466
2495
|
}
|
2467
2496
|
return r;
|
2468
2497
|
}
|
2469
|
-
function
|
2498
|
+
function Zr(e) {
|
2470
2499
|
var t = e.hourCycle;
|
2471
2500
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2472
2501
|
e.hourCycles && // @ts-ignore
|
@@ -2485,23 +2514,23 @@ function zr(e) {
|
|
2485
2514
|
}
|
2486
2515
|
var r = e.language, n;
|
2487
2516
|
r !== "root" && (n = e.maximize().region);
|
2488
|
-
var i =
|
2517
|
+
var i = ne[n || ""] || ne[r || ""] || ne["".concat(r, "-001")] || ne["001"];
|
2489
2518
|
return i[0];
|
2490
2519
|
}
|
2491
|
-
var
|
2520
|
+
var _e, qr = new RegExp("^".concat(Bt.source, "*")), Qr = new RegExp("".concat(Bt.source, "*$"));
|
2492
2521
|
function g(e, t) {
|
2493
2522
|
return { start: e, end: t };
|
2494
2523
|
}
|
2495
|
-
var
|
2524
|
+
var Jr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yr = !!String.fromCodePoint, Kr = !!Object.fromEntries, en = !!String.prototype.codePointAt, tn = !!String.prototype.trimStart, rn = !!String.prototype.trimEnd, nn = !!Number.isSafeInteger, sn = nn ? Number.isSafeInteger : function(e) {
|
2496
2525
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2497
|
-
},
|
2526
|
+
}, Ne = !0;
|
2498
2527
|
try {
|
2499
|
-
var
|
2500
|
-
|
2528
|
+
var on = Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2529
|
+
Ne = ((_e = on.exec("a")) === null || _e === void 0 ? void 0 : _e[0]) === "a";
|
2501
2530
|
} catch (e) {
|
2502
|
-
|
2531
|
+
Ne = !1;
|
2503
2532
|
}
|
2504
|
-
var et =
|
2533
|
+
var et = Jr ? (
|
2505
2534
|
// Native
|
2506
2535
|
function(t, r, n) {
|
2507
2536
|
return t.startsWith(r, n);
|
@@ -2511,31 +2540,31 @@ var et = qr ? (
|
|
2511
2540
|
function(t, r, n) {
|
2512
2541
|
return t.slice(n, n + r.length) === r;
|
2513
2542
|
}
|
2514
|
-
),
|
2543
|
+
), Le = Yr ? String.fromCodePoint : (
|
2515
2544
|
// IE11
|
2516
2545
|
function() {
|
2517
2546
|
for (var t = [], r = 0; r < arguments.length; r++)
|
2518
2547
|
t[r] = arguments[r];
|
2519
|
-
for (var n = "", i = t.length, s = 0,
|
2520
|
-
if (
|
2521
|
-
throw RangeError(
|
2522
|
-
n +=
|
2548
|
+
for (var n = "", i = t.length, s = 0, a; i > s; ) {
|
2549
|
+
if (a = t[s++], a > 1114111)
|
2550
|
+
throw RangeError(a + " is not a valid code point");
|
2551
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
2523
2552
|
}
|
2524
2553
|
return n;
|
2525
2554
|
}
|
2526
2555
|
), tt = (
|
2527
2556
|
// native
|
2528
|
-
|
2557
|
+
Kr ? Object.fromEntries : (
|
2529
2558
|
// Ponyfill
|
2530
2559
|
function(t) {
|
2531
2560
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
2532
|
-
var s = i[n],
|
2533
|
-
r[
|
2561
|
+
var s = i[n], a = s[0], u = s[1];
|
2562
|
+
r[a] = u;
|
2534
2563
|
}
|
2535
2564
|
return r;
|
2536
2565
|
}
|
2537
2566
|
)
|
2538
|
-
), wt =
|
2567
|
+
), wt = en ? (
|
2539
2568
|
// Native
|
2540
2569
|
function(t, r) {
|
2541
2570
|
return t.codePointAt(r);
|
@@ -2549,7 +2578,7 @@ var et = qr ? (
|
|
2549
2578
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2550
2579
|
}
|
2551
2580
|
}
|
2552
|
-
),
|
2581
|
+
), an = tn ? (
|
2553
2582
|
// Native
|
2554
2583
|
function(t) {
|
2555
2584
|
return t.trimStart();
|
@@ -2557,9 +2586,9 @@ var et = qr ? (
|
|
2557
2586
|
) : (
|
2558
2587
|
// Ponyfill
|
2559
2588
|
function(t) {
|
2560
|
-
return t.replace(
|
2589
|
+
return t.replace(qr, "");
|
2561
2590
|
}
|
2562
|
-
),
|
2591
|
+
), un = rn ? (
|
2563
2592
|
// Native
|
2564
2593
|
function(t) {
|
2565
2594
|
return t.trimEnd();
|
@@ -2567,14 +2596,14 @@ var et = qr ? (
|
|
2567
2596
|
) : (
|
2568
2597
|
// Ponyfill
|
2569
2598
|
function(t) {
|
2570
|
-
return t.replace(
|
2599
|
+
return t.replace(Qr, "");
|
2571
2600
|
}
|
2572
2601
|
);
|
2573
2602
|
function Nt(e, t) {
|
2574
2603
|
return new RegExp(e, t);
|
2575
2604
|
}
|
2576
2605
|
var Oe;
|
2577
|
-
if (
|
2606
|
+
if (Ne) {
|
2578
2607
|
var rt = Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2579
2608
|
Oe = function(t, r) {
|
2580
2609
|
var n;
|
@@ -2586,13 +2615,13 @@ if (we) {
|
|
2586
2615
|
Oe = function(t, r) {
|
2587
2616
|
for (var n = []; ; ) {
|
2588
2617
|
var i = wt(t, r);
|
2589
|
-
if (i === void 0 ||
|
2618
|
+
if (i === void 0 || Lt(i) || fn(i))
|
2590
2619
|
break;
|
2591
2620
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2592
2621
|
}
|
2593
|
-
return
|
2622
|
+
return Le.apply(void 0, n);
|
2594
2623
|
};
|
2595
|
-
var
|
2624
|
+
var hn = (
|
2596
2625
|
/** @class */
|
2597
2626
|
function() {
|
2598
2627
|
function e(t, r) {
|
@@ -2606,33 +2635,33 @@ var an = (
|
|
2606
2635
|
for (var i = []; !this.isEOF(); ) {
|
2607
2636
|
var s = this.char();
|
2608
2637
|
if (s === 123) {
|
2609
|
-
var
|
2610
|
-
if (
|
2611
|
-
return
|
2612
|
-
i.push(
|
2638
|
+
var a = this.parseArgument(t, n);
|
2639
|
+
if (a.err)
|
2640
|
+
return a;
|
2641
|
+
i.push(a.val);
|
2613
2642
|
} else {
|
2614
2643
|
if (s === 125 && t > 0)
|
2615
2644
|
break;
|
2616
2645
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
2617
|
-
var
|
2646
|
+
var u = this.clonePosition();
|
2618
2647
|
this.bump(), i.push({
|
2619
2648
|
type: x.pound,
|
2620
|
-
location: g(
|
2649
|
+
location: g(u, this.clonePosition())
|
2621
2650
|
});
|
2622
2651
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2623
2652
|
if (n)
|
2624
2653
|
break;
|
2625
2654
|
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
2626
|
-
} else if (s === 60 && !this.ignoreTag &&
|
2627
|
-
var
|
2628
|
-
if (
|
2629
|
-
return
|
2630
|
-
i.push(
|
2655
|
+
} else if (s === 60 && !this.ignoreTag && Ie(this.peek() || 0)) {
|
2656
|
+
var a = this.parseTag(t, r);
|
2657
|
+
if (a.err)
|
2658
|
+
return a;
|
2659
|
+
i.push(a.val);
|
2631
2660
|
} else {
|
2632
|
-
var
|
2633
|
-
if (
|
2634
|
-
return
|
2635
|
-
i.push(
|
2661
|
+
var a = this.parseLiteral(t, r);
|
2662
|
+
if (a.err)
|
2663
|
+
return a;
|
2664
|
+
i.push(a.val);
|
2636
2665
|
}
|
2637
2666
|
}
|
2638
2667
|
}
|
@@ -2654,27 +2683,27 @@ var an = (
|
|
2654
2683
|
var s = this.parseMessage(t + 1, r, !0);
|
2655
2684
|
if (s.err)
|
2656
2685
|
return s;
|
2657
|
-
var
|
2686
|
+
var a = s.val, u = this.clonePosition();
|
2658
2687
|
if (this.bumpIf("</")) {
|
2659
|
-
if (this.isEOF() || !
|
2660
|
-
return this.error(p.INVALID_TAG, g(
|
2661
|
-
var h = this.clonePosition(),
|
2662
|
-
return i !==
|
2688
|
+
if (this.isEOF() || !Ie(this.char()))
|
2689
|
+
return this.error(p.INVALID_TAG, g(u, this.clonePosition()));
|
2690
|
+
var h = this.clonePosition(), o = this.parseTagName();
|
2691
|
+
return i !== o ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2663
2692
|
val: {
|
2664
2693
|
type: x.tag,
|
2665
2694
|
value: i,
|
2666
|
-
children:
|
2695
|
+
children: a,
|
2667
2696
|
location: g(n, this.clonePosition())
|
2668
2697
|
},
|
2669
2698
|
err: null
|
2670
|
-
} : this.error(p.INVALID_TAG, g(
|
2699
|
+
} : this.error(p.INVALID_TAG, g(u, this.clonePosition())));
|
2671
2700
|
} else
|
2672
2701
|
return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
|
2673
2702
|
} else
|
2674
2703
|
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
2675
2704
|
}, e.prototype.parseTagName = function() {
|
2676
2705
|
var t = this.offset();
|
2677
|
-
for (this.bump(); !this.isEOF() &&
|
2706
|
+
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
2678
2707
|
this.bump();
|
2679
2708
|
return this.message.slice(t, this.offset());
|
2680
2709
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2684,16 +2713,16 @@ var an = (
|
|
2684
2713
|
i += s;
|
2685
2714
|
continue;
|
2686
2715
|
}
|
2687
|
-
var
|
2688
|
-
if (o) {
|
2689
|
-
i += o;
|
2690
|
-
continue;
|
2691
|
-
}
|
2692
|
-
var a = this.tryParseLeftAngleBracket();
|
2716
|
+
var a = this.tryParseUnquoted(t, r);
|
2693
2717
|
if (a) {
|
2694
2718
|
i += a;
|
2695
2719
|
continue;
|
2696
2720
|
}
|
2721
|
+
var u = this.tryParseLeftAngleBracket();
|
2722
|
+
if (u) {
|
2723
|
+
i += u;
|
2724
|
+
continue;
|
2725
|
+
}
|
2697
2726
|
break;
|
2698
2727
|
}
|
2699
2728
|
var h = g(n, this.clonePosition());
|
@@ -2703,7 +2732,7 @@ var an = (
|
|
2703
2732
|
};
|
2704
2733
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2705
2734
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2706
|
-
!
|
2735
|
+
!ln(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2707
2736
|
}, e.prototype.tryParseQuote = function(t) {
|
2708
2737
|
if (this.isEOF() || this.char() !== 39)
|
2709
2738
|
return null;
|
@@ -2737,12 +2766,12 @@ var an = (
|
|
2737
2766
|
r.push(n);
|
2738
2767
|
this.bump();
|
2739
2768
|
}
|
2740
|
-
return
|
2769
|
+
return Le.apply(void 0, r);
|
2741
2770
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2742
2771
|
if (this.isEOF())
|
2743
2772
|
return null;
|
2744
2773
|
var n = this.char();
|
2745
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2774
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Le(n));
|
2746
2775
|
}, e.prototype.parseArgument = function(t, r) {
|
2747
2776
|
var n = this.clonePosition();
|
2748
2777
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2773,64 +2802,64 @@ var an = (
|
|
2773
2802
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2774
2803
|
var t = this.clonePosition(), r = this.offset(), n = Oe(this.message, r), i = r + n.length;
|
2775
2804
|
this.bumpTo(i);
|
2776
|
-
var s = this.clonePosition(),
|
2777
|
-
return { value: n, location:
|
2805
|
+
var s = this.clonePosition(), a = g(t, s);
|
2806
|
+
return { value: n, location: a };
|
2778
2807
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2779
|
-
var s,
|
2780
|
-
switch (
|
2808
|
+
var s, a = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2809
|
+
switch (u) {
|
2781
2810
|
case "":
|
2782
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE, g(
|
2811
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(a, h));
|
2783
2812
|
case "number":
|
2784
2813
|
case "date":
|
2785
2814
|
case "time": {
|
2786
2815
|
this.bumpSpace();
|
2787
|
-
var
|
2816
|
+
var o = null;
|
2788
2817
|
if (this.bumpIf(",")) {
|
2789
2818
|
this.bumpSpace();
|
2790
2819
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2791
2820
|
if (c.err)
|
2792
2821
|
return c;
|
2793
|
-
var f =
|
2822
|
+
var f = un(c.val);
|
2794
2823
|
if (f.length === 0)
|
2795
2824
|
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
2796
2825
|
var b = g(l, this.clonePosition());
|
2797
|
-
|
2826
|
+
o = { style: f, styleLocation: b };
|
2798
2827
|
}
|
2799
2828
|
var y = this.tryParseArgumentClose(i);
|
2800
2829
|
if (y.err)
|
2801
2830
|
return y;
|
2802
|
-
var
|
2803
|
-
if (
|
2804
|
-
var
|
2805
|
-
if (
|
2806
|
-
var c = this.parseNumberSkeletonFromString(
|
2831
|
+
var m = g(i, this.clonePosition());
|
2832
|
+
if (o && et(o == null ? void 0 : o.style, "::", 0)) {
|
2833
|
+
var E = an(o.style.slice(2));
|
2834
|
+
if (u === "number") {
|
2835
|
+
var c = this.parseNumberSkeletonFromString(E, o.styleLocation);
|
2807
2836
|
return c.err ? c : {
|
2808
|
-
val: { type: x.number, value: n, location:
|
2837
|
+
val: { type: x.number, value: n, location: m, style: c.val },
|
2809
2838
|
err: null
|
2810
2839
|
};
|
2811
2840
|
} else {
|
2812
|
-
if (
|
2813
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
2814
|
-
var
|
2815
|
-
this.locale && (
|
2841
|
+
if (E.length === 0)
|
2842
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, m);
|
2843
|
+
var P = E;
|
2844
|
+
this.locale && (P = Wr(E, this.locale));
|
2816
2845
|
var f = {
|
2817
2846
|
type: V.dateTime,
|
2818
|
-
pattern:
|
2819
|
-
location:
|
2820
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2821
|
-
},
|
2847
|
+
pattern: P,
|
2848
|
+
location: o.styleLocation,
|
2849
|
+
parsedOptions: this.shouldParseSkeletons ? Gr(P) : {}
|
2850
|
+
}, B = u === "date" ? x.date : x.time;
|
2822
2851
|
return {
|
2823
|
-
val: { type:
|
2852
|
+
val: { type: B, value: n, location: m, style: f },
|
2824
2853
|
err: null
|
2825
2854
|
};
|
2826
2855
|
}
|
2827
2856
|
}
|
2828
2857
|
return {
|
2829
2858
|
val: {
|
2830
|
-
type:
|
2859
|
+
type: u === "number" ? x.number : u === "date" ? x.date : x.time,
|
2831
2860
|
value: n,
|
2832
|
-
location:
|
2833
|
-
style: (s =
|
2861
|
+
location: m,
|
2862
|
+
style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
|
2834
2863
|
},
|
2835
2864
|
err: null
|
2836
2865
|
};
|
@@ -2838,28 +2867,28 @@ var an = (
|
|
2838
2867
|
case "plural":
|
2839
2868
|
case "selectordinal":
|
2840
2869
|
case "select": {
|
2841
|
-
var
|
2870
|
+
var H = this.clonePosition();
|
2842
2871
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2843
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(
|
2872
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(H, d({}, H)));
|
2844
2873
|
this.bumpSpace();
|
2845
|
-
var
|
2846
|
-
if (
|
2874
|
+
var L = this.parseIdentifierIfPossible(), A = 0;
|
2875
|
+
if (u !== "select" && L.value === "offset") {
|
2847
2876
|
if (!this.bumpIf(":"))
|
2848
2877
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
2849
2878
|
this.bumpSpace();
|
2850
2879
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2851
2880
|
if (c.err)
|
2852
2881
|
return c;
|
2853
|
-
this.bumpSpace(),
|
2882
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), A = c.val;
|
2854
2883
|
}
|
2855
|
-
var I = this.tryParsePluralOrSelectOptions(t,
|
2884
|
+
var I = this.tryParsePluralOrSelectOptions(t, u, r, L);
|
2856
2885
|
if (I.err)
|
2857
2886
|
return I;
|
2858
2887
|
var y = this.tryParseArgumentClose(i);
|
2859
2888
|
if (y.err)
|
2860
2889
|
return y;
|
2861
2890
|
var N = g(i, this.clonePosition());
|
2862
|
-
return
|
2891
|
+
return u === "select" ? {
|
2863
2892
|
val: {
|
2864
2893
|
type: x.select,
|
2865
2894
|
value: n,
|
@@ -2872,15 +2901,15 @@ var an = (
|
|
2872
2901
|
type: x.plural,
|
2873
2902
|
value: n,
|
2874
2903
|
options: tt(I.val),
|
2875
|
-
offset:
|
2876
|
-
pluralType:
|
2904
|
+
offset: A,
|
2905
|
+
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
2877
2906
|
location: N
|
2878
2907
|
},
|
2879
2908
|
err: null
|
2880
2909
|
};
|
2881
2910
|
}
|
2882
2911
|
default:
|
2883
|
-
return this.error(p.INVALID_ARGUMENT_TYPE, g(
|
2912
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(a, h));
|
2884
2913
|
}
|
2885
2914
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2886
2915
|
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -2922,7 +2951,7 @@ var an = (
|
|
2922
2951
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2923
2952
|
var n = [];
|
2924
2953
|
try {
|
2925
|
-
n =
|
2954
|
+
n = jr(t);
|
2926
2955
|
} catch (i) {
|
2927
2956
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
2928
2957
|
}
|
@@ -2931,55 +2960,55 @@ var an = (
|
|
2931
2960
|
type: V.number,
|
2932
2961
|
tokens: n,
|
2933
2962
|
location: r,
|
2934
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2963
|
+
parsedOptions: this.shouldParseSkeletons ? zr(n) : {}
|
2935
2964
|
},
|
2936
2965
|
err: null
|
2937
2966
|
};
|
2938
2967
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2939
|
-
for (var s,
|
2940
|
-
if (
|
2968
|
+
for (var s, a = !1, u = [], h = /* @__PURE__ */ new Set(), o = i.value, l = i.location; ; ) {
|
2969
|
+
if (o.length === 0) {
|
2941
2970
|
var c = this.clonePosition();
|
2942
2971
|
if (r !== "select" && this.bumpIf("=")) {
|
2943
2972
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2944
2973
|
if (f.err)
|
2945
2974
|
return f;
|
2946
|
-
l = g(c, this.clonePosition()),
|
2975
|
+
l = g(c, this.clonePosition()), o = this.message.slice(c.offset, this.offset());
|
2947
2976
|
} else
|
2948
2977
|
break;
|
2949
2978
|
}
|
2950
|
-
if (h.has(
|
2979
|
+
if (h.has(o))
|
2951
2980
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2952
|
-
|
2981
|
+
o === "other" && (a = !0), this.bumpSpace();
|
2953
2982
|
var b = this.clonePosition();
|
2954
2983
|
if (!this.bumpIf("{"))
|
2955
2984
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
2956
2985
|
var y = this.parseMessage(t + 1, r, n);
|
2957
2986
|
if (y.err)
|
2958
2987
|
return y;
|
2959
|
-
var
|
2960
|
-
if (
|
2961
|
-
return
|
2962
|
-
|
2963
|
-
|
2988
|
+
var m = this.tryParseArgumentClose(b);
|
2989
|
+
if (m.err)
|
2990
|
+
return m;
|
2991
|
+
u.push([
|
2992
|
+
o,
|
2964
2993
|
{
|
2965
2994
|
value: y.val,
|
2966
2995
|
location: g(b, this.clonePosition())
|
2967
2996
|
}
|
2968
|
-
]), h.add(
|
2997
|
+
]), h.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, l = s.location;
|
2969
2998
|
}
|
2970
|
-
return
|
2999
|
+
return u.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
2971
3000
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
2972
3001
|
var n = 1, i = this.clonePosition();
|
2973
3002
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
2974
|
-
for (var s = !1,
|
2975
|
-
var
|
2976
|
-
if (
|
2977
|
-
s = !0,
|
3003
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
3004
|
+
var u = this.char();
|
3005
|
+
if (u >= 48 && u <= 57)
|
3006
|
+
s = !0, a = a * 10 + (u - 48), this.bump();
|
2978
3007
|
else
|
2979
3008
|
break;
|
2980
3009
|
}
|
2981
3010
|
var h = g(i, this.clonePosition());
|
2982
|
-
return s ? (
|
3011
|
+
return s ? (a *= n, sn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
2983
3012
|
}, e.prototype.offset = function() {
|
2984
3013
|
return this.position.offset;
|
2985
3014
|
}, e.prototype.isEOF = function() {
|
@@ -3035,7 +3064,7 @@ var an = (
|
|
3035
3064
|
break;
|
3036
3065
|
}
|
3037
3066
|
}, e.prototype.bumpSpace = function() {
|
3038
|
-
for (; !this.isEOF() &&
|
3067
|
+
for (; !this.isEOF() && Lt(this.char()); )
|
3039
3068
|
this.bump();
|
3040
3069
|
}, e.prototype.peek = function() {
|
3041
3070
|
if (this.isEOF())
|
@@ -3045,46 +3074,47 @@ var an = (
|
|
3045
3074
|
}, e;
|
3046
3075
|
}()
|
3047
3076
|
);
|
3048
|
-
function
|
3077
|
+
function Ie(e) {
|
3049
3078
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3050
3079
|
}
|
3051
|
-
function
|
3052
|
-
return
|
3080
|
+
function ln(e) {
|
3081
|
+
return Ie(e) || e === 47;
|
3053
3082
|
}
|
3054
|
-
function
|
3083
|
+
function cn(e) {
|
3055
3084
|
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;
|
3056
3085
|
}
|
3057
|
-
function
|
3086
|
+
function Lt(e) {
|
3058
3087
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3059
3088
|
}
|
3060
|
-
function
|
3089
|
+
function fn(e) {
|
3061
3090
|
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;
|
3062
3091
|
}
|
3063
|
-
function
|
3092
|
+
function Ce(e) {
|
3064
3093
|
e.forEach(function(t) {
|
3065
3094
|
if (delete t.location, Et(t) || _t(t))
|
3066
3095
|
for (var r in t.options)
|
3067
|
-
delete t.options[r].location,
|
3068
|
-
else
|
3096
|
+
delete t.options[r].location, Ce(t.options[r].value);
|
3097
|
+
else
|
3098
|
+
yt(t) && Tt(t.style) || (xt(t) || vt(t)) && we(t.style) ? delete t.style.location : Ht(t) && Ce(t.children);
|
3069
3099
|
});
|
3070
3100
|
}
|
3071
|
-
function
|
3101
|
+
function mn(e, t) {
|
3072
3102
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3073
|
-
var r = new
|
3103
|
+
var r = new hn(e, t).parse();
|
3074
3104
|
if (r.err) {
|
3075
3105
|
var n = SyntaxError(p[r.err.kind]);
|
3076
3106
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3077
3107
|
}
|
3078
|
-
return t != null && t.captureLocation ||
|
3108
|
+
return t != null && t.captureLocation || Ce(r.val), r.val;
|
3079
3109
|
}
|
3080
3110
|
var k;
|
3081
3111
|
(function(e) {
|
3082
3112
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3083
3113
|
})(k || (k = {}));
|
3084
|
-
var
|
3114
|
+
var fe = (
|
3085
3115
|
/** @class */
|
3086
3116
|
function(e) {
|
3087
|
-
|
3117
|
+
ce(t, e);
|
3088
3118
|
function t(r, n, i) {
|
3089
3119
|
var s = e.call(this, r) || this;
|
3090
3120
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3096,152 +3126,152 @@ var ce = (
|
|
3096
3126
|
), nt = (
|
3097
3127
|
/** @class */
|
3098
3128
|
function(e) {
|
3099
|
-
|
3129
|
+
ce(t, e);
|
3100
3130
|
function t(r, n, i, s) {
|
3101
3131
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
3102
3132
|
}
|
3103
3133
|
return t;
|
3104
|
-
}(
|
3105
|
-
),
|
3134
|
+
}(fe)
|
3135
|
+
), pn = (
|
3106
3136
|
/** @class */
|
3107
3137
|
function(e) {
|
3108
|
-
|
3138
|
+
ce(t, e);
|
3109
3139
|
function t(r, n, i) {
|
3110
3140
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
3111
3141
|
}
|
3112
3142
|
return t;
|
3113
|
-
}(
|
3114
|
-
),
|
3143
|
+
}(fe)
|
3144
|
+
), gn = (
|
3115
3145
|
/** @class */
|
3116
3146
|
function(e) {
|
3117
|
-
|
3147
|
+
ce(t, e);
|
3118
3148
|
function t(r, n) {
|
3119
3149
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
|
3120
3150
|
}
|
3121
3151
|
return t;
|
3122
|
-
}(
|
3123
|
-
),
|
3152
|
+
}(fe)
|
3153
|
+
), T;
|
3124
3154
|
(function(e) {
|
3125
3155
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3126
|
-
})(
|
3127
|
-
function
|
3156
|
+
})(T || (T = {}));
|
3157
|
+
function dn(e) {
|
3128
3158
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3129
3159
|
var n = t[t.length - 1];
|
3130
|
-
return !n || n.type !==
|
3160
|
+
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
3131
3161
|
}, []);
|
3132
3162
|
}
|
3133
|
-
function
|
3163
|
+
function bn(e) {
|
3134
3164
|
return typeof e == "function";
|
3135
3165
|
}
|
3136
|
-
function
|
3166
|
+
function oe(e, t, r, n, i, s, a) {
|
3137
3167
|
if (e.length === 1 && Qe(e[0]))
|
3138
3168
|
return [
|
3139
3169
|
{
|
3140
|
-
type:
|
3170
|
+
type: T.literal,
|
3141
3171
|
value: e[0].value
|
3142
3172
|
}
|
3143
3173
|
];
|
3144
|
-
for (var
|
3145
|
-
var l =
|
3174
|
+
for (var u = [], h = 0, o = e; h < o.length; h++) {
|
3175
|
+
var l = o[h];
|
3146
3176
|
if (Qe(l)) {
|
3147
|
-
|
3148
|
-
type:
|
3177
|
+
u.push({
|
3178
|
+
type: T.literal,
|
3149
3179
|
value: l.value
|
3150
3180
|
});
|
3151
3181
|
continue;
|
3152
3182
|
}
|
3153
|
-
if (
|
3154
|
-
typeof s == "number" &&
|
3155
|
-
type:
|
3183
|
+
if (Dr(l)) {
|
3184
|
+
typeof s == "number" && u.push({
|
3185
|
+
type: T.literal,
|
3156
3186
|
value: r.getNumberFormat(t).format(s)
|
3157
3187
|
});
|
3158
3188
|
continue;
|
3159
3189
|
}
|
3160
3190
|
var c = l.value;
|
3161
3191
|
if (!(i && c in i))
|
3162
|
-
throw new
|
3192
|
+
throw new gn(c, a);
|
3163
3193
|
var f = i[c];
|
3164
|
-
if (
|
3165
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
3166
|
-
type: typeof f == "string" ?
|
3194
|
+
if (Rr(l)) {
|
3195
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
3196
|
+
type: typeof f == "string" ? T.literal : T.object,
|
3167
3197
|
value: f
|
3168
3198
|
});
|
3169
3199
|
continue;
|
3170
3200
|
}
|
3171
3201
|
if (xt(l)) {
|
3172
|
-
var b = typeof l.style == "string" ? n.date[l.style] :
|
3173
|
-
|
3174
|
-
type:
|
3202
|
+
var b = typeof l.style == "string" ? n.date[l.style] : we(l.style) ? l.style.parsedOptions : void 0;
|
3203
|
+
u.push({
|
3204
|
+
type: T.literal,
|
3175
3205
|
value: r.getDateTimeFormat(t, b).format(f)
|
3176
3206
|
});
|
3177
3207
|
continue;
|
3178
3208
|
}
|
3179
3209
|
if (vt(l)) {
|
3180
|
-
var b = typeof l.style == "string" ? n.time[l.style] :
|
3181
|
-
|
3182
|
-
type:
|
3210
|
+
var b = typeof l.style == "string" ? n.time[l.style] : we(l.style) ? l.style.parsedOptions : n.time.medium;
|
3211
|
+
u.push({
|
3212
|
+
type: T.literal,
|
3183
3213
|
value: r.getDateTimeFormat(t, b).format(f)
|
3184
3214
|
});
|
3185
3215
|
continue;
|
3186
3216
|
}
|
3187
3217
|
if (yt(l)) {
|
3188
3218
|
var b = typeof l.style == "string" ? n.number[l.style] : Tt(l.style) ? l.style.parsedOptions : void 0;
|
3189
|
-
b && b.scale && (f = f * (b.scale || 1)),
|
3190
|
-
type:
|
3219
|
+
b && b.scale && (f = f * (b.scale || 1)), u.push({
|
3220
|
+
type: T.literal,
|
3191
3221
|
value: r.getNumberFormat(t, b).format(f)
|
3192
3222
|
});
|
3193
3223
|
continue;
|
3194
3224
|
}
|
3195
3225
|
if (Ht(l)) {
|
3196
|
-
var y = l.children,
|
3197
|
-
if (!
|
3198
|
-
throw new
|
3199
|
-
var
|
3200
|
-
return
|
3226
|
+
var y = l.children, m = l.value, E = i[m];
|
3227
|
+
if (!bn(E))
|
3228
|
+
throw new pn(m, "function", a);
|
3229
|
+
var P = oe(y, t, r, n, i, s), B = E(P.map(function(A) {
|
3230
|
+
return A.value;
|
3201
3231
|
}));
|
3202
|
-
Array.isArray(
|
3232
|
+
Array.isArray(B) || (B = [B]), u.push.apply(u, B.map(function(A) {
|
3203
3233
|
return {
|
3204
|
-
type: typeof
|
3205
|
-
value:
|
3234
|
+
type: typeof A == "string" ? T.literal : T.object,
|
3235
|
+
value: A
|
3206
3236
|
};
|
3207
3237
|
}));
|
3208
3238
|
}
|
3209
3239
|
if (Et(l)) {
|
3210
|
-
var
|
3211
|
-
if (!
|
3212
|
-
throw new nt(l.value, f, Object.keys(l.options),
|
3213
|
-
|
3240
|
+
var H = l.options[f] || l.options.other;
|
3241
|
+
if (!H)
|
3242
|
+
throw new nt(l.value, f, Object.keys(l.options), a);
|
3243
|
+
u.push.apply(u, oe(H.value, t, r, n, i));
|
3214
3244
|
continue;
|
3215
3245
|
}
|
3216
3246
|
if (_t(l)) {
|
3217
|
-
var
|
3218
|
-
if (!
|
3247
|
+
var H = l.options["=".concat(f)];
|
3248
|
+
if (!H) {
|
3219
3249
|
if (!Intl.PluralRules)
|
3220
|
-
throw new
|
3250
|
+
throw new fe(`Intl.PluralRules is not available in this environment.
|
3221
3251
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3222
|
-
`, k.MISSING_INTL_API,
|
3223
|
-
var
|
3224
|
-
|
3252
|
+
`, k.MISSING_INTL_API, a);
|
3253
|
+
var L = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
3254
|
+
H = l.options[L] || l.options.other;
|
3225
3255
|
}
|
3226
|
-
if (!
|
3227
|
-
throw new nt(l.value, f, Object.keys(l.options),
|
3228
|
-
|
3256
|
+
if (!H)
|
3257
|
+
throw new nt(l.value, f, Object.keys(l.options), a);
|
3258
|
+
u.push.apply(u, oe(H.value, t, r, n, i, f - (l.offset || 0)));
|
3229
3259
|
continue;
|
3230
3260
|
}
|
3231
3261
|
}
|
3232
|
-
return
|
3262
|
+
return dn(u);
|
3233
3263
|
}
|
3234
|
-
function
|
3264
|
+
function yn(e, t) {
|
3235
3265
|
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3236
3266
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3237
3267
|
}, {})) : e;
|
3238
3268
|
}
|
3239
|
-
function
|
3269
|
+
function xn(e, t) {
|
3240
3270
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3241
|
-
return r[n] =
|
3271
|
+
return r[n] = yn(e[n], t[n]), r;
|
3242
3272
|
}, d({}, e)) : e;
|
3243
3273
|
}
|
3244
|
-
function
|
3274
|
+
function He(e) {
|
3245
3275
|
return {
|
3246
3276
|
create: function() {
|
3247
3277
|
return {
|
@@ -3255,39 +3285,39 @@ function _e(e) {
|
|
3255
3285
|
}
|
3256
3286
|
};
|
3257
3287
|
}
|
3258
|
-
function
|
3288
|
+
function vn(e) {
|
3259
3289
|
return e === void 0 && (e = {
|
3260
3290
|
number: {},
|
3261
3291
|
dateTime: {},
|
3262
3292
|
pluralRules: {}
|
3263
3293
|
}), {
|
3264
|
-
getNumberFormat:
|
3294
|
+
getNumberFormat: ve(function() {
|
3265
3295
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3266
3296
|
r[n] = arguments[n];
|
3267
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3297
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, xe([void 0], r, !1)))();
|
3268
3298
|
}, {
|
3269
|
-
cache:
|
3270
|
-
strategy:
|
3299
|
+
cache: He(e.number),
|
3300
|
+
strategy: Ee.variadic
|
3271
3301
|
}),
|
3272
|
-
getDateTimeFormat:
|
3302
|
+
getDateTimeFormat: ve(function() {
|
3273
3303
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3274
3304
|
r[n] = arguments[n];
|
3275
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3305
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, xe([void 0], r, !1)))();
|
3276
3306
|
}, {
|
3277
|
-
cache:
|
3278
|
-
strategy:
|
3307
|
+
cache: He(e.dateTime),
|
3308
|
+
strategy: Ee.variadic
|
3279
3309
|
}),
|
3280
|
-
getPluralRules:
|
3310
|
+
getPluralRules: ve(function() {
|
3281
3311
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3282
3312
|
r[n] = arguments[n];
|
3283
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3313
|
+
return new ((t = Intl.PluralRules).bind.apply(t, xe([void 0], r, !1)))();
|
3284
3314
|
}, {
|
3285
|
-
cache:
|
3286
|
-
strategy:
|
3315
|
+
cache: He(e.pluralRules),
|
3316
|
+
strategy: Ee.variadic
|
3287
3317
|
})
|
3288
3318
|
};
|
3289
3319
|
}
|
3290
|
-
var
|
3320
|
+
var En = (
|
3291
3321
|
/** @class */
|
3292
3322
|
function() {
|
3293
3323
|
function e(t, r, n, i) {
|
@@ -3298,15 +3328,15 @@ var xn = (
|
|
3298
3328
|
dateTime: {},
|
3299
3329
|
pluralRules: {}
|
3300
3330
|
}, this.format = function(h) {
|
3301
|
-
var
|
3302
|
-
if (
|
3303
|
-
return
|
3304
|
-
var l =
|
3305
|
-
return !c.length || f.type !==
|
3331
|
+
var o = s.formatToParts(h);
|
3332
|
+
if (o.length === 1)
|
3333
|
+
return o[0].value;
|
3334
|
+
var l = o.reduce(function(c, f) {
|
3335
|
+
return !c.length || f.type !== T.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3306
3336
|
}, []);
|
3307
3337
|
return l.length <= 1 ? l[0] || "" : l;
|
3308
3338
|
}, this.formatToParts = function(h) {
|
3309
|
-
return
|
3339
|
+
return oe(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
3310
3340
|
}, this.resolvedOptions = function() {
|
3311
3341
|
var h;
|
3312
3342
|
return {
|
@@ -3317,15 +3347,15 @@ var xn = (
|
|
3317
3347
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
3318
3348
|
if (this.message = t, !e.__parse)
|
3319
3349
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3320
|
-
var
|
3321
|
-
|
3322
|
-
var
|
3323
|
-
this.ast = e.__parse(t, d(d({},
|
3350
|
+
var a = i || {};
|
3351
|
+
a.formatters;
|
3352
|
+
var u = Nr(a, ["formatters"]);
|
3353
|
+
this.ast = e.__parse(t, d(d({}, u), { locale: this.resolvedLocale }));
|
3324
3354
|
} else
|
3325
3355
|
this.ast = t;
|
3326
3356
|
if (!Array.isArray(this.ast))
|
3327
3357
|
throw new TypeError("A message must be provided as a String or AST.");
|
3328
|
-
this.formats =
|
3358
|
+
this.formats = xn(e.formats, n), this.formatters = i && i.formatters || vn(this.formatterCache);
|
3329
3359
|
}
|
3330
3360
|
return Object.defineProperty(e, "defaultLocale", {
|
3331
3361
|
get: function() {
|
@@ -3338,7 +3368,7 @@ var xn = (
|
|
3338
3368
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3339
3369
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3340
3370
|
}
|
3341
|
-
}, e.__parse =
|
3371
|
+
}, e.__parse = mn, e.formats = {
|
3342
3372
|
number: {
|
3343
3373
|
integer: {
|
3344
3374
|
maximumFractionDigits: 0
|
@@ -3399,7 +3429,7 @@ var xn = (
|
|
3399
3429
|
}, e;
|
3400
3430
|
}()
|
3401
3431
|
);
|
3402
|
-
function
|
3432
|
+
function _n(e, t) {
|
3403
3433
|
if (t == null)
|
3404
3434
|
return;
|
3405
3435
|
if (t in e)
|
@@ -3420,36 +3450,36 @@ function vn(e, t) {
|
|
3420
3450
|
n = void 0;
|
3421
3451
|
return n;
|
3422
3452
|
}
|
3423
|
-
const
|
3453
|
+
const O = {}, Hn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Ot = (e, t) => {
|
3424
3454
|
if (t == null)
|
3425
3455
|
return;
|
3426
|
-
if (t in
|
3427
|
-
return
|
3428
|
-
const r =
|
3456
|
+
if (t in O && e in O[t])
|
3457
|
+
return O[t][e];
|
3458
|
+
const r = me(t);
|
3429
3459
|
for (let n = 0; n < r.length; n++) {
|
3430
|
-
const i = r[n], s =
|
3460
|
+
const i = r[n], s = Bn(i, e);
|
3431
3461
|
if (s)
|
3432
|
-
return
|
3462
|
+
return Hn(e, t, s);
|
3433
3463
|
}
|
3434
3464
|
};
|
3435
3465
|
let Fe;
|
3436
|
-
const
|
3437
|
-
function
|
3466
|
+
const re = le({});
|
3467
|
+
function Tn(e) {
|
3438
3468
|
return Fe[e] || null;
|
3439
3469
|
}
|
3440
3470
|
function It(e) {
|
3441
3471
|
return e in Fe;
|
3442
3472
|
}
|
3443
|
-
function
|
3473
|
+
function Bn(e, t) {
|
3444
3474
|
if (!It(e))
|
3445
3475
|
return null;
|
3446
|
-
const r =
|
3447
|
-
return
|
3476
|
+
const r = Tn(e);
|
3477
|
+
return _n(r, t);
|
3448
3478
|
}
|
3449
|
-
function
|
3479
|
+
function Sn(e) {
|
3450
3480
|
if (e == null)
|
3451
3481
|
return;
|
3452
|
-
const t =
|
3482
|
+
const t = me(e);
|
3453
3483
|
for (let r = 0; r < t.length; r++) {
|
3454
3484
|
const n = t[r];
|
3455
3485
|
if (It(n))
|
@@ -3457,55 +3487,55 @@ function Tn(e) {
|
|
3457
3487
|
}
|
3458
3488
|
}
|
3459
3489
|
function Ct(e, ...t) {
|
3460
|
-
delete
|
3490
|
+
delete O[e], re.update((r) => (r[e] = wr.all([r[e] || {}, ...t]), r));
|
3461
3491
|
}
|
3462
3492
|
z(
|
3463
|
-
[
|
3493
|
+
[re],
|
3464
3494
|
([e]) => Object.keys(e)
|
3465
3495
|
);
|
3466
|
-
|
3467
|
-
const
|
3468
|
-
function
|
3469
|
-
|
3496
|
+
re.subscribe((e) => Fe = e);
|
3497
|
+
const ae = {};
|
3498
|
+
function Pn(e, t) {
|
3499
|
+
ae[e].delete(t), ae[e].size === 0 && delete ae[e];
|
3470
3500
|
}
|
3471
3501
|
function $t(e) {
|
3472
|
-
return
|
3502
|
+
return ae[e];
|
3473
3503
|
}
|
3474
|
-
function
|
3475
|
-
return
|
3504
|
+
function An(e) {
|
3505
|
+
return me(e).map((t) => {
|
3476
3506
|
const r = $t(t);
|
3477
3507
|
return [t, r ? [...r] : []];
|
3478
3508
|
}).filter(([, t]) => t.length > 0);
|
3479
3509
|
}
|
3480
|
-
function
|
3481
|
-
return e == null ? !1 :
|
3510
|
+
function $e(e) {
|
3511
|
+
return e == null ? !1 : me(e).some(
|
3482
3512
|
(t) => {
|
3483
3513
|
var r;
|
3484
3514
|
return (r = $t(t)) == null ? void 0 : r.size;
|
3485
3515
|
}
|
3486
3516
|
);
|
3487
3517
|
}
|
3488
|
-
function
|
3518
|
+
function wn(e, t) {
|
3489
3519
|
return Promise.all(
|
3490
|
-
t.map((n) => (
|
3520
|
+
t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
|
3491
3521
|
).then((n) => Ct(e, ...n));
|
3492
3522
|
}
|
3493
3523
|
const Q = {};
|
3494
3524
|
function Mt(e) {
|
3495
|
-
if (
|
3525
|
+
if (!$e(e))
|
3496
3526
|
return e in Q ? Q[e] : Promise.resolve();
|
3497
|
-
const t =
|
3527
|
+
const t = An(e);
|
3498
3528
|
return Q[e] = Promise.all(
|
3499
3529
|
t.map(
|
3500
|
-
([r, n]) =>
|
3530
|
+
([r, n]) => wn(r, n)
|
3501
3531
|
)
|
3502
3532
|
).then(() => {
|
3503
|
-
if (
|
3533
|
+
if ($e(e))
|
3504
3534
|
return Mt(e);
|
3505
3535
|
delete Q[e];
|
3506
3536
|
}), Q[e];
|
3507
3537
|
}
|
3508
|
-
const
|
3538
|
+
const Nn = {
|
3509
3539
|
number: {
|
3510
3540
|
scientific: { notation: "scientific" },
|
3511
3541
|
engineering: { notation: "engineering" },
|
@@ -3534,159 +3564,159 @@ const Pn = {
|
|
3534
3564
|
timeZoneName: "short"
|
3535
3565
|
}
|
3536
3566
|
}
|
3537
|
-
},
|
3567
|
+
}, Ln = {
|
3538
3568
|
fallbackLocale: null,
|
3539
3569
|
loadingDelay: 200,
|
3540
|
-
formats:
|
3570
|
+
formats: Nn,
|
3541
3571
|
warnOnMissingMessages: !0,
|
3542
3572
|
handleMissingMessage: void 0,
|
3543
3573
|
ignoreTag: !0
|
3544
|
-
},
|
3574
|
+
}, On = Ln;
|
3545
3575
|
function X() {
|
3546
|
-
return
|
3576
|
+
return On;
|
3547
3577
|
}
|
3548
|
-
const
|
3549
|
-
var
|
3578
|
+
const Te = le(!1);
|
3579
|
+
var In = Object.defineProperty, Cn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, Mn = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Dn = (e, t) => {
|
3550
3580
|
for (var r in t || (t = {}))
|
3551
|
-
|
3581
|
+
Mn.call(t, r) && st(e, r, t[r]);
|
3552
3582
|
if (it)
|
3553
3583
|
for (var r of it(t))
|
3554
|
-
|
3584
|
+
Rn.call(t, r) && st(e, r, t[r]);
|
3555
3585
|
return e;
|
3556
|
-
},
|
3557
|
-
let
|
3558
|
-
const
|
3586
|
+
}, Un = (e, t) => Cn(e, $n(t));
|
3587
|
+
let Me;
|
3588
|
+
const ue = le(null);
|
3559
3589
|
function ot(e) {
|
3560
3590
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3561
3591
|
}
|
3562
|
-
function
|
3592
|
+
function me(e, t = X().fallbackLocale) {
|
3563
3593
|
const r = ot(e);
|
3564
3594
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ot(t)])] : r;
|
3565
3595
|
}
|
3566
|
-
function
|
3567
|
-
return
|
3596
|
+
function M() {
|
3597
|
+
return Me != null ? Me : void 0;
|
3568
3598
|
}
|
3569
|
-
|
3570
|
-
|
3599
|
+
ue.subscribe((e) => {
|
3600
|
+
Me = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3571
3601
|
});
|
3572
|
-
const
|
3573
|
-
if (e &&
|
3602
|
+
const Gn = (e) => {
|
3603
|
+
if (e && Sn(e) && $e(e)) {
|
3574
3604
|
const { loadingDelay: t } = X();
|
3575
3605
|
let r;
|
3576
|
-
return typeof window != "undefined" &&
|
3577
|
-
() =>
|
3606
|
+
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
3607
|
+
() => Te.set(!0),
|
3578
3608
|
t
|
3579
|
-
) :
|
3580
|
-
|
3609
|
+
) : Te.set(!0), Mt(e).then(() => {
|
3610
|
+
ue.set(e);
|
3581
3611
|
}).finally(() => {
|
3582
|
-
clearTimeout(r),
|
3612
|
+
clearTimeout(r), Te.set(!1);
|
3583
3613
|
});
|
3584
3614
|
}
|
3585
|
-
return
|
3586
|
-
}, W =
|
3587
|
-
set:
|
3588
|
-
}),
|
3615
|
+
return ue.set(e);
|
3616
|
+
}, W = Un(Dn({}, ue), {
|
3617
|
+
set: Gn
|
3618
|
+
}), pe = (e) => {
|
3589
3619
|
const t = /* @__PURE__ */ Object.create(null);
|
3590
3620
|
return (n) => {
|
3591
3621
|
const i = JSON.stringify(n);
|
3592
3622
|
return i in t ? t[i] : t[i] = e(n);
|
3593
3623
|
};
|
3594
3624
|
};
|
3595
|
-
var
|
3625
|
+
var Fn = Object.defineProperty, he = Object.getOwnPropertySymbols, Rt = Object.prototype.hasOwnProperty, Dt = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, je = (e, t) => {
|
3596
3626
|
for (var r in t || (t = {}))
|
3597
3627
|
Rt.call(t, r) && at(e, r, t[r]);
|
3598
|
-
if (
|
3599
|
-
for (var r of
|
3628
|
+
if (he)
|
3629
|
+
for (var r of he(t))
|
3600
3630
|
Dt.call(t, r) && at(e, r, t[r]);
|
3601
3631
|
return e;
|
3602
3632
|
}, Z = (e, t) => {
|
3603
3633
|
var r = {};
|
3604
3634
|
for (var n in e)
|
3605
3635
|
Rt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3606
|
-
if (e != null &&
|
3607
|
-
for (var n of
|
3636
|
+
if (e != null && he)
|
3637
|
+
for (var n of he(e))
|
3608
3638
|
t.indexOf(n) < 0 && Dt.call(e, n) && (r[n] = e[n]);
|
3609
3639
|
return r;
|
3610
3640
|
};
|
3611
|
-
const
|
3641
|
+
const ee = (e, t) => {
|
3612
3642
|
const { formats: r } = X();
|
3613
3643
|
if (e in r && t in r[e])
|
3614
3644
|
return r[e][t];
|
3615
3645
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3616
|
-
},
|
3646
|
+
}, jn = pe(
|
3617
3647
|
(e) => {
|
3618
3648
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
3619
3649
|
if (r == null)
|
3620
3650
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3621
|
-
return n && (i =
|
3651
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
3622
3652
|
}
|
3623
|
-
),
|
3653
|
+
), Vn = pe(
|
3624
3654
|
(e) => {
|
3625
3655
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
3626
3656
|
if (r == null)
|
3627
3657
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3628
|
-
return n ? i =
|
3658
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
3629
3659
|
}
|
3630
|
-
),
|
3660
|
+
), kn = pe(
|
3631
3661
|
(e) => {
|
3632
3662
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
3633
3663
|
if (r == null)
|
3634
3664
|
throw new Error(
|
3635
3665
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3636
3666
|
);
|
3637
|
-
return n ? i =
|
3667
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
3638
3668
|
}
|
3639
|
-
),
|
3669
|
+
), Xn = (e = {}) => {
|
3640
3670
|
var t = e, {
|
3641
|
-
locale: r =
|
3671
|
+
locale: r = M()
|
3642
3672
|
} = t, n = Z(t, [
|
3643
3673
|
"locale"
|
3644
3674
|
]);
|
3645
|
-
return
|
3646
|
-
},
|
3675
|
+
return jn(je({ locale: r }, n));
|
3676
|
+
}, zn = (e = {}) => {
|
3647
3677
|
var t = e, {
|
3648
|
-
locale: r =
|
3678
|
+
locale: r = M()
|
3649
3679
|
} = t, n = Z(t, [
|
3650
3680
|
"locale"
|
3651
3681
|
]);
|
3652
|
-
return
|
3653
|
-
},
|
3682
|
+
return Vn(je({ locale: r }, n));
|
3683
|
+
}, Wn = (e = {}) => {
|
3654
3684
|
var t = e, {
|
3655
|
-
locale: r =
|
3685
|
+
locale: r = M()
|
3656
3686
|
} = t, n = Z(t, [
|
3657
3687
|
"locale"
|
3658
3688
|
]);
|
3659
|
-
return
|
3660
|
-
},
|
3689
|
+
return kn(je({ locale: r }, n));
|
3690
|
+
}, Zn = pe(
|
3661
3691
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3662
|
-
(e, t =
|
3692
|
+
(e, t = M()) => new En(e, t, X().formats, {
|
3663
3693
|
ignoreTag: X().ignoreTag
|
3664
3694
|
})
|
3665
|
-
),
|
3695
|
+
), qn = (e, t = {}) => {
|
3666
3696
|
var r, n, i, s;
|
3667
|
-
let
|
3668
|
-
typeof e == "object" && (
|
3697
|
+
let a = t;
|
3698
|
+
typeof e == "object" && (a = e, e = a.id);
|
3669
3699
|
const {
|
3670
|
-
values:
|
3671
|
-
locale: h =
|
3672
|
-
default:
|
3673
|
-
} =
|
3700
|
+
values: u,
|
3701
|
+
locale: h = M(),
|
3702
|
+
default: o
|
3703
|
+
} = a;
|
3674
3704
|
if (h == null)
|
3675
3705
|
throw new Error(
|
3676
3706
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3677
3707
|
);
|
3678
|
-
let l =
|
3708
|
+
let l = Ot(e, h);
|
3679
3709
|
if (!l)
|
3680
|
-
l = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue:
|
3710
|
+
l = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
3681
3711
|
else if (typeof l != "string")
|
3682
3712
|
return console.warn(
|
3683
3713
|
`[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.`
|
3684
3714
|
), l;
|
3685
|
-
if (!
|
3715
|
+
if (!u)
|
3686
3716
|
return l;
|
3687
3717
|
let c = l;
|
3688
3718
|
try {
|
3689
|
-
c =
|
3719
|
+
c = Zn(l, h).format(u);
|
3690
3720
|
} catch (f) {
|
3691
3721
|
f instanceof Error && console.warn(
|
3692
3722
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3694,15 +3724,15 @@ const K = (e, t) => {
|
|
3694
3724
|
);
|
3695
3725
|
}
|
3696
3726
|
return c;
|
3697
|
-
},
|
3698
|
-
z([W], () => Zn);
|
3699
|
-
z([W], () => qn);
|
3727
|
+
}, Qn = (e, t) => Wn(t).format(e), Jn = (e, t) => zn(t).format(e), Yn = (e, t) => Xn(t).format(e), Kn = (e, t = M()) => Ot(e, t), ei = z([W, re], () => qn);
|
3700
3728
|
z([W], () => Qn);
|
3701
|
-
z([W
|
3729
|
+
z([W], () => Jn);
|
3730
|
+
z([W], () => Yn);
|
3731
|
+
z([W, re], () => Kn);
|
3702
3732
|
function ut(e, t) {
|
3703
3733
|
Ct(e, t);
|
3704
3734
|
}
|
3705
|
-
function
|
3735
|
+
function ti(e) {
|
3706
3736
|
W.set(e);
|
3707
3737
|
}
|
3708
3738
|
const ht = {
|
@@ -3797,150 +3827,172 @@ const ht = {
|
|
3797
3827
|
login: "Login"
|
3798
3828
|
}
|
3799
3829
|
};
|
3800
|
-
function
|
3801
|
-
|
3830
|
+
function ri(e, t) {
|
3831
|
+
if (e) {
|
3832
|
+
const r = document.createElement("style");
|
3833
|
+
r.innerHTML = t, e.appendChild(r);
|
3834
|
+
}
|
3802
3835
|
}
|
3803
|
-
function
|
3804
|
-
|
3836
|
+
function ni(e, t) {
|
3837
|
+
const r = new URL(t);
|
3838
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
3839
|
+
const i = document.createElement("style");
|
3840
|
+
i.innerHTML = n, e && e.appendChild(i);
|
3841
|
+
}).catch((n) => {
|
3842
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
3843
|
+
});
|
3844
|
+
}
|
3845
|
+
function ii(e, t, r) {
|
3846
|
+
if (window.emMessageBus) {
|
3847
|
+
const n = document.createElement("style");
|
3848
|
+
window.emMessageBus.subscribe(t, (i) => {
|
3849
|
+
n.innerHTML = i, e && e.appendChild(n);
|
3850
|
+
});
|
3851
|
+
}
|
3852
|
+
}
|
3853
|
+
function si(e) {
|
3854
|
+
zt(e, "svelte-1osslvo", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:50px 0;width:100%;text-align:center}.NotFoundPage{display:flex;flex-direction:column;margin:auto;gap:40px;align-items:center;max-width:800px;padding:50px}.NotFoundPage svg{fill:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C))}.PageTitle{color:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));font-weight:500;font-size:28px}.PageContent{color:#D1D1D1;font-size:18px;line-height:24px}.ErrorPageTitle{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:500;font-size:28px}.ErrorPageContent{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:18px;line-height:24px}.ButtonDefaultSmall{background:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border-radius:5px;width:30%;height:60px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}@media only screen and (max-width: 475px){.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:20px 0;width:100%;text-align:center}.NotFoundPage{text-align:center;width:100%;font-size:12px;padding:20px}.PageTitle{font-size:22px}.ButtonDefaultSmall{width:80%;height:50px;font-size:14px;grid-template-columns:1fr}.ErrorPageContent{font-size:16px;line-height:18px}.ErrorPageTitle{font-size:18px}.PageContent{font-size:16px;line-height:18px}}");
|
3855
|
+
}
|
3856
|
+
function oi(e) {
|
3857
|
+
let t, r, n, i, s, a, u, h, o, l, c = (
|
3805
3858
|
/*$_*/
|
3806
3859
|
e[1]("sorry") + ""
|
3807
|
-
), f, b, y,
|
3860
|
+
), f, b, y, m = (
|
3808
3861
|
/*$_*/
|
3809
3862
|
e[1]("access") + ""
|
3810
|
-
),
|
3863
|
+
), E, P, B, H = (
|
3811
3864
|
/*$_*/
|
3812
3865
|
e[1]("login") + ""
|
3813
|
-
),
|
3866
|
+
), L, A, I;
|
3814
3867
|
return {
|
3815
3868
|
c() {
|
3816
|
-
t = C("div"), r = C("div"), n =
|
3869
|
+
t = C("div"), r = C("div"), n = R("svg"), i = R("g"), s = R("path"), a = R("path"), u = R("path"), h = R("path"), o = de(), l = C("p"), f = ie(c), b = de(), y = C("p"), E = ie(m), P = de(), B = C("button"), L = ie(H), v(s, "class", "a"), v(s, "d", "M22.819,139.685H126.266a13.422,13.422,0,0,0,13.449-13.449V22.789A13.422,13.422,0,0,0,126.266,9.34H22.819A13.422,13.422,0,0,0,9.37,22.789V126.236A13.422,13.422,0,0,0,22.819,139.685Zm-7.241-116.9a7.2,7.2,0,0,1,7.241-7.241H126.266a7.2,7.2,0,0,1,7.241,7.241V38.3H15.572Zm0,21.725H133.513v81.723a7.2,7.2,0,0,1-7.241,7.241H22.824a7.2,7.2,0,0,1-7.241-7.241Z"), v(a, "class", "a"), v(a, "d", "M147.866,140.62h-4.138a3.1,3.1,0,0,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), v(a, "transform", "translate(-116.772 -116.794)"), v(u, "class", "a"), v(u, "d", "M297.866,140.62h-4.138a3.1,3.1,0,1,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), v(u, "transform", "translate(-250.22 -116.794)"), v(h, "class", "a"), v(h, "d", "M199.816,81.307h-1.765V74.5c0-8.132-5.863-14.5-14.247-14.5s-14.12,6.493-14.12,14.5v6.745h-1.765a7.156,7.156,0,0,0-7.123,7.123v21.307a7.156,7.156,0,0,0,7.123,7.123h31.9a7.156,7.156,0,0,0,7.123-7.123V88.367a7.1,7.1,0,0,0-7.123-7.06Zm-26.6,0V74.5c0-6.052,4.16-10.969,10.59-10.969,6.367,0,10.716,4.791,10.716,10.969v6.745H173.215v.063Zm30.132,28.367a3.524,3.524,0,0,1-3.53,3.53h-31.9a3.524,3.524,0,0,1-3.53-3.53V88.367a3.524,3.524,0,0,1,3.53-3.53h31.9a3.524,3.524,0,0,1,3.53,3.53ZM187.4,95.49a3.548,3.548,0,0,1-1.765,3.089h0v5.8a1.765,1.765,0,1,1-3.53,0v-5.8h0a3.55,3.55,0,0,1,1.765-6.619,3.447,3.447,0,0,1,3.53,3.53Z"), v(h, "transform", "translate(-109.326 -3.172)"), v(i, "transform", "translate(-9.37 -9.34)"), v(n, "xmlns", "http://www.w3.org/2000/svg"), v(n, "width", "130.345"), v(n, "height", "130.345"), v(n, "viewBox", "0 0 130.345 130.345"), v(l, "class", "PageTitle"), v(y, "class", "PageContent"), v(B, "class", "ButtonDefaultSmall"), v(r, "class", "NotFoundPage"), v(t, "class", "PageWrapper");
|
3817
3870
|
},
|
3818
3871
|
m(N, q) {
|
3819
|
-
mt(N, t, q),
|
3820
|
-
|
3872
|
+
mt(N, t, q), _(t, r), _(r, n), _(n, i), _(i, s), _(i, a), _(i, u), _(i, h), _(r, o), _(r, l), _(l, f), _(r, b), _(r, y), _(y, E), _(r, P), _(r, B), _(B, L), e[9](t), A || (I = qt(
|
3873
|
+
B,
|
3821
3874
|
"click",
|
3822
3875
|
/*click_handler*/
|
3823
|
-
e[
|
3824
|
-
),
|
3876
|
+
e[8]
|
3877
|
+
), A = !0);
|
3825
3878
|
},
|
3826
3879
|
p(N, [q]) {
|
3827
3880
|
q & /*$_*/
|
3828
3881
|
2 && c !== (c = /*$_*/
|
3829
|
-
N[1]("sorry") + "") &&
|
3830
|
-
2 &&
|
3831
|
-
N[1]("access") + "") &&
|
3832
|
-
2 &&
|
3833
|
-
N[1]("login") + "") &&
|
3882
|
+
N[1]("sorry") + "") && be(f, c), q & /*$_*/
|
3883
|
+
2 && m !== (m = /*$_*/
|
3884
|
+
N[1]("access") + "") && be(E, m), q & /*$_*/
|
3885
|
+
2 && H !== (H = /*$_*/
|
3886
|
+
N[1]("login") + "") && be(L, H);
|
3834
3887
|
},
|
3835
3888
|
i: w,
|
3836
3889
|
o: w,
|
3837
3890
|
d(N) {
|
3838
|
-
N &&
|
3891
|
+
N && De(t), e[9](null), A = !1, I();
|
3839
3892
|
}
|
3840
3893
|
};
|
3841
3894
|
}
|
3842
|
-
function
|
3895
|
+
function ai(e, t, r) {
|
3843
3896
|
let n;
|
3844
|
-
Xt(e,
|
3845
|
-
let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl:
|
3846
|
-
const
|
3847
|
-
fetch(
|
3848
|
-
Object.keys(
|
3849
|
-
ut(
|
3897
|
+
Xt(e, ei, (m) => r(1, n = m));
|
3898
|
+
let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { translationurl: u = "" } = t, { mbsource: h } = t, o;
|
3899
|
+
const l = () => {
|
3900
|
+
fetch(u).then((E) => E.json()).then((E) => {
|
3901
|
+
Object.keys(E).forEach((P) => {
|
3902
|
+
ut(P, E[P]);
|
3850
3903
|
});
|
3851
|
-
}).catch((
|
3852
|
-
console.log(
|
3904
|
+
}).catch((E) => {
|
3905
|
+
console.log(E);
|
3853
3906
|
});
|
3854
3907
|
};
|
3855
3908
|
Object.keys(ht).forEach((m) => {
|
3856
3909
|
ut(m, ht[m]);
|
3857
3910
|
});
|
3858
|
-
const
|
3911
|
+
const c = () => {
|
3859
3912
|
window.postMessage({ type: "403ActionButton" }, window.location.href);
|
3860
|
-
}, c = () => {
|
3861
|
-
Kn(i);
|
3862
3913
|
}, f = () => {
|
3863
|
-
|
3864
|
-
|
3865
|
-
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3871
|
-
},
|
3872
|
-
1
|
3873
|
-
);
|
3874
|
-
});
|
3875
|
-
}, y = () => l();
|
3876
|
-
function E(m) {
|
3877
|
-
Te[m ? "unshift" : "push"](() => {
|
3878
|
-
a = m, r(0, a);
|
3914
|
+
ti(i);
|
3915
|
+
};
|
3916
|
+
Kt(() => () => {
|
3917
|
+
});
|
3918
|
+
const b = () => c();
|
3919
|
+
function y(m) {
|
3920
|
+
Be[m ? "unshift" : "push"](() => {
|
3921
|
+
o = m, r(0, o);
|
3879
3922
|
});
|
3880
3923
|
}
|
3881
3924
|
return e.$$set = (m) => {
|
3882
|
-
"lang" in m && r(3, i = m.lang), "clientstyling" in m && r(4, s = m.clientstyling), "clientstylingurl" in m && r(5,
|
3925
|
+
"lang" in m && r(3, i = m.lang), "clientstyling" in m && r(4, s = m.clientstyling), "clientstylingurl" in m && r(5, a = m.clientstylingurl), "translationurl" in m && r(6, u = m.translationurl), "mbsource" in m && r(7, h = m.mbsource);
|
3883
3926
|
}, e.$$.update = () => {
|
3884
3927
|
e.$$.dirty & /*lang*/
|
3885
|
-
8 && i &&
|
3886
|
-
17 && s &&
|
3887
|
-
33 &&
|
3888
|
-
64 &&
|
3928
|
+
8 && i && f(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
3929
|
+
17 && s && o && ri(o, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
3930
|
+
33 && a && o && ni(o, a), e.$$.dirty & /*translationurl*/
|
3931
|
+
64 && u && l(), e.$$.dirty & /*mbsource, customStylingContainer*/
|
3932
|
+
129 && h && o && ii(o, `${h}.Style`);
|
3889
3933
|
}, [
|
3890
|
-
|
3934
|
+
o,
|
3891
3935
|
n,
|
3892
|
-
|
3936
|
+
c,
|
3893
3937
|
i,
|
3894
3938
|
s,
|
3895
|
-
|
3939
|
+
a,
|
3940
|
+
u,
|
3896
3941
|
h,
|
3897
|
-
|
3898
|
-
|
3942
|
+
b,
|
3943
|
+
y
|
3899
3944
|
];
|
3900
3945
|
}
|
3901
|
-
class
|
3946
|
+
class ui extends cr {
|
3902
3947
|
constructor(t) {
|
3903
|
-
super(),
|
3948
|
+
super(), hr(
|
3904
3949
|
this,
|
3905
3950
|
t,
|
3906
|
-
|
3907
|
-
|
3951
|
+
ai,
|
3952
|
+
oi,
|
3908
3953
|
ct,
|
3909
3954
|
{
|
3910
3955
|
lang: 3,
|
3911
3956
|
clientstyling: 4,
|
3912
3957
|
clientstylingurl: 5,
|
3913
|
-
translationurl: 6
|
3958
|
+
translationurl: 6,
|
3959
|
+
mbsource: 7
|
3914
3960
|
},
|
3915
|
-
|
3961
|
+
si
|
3916
3962
|
);
|
3917
3963
|
}
|
3918
3964
|
get lang() {
|
3919
3965
|
return this.$$.ctx[3];
|
3920
3966
|
}
|
3921
3967
|
set lang(t) {
|
3922
|
-
this.$$set({ lang: t }),
|
3968
|
+
this.$$set({ lang: t }), $();
|
3923
3969
|
}
|
3924
3970
|
get clientstyling() {
|
3925
3971
|
return this.$$.ctx[4];
|
3926
3972
|
}
|
3927
3973
|
set clientstyling(t) {
|
3928
|
-
this.$$set({ clientstyling: t }),
|
3974
|
+
this.$$set({ clientstyling: t }), $();
|
3929
3975
|
}
|
3930
3976
|
get clientstylingurl() {
|
3931
3977
|
return this.$$.ctx[5];
|
3932
3978
|
}
|
3933
3979
|
set clientstylingurl(t) {
|
3934
|
-
this.$$set({ clientstylingurl: t }),
|
3980
|
+
this.$$set({ clientstylingurl: t }), $();
|
3935
3981
|
}
|
3936
3982
|
get translationurl() {
|
3937
3983
|
return this.$$.ctx[6];
|
3938
3984
|
}
|
3939
3985
|
set translationurl(t) {
|
3940
|
-
this.$$set({ translationurl: t }),
|
3986
|
+
this.$$set({ translationurl: t }), $();
|
3987
|
+
}
|
3988
|
+
get mbsource() {
|
3989
|
+
return this.$$.ctx[7];
|
3990
|
+
}
|
3991
|
+
set mbsource(t) {
|
3992
|
+
this.$$set({ mbsource: t }), $();
|
3941
3993
|
}
|
3942
3994
|
}
|
3943
|
-
|
3995
|
+
lr(ui, { lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
3944
3996
|
export {
|
3945
|
-
|
3997
|
+
ui as default
|
3946
3998
|
};
|