@everymatrix/player-panic-button 1.54.12 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerPanicButton-BrBe3Lkn.js → PlayerPanicButton-BTFfd1GX.js} +735 -713
- package/components/PlayerPanicButton-DK21h8Bu.cjs +5 -0
- package/components/{PlayerPanicButton-XclxAATB.js → PlayerPanicButton-DoCQAhyl.js} +605 -583
- package/es2015/player-panic-button.cjs +1 -1
- package/es2015/player-panic-button.js +1 -1
- package/esnext/player-panic-button.js +1 -1
- package/package.json +1 -1
- package/components/PlayerPanicButton-BVEtQHiO.cjs +0 -5
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function xt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function re(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(xt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ve(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _t(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ir(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function St(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function xt(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function or(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(St(t, r));
|
|
32
32
|
}
|
|
33
33
|
function ue(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function sr(e, t, r) {
|
|
37
|
+
const n = ar(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = Y("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, ur(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ar(e) {
|
|
44
44
|
if (!e) return document;
|
|
45
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
46
|
return t && /** @type {ShadowRoot} */
|
|
@@ -49,39 +49,39 @@ function nr(e) {
|
|
|
49
49
|
t
|
|
50
50
|
) : e.ownerDocument;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ur(e, t) {
|
|
53
53
|
return ue(
|
|
54
54
|
/** @type {Document} */
|
|
55
55
|
e.head || e,
|
|
56
56
|
t
|
|
57
57
|
), t.sheet;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Bt(e, t, r) {
|
|
60
60
|
e.insertBefore(t, r || null);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function ze(e) {
|
|
63
63
|
e.parentNode && e.parentNode.removeChild(e);
|
|
64
64
|
}
|
|
65
65
|
function Y(e) {
|
|
66
66
|
return document.createElement(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function hr(e) {
|
|
69
69
|
return document.createTextNode(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function N(e, t, r) {
|
|
72
72
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function lr(e) {
|
|
75
75
|
return Array.from(e.childNodes);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function cr(e, t) {
|
|
78
78
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
79
79
|
t);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Ye(e, t, r) {
|
|
82
82
|
e.classList.toggle(t, !!r);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function fr(e) {
|
|
85
85
|
const t = {};
|
|
86
86
|
return e.childNodes.forEach(
|
|
87
87
|
/** @param {Element} node */
|
|
@@ -94,24 +94,24 @@ let K;
|
|
|
94
94
|
function q(e) {
|
|
95
95
|
K = e;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function pr() {
|
|
98
98
|
if (!K) throw new Error("Function called outside component initialization");
|
|
99
99
|
return K;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
101
|
+
function mr(e) {
|
|
102
|
+
pr().$$.on_mount.push(e);
|
|
103
103
|
}
|
|
104
|
-
const
|
|
105
|
-
let
|
|
106
|
-
const
|
|
107
|
-
let
|
|
108
|
-
function
|
|
109
|
-
|
|
104
|
+
const F = [], pe = [];
|
|
105
|
+
let G = [];
|
|
106
|
+
const qe = [], dr = /* @__PURE__ */ Promise.resolve();
|
|
107
|
+
let Ae = !1;
|
|
108
|
+
function br() {
|
|
109
|
+
Ae || (Ae = !0, dr.then(I));
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
111
|
+
function Oe(e) {
|
|
112
|
+
G.push(e);
|
|
113
113
|
}
|
|
114
|
-
const
|
|
114
|
+
const xe = /* @__PURE__ */ new Set();
|
|
115
115
|
let D = 0;
|
|
116
116
|
function I() {
|
|
117
117
|
if (D !== 0)
|
|
@@ -119,54 +119,54 @@ function I() {
|
|
|
119
119
|
const e = K;
|
|
120
120
|
do {
|
|
121
121
|
try {
|
|
122
|
-
for (; D <
|
|
123
|
-
const t =
|
|
124
|
-
D++, q(t),
|
|
122
|
+
for (; D < F.length; ) {
|
|
123
|
+
const t = F[D];
|
|
124
|
+
D++, q(t), gr(t.$$);
|
|
125
125
|
}
|
|
126
126
|
} catch (t) {
|
|
127
|
-
throw
|
|
127
|
+
throw F.length = 0, D = 0, t;
|
|
128
128
|
}
|
|
129
|
-
for (q(null),
|
|
130
|
-
for (let t = 0; t <
|
|
131
|
-
const r =
|
|
132
|
-
|
|
129
|
+
for (q(null), F.length = 0, D = 0; pe.length; ) pe.pop()();
|
|
130
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
131
|
+
const r = G[t];
|
|
132
|
+
xe.has(r) || (xe.add(r), r());
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
} while (
|
|
136
|
-
for (;
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
G.length = 0;
|
|
135
|
+
} while (F.length);
|
|
136
|
+
for (; qe.length; )
|
|
137
|
+
qe.pop()();
|
|
138
|
+
Ae = !1, xe.clear(), q(e);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function gr(e) {
|
|
141
141
|
if (e.fragment !== null) {
|
|
142
142
|
e.update(), re(e.before_update);
|
|
143
143
|
const t = e.dirty;
|
|
144
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
144
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Oe);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function yr(e) {
|
|
148
148
|
const t = [], r = [];
|
|
149
|
-
|
|
149
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
function
|
|
153
|
-
e && e.i && (
|
|
151
|
+
const vr = /* @__PURE__ */ new Set();
|
|
152
|
+
function Er(e, t) {
|
|
153
|
+
e && e.i && (vr.delete(e), e.i(t));
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function xr(e, t, r) {
|
|
156
156
|
const { fragment: n, after_update: i } = e.$$;
|
|
157
|
-
n && n.m(t, r),
|
|
158
|
-
const o = e.$$.on_mount.map(
|
|
157
|
+
n && n.m(t, r), Oe(() => {
|
|
158
|
+
const o = e.$$.on_mount.map(xt).filter(Ve);
|
|
159
159
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
160
|
-
}), i.forEach(
|
|
160
|
+
}), i.forEach(Oe);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function _r(e, t) {
|
|
163
163
|
const r = e.$$;
|
|
164
|
-
r.fragment !== null && (
|
|
164
|
+
r.fragment !== null && (yr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
e.$$.dirty[0] === -1 && (
|
|
166
|
+
function Sr(e, t) {
|
|
167
|
+
e.$$.dirty[0] === -1 && (F.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Br(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
170
170
|
const h = K;
|
|
171
171
|
q(e);
|
|
172
172
|
const u = e.$$ = {
|
|
@@ -176,7 +176,7 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
176
176
|
props: o,
|
|
177
177
|
update: B,
|
|
178
178
|
not_equal: i,
|
|
179
|
-
bound:
|
|
179
|
+
bound: Je(),
|
|
180
180
|
// lifecycle
|
|
181
181
|
on_mount: [],
|
|
182
182
|
on_destroy: [],
|
|
@@ -185,28 +185,28 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
185
185
|
after_update: [],
|
|
186
186
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
187
187
|
// everything else
|
|
188
|
-
callbacks:
|
|
189
|
-
dirty:
|
|
188
|
+
callbacks: Je(),
|
|
189
|
+
dirty: s,
|
|
190
190
|
skip_bound: !1,
|
|
191
191
|
root: t.target || h.$$.root
|
|
192
192
|
};
|
|
193
|
-
|
|
193
|
+
a && a(u.root);
|
|
194
194
|
let l = !1;
|
|
195
195
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
196
|
-
const
|
|
197
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
196
|
+
const v = d.length ? d[0] : f;
|
|
197
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), l && Sr(e, c)), f;
|
|
198
198
|
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
199
199
|
if (t.hydrate) {
|
|
200
|
-
const c =
|
|
201
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
200
|
+
const c = lr(t.target);
|
|
201
|
+
u.fragment && u.fragment.l(c), c.forEach(ze);
|
|
202
202
|
} else
|
|
203
203
|
u.fragment && u.fragment.c();
|
|
204
|
-
t.intro &&
|
|
204
|
+
t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), I();
|
|
205
205
|
}
|
|
206
206
|
q(h);
|
|
207
207
|
}
|
|
208
|
-
let
|
|
209
|
-
typeof HTMLElement == "function" && (
|
|
208
|
+
let Tt;
|
|
209
|
+
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
210
210
|
/** The Svelte component constructor */
|
|
211
211
|
$$ctor;
|
|
212
212
|
/** Slots */
|
|
@@ -248,24 +248,24 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
248
248
|
let o;
|
|
249
249
|
return {
|
|
250
250
|
c: function() {
|
|
251
|
-
o = Y("slot"), i !== "default" &&
|
|
251
|
+
o = Y("slot"), i !== "default" && N(o, "name", i);
|
|
252
252
|
},
|
|
253
253
|
/**
|
|
254
254
|
* @param {HTMLElement} target
|
|
255
255
|
* @param {HTMLElement} [anchor]
|
|
256
256
|
*/
|
|
257
257
|
m: function(h, u) {
|
|
258
|
-
|
|
258
|
+
Bt(h, o, u);
|
|
259
259
|
},
|
|
260
260
|
d: function(h) {
|
|
261
|
-
h &&
|
|
261
|
+
h && ze(o);
|
|
262
262
|
}
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
265
|
};
|
|
266
266
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
267
267
|
return;
|
|
268
|
-
const t = {}, r =
|
|
268
|
+
const t = {}, r = fr(this);
|
|
269
269
|
for (const i of this.$$s)
|
|
270
270
|
i in r && (t[i] = [e(i)]);
|
|
271
271
|
for (const i of this.attributes) {
|
|
@@ -301,8 +301,8 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
301
301
|
this.$$c.$$.after_update.push(n), n();
|
|
302
302
|
for (const i in this.$$l)
|
|
303
303
|
for (const o of this.$$l[i]) {
|
|
304
|
-
const
|
|
305
|
-
this.$$l_u.set(o,
|
|
304
|
+
const a = this.$$c.$on(i, o);
|
|
305
|
+
this.$$l_u.set(o, a);
|
|
306
306
|
}
|
|
307
307
|
this.$$l = {};
|
|
308
308
|
}
|
|
@@ -352,36 +352,36 @@ function he(e, t, r, n) {
|
|
|
352
352
|
return t;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
let
|
|
355
|
+
function Tr(e, t, r, n, i, o) {
|
|
356
|
+
let a = class extends Tt {
|
|
357
357
|
constructor() {
|
|
358
358
|
super(e, r, i), this.$$p_d = t;
|
|
359
359
|
}
|
|
360
360
|
static get observedAttributes() {
|
|
361
361
|
return Object.keys(t).map(
|
|
362
|
-
(
|
|
362
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
363
363
|
);
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
|
-
return Object.keys(t).forEach((
|
|
367
|
-
Object.defineProperty(
|
|
366
|
+
return Object.keys(t).forEach((s) => {
|
|
367
|
+
Object.defineProperty(a.prototype, s, {
|
|
368
368
|
get() {
|
|
369
|
-
return this.$$c &&
|
|
369
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
370
370
|
},
|
|
371
371
|
set(h) {
|
|
372
|
-
h = he(
|
|
372
|
+
h = he(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
373
373
|
}
|
|
374
374
|
});
|
|
375
|
-
}), n.forEach((
|
|
376
|
-
Object.defineProperty(
|
|
375
|
+
}), n.forEach((s) => {
|
|
376
|
+
Object.defineProperty(a.prototype, s, {
|
|
377
377
|
get() {
|
|
378
|
-
return this.$$c?.[
|
|
378
|
+
return this.$$c?.[s];
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
}), e.element = /** @type {any} */
|
|
382
|
-
|
|
382
|
+
a, a;
|
|
383
383
|
}
|
|
384
|
-
class
|
|
384
|
+
class Hr {
|
|
385
385
|
/**
|
|
386
386
|
* ### PRIVATE API
|
|
387
387
|
*
|
|
@@ -400,7 +400,7 @@ class _r {
|
|
|
400
400
|
$$set = void 0;
|
|
401
401
|
/** @returns {void} */
|
|
402
402
|
$destroy() {
|
|
403
|
-
|
|
403
|
+
_r(this, 1), this.$destroy = B;
|
|
404
404
|
}
|
|
405
405
|
/**
|
|
406
406
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -409,7 +409,7 @@ class _r {
|
|
|
409
409
|
* @returns {() => void}
|
|
410
410
|
*/
|
|
411
411
|
$on(t, r) {
|
|
412
|
-
if (!
|
|
412
|
+
if (!Ve(r))
|
|
413
413
|
return B;
|
|
414
414
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
415
415
|
return n.push(r), () => {
|
|
@@ -422,22 +422,22 @@ class _r {
|
|
|
422
422
|
* @returns {void}
|
|
423
423
|
*/
|
|
424
424
|
$set(t) {
|
|
425
|
-
this.$$set && !
|
|
425
|
+
this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
const
|
|
429
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
430
|
-
var
|
|
431
|
-
return
|
|
428
|
+
const wr = "4";
|
|
429
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
|
|
430
|
+
var Ie = function(e, t) {
|
|
431
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
432
432
|
r.__proto__ = n;
|
|
433
433
|
} || function(r, n) {
|
|
434
434
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
435
|
-
},
|
|
435
|
+
}, Ie(e, t);
|
|
436
436
|
};
|
|
437
437
|
function A(e, t) {
|
|
438
438
|
if (typeof t != "function" && t !== null)
|
|
439
439
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
440
|
-
|
|
440
|
+
Ie(e, t);
|
|
441
441
|
function r() {
|
|
442
442
|
this.constructor = e;
|
|
443
443
|
}
|
|
@@ -452,7 +452,7 @@ var b = function() {
|
|
|
452
452
|
return t;
|
|
453
453
|
}, b.apply(this, arguments);
|
|
454
454
|
};
|
|
455
|
-
function
|
|
455
|
+
function Pr(e, t) {
|
|
456
456
|
var r = {};
|
|
457
457
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
458
458
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -460,7 +460,7 @@ function Br(e, t) {
|
|
|
460
460
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
461
461
|
return r;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function Ce(e) {
|
|
464
464
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
465
465
|
if (r) return r.call(e);
|
|
466
466
|
if (e && typeof e.length == "number") return {
|
|
@@ -470,19 +470,19 @@ function Ie(e) {
|
|
|
470
470
|
};
|
|
471
471
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Le(e, t) {
|
|
474
474
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
475
475
|
if (!r) return e;
|
|
476
|
-
var n = r.call(e), i, o = [],
|
|
476
|
+
var n = r.call(e), i, o = [], a;
|
|
477
477
|
try {
|
|
478
478
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
|
|
479
|
-
} catch (
|
|
480
|
-
|
|
479
|
+
} catch (s) {
|
|
480
|
+
a = { error: s };
|
|
481
481
|
} finally {
|
|
482
482
|
try {
|
|
483
483
|
i && !i.done && (r = n.return) && r.call(n);
|
|
484
484
|
} finally {
|
|
485
|
-
if (
|
|
485
|
+
if (a) throw a.error;
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
return o;
|
|
@@ -495,13 +495,13 @@ function j(e, t, r) {
|
|
|
495
495
|
function P(e) {
|
|
496
496
|
return typeof e == "function";
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Ht(e) {
|
|
499
499
|
var t = function(n) {
|
|
500
500
|
Error.call(n), n.stack = new Error().stack;
|
|
501
501
|
}, r = e(t);
|
|
502
502
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
503
503
|
}
|
|
504
|
-
var _e =
|
|
504
|
+
var _e = Ht(function(e) {
|
|
505
505
|
return function(r) {
|
|
506
506
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
507
507
|
` + r.map(function(n, i) {
|
|
@@ -524,46 +524,46 @@ var be = function() {
|
|
|
524
524
|
var t, r, n, i, o;
|
|
525
525
|
if (!this.closed) {
|
|
526
526
|
this.closed = !0;
|
|
527
|
-
var
|
|
528
|
-
if (
|
|
529
|
-
if (this._parentage = null, Array.isArray(
|
|
527
|
+
var a = this._parentage;
|
|
528
|
+
if (a)
|
|
529
|
+
if (this._parentage = null, Array.isArray(a))
|
|
530
530
|
try {
|
|
531
|
-
for (var
|
|
531
|
+
for (var s = Ce(a), h = s.next(); !h.done; h = s.next()) {
|
|
532
532
|
var u = h.value;
|
|
533
533
|
u.remove(this);
|
|
534
534
|
}
|
|
535
|
-
} catch (
|
|
536
|
-
t = { error:
|
|
535
|
+
} catch (y) {
|
|
536
|
+
t = { error: y };
|
|
537
537
|
} finally {
|
|
538
538
|
try {
|
|
539
|
-
h && !h.done && (r =
|
|
539
|
+
h && !h.done && (r = s.return) && r.call(s);
|
|
540
540
|
} finally {
|
|
541
541
|
if (t) throw t.error;
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
else
|
|
545
|
-
|
|
545
|
+
a.remove(this);
|
|
546
546
|
var l = this.initialTeardown;
|
|
547
547
|
if (P(l))
|
|
548
548
|
try {
|
|
549
549
|
l();
|
|
550
|
-
} catch (
|
|
551
|
-
o =
|
|
550
|
+
} catch (y) {
|
|
551
|
+
o = y instanceof _e ? y.errors : [y];
|
|
552
552
|
}
|
|
553
553
|
var c = this._finalizers;
|
|
554
554
|
if (c) {
|
|
555
555
|
this._finalizers = null;
|
|
556
556
|
try {
|
|
557
|
-
for (var f =
|
|
558
|
-
var
|
|
557
|
+
for (var f = Ce(c), d = f.next(); !d.done; d = f.next()) {
|
|
558
|
+
var v = d.value;
|
|
559
559
|
try {
|
|
560
|
-
|
|
561
|
-
} catch (
|
|
562
|
-
o = o ?? [],
|
|
560
|
+
Ke(v);
|
|
561
|
+
} catch (y) {
|
|
562
|
+
o = o ?? [], y instanceof _e ? o = j(j([], Le(o)), Le(y.errors)) : o.push(y);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
} catch (
|
|
566
|
-
n = { error:
|
|
565
|
+
} catch (y) {
|
|
566
|
+
n = { error: y };
|
|
567
567
|
} finally {
|
|
568
568
|
try {
|
|
569
569
|
d && !d.done && (i = f.return) && i.call(f);
|
|
@@ -579,7 +579,7 @@ var be = function() {
|
|
|
579
579
|
var r;
|
|
580
580
|
if (t && t !== this)
|
|
581
581
|
if (this.closed)
|
|
582
|
-
|
|
582
|
+
Ke(t);
|
|
583
583
|
else {
|
|
584
584
|
if (t instanceof e) {
|
|
585
585
|
if (t.closed || t._hasParent(this))
|
|
@@ -604,44 +604,48 @@ var be = function() {
|
|
|
604
604
|
var t = new e();
|
|
605
605
|
return t.closed = !0, t;
|
|
606
606
|
}(), e;
|
|
607
|
-
}(),
|
|
608
|
-
function
|
|
607
|
+
}(), wt = be.EMPTY;
|
|
608
|
+
function Pt(e) {
|
|
609
609
|
return e instanceof be || e && "closed" in e && P(e.remove) && P(e.add) && P(e.unsubscribe);
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Ke(e) {
|
|
612
612
|
P(e) ? e() : e.unsubscribe();
|
|
613
613
|
}
|
|
614
|
-
var
|
|
615
|
-
|
|
616
|
-
|
|
614
|
+
var At = {
|
|
615
|
+
onUnhandledError: null,
|
|
616
|
+
onStoppedNotification: null,
|
|
617
|
+
Promise: void 0,
|
|
618
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
619
|
+
useDeprecatedNextContext: !1
|
|
620
|
+
}, Ar = {
|
|
617
621
|
setTimeout: function(e, t) {
|
|
618
622
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
619
623
|
r[n - 2] = arguments[n];
|
|
620
|
-
return setTimeout.apply(void 0, j([e, t],
|
|
624
|
+
return setTimeout.apply(void 0, j([e, t], Le(r)));
|
|
621
625
|
},
|
|
622
626
|
clearTimeout: function(e) {
|
|
623
627
|
return clearTimeout(e);
|
|
624
628
|
},
|
|
625
629
|
delegate: void 0
|
|
626
630
|
};
|
|
627
|
-
function
|
|
628
|
-
|
|
631
|
+
function Or(e) {
|
|
632
|
+
Ar.setTimeout(function() {
|
|
629
633
|
throw e;
|
|
630
634
|
});
|
|
631
635
|
}
|
|
632
|
-
function
|
|
636
|
+
function et() {
|
|
633
637
|
}
|
|
634
638
|
function le(e) {
|
|
635
639
|
e();
|
|
636
640
|
}
|
|
637
|
-
var
|
|
641
|
+
var Ot = function(e) {
|
|
638
642
|
A(t, e);
|
|
639
643
|
function t(r) {
|
|
640
644
|
var n = e.call(this) || this;
|
|
641
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
645
|
+
return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = Nr, n;
|
|
642
646
|
}
|
|
643
647
|
return t.create = function(r, n, i) {
|
|
644
|
-
return new
|
|
648
|
+
return new Me(r, n, i);
|
|
645
649
|
}, t.prototype.next = function(r) {
|
|
646
650
|
this.isStopped || this._next(r);
|
|
647
651
|
}, t.prototype.error = function(r) {
|
|
@@ -665,7 +669,11 @@ var Ht = function(e) {
|
|
|
665
669
|
this.unsubscribe();
|
|
666
670
|
}
|
|
667
671
|
}, t;
|
|
668
|
-
}(be),
|
|
672
|
+
}(be), Ir = Function.prototype.bind;
|
|
673
|
+
function Se(e, t) {
|
|
674
|
+
return Ir.call(e, t);
|
|
675
|
+
}
|
|
676
|
+
var Cr = function() {
|
|
669
677
|
function e(t) {
|
|
670
678
|
this.partialObserver = t;
|
|
671
679
|
}
|
|
@@ -696,43 +704,55 @@ var Ht = function(e) {
|
|
|
696
704
|
oe(r);
|
|
697
705
|
}
|
|
698
706
|
}, e;
|
|
699
|
-
}(),
|
|
707
|
+
}(), Me = function(e) {
|
|
700
708
|
A(t, e);
|
|
701
709
|
function t(r, n, i) {
|
|
702
|
-
var o = e.call(this) || this,
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
710
|
+
var o = e.call(this) || this, a;
|
|
711
|
+
if (P(r) || !r)
|
|
712
|
+
a = {
|
|
713
|
+
next: r ?? void 0,
|
|
714
|
+
error: n ?? void 0,
|
|
715
|
+
complete: i ?? void 0
|
|
716
|
+
};
|
|
717
|
+
else {
|
|
718
|
+
var s;
|
|
719
|
+
o && At.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
720
|
+
return o.unsubscribe();
|
|
721
|
+
}, a = {
|
|
722
|
+
next: r.next && Se(r.next, s),
|
|
723
|
+
error: r.error && Se(r.error, s),
|
|
724
|
+
complete: r.complete && Se(r.complete, s)
|
|
725
|
+
}) : a = r;
|
|
726
|
+
}
|
|
727
|
+
return o.destination = new Cr(a), o;
|
|
708
728
|
}
|
|
709
729
|
return t;
|
|
710
|
-
}(
|
|
730
|
+
}(Ot);
|
|
711
731
|
function oe(e) {
|
|
712
|
-
|
|
732
|
+
Or(e);
|
|
713
733
|
}
|
|
714
|
-
function
|
|
734
|
+
function Lr(e) {
|
|
715
735
|
throw e;
|
|
716
736
|
}
|
|
717
|
-
var
|
|
737
|
+
var Nr = {
|
|
718
738
|
closed: !0,
|
|
719
|
-
next:
|
|
720
|
-
error:
|
|
721
|
-
complete:
|
|
722
|
-
},
|
|
739
|
+
next: et,
|
|
740
|
+
error: Lr,
|
|
741
|
+
complete: et
|
|
742
|
+
}, Mr = function() {
|
|
723
743
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
724
744
|
}();
|
|
725
|
-
function
|
|
745
|
+
function $r(e) {
|
|
726
746
|
return e;
|
|
727
747
|
}
|
|
728
|
-
function
|
|
729
|
-
return e.length === 0 ?
|
|
748
|
+
function Rr(e) {
|
|
749
|
+
return e.length === 0 ? $r : e.length === 1 ? e[0] : function(r) {
|
|
730
750
|
return e.reduce(function(n, i) {
|
|
731
751
|
return i(n);
|
|
732
752
|
}, r);
|
|
733
753
|
};
|
|
734
754
|
}
|
|
735
|
-
var
|
|
755
|
+
var tt = function() {
|
|
736
756
|
function e(t) {
|
|
737
757
|
t && (this._subscribe = t);
|
|
738
758
|
}
|
|
@@ -740,10 +760,10 @@ var qe = function() {
|
|
|
740
760
|
var r = new e();
|
|
741
761
|
return r.source = this, r.operator = t, r;
|
|
742
762
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
743
|
-
var i = this, o =
|
|
763
|
+
var i = this, o = Ur(t) ? t : new Me(t, r, n);
|
|
744
764
|
return le(function() {
|
|
745
|
-
var
|
|
746
|
-
o.add(
|
|
765
|
+
var a = i, s = a.operator, h = a.source;
|
|
766
|
+
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
747
767
|
}), o;
|
|
748
768
|
}, e.prototype._trySubscribe = function(t) {
|
|
749
769
|
try {
|
|
@@ -753,37 +773,37 @@ var qe = function() {
|
|
|
753
773
|
}
|
|
754
774
|
}, e.prototype.forEach = function(t, r) {
|
|
755
775
|
var n = this;
|
|
756
|
-
return r =
|
|
757
|
-
var
|
|
758
|
-
next: function(
|
|
776
|
+
return r = rt(r), new r(function(i, o) {
|
|
777
|
+
var a = new Me({
|
|
778
|
+
next: function(s) {
|
|
759
779
|
try {
|
|
760
|
-
t(
|
|
780
|
+
t(s);
|
|
761
781
|
} catch (h) {
|
|
762
|
-
o(h),
|
|
782
|
+
o(h), a.unsubscribe();
|
|
763
783
|
}
|
|
764
784
|
},
|
|
765
785
|
error: o,
|
|
766
786
|
complete: i
|
|
767
787
|
});
|
|
768
|
-
n.subscribe(
|
|
788
|
+
n.subscribe(a);
|
|
769
789
|
});
|
|
770
790
|
}, e.prototype._subscribe = function(t) {
|
|
771
791
|
var r;
|
|
772
792
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
773
|
-
}, e.prototype[
|
|
793
|
+
}, e.prototype[Mr] = function() {
|
|
774
794
|
return this;
|
|
775
795
|
}, e.prototype.pipe = function() {
|
|
776
796
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
777
797
|
t[r] = arguments[r];
|
|
778
|
-
return
|
|
798
|
+
return Rr(t)(this);
|
|
779
799
|
}, e.prototype.toPromise = function(t) {
|
|
780
800
|
var r = this;
|
|
781
|
-
return t =
|
|
801
|
+
return t = rt(t), new t(function(n, i) {
|
|
782
802
|
var o;
|
|
783
|
-
r.subscribe(function(
|
|
784
|
-
return o =
|
|
785
|
-
}, function(
|
|
786
|
-
return i(
|
|
803
|
+
r.subscribe(function(a) {
|
|
804
|
+
return o = a;
|
|
805
|
+
}, function(a) {
|
|
806
|
+
return i(a);
|
|
787
807
|
}, function() {
|
|
788
808
|
return n(o);
|
|
789
809
|
});
|
|
@@ -792,32 +812,32 @@ var qe = function() {
|
|
|
792
812
|
return new e(t);
|
|
793
813
|
}, e;
|
|
794
814
|
}();
|
|
795
|
-
function
|
|
815
|
+
function rt(e) {
|
|
796
816
|
var t;
|
|
797
|
-
return (t = e ??
|
|
817
|
+
return (t = e ?? At.Promise) !== null && t !== void 0 ? t : Promise;
|
|
798
818
|
}
|
|
799
|
-
function
|
|
819
|
+
function Dr(e) {
|
|
800
820
|
return e && P(e.next) && P(e.error) && P(e.complete);
|
|
801
821
|
}
|
|
802
|
-
function
|
|
803
|
-
return e && e instanceof
|
|
822
|
+
function Ur(e) {
|
|
823
|
+
return e && e instanceof Ot || Dr(e) && Pt(e);
|
|
804
824
|
}
|
|
805
|
-
var
|
|
825
|
+
var Fr = Ht(function(e) {
|
|
806
826
|
return function() {
|
|
807
827
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
808
828
|
};
|
|
809
|
-
}),
|
|
829
|
+
}), It = function(e) {
|
|
810
830
|
A(t, e);
|
|
811
831
|
function t() {
|
|
812
832
|
var r = e.call(this) || this;
|
|
813
833
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
814
834
|
}
|
|
815
835
|
return t.prototype.lift = function(r) {
|
|
816
|
-
var n = new
|
|
836
|
+
var n = new nt(this, this);
|
|
817
837
|
return n.operator = r, n;
|
|
818
838
|
}, t.prototype._throwIfClosed = function() {
|
|
819
839
|
if (this.closed)
|
|
820
|
-
throw new
|
|
840
|
+
throw new Fr();
|
|
821
841
|
}, t.prototype.next = function(r) {
|
|
822
842
|
var n = this;
|
|
823
843
|
le(function() {
|
|
@@ -825,15 +845,15 @@ var $r = St(function(e) {
|
|
|
825
845
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
826
846
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
827
847
|
try {
|
|
828
|
-
for (var
|
|
829
|
-
var h =
|
|
848
|
+
for (var a = Ce(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
849
|
+
var h = s.value;
|
|
830
850
|
h.next(r);
|
|
831
851
|
}
|
|
832
852
|
} catch (u) {
|
|
833
853
|
i = { error: u };
|
|
834
854
|
} finally {
|
|
835
855
|
try {
|
|
836
|
-
|
|
856
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
837
857
|
} finally {
|
|
838
858
|
if (i) throw i.error;
|
|
839
859
|
}
|
|
@@ -872,20 +892,20 @@ var $r = St(function(e) {
|
|
|
872
892
|
}, t.prototype._subscribe = function(r) {
|
|
873
893
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
874
894
|
}, t.prototype._innerSubscribe = function(r) {
|
|
875
|
-
var n = this, i = this, o = i.hasError,
|
|
876
|
-
return o ||
|
|
877
|
-
n.currentObservers = null, Ne(
|
|
895
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
896
|
+
return o || a ? wt : (this.currentObservers = null, s.push(r), new be(function() {
|
|
897
|
+
n.currentObservers = null, Ne(s, r);
|
|
878
898
|
}));
|
|
879
899
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
880
|
-
var n = this, i = n.hasError, o = n.thrownError,
|
|
881
|
-
i ? r.error(o) :
|
|
900
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
901
|
+
i ? r.error(o) : a && r.complete();
|
|
882
902
|
}, t.prototype.asObservable = function() {
|
|
883
|
-
var r = new
|
|
903
|
+
var r = new tt();
|
|
884
904
|
return r.source = this, r;
|
|
885
905
|
}, t.create = function(r, n) {
|
|
886
|
-
return new
|
|
906
|
+
return new nt(r, n);
|
|
887
907
|
}, t;
|
|
888
|
-
}(
|
|
908
|
+
}(tt), nt = function(e) {
|
|
889
909
|
A(t, e);
|
|
890
910
|
function t(r, n) {
|
|
891
911
|
var i = e.call(this) || this;
|
|
@@ -902,45 +922,45 @@ var $r = St(function(e) {
|
|
|
902
922
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
903
923
|
}, t.prototype._subscribe = function(r) {
|
|
904
924
|
var n, i;
|
|
905
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
925
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : wt;
|
|
906
926
|
}, t;
|
|
907
|
-
}(
|
|
927
|
+
}(It), Ct = {
|
|
908
928
|
now: function() {
|
|
909
|
-
return (
|
|
929
|
+
return (Ct.delegate || Date).now();
|
|
910
930
|
},
|
|
911
931
|
delegate: void 0
|
|
912
|
-
},
|
|
932
|
+
}, Gr = function(e) {
|
|
913
933
|
A(t, e);
|
|
914
934
|
function t(r, n, i) {
|
|
915
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
935
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ct);
|
|
916
936
|
var o = e.call(this) || this;
|
|
917
937
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
918
938
|
}
|
|
919
939
|
return t.prototype.next = function(r) {
|
|
920
|
-
var n = this, i = n.isStopped, o = n._buffer,
|
|
921
|
-
i || (o.push(r), !
|
|
940
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, h = n._windowTime;
|
|
941
|
+
i || (o.push(r), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
922
942
|
}, t.prototype._subscribe = function(r) {
|
|
923
943
|
this._throwIfClosed(), this._trimBuffer();
|
|
924
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow,
|
|
925
|
-
r.next(
|
|
944
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !r.closed; h += o ? 1 : 2)
|
|
945
|
+
r.next(s[h]);
|
|
926
946
|
return this._checkFinalizedStatuses(r), n;
|
|
927
947
|
}, t.prototype._trimBuffer = function() {
|
|
928
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer,
|
|
929
|
-
if (n < 1 / 0 &&
|
|
948
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
949
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
930
950
|
for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
|
|
931
951
|
u = l;
|
|
932
952
|
u && o.splice(0, u + 1);
|
|
933
953
|
}
|
|
934
954
|
}, t;
|
|
935
|
-
}(
|
|
936
|
-
const
|
|
937
|
-
if (
|
|
938
|
-
const r = new
|
|
939
|
-
|
|
955
|
+
}(It);
|
|
956
|
+
const it = [], ot = {}, jr = (e, t = 0) => {
|
|
957
|
+
if (it.indexOf(e) == -1) {
|
|
958
|
+
const r = new Gr(t);
|
|
959
|
+
ot[e] = r, it.push(e);
|
|
940
960
|
}
|
|
941
|
-
return
|
|
961
|
+
return ot[e];
|
|
942
962
|
}, U = [];
|
|
943
|
-
function
|
|
963
|
+
function kr(e, t) {
|
|
944
964
|
return {
|
|
945
965
|
subscribe: ge(e, t).subscribe
|
|
946
966
|
};
|
|
@@ -948,8 +968,8 @@ function Ur(e, t) {
|
|
|
948
968
|
function ge(e, t = B) {
|
|
949
969
|
let r;
|
|
950
970
|
const n = /* @__PURE__ */ new Set();
|
|
951
|
-
function i(
|
|
952
|
-
if (
|
|
971
|
+
function i(s) {
|
|
972
|
+
if (_t(e, s) && (e = s, r)) {
|
|
953
973
|
const h = !U.length;
|
|
954
974
|
for (const u of n)
|
|
955
975
|
u[1](), U.push(u, e);
|
|
@@ -960,23 +980,23 @@ function ge(e, t = B) {
|
|
|
960
980
|
}
|
|
961
981
|
}
|
|
962
982
|
}
|
|
963
|
-
function o(
|
|
964
|
-
i(
|
|
983
|
+
function o(s) {
|
|
984
|
+
i(s(e));
|
|
965
985
|
}
|
|
966
|
-
function s
|
|
967
|
-
const u = [
|
|
968
|
-
return n.add(u), n.size === 1 && (r = t(i, o) || B),
|
|
986
|
+
function a(s, h = B) {
|
|
987
|
+
const u = [s, h];
|
|
988
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || B), s(e), () => {
|
|
969
989
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
970
990
|
};
|
|
971
991
|
}
|
|
972
|
-
return { set: i, update: o, subscribe:
|
|
992
|
+
return { set: i, update: o, subscribe: a };
|
|
973
993
|
}
|
|
974
994
|
function W(e, t, r) {
|
|
975
995
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
976
996
|
if (!i.every(Boolean))
|
|
977
997
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
978
998
|
const o = t.length < 2;
|
|
979
|
-
return
|
|
999
|
+
return kr(r, (a, s) => {
|
|
980
1000
|
let h = !1;
|
|
981
1001
|
const u = [];
|
|
982
1002
|
let l = 0, c = B;
|
|
@@ -984,16 +1004,16 @@ function W(e, t, r) {
|
|
|
984
1004
|
if (l)
|
|
985
1005
|
return;
|
|
986
1006
|
c();
|
|
987
|
-
const
|
|
988
|
-
o ?
|
|
1007
|
+
const v = t(n ? u[0] : u, a, s);
|
|
1008
|
+
o ? a(v) : c = Ve(v) ? v : B;
|
|
989
1009
|
}, d = i.map(
|
|
990
|
-
(
|
|
991
|
-
|
|
1010
|
+
(v, y) => St(
|
|
1011
|
+
v,
|
|
992
1012
|
(S) => {
|
|
993
|
-
u[
|
|
1013
|
+
u[y] = S, l &= ~(1 << y), h && f();
|
|
994
1014
|
},
|
|
995
1015
|
() => {
|
|
996
|
-
l |= 1 <<
|
|
1016
|
+
l |= 1 << y;
|
|
997
1017
|
}
|
|
998
1018
|
)
|
|
999
1019
|
);
|
|
@@ -1002,70 +1022,70 @@ function W(e, t, r) {
|
|
|
1002
1022
|
};
|
|
1003
1023
|
});
|
|
1004
1024
|
}
|
|
1005
|
-
function
|
|
1025
|
+
function Vr(e) {
|
|
1006
1026
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1007
1027
|
}
|
|
1008
|
-
var
|
|
1009
|
-
return
|
|
1028
|
+
var zr = function(t) {
|
|
1029
|
+
return Xr(t) && !Wr(t);
|
|
1010
1030
|
};
|
|
1011
|
-
function
|
|
1031
|
+
function Xr(e) {
|
|
1012
1032
|
return !!e && typeof e == "object";
|
|
1013
1033
|
}
|
|
1014
|
-
function
|
|
1034
|
+
function Wr(e) {
|
|
1015
1035
|
var t = Object.prototype.toString.call(e);
|
|
1016
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1036
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
|
|
1017
1037
|
}
|
|
1018
|
-
var
|
|
1019
|
-
function
|
|
1020
|
-
return e.$$typeof ===
|
|
1038
|
+
var Zr = typeof Symbol == "function" && Symbol.for, Qr = Zr ? Symbol.for("react.element") : 60103;
|
|
1039
|
+
function Jr(e) {
|
|
1040
|
+
return e.$$typeof === Qr;
|
|
1021
1041
|
}
|
|
1022
|
-
function
|
|
1042
|
+
function Yr(e) {
|
|
1023
1043
|
return Array.isArray(e) ? [] : {};
|
|
1024
1044
|
}
|
|
1025
1045
|
function ee(e, t) {
|
|
1026
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? k(
|
|
1046
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(Yr(e), e, t) : e;
|
|
1027
1047
|
}
|
|
1028
|
-
function
|
|
1048
|
+
function qr(e, t, r) {
|
|
1029
1049
|
return e.concat(t).map(function(n) {
|
|
1030
1050
|
return ee(n, r);
|
|
1031
1051
|
});
|
|
1032
1052
|
}
|
|
1033
|
-
function
|
|
1053
|
+
function Kr(e, t) {
|
|
1034
1054
|
if (!t.customMerge)
|
|
1035
1055
|
return k;
|
|
1036
1056
|
var r = t.customMerge(e);
|
|
1037
1057
|
return typeof r == "function" ? r : k;
|
|
1038
1058
|
}
|
|
1039
|
-
function
|
|
1059
|
+
function en(e) {
|
|
1040
1060
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1041
1061
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1042
1062
|
}) : [];
|
|
1043
1063
|
}
|
|
1044
|
-
function
|
|
1045
|
-
return Object.keys(e).concat(
|
|
1064
|
+
function st(e) {
|
|
1065
|
+
return Object.keys(e).concat(en(e));
|
|
1046
1066
|
}
|
|
1047
|
-
function
|
|
1067
|
+
function Lt(e, t) {
|
|
1048
1068
|
try {
|
|
1049
1069
|
return t in e;
|
|
1050
1070
|
} catch {
|
|
1051
1071
|
return !1;
|
|
1052
1072
|
}
|
|
1053
1073
|
}
|
|
1054
|
-
function
|
|
1055
|
-
return
|
|
1074
|
+
function tn(e, t) {
|
|
1075
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1056
1076
|
}
|
|
1057
|
-
function
|
|
1077
|
+
function rn(e, t, r) {
|
|
1058
1078
|
var n = {};
|
|
1059
|
-
return r.isMergeableObject(e) &&
|
|
1079
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
1060
1080
|
n[i] = ee(e[i], r);
|
|
1061
|
-
}),
|
|
1062
|
-
|
|
1081
|
+
}), st(t).forEach(function(i) {
|
|
1082
|
+
tn(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
1063
1083
|
}), n;
|
|
1064
1084
|
}
|
|
1065
1085
|
function k(e, t, r) {
|
|
1066
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1086
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || qr, r.isMergeableObject = r.isMergeableObject || zr, r.cloneUnlessOtherwiseSpecified = ee;
|
|
1067
1087
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1068
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1088
|
+
return o ? n ? r.arrayMerge(e, t, r) : rn(e, t, r) : ee(t, r);
|
|
1069
1089
|
}
|
|
1070
1090
|
k.all = function(t, r) {
|
|
1071
1091
|
if (!Array.isArray(t))
|
|
@@ -1074,105 +1094,107 @@ k.all = function(t, r) {
|
|
|
1074
1094
|
return k(n, i, r);
|
|
1075
1095
|
}, {});
|
|
1076
1096
|
};
|
|
1077
|
-
var
|
|
1078
|
-
const
|
|
1079
|
-
function
|
|
1080
|
-
var r = t && t.cache ? t.cache :
|
|
1097
|
+
var nn = k, on = nn;
|
|
1098
|
+
const sn = /* @__PURE__ */ Vr(on);
|
|
1099
|
+
function Be(e, t) {
|
|
1100
|
+
var r = t && t.cache ? t.cache : fn, n = t && t.serializer ? t.serializer : cn, i = t && t.strategy ? t.strategy : un;
|
|
1081
1101
|
return i(e, {
|
|
1082
1102
|
cache: r,
|
|
1083
1103
|
serializer: n
|
|
1084
1104
|
});
|
|
1085
1105
|
}
|
|
1086
|
-
function
|
|
1106
|
+
function an(e) {
|
|
1087
1107
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1088
1108
|
}
|
|
1089
|
-
function
|
|
1090
|
-
var i =
|
|
1109
|
+
function Nt(e, t, r, n) {
|
|
1110
|
+
var i = an(n) ? n : r(n), o = t.get(i);
|
|
1091
1111
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1092
1112
|
}
|
|
1093
|
-
function
|
|
1113
|
+
function Mt(e, t, r) {
|
|
1094
1114
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1095
1115
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1096
1116
|
}
|
|
1097
|
-
function
|
|
1117
|
+
function Xe(e, t, r, n, i) {
|
|
1098
1118
|
return r.bind(t, e, n, i);
|
|
1099
1119
|
}
|
|
1100
|
-
function
|
|
1101
|
-
var r = e.length === 1 ?
|
|
1102
|
-
return
|
|
1120
|
+
function un(e, t) {
|
|
1121
|
+
var r = e.length === 1 ? Nt : Mt;
|
|
1122
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
1123
|
+
}
|
|
1124
|
+
function hn(e, t) {
|
|
1125
|
+
return Xe(e, this, Mt, t.cache.create(), t.serializer);
|
|
1103
1126
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return
|
|
1127
|
+
function ln(e, t) {
|
|
1128
|
+
return Xe(e, this, Nt, t.cache.create(), t.serializer);
|
|
1106
1129
|
}
|
|
1107
|
-
var
|
|
1130
|
+
var cn = function() {
|
|
1108
1131
|
return JSON.stringify(arguments);
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
}()
|
|
1121
|
-
), hn = {
|
|
1132
|
+
};
|
|
1133
|
+
function We() {
|
|
1134
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1135
|
+
}
|
|
1136
|
+
We.prototype.get = function(e) {
|
|
1137
|
+
return this.cache[e];
|
|
1138
|
+
};
|
|
1139
|
+
We.prototype.set = function(e, t) {
|
|
1140
|
+
this.cache[e] = t;
|
|
1141
|
+
};
|
|
1142
|
+
var fn = {
|
|
1122
1143
|
create: function() {
|
|
1123
|
-
return new
|
|
1144
|
+
return new We();
|
|
1124
1145
|
}
|
|
1125
|
-
},
|
|
1126
|
-
variadic:
|
|
1146
|
+
}, Te = {
|
|
1147
|
+
variadic: hn,
|
|
1148
|
+
monadic: ln
|
|
1127
1149
|
}, p;
|
|
1128
1150
|
(function(e) {
|
|
1129
1151
|
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";
|
|
1130
1152
|
})(p || (p = {}));
|
|
1131
|
-
var
|
|
1153
|
+
var E;
|
|
1132
1154
|
(function(e) {
|
|
1133
1155
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1134
|
-
})(
|
|
1156
|
+
})(E || (E = {}));
|
|
1135
1157
|
var V;
|
|
1136
1158
|
(function(e) {
|
|
1137
1159
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1138
1160
|
})(V || (V = {}));
|
|
1139
|
-
function
|
|
1140
|
-
return e.type ===
|
|
1161
|
+
function at(e) {
|
|
1162
|
+
return e.type === E.literal;
|
|
1141
1163
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return e.type ===
|
|
1164
|
+
function pn(e) {
|
|
1165
|
+
return e.type === E.argument;
|
|
1144
1166
|
}
|
|
1145
|
-
function
|
|
1146
|
-
return e.type ===
|
|
1167
|
+
function $t(e) {
|
|
1168
|
+
return e.type === E.number;
|
|
1147
1169
|
}
|
|
1148
|
-
function
|
|
1149
|
-
return e.type ===
|
|
1170
|
+
function Rt(e) {
|
|
1171
|
+
return e.type === E.date;
|
|
1150
1172
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return e.type ===
|
|
1173
|
+
function Dt(e) {
|
|
1174
|
+
return e.type === E.time;
|
|
1153
1175
|
}
|
|
1154
|
-
function
|
|
1155
|
-
return e.type ===
|
|
1176
|
+
function Ut(e) {
|
|
1177
|
+
return e.type === E.select;
|
|
1156
1178
|
}
|
|
1157
|
-
function
|
|
1158
|
-
return e.type ===
|
|
1179
|
+
function Ft(e) {
|
|
1180
|
+
return e.type === E.plural;
|
|
1159
1181
|
}
|
|
1160
|
-
function
|
|
1161
|
-
return e.type ===
|
|
1182
|
+
function mn(e) {
|
|
1183
|
+
return e.type === E.pound;
|
|
1162
1184
|
}
|
|
1163
|
-
function
|
|
1164
|
-
return e.type ===
|
|
1185
|
+
function Gt(e) {
|
|
1186
|
+
return e.type === E.tag;
|
|
1165
1187
|
}
|
|
1166
|
-
function
|
|
1188
|
+
function jt(e) {
|
|
1167
1189
|
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1168
1190
|
}
|
|
1169
|
-
function
|
|
1191
|
+
function $e(e) {
|
|
1170
1192
|
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1171
1193
|
}
|
|
1172
|
-
var
|
|
1173
|
-
function
|
|
1194
|
+
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, dn = /(?:[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;
|
|
1195
|
+
function bn(e) {
|
|
1174
1196
|
var t = {};
|
|
1175
|
-
return e.replace(
|
|
1197
|
+
return e.replace(dn, function(r) {
|
|
1176
1198
|
var n = r.length;
|
|
1177
1199
|
switch (r[0]) {
|
|
1178
1200
|
case "G":
|
|
@@ -1261,36 +1283,36 @@ function pn(e) {
|
|
|
1261
1283
|
return "";
|
|
1262
1284
|
}), t;
|
|
1263
1285
|
}
|
|
1264
|
-
var
|
|
1265
|
-
function
|
|
1286
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1287
|
+
function yn(e) {
|
|
1266
1288
|
if (e.length === 0)
|
|
1267
1289
|
throw new Error("Number skeleton cannot be empty");
|
|
1268
|
-
for (var t = e.split(
|
|
1290
|
+
for (var t = e.split(gn).filter(function(f) {
|
|
1269
1291
|
return f.length > 0;
|
|
1270
1292
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1271
|
-
var o = i[n],
|
|
1272
|
-
if (
|
|
1293
|
+
var o = i[n], a = o.split("/");
|
|
1294
|
+
if (a.length === 0)
|
|
1273
1295
|
throw new Error("Invalid number skeleton");
|
|
1274
|
-
for (var
|
|
1296
|
+
for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1275
1297
|
var c = l[u];
|
|
1276
1298
|
if (c.length === 0)
|
|
1277
1299
|
throw new Error("Invalid number skeleton");
|
|
1278
1300
|
}
|
|
1279
|
-
r.push({ stem:
|
|
1301
|
+
r.push({ stem: s, options: h });
|
|
1280
1302
|
}
|
|
1281
1303
|
return r;
|
|
1282
1304
|
}
|
|
1283
|
-
function
|
|
1305
|
+
function vn(e) {
|
|
1284
1306
|
return e.replace(/^(.*?)-/, "");
|
|
1285
1307
|
}
|
|
1286
|
-
var
|
|
1287
|
-
function
|
|
1308
|
+
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, En = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
|
|
1309
|
+
function ht(e) {
|
|
1288
1310
|
var t = {};
|
|
1289
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1311
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
|
|
1290
1312
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1291
1313
|
}), t;
|
|
1292
1314
|
}
|
|
1293
|
-
function
|
|
1315
|
+
function Xt(e) {
|
|
1294
1316
|
switch (e) {
|
|
1295
1317
|
case "sign-auto":
|
|
1296
1318
|
return {
|
|
@@ -1330,7 +1352,7 @@ function jt(e) {
|
|
|
1330
1352
|
};
|
|
1331
1353
|
}
|
|
1332
1354
|
}
|
|
1333
|
-
function
|
|
1355
|
+
function xn(e) {
|
|
1334
1356
|
var t;
|
|
1335
1357
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1336
1358
|
notation: "engineering"
|
|
@@ -1338,17 +1360,17 @@ function vn(e) {
|
|
|
1338
1360
|
notation: "scientific"
|
|
1339
1361
|
}, e = e.slice(1)), t) {
|
|
1340
1362
|
var r = e.slice(0, 2);
|
|
1341
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1363
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !zt.test(e))
|
|
1342
1364
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1343
1365
|
t.minimumIntegerDigits = e.length;
|
|
1344
1366
|
}
|
|
1345
1367
|
return t;
|
|
1346
1368
|
}
|
|
1347
|
-
function
|
|
1348
|
-
var t = {}, r =
|
|
1369
|
+
function lt(e) {
|
|
1370
|
+
var t = {}, r = Xt(e);
|
|
1349
1371
|
return r || t;
|
|
1350
1372
|
}
|
|
1351
|
-
function
|
|
1373
|
+
function _n(e) {
|
|
1352
1374
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1353
1375
|
var i = n[r];
|
|
1354
1376
|
switch (i.stem) {
|
|
@@ -1372,7 +1394,7 @@ function yn(e) {
|
|
|
1372
1394
|
continue;
|
|
1373
1395
|
case "measure-unit":
|
|
1374
1396
|
case "unit":
|
|
1375
|
-
t.style = "unit", t.unit =
|
|
1397
|
+
t.style = "unit", t.unit = vn(i.options[0]);
|
|
1376
1398
|
continue;
|
|
1377
1399
|
case "compact-short":
|
|
1378
1400
|
case "K":
|
|
@@ -1384,12 +1406,12 @@ function yn(e) {
|
|
|
1384
1406
|
continue;
|
|
1385
1407
|
case "scientific":
|
|
1386
1408
|
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1387
|
-
return b(b({}, h),
|
|
1409
|
+
return b(b({}, h), lt(u));
|
|
1388
1410
|
}, {}));
|
|
1389
1411
|
continue;
|
|
1390
1412
|
case "engineering":
|
|
1391
1413
|
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1392
|
-
return b(b({}, h),
|
|
1414
|
+
return b(b({}, h), lt(u));
|
|
1393
1415
|
}, {}));
|
|
1394
1416
|
continue;
|
|
1395
1417
|
case "notation-simple":
|
|
@@ -1434,7 +1456,7 @@ function yn(e) {
|
|
|
1434
1456
|
case "integer-width":
|
|
1435
1457
|
if (i.options.length > 1)
|
|
1436
1458
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1437
|
-
i.options[0].replace(
|
|
1459
|
+
i.options[0].replace(En, function(h, u, l, c, f, d) {
|
|
1438
1460
|
if (u)
|
|
1439
1461
|
t.minimumIntegerDigits = l.length;
|
|
1440
1462
|
else {
|
|
@@ -1447,28 +1469,28 @@ function yn(e) {
|
|
|
1447
1469
|
});
|
|
1448
1470
|
continue;
|
|
1449
1471
|
}
|
|
1450
|
-
if (
|
|
1472
|
+
if (zt.test(i.stem)) {
|
|
1451
1473
|
t.minimumIntegerDigits = i.stem.length;
|
|
1452
1474
|
continue;
|
|
1453
1475
|
}
|
|
1454
|
-
if (
|
|
1476
|
+
if (ut.test(i.stem)) {
|
|
1455
1477
|
if (i.options.length > 1)
|
|
1456
1478
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1457
|
-
i.stem.replace(
|
|
1479
|
+
i.stem.replace(ut, function(h, u, l, c, f, d) {
|
|
1458
1480
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1459
1481
|
});
|
|
1460
1482
|
var o = i.options[0];
|
|
1461
|
-
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t),
|
|
1483
|
+
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), ht(o)));
|
|
1462
1484
|
continue;
|
|
1463
1485
|
}
|
|
1464
|
-
if (
|
|
1465
|
-
t = b(b({}, t),
|
|
1486
|
+
if (Vt.test(i.stem)) {
|
|
1487
|
+
t = b(b({}, t), ht(i.stem));
|
|
1466
1488
|
continue;
|
|
1467
1489
|
}
|
|
1468
|
-
var
|
|
1469
|
-
s && (t = b(b({}, t), s));
|
|
1470
|
-
var a = vn(i.stem);
|
|
1490
|
+
var a = Xt(i.stem);
|
|
1471
1491
|
a && (t = b(b({}, t), a));
|
|
1492
|
+
var s = xn(i.stem);
|
|
1493
|
+
s && (t = b(b({}, t), s));
|
|
1472
1494
|
}
|
|
1473
1495
|
return t;
|
|
1474
1496
|
}
|
|
@@ -2887,22 +2909,22 @@ var se = {
|
|
|
2887
2909
|
"h"
|
|
2888
2910
|
]
|
|
2889
2911
|
};
|
|
2890
|
-
function
|
|
2912
|
+
function Sn(e, t) {
|
|
2891
2913
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2892
2914
|
var i = e.charAt(n);
|
|
2893
2915
|
if (i === "j") {
|
|
2894
2916
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2895
2917
|
o++, n++;
|
|
2896
|
-
var
|
|
2897
|
-
for ((u == "H" || u == "k") && (
|
|
2918
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Bn(t);
|
|
2919
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2898
2920
|
r += h;
|
|
2899
|
-
for (;
|
|
2921
|
+
for (; a-- > 0; )
|
|
2900
2922
|
r = u + r;
|
|
2901
2923
|
} else i === "J" ? r += "H" : r += i;
|
|
2902
2924
|
}
|
|
2903
2925
|
return r;
|
|
2904
2926
|
}
|
|
2905
|
-
function
|
|
2927
|
+
function Bn(e) {
|
|
2906
2928
|
var t = e.hourCycle;
|
|
2907
2929
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2908
2930
|
e.hourCycles && // @ts-ignore
|
|
@@ -2924,20 +2946,20 @@ function En(e) {
|
|
|
2924
2946
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2925
2947
|
return i[0];
|
|
2926
2948
|
}
|
|
2927
|
-
var
|
|
2949
|
+
var He, Tn = new RegExp("^".concat(kt.source, "*")), Hn = new RegExp("".concat(kt.source, "*$"));
|
|
2928
2950
|
function m(e, t) {
|
|
2929
2951
|
return { start: e, end: t };
|
|
2930
2952
|
}
|
|
2931
|
-
var
|
|
2953
|
+
var wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pn = !!String.fromCodePoint, An = !!Object.fromEntries, On = !!String.prototype.codePointAt, In = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, Ln = !!Number.isSafeInteger, Nn = Ln ? Number.isSafeInteger : function(e) {
|
|
2932
2954
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2933
|
-
},
|
|
2955
|
+
}, Re = !0;
|
|
2934
2956
|
try {
|
|
2935
|
-
var
|
|
2936
|
-
|
|
2957
|
+
var Mn = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2958
|
+
Re = ((He = Mn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
2937
2959
|
} catch {
|
|
2938
|
-
|
|
2960
|
+
Re = !1;
|
|
2939
2961
|
}
|
|
2940
|
-
var
|
|
2962
|
+
var ct = wn ? (
|
|
2941
2963
|
// Native
|
|
2942
2964
|
function(t, r, n) {
|
|
2943
2965
|
return t.startsWith(r, n);
|
|
@@ -2947,31 +2969,31 @@ var ut = Bn ? (
|
|
|
2947
2969
|
function(t, r, n) {
|
|
2948
2970
|
return t.slice(n, n + r.length) === r;
|
|
2949
2971
|
}
|
|
2950
|
-
),
|
|
2972
|
+
), De = Pn ? String.fromCodePoint : (
|
|
2951
2973
|
// IE11
|
|
2952
2974
|
function() {
|
|
2953
2975
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2954
2976
|
t[r] = arguments[r];
|
|
2955
|
-
for (var n = "", i = t.length, o = 0,
|
|
2956
|
-
if (
|
|
2957
|
-
throw RangeError(
|
|
2958
|
-
n +=
|
|
2977
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
2978
|
+
if (a = t[o++], a > 1114111)
|
|
2979
|
+
throw RangeError(a + " is not a valid code point");
|
|
2980
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2959
2981
|
}
|
|
2960
2982
|
return n;
|
|
2961
2983
|
}
|
|
2962
|
-
),
|
|
2984
|
+
), ft = (
|
|
2963
2985
|
// native
|
|
2964
|
-
|
|
2986
|
+
An ? Object.fromEntries : (
|
|
2965
2987
|
// Ponyfill
|
|
2966
2988
|
function(t) {
|
|
2967
2989
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2968
|
-
var o = i[n],
|
|
2969
|
-
r[
|
|
2990
|
+
var o = i[n], a = o[0], s = o[1];
|
|
2991
|
+
r[a] = s;
|
|
2970
2992
|
}
|
|
2971
2993
|
return r;
|
|
2972
2994
|
}
|
|
2973
2995
|
)
|
|
2974
|
-
),
|
|
2996
|
+
), Wt = On ? (
|
|
2975
2997
|
// Native
|
|
2976
2998
|
function(t, r) {
|
|
2977
2999
|
return t.codePointAt(r);
|
|
@@ -2985,7 +3007,7 @@ var ut = Bn ? (
|
|
|
2985
3007
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2986
3008
|
}
|
|
2987
3009
|
}
|
|
2988
|
-
),
|
|
3010
|
+
), $n = In ? (
|
|
2989
3011
|
// Native
|
|
2990
3012
|
function(t) {
|
|
2991
3013
|
return t.trimStart();
|
|
@@ -2993,9 +3015,9 @@ var ut = Bn ? (
|
|
|
2993
3015
|
) : (
|
|
2994
3016
|
// Ponyfill
|
|
2995
3017
|
function(t) {
|
|
2996
|
-
return t.replace(
|
|
3018
|
+
return t.replace(Tn, "");
|
|
2997
3019
|
}
|
|
2998
|
-
),
|
|
3020
|
+
), Rn = Cn ? (
|
|
2999
3021
|
// Native
|
|
3000
3022
|
function(t) {
|
|
3001
3023
|
return t.trimEnd();
|
|
@@ -3003,32 +3025,32 @@ var ut = Bn ? (
|
|
|
3003
3025
|
) : (
|
|
3004
3026
|
// Ponyfill
|
|
3005
3027
|
function(t) {
|
|
3006
|
-
return t.replace(
|
|
3028
|
+
return t.replace(Hn, "");
|
|
3007
3029
|
}
|
|
3008
3030
|
);
|
|
3009
|
-
function
|
|
3031
|
+
function Zt(e, t) {
|
|
3010
3032
|
return new RegExp(e, t);
|
|
3011
3033
|
}
|
|
3012
|
-
var
|
|
3013
|
-
if (
|
|
3014
|
-
var
|
|
3015
|
-
|
|
3034
|
+
var Ue;
|
|
3035
|
+
if (Re) {
|
|
3036
|
+
var pt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3037
|
+
Ue = function(t, r) {
|
|
3016
3038
|
var n;
|
|
3017
|
-
|
|
3018
|
-
var i =
|
|
3039
|
+
pt.lastIndex = r;
|
|
3040
|
+
var i = pt.exec(t);
|
|
3019
3041
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3020
3042
|
};
|
|
3021
3043
|
} else
|
|
3022
|
-
|
|
3044
|
+
Ue = function(t, r) {
|
|
3023
3045
|
for (var n = []; ; ) {
|
|
3024
|
-
var i =
|
|
3025
|
-
if (i === void 0 ||
|
|
3046
|
+
var i = Wt(t, r);
|
|
3047
|
+
if (i === void 0 || Qt(i) || Gn(i))
|
|
3026
3048
|
break;
|
|
3027
3049
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3028
3050
|
}
|
|
3029
|
-
return
|
|
3051
|
+
return De.apply(void 0, n);
|
|
3030
3052
|
};
|
|
3031
|
-
var
|
|
3053
|
+
var Dn = (
|
|
3032
3054
|
/** @class */
|
|
3033
3055
|
function() {
|
|
3034
3056
|
function e(t, r) {
|
|
@@ -3042,33 +3064,33 @@ var Mn = (
|
|
|
3042
3064
|
for (var i = []; !this.isEOF(); ) {
|
|
3043
3065
|
var o = this.char();
|
|
3044
3066
|
if (o === 123) {
|
|
3045
|
-
var
|
|
3046
|
-
if (
|
|
3047
|
-
return
|
|
3048
|
-
i.push(
|
|
3067
|
+
var a = this.parseArgument(t, n);
|
|
3068
|
+
if (a.err)
|
|
3069
|
+
return a;
|
|
3070
|
+
i.push(a.val);
|
|
3049
3071
|
} else {
|
|
3050
3072
|
if (o === 125 && t > 0)
|
|
3051
3073
|
break;
|
|
3052
3074
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3053
|
-
var
|
|
3075
|
+
var s = this.clonePosition();
|
|
3054
3076
|
this.bump(), i.push({
|
|
3055
|
-
type:
|
|
3056
|
-
location: m(
|
|
3077
|
+
type: E.pound,
|
|
3078
|
+
location: m(s, this.clonePosition())
|
|
3057
3079
|
});
|
|
3058
3080
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3059
3081
|
if (n)
|
|
3060
3082
|
break;
|
|
3061
3083
|
return this.error(p.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
|
|
3062
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3063
|
-
var
|
|
3064
|
-
if (
|
|
3065
|
-
return
|
|
3066
|
-
i.push(
|
|
3084
|
+
} else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
3085
|
+
var a = this.parseTag(t, r);
|
|
3086
|
+
if (a.err)
|
|
3087
|
+
return a;
|
|
3088
|
+
i.push(a.val);
|
|
3067
3089
|
} else {
|
|
3068
|
-
var
|
|
3069
|
-
if (
|
|
3070
|
-
return
|
|
3071
|
-
i.push(
|
|
3090
|
+
var a = this.parseLiteral(t, r);
|
|
3091
|
+
if (a.err)
|
|
3092
|
+
return a;
|
|
3093
|
+
i.push(a.val);
|
|
3072
3094
|
}
|
|
3073
3095
|
}
|
|
3074
3096
|
}
|
|
@@ -3080,7 +3102,7 @@ var Mn = (
|
|
|
3080
3102
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3081
3103
|
return {
|
|
3082
3104
|
val: {
|
|
3083
|
-
type:
|
|
3105
|
+
type: E.literal,
|
|
3084
3106
|
value: "<".concat(i, "/>"),
|
|
3085
3107
|
location: m(n, this.clonePosition())
|
|
3086
3108
|
},
|
|
@@ -3090,27 +3112,27 @@ var Mn = (
|
|
|
3090
3112
|
var o = this.parseMessage(t + 1, r, !0);
|
|
3091
3113
|
if (o.err)
|
|
3092
3114
|
return o;
|
|
3093
|
-
var
|
|
3115
|
+
var a = o.val, s = this.clonePosition();
|
|
3094
3116
|
if (this.bumpIf("</")) {
|
|
3095
|
-
if (this.isEOF() || !
|
|
3096
|
-
return this.error(p.INVALID_TAG, m(
|
|
3117
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
3118
|
+
return this.error(p.INVALID_TAG, m(s, this.clonePosition()));
|
|
3097
3119
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3098
3120
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, m(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3099
3121
|
val: {
|
|
3100
|
-
type:
|
|
3122
|
+
type: E.tag,
|
|
3101
3123
|
value: i,
|
|
3102
|
-
children:
|
|
3124
|
+
children: a,
|
|
3103
3125
|
location: m(n, this.clonePosition())
|
|
3104
3126
|
},
|
|
3105
3127
|
err: null
|
|
3106
|
-
} : this.error(p.INVALID_TAG, m(
|
|
3128
|
+
} : this.error(p.INVALID_TAG, m(s, this.clonePosition())));
|
|
3107
3129
|
} else
|
|
3108
3130
|
return this.error(p.UNCLOSED_TAG, m(n, this.clonePosition()));
|
|
3109
3131
|
} else
|
|
3110
3132
|
return this.error(p.INVALID_TAG, m(n, this.clonePosition()));
|
|
3111
3133
|
}, e.prototype.parseTagName = function() {
|
|
3112
3134
|
var t = this.offset();
|
|
3113
|
-
for (this.bump(); !this.isEOF() &&
|
|
3135
|
+
for (this.bump(); !this.isEOF() && Fn(this.char()); )
|
|
3114
3136
|
this.bump();
|
|
3115
3137
|
return this.message.slice(t, this.offset());
|
|
3116
3138
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3120,26 +3142,26 @@ var Mn = (
|
|
|
3120
3142
|
i += o;
|
|
3121
3143
|
continue;
|
|
3122
3144
|
}
|
|
3123
|
-
var
|
|
3124
|
-
if (s) {
|
|
3125
|
-
i += s;
|
|
3126
|
-
continue;
|
|
3127
|
-
}
|
|
3128
|
-
var a = this.tryParseLeftAngleBracket();
|
|
3145
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3129
3146
|
if (a) {
|
|
3130
3147
|
i += a;
|
|
3131
3148
|
continue;
|
|
3132
3149
|
}
|
|
3150
|
+
var s = this.tryParseLeftAngleBracket();
|
|
3151
|
+
if (s) {
|
|
3152
|
+
i += s;
|
|
3153
|
+
continue;
|
|
3154
|
+
}
|
|
3133
3155
|
break;
|
|
3134
3156
|
}
|
|
3135
3157
|
var h = m(n, this.clonePosition());
|
|
3136
3158
|
return {
|
|
3137
|
-
val: { type:
|
|
3159
|
+
val: { type: E.literal, value: i, location: h },
|
|
3138
3160
|
err: null
|
|
3139
3161
|
};
|
|
3140
3162
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3141
3163
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3142
|
-
|
|
3164
|
+
!Un(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3143
3165
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3144
3166
|
if (this.isEOF() || this.char() !== 39)
|
|
3145
3167
|
return null;
|
|
@@ -3173,12 +3195,12 @@ var Mn = (
|
|
|
3173
3195
|
r.push(n);
|
|
3174
3196
|
this.bump();
|
|
3175
3197
|
}
|
|
3176
|
-
return
|
|
3198
|
+
return De.apply(void 0, r);
|
|
3177
3199
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3178
3200
|
if (this.isEOF())
|
|
3179
3201
|
return null;
|
|
3180
3202
|
var n = this.char();
|
|
3181
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3203
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
3182
3204
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3183
3205
|
var n = this.clonePosition();
|
|
3184
3206
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3194,7 +3216,7 @@ var Mn = (
|
|
|
3194
3216
|
case 125:
|
|
3195
3217
|
return this.bump(), {
|
|
3196
3218
|
val: {
|
|
3197
|
-
type:
|
|
3219
|
+
type: E.argument,
|
|
3198
3220
|
// value does not include the opening and closing braces.
|
|
3199
3221
|
value: i,
|
|
3200
3222
|
location: m(n, this.clonePosition())
|
|
@@ -3207,15 +3229,15 @@ var Mn = (
|
|
|
3207
3229
|
return this.error(p.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
3208
3230
|
}
|
|
3209
3231
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3210
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3232
|
+
var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
|
|
3211
3233
|
this.bumpTo(i);
|
|
3212
|
-
var o = this.clonePosition(),
|
|
3213
|
-
return { value: n, location:
|
|
3234
|
+
var o = this.clonePosition(), a = m(t, o);
|
|
3235
|
+
return { value: n, location: a };
|
|
3214
3236
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3215
|
-
var o,
|
|
3216
|
-
switch (
|
|
3237
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3238
|
+
switch (s) {
|
|
3217
3239
|
case "":
|
|
3218
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE, m(
|
|
3240
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, m(a, h));
|
|
3219
3241
|
case "number":
|
|
3220
3242
|
case "date":
|
|
3221
3243
|
case "time": {
|
|
@@ -3226,46 +3248,46 @@ var Mn = (
|
|
|
3226
3248
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3227
3249
|
if (c.err)
|
|
3228
3250
|
return c;
|
|
3229
|
-
var f =
|
|
3251
|
+
var f = Rn(c.val);
|
|
3230
3252
|
if (f.length === 0)
|
|
3231
3253
|
return this.error(p.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
|
|
3232
3254
|
var d = m(l, this.clonePosition());
|
|
3233
3255
|
u = { style: f, styleLocation: d };
|
|
3234
3256
|
}
|
|
3235
|
-
var
|
|
3236
|
-
if (
|
|
3237
|
-
return
|
|
3238
|
-
var
|
|
3239
|
-
if (u &&
|
|
3240
|
-
var S =
|
|
3241
|
-
if (
|
|
3257
|
+
var v = this.tryParseArgumentClose(i);
|
|
3258
|
+
if (v.err)
|
|
3259
|
+
return v;
|
|
3260
|
+
var y = m(i, this.clonePosition());
|
|
3261
|
+
if (u && ct(u?.style, "::", 0)) {
|
|
3262
|
+
var S = $n(u.style.slice(2));
|
|
3263
|
+
if (s === "number") {
|
|
3242
3264
|
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3243
3265
|
return c.err ? c : {
|
|
3244
|
-
val: { type:
|
|
3266
|
+
val: { type: E.number, value: n, location: y, style: c.val },
|
|
3245
3267
|
err: null
|
|
3246
3268
|
};
|
|
3247
3269
|
} else {
|
|
3248
3270
|
if (S.length === 0)
|
|
3249
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3250
|
-
var
|
|
3251
|
-
this.locale && (
|
|
3271
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, y);
|
|
3272
|
+
var L = S;
|
|
3273
|
+
this.locale && (L = Sn(S, this.locale));
|
|
3252
3274
|
var f = {
|
|
3253
3275
|
type: V.dateTime,
|
|
3254
|
-
pattern:
|
|
3276
|
+
pattern: L,
|
|
3255
3277
|
location: u.styleLocation,
|
|
3256
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3257
|
-
}, O =
|
|
3278
|
+
parsedOptions: this.shouldParseSkeletons ? bn(L) : {}
|
|
3279
|
+
}, O = s === "date" ? E.date : E.time;
|
|
3258
3280
|
return {
|
|
3259
|
-
val: { type: O, value: n, location:
|
|
3281
|
+
val: { type: O, value: n, location: y, style: f },
|
|
3260
3282
|
err: null
|
|
3261
3283
|
};
|
|
3262
3284
|
}
|
|
3263
3285
|
}
|
|
3264
3286
|
return {
|
|
3265
3287
|
val: {
|
|
3266
|
-
type:
|
|
3288
|
+
type: s === "number" ? E.number : s === "date" ? E.date : E.time,
|
|
3267
3289
|
value: n,
|
|
3268
|
-
location:
|
|
3290
|
+
location: y,
|
|
3269
3291
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3270
3292
|
},
|
|
3271
3293
|
err: null
|
|
@@ -3274,12 +3296,12 @@ var Mn = (
|
|
|
3274
3296
|
case "plural":
|
|
3275
3297
|
case "selectordinal":
|
|
3276
3298
|
case "select": {
|
|
3277
|
-
var
|
|
3299
|
+
var x = this.clonePosition();
|
|
3278
3300
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3279
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, m(
|
|
3301
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, m(x, b({}, x)));
|
|
3280
3302
|
this.bumpSpace();
|
|
3281
3303
|
var T = this.parseIdentifierIfPossible(), H = 0;
|
|
3282
|
-
if (
|
|
3304
|
+
if (s !== "select" && T.value === "offset") {
|
|
3283
3305
|
if (!this.bumpIf(":"))
|
|
3284
3306
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
|
|
3285
3307
|
this.bumpSpace();
|
|
@@ -3288,35 +3310,35 @@ var Mn = (
|
|
|
3288
3310
|
return c;
|
|
3289
3311
|
this.bumpSpace(), T = this.parseIdentifierIfPossible(), H = c.val;
|
|
3290
3312
|
}
|
|
3291
|
-
var $ = this.tryParsePluralOrSelectOptions(t,
|
|
3313
|
+
var $ = this.tryParsePluralOrSelectOptions(t, s, r, T);
|
|
3292
3314
|
if ($.err)
|
|
3293
3315
|
return $;
|
|
3294
|
-
var
|
|
3295
|
-
if (
|
|
3296
|
-
return
|
|
3316
|
+
var v = this.tryParseArgumentClose(i);
|
|
3317
|
+
if (v.err)
|
|
3318
|
+
return v;
|
|
3297
3319
|
var ie = m(i, this.clonePosition());
|
|
3298
|
-
return
|
|
3320
|
+
return s === "select" ? {
|
|
3299
3321
|
val: {
|
|
3300
|
-
type:
|
|
3322
|
+
type: E.select,
|
|
3301
3323
|
value: n,
|
|
3302
|
-
options:
|
|
3324
|
+
options: ft($.val),
|
|
3303
3325
|
location: ie
|
|
3304
3326
|
},
|
|
3305
3327
|
err: null
|
|
3306
3328
|
} : {
|
|
3307
3329
|
val: {
|
|
3308
|
-
type:
|
|
3330
|
+
type: E.plural,
|
|
3309
3331
|
value: n,
|
|
3310
|
-
options:
|
|
3332
|
+
options: ft($.val),
|
|
3311
3333
|
offset: H,
|
|
3312
|
-
pluralType:
|
|
3334
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3313
3335
|
location: ie
|
|
3314
3336
|
},
|
|
3315
3337
|
err: null
|
|
3316
3338
|
};
|
|
3317
3339
|
}
|
|
3318
3340
|
default:
|
|
3319
|
-
return this.error(p.INVALID_ARGUMENT_TYPE, m(
|
|
3341
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, m(a, h));
|
|
3320
3342
|
}
|
|
3321
3343
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3322
3344
|
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, m(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3358,7 +3380,7 @@ var Mn = (
|
|
|
3358
3380
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3359
3381
|
var n = [];
|
|
3360
3382
|
try {
|
|
3361
|
-
n =
|
|
3383
|
+
n = yn(t);
|
|
3362
3384
|
} catch {
|
|
3363
3385
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3364
3386
|
}
|
|
@@ -3367,12 +3389,12 @@ var Mn = (
|
|
|
3367
3389
|
type: V.number,
|
|
3368
3390
|
tokens: n,
|
|
3369
3391
|
location: r,
|
|
3370
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3392
|
+
parsedOptions: this.shouldParseSkeletons ? _n(n) : {}
|
|
3371
3393
|
},
|
|
3372
3394
|
err: null
|
|
3373
3395
|
};
|
|
3374
3396
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3375
|
-
for (var o,
|
|
3397
|
+
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3376
3398
|
if (u.length === 0) {
|
|
3377
3399
|
var c = this.clonePosition();
|
|
3378
3400
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3385,37 +3407,37 @@ var Mn = (
|
|
|
3385
3407
|
}
|
|
3386
3408
|
if (h.has(u))
|
|
3387
3409
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3388
|
-
u === "other" && (
|
|
3410
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3389
3411
|
var d = this.clonePosition();
|
|
3390
3412
|
if (!this.bumpIf("{"))
|
|
3391
3413
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, m(this.clonePosition(), this.clonePosition()));
|
|
3392
|
-
var
|
|
3393
|
-
if (y.err)
|
|
3394
|
-
return y;
|
|
3395
|
-
var v = this.tryParseArgumentClose(d);
|
|
3414
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3396
3415
|
if (v.err)
|
|
3397
3416
|
return v;
|
|
3398
|
-
|
|
3417
|
+
var y = this.tryParseArgumentClose(d);
|
|
3418
|
+
if (y.err)
|
|
3419
|
+
return y;
|
|
3420
|
+
s.push([
|
|
3399
3421
|
u,
|
|
3400
3422
|
{
|
|
3401
|
-
value:
|
|
3423
|
+
value: v.val,
|
|
3402
3424
|
location: m(d, this.clonePosition())
|
|
3403
3425
|
}
|
|
3404
3426
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3405
3427
|
}
|
|
3406
|
-
return
|
|
3428
|
+
return s.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, m(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, m(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3407
3429
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3408
3430
|
var n = 1, i = this.clonePosition();
|
|
3409
3431
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3410
|
-
for (var o = !1,
|
|
3411
|
-
var
|
|
3412
|
-
if (
|
|
3413
|
-
o = !0,
|
|
3432
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3433
|
+
var s = this.char();
|
|
3434
|
+
if (s >= 48 && s <= 57)
|
|
3435
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3414
3436
|
else
|
|
3415
3437
|
break;
|
|
3416
3438
|
}
|
|
3417
3439
|
var h = m(i, this.clonePosition());
|
|
3418
|
-
return o ? (
|
|
3440
|
+
return o ? (a *= n, Nn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3419
3441
|
}, e.prototype.offset = function() {
|
|
3420
3442
|
return this.position.offset;
|
|
3421
3443
|
}, e.prototype.isEOF = function() {
|
|
@@ -3430,7 +3452,7 @@ var Mn = (
|
|
|
3430
3452
|
var t = this.position.offset;
|
|
3431
3453
|
if (t >= this.message.length)
|
|
3432
3454
|
throw Error("out of bound");
|
|
3433
|
-
var r =
|
|
3455
|
+
var r = Wt(this.message, t);
|
|
3434
3456
|
if (r === void 0)
|
|
3435
3457
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3436
3458
|
return r;
|
|
@@ -3449,7 +3471,7 @@ var Mn = (
|
|
|
3449
3471
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3450
3472
|
}
|
|
3451
3473
|
}, e.prototype.bumpIf = function(t) {
|
|
3452
|
-
if (
|
|
3474
|
+
if (ct(this.message, t, this.offset())) {
|
|
3453
3475
|
for (var r = 0; r < t.length; r++)
|
|
3454
3476
|
this.bump();
|
|
3455
3477
|
return !0;
|
|
@@ -3471,7 +3493,7 @@ var Mn = (
|
|
|
3471
3493
|
break;
|
|
3472
3494
|
}
|
|
3473
3495
|
}, e.prototype.bumpSpace = function() {
|
|
3474
|
-
for (; !this.isEOF() &&
|
|
3496
|
+
for (; !this.isEOF() && Qt(this.char()); )
|
|
3475
3497
|
this.bump();
|
|
3476
3498
|
}, e.prototype.peek = function() {
|
|
3477
3499
|
if (this.isEOF())
|
|
@@ -3481,43 +3503,43 @@ var Mn = (
|
|
|
3481
3503
|
}, e;
|
|
3482
3504
|
}()
|
|
3483
3505
|
);
|
|
3484
|
-
function
|
|
3506
|
+
function Fe(e) {
|
|
3485
3507
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3486
3508
|
}
|
|
3487
|
-
function
|
|
3488
|
-
return
|
|
3509
|
+
function Un(e) {
|
|
3510
|
+
return Fe(e) || e === 47;
|
|
3489
3511
|
}
|
|
3490
|
-
function
|
|
3512
|
+
function Fn(e) {
|
|
3491
3513
|
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;
|
|
3492
3514
|
}
|
|
3493
|
-
function
|
|
3515
|
+
function Qt(e) {
|
|
3494
3516
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3495
3517
|
}
|
|
3496
|
-
function
|
|
3518
|
+
function Gn(e) {
|
|
3497
3519
|
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;
|
|
3498
3520
|
}
|
|
3499
3521
|
function Ge(e) {
|
|
3500
3522
|
e.forEach(function(t) {
|
|
3501
|
-
if (delete t.location,
|
|
3523
|
+
if (delete t.location, Ut(t) || Ft(t))
|
|
3502
3524
|
for (var r in t.options)
|
|
3503
3525
|
delete t.options[r].location, Ge(t.options[r].value);
|
|
3504
|
-
else
|
|
3526
|
+
else $t(t) && jt(t.style) || (Rt(t) || Dt(t)) && $e(t.style) ? delete t.style.location : Gt(t) && Ge(t.children);
|
|
3505
3527
|
});
|
|
3506
3528
|
}
|
|
3507
|
-
function
|
|
3529
|
+
function jn(e, t) {
|
|
3508
3530
|
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3509
|
-
var r = new
|
|
3531
|
+
var r = new Dn(e, t).parse();
|
|
3510
3532
|
if (r.err) {
|
|
3511
3533
|
var n = SyntaxError(p[r.err.kind]);
|
|
3512
3534
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3513
3535
|
}
|
|
3514
3536
|
return t?.captureLocation || Ge(r.val), r.val;
|
|
3515
3537
|
}
|
|
3516
|
-
var
|
|
3538
|
+
var z;
|
|
3517
3539
|
(function(e) {
|
|
3518
3540
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3519
|
-
})(
|
|
3520
|
-
var
|
|
3541
|
+
})(z || (z = {}));
|
|
3542
|
+
var ye = (
|
|
3521
3543
|
/** @class */
|
|
3522
3544
|
function(e) {
|
|
3523
3545
|
A(t, e);
|
|
@@ -3529,65 +3551,65 @@ var ve = (
|
|
|
3529
3551
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3530
3552
|
}, t;
|
|
3531
3553
|
}(Error)
|
|
3532
|
-
),
|
|
3554
|
+
), mt = (
|
|
3533
3555
|
/** @class */
|
|
3534
3556
|
function(e) {
|
|
3535
3557
|
A(t, e);
|
|
3536
3558
|
function t(r, n, i, o) {
|
|
3537
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3559
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3538
3560
|
}
|
|
3539
3561
|
return t;
|
|
3540
|
-
}(
|
|
3541
|
-
),
|
|
3562
|
+
}(ye)
|
|
3563
|
+
), kn = (
|
|
3542
3564
|
/** @class */
|
|
3543
3565
|
function(e) {
|
|
3544
3566
|
A(t, e);
|
|
3545
3567
|
function t(r, n, i) {
|
|
3546
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3568
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3547
3569
|
}
|
|
3548
3570
|
return t;
|
|
3549
|
-
}(
|
|
3550
|
-
),
|
|
3571
|
+
}(ye)
|
|
3572
|
+
), Vn = (
|
|
3551
3573
|
/** @class */
|
|
3552
3574
|
function(e) {
|
|
3553
3575
|
A(t, e);
|
|
3554
3576
|
function t(r, n) {
|
|
3555
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3577
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3556
3578
|
}
|
|
3557
3579
|
return t;
|
|
3558
|
-
}(
|
|
3580
|
+
}(ye)
|
|
3559
3581
|
), _;
|
|
3560
3582
|
(function(e) {
|
|
3561
3583
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3562
3584
|
})(_ || (_ = {}));
|
|
3563
|
-
function
|
|
3585
|
+
function zn(e) {
|
|
3564
3586
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3565
3587
|
var n = t[t.length - 1];
|
|
3566
3588
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3567
3589
|
}, []);
|
|
3568
3590
|
}
|
|
3569
|
-
function
|
|
3591
|
+
function Xn(e) {
|
|
3570
3592
|
return typeof e == "function";
|
|
3571
3593
|
}
|
|
3572
|
-
function ce(e, t, r, n, i, o,
|
|
3573
|
-
if (e.length === 1 &&
|
|
3594
|
+
function ce(e, t, r, n, i, o, a) {
|
|
3595
|
+
if (e.length === 1 && at(e[0]))
|
|
3574
3596
|
return [
|
|
3575
3597
|
{
|
|
3576
3598
|
type: _.literal,
|
|
3577
3599
|
value: e[0].value
|
|
3578
3600
|
}
|
|
3579
3601
|
];
|
|
3580
|
-
for (var
|
|
3602
|
+
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3581
3603
|
var l = u[h];
|
|
3582
|
-
if (
|
|
3583
|
-
|
|
3604
|
+
if (at(l)) {
|
|
3605
|
+
s.push({
|
|
3584
3606
|
type: _.literal,
|
|
3585
3607
|
value: l.value
|
|
3586
3608
|
});
|
|
3587
3609
|
continue;
|
|
3588
3610
|
}
|
|
3589
|
-
if (
|
|
3590
|
-
typeof o == "number" &&
|
|
3611
|
+
if (mn(l)) {
|
|
3612
|
+
typeof o == "number" && s.push({
|
|
3591
3613
|
type: _.literal,
|
|
3592
3614
|
value: r.getNumberFormat(t).format(o)
|
|
3593
3615
|
});
|
|
@@ -3595,89 +3617,89 @@ function ce(e, t, r, n, i, o, s) {
|
|
|
3595
3617
|
}
|
|
3596
3618
|
var c = l.value;
|
|
3597
3619
|
if (!(i && c in i))
|
|
3598
|
-
throw new
|
|
3620
|
+
throw new Vn(c, a);
|
|
3599
3621
|
var f = i[c];
|
|
3600
|
-
if (
|
|
3601
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3622
|
+
if (pn(l)) {
|
|
3623
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3602
3624
|
type: typeof f == "string" ? _.literal : _.object,
|
|
3603
3625
|
value: f
|
|
3604
3626
|
});
|
|
3605
3627
|
continue;
|
|
3606
3628
|
}
|
|
3607
|
-
if (
|
|
3608
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
|
3609
|
-
|
|
3629
|
+
if (Rt(l)) {
|
|
3630
|
+
var d = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
|
|
3631
|
+
s.push({
|
|
3610
3632
|
type: _.literal,
|
|
3611
3633
|
value: r.getDateTimeFormat(t, d).format(f)
|
|
3612
3634
|
});
|
|
3613
3635
|
continue;
|
|
3614
3636
|
}
|
|
3615
|
-
if (
|
|
3616
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
|
3617
|
-
|
|
3637
|
+
if (Dt(l)) {
|
|
3638
|
+
var d = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3639
|
+
s.push({
|
|
3618
3640
|
type: _.literal,
|
|
3619
3641
|
value: r.getDateTimeFormat(t, d).format(f)
|
|
3620
3642
|
});
|
|
3621
3643
|
continue;
|
|
3622
3644
|
}
|
|
3623
|
-
if (
|
|
3624
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
|
3625
|
-
d && d.scale && (f = f * (d.scale || 1)),
|
|
3645
|
+
if ($t(l)) {
|
|
3646
|
+
var d = typeof l.style == "string" ? n.number[l.style] : jt(l.style) ? l.style.parsedOptions : void 0;
|
|
3647
|
+
d && d.scale && (f = f * (d.scale || 1)), s.push({
|
|
3626
3648
|
type: _.literal,
|
|
3627
3649
|
value: r.getNumberFormat(t, d).format(f)
|
|
3628
3650
|
});
|
|
3629
3651
|
continue;
|
|
3630
3652
|
}
|
|
3631
|
-
if (
|
|
3632
|
-
var
|
|
3633
|
-
if (!
|
|
3634
|
-
throw new
|
|
3635
|
-
var
|
|
3653
|
+
if (Gt(l)) {
|
|
3654
|
+
var v = l.children, y = l.value, S = i[y];
|
|
3655
|
+
if (!Xn(S))
|
|
3656
|
+
throw new kn(y, "function", a);
|
|
3657
|
+
var L = ce(v, t, r, n, i, o), O = S(L.map(function(H) {
|
|
3636
3658
|
return H.value;
|
|
3637
3659
|
}));
|
|
3638
|
-
Array.isArray(O) || (O = [O]),
|
|
3660
|
+
Array.isArray(O) || (O = [O]), s.push.apply(s, O.map(function(H) {
|
|
3639
3661
|
return {
|
|
3640
3662
|
type: typeof H == "string" ? _.literal : _.object,
|
|
3641
3663
|
value: H
|
|
3642
3664
|
};
|
|
3643
3665
|
}));
|
|
3644
3666
|
}
|
|
3645
|
-
if (
|
|
3646
|
-
var
|
|
3647
|
-
if (!
|
|
3648
|
-
throw new
|
|
3649
|
-
|
|
3667
|
+
if (Ut(l)) {
|
|
3668
|
+
var x = l.options[f] || l.options.other;
|
|
3669
|
+
if (!x)
|
|
3670
|
+
throw new mt(l.value, f, Object.keys(l.options), a);
|
|
3671
|
+
s.push.apply(s, ce(x.value, t, r, n, i));
|
|
3650
3672
|
continue;
|
|
3651
3673
|
}
|
|
3652
|
-
if (
|
|
3653
|
-
var
|
|
3654
|
-
if (!
|
|
3674
|
+
if (Ft(l)) {
|
|
3675
|
+
var x = l.options["=".concat(f)];
|
|
3676
|
+
if (!x) {
|
|
3655
3677
|
if (!Intl.PluralRules)
|
|
3656
|
-
throw new
|
|
3678
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3657
3679
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3658
|
-
`,
|
|
3680
|
+
`, z.MISSING_INTL_API, a);
|
|
3659
3681
|
var T = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3660
|
-
|
|
3682
|
+
x = l.options[T] || l.options.other;
|
|
3661
3683
|
}
|
|
3662
|
-
if (!
|
|
3663
|
-
throw new
|
|
3664
|
-
|
|
3684
|
+
if (!x)
|
|
3685
|
+
throw new mt(l.value, f, Object.keys(l.options), a);
|
|
3686
|
+
s.push.apply(s, ce(x.value, t, r, n, i, f - (l.offset || 0)));
|
|
3665
3687
|
continue;
|
|
3666
3688
|
}
|
|
3667
3689
|
}
|
|
3668
|
-
return
|
|
3690
|
+
return zn(s);
|
|
3669
3691
|
}
|
|
3670
|
-
function
|
|
3692
|
+
function Wn(e, t) {
|
|
3671
3693
|
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3672
3694
|
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
|
3673
3695
|
}, {})) : e;
|
|
3674
3696
|
}
|
|
3675
|
-
function
|
|
3697
|
+
function Zn(e, t) {
|
|
3676
3698
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3677
|
-
return r[n] =
|
|
3699
|
+
return r[n] = Wn(e[n], t[n]), r;
|
|
3678
3700
|
}, b({}, e)) : e;
|
|
3679
3701
|
}
|
|
3680
|
-
function
|
|
3702
|
+
function we(e) {
|
|
3681
3703
|
return {
|
|
3682
3704
|
create: function() {
|
|
3683
3705
|
return {
|
|
@@ -3691,39 +3713,39 @@ function He(e) {
|
|
|
3691
3713
|
}
|
|
3692
3714
|
};
|
|
3693
3715
|
}
|
|
3694
|
-
function
|
|
3716
|
+
function Qn(e) {
|
|
3695
3717
|
return e === void 0 && (e = {
|
|
3696
3718
|
number: {},
|
|
3697
3719
|
dateTime: {},
|
|
3698
3720
|
pluralRules: {}
|
|
3699
3721
|
}), {
|
|
3700
|
-
getNumberFormat:
|
|
3722
|
+
getNumberFormat: Be(function() {
|
|
3701
3723
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3702
3724
|
r[n] = arguments[n];
|
|
3703
3725
|
return new ((t = Intl.NumberFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3704
3726
|
}, {
|
|
3705
|
-
cache:
|
|
3706
|
-
strategy:
|
|
3727
|
+
cache: we(e.number),
|
|
3728
|
+
strategy: Te.variadic
|
|
3707
3729
|
}),
|
|
3708
|
-
getDateTimeFormat:
|
|
3730
|
+
getDateTimeFormat: Be(function() {
|
|
3709
3731
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3710
3732
|
r[n] = arguments[n];
|
|
3711
3733
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3712
3734
|
}, {
|
|
3713
|
-
cache:
|
|
3714
|
-
strategy:
|
|
3735
|
+
cache: we(e.dateTime),
|
|
3736
|
+
strategy: Te.variadic
|
|
3715
3737
|
}),
|
|
3716
|
-
getPluralRules:
|
|
3738
|
+
getPluralRules: Be(function() {
|
|
3717
3739
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3718
3740
|
r[n] = arguments[n];
|
|
3719
3741
|
return new ((t = Intl.PluralRules).bind.apply(t, j([void 0], r, !1)))();
|
|
3720
3742
|
}, {
|
|
3721
|
-
cache:
|
|
3722
|
-
strategy:
|
|
3743
|
+
cache: we(e.pluralRules),
|
|
3744
|
+
strategy: Te.variadic
|
|
3723
3745
|
})
|
|
3724
3746
|
};
|
|
3725
3747
|
}
|
|
3726
|
-
var
|
|
3748
|
+
var Jn = (
|
|
3727
3749
|
/** @class */
|
|
3728
3750
|
function() {
|
|
3729
3751
|
function e(t, r, n, i) {
|
|
@@ -3753,15 +3775,15 @@ var Wn = (
|
|
|
3753
3775
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3754
3776
|
if (this.message = t, !e.__parse)
|
|
3755
3777
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3756
|
-
var
|
|
3757
|
-
|
|
3758
|
-
var
|
|
3759
|
-
this.ast = e.__parse(t, b(b({},
|
|
3778
|
+
var a = i || {};
|
|
3779
|
+
a.formatters;
|
|
3780
|
+
var s = Pr(a, ["formatters"]);
|
|
3781
|
+
this.ast = e.__parse(t, b(b({}, s), { locale: this.resolvedLocale }));
|
|
3760
3782
|
} else
|
|
3761
3783
|
this.ast = t;
|
|
3762
3784
|
if (!Array.isArray(this.ast))
|
|
3763
3785
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3764
|
-
this.formats =
|
|
3786
|
+
this.formats = Zn(e.formats, n), this.formatters = i && i.formatters || Qn(this.formatterCache);
|
|
3765
3787
|
}
|
|
3766
3788
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3767
3789
|
get: function() {
|
|
@@ -3774,7 +3796,7 @@ var Wn = (
|
|
|
3774
3796
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3775
3797
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3776
3798
|
}
|
|
3777
|
-
}, e.__parse =
|
|
3799
|
+
}, e.__parse = jn, e.formats = {
|
|
3778
3800
|
number: {
|
|
3779
3801
|
integer: {
|
|
3780
3802
|
maximumFractionDigits: 0
|
|
@@ -3835,7 +3857,7 @@ var Wn = (
|
|
|
3835
3857
|
}, e;
|
|
3836
3858
|
}()
|
|
3837
3859
|
);
|
|
3838
|
-
function
|
|
3860
|
+
function Yn(e, t) {
|
|
3839
3861
|
if (t == null)
|
|
3840
3862
|
return;
|
|
3841
3863
|
if (t in e)
|
|
@@ -3856,92 +3878,92 @@ function Zn(e, t) {
|
|
|
3856
3878
|
n = void 0;
|
|
3857
3879
|
return n;
|
|
3858
3880
|
}
|
|
3859
|
-
const C = {},
|
|
3881
|
+
const C = {}, qn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Jt = (e, t) => {
|
|
3860
3882
|
if (t == null)
|
|
3861
3883
|
return;
|
|
3862
3884
|
if (t in C && e in C[t])
|
|
3863
3885
|
return C[t][e];
|
|
3864
|
-
const r =
|
|
3886
|
+
const r = ve(t);
|
|
3865
3887
|
for (let n = 0; n < r.length; n++) {
|
|
3866
|
-
const i = r[n], o =
|
|
3888
|
+
const i = r[n], o = ei(i, e);
|
|
3867
3889
|
if (o)
|
|
3868
|
-
return
|
|
3890
|
+
return qn(e, t, o);
|
|
3869
3891
|
}
|
|
3870
3892
|
};
|
|
3871
|
-
let
|
|
3893
|
+
let Ze;
|
|
3872
3894
|
const ne = ge({});
|
|
3873
|
-
function
|
|
3874
|
-
return
|
|
3895
|
+
function Kn(e) {
|
|
3896
|
+
return Ze[e] || null;
|
|
3875
3897
|
}
|
|
3876
|
-
function
|
|
3877
|
-
return e in
|
|
3898
|
+
function Yt(e) {
|
|
3899
|
+
return e in Ze;
|
|
3878
3900
|
}
|
|
3879
|
-
function
|
|
3880
|
-
if (!
|
|
3901
|
+
function ei(e, t) {
|
|
3902
|
+
if (!Yt(e))
|
|
3881
3903
|
return null;
|
|
3882
|
-
const r =
|
|
3883
|
-
return
|
|
3904
|
+
const r = Kn(e);
|
|
3905
|
+
return Yn(r, t);
|
|
3884
3906
|
}
|
|
3885
|
-
function
|
|
3907
|
+
function ti(e) {
|
|
3886
3908
|
if (e == null)
|
|
3887
3909
|
return;
|
|
3888
|
-
const t =
|
|
3910
|
+
const t = ve(e);
|
|
3889
3911
|
for (let r = 0; r < t.length; r++) {
|
|
3890
3912
|
const n = t[r];
|
|
3891
|
-
if (
|
|
3913
|
+
if (Yt(n))
|
|
3892
3914
|
return n;
|
|
3893
3915
|
}
|
|
3894
3916
|
}
|
|
3895
|
-
function
|
|
3896
|
-
delete C[e], ne.update((r) => (r[e] =
|
|
3917
|
+
function qt(e, ...t) {
|
|
3918
|
+
delete C[e], ne.update((r) => (r[e] = sn.all([r[e] || {}, ...t]), r));
|
|
3897
3919
|
}
|
|
3898
3920
|
W(
|
|
3899
3921
|
[ne],
|
|
3900
3922
|
([e]) => Object.keys(e)
|
|
3901
3923
|
);
|
|
3902
|
-
ne.subscribe((e) =>
|
|
3924
|
+
ne.subscribe((e) => Ze = e);
|
|
3903
3925
|
const fe = {};
|
|
3904
|
-
function
|
|
3926
|
+
function ri(e, t) {
|
|
3905
3927
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3906
3928
|
}
|
|
3907
|
-
function
|
|
3929
|
+
function Kt(e) {
|
|
3908
3930
|
return fe[e];
|
|
3909
3931
|
}
|
|
3910
|
-
function
|
|
3911
|
-
return
|
|
3912
|
-
const r =
|
|
3932
|
+
function ni(e) {
|
|
3933
|
+
return ve(e).map((t) => {
|
|
3934
|
+
const r = Kt(t);
|
|
3913
3935
|
return [t, r ? [...r] : []];
|
|
3914
3936
|
}).filter(([, t]) => t.length > 0);
|
|
3915
3937
|
}
|
|
3916
|
-
function
|
|
3917
|
-
return e == null ? !1 :
|
|
3938
|
+
function je(e) {
|
|
3939
|
+
return e == null ? !1 : ve(e).some(
|
|
3918
3940
|
(t) => {
|
|
3919
3941
|
var r;
|
|
3920
|
-
return (r =
|
|
3942
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3921
3943
|
}
|
|
3922
3944
|
);
|
|
3923
3945
|
}
|
|
3924
|
-
function
|
|
3946
|
+
function ii(e, t) {
|
|
3925
3947
|
return Promise.all(
|
|
3926
|
-
t.map((n) => (
|
|
3927
|
-
).then((n) =>
|
|
3948
|
+
t.map((n) => (ri(e, n), n().then((i) => i.default || i)))
|
|
3949
|
+
).then((n) => qt(e, ...n));
|
|
3928
3950
|
}
|
|
3929
3951
|
const J = {};
|
|
3930
|
-
function
|
|
3931
|
-
if (!
|
|
3952
|
+
function er(e) {
|
|
3953
|
+
if (!je(e))
|
|
3932
3954
|
return e in J ? J[e] : Promise.resolve();
|
|
3933
|
-
const t =
|
|
3955
|
+
const t = ni(e);
|
|
3934
3956
|
return J[e] = Promise.all(
|
|
3935
3957
|
t.map(
|
|
3936
|
-
([r, n]) =>
|
|
3958
|
+
([r, n]) => ii(r, n)
|
|
3937
3959
|
)
|
|
3938
3960
|
).then(() => {
|
|
3939
|
-
if (
|
|
3940
|
-
return
|
|
3961
|
+
if (je(e))
|
|
3962
|
+
return er(e);
|
|
3941
3963
|
delete J[e];
|
|
3942
3964
|
}), J[e];
|
|
3943
3965
|
}
|
|
3944
|
-
const
|
|
3966
|
+
const oi = {
|
|
3945
3967
|
number: {
|
|
3946
3968
|
scientific: { notation: "scientific" },
|
|
3947
3969
|
engineering: { notation: "engineering" },
|
|
@@ -3970,100 +3992,100 @@ const ri = {
|
|
|
3970
3992
|
timeZoneName: "short"
|
|
3971
3993
|
}
|
|
3972
3994
|
}
|
|
3973
|
-
},
|
|
3995
|
+
}, si = {
|
|
3974
3996
|
fallbackLocale: null,
|
|
3975
3997
|
loadingDelay: 200,
|
|
3976
|
-
formats:
|
|
3998
|
+
formats: oi,
|
|
3977
3999
|
warnOnMissingMessages: !0,
|
|
3978
4000
|
handleMissingMessage: void 0,
|
|
3979
4001
|
ignoreTag: !0
|
|
3980
|
-
},
|
|
3981
|
-
function
|
|
3982
|
-
return
|
|
4002
|
+
}, ai = si;
|
|
4003
|
+
function X() {
|
|
4004
|
+
return ai;
|
|
3983
4005
|
}
|
|
3984
|
-
const
|
|
3985
|
-
var
|
|
4006
|
+
const Pe = ge(!1);
|
|
4007
|
+
var ui = Object.defineProperty, hi = Object.defineProperties, li = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, fi = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pi = (e, t) => {
|
|
3986
4008
|
for (var r in t || (t = {}))
|
|
3987
|
-
|
|
3988
|
-
if (
|
|
3989
|
-
for (var r of
|
|
3990
|
-
|
|
4009
|
+
ci.call(t, r) && bt(e, r, t[r]);
|
|
4010
|
+
if (dt)
|
|
4011
|
+
for (var r of dt(t))
|
|
4012
|
+
fi.call(t, r) && bt(e, r, t[r]);
|
|
3991
4013
|
return e;
|
|
3992
|
-
},
|
|
3993
|
-
let
|
|
4014
|
+
}, mi = (e, t) => hi(e, li(t));
|
|
4015
|
+
let ke;
|
|
3994
4016
|
const me = ge(null);
|
|
3995
|
-
function
|
|
4017
|
+
function gt(e) {
|
|
3996
4018
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3997
4019
|
}
|
|
3998
|
-
function
|
|
3999
|
-
const r =
|
|
4000
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4020
|
+
function ve(e, t = X().fallbackLocale) {
|
|
4021
|
+
const r = gt(e);
|
|
4022
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
4001
4023
|
}
|
|
4002
4024
|
function M() {
|
|
4003
|
-
return
|
|
4025
|
+
return ke ?? void 0;
|
|
4004
4026
|
}
|
|
4005
4027
|
me.subscribe((e) => {
|
|
4006
|
-
|
|
4028
|
+
ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4007
4029
|
});
|
|
4008
|
-
const
|
|
4009
|
-
if (e &&
|
|
4010
|
-
const { loadingDelay: t } =
|
|
4030
|
+
const di = (e) => {
|
|
4031
|
+
if (e && ti(e) && je(e)) {
|
|
4032
|
+
const { loadingDelay: t } = X();
|
|
4011
4033
|
let r;
|
|
4012
4034
|
return typeof window < "u" && M() != null && t ? r = window.setTimeout(
|
|
4013
|
-
() =>
|
|
4035
|
+
() => Pe.set(!0),
|
|
4014
4036
|
t
|
|
4015
|
-
) :
|
|
4037
|
+
) : Pe.set(!0), er(e).then(() => {
|
|
4016
4038
|
me.set(e);
|
|
4017
4039
|
}).finally(() => {
|
|
4018
|
-
clearTimeout(r),
|
|
4040
|
+
clearTimeout(r), Pe.set(!1);
|
|
4019
4041
|
});
|
|
4020
4042
|
}
|
|
4021
4043
|
return me.set(e);
|
|
4022
|
-
}, Z =
|
|
4023
|
-
set:
|
|
4024
|
-
}),
|
|
4044
|
+
}, Z = mi(pi({}, me), {
|
|
4045
|
+
set: di
|
|
4046
|
+
}), Ee = (e) => {
|
|
4025
4047
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4026
4048
|
return (n) => {
|
|
4027
4049
|
const i = JSON.stringify(n);
|
|
4028
4050
|
return i in t ? t[i] : t[i] = e(n);
|
|
4029
4051
|
};
|
|
4030
4052
|
};
|
|
4031
|
-
var
|
|
4053
|
+
var bi = Object.defineProperty, de = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
4032
4054
|
for (var r in t || (t = {}))
|
|
4033
|
-
|
|
4055
|
+
tr.call(t, r) && yt(e, r, t[r]);
|
|
4034
4056
|
if (de)
|
|
4035
4057
|
for (var r of de(t))
|
|
4036
|
-
|
|
4058
|
+
rr.call(t, r) && yt(e, r, t[r]);
|
|
4037
4059
|
return e;
|
|
4038
4060
|
}, Q = (e, t) => {
|
|
4039
4061
|
var r = {};
|
|
4040
4062
|
for (var n in e)
|
|
4041
|
-
|
|
4063
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4042
4064
|
if (e != null && de)
|
|
4043
4065
|
for (var n of de(e))
|
|
4044
|
-
t.indexOf(n) < 0 &&
|
|
4066
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
4045
4067
|
return r;
|
|
4046
4068
|
};
|
|
4047
4069
|
const te = (e, t) => {
|
|
4048
|
-
const { formats: r } =
|
|
4070
|
+
const { formats: r } = X();
|
|
4049
4071
|
if (e in r && t in r[e])
|
|
4050
4072
|
return r[e][t];
|
|
4051
4073
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4052
|
-
},
|
|
4074
|
+
}, gi = Ee(
|
|
4053
4075
|
(e) => {
|
|
4054
4076
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4055
4077
|
if (r == null)
|
|
4056
4078
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4057
4079
|
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
4058
4080
|
}
|
|
4059
|
-
),
|
|
4081
|
+
), yi = Ee(
|
|
4060
4082
|
(e) => {
|
|
4061
4083
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4062
4084
|
if (r == null)
|
|
4063
4085
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4064
4086
|
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4065
4087
|
}
|
|
4066
|
-
),
|
|
4088
|
+
), vi = Ee(
|
|
4067
4089
|
(e) => {
|
|
4068
4090
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4069
4091
|
if (r == null)
|
|
@@ -4072,57 +4094,57 @@ const te = (e, t) => {
|
|
|
4072
4094
|
);
|
|
4073
4095
|
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4074
4096
|
}
|
|
4075
|
-
),
|
|
4097
|
+
), Ei = (e = {}) => {
|
|
4076
4098
|
var t = e, {
|
|
4077
4099
|
locale: r = M()
|
|
4078
4100
|
} = t, n = Q(t, [
|
|
4079
4101
|
"locale"
|
|
4080
4102
|
]);
|
|
4081
|
-
return
|
|
4082
|
-
},
|
|
4103
|
+
return gi(Qe({ locale: r }, n));
|
|
4104
|
+
}, xi = (e = {}) => {
|
|
4083
4105
|
var t = e, {
|
|
4084
4106
|
locale: r = M()
|
|
4085
4107
|
} = t, n = Q(t, [
|
|
4086
4108
|
"locale"
|
|
4087
4109
|
]);
|
|
4088
|
-
return
|
|
4089
|
-
},
|
|
4110
|
+
return yi(Qe({ locale: r }, n));
|
|
4111
|
+
}, _i = (e = {}) => {
|
|
4090
4112
|
var t = e, {
|
|
4091
4113
|
locale: r = M()
|
|
4092
4114
|
} = t, n = Q(t, [
|
|
4093
4115
|
"locale"
|
|
4094
4116
|
]);
|
|
4095
|
-
return
|
|
4096
|
-
},
|
|
4117
|
+
return vi(Qe({ locale: r }, n));
|
|
4118
|
+
}, Si = Ee(
|
|
4097
4119
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4098
|
-
(e, t = M()) => new
|
|
4099
|
-
ignoreTag:
|
|
4120
|
+
(e, t = M()) => new Jn(e, t, X().formats, {
|
|
4121
|
+
ignoreTag: X().ignoreTag
|
|
4100
4122
|
})
|
|
4101
|
-
),
|
|
4123
|
+
), Bi = (e, t = {}) => {
|
|
4102
4124
|
var r, n, i, o;
|
|
4103
|
-
let
|
|
4104
|
-
typeof e == "object" && (
|
|
4125
|
+
let a = t;
|
|
4126
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
4105
4127
|
const {
|
|
4106
|
-
values:
|
|
4128
|
+
values: s,
|
|
4107
4129
|
locale: h = M(),
|
|
4108
4130
|
default: u
|
|
4109
|
-
} =
|
|
4131
|
+
} = a;
|
|
4110
4132
|
if (h == null)
|
|
4111
4133
|
throw new Error(
|
|
4112
4134
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4113
4135
|
);
|
|
4114
|
-
let l =
|
|
4136
|
+
let l = Jt(e, h);
|
|
4115
4137
|
if (!l)
|
|
4116
|
-
l = (o = (i = (n = (r =
|
|
4138
|
+
l = (o = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4117
4139
|
else if (typeof l != "string")
|
|
4118
4140
|
return console.warn(
|
|
4119
4141
|
`[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.`
|
|
4120
4142
|
), l;
|
|
4121
|
-
if (!
|
|
4143
|
+
if (!s)
|
|
4122
4144
|
return l;
|
|
4123
4145
|
let c = l;
|
|
4124
4146
|
try {
|
|
4125
|
-
c =
|
|
4147
|
+
c = Si(l, h).format(s);
|
|
4126
4148
|
} catch (f) {
|
|
4127
4149
|
f instanceof Error && console.warn(
|
|
4128
4150
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4130,20 +4152,20 @@ const te = (e, t) => {
|
|
|
4130
4152
|
);
|
|
4131
4153
|
}
|
|
4132
4154
|
return c;
|
|
4133
|
-
},
|
|
4134
|
-
W([Z], () =>
|
|
4135
|
-
W([Z], () =>
|
|
4136
|
-
W([Z], () =>
|
|
4137
|
-
W([Z, ne], () =>
|
|
4138
|
-
window.emWidgets = { topic:
|
|
4155
|
+
}, Ti = (e, t) => _i(t).format(e), Hi = (e, t) => xi(t).format(e), wi = (e, t) => Ei(t).format(e), Pi = (e, t = M()) => Jt(e, t), Ai = W([Z, ne], () => Bi);
|
|
4156
|
+
W([Z], () => Ti);
|
|
4157
|
+
W([Z], () => Hi);
|
|
4158
|
+
W([Z], () => wi);
|
|
4159
|
+
W([Z, ne], () => Pi);
|
|
4160
|
+
window.emWidgets = { topic: jr };
|
|
4139
4161
|
const ae = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4140
|
-
function
|
|
4141
|
-
|
|
4162
|
+
function vt(e, t) {
|
|
4163
|
+
qt(e, t);
|
|
4142
4164
|
}
|
|
4143
|
-
function
|
|
4165
|
+
function Oi(e) {
|
|
4144
4166
|
Z.set(e);
|
|
4145
4167
|
}
|
|
4146
|
-
const
|
|
4168
|
+
const Et = {
|
|
4147
4169
|
en: {
|
|
4148
4170
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4149
4171
|
},
|
|
@@ -4184,95 +4206,95 @@ const gt = {
|
|
|
4184
4206
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4185
4207
|
}
|
|
4186
4208
|
};
|
|
4187
|
-
function
|
|
4188
|
-
|
|
4209
|
+
function Ii(e) {
|
|
4210
|
+
sr(e, "svelte-1v7b25v", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
|
|
4189
4211
|
}
|
|
4190
|
-
function
|
|
4212
|
+
function Ci(e) {
|
|
4191
4213
|
let t, r, n, i = (
|
|
4192
4214
|
/*customtext*/
|
|
4193
4215
|
(e[0] || /*$_*/
|
|
4194
4216
|
e[5]("panicButtonString")) + ""
|
|
4195
|
-
), o,
|
|
4217
|
+
), o, a;
|
|
4196
4218
|
return {
|
|
4197
4219
|
c() {
|
|
4198
|
-
t = Y("div"), r = Y("div"), n = Y("button"), o =
|
|
4220
|
+
t = Y("div"), r = Y("div"), n = Y("button"), o = hr(i), N(n, "class", "PanicButton " + (ae(
|
|
4199
4221
|
/*userAgent*/
|
|
4200
4222
|
e[6]
|
|
4201
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4223
|
+
) !== "PC" ? "PanicButtonMobile" : "")), N(n, "part", "PanicButton " + (ae(
|
|
4202
4224
|
/*userAgent*/
|
|
4203
4225
|
e[6]
|
|
4204
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4226
|
+
) !== "PC" ? "PanicButtonMobile" : "")), Ye(
|
|
4205
4227
|
n,
|
|
4206
4228
|
"PanicButtonAnimation",
|
|
4207
4229
|
/*panicLoading*/
|
|
4208
4230
|
e[4]
|
|
4209
|
-
),
|
|
4231
|
+
), N(r, "class", "PanicSection " + (ae(
|
|
4210
4232
|
/*userAgent*/
|
|
4211
4233
|
e[6]
|
|
4212
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4234
|
+
) !== "PC" ? "PanicSectionMobile" : "")), N(r, "part", "PanicSection " + (ae(
|
|
4213
4235
|
/*userAgent*/
|
|
4214
4236
|
e[6]
|
|
4215
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4237
|
+
) !== "PC" ? "PanicSectionMobile" : "")), N(t, "class", a = /*alternativestyling*/
|
|
4216
4238
|
e[1] == "true" ? "PanicButtonV2" : "");
|
|
4217
4239
|
},
|
|
4218
|
-
m(
|
|
4219
|
-
|
|
4240
|
+
m(s, h) {
|
|
4241
|
+
Bt(s, t, h), ue(t, r), ue(r, n), ue(n, o), e[11](n), e[12](t);
|
|
4220
4242
|
},
|
|
4221
|
-
p(
|
|
4243
|
+
p(s, [h]) {
|
|
4222
4244
|
h & /*customtext, $_*/
|
|
4223
4245
|
33 && i !== (i = /*customtext*/
|
|
4224
|
-
(
|
|
4225
|
-
|
|
4226
|
-
16 &&
|
|
4246
|
+
(s[0] || /*$_*/
|
|
4247
|
+
s[5]("panicButtonString")) + "") && cr(o, i), h & /*panicLoading*/
|
|
4248
|
+
16 && Ye(
|
|
4227
4249
|
n,
|
|
4228
4250
|
"PanicButtonAnimation",
|
|
4229
4251
|
/*panicLoading*/
|
|
4230
|
-
|
|
4252
|
+
s[4]
|
|
4231
4253
|
), h & /*alternativestyling*/
|
|
4232
|
-
2 &&
|
|
4233
|
-
|
|
4254
|
+
2 && a !== (a = /*alternativestyling*/
|
|
4255
|
+
s[1] == "true" ? "PanicButtonV2" : "") && N(t, "class", a);
|
|
4234
4256
|
},
|
|
4235
4257
|
i: B,
|
|
4236
4258
|
o: B,
|
|
4237
|
-
d(
|
|
4238
|
-
|
|
4259
|
+
d(s) {
|
|
4260
|
+
s && ze(t), e[11](null), e[12](null);
|
|
4239
4261
|
}
|
|
4240
4262
|
};
|
|
4241
4263
|
}
|
|
4242
|
-
function
|
|
4264
|
+
function Li(e, t, r) {
|
|
4243
4265
|
let n;
|
|
4244
|
-
|
|
4245
|
-
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling:
|
|
4266
|
+
or(e, Ai, (g) => r(5, n = g));
|
|
4267
|
+
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { alternativestyling: h = "" } = t, { translationurl: u = "" } = t, l, c, f = !1, d = 0, v, y = window.navigator.userAgent;
|
|
4246
4268
|
const S = () => {
|
|
4247
4269
|
fetch(u).then((w) => w.json()).then((w) => {
|
|
4248
4270
|
Object.keys(w).forEach((R) => {
|
|
4249
|
-
|
|
4271
|
+
vt(R, w[R]);
|
|
4250
4272
|
});
|
|
4251
4273
|
}).catch((w) => {
|
|
4252
4274
|
console.log(w);
|
|
4253
4275
|
});
|
|
4254
4276
|
};
|
|
4255
|
-
Object.keys(
|
|
4256
|
-
|
|
4277
|
+
Object.keys(Et).forEach((g) => {
|
|
4278
|
+
vt(g, Et[g]);
|
|
4257
4279
|
});
|
|
4258
|
-
const
|
|
4259
|
-
l?.addEventListener("mousedown",
|
|
4280
|
+
const L = () => {
|
|
4281
|
+
l?.addEventListener("mousedown", x, !1), l?.addEventListener("touchstart", x, !1), l?.addEventListener("mouseup", T, !1), l?.addEventListener("touchend", T, !1);
|
|
4260
4282
|
}, O = () => {
|
|
4261
|
-
r(4, f = !1), l?.removeEventListener("mousedown",
|
|
4262
|
-
},
|
|
4263
|
-
d = 0, r(4, f = !0),
|
|
4283
|
+
r(4, f = !1), l?.removeEventListener("mousedown", x), l?.removeEventListener("touchstart", x), l?.removeEventListener("mouseup", T), l?.removeEventListener("touchend", T);
|
|
4284
|
+
}, x = () => {
|
|
4285
|
+
d = 0, r(4, f = !0), v = setInterval(
|
|
4264
4286
|
() => {
|
|
4265
|
-
d++, d >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(
|
|
4287
|
+
d++, d >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(v), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
|
|
4266
4288
|
},
|
|
4267
4289
|
1e3
|
|
4268
4290
|
);
|
|
4269
4291
|
}, T = () => {
|
|
4270
|
-
r(4, f = !1), clearInterval(
|
|
4292
|
+
r(4, f = !1), clearInterval(v);
|
|
4271
4293
|
}, H = () => {
|
|
4272
4294
|
let g = document.createElement("style");
|
|
4273
|
-
g.innerHTML =
|
|
4295
|
+
g.innerHTML = a, c.appendChild(g);
|
|
4274
4296
|
}, $ = () => {
|
|
4275
|
-
let g = new URL(
|
|
4297
|
+
let g = new URL(s), w = document.createElement("style");
|
|
4276
4298
|
fetch(g.href).then((R) => R.text()).then((R) => {
|
|
4277
4299
|
w.innerHTML = R, setTimeout(
|
|
4278
4300
|
() => {
|
|
@@ -4282,7 +4304,7 @@ function Oi(e, t, r) {
|
|
|
4282
4304
|
);
|
|
4283
4305
|
});
|
|
4284
4306
|
};
|
|
4285
|
-
|
|
4307
|
+
mr(() => () => {
|
|
4286
4308
|
O();
|
|
4287
4309
|
});
|
|
4288
4310
|
function ie(g) {
|
|
@@ -4290,19 +4312,19 @@ function Oi(e, t, r) {
|
|
|
4290
4312
|
l = g, r(2, l);
|
|
4291
4313
|
});
|
|
4292
4314
|
}
|
|
4293
|
-
function
|
|
4315
|
+
function nr(g) {
|
|
4294
4316
|
pe[g ? "unshift" : "push"](() => {
|
|
4295
4317
|
c = g, r(3, c);
|
|
4296
4318
|
});
|
|
4297
4319
|
}
|
|
4298
4320
|
return e.$$set = (g) => {
|
|
4299
|
-
"lang" in g && r(7, i = g.lang), "customtext" in g && r(0, o = g.customtext), "clientstyling" in g && r(8,
|
|
4321
|
+
"lang" in g && r(7, i = g.lang), "customtext" in g && r(0, o = g.customtext), "clientstyling" in g && r(8, a = g.clientstyling), "clientstylingurl" in g && r(9, s = g.clientstylingurl), "alternativestyling" in g && r(1, h = g.alternativestyling), "translationurl" in g && r(10, u = g.translationurl);
|
|
4300
4322
|
}, e.$$.update = () => {
|
|
4301
4323
|
e.$$.dirty & /*panicButton*/
|
|
4302
|
-
4 && l &&
|
|
4303
|
-
128 && i &&
|
|
4304
|
-
264 &&
|
|
4305
|
-
520 &&
|
|
4324
|
+
4 && l && L(), e.$$.dirty & /*lang*/
|
|
4325
|
+
128 && i && Oi(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4326
|
+
264 && a && c && H(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4327
|
+
520 && s && c && $(), e.$$.dirty & /*translationurl*/
|
|
4306
4328
|
1024 && u && S();
|
|
4307
4329
|
}, [
|
|
4308
4330
|
o,
|
|
@@ -4311,23 +4333,23 @@ function Oi(e, t, r) {
|
|
|
4311
4333
|
c,
|
|
4312
4334
|
f,
|
|
4313
4335
|
n,
|
|
4314
|
-
|
|
4336
|
+
y,
|
|
4315
4337
|
i,
|
|
4316
|
-
s,
|
|
4317
4338
|
a,
|
|
4339
|
+
s,
|
|
4318
4340
|
u,
|
|
4319
4341
|
ie,
|
|
4320
|
-
|
|
4342
|
+
nr
|
|
4321
4343
|
];
|
|
4322
4344
|
}
|
|
4323
|
-
class
|
|
4345
|
+
class Ni extends Hr {
|
|
4324
4346
|
constructor(t) {
|
|
4325
|
-
super(),
|
|
4347
|
+
super(), Br(
|
|
4326
4348
|
this,
|
|
4327
4349
|
t,
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4350
|
+
Li,
|
|
4351
|
+
Ci,
|
|
4352
|
+
_t,
|
|
4331
4353
|
{
|
|
4332
4354
|
lang: 7,
|
|
4333
4355
|
customtext: 0,
|
|
@@ -4336,7 +4358,7 @@ class Ii extends _r {
|
|
|
4336
4358
|
alternativestyling: 1,
|
|
4337
4359
|
translationurl: 10
|
|
4338
4360
|
},
|
|
4339
|
-
|
|
4361
|
+
Ii
|
|
4340
4362
|
);
|
|
4341
4363
|
}
|
|
4342
4364
|
get lang() {
|
|
@@ -4376,7 +4398,7 @@ class Ii extends _r {
|
|
|
4376
4398
|
this.$$set({ translationurl: t }), I();
|
|
4377
4399
|
}
|
|
4378
4400
|
}
|
|
4379
|
-
|
|
4401
|
+
Tr(Ni, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
|
|
4380
4402
|
export {
|
|
4381
|
-
|
|
4403
|
+
Ni as P
|
|
4382
4404
|
};
|