@everymatrix/casino-404 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/{Casino404-BYPCk43l.js → Casino404-BAwtFpIN.js} +618 -566
- package/components/{Casino404-Eo4EH2yJ.js → Casino404-CDo-vfq7.js} +650 -598
- package/components/Casino404-DilLgg_z.cjs +16 -0
- package/es2015/casino-404.cjs +1 -1
- package/es2015/casino-404.js +1 -1
- package/esnext/casino-404.js +1 -1
- package/package.json +1 -1
- package/components/Casino404-CbF32MWb.cjs +0 -3
@@ -1,44 +1,44 @@
|
|
1
|
-
var Ut = Object.defineProperty,
|
2
|
-
var
|
1
|
+
var Ut = Object.defineProperty, kt = Object.defineProperties;
|
2
|
+
var jt = Object.getOwnPropertyDescriptors;
|
3
3
|
var Xe = Object.getOwnPropertySymbols;
|
4
4
|
var Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable;
|
5
|
-
var
|
5
|
+
var de = (e, t, r) => t in e ? Ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
Vt.call(t, r) &&
|
7
|
+
Vt.call(t, r) && de(e, r, t[r]);
|
8
8
|
if (Xe)
|
9
9
|
for (var r of Xe(t))
|
10
|
-
Xt.call(t, r) &&
|
10
|
+
Xt.call(t, r) && de(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
}, Ze = (e, t) =>
|
13
|
-
var
|
12
|
+
}, Ze = (e, t) => kt(e, jt(t));
|
13
|
+
var B = (e, t, r) => (de(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
14
|
var We = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var o = (h) => {
|
16
16
|
try {
|
17
17
|
u(r.next(h));
|
18
|
-
} catch (
|
19
|
-
i(
|
18
|
+
} catch (a) {
|
19
|
+
i(a);
|
20
20
|
}
|
21
|
-
},
|
21
|
+
}, s = (h) => {
|
22
22
|
try {
|
23
23
|
u(r.throw(h));
|
24
|
-
} catch (
|
25
|
-
i(
|
24
|
+
} catch (a) {
|
25
|
+
i(a);
|
26
26
|
}
|
27
|
-
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o,
|
27
|
+
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
28
28
|
u((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
|
-
function
|
30
|
+
function A() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function ft(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
35
|
function Qe() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
|
-
function
|
39
|
-
e.forEach(
|
38
|
+
function re(e) {
|
39
|
+
e.forEach(ft);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function Fe(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
44
|
function mt(e, t) {
|
@@ -51,7 +51,7 @@ function pt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
52
52
|
for (const n of t)
|
53
53
|
n(void 0);
|
54
|
-
return
|
54
|
+
return A;
|
55
55
|
}
|
56
56
|
const r = e.subscribe(...t);
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
@@ -59,7 +59,7 @@ function pt(e, ...t) {
|
|
59
59
|
function Zt(e, t, r) {
|
60
60
|
e.$$.on_destroy.push(pt(t, r));
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function _(e, t) {
|
63
63
|
e.appendChild(t);
|
64
64
|
}
|
65
65
|
function Wt(e, t, r) {
|
@@ -70,7 +70,8 @@ function Wt(e, t, r) {
|
|
70
70
|
}
|
71
71
|
}
|
72
72
|
function Qt(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 Qt(e) {
|
|
79
80
|
) : e.ownerDocument;
|
80
81
|
}
|
81
82
|
function qt(e, t) {
|
82
|
-
return
|
83
|
+
return _(
|
83
84
|
/** @type {Document} */
|
84
85
|
e.head || e,
|
85
86
|
t
|
@@ -88,20 +89,20 @@ function qt(e, t) {
|
|
88
89
|
function gt(e, t, r) {
|
89
90
|
e.insertBefore(t, r || null);
|
90
91
|
}
|
91
|
-
function
|
92
|
+
function Ge(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 M(e) {
|
98
99
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
99
100
|
}
|
100
|
-
function
|
101
|
+
function oe(e) {
|
101
102
|
return document.createTextNode(e);
|
102
103
|
}
|
103
|
-
function
|
104
|
-
return
|
104
|
+
function be() {
|
105
|
+
return oe(" ");
|
105
106
|
}
|
106
107
|
function Jt(e, t, r, n) {
|
107
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
@@ -112,7 +113,7 @@ function x(e, t, r) {
|
|
112
113
|
function Yt(e) {
|
113
114
|
return Array.from(e.childNodes);
|
114
115
|
}
|
115
|
-
function
|
116
|
+
function xe(e, t) {
|
116
117
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
117
118
|
t);
|
118
119
|
}
|
@@ -125,84 +126,93 @@ function Kt(e) {
|
|
125
126
|
}
|
126
127
|
), t;
|
127
128
|
}
|
128
|
-
let
|
129
|
+
let K;
|
129
130
|
function Y(e) {
|
130
|
-
|
131
|
-
}
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
const
|
143
|
-
let
|
144
|
-
function
|
145
|
-
|
131
|
+
K = e;
|
132
|
+
}
|
133
|
+
function er() {
|
134
|
+
if (!K)
|
135
|
+
throw new Error("Function called outside component initialization");
|
136
|
+
return K;
|
137
|
+
}
|
138
|
+
function tr(e) {
|
139
|
+
er().$$.on_mount.push(e);
|
140
|
+
}
|
141
|
+
const U = [], Ne = [];
|
142
|
+
let k = [];
|
143
|
+
const qe = [], rr = /* @__PURE__ */ Promise.resolve();
|
144
|
+
let Be = !1;
|
145
|
+
function nr() {
|
146
|
+
Be || (Be = !0, rr.then($));
|
147
|
+
}
|
148
|
+
function Se(e) {
|
149
|
+
k.push(e);
|
150
|
+
}
|
151
|
+
const ye = /* @__PURE__ */ new Set();
|
152
|
+
let G = 0;
|
153
|
+
function $() {
|
154
|
+
if (G !== 0)
|
146
155
|
return;
|
147
|
-
const e =
|
156
|
+
const e = K;
|
148
157
|
do {
|
149
158
|
try {
|
150
|
-
for (;
|
151
|
-
const t =
|
152
|
-
|
159
|
+
for (; G < U.length; ) {
|
160
|
+
const t = U[G];
|
161
|
+
G++, Y(t), ir(t.$$);
|
153
162
|
}
|
154
163
|
} catch (t) {
|
155
|
-
throw
|
164
|
+
throw U.length = 0, G = 0, t;
|
156
165
|
}
|
157
|
-
for (Y(null),
|
158
|
-
|
159
|
-
|
160
|
-
|
166
|
+
for (Y(null), U.length = 0, G = 0; Ne.length; )
|
167
|
+
Ne.pop()();
|
168
|
+
for (let t = 0; t < k.length; t += 1) {
|
169
|
+
const r = k[t];
|
170
|
+
ye.has(r) || (ye.add(r), r());
|
161
171
|
}
|
162
|
-
|
163
|
-
} while (
|
172
|
+
k.length = 0;
|
173
|
+
} while (U.length);
|
164
174
|
for (; qe.length; )
|
165
175
|
qe.pop()();
|
166
|
-
|
176
|
+
Be = !1, ye.clear(), Y(e);
|
167
177
|
}
|
168
|
-
function
|
178
|
+
function ir(e) {
|
169
179
|
if (e.fragment !== null) {
|
170
|
-
e.update(),
|
180
|
+
e.update(), re(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(Se);
|
173
183
|
}
|
174
184
|
}
|
175
|
-
function
|
185
|
+
function or(e) {
|
176
186
|
const t = [], r = [];
|
177
|
-
|
187
|
+
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
178
188
|
}
|
179
|
-
const
|
180
|
-
function
|
181
|
-
e && e.i && (
|
189
|
+
const ar = /* @__PURE__ */ new Set();
|
190
|
+
function sr(e, t) {
|
191
|
+
e && e.i && (ar.delete(e), e.i(t));
|
182
192
|
}
|
183
|
-
function
|
193
|
+
function ur(e, t, r) {
|
184
194
|
const { fragment: n, after_update: i } = e.$$;
|
185
|
-
n && n.m(t, r),
|
186
|
-
const o = e.$$.on_mount.map(
|
187
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
188
|
-
}), i.forEach(
|
195
|
+
n && n.m(t, r), Se(() => {
|
196
|
+
const o = e.$$.on_mount.map(ft).filter(Fe);
|
197
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
198
|
+
}), i.forEach(Se);
|
189
199
|
}
|
190
|
-
function
|
200
|
+
function hr(e, t) {
|
191
201
|
const r = e.$$;
|
192
|
-
r.fragment !== null && (
|
202
|
+
r.fragment !== null && (or(r.after_update), re(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 lr(e, t) {
|
205
|
+
e.$$.dirty[0] === -1 && (U.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
196
206
|
}
|
197
|
-
function
|
198
|
-
const h =
|
207
|
+
function cr(e, t, r, n, i, o, s = null, u = [-1]) {
|
208
|
+
const h = K;
|
199
209
|
Y(e);
|
200
|
-
const
|
210
|
+
const a = e.$$ = {
|
201
211
|
fragment: null,
|
202
212
|
ctx: [],
|
203
213
|
// state
|
204
214
|
props: o,
|
205
|
-
update:
|
215
|
+
update: A,
|
206
216
|
not_equal: i,
|
207
217
|
bound: Qe(),
|
208
218
|
// lifecycle
|
@@ -218,18 +228,18 @@ function hr(e, t, r, n, i, o, a = null, u = [-1]) {
|
|
218
228
|
skip_bound: !1,
|
219
229
|
root: t.target || h.$$.root
|
220
230
|
};
|
221
|
-
|
231
|
+
s && s(a.root);
|
222
232
|
let l = !1;
|
223
|
-
if (
|
233
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...b) => {
|
224
234
|
const y = b.length ? b[0] : f;
|
225
|
-
return
|
226
|
-
}) : [],
|
235
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = y) && (!a.skip_bound && a.bound[c] && a.bound[c](y), l && lr(e, c)), f;
|
236
|
+
}) : [], a.update(), l = !0, re(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
227
237
|
if (t.hydrate) {
|
228
238
|
const c = Yt(t.target);
|
229
|
-
|
239
|
+
a.fragment && a.fragment.l(c), c.forEach(Ge);
|
230
240
|
} else
|
231
|
-
|
232
|
-
t.intro &&
|
241
|
+
a.fragment && a.fragment.c();
|
242
|
+
t.intro && sr(e.$$.fragment), ur(e, t.target, t.anchor), $();
|
233
243
|
}
|
234
244
|
Y(h);
|
235
245
|
}
|
@@ -238,23 +248,23 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
|
|
238
248
|
constructor(t, r, n) {
|
239
249
|
super();
|
240
250
|
/** The Svelte component constructor */
|
241
|
-
|
251
|
+
B(this, "$$ctor");
|
242
252
|
/** Slots */
|
243
|
-
|
253
|
+
B(this, "$$s");
|
244
254
|
/** The Svelte component instance */
|
245
|
-
|
255
|
+
B(this, "$$c");
|
246
256
|
/** Whether or not the custom element is connected */
|
247
|
-
|
257
|
+
B(this, "$$cn", !1);
|
248
258
|
/** Component props data */
|
249
|
-
|
259
|
+
B(this, "$$d", {});
|
250
260
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
251
|
-
|
261
|
+
B(this, "$$r", !1);
|
252
262
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
253
|
-
|
263
|
+
B(this, "$$p_d", {});
|
254
264
|
/** @type {Record<string, Function[]>} Event listeners */
|
255
|
-
|
265
|
+
B(this, "$$l", {});
|
256
266
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
257
|
-
|
267
|
+
B(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" && (dt = class extends HTMLElement {
|
|
275
285
|
if (this.$$cn = !0, !this.$$c) {
|
276
286
|
let t = function(o) {
|
277
287
|
return () => {
|
278
|
-
let
|
288
|
+
let s;
|
279
289
|
return {
|
280
290
|
c: function() {
|
281
|
-
|
291
|
+
s = C("slot"), o !== "default" && x(s, "name", o);
|
282
292
|
},
|
283
293
|
/**
|
284
294
|
* @param {HTMLElement} target
|
285
295
|
* @param {HTMLElement} [anchor]
|
286
296
|
*/
|
287
|
-
m: function(
|
288
|
-
gt(
|
297
|
+
m: function(a, l) {
|
298
|
+
gt(a, s, l);
|
289
299
|
},
|
290
|
-
d: function(
|
291
|
-
|
300
|
+
d: function(a) {
|
301
|
+
a && Ge(s);
|
292
302
|
}
|
293
303
|
};
|
294
304
|
};
|
@@ -299,8 +309,8 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
|
|
299
309
|
for (const o of this.$$s)
|
300
310
|
o in n && (r[o] = [t(o)]);
|
301
311
|
for (const o of this.attributes) {
|
302
|
-
const
|
303
|
-
|
312
|
+
const s = this.$$g_p(o.name);
|
313
|
+
s in this.$$d || (this.$$d[s] = ae(s, o.value, this.$$p_d, "toProp"));
|
304
314
|
}
|
305
315
|
for (const o in this.$$p_d)
|
306
316
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
@@ -317,21 +327,21 @@ typeof HTMLElement == "function" && (dt = class extends HTMLElement {
|
|
317
327
|
this.$$r = !0;
|
318
328
|
for (const o in this.$$p_d)
|
319
329
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
320
|
-
const
|
330
|
+
const s = ae(
|
321
331
|
o,
|
322
332
|
this.$$d[o],
|
323
333
|
this.$$p_d,
|
324
334
|
"toAttribute"
|
325
335
|
);
|
326
|
-
|
336
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
327
337
|
}
|
328
338
|
this.$$r = !1;
|
329
339
|
};
|
330
340
|
this.$$c.$$.after_update.push(i), i();
|
331
341
|
for (const o in this.$$l)
|
332
|
-
for (const
|
333
|
-
const u = this.$$c.$on(o,
|
334
|
-
this.$$l_u.set(
|
342
|
+
for (const s of this.$$l[o]) {
|
343
|
+
const u = this.$$c.$on(o, s);
|
344
|
+
this.$$l_u.set(s, u);
|
335
345
|
}
|
336
346
|
this.$$l = {};
|
337
347
|
}
|
@@ -341,7 +351,7 @@ typeof HTMLElement == "function" && (dt = 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] = ae(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" && (dt = class extends HTMLElement {
|
|
354
364
|
) || t;
|
355
365
|
}
|
356
366
|
});
|
357
|
-
function
|
367
|
+
function ae(e, t, r, n) {
|
358
368
|
var o;
|
359
369
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
360
370
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
@@ -384,8 +394,8 @@ function oe(e, t, r, n) {
|
|
384
394
|
return t;
|
385
395
|
}
|
386
396
|
}
|
387
|
-
function
|
388
|
-
let
|
397
|
+
function fr(e, t, r, n, i, o) {
|
398
|
+
let s = class extends dt {
|
389
399
|
constructor() {
|
390
400
|
super(e, r, i), this.$$p_d = t;
|
391
401
|
}
|
@@ -396,26 +406,26 @@ function lr(e, t, r, n, i, o) {
|
|
396
406
|
}
|
397
407
|
};
|
398
408
|
return Object.keys(t).forEach((u) => {
|
399
|
-
Object.defineProperty(
|
409
|
+
Object.defineProperty(s.prototype, u, {
|
400
410
|
get() {
|
401
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 a;
|
415
|
+
h = ae(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
406
416
|
}
|
407
417
|
});
|
408
418
|
}), n.forEach((u) => {
|
409
|
-
Object.defineProperty(
|
419
|
+
Object.defineProperty(s.prototype, u, {
|
410
420
|
get() {
|
411
421
|
var h;
|
412
422
|
return (h = this.$$c) == null ? void 0 : h[u];
|
413
423
|
}
|
414
424
|
});
|
415
425
|
}), e.element = /** @type {any} */
|
416
|
-
|
426
|
+
s, s;
|
417
427
|
}
|
418
|
-
class
|
428
|
+
class mr {
|
419
429
|
constructor() {
|
420
430
|
/**
|
421
431
|
* ### PRIVATE API
|
@@ -424,7 +434,7 @@ class fr {
|
|
424
434
|
*
|
425
435
|
* @type {any}
|
426
436
|
*/
|
427
|
-
|
437
|
+
B(this, "$$");
|
428
438
|
/**
|
429
439
|
* ### PRIVATE API
|
430
440
|
*
|
@@ -432,11 +442,11 @@ class fr {
|
|
432
442
|
*
|
433
443
|
* @type {any}
|
434
444
|
*/
|
435
|
-
|
445
|
+
B(this, "$$set");
|
436
446
|
}
|
437
447
|
/** @returns {void} */
|
438
448
|
$destroy() {
|
439
|
-
|
449
|
+
hr(this, 1), this.$destroy = A;
|
440
450
|
}
|
441
451
|
/**
|
442
452
|
* @template {Extract<keyof Events, string>} K
|
@@ -445,8 +455,8 @@ class fr {
|
|
445
455
|
* @returns {() => void}
|
446
456
|
*/
|
447
457
|
$on(t, r) {
|
448
|
-
if (!
|
449
|
-
return
|
458
|
+
if (!Fe(r))
|
459
|
+
return A;
|
450
460
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
451
461
|
return n.push(r), () => {
|
452
462
|
const i = n.indexOf(r);
|
@@ -461,112 +471,112 @@ class fr {
|
|
461
471
|
this.$$set && !zt(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 pr = "4";
|
475
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
|
476
|
+
const D = [];
|
477
|
+
function gr(e, t) {
|
468
478
|
return {
|
469
|
-
subscribe:
|
479
|
+
subscribe: ce(e, t).subscribe
|
470
480
|
};
|
471
481
|
}
|
472
|
-
function
|
482
|
+
function ce(e, t = A) {
|
473
483
|
let r;
|
474
484
|
const n = /* @__PURE__ */ new Set();
|
475
485
|
function i(u) {
|
476
486
|
if (mt(e, u) && (e = u, r)) {
|
477
|
-
const h = !
|
478
|
-
for (const
|
479
|
-
|
487
|
+
const h = !D.length;
|
488
|
+
for (const a of n)
|
489
|
+
a[1](), D.push(a, e);
|
480
490
|
if (h) {
|
481
|
-
for (let
|
482
|
-
|
483
|
-
|
491
|
+
for (let a = 0; a < D.length; a += 2)
|
492
|
+
D[a][0](D[a + 1]);
|
493
|
+
D.length = 0;
|
484
494
|
}
|
485
495
|
}
|
486
496
|
}
|
487
497
|
function o(u) {
|
488
498
|
i(u(e));
|
489
499
|
}
|
490
|
-
function
|
491
|
-
const
|
492
|
-
return n.add(
|
493
|
-
n.delete(
|
500
|
+
function s(u, h = A) {
|
501
|
+
const a = [u, h];
|
502
|
+
return n.add(a), n.size === 1 && (r = t(i, o) || A), u(e), () => {
|
503
|
+
n.delete(a), n.size === 0 && r && (r(), r = null);
|
494
504
|
};
|
495
505
|
}
|
496
|
-
return { set: i, update: o, subscribe:
|
506
|
+
return { set: i, update: o, subscribe: s };
|
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 o = t.length < 2;
|
503
|
-
return
|
513
|
+
return gr(r, (s, u) => {
|
504
514
|
let h = !1;
|
505
|
-
const
|
506
|
-
let l = 0, c =
|
515
|
+
const a = [];
|
516
|
+
let l = 0, c = A;
|
507
517
|
const f = () => {
|
508
518
|
if (l)
|
509
519
|
return;
|
510
520
|
c();
|
511
|
-
const y = t(n ?
|
512
|
-
o ?
|
521
|
+
const y = t(n ? a[0] : a, s, u);
|
522
|
+
o ? s(y) : c = Fe(y) ? y : A;
|
513
523
|
}, b = i.map(
|
514
|
-
(y,
|
524
|
+
(y, m) => pt(
|
515
525
|
y,
|
516
|
-
(
|
517
|
-
|
526
|
+
(E) => {
|
527
|
+
a[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
|
+
re(b), c(), h = !1;
|
526
536
|
};
|
527
537
|
});
|
528
538
|
}
|
529
|
-
function
|
539
|
+
function dr(e) {
|
530
540
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
531
541
|
}
|
532
|
-
var
|
533
|
-
return
|
542
|
+
var br = function(t) {
|
543
|
+
return xr(t) && !yr(t);
|
534
544
|
};
|
535
|
-
function
|
545
|
+
function xr(e) {
|
536
546
|
return !!e && typeof e == "object";
|
537
547
|
}
|
538
|
-
function
|
548
|
+
function yr(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]" || _r(e);
|
541
551
|
}
|
542
|
-
var
|
543
|
-
function
|
544
|
-
return e.$$typeof ===
|
552
|
+
var vr = typeof Symbol == "function" && Symbol.for, Er = vr ? Symbol.for("react.element") : 60103;
|
553
|
+
function _r(e) {
|
554
|
+
return e.$$typeof === Er;
|
545
555
|
}
|
546
|
-
function
|
556
|
+
function Hr(e) {
|
547
557
|
return Array.isArray(e) ? [] : {};
|
548
558
|
}
|
549
|
-
function
|
550
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
559
|
+
function ee(e, t) {
|
560
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(Hr(e), e, t) : e;
|
551
561
|
}
|
552
|
-
function
|
562
|
+
function Tr(e, t, r) {
|
553
563
|
return e.concat(t).map(function(n) {
|
554
|
-
return
|
564
|
+
return ee(n, r);
|
555
565
|
});
|
556
566
|
}
|
557
|
-
function
|
567
|
+
function Pr(e, t) {
|
558
568
|
if (!t.customMerge)
|
559
|
-
return
|
569
|
+
return j;
|
560
570
|
var r = t.customMerge(e);
|
561
|
-
return typeof r == "function" ? r :
|
571
|
+
return typeof r == "function" ? r : j;
|
562
572
|
}
|
563
|
-
function
|
573
|
+
function Nr(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 Je(e) {
|
569
|
-
return Object.keys(e).concat(
|
579
|
+
return Object.keys(e).concat(Nr(e));
|
570
580
|
}
|
571
581
|
function bt(e, t) {
|
572
582
|
try {
|
@@ -575,42 +585,57 @@ function bt(e, t) {
|
|
575
585
|
return !1;
|
576
586
|
}
|
577
587
|
}
|
578
|
-
function
|
588
|
+
function Br(e, t) {
|
579
589
|
return bt(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) && Je(e).forEach(function(i) {
|
584
|
-
n[i] =
|
594
|
+
n[i] = ee(e[i], r);
|
585
595
|
}), Je(t).forEach(function(i) {
|
586
|
-
|
596
|
+
Br(e, i) || (bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
587
597
|
}), n;
|
588
598
|
}
|
589
|
-
function
|
590
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
599
|
+
function j(e, t, r) {
|
600
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Tr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = ee;
|
591
601
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
592
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
602
|
+
return o ? n ? r.arrayMerge(e, t, r) : Sr(e, t, r) : ee(t, r);
|
593
603
|
}
|
594
|
-
|
604
|
+
j.all = function(t, r) {
|
595
605
|
if (!Array.isArray(t))
|
596
606
|
throw new Error("first argument should be an array");
|
597
607
|
return t.reduce(function(n, i) {
|
598
|
-
return
|
608
|
+
return j(n, i, r);
|
599
609
|
}, {});
|
600
610
|
};
|
601
|
-
var Ar =
|
602
|
-
const
|
603
|
-
|
604
|
-
|
611
|
+
var Ar = j, wr = Ar;
|
612
|
+
const Or = /* @__PURE__ */ dr(wr);
|
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
|
+
***************************************************************************** */
|
627
|
+
var Ae = function(e, t) {
|
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)
|
608
|
-
|
631
|
+
for (var i in n)
|
632
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
633
|
+
}, Ae(e, t);
|
609
634
|
};
|
610
635
|
function fe(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);
|
614
639
|
function r() {
|
615
640
|
this.constructor = e;
|
616
641
|
}
|
@@ -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 o in r)
|
648
|
+
for (var o in r)
|
649
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
624
650
|
}
|
625
651
|
return t;
|
626
652
|
}, d.apply(this, arguments);
|
627
653
|
};
|
628
|
-
function
|
654
|
+
function Mr(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 ve(e, t, r) {
|
664
|
+
if (arguments.length === 2)
|
665
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
666
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
667
|
+
return e.concat(o || t);
|
640
668
|
}
|
641
|
-
function
|
642
|
-
var r = t && t.cache ? t.cache :
|
669
|
+
function Ee(e, t) {
|
670
|
+
var r = t && t.cache ? t.cache : Fr, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Lr;
|
643
671
|
return i(e, {
|
644
672
|
cache: r,
|
645
673
|
serializer: n
|
646
674
|
});
|
647
675
|
}
|
648
|
-
function
|
676
|
+
function Ir(e) {
|
649
677
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
650
678
|
}
|
651
679
|
function xt(e, t, r, n) {
|
652
|
-
var i =
|
680
|
+
var i = Ir(n) ? n : r(n), o = t.get(i);
|
653
681
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
654
682
|
}
|
655
683
|
function yt(e, t, r) {
|
@@ -659,17 +687,17 @@ function yt(e, t, r) {
|
|
659
687
|
function De(e, t, r, n, i) {
|
660
688
|
return r.bind(t, e, n, i);
|
661
689
|
}
|
662
|
-
function
|
690
|
+
function Lr(e, t) {
|
663
691
|
var r = e.length === 1 ? xt : yt;
|
664
692
|
return De(e, this, r, t.cache.create(), t.serializer);
|
665
693
|
}
|
666
|
-
function
|
694
|
+
function Cr(e, t) {
|
667
695
|
return De(e, this, yt, t.cache.create(), t.serializer);
|
668
696
|
}
|
669
|
-
function
|
697
|
+
function $r(e, t) {
|
670
698
|
return De(e, this, xt, t.cache.create(), t.serializer);
|
671
699
|
}
|
672
|
-
var
|
700
|
+
var Rr = function() {
|
673
701
|
return JSON.stringify(arguments);
|
674
702
|
};
|
675
703
|
function Ue() {
|
@@ -681,13 +709,13 @@ Ue.prototype.get = function(e) {
|
|
681
709
|
Ue.prototype.set = function(e, t) {
|
682
710
|
this.cache[e] = t;
|
683
711
|
};
|
684
|
-
var
|
712
|
+
var Fr = {
|
685
713
|
create: function() {
|
686
714
|
return new Ue();
|
687
715
|
}
|
688
|
-
},
|
689
|
-
variadic:
|
690
|
-
monadic:
|
716
|
+
}, _e = {
|
717
|
+
variadic: Cr,
|
718
|
+
monadic: $r
|
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 Ye(e) {
|
704
732
|
return e.type === v.literal;
|
705
733
|
}
|
706
|
-
function
|
734
|
+
function Gr(e) {
|
707
735
|
return e.type === v.argument;
|
708
736
|
}
|
709
737
|
function vt(e) {
|
@@ -721,7 +749,7 @@ function Ht(e) {
|
|
721
749
|
function Tt(e) {
|
722
750
|
return e.type === v.plural;
|
723
751
|
}
|
724
|
-
function
|
752
|
+
function Dr(e) {
|
725
753
|
return e.type === v.pound;
|
726
754
|
}
|
727
755
|
function Pt(e) {
|
@@ -730,13 +758,13 @@ function Pt(e) {
|
|
730
758
|
function Nt(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
|
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 kr(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,18 +853,18 @@ function Dr(e) {
|
|
825
853
|
return "";
|
826
854
|
}), t;
|
827
855
|
}
|
828
|
-
var
|
829
|
-
function
|
856
|
+
var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
857
|
+
function Vr(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(jr).filter(function(f) {
|
833
861
|
return f.length > 0;
|
834
862
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
835
|
-
var o = i[n],
|
836
|
-
if (
|
863
|
+
var o = i[n], s = o.split("/");
|
864
|
+
if (s.length === 0)
|
837
865
|
throw new Error("Invalid number skeleton");
|
838
|
-
for (var u =
|
839
|
-
var c = l[
|
866
|
+
for (var u = s[0], h = s.slice(1), a = 0, l = h; a < l.length; a++) {
|
867
|
+
var c = l[a];
|
840
868
|
if (c.length === 0)
|
841
869
|
throw new Error("Invalid number skeleton");
|
842
870
|
}
|
@@ -844,10 +872,10 @@ function jr(e) {
|
|
844
872
|
}
|
845
873
|
return r;
|
846
874
|
}
|
847
|
-
function
|
875
|
+
function Xr(e) {
|
848
876
|
return e.replace(/^(.*?)-/, "");
|
849
877
|
}
|
850
|
-
var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, St = /^(@+)?(\+|#+)?[rs]?$/g,
|
878
|
+
var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, St = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, At = /^(0+)$/;
|
851
879
|
function et(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) {
|
@@ -894,7 +922,7 @@ function wt(e) {
|
|
894
922
|
};
|
895
923
|
}
|
896
924
|
}
|
897
|
-
function
|
925
|
+
function Zr(e) {
|
898
926
|
var t;
|
899
927
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
900
928
|
notation: "engineering"
|
@@ -902,7 +930,7 @@ function Xr(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)), !At.test(e))
|
906
934
|
throw new Error("Malformed concise eng/scientific notation");
|
907
935
|
t.minimumIntegerDigits = e.length;
|
908
936
|
}
|
@@ -912,7 +940,7 @@ function tt(e) {
|
|
912
940
|
var t = {}, r = wt(e);
|
913
941
|
return r || t;
|
914
942
|
}
|
915
|
-
function
|
943
|
+
function Wr(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 zr(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 = Xr(i.options[0]);
|
940
968
|
continue;
|
941
969
|
case "compact-short":
|
942
970
|
case "K":
|
@@ -947,13 +975,13 @@ function zr(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), tt(
|
978
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
979
|
+
return d(d({}, h), tt(a));
|
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), tt(
|
983
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
984
|
+
return d(d({}, h), tt(a));
|
957
985
|
}, {}));
|
958
986
|
continue;
|
959
987
|
case "notation-simple":
|
@@ -998,8 +1026,8 @@ function zr(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(zr, function(h, a, l, c, f, b) {
|
1030
|
+
if (a)
|
1003
1031
|
t.minimumIntegerDigits = l.length;
|
1004
1032
|
else {
|
1005
1033
|
if (c && f)
|
@@ -1011,15 +1039,15 @@ function zr(e) {
|
|
1011
1039
|
});
|
1012
1040
|
continue;
|
1013
1041
|
}
|
1014
|
-
if (
|
1042
|
+
if (At.test(i.stem)) {
|
1015
1043
|
t.minimumIntegerDigits = i.stem.length;
|
1016
1044
|
continue;
|
1017
1045
|
}
|
1018
1046
|
if (Ke.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(Ke, function(h,
|
1022
|
-
return l === "*" ? t.minimumFractionDigits =
|
1049
|
+
i.stem.replace(Ke, function(h, a, l, c, f, b) {
|
1050
|
+
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
1023
1051
|
});
|
1024
1052
|
var o = i.options[0];
|
1025
1053
|
o === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = d(d({}, t), et(o)));
|
@@ -1029,14 +1057,14 @@ function zr(e) {
|
|
1029
1057
|
t = d(d({}, t), et(i.stem));
|
1030
1058
|
continue;
|
1031
1059
|
}
|
1032
|
-
var
|
1033
|
-
|
1034
|
-
var u =
|
1060
|
+
var s = wt(i.stem);
|
1061
|
+
s && (t = d(d({}, t), s));
|
1062
|
+
var u = Zr(i.stem);
|
1035
1063
|
u && (t = d(d({}, t), u));
|
1036
1064
|
}
|
1037
1065
|
return t;
|
1038
1066
|
}
|
1039
|
-
var
|
1067
|
+
var ie = {
|
1040
1068
|
"001": [
|
1041
1069
|
"H",
|
1042
1070
|
"h"
|
@@ -2451,22 +2479,23 @@ var ne = {
|
|
2451
2479
|
"h"
|
2452
2480
|
]
|
2453
2481
|
};
|
2454
|
-
function
|
2482
|
+
function Qr(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 o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2459
2487
|
o++, n++;
|
2460
|
-
var
|
2461
|
-
for ((
|
2488
|
+
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), h = "a", a = qr(t);
|
2489
|
+
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
2462
2490
|
r += h;
|
2463
|
-
for (;
|
2464
|
-
r =
|
2465
|
-
} else
|
2491
|
+
for (; s-- > 0; )
|
2492
|
+
r = a + r;
|
2493
|
+
} else
|
2494
|
+
i === "J" ? r += "H" : r += i;
|
2466
2495
|
}
|
2467
2496
|
return r;
|
2468
2497
|
}
|
2469
|
-
function
|
2498
|
+
function qr(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 Wr(e) {
|
|
2485
2514
|
}
|
2486
2515
|
var r = e.language, n;
|
2487
2516
|
r !== "root" && (n = e.maximize().region);
|
2488
|
-
var i =
|
2517
|
+
var i = ie[n || ""] || ie[r || ""] || ie["".concat(r, "-001")] || ie["001"];
|
2489
2518
|
return i[0];
|
2490
2519
|
}
|
2491
|
-
var
|
2520
|
+
var He, Jr = new RegExp("^".concat(Bt.source, "*")), Yr = new RegExp("".concat(Bt.source, "*$"));
|
2492
2521
|
function g(e, t) {
|
2493
2522
|
return { start: e, end: t };
|
2494
2523
|
}
|
2495
|
-
var
|
2524
|
+
var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), en = !!String.fromCodePoint, tn = !!Object.fromEntries, rn = !!String.prototype.codePointAt, nn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, an = !!Number.isSafeInteger, sn = an ? Number.isSafeInteger : function(e) {
|
2496
2525
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2497
|
-
},
|
2526
|
+
}, Oe = !0;
|
2498
2527
|
try {
|
2499
|
-
var
|
2500
|
-
|
2528
|
+
var un = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2529
|
+
Oe = ((He = un.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
2501
2530
|
} catch (e) {
|
2502
|
-
|
2531
|
+
Oe = !1;
|
2503
2532
|
}
|
2504
|
-
var rt =
|
2533
|
+
var rt = Kr ? (
|
2505
2534
|
// Native
|
2506
2535
|
function(t, r, n) {
|
2507
2536
|
return t.startsWith(r, n);
|
@@ -2511,31 +2540,31 @@ var rt = Jr ? (
|
|
2511
2540
|
function(t, r, n) {
|
2512
2541
|
return t.slice(n, n + r.length) === r;
|
2513
2542
|
}
|
2514
|
-
),
|
2543
|
+
), Me = en ? 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, o = 0,
|
2520
|
-
if (
|
2521
|
-
throw RangeError(
|
2522
|
-
n +=
|
2548
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
2549
|
+
if (s = t[o++], s > 1114111)
|
2550
|
+
throw RangeError(s + " is not a valid code point");
|
2551
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
2523
2552
|
}
|
2524
2553
|
return n;
|
2525
2554
|
}
|
2526
2555
|
), nt = (
|
2527
2556
|
// native
|
2528
|
-
|
2557
|
+
tn ? Object.fromEntries : (
|
2529
2558
|
// Ponyfill
|
2530
2559
|
function(t) {
|
2531
2560
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
2532
|
-
var o = i[n],
|
2533
|
-
r[
|
2561
|
+
var o = i[n], s = o[0], u = o[1];
|
2562
|
+
r[s] = u;
|
2534
2563
|
}
|
2535
2564
|
return r;
|
2536
2565
|
}
|
2537
2566
|
)
|
2538
|
-
), Ot =
|
2567
|
+
), Ot = rn ? (
|
2539
2568
|
// Native
|
2540
2569
|
function(t, r) {
|
2541
2570
|
return t.codePointAt(r);
|
@@ -2549,7 +2578,7 @@ var rt = Jr ? (
|
|
2549
2578
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2550
2579
|
}
|
2551
2580
|
}
|
2552
|
-
),
|
2581
|
+
), hn = nn ? (
|
2553
2582
|
// Native
|
2554
2583
|
function(t) {
|
2555
2584
|
return t.trimStart();
|
@@ -2557,9 +2586,9 @@ var rt = Jr ? (
|
|
2557
2586
|
) : (
|
2558
2587
|
// Ponyfill
|
2559
2588
|
function(t) {
|
2560
|
-
return t.replace(
|
2589
|
+
return t.replace(Jr, "");
|
2561
2590
|
}
|
2562
|
-
),
|
2591
|
+
), ln = on ? (
|
2563
2592
|
// Native
|
2564
2593
|
function(t) {
|
2565
2594
|
return t.trimEnd();
|
@@ -2567,15 +2596,15 @@ var rt = Jr ? (
|
|
2567
2596
|
) : (
|
2568
2597
|
// Ponyfill
|
2569
2598
|
function(t) {
|
2570
|
-
return t.replace(
|
2599
|
+
return t.replace(Yr, "");
|
2571
2600
|
}
|
2572
2601
|
);
|
2573
|
-
function
|
2602
|
+
function Mt(e, t) {
|
2574
2603
|
return new RegExp(e, t);
|
2575
2604
|
}
|
2576
2605
|
var Ie;
|
2577
|
-
if (
|
2578
|
-
var it =
|
2606
|
+
if (Oe) {
|
2607
|
+
var it = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2579
2608
|
Ie = function(t, r) {
|
2580
2609
|
var n;
|
2581
2610
|
it.lastIndex = r;
|
@@ -2586,13 +2615,13 @@ if (we) {
|
|
2586
2615
|
Ie = function(t, r) {
|
2587
2616
|
for (var n = []; ; ) {
|
2588
2617
|
var i = Ot(t, r);
|
2589
|
-
if (i === void 0 ||
|
2618
|
+
if (i === void 0 || It(i) || pn(i))
|
2590
2619
|
break;
|
2591
2620
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2592
2621
|
}
|
2593
|
-
return
|
2622
|
+
return Me.apply(void 0, n);
|
2594
2623
|
};
|
2595
|
-
var
|
2624
|
+
var cn = (
|
2596
2625
|
/** @class */
|
2597
2626
|
function() {
|
2598
2627
|
function e(t, r) {
|
@@ -2606,10 +2635,10 @@ var hn = (
|
|
2606
2635
|
for (var i = []; !this.isEOF(); ) {
|
2607
2636
|
var o = this.char();
|
2608
2637
|
if (o === 123) {
|
2609
|
-
var
|
2610
|
-
if (
|
2611
|
-
return
|
2612
|
-
i.push(
|
2638
|
+
var s = this.parseArgument(t, n);
|
2639
|
+
if (s.err)
|
2640
|
+
return s;
|
2641
|
+
i.push(s.val);
|
2613
2642
|
} else {
|
2614
2643
|
if (o === 125 && t > 0)
|
2615
2644
|
break;
|
@@ -2623,16 +2652,16 @@ var hn = (
|
|
2623
2652
|
if (n)
|
2624
2653
|
break;
|
2625
2654
|
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
2626
|
-
} else if (o === 60 && !this.ignoreTag &&
|
2627
|
-
var
|
2628
|
-
if (
|
2629
|
-
return
|
2630
|
-
i.push(
|
2655
|
+
} else if (o === 60 && !this.ignoreTag && Le(this.peek() || 0)) {
|
2656
|
+
var s = this.parseTag(t, r);
|
2657
|
+
if (s.err)
|
2658
|
+
return s;
|
2659
|
+
i.push(s.val);
|
2631
2660
|
} else {
|
2632
|
-
var
|
2633
|
-
if (
|
2634
|
-
return
|
2635
|
-
i.push(
|
2661
|
+
var s = this.parseLiteral(t, r);
|
2662
|
+
if (s.err)
|
2663
|
+
return s;
|
2664
|
+
i.push(s.val);
|
2636
2665
|
}
|
2637
2666
|
}
|
2638
2667
|
}
|
@@ -2654,16 +2683,16 @@ var hn = (
|
|
2654
2683
|
var o = this.parseMessage(t + 1, r, !0);
|
2655
2684
|
if (o.err)
|
2656
2685
|
return o;
|
2657
|
-
var
|
2686
|
+
var s = o.val, u = this.clonePosition();
|
2658
2687
|
if (this.bumpIf("</")) {
|
2659
|
-
if (this.isEOF() || !
|
2688
|
+
if (this.isEOF() || !Le(this.char()))
|
2660
2689
|
return this.error(p.INVALID_TAG, g(u, this.clonePosition()));
|
2661
|
-
var h = this.clonePosition(),
|
2662
|
-
return i !==
|
2690
|
+
var h = this.clonePosition(), a = this.parseTagName();
|
2691
|
+
return i !== a ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2663
2692
|
val: {
|
2664
2693
|
type: v.tag,
|
2665
2694
|
value: i,
|
2666
|
-
children:
|
2695
|
+
children: s,
|
2667
2696
|
location: g(n, this.clonePosition())
|
2668
2697
|
},
|
2669
2698
|
err: null
|
@@ -2674,7 +2703,7 @@ var hn = (
|
|
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() && mn(this.char()); )
|
2678
2707
|
this.bump();
|
2679
2708
|
return this.message.slice(t, this.offset());
|
2680
2709
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2684,9 +2713,9 @@ var hn = (
|
|
2684
2713
|
i += o;
|
2685
2714
|
continue;
|
2686
2715
|
}
|
2687
|
-
var
|
2688
|
-
if (
|
2689
|
-
i +=
|
2716
|
+
var s = this.tryParseUnquoted(t, r);
|
2717
|
+
if (s) {
|
2718
|
+
i += s;
|
2690
2719
|
continue;
|
2691
2720
|
}
|
2692
2721
|
var u = this.tryParseLeftAngleBracket();
|
@@ -2703,7 +2732,7 @@ var hn = (
|
|
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
|
+
!fn(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 hn = (
|
|
2737
2766
|
r.push(n);
|
2738
2767
|
this.bump();
|
2739
2768
|
}
|
2740
|
-
return
|
2769
|
+
return Me.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(), Me(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,54 +2802,54 @@ var hn = (
|
|
2773
2802
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2774
2803
|
var t = this.clonePosition(), r = this.offset(), n = Ie(this.message, r), i = r + n.length;
|
2775
2804
|
this.bumpTo(i);
|
2776
|
-
var o = this.clonePosition(),
|
2777
|
-
return { value: n, location:
|
2805
|
+
var o = this.clonePosition(), s = g(t, o);
|
2806
|
+
return { value: n, location: s };
|
2778
2807
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2779
|
-
var o,
|
2808
|
+
var o, s = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2780
2809
|
switch (u) {
|
2781
2810
|
case "":
|
2782
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE, g(
|
2811
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, h));
|
2783
2812
|
case "number":
|
2784
2813
|
case "date":
|
2785
2814
|
case "time": {
|
2786
2815
|
this.bumpSpace();
|
2787
|
-
var
|
2816
|
+
var a = 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 = ln(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
|
+
a = { 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
|
2831
|
+
var m = g(i, this.clonePosition());
|
2832
|
+
if (a && rt(a == null ? void 0 : a.style, "::", 0)) {
|
2833
|
+
var E = hn(a.style.slice(2));
|
2805
2834
|
if (u === "number") {
|
2806
|
-
var c = this.parseNumberSkeletonFromString(
|
2835
|
+
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
2807
2836
|
return c.err ? c : {
|
2808
|
-
val: { type: v.number, value: n, location:
|
2837
|
+
val: { type: v.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 T = E;
|
2844
|
+
this.locale && (T = Qr(E, this.locale));
|
2816
2845
|
var f = {
|
2817
2846
|
type: V.dateTime,
|
2818
|
-
pattern:
|
2819
|
-
location:
|
2820
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2821
|
-
},
|
2847
|
+
pattern: T,
|
2848
|
+
location: a.styleLocation,
|
2849
|
+
parsedOptions: this.shouldParseSkeletons ? kr(T) : {}
|
2850
|
+
}, w = u === "date" ? v.date : v.time;
|
2822
2851
|
return {
|
2823
|
-
val: { type:
|
2852
|
+
val: { type: w, value: n, location: m, style: f },
|
2824
2853
|
err: null
|
2825
2854
|
};
|
2826
2855
|
}
|
@@ -2829,8 +2858,8 @@ var hn = (
|
|
2829
2858
|
val: {
|
2830
2859
|
type: u === "number" ? v.number : u === "date" ? v.date : v.time,
|
2831
2860
|
value: n,
|
2832
|
-
location:
|
2833
|
-
style: (o =
|
2861
|
+
location: m,
|
2862
|
+
style: (o = a == null ? void 0 : a.style) !== null && o !== void 0 ? o : null
|
2834
2863
|
},
|
2835
2864
|
err: null
|
2836
2865
|
};
|
@@ -2838,33 +2867,33 @@ var hn = (
|
|
2838
2867
|
case "plural":
|
2839
2868
|
case "selectordinal":
|
2840
2869
|
case "select": {
|
2841
|
-
var
|
2870
|
+
var P = 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(P, d({}, P)));
|
2844
2873
|
this.bumpSpace();
|
2845
|
-
var
|
2846
|
-
if (u !== "select" &&
|
2874
|
+
var S = this.parseIdentifierIfPossible(), N = 0;
|
2875
|
+
if (u !== "select" && S.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(), S = this.parseIdentifierIfPossible(), N = c.val;
|
2854
2883
|
}
|
2855
|
-
var O = this.tryParsePluralOrSelectOptions(t, u, r,
|
2884
|
+
var O = this.tryParsePluralOrSelectOptions(t, u, r, S);
|
2856
2885
|
if (O.err)
|
2857
2886
|
return O;
|
2858
2887
|
var y = this.tryParseArgumentClose(i);
|
2859
2888
|
if (y.err)
|
2860
2889
|
return y;
|
2861
|
-
var
|
2890
|
+
var F = g(i, this.clonePosition());
|
2862
2891
|
return u === "select" ? {
|
2863
2892
|
val: {
|
2864
2893
|
type: v.select,
|
2865
2894
|
value: n,
|
2866
2895
|
options: nt(O.val),
|
2867
|
-
location:
|
2896
|
+
location: F
|
2868
2897
|
},
|
2869
2898
|
err: null
|
2870
2899
|
} : {
|
@@ -2872,15 +2901,15 @@ var hn = (
|
|
2872
2901
|
type: v.plural,
|
2873
2902
|
value: n,
|
2874
2903
|
options: nt(O.val),
|
2875
|
-
offset:
|
2904
|
+
offset: N,
|
2876
2905
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
2877
|
-
location:
|
2906
|
+
location: F
|
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(s, 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 hn = (
|
|
2922
2951
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2923
2952
|
var n = [];
|
2924
2953
|
try {
|
2925
|
-
n =
|
2954
|
+
n = Vr(t);
|
2926
2955
|
} catch (i) {
|
2927
2956
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
2928
2957
|
}
|
@@ -2931,55 +2960,55 @@ var hn = (
|
|
2931
2960
|
type: V.number,
|
2932
2961
|
tokens: n,
|
2933
2962
|
location: r,
|
2934
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2963
|
+
parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
|
2935
2964
|
},
|
2936
2965
|
err: null
|
2937
2966
|
};
|
2938
2967
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2939
|
-
for (var o,
|
2940
|
-
if (
|
2968
|
+
for (var o, s = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
|
2969
|
+
if (a.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()), a = this.message.slice(c.offset, this.offset());
|
2947
2976
|
} else
|
2948
2977
|
break;
|
2949
2978
|
}
|
2950
|
-
if (h.has(
|
2979
|
+
if (h.has(a))
|
2951
2980
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2952
|
-
|
2981
|
+
a === "other" && (s = !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
|
2988
|
+
var m = this.tryParseArgumentClose(b);
|
2989
|
+
if (m.err)
|
2990
|
+
return m;
|
2962
2991
|
u.push([
|
2963
|
-
|
2992
|
+
a,
|
2964
2993
|
{
|
2965
2994
|
value: y.val,
|
2966
2995
|
location: g(b, this.clonePosition())
|
2967
2996
|
}
|
2968
|
-
]), h.add(
|
2997
|
+
]), h.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, l = o.location;
|
2969
2998
|
}
|
2970
|
-
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 && !
|
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 && !s ? 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 o = !1,
|
3003
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
2975
3004
|
var u = this.char();
|
2976
3005
|
if (u >= 48 && u <= 57)
|
2977
|
-
o = !0,
|
3006
|
+
o = !0, s = s * 10 + (u - 48), this.bump();
|
2978
3007
|
else
|
2979
3008
|
break;
|
2980
3009
|
}
|
2981
3010
|
var h = g(i, this.clonePosition());
|
2982
|
-
return o ? (
|
3011
|
+
return o ? (s *= n, sn(s) ? { val: s, 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 hn = (
|
|
3035
3064
|
break;
|
3036
3065
|
}
|
3037
3066
|
}, e.prototype.bumpSpace = function() {
|
3038
|
-
for (; !this.isEOF() &&
|
3067
|
+
for (; !this.isEOF() && It(this.char()); )
|
3039
3068
|
this.bump();
|
3040
3069
|
}, e.prototype.peek = function() {
|
3041
3070
|
if (this.isEOF())
|
@@ -3045,43 +3074,44 @@ var hn = (
|
|
3045
3074
|
}, e;
|
3046
3075
|
}()
|
3047
3076
|
);
|
3048
|
-
function
|
3077
|
+
function Le(e) {
|
3049
3078
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3050
3079
|
}
|
3051
|
-
function ln(e) {
|
3052
|
-
return Me(e) || e === 47;
|
3053
|
-
}
|
3054
3080
|
function fn(e) {
|
3081
|
+
return Le(e) || e === 47;
|
3082
|
+
}
|
3083
|
+
function mn(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 It(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 pn(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, Ht(t) || Tt(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
|
+
vt(t) && Nt(t.style) || (Et(t) || _t(t)) && we(t.style) ? delete t.style.location : Pt(t) && Ce(t.children);
|
3069
3099
|
});
|
3070
3100
|
}
|
3071
|
-
function
|
3101
|
+
function gn(e, t) {
|
3072
3102
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3073
|
-
var r = new
|
3103
|
+
var r = new cn(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 X;
|
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
|
})(X || (X = {}));
|
3084
|
-
var
|
3114
|
+
var me = (
|
3085
3115
|
/** @class */
|
3086
3116
|
function(e) {
|
3087
3117
|
fe(t, e);
|
@@ -3101,8 +3131,8 @@ var ce = (
|
|
3101
3131
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
3102
3132
|
}
|
3103
3133
|
return t;
|
3104
|
-
}(
|
3105
|
-
),
|
3134
|
+
}(me)
|
3135
|
+
), dn = (
|
3106
3136
|
/** @class */
|
3107
3137
|
function(e) {
|
3108
3138
|
fe(t, e);
|
@@ -3110,8 +3140,8 @@ var ce = (
|
|
3110
3140
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
3111
3141
|
}
|
3112
3142
|
return t;
|
3113
|
-
}(
|
3114
|
-
),
|
3143
|
+
}(me)
|
3144
|
+
), bn = (
|
3115
3145
|
/** @class */
|
3116
3146
|
function(e) {
|
3117
3147
|
fe(t, e);
|
@@ -3119,67 +3149,67 @@ var ce = (
|
|
3119
3149
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
3120
3150
|
}
|
3121
3151
|
return t;
|
3122
|
-
}(
|
3123
|
-
),
|
3152
|
+
}(me)
|
3153
|
+
), H;
|
3124
3154
|
(function(e) {
|
3125
3155
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3126
|
-
})(
|
3127
|
-
function
|
3156
|
+
})(H || (H = {}));
|
3157
|
+
function xn(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 !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
3131
3161
|
}, []);
|
3132
3162
|
}
|
3133
|
-
function
|
3163
|
+
function yn(e) {
|
3134
3164
|
return typeof e == "function";
|
3135
3165
|
}
|
3136
|
-
function
|
3166
|
+
function se(e, t, r, n, i, o, s) {
|
3137
3167
|
if (e.length === 1 && Ye(e[0]))
|
3138
3168
|
return [
|
3139
3169
|
{
|
3140
|
-
type:
|
3170
|
+
type: H.literal,
|
3141
3171
|
value: e[0].value
|
3142
3172
|
}
|
3143
3173
|
];
|
3144
|
-
for (var u = [], h = 0,
|
3145
|
-
var l =
|
3174
|
+
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
3175
|
+
var l = a[h];
|
3146
3176
|
if (Ye(l)) {
|
3147
3177
|
u.push({
|
3148
|
-
type:
|
3178
|
+
type: H.literal,
|
3149
3179
|
value: l.value
|
3150
3180
|
});
|
3151
3181
|
continue;
|
3152
3182
|
}
|
3153
|
-
if (
|
3183
|
+
if (Dr(l)) {
|
3154
3184
|
typeof o == "number" && u.push({
|
3155
|
-
type:
|
3185
|
+
type: H.literal,
|
3156
3186
|
value: r.getNumberFormat(t).format(o)
|
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 bn(c, s);
|
3163
3193
|
var f = i[c];
|
3164
|
-
if (
|
3194
|
+
if (Gr(l)) {
|
3165
3195
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
3166
|
-
type: typeof f == "string" ?
|
3196
|
+
type: typeof f == "string" ? H.literal : H.object,
|
3167
3197
|
value: f
|
3168
3198
|
});
|
3169
3199
|
continue;
|
3170
3200
|
}
|
3171
3201
|
if (Et(l)) {
|
3172
|
-
var b = typeof l.style == "string" ? n.date[l.style] :
|
3202
|
+
var b = typeof l.style == "string" ? n.date[l.style] : we(l.style) ? l.style.parsedOptions : void 0;
|
3173
3203
|
u.push({
|
3174
|
-
type:
|
3204
|
+
type: H.literal,
|
3175
3205
|
value: r.getDateTimeFormat(t, b).format(f)
|
3176
3206
|
});
|
3177
3207
|
continue;
|
3178
3208
|
}
|
3179
3209
|
if (_t(l)) {
|
3180
|
-
var b = typeof l.style == "string" ? n.time[l.style] :
|
3210
|
+
var b = typeof l.style == "string" ? n.time[l.style] : we(l.style) ? l.style.parsedOptions : n.time.medium;
|
3181
3211
|
u.push({
|
3182
|
-
type:
|
3212
|
+
type: H.literal,
|
3183
3213
|
value: r.getDateTimeFormat(t, b).format(f)
|
3184
3214
|
});
|
3185
3215
|
continue;
|
@@ -3187,61 +3217,61 @@ function ae(e, t, r, n, i, o, a) {
|
|
3187
3217
|
if (vt(l)) {
|
3188
3218
|
var b = typeof l.style == "string" ? n.number[l.style] : Nt(l.style) ? l.style.parsedOptions : void 0;
|
3189
3219
|
b && b.scale && (f = f * (b.scale || 1)), u.push({
|
3190
|
-
type:
|
3220
|
+
type: H.literal,
|
3191
3221
|
value: r.getNumberFormat(t, b).format(f)
|
3192
3222
|
});
|
3193
3223
|
continue;
|
3194
3224
|
}
|
3195
3225
|
if (Pt(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 (!yn(E))
|
3228
|
+
throw new dn(m, "function", s);
|
3229
|
+
var T = se(y, t, r, n, i, o), w = E(T.map(function(N) {
|
3230
|
+
return N.value;
|
3201
3231
|
}));
|
3202
|
-
Array.isArray(
|
3232
|
+
Array.isArray(w) || (w = [w]), u.push.apply(u, w.map(function(N) {
|
3203
3233
|
return {
|
3204
|
-
type: typeof
|
3205
|
-
value:
|
3234
|
+
type: typeof N == "string" ? H.literal : H.object,
|
3235
|
+
value: N
|
3206
3236
|
};
|
3207
3237
|
}));
|
3208
3238
|
}
|
3209
3239
|
if (Ht(l)) {
|
3210
|
-
var
|
3211
|
-
if (!
|
3212
|
-
throw new ot(l.value, f, Object.keys(l.options),
|
3213
|
-
u.push.apply(u,
|
3240
|
+
var P = l.options[f] || l.options.other;
|
3241
|
+
if (!P)
|
3242
|
+
throw new ot(l.value, f, Object.keys(l.options), s);
|
3243
|
+
u.push.apply(u, se(P.value, t, r, n, i));
|
3214
3244
|
continue;
|
3215
3245
|
}
|
3216
3246
|
if (Tt(l)) {
|
3217
|
-
var
|
3218
|
-
if (!
|
3247
|
+
var P = l.options["=".concat(f)];
|
3248
|
+
if (!P) {
|
3219
3249
|
if (!Intl.PluralRules)
|
3220
|
-
throw new
|
3250
|
+
throw new me(`Intl.PluralRules is not available in this environment.
|
3221
3251
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3222
|
-
`, X.MISSING_INTL_API,
|
3223
|
-
var
|
3224
|
-
|
3252
|
+
`, X.MISSING_INTL_API, s);
|
3253
|
+
var S = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
3254
|
+
P = l.options[S] || l.options.other;
|
3225
3255
|
}
|
3226
|
-
if (!
|
3227
|
-
throw new ot(l.value, f, Object.keys(l.options),
|
3228
|
-
u.push.apply(u,
|
3256
|
+
if (!P)
|
3257
|
+
throw new ot(l.value, f, Object.keys(l.options), s);
|
3258
|
+
u.push.apply(u, se(P.value, t, r, n, i, f - (l.offset || 0)));
|
3229
3259
|
continue;
|
3230
3260
|
}
|
3231
3261
|
}
|
3232
|
-
return
|
3262
|
+
return xn(u);
|
3233
3263
|
}
|
3234
|
-
function
|
3264
|
+
function vn(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 En(e, t) {
|
3240
3270
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3241
|
-
return r[n] =
|
3271
|
+
return r[n] = vn(e[n], t[n]), r;
|
3242
3272
|
}, d({}, e)) : e;
|
3243
3273
|
}
|
3244
|
-
function
|
3274
|
+
function Te(e) {
|
3245
3275
|
return {
|
3246
3276
|
create: function() {
|
3247
3277
|
return {
|
@@ -3255,39 +3285,39 @@ function He(e) {
|
|
3255
3285
|
}
|
3256
3286
|
};
|
3257
3287
|
}
|
3258
|
-
function
|
3288
|
+
function _n(e) {
|
3259
3289
|
return e === void 0 && (e = {
|
3260
3290
|
number: {},
|
3261
3291
|
dateTime: {},
|
3262
3292
|
pluralRules: {}
|
3263
3293
|
}), {
|
3264
|
-
getNumberFormat:
|
3294
|
+
getNumberFormat: Ee(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, ve([void 0], r, !1)))();
|
3268
3298
|
}, {
|
3269
|
-
cache:
|
3270
|
-
strategy:
|
3299
|
+
cache: Te(e.number),
|
3300
|
+
strategy: _e.variadic
|
3271
3301
|
}),
|
3272
|
-
getDateTimeFormat:
|
3302
|
+
getDateTimeFormat: Ee(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, ve([void 0], r, !1)))();
|
3276
3306
|
}, {
|
3277
|
-
cache:
|
3278
|
-
strategy:
|
3307
|
+
cache: Te(e.dateTime),
|
3308
|
+
strategy: _e.variadic
|
3279
3309
|
}),
|
3280
|
-
getPluralRules:
|
3310
|
+
getPluralRules: Ee(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, ve([void 0], r, !1)))();
|
3284
3314
|
}, {
|
3285
|
-
cache:
|
3286
|
-
strategy:
|
3315
|
+
cache: Te(e.pluralRules),
|
3316
|
+
strategy: _e.variadic
|
3287
3317
|
})
|
3288
3318
|
};
|
3289
3319
|
}
|
3290
|
-
var
|
3320
|
+
var Hn = (
|
3291
3321
|
/** @class */
|
3292
3322
|
function() {
|
3293
3323
|
function e(t, r, n, i) {
|
@@ -3298,15 +3328,15 @@ var En = (
|
|
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 a = o.formatToParts(h);
|
3332
|
+
if (a.length === 1)
|
3333
|
+
return a[0].value;
|
3334
|
+
var l = a.reduce(function(c, f) {
|
3335
|
+
return !c.length || f.type !== H.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 se(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3310
3340
|
}, this.resolvedOptions = function() {
|
3311
3341
|
var h;
|
3312
3342
|
return {
|
@@ -3317,15 +3347,15 @@ var En = (
|
|
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 u =
|
3350
|
+
var s = i || {};
|
3351
|
+
s.formatters;
|
3352
|
+
var u = Mr(s, ["formatters"]);
|
3323
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 = En(e.formats, n), this.formatters = i && i.formatters || _n(this.formatterCache);
|
3329
3359
|
}
|
3330
3360
|
return Object.defineProperty(e, "defaultLocale", {
|
3331
3361
|
get: function() {
|
@@ -3338,7 +3368,7 @@ var En = (
|
|
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 = gn, e.formats = {
|
3342
3372
|
number: {
|
3343
3373
|
integer: {
|
3344
3374
|
maximumFractionDigits: 0
|
@@ -3399,7 +3429,7 @@ var En = (
|
|
3399
3429
|
}, e;
|
3400
3430
|
}()
|
3401
3431
|
);
|
3402
|
-
function
|
3432
|
+
function Tn(e, t) {
|
3403
3433
|
if (t == null)
|
3404
3434
|
return;
|
3405
3435
|
if (t in e)
|
@@ -3420,36 +3450,36 @@ function _n(e, t) {
|
|
3420
3450
|
n = void 0;
|
3421
3451
|
return n;
|
3422
3452
|
}
|
3423
|
-
const
|
3453
|
+
const I = {}, Pn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Lt = (e, t) => {
|
3424
3454
|
if (t == null)
|
3425
3455
|
return;
|
3426
|
-
if (t in
|
3427
|
-
return
|
3428
|
-
const r =
|
3456
|
+
if (t in I && e in I[t])
|
3457
|
+
return I[t][e];
|
3458
|
+
const r = pe(t);
|
3429
3459
|
for (let n = 0; n < r.length; n++) {
|
3430
|
-
const i = r[n], o =
|
3460
|
+
const i = r[n], o = Bn(i, e);
|
3431
3461
|
if (o)
|
3432
|
-
return
|
3462
|
+
return Pn(e, t, o);
|
3433
3463
|
}
|
3434
3464
|
};
|
3435
|
-
let
|
3436
|
-
const
|
3437
|
-
function
|
3438
|
-
return
|
3465
|
+
let ke;
|
3466
|
+
const ne = ce({});
|
3467
|
+
function Nn(e) {
|
3468
|
+
return ke[e] || null;
|
3439
3469
|
}
|
3440
3470
|
function Ct(e) {
|
3441
|
-
return e in
|
3471
|
+
return e in ke;
|
3442
3472
|
}
|
3443
|
-
function
|
3473
|
+
function Bn(e, t) {
|
3444
3474
|
if (!Ct(e))
|
3445
3475
|
return null;
|
3446
|
-
const r =
|
3447
|
-
return
|
3476
|
+
const r = Nn(e);
|
3477
|
+
return Tn(r, t);
|
3448
3478
|
}
|
3449
|
-
function
|
3479
|
+
function Sn(e) {
|
3450
3480
|
if (e == null)
|
3451
3481
|
return;
|
3452
|
-
const t =
|
3482
|
+
const t = pe(e);
|
3453
3483
|
for (let r = 0; r < t.length; r++) {
|
3454
3484
|
const n = t[r];
|
3455
3485
|
if (Ct(n))
|
@@ -3457,55 +3487,55 @@ function Nn(e) {
|
|
3457
3487
|
}
|
3458
3488
|
}
|
3459
3489
|
function $t(e, ...t) {
|
3460
|
-
delete
|
3490
|
+
delete I[e], ne.update((r) => (r[e] = Or.all([r[e] || {}, ...t]), r));
|
3461
3491
|
}
|
3462
3492
|
Z(
|
3463
|
-
[
|
3493
|
+
[ne],
|
3464
3494
|
([e]) => Object.keys(e)
|
3465
3495
|
);
|
3466
|
-
|
3467
|
-
const
|
3496
|
+
ne.subscribe((e) => ke = e);
|
3497
|
+
const ue = {};
|
3468
3498
|
function An(e, t) {
|
3469
|
-
|
3499
|
+
ue[e].delete(t), ue[e].size === 0 && delete ue[e];
|
3470
3500
|
}
|
3471
3501
|
function Rt(e) {
|
3472
|
-
return
|
3502
|
+
return ue[e];
|
3473
3503
|
}
|
3474
|
-
function
|
3475
|
-
return
|
3504
|
+
function wn(e) {
|
3505
|
+
return pe(e).map((t) => {
|
3476
3506
|
const r = Rt(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 : pe(e).some(
|
3482
3512
|
(t) => {
|
3483
3513
|
var r;
|
3484
3514
|
return (r = Rt(t)) == null ? void 0 : r.size;
|
3485
3515
|
}
|
3486
3516
|
);
|
3487
3517
|
}
|
3488
|
-
function
|
3518
|
+
function On(e, t) {
|
3489
3519
|
return Promise.all(
|
3490
3520
|
t.map((n) => (An(e, n), n().then((i) => i.default || i)))
|
3491
3521
|
).then((n) => $t(e, ...n));
|
3492
3522
|
}
|
3493
3523
|
const J = {};
|
3494
3524
|
function Ft(e) {
|
3495
|
-
if (
|
3525
|
+
if (!$e(e))
|
3496
3526
|
return e in J ? J[e] : Promise.resolve();
|
3497
|
-
const t =
|
3527
|
+
const t = wn(e);
|
3498
3528
|
return J[e] = Promise.all(
|
3499
3529
|
t.map(
|
3500
|
-
([r, n]) =>
|
3530
|
+
([r, n]) => On(r, n)
|
3501
3531
|
)
|
3502
3532
|
).then(() => {
|
3503
|
-
if (
|
3533
|
+
if ($e(e))
|
3504
3534
|
return Ft(e);
|
3505
3535
|
delete J[e];
|
3506
3536
|
}), J[e];
|
3507
3537
|
}
|
3508
|
-
const
|
3538
|
+
const Mn = {
|
3509
3539
|
number: {
|
3510
3540
|
scientific: { notation: "scientific" },
|
3511
3541
|
engineering: { notation: "engineering" },
|
@@ -3534,150 +3564,150 @@ const wn = {
|
|
3534
3564
|
timeZoneName: "short"
|
3535
3565
|
}
|
3536
3566
|
}
|
3537
|
-
},
|
3567
|
+
}, In = {
|
3538
3568
|
fallbackLocale: null,
|
3539
3569
|
loadingDelay: 200,
|
3540
|
-
formats:
|
3570
|
+
formats: Mn,
|
3541
3571
|
warnOnMissingMessages: !0,
|
3542
3572
|
handleMissingMessage: void 0,
|
3543
3573
|
ignoreTag: !0
|
3544
|
-
},
|
3574
|
+
}, Ln = In;
|
3545
3575
|
function z() {
|
3546
|
-
return
|
3576
|
+
return Ln;
|
3547
3577
|
}
|
3548
|
-
const
|
3549
|
-
var
|
3578
|
+
const Pe = ce(!1);
|
3579
|
+
var Cn = Object.defineProperty, $n = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Fn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? Cn(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
|
+
Fn.call(t, r) && st(e, r, t[r]);
|
3552
3582
|
if (at)
|
3553
3583
|
for (var r of at(t))
|
3554
|
-
|
3584
|
+
Gn.call(t, r) && st(e, r, t[r]);
|
3555
3585
|
return e;
|
3556
|
-
},
|
3557
|
-
let
|
3558
|
-
const
|
3586
|
+
}, Un = (e, t) => $n(e, Rn(t));
|
3587
|
+
let Re;
|
3588
|
+
const he = ce(null);
|
3559
3589
|
function ut(e) {
|
3560
3590
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3561
3591
|
}
|
3562
|
-
function
|
3592
|
+
function pe(e, t = z().fallbackLocale) {
|
3563
3593
|
const r = ut(e);
|
3564
3594
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ut(t)])] : r;
|
3565
3595
|
}
|
3566
|
-
function
|
3567
|
-
return
|
3596
|
+
function R() {
|
3597
|
+
return Re != null ? Re : void 0;
|
3568
3598
|
}
|
3569
|
-
|
3570
|
-
|
3599
|
+
he.subscribe((e) => {
|
3600
|
+
Re = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3571
3601
|
});
|
3572
|
-
const
|
3573
|
-
if (e &&
|
3602
|
+
const kn = (e) => {
|
3603
|
+
if (e && Sn(e) && $e(e)) {
|
3574
3604
|
const { loadingDelay: t } = z();
|
3575
3605
|
let r;
|
3576
|
-
return typeof window != "undefined" &&
|
3577
|
-
() =>
|
3606
|
+
return typeof window != "undefined" && R() != null && t ? r = window.setTimeout(
|
3607
|
+
() => Pe.set(!0),
|
3578
3608
|
t
|
3579
|
-
) :
|
3580
|
-
|
3609
|
+
) : Pe.set(!0), Ft(e).then(() => {
|
3610
|
+
he.set(e);
|
3581
3611
|
}).finally(() => {
|
3582
|
-
clearTimeout(r),
|
3612
|
+
clearTimeout(r), Pe.set(!1);
|
3583
3613
|
});
|
3584
3614
|
}
|
3585
|
-
return
|
3586
|
-
}, W =
|
3587
|
-
set:
|
3588
|
-
}),
|
3615
|
+
return he.set(e);
|
3616
|
+
}, W = Un(Dn({}, he), {
|
3617
|
+
set: kn
|
3618
|
+
}), ge = (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 jn = Object.defineProperty, le = Object.getOwnPropertySymbols, Gt = Object.prototype.hasOwnProperty, Dt = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? jn(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
|
Gt.call(t, r) && ht(e, r, t[r]);
|
3598
|
-
if (
|
3599
|
-
for (var r of
|
3628
|
+
if (le)
|
3629
|
+
for (var r of le(t))
|
3600
3630
|
Dt.call(t, r) && ht(e, r, t[r]);
|
3601
3631
|
return e;
|
3602
3632
|
}, Q = (e, t) => {
|
3603
3633
|
var r = {};
|
3604
3634
|
for (var n in e)
|
3605
3635
|
Gt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3606
|
-
if (e != null &&
|
3607
|
-
for (var n of
|
3636
|
+
if (e != null && le)
|
3637
|
+
for (var n of le(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 te = (e, t) => {
|
3612
3642
|
const { formats: r } = z();
|
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
|
+
}, Vn = ge(
|
3617
3647
|
(e) => {
|
3618
3648
|
var t = e, { locale: r, format: n } = t, i = Q(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 = te("number", n)), new Intl.NumberFormat(r, i);
|
3622
3652
|
}
|
3623
|
-
),
|
3653
|
+
), Xn = ge(
|
3624
3654
|
(e) => {
|
3625
3655
|
var t = e, { locale: r, format: n } = t, i = Q(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 = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
3629
3659
|
}
|
3630
|
-
),
|
3660
|
+
), zn = ge(
|
3631
3661
|
(e) => {
|
3632
3662
|
var t = e, { locale: r, format: n } = t, i = Q(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 = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
3638
3668
|
}
|
3639
|
-
),
|
3669
|
+
), Zn = (e = {}) => {
|
3640
3670
|
var t = e, {
|
3641
|
-
locale: r =
|
3671
|
+
locale: r = R()
|
3642
3672
|
} = t, n = Q(t, [
|
3643
3673
|
"locale"
|
3644
3674
|
]);
|
3645
|
-
return
|
3646
|
-
},
|
3675
|
+
return Vn(je({ locale: r }, n));
|
3676
|
+
}, Wn = (e = {}) => {
|
3647
3677
|
var t = e, {
|
3648
|
-
locale: r =
|
3678
|
+
locale: r = R()
|
3649
3679
|
} = t, n = Q(t, [
|
3650
3680
|
"locale"
|
3651
3681
|
]);
|
3652
|
-
return
|
3653
|
-
},
|
3682
|
+
return Xn(je({ locale: r }, n));
|
3683
|
+
}, Qn = (e = {}) => {
|
3654
3684
|
var t = e, {
|
3655
|
-
locale: r =
|
3685
|
+
locale: r = R()
|
3656
3686
|
} = t, n = Q(t, [
|
3657
3687
|
"locale"
|
3658
3688
|
]);
|
3659
|
-
return
|
3660
|
-
},
|
3689
|
+
return zn(je({ locale: r }, n));
|
3690
|
+
}, qn = ge(
|
3661
3691
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3662
|
-
(e, t =
|
3692
|
+
(e, t = R()) => new Hn(e, t, z().formats, {
|
3663
3693
|
ignoreTag: z().ignoreTag
|
3664
3694
|
})
|
3665
|
-
),
|
3695
|
+
), Jn = (e, t = {}) => {
|
3666
3696
|
var r, n, i, o;
|
3667
|
-
let
|
3668
|
-
typeof e == "object" && (
|
3697
|
+
let s = t;
|
3698
|
+
typeof e == "object" && (s = e, e = s.id);
|
3669
3699
|
const {
|
3670
3700
|
values: u,
|
3671
|
-
locale: h =
|
3672
|
-
default:
|
3673
|
-
} =
|
3701
|
+
locale: h = R(),
|
3702
|
+
default: a
|
3703
|
+
} = s;
|
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
3708
|
let l = Lt(e, h);
|
3679
3709
|
if (!l)
|
3680
|
-
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue:
|
3710
|
+
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? o : 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.`
|
@@ -3686,7 +3716,7 @@ const ee = (e, t) => {
|
|
3686
3716
|
return l;
|
3687
3717
|
let c = l;
|
3688
3718
|
try {
|
3689
|
-
c =
|
3719
|
+
c = qn(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,18 +3724,18 @@ const ee = (e, t) => {
|
|
3694
3724
|
);
|
3695
3725
|
}
|
3696
3726
|
return c;
|
3697
|
-
},
|
3698
|
-
Z([W], () => qn);
|
3699
|
-
Z([W], () => Jn);
|
3727
|
+
}, Yn = (e, t) => Qn(t).format(e), Kn = (e, t) => Wn(t).format(e), ei = (e, t) => Zn(t).format(e), ti = (e, t = R()) => Lt(e, t), ri = Z([W, ne], () => Jn);
|
3700
3728
|
Z([W], () => Yn);
|
3701
|
-
Z([W
|
3729
|
+
Z([W], () => Kn);
|
3730
|
+
Z([W], () => ei);
|
3731
|
+
Z([W, ne], () => ti);
|
3702
3732
|
function lt(e, t) {
|
3703
3733
|
$t(e, t);
|
3704
3734
|
}
|
3705
|
-
function
|
3735
|
+
function ni(e) {
|
3706
3736
|
W.set(e);
|
3707
3737
|
}
|
3708
|
-
const
|
3738
|
+
const ct = {
|
3709
3739
|
en: {
|
3710
3740
|
pageNotFound: "Page not found",
|
3711
3741
|
pageNotFoundMessage: "The page you were looking for could not be found. Please go back to our Homepage.",
|
@@ -3797,53 +3827,76 @@ const ft = {
|
|
3797
3827
|
home: "Go to homepage"
|
3798
3828
|
}
|
3799
3829
|
};
|
3800
|
-
function
|
3801
|
-
|
3830
|
+
function ii(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 oi(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 ai(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
|
+
Wt(e, "svelte-fokx9n", "*,*::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%}.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 ui(e) {
|
3857
|
+
let t, r, n, i, o, s, u, h, a, l, c, f, b = (
|
3805
3858
|
/*$_*/
|
3806
3859
|
e[1]("pageNotFound") + ""
|
3807
|
-
), y,
|
3860
|
+
), y, m, E, T = (
|
3808
3861
|
/*$_*/
|
3809
3862
|
e[1]("pageNotFoundMessage") + ""
|
3810
|
-
),
|
3863
|
+
), w, P, S, N = (
|
3811
3864
|
/*$_*/
|
3812
3865
|
e[1]("home") + ""
|
3813
|
-
), O,
|
3866
|
+
), O, F, Ve;
|
3814
3867
|
return {
|
3815
3868
|
c() {
|
3816
|
-
t = C("div"), r = C("div"), n =
|
3869
|
+
t = C("div"), r = C("div"), n = M("svg"), i = M("g"), o = M("path"), s = M("path"), u = M("path"), h = M("path"), a = M("path"), l = M("path"), c = be(), f = C("p"), y = oe(b), m = be(), E = C("p"), w = oe(T), P = be(), S = C("button"), O = oe(N), x(o, "class", "a"), x(o, "d", "M753.094,548.381h11.379v4.138a3.1,3.1,0,1,0,6.207,0v-4.138a3.1,3.1,0,0,0,0-6.207v-27.93a3,3,0,0,0-2.379-3,3.262,3.262,0,0,0-3.517,1.552l-14.483,26.9a3.305,3.305,0,0,0-.31,1.448v4.138a3.048,3.048,0,0,0,3.1,3.1Zm3.1-6.414,8.276-15.414v15.62H756.2Z"), x(o, "transform", "translate(-658.898 -446.452)"), x(s, "class", "a"), x(s, "d", "M508.259,555.422a11.346,11.346,0,0,0,11.379-11.379V522.319a11.379,11.379,0,1,0-22.757,0v21.725A11.346,11.346,0,0,0,508.259,555.422Zm-5.172-33.1a5.172,5.172,0,1,1,10.345,0v21.725a5.172,5.172,0,0,1-10.345,0Z"), x(s, "transform", "translate(-433.716 -446.252)"), x(u, "class", "a"), x(u, "d", "M237.474,548.381h11.379v4.138a3.1,3.1,0,1,0,6.207,0v-4.138a3.1,3.1,0,1,0,0-6.207v-27.93a3,3,0,0,0-2.379-3,3.2,3.2,0,0,0-3.517,1.552l-14.483,26.9a3.3,3.3,0,0,0-.31,1.448v4.138a3.048,3.048,0,0,0,3.1,3.1Zm3.1-6.414,8.276-15.414v15.62h-8.276Z"), x(u, "transform", "translate(-200.173 -446.452)"), x(h, "class", "a"), x(h, "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"), x(a, "class", "a"), x(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"), x(a, "transform", "translate(-116.772 -116.794)"), x(l, "class", "a"), x(l, "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"), x(l, "transform", "translate(-250.22 -116.794)"), x(i, "transform", "translate(-9.37 -9.34)"), x(n, "class", "svgColor"), x(n, "xmlns", "http://www.w3.org/2000/svg"), x(n, "width", "130.345"), x(n, "height", "130.345"), x(n, "viewBox", "0 0 130.345 130.345"), x(f, "class", "PageTitle"), x(E, "class", "PageContent"), x(S, "class", "ButtonDefaultSmall"), x(r, "class", "NotFoundPage"), x(t, "class", "PageWrapper");
|
3817
3870
|
},
|
3818
3871
|
m(L, q) {
|
3819
|
-
gt(L, t, q),
|
3820
|
-
|
3872
|
+
gt(L, t, q), _(t, r), _(r, n), _(n, i), _(i, o), _(i, s), _(i, u), _(i, h), _(i, a), _(i, l), _(r, c), _(r, f), _(f, y), _(r, m), _(r, E), _(E, w), _(r, P), _(r, S), _(S, O), e[9](t), F || (Ve = Jt(
|
3873
|
+
S,
|
3821
3874
|
"click",
|
3822
3875
|
/*click_handler*/
|
3823
|
-
e[
|
3824
|
-
),
|
3876
|
+
e[8]
|
3877
|
+
), F = !0);
|
3825
3878
|
},
|
3826
3879
|
p(L, [q]) {
|
3827
3880
|
q & /*$_*/
|
3828
3881
|
2 && b !== (b = /*$_*/
|
3829
|
-
L[1]("pageNotFound") + "") &&
|
3830
|
-
2 &&
|
3831
|
-
L[1]("pageNotFoundMessage") + "") &&
|
3832
|
-
2 &&
|
3833
|
-
L[1]("home") + "") &&
|
3882
|
+
L[1]("pageNotFound") + "") && xe(y, b), q & /*$_*/
|
3883
|
+
2 && T !== (T = /*$_*/
|
3884
|
+
L[1]("pageNotFoundMessage") + "") && xe(w, T), q & /*$_*/
|
3885
|
+
2 && N !== (N = /*$_*/
|
3886
|
+
L[1]("home") + "") && xe(O, N);
|
3834
3887
|
},
|
3835
|
-
i:
|
3836
|
-
o:
|
3888
|
+
i: A,
|
3889
|
+
o: A,
|
3837
3890
|
d(L) {
|
3838
|
-
L &&
|
3891
|
+
L && Ge(t), e[9](null), F = !1, Ve();
|
3839
3892
|
}
|
3840
3893
|
};
|
3841
3894
|
}
|
3842
|
-
function
|
3895
|
+
function hi(e, t, r) {
|
3843
3896
|
let n;
|
3844
|
-
Zt(e,
|
3845
|
-
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl:
|
3846
|
-
const
|
3897
|
+
Zt(e, ri, (m) => r(1, n = m));
|
3898
|
+
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: u = "" } = t, { mbsource: h } = t, a;
|
3899
|
+
const l = () => {
|
3847
3900
|
fetch(u).then((E) => E.json()).then((E) => {
|
3848
3901
|
Object.keys(E).forEach((T) => {
|
3849
3902
|
lt(T, E[T]);
|
@@ -3852,95 +3905,94 @@ function ii(e, t, r) {
|
|
3852
3905
|
console.log(E);
|
3853
3906
|
});
|
3854
3907
|
};
|
3855
|
-
Object.keys(
|
3856
|
-
lt(m,
|
3908
|
+
Object.keys(ct).forEach((m) => {
|
3909
|
+
lt(m, ct[m]);
|
3857
3910
|
});
|
3858
|
-
const
|
3911
|
+
const c = () => {
|
3859
3912
|
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
3860
|
-
}, c = () => {
|
3861
|
-
ti(i);
|
3862
3913
|
}, f = () => {
|
3863
|
-
|
3864
|
-
|
3865
|
-
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3871
|
-
},
|
3872
|
-
1
|
3873
|
-
);
|
3874
|
-
});
|
3875
|
-
}, y = () => l();
|
3876
|
-
function _(m) {
|
3877
|
-
Pe[m ? "unshift" : "push"](() => {
|
3878
|
-
h = m, r(0, h);
|
3914
|
+
ni(i);
|
3915
|
+
};
|
3916
|
+
tr(() => () => {
|
3917
|
+
});
|
3918
|
+
const b = () => c();
|
3919
|
+
function y(m) {
|
3920
|
+
Ne[m ? "unshift" : "push"](() => {
|
3921
|
+
a = m, r(0, a);
|
3879
3922
|
});
|
3880
3923
|
}
|
3881
3924
|
return e.$$set = (m) => {
|
3882
|
-
"lang" in m && r(3, i = m.lang), "clientstyling" in m && r(4, o = m.clientstyling), "clientstylingurl" in m && r(5,
|
3925
|
+
"lang" in m && r(3, i = m.lang), "clientstyling" in m && r(4, o = m.clientstyling), "clientstylingurl" in m && r(5, s = 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
|
-
|
3887
|
-
|
3888
|
-
|
3928
|
+
8 && i && f(), e.$$.dirty & /*translationurl*/
|
3929
|
+
64 && u && l(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
3930
|
+
17 && o && a && ii(a, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
3931
|
+
33 && s && a && oi(a, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
3932
|
+
129 && h && a && ai(a, `${h}.Style`);
|
3889
3933
|
}, [
|
3890
|
-
|
3934
|
+
a,
|
3891
3935
|
n,
|
3892
|
-
|
3936
|
+
c,
|
3893
3937
|
i,
|
3894
3938
|
o,
|
3895
|
-
|
3939
|
+
s,
|
3896
3940
|
u,
|
3897
|
-
|
3898
|
-
|
3941
|
+
h,
|
3942
|
+
b,
|
3943
|
+
y
|
3899
3944
|
];
|
3900
3945
|
}
|
3901
|
-
class
|
3946
|
+
class li extends mr {
|
3902
3947
|
constructor(t) {
|
3903
|
-
super(),
|
3948
|
+
super(), cr(
|
3904
3949
|
this,
|
3905
3950
|
t,
|
3906
|
-
|
3907
|
-
|
3951
|
+
hi,
|
3952
|
+
ui,
|
3908
3953
|
mt,
|
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
|
+
fr(li, { lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
3944
3996
|
export {
|
3945
|
-
|
3997
|
+
li as default
|
3946
3998
|
};
|