@everymatrix/player-panic-button 1.77.20 → 1.77.22
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-B3N7_pDz.cjs +18 -0
- package/components/{PlayerPanicButton-CNHW6vZT.js → PlayerPanicButton-BRhdV4bT.js} +748 -705
- package/components/{PlayerPanicButton-r9XBzkYL.js → PlayerPanicButton-Z0b_0GW0.js} +761 -718
- 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-DrsDsf2b.cjs +0 -18
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
function
|
|
1
|
+
function w() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function St(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function qe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ee(e) {
|
|
10
|
+
e.forEach(St);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function We(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Bt(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 wt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return w;
|
|
26
26
|
}
|
|
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(wt(t, r));
|
|
32
32
|
}
|
|
33
33
|
function ae(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
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = Q("style");
|
|
40
|
+
i.id = t, i.textContent = r, ur(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ar(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,39 +50,39 @@ function rr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function ur(e, t) {
|
|
54
54
|
return ae(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Tt(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Ze(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Q(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function hr(e) {
|
|
70
70
|
return document.createTextNode(e);
|
|
71
71
|
}
|
|
72
72
|
function L(e, t, r) {
|
|
73
73
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function lr(e) {
|
|
76
76
|
return Array.from(e.childNodes);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function cr(e, t) {
|
|
79
79
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
80
80
|
t);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Ke(e, t, r) {
|
|
83
83
|
e.classList.toggle(t, !!r);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function fr(e) {
|
|
86
86
|
const t = {};
|
|
87
87
|
return e.childNodes.forEach(
|
|
88
88
|
/** @param {Element} node */
|
|
@@ -91,95 +91,95 @@ function ar(e) {
|
|
|
91
91
|
}
|
|
92
92
|
), t;
|
|
93
93
|
}
|
|
94
|
-
let
|
|
95
|
-
function
|
|
96
|
-
|
|
94
|
+
let Y;
|
|
95
|
+
function J(e) {
|
|
96
|
+
Y = e;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
if (!
|
|
98
|
+
function pr() {
|
|
99
|
+
if (!Y)
|
|
100
100
|
throw new Error("Function called outside component initialization");
|
|
101
|
-
return
|
|
101
|
+
return Y;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
103
|
+
function mr(e) {
|
|
104
|
+
pr().$$.on_mount.push(e);
|
|
105
105
|
}
|
|
106
106
|
const D = [], fe = [];
|
|
107
107
|
let G = [];
|
|
108
|
-
const
|
|
109
|
-
let
|
|
110
|
-
function
|
|
111
|
-
|
|
108
|
+
const et = [], dr = /* @__PURE__ */ Promise.resolve();
|
|
109
|
+
let Oe = !1;
|
|
110
|
+
function br() {
|
|
111
|
+
Oe || (Oe = !0, dr.then(P));
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ie(e) {
|
|
114
114
|
G.push(e);
|
|
115
115
|
}
|
|
116
|
-
const
|
|
116
|
+
const xe = /* @__PURE__ */ new Set();
|
|
117
117
|
let R = 0;
|
|
118
|
-
function
|
|
118
|
+
function P() {
|
|
119
119
|
if (R !== 0)
|
|
120
120
|
return;
|
|
121
|
-
const e =
|
|
121
|
+
const e = Y;
|
|
122
122
|
do {
|
|
123
123
|
try {
|
|
124
124
|
for (; R < D.length; ) {
|
|
125
125
|
const t = D[R];
|
|
126
|
-
R++,
|
|
126
|
+
R++, J(t), gr(t.$$);
|
|
127
127
|
}
|
|
128
128
|
} catch (t) {
|
|
129
129
|
throw D.length = 0, R = 0, t;
|
|
130
130
|
}
|
|
131
|
-
for (
|
|
131
|
+
for (J(null), D.length = 0, R = 0; fe.length; )
|
|
132
132
|
fe.pop()();
|
|
133
133
|
for (let t = 0; t < G.length; t += 1) {
|
|
134
134
|
const r = G[t];
|
|
135
|
-
|
|
135
|
+
xe.has(r) || (xe.add(r), r());
|
|
136
136
|
}
|
|
137
137
|
G.length = 0;
|
|
138
138
|
} while (D.length);
|
|
139
|
-
for (;
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
for (; et.length; )
|
|
140
|
+
et.pop()();
|
|
141
|
+
Oe = !1, xe.clear(), J(e);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function gr(e) {
|
|
144
144
|
if (e.fragment !== null) {
|
|
145
|
-
e.update(),
|
|
145
|
+
e.update(), ee(e.before_update);
|
|
146
146
|
const t = e.dirty;
|
|
147
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
147
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function yr(e) {
|
|
151
151
|
const t = [], r = [];
|
|
152
152
|
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
function
|
|
156
|
-
e && e.i && (
|
|
154
|
+
const vr = /* @__PURE__ */ new Set();
|
|
155
|
+
function Er(e, t) {
|
|
156
|
+
e && e.i && (vr.delete(e), e.i(t));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function _r(e, t, r) {
|
|
159
159
|
const { fragment: n, after_update: i } = e.$$;
|
|
160
|
-
n && n.m(t, r),
|
|
161
|
-
const o = e.$$.on_mount.map(
|
|
162
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
163
|
-
}), i.forEach(
|
|
160
|
+
n && n.m(t, r), Ie(() => {
|
|
161
|
+
const o = e.$$.on_mount.map(St).filter(We);
|
|
162
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ee(o), e.$$.on_mount = [];
|
|
163
|
+
}), i.forEach(Ie);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function xr(e, t) {
|
|
166
166
|
const r = e.$$;
|
|
167
|
-
r.fragment !== null && (
|
|
167
|
+
r.fragment !== null && (yr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
e.$$.dirty[0] === -1 && (D.push(e),
|
|
169
|
+
function Sr(e, t) {
|
|
170
|
+
e.$$.dirty[0] === -1 && (D.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
const u =
|
|
174
|
-
|
|
172
|
+
function Br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
173
|
+
const u = Y;
|
|
174
|
+
J(e);
|
|
175
175
|
const h = e.$$ = {
|
|
176
176
|
fragment: null,
|
|
177
177
|
ctx: [],
|
|
178
178
|
// state
|
|
179
179
|
props: o,
|
|
180
|
-
update:
|
|
180
|
+
update: w,
|
|
181
181
|
not_equal: i,
|
|
182
|
-
bound:
|
|
182
|
+
bound: qe(),
|
|
183
183
|
// lifecycle
|
|
184
184
|
on_mount: [],
|
|
185
185
|
on_destroy: [],
|
|
@@ -188,7 +188,7 @@ function vr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
188
188
|
after_update: [],
|
|
189
189
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
190
190
|
// everything else
|
|
191
|
-
callbacks:
|
|
191
|
+
callbacks: qe(),
|
|
192
192
|
dirty: a,
|
|
193
193
|
skip_bound: !1,
|
|
194
194
|
root: t.target || u.$$.root
|
|
@@ -196,20 +196,20 @@ function vr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
196
196
|
s && s(h.root);
|
|
197
197
|
let l = !1;
|
|
198
198
|
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
199
|
-
const
|
|
200
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] =
|
|
201
|
-
}) : [], h.update(), l = !0,
|
|
199
|
+
const g = m.length ? m[0] : f;
|
|
200
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l && Sr(e, c)), f;
|
|
201
|
+
}) : [], h.update(), l = !0, ee(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
202
202
|
if (t.hydrate) {
|
|
203
|
-
const c =
|
|
204
|
-
h.fragment && h.fragment.l(c), c.forEach(
|
|
203
|
+
const c = lr(t.target);
|
|
204
|
+
h.fragment && h.fragment.l(c), c.forEach(Ze);
|
|
205
205
|
} else
|
|
206
206
|
h.fragment && h.fragment.c();
|
|
207
|
-
t.intro &&
|
|
207
|
+
t.intro && Er(e.$$.fragment), _r(e, t.target, t.anchor), P();
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
J(u);
|
|
210
210
|
}
|
|
211
|
-
let
|
|
212
|
-
typeof HTMLElement == "function" && (
|
|
211
|
+
let Ht;
|
|
212
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
213
213
|
/** The Svelte component constructor */
|
|
214
214
|
$$ctor;
|
|
215
215
|
/** Slots */
|
|
@@ -251,24 +251,24 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
251
251
|
let o;
|
|
252
252
|
return {
|
|
253
253
|
c: function() {
|
|
254
|
-
o =
|
|
254
|
+
o = Q("slot"), i !== "default" && L(o, "name", i);
|
|
255
255
|
},
|
|
256
256
|
/**
|
|
257
257
|
* @param {HTMLElement} target
|
|
258
258
|
* @param {HTMLElement} [anchor]
|
|
259
259
|
*/
|
|
260
260
|
m: function(u, h) {
|
|
261
|
-
|
|
261
|
+
Tt(u, o, h);
|
|
262
262
|
},
|
|
263
263
|
d: function(u) {
|
|
264
|
-
u &&
|
|
264
|
+
u && Ze(o);
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
268
|
};
|
|
269
269
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
270
270
|
return;
|
|
271
|
-
const t = {}, r =
|
|
271
|
+
const t = {}, r = fr(this);
|
|
272
272
|
for (const i of this.$$s)
|
|
273
273
|
i in r && (t[i] = [e(i)]);
|
|
274
274
|
for (const i of this.attributes) {
|
|
@@ -355,8 +355,8 @@ function ue(e, t, r, n) {
|
|
|
355
355
|
return t;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
let s = class extends
|
|
358
|
+
function wr(e, t, r, n, i, o) {
|
|
359
|
+
let s = class extends Ht {
|
|
360
360
|
constructor() {
|
|
361
361
|
super(e, r, i), this.$$p_d = t;
|
|
362
362
|
}
|
|
@@ -384,7 +384,7 @@ function Er(e, t, r, n, i, o) {
|
|
|
384
384
|
}), e.element = /** @type {any} */
|
|
385
385
|
s, s;
|
|
386
386
|
}
|
|
387
|
-
class
|
|
387
|
+
class Tr {
|
|
388
388
|
/**
|
|
389
389
|
* ### PRIVATE API
|
|
390
390
|
*
|
|
@@ -403,7 +403,7 @@ class xr {
|
|
|
403
403
|
$$set = void 0;
|
|
404
404
|
/** @returns {void} */
|
|
405
405
|
$destroy() {
|
|
406
|
-
|
|
406
|
+
xr(this, 1), this.$destroy = w;
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
409
409
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -412,8 +412,8 @@ class xr {
|
|
|
412
412
|
* @returns {() => void}
|
|
413
413
|
*/
|
|
414
414
|
$on(t, r) {
|
|
415
|
-
if (!
|
|
416
|
-
return
|
|
415
|
+
if (!We(r))
|
|
416
|
+
return w;
|
|
417
417
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
418
418
|
return n.push(r), () => {
|
|
419
419
|
const i = n.indexOf(r);
|
|
@@ -425,18 +425,18 @@ class xr {
|
|
|
425
425
|
* @returns {void}
|
|
426
426
|
*/
|
|
427
427
|
$set(t) {
|
|
428
|
-
this.$$set && !
|
|
428
|
+
this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
const
|
|
432
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
433
|
-
function
|
|
431
|
+
const Hr = "4";
|
|
432
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
|
|
433
|
+
function Pr(e, t) {
|
|
434
434
|
if (e) {
|
|
435
435
|
const r = document.createElement("style");
|
|
436
436
|
r.innerHTML = t, e.appendChild(r);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Ar(e, t) {
|
|
440
440
|
const r = new URL(t);
|
|
441
441
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
442
442
|
const i = document.createElement("style");
|
|
@@ -445,7 +445,7 @@ function Br(e, t) {
|
|
|
445
445
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Or(e, t, r) {
|
|
449
449
|
if (window.emMessageBus) {
|
|
450
450
|
const n = document.createElement("style");
|
|
451
451
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -467,43 +467,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
467
467
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
468
468
|
PERFORMANCE OF THIS SOFTWARE.
|
|
469
469
|
***************************************************************************** */
|
|
470
|
-
var
|
|
471
|
-
return
|
|
470
|
+
var Ne = function(e, t) {
|
|
471
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
472
472
|
r.__proto__ = n;
|
|
473
473
|
} || function(r, n) {
|
|
474
474
|
for (var i in n)
|
|
475
475
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
476
|
-
},
|
|
476
|
+
}, Ne(e, t);
|
|
477
477
|
};
|
|
478
|
-
function
|
|
478
|
+
function te(e, t) {
|
|
479
479
|
if (typeof t != "function" && t !== null)
|
|
480
480
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
481
|
-
|
|
481
|
+
Ne(e, t);
|
|
482
482
|
function r() {
|
|
483
483
|
this.constructor = e;
|
|
484
484
|
}
|
|
485
485
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
486
486
|
}
|
|
487
|
-
|
|
488
|
-
return b = Object.assign || function(t) {
|
|
489
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
490
|
-
r = arguments[n];
|
|
491
|
-
for (var o in r)
|
|
492
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
493
|
-
}
|
|
494
|
-
return t;
|
|
495
|
-
}, b.apply(this, arguments);
|
|
496
|
-
};
|
|
497
|
-
function wr(e, t) {
|
|
498
|
-
var r = {};
|
|
499
|
-
for (var n in e)
|
|
500
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
501
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
502
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
503
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
504
|
-
return r;
|
|
505
|
-
}
|
|
506
|
-
function Oe(e) {
|
|
487
|
+
function Le(e) {
|
|
507
488
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
508
489
|
if (r)
|
|
509
490
|
return r.call(e);
|
|
@@ -515,7 +496,7 @@ function Oe(e) {
|
|
|
515
496
|
};
|
|
516
497
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
517
498
|
}
|
|
518
|
-
function
|
|
499
|
+
function Ce(e, t) {
|
|
519
500
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
520
501
|
if (!r)
|
|
521
502
|
return e;
|
|
@@ -535,22 +516,22 @@ function Ie(e, t) {
|
|
|
535
516
|
}
|
|
536
517
|
return o;
|
|
537
518
|
}
|
|
538
|
-
function
|
|
539
|
-
if (
|
|
519
|
+
function Me(e, t, r) {
|
|
520
|
+
if (arguments.length === 2)
|
|
540
521
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
541
522
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
542
523
|
return e.concat(o || t);
|
|
543
524
|
}
|
|
544
|
-
function
|
|
525
|
+
function A(e) {
|
|
545
526
|
return typeof e == "function";
|
|
546
527
|
}
|
|
547
|
-
function
|
|
528
|
+
function Pt(e) {
|
|
548
529
|
var t = function(n) {
|
|
549
530
|
Error.call(n), n.stack = new Error().stack;
|
|
550
531
|
}, r = e(t);
|
|
551
532
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
552
533
|
}
|
|
553
|
-
var
|
|
534
|
+
var Se = Pt(function(e) {
|
|
554
535
|
return function(r) {
|
|
555
536
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
556
537
|
` + r.map(function(n, i) {
|
|
@@ -559,13 +540,13 @@ var xe = St(function(e) {
|
|
|
559
540
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
560
541
|
};
|
|
561
542
|
});
|
|
562
|
-
function
|
|
543
|
+
function $e(e, t) {
|
|
563
544
|
if (e) {
|
|
564
545
|
var r = e.indexOf(t);
|
|
565
546
|
0 <= r && e.splice(r, 1);
|
|
566
547
|
}
|
|
567
548
|
}
|
|
568
|
-
var
|
|
549
|
+
var be = function() {
|
|
569
550
|
function e(t) {
|
|
570
551
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
571
552
|
}
|
|
@@ -577,12 +558,12 @@ var de = function() {
|
|
|
577
558
|
if (s)
|
|
578
559
|
if (this._parentage = null, Array.isArray(s))
|
|
579
560
|
try {
|
|
580
|
-
for (var a =
|
|
561
|
+
for (var a = Le(s), u = a.next(); !u.done; u = a.next()) {
|
|
581
562
|
var h = u.value;
|
|
582
563
|
h.remove(this);
|
|
583
564
|
}
|
|
584
|
-
} catch (
|
|
585
|
-
t = { error:
|
|
565
|
+
} catch (b) {
|
|
566
|
+
t = { error: b };
|
|
586
567
|
} finally {
|
|
587
568
|
try {
|
|
588
569
|
u && !u.done && (r = a.return) && r.call(a);
|
|
@@ -594,26 +575,26 @@ var de = function() {
|
|
|
594
575
|
else
|
|
595
576
|
s.remove(this);
|
|
596
577
|
var l = this.initialTeardown;
|
|
597
|
-
if (
|
|
578
|
+
if (A(l))
|
|
598
579
|
try {
|
|
599
580
|
l();
|
|
600
|
-
} catch (
|
|
601
|
-
o =
|
|
581
|
+
} catch (b) {
|
|
582
|
+
o = b instanceof Se ? b.errors : [b];
|
|
602
583
|
}
|
|
603
584
|
var c = this._finalizers;
|
|
604
585
|
if (c) {
|
|
605
586
|
this._finalizers = null;
|
|
606
587
|
try {
|
|
607
|
-
for (var f =
|
|
608
|
-
var
|
|
588
|
+
for (var f = Le(c), m = f.next(); !m.done; m = f.next()) {
|
|
589
|
+
var g = m.value;
|
|
609
590
|
try {
|
|
610
|
-
|
|
611
|
-
} catch (
|
|
612
|
-
o = o ?? [],
|
|
591
|
+
tt(g);
|
|
592
|
+
} catch (b) {
|
|
593
|
+
o = o ?? [], b instanceof Se ? o = Me(Me([], Ce(o)), Ce(b.errors)) : o.push(b);
|
|
613
594
|
}
|
|
614
595
|
}
|
|
615
|
-
} catch (
|
|
616
|
-
n = { error:
|
|
596
|
+
} catch (b) {
|
|
597
|
+
n = { error: b };
|
|
617
598
|
} finally {
|
|
618
599
|
try {
|
|
619
600
|
m && !m.done && (i = f.return) && i.call(f);
|
|
@@ -624,13 +605,13 @@ var de = function() {
|
|
|
624
605
|
}
|
|
625
606
|
}
|
|
626
607
|
if (o)
|
|
627
|
-
throw new
|
|
608
|
+
throw new Se(o);
|
|
628
609
|
}
|
|
629
610
|
}, e.prototype.add = function(t) {
|
|
630
611
|
var r;
|
|
631
612
|
if (t && t !== this)
|
|
632
613
|
if (this.closed)
|
|
633
|
-
|
|
614
|
+
tt(t);
|
|
634
615
|
else {
|
|
635
616
|
if (t instanceof e) {
|
|
636
617
|
if (t.closed || t._hasParent(this))
|
|
@@ -647,52 +628,52 @@ var de = function() {
|
|
|
647
628
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
648
629
|
}, e.prototype._removeParent = function(t) {
|
|
649
630
|
var r = this._parentage;
|
|
650
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
631
|
+
r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
|
|
651
632
|
}, e.prototype.remove = function(t) {
|
|
652
633
|
var r = this._finalizers;
|
|
653
|
-
r &&
|
|
634
|
+
r && $e(r, t), t instanceof e && t._removeParent(this);
|
|
654
635
|
}, e.EMPTY = function() {
|
|
655
636
|
var t = new e();
|
|
656
637
|
return t.closed = !0, t;
|
|
657
638
|
}(), e;
|
|
658
|
-
}(),
|
|
659
|
-
function
|
|
660
|
-
return e instanceof
|
|
639
|
+
}(), At = be.EMPTY;
|
|
640
|
+
function Ot(e) {
|
|
641
|
+
return e instanceof be || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
661
642
|
}
|
|
662
|
-
function
|
|
663
|
-
|
|
643
|
+
function tt(e) {
|
|
644
|
+
A(e) ? e() : e.unsubscribe();
|
|
664
645
|
}
|
|
665
|
-
var
|
|
646
|
+
var Ir = {
|
|
666
647
|
Promise: void 0
|
|
667
|
-
},
|
|
648
|
+
}, Nr = {
|
|
668
649
|
setTimeout: function(e, t) {
|
|
669
650
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
670
651
|
r[n - 2] = arguments[n];
|
|
671
|
-
return setTimeout.apply(void 0,
|
|
652
|
+
return setTimeout.apply(void 0, Me([e, t], Ce(r)));
|
|
672
653
|
},
|
|
673
654
|
clearTimeout: function(e) {
|
|
674
655
|
return clearTimeout(e);
|
|
675
656
|
},
|
|
676
657
|
delegate: void 0
|
|
677
658
|
};
|
|
678
|
-
function
|
|
679
|
-
|
|
659
|
+
function Lr(e) {
|
|
660
|
+
Nr.setTimeout(function() {
|
|
680
661
|
throw e;
|
|
681
662
|
});
|
|
682
663
|
}
|
|
683
|
-
function
|
|
664
|
+
function rt() {
|
|
684
665
|
}
|
|
685
666
|
function he(e) {
|
|
686
667
|
e();
|
|
687
668
|
}
|
|
688
|
-
var
|
|
689
|
-
|
|
669
|
+
var It = function(e) {
|
|
670
|
+
te(t, e);
|
|
690
671
|
function t(r) {
|
|
691
672
|
var n = e.call(this) || this;
|
|
692
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
673
|
+
return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = $r, n;
|
|
693
674
|
}
|
|
694
675
|
return t.create = function(r, n, i) {
|
|
695
|
-
return new
|
|
676
|
+
return new Re(r, n, i);
|
|
696
677
|
}, t.prototype.next = function(r) {
|
|
697
678
|
this.isStopped || this._next(r);
|
|
698
679
|
}, t.prototype.error = function(r) {
|
|
@@ -716,7 +697,7 @@ var wt = function(e) {
|
|
|
716
697
|
this.unsubscribe();
|
|
717
698
|
}
|
|
718
699
|
}, t;
|
|
719
|
-
}(
|
|
700
|
+
}(be), Cr = function() {
|
|
720
701
|
function e(t) {
|
|
721
702
|
this.partialObserver = t;
|
|
722
703
|
}
|
|
@@ -747,43 +728,43 @@ var wt = function(e) {
|
|
|
747
728
|
ie(r);
|
|
748
729
|
}
|
|
749
730
|
}, e;
|
|
750
|
-
}(),
|
|
751
|
-
|
|
731
|
+
}(), Re = function(e) {
|
|
732
|
+
te(t, e);
|
|
752
733
|
function t(r, n, i) {
|
|
753
734
|
var o = e.call(this) || this, s;
|
|
754
|
-
return
|
|
735
|
+
return A(r) || !r ? s = {
|
|
755
736
|
next: r ?? void 0,
|
|
756
737
|
error: n ?? void 0,
|
|
757
738
|
complete: i ?? void 0
|
|
758
|
-
} : s = r, o.destination = new
|
|
739
|
+
} : s = r, o.destination = new Cr(s), o;
|
|
759
740
|
}
|
|
760
741
|
return t;
|
|
761
|
-
}(
|
|
742
|
+
}(It);
|
|
762
743
|
function ie(e) {
|
|
763
|
-
|
|
744
|
+
Lr(e);
|
|
764
745
|
}
|
|
765
|
-
function
|
|
746
|
+
function Mr(e) {
|
|
766
747
|
throw e;
|
|
767
748
|
}
|
|
768
|
-
var
|
|
749
|
+
var $r = {
|
|
769
750
|
closed: !0,
|
|
770
|
-
next:
|
|
771
|
-
error:
|
|
772
|
-
complete:
|
|
773
|
-
},
|
|
751
|
+
next: rt,
|
|
752
|
+
error: Mr,
|
|
753
|
+
complete: rt
|
|
754
|
+
}, Rr = function() {
|
|
774
755
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
775
756
|
}();
|
|
776
|
-
function
|
|
757
|
+
function Ur(e) {
|
|
777
758
|
return e;
|
|
778
759
|
}
|
|
779
|
-
function
|
|
780
|
-
return e.length === 0 ?
|
|
760
|
+
function Dr(e) {
|
|
761
|
+
return e.length === 0 ? Ur : e.length === 1 ? e[0] : function(r) {
|
|
781
762
|
return e.reduce(function(n, i) {
|
|
782
763
|
return i(n);
|
|
783
764
|
}, r);
|
|
784
765
|
};
|
|
785
766
|
}
|
|
786
|
-
var
|
|
767
|
+
var nt = function() {
|
|
787
768
|
function e(t) {
|
|
788
769
|
t && (this._subscribe = t);
|
|
789
770
|
}
|
|
@@ -791,7 +772,7 @@ var qe = function() {
|
|
|
791
772
|
var r = new e();
|
|
792
773
|
return r.source = this, r.operator = t, r;
|
|
793
774
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
794
|
-
var i = this, o =
|
|
775
|
+
var i = this, o = Fr(t) ? t : new Re(t, r, n);
|
|
795
776
|
return he(function() {
|
|
796
777
|
var s = i, a = s.operator, u = s.source;
|
|
797
778
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -804,8 +785,8 @@ var qe = function() {
|
|
|
804
785
|
}
|
|
805
786
|
}, e.prototype.forEach = function(t, r) {
|
|
806
787
|
var n = this;
|
|
807
|
-
return r =
|
|
808
|
-
var s = new
|
|
788
|
+
return r = it(r), new r(function(i, o) {
|
|
789
|
+
var s = new Re({
|
|
809
790
|
next: function(a) {
|
|
810
791
|
try {
|
|
811
792
|
t(a);
|
|
@@ -821,15 +802,15 @@ var qe = function() {
|
|
|
821
802
|
}, e.prototype._subscribe = function(t) {
|
|
822
803
|
var r;
|
|
823
804
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
824
|
-
}, e.prototype[
|
|
805
|
+
}, e.prototype[Rr] = function() {
|
|
825
806
|
return this;
|
|
826
807
|
}, e.prototype.pipe = function() {
|
|
827
808
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
828
809
|
t[r] = arguments[r];
|
|
829
|
-
return
|
|
810
|
+
return Dr(t)(this);
|
|
830
811
|
}, e.prototype.toPromise = function(t) {
|
|
831
812
|
var r = this;
|
|
832
|
-
return t =
|
|
813
|
+
return t = it(t), new t(function(n, i) {
|
|
833
814
|
var o;
|
|
834
815
|
r.subscribe(function(s) {
|
|
835
816
|
return o = s;
|
|
@@ -843,32 +824,32 @@ var qe = function() {
|
|
|
843
824
|
return new e(t);
|
|
844
825
|
}, e;
|
|
845
826
|
}();
|
|
846
|
-
function
|
|
827
|
+
function it(e) {
|
|
847
828
|
var t;
|
|
848
|
-
return (t = e ??
|
|
829
|
+
return (t = e ?? Ir.Promise) !== null && t !== void 0 ? t : Promise;
|
|
849
830
|
}
|
|
850
|
-
function
|
|
851
|
-
return e &&
|
|
831
|
+
function Gr(e) {
|
|
832
|
+
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
852
833
|
}
|
|
853
|
-
function
|
|
854
|
-
return e && e instanceof
|
|
834
|
+
function Fr(e) {
|
|
835
|
+
return e && e instanceof It || Gr(e) && Ot(e);
|
|
855
836
|
}
|
|
856
|
-
var
|
|
837
|
+
var jr = Pt(function(e) {
|
|
857
838
|
return function() {
|
|
858
839
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
859
840
|
};
|
|
860
|
-
}),
|
|
861
|
-
|
|
841
|
+
}), Nt = function(e) {
|
|
842
|
+
te(t, e);
|
|
862
843
|
function t() {
|
|
863
844
|
var r = e.call(this) || this;
|
|
864
845
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
865
846
|
}
|
|
866
847
|
return t.prototype.lift = function(r) {
|
|
867
|
-
var n = new
|
|
848
|
+
var n = new ot(this, this);
|
|
868
849
|
return n.operator = r, n;
|
|
869
850
|
}, t.prototype._throwIfClosed = function() {
|
|
870
851
|
if (this.closed)
|
|
871
|
-
throw new
|
|
852
|
+
throw new jr();
|
|
872
853
|
}, t.prototype.next = function(r) {
|
|
873
854
|
var n = this;
|
|
874
855
|
he(function() {
|
|
@@ -876,7 +857,7 @@ var Ur = St(function(e) {
|
|
|
876
857
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
877
858
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
878
859
|
try {
|
|
879
|
-
for (var s =
|
|
860
|
+
for (var s = Le(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
880
861
|
var u = a.value;
|
|
881
862
|
u.next(r);
|
|
882
863
|
}
|
|
@@ -925,20 +906,20 @@ var Ur = St(function(e) {
|
|
|
925
906
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
926
907
|
}, t.prototype._innerSubscribe = function(r) {
|
|
927
908
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
928
|
-
return o || s ?
|
|
929
|
-
n.currentObservers = null,
|
|
909
|
+
return o || s ? At : (this.currentObservers = null, a.push(r), new be(function() {
|
|
910
|
+
n.currentObservers = null, $e(a, r);
|
|
930
911
|
}));
|
|
931
912
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
932
913
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
933
914
|
i ? r.error(o) : s && r.complete();
|
|
934
915
|
}, t.prototype.asObservable = function() {
|
|
935
|
-
var r = new
|
|
916
|
+
var r = new nt();
|
|
936
917
|
return r.source = this, r;
|
|
937
918
|
}, t.create = function(r, n) {
|
|
938
|
-
return new
|
|
919
|
+
return new ot(r, n);
|
|
939
920
|
}, t;
|
|
940
|
-
}(
|
|
941
|
-
|
|
921
|
+
}(nt), ot = function(e) {
|
|
922
|
+
te(t, e);
|
|
942
923
|
function t(r, n) {
|
|
943
924
|
var i = e.call(this) || this;
|
|
944
925
|
return i.destination = r, i.source = n, i;
|
|
@@ -954,17 +935,17 @@ var Ur = St(function(e) {
|
|
|
954
935
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
955
936
|
}, t.prototype._subscribe = function(r) {
|
|
956
937
|
var n, i;
|
|
957
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
938
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
|
|
958
939
|
}, t;
|
|
959
|
-
}(
|
|
940
|
+
}(Nt), Lt = {
|
|
960
941
|
now: function() {
|
|
961
|
-
return (
|
|
942
|
+
return (Lt.delegate || Date).now();
|
|
962
943
|
},
|
|
963
944
|
delegate: void 0
|
|
964
|
-
},
|
|
965
|
-
|
|
945
|
+
}, kr = function(e) {
|
|
946
|
+
te(t, e);
|
|
966
947
|
function t(r, n, i) {
|
|
967
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
948
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
|
|
968
949
|
var o = e.call(this) || this;
|
|
969
950
|
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;
|
|
970
951
|
}
|
|
@@ -984,24 +965,24 @@ var Ur = St(function(e) {
|
|
|
984
965
|
h && o.splice(0, h + 1);
|
|
985
966
|
}
|
|
986
967
|
}, t;
|
|
987
|
-
}(
|
|
988
|
-
const
|
|
989
|
-
if (
|
|
990
|
-
const r = new
|
|
991
|
-
|
|
968
|
+
}(Nt);
|
|
969
|
+
const st = [], at = {}, Vr = (e, t = 0) => {
|
|
970
|
+
if (st.indexOf(e) == -1) {
|
|
971
|
+
const r = new kr(t);
|
|
972
|
+
at[e] = r, st.push(e);
|
|
992
973
|
}
|
|
993
|
-
return
|
|
974
|
+
return at[e];
|
|
994
975
|
}, U = [];
|
|
995
|
-
function
|
|
976
|
+
function Xr(e, t) {
|
|
996
977
|
return {
|
|
997
|
-
subscribe:
|
|
978
|
+
subscribe: ge(e, t).subscribe
|
|
998
979
|
};
|
|
999
980
|
}
|
|
1000
|
-
function
|
|
981
|
+
function ge(e, t = w) {
|
|
1001
982
|
let r;
|
|
1002
983
|
const n = /* @__PURE__ */ new Set();
|
|
1003
984
|
function i(a) {
|
|
1004
|
-
if (
|
|
985
|
+
if (Bt(e, a) && (e = a, r)) {
|
|
1005
986
|
const u = !U.length;
|
|
1006
987
|
for (const h of n)
|
|
1007
988
|
h[1](), U.push(h, e);
|
|
@@ -1015,150 +996,192 @@ function be(e, t = T) {
|
|
|
1015
996
|
function o(a) {
|
|
1016
997
|
i(a(e));
|
|
1017
998
|
}
|
|
1018
|
-
function s(a, u =
|
|
999
|
+
function s(a, u = w) {
|
|
1019
1000
|
const h = [a, u];
|
|
1020
|
-
return n.add(h), n.size === 1 && (r = t(i, o) ||
|
|
1001
|
+
return n.add(h), n.size === 1 && (r = t(i, o) || w), a(e), () => {
|
|
1021
1002
|
n.delete(h), n.size === 0 && r && (r(), r = null);
|
|
1022
1003
|
};
|
|
1023
1004
|
}
|
|
1024
1005
|
return { set: i, update: o, subscribe: s };
|
|
1025
1006
|
}
|
|
1026
|
-
function
|
|
1007
|
+
function X(e, t, r) {
|
|
1027
1008
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1028
1009
|
if (!i.every(Boolean))
|
|
1029
1010
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1030
1011
|
const o = t.length < 2;
|
|
1031
|
-
return
|
|
1012
|
+
return Xr(r, (s, a) => {
|
|
1032
1013
|
let u = !1;
|
|
1033
1014
|
const h = [];
|
|
1034
|
-
let l = 0, c =
|
|
1015
|
+
let l = 0, c = w;
|
|
1035
1016
|
const f = () => {
|
|
1036
1017
|
if (l)
|
|
1037
1018
|
return;
|
|
1038
1019
|
c();
|
|
1039
|
-
const
|
|
1040
|
-
o ? s(
|
|
1020
|
+
const g = t(n ? h[0] : h, s, a);
|
|
1021
|
+
o ? s(g) : c = We(g) ? g : w;
|
|
1041
1022
|
}, m = i.map(
|
|
1042
|
-
(
|
|
1043
|
-
|
|
1023
|
+
(g, b) => wt(
|
|
1024
|
+
g,
|
|
1044
1025
|
(B) => {
|
|
1045
|
-
h[
|
|
1026
|
+
h[b] = B, l &= ~(1 << b), u && f();
|
|
1046
1027
|
},
|
|
1047
1028
|
() => {
|
|
1048
|
-
l |= 1 <<
|
|
1029
|
+
l |= 1 << b;
|
|
1049
1030
|
}
|
|
1050
1031
|
)
|
|
1051
1032
|
);
|
|
1052
1033
|
return u = !0, f(), function() {
|
|
1053
|
-
|
|
1034
|
+
ee(m), c(), u = !1;
|
|
1054
1035
|
};
|
|
1055
1036
|
});
|
|
1056
1037
|
}
|
|
1057
|
-
function
|
|
1038
|
+
function zr(e) {
|
|
1058
1039
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1059
1040
|
}
|
|
1060
|
-
var
|
|
1061
|
-
return
|
|
1041
|
+
var Wr = function(t) {
|
|
1042
|
+
return Zr(t) && !Qr(t);
|
|
1062
1043
|
};
|
|
1063
|
-
function
|
|
1044
|
+
function Zr(e) {
|
|
1064
1045
|
return !!e && typeof e == "object";
|
|
1065
1046
|
}
|
|
1066
|
-
function
|
|
1047
|
+
function Qr(e) {
|
|
1067
1048
|
var t = Object.prototype.toString.call(e);
|
|
1068
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1049
|
+
return t === "[object RegExp]" || t === "[object Date]" || qr(e);
|
|
1069
1050
|
}
|
|
1070
|
-
var
|
|
1071
|
-
function
|
|
1072
|
-
return e.$$typeof ===
|
|
1051
|
+
var Jr = typeof Symbol == "function" && Symbol.for, Yr = Jr ? Symbol.for("react.element") : 60103;
|
|
1052
|
+
function qr(e) {
|
|
1053
|
+
return e.$$typeof === Yr;
|
|
1073
1054
|
}
|
|
1074
|
-
function
|
|
1055
|
+
function Kr(e) {
|
|
1075
1056
|
return Array.isArray(e) ? [] : {};
|
|
1076
1057
|
}
|
|
1077
|
-
function
|
|
1078
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1058
|
+
function q(e, t) {
|
|
1059
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Kr(e), e, t) : e;
|
|
1079
1060
|
}
|
|
1080
|
-
function
|
|
1061
|
+
function en(e, t, r) {
|
|
1081
1062
|
return e.concat(t).map(function(n) {
|
|
1082
|
-
return
|
|
1063
|
+
return q(n, r);
|
|
1083
1064
|
});
|
|
1084
1065
|
}
|
|
1085
|
-
function
|
|
1066
|
+
function tn(e, t) {
|
|
1086
1067
|
if (!t.customMerge)
|
|
1087
|
-
return
|
|
1068
|
+
return F;
|
|
1088
1069
|
var r = t.customMerge(e);
|
|
1089
|
-
return typeof r == "function" ? r :
|
|
1070
|
+
return typeof r == "function" ? r : F;
|
|
1090
1071
|
}
|
|
1091
|
-
function
|
|
1072
|
+
function rn(e) {
|
|
1092
1073
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1093
1074
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1094
1075
|
}) : [];
|
|
1095
1076
|
}
|
|
1096
|
-
function
|
|
1097
|
-
return Object.keys(e).concat(
|
|
1077
|
+
function ut(e) {
|
|
1078
|
+
return Object.keys(e).concat(rn(e));
|
|
1098
1079
|
}
|
|
1099
|
-
function
|
|
1080
|
+
function Ct(e, t) {
|
|
1100
1081
|
try {
|
|
1101
1082
|
return t in e;
|
|
1102
1083
|
} catch {
|
|
1103
1084
|
return !1;
|
|
1104
1085
|
}
|
|
1105
1086
|
}
|
|
1106
|
-
function
|
|
1107
|
-
return
|
|
1087
|
+
function nn(e, t) {
|
|
1088
|
+
return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1108
1089
|
}
|
|
1109
|
-
function
|
|
1090
|
+
function on(e, t, r) {
|
|
1110
1091
|
var n = {};
|
|
1111
|
-
return r.isMergeableObject(e) &&
|
|
1112
|
-
n[i] =
|
|
1113
|
-
}),
|
|
1114
|
-
|
|
1092
|
+
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
1093
|
+
n[i] = q(e[i], r);
|
|
1094
|
+
}), ut(t).forEach(function(i) {
|
|
1095
|
+
nn(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = tn(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
|
1115
1096
|
}), n;
|
|
1116
1097
|
}
|
|
1117
|
-
function
|
|
1118
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1098
|
+
function F(e, t, r) {
|
|
1099
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || en, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = q;
|
|
1119
1100
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1120
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1101
|
+
return o ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : q(t, r);
|
|
1121
1102
|
}
|
|
1122
|
-
|
|
1103
|
+
F.all = function(t, r) {
|
|
1123
1104
|
if (!Array.isArray(t))
|
|
1124
1105
|
throw new Error("first argument should be an array");
|
|
1125
1106
|
return t.reduce(function(n, i) {
|
|
1126
|
-
return
|
|
1107
|
+
return F(n, i, r);
|
|
1127
1108
|
}, {});
|
|
1128
1109
|
};
|
|
1129
|
-
var
|
|
1130
|
-
const
|
|
1131
|
-
function
|
|
1132
|
-
|
|
1110
|
+
var sn = F, an = sn;
|
|
1111
|
+
const un = /* @__PURE__ */ zr(an);
|
|
1112
|
+
var Ue = function(e, t) {
|
|
1113
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1114
|
+
r.__proto__ = n;
|
|
1115
|
+
} || function(r, n) {
|
|
1116
|
+
for (var i in n)
|
|
1117
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1118
|
+
}, Ue(e, t);
|
|
1119
|
+
};
|
|
1120
|
+
function ye(e, t) {
|
|
1121
|
+
if (typeof t != "function" && t !== null)
|
|
1122
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1123
|
+
Ue(e, t);
|
|
1124
|
+
function r() {
|
|
1125
|
+
this.constructor = e;
|
|
1126
|
+
}
|
|
1127
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1128
|
+
}
|
|
1129
|
+
var H = function() {
|
|
1130
|
+
return H = Object.assign || function(t) {
|
|
1131
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1132
|
+
r = arguments[n];
|
|
1133
|
+
for (var o in r)
|
|
1134
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1135
|
+
}
|
|
1136
|
+
return t;
|
|
1137
|
+
}, H.apply(this, arguments);
|
|
1138
|
+
};
|
|
1139
|
+
function hn(e, t) {
|
|
1140
|
+
var r = {};
|
|
1141
|
+
for (var n in e)
|
|
1142
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1143
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1144
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1145
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1146
|
+
return r;
|
|
1147
|
+
}
|
|
1148
|
+
function Be(e, t, r) {
|
|
1149
|
+
if (r || arguments.length === 2)
|
|
1150
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1151
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1152
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1153
|
+
}
|
|
1154
|
+
function we(e, t) {
|
|
1155
|
+
var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : fn;
|
|
1133
1156
|
return i(e, {
|
|
1134
1157
|
cache: r,
|
|
1135
1158
|
serializer: n
|
|
1136
1159
|
});
|
|
1137
1160
|
}
|
|
1138
|
-
function
|
|
1161
|
+
function ln(e) {
|
|
1139
1162
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1140
1163
|
}
|
|
1141
|
-
function
|
|
1142
|
-
var i =
|
|
1164
|
+
function cn(e, t, r, n) {
|
|
1165
|
+
var i = ln(n) ? n : r(n), o = t.get(i);
|
|
1143
1166
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1144
1167
|
}
|
|
1145
|
-
function
|
|
1168
|
+
function Mt(e, t, r) {
|
|
1146
1169
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1147
1170
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1148
1171
|
}
|
|
1149
|
-
function
|
|
1172
|
+
function $t(e, t, r, n, i) {
|
|
1150
1173
|
return r.bind(t, e, n, i);
|
|
1151
1174
|
}
|
|
1152
|
-
function
|
|
1153
|
-
var r = e.length === 1 ?
|
|
1154
|
-
return
|
|
1175
|
+
function fn(e, t) {
|
|
1176
|
+
var r = e.length === 1 ? cn : Mt;
|
|
1177
|
+
return $t(e, this, r, t.cache.create(), t.serializer);
|
|
1155
1178
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1179
|
+
function pn(e, t) {
|
|
1180
|
+
return $t(e, this, Mt, t.cache.create(), t.serializer);
|
|
1158
1181
|
}
|
|
1159
|
-
var
|
|
1182
|
+
var mn = function() {
|
|
1160
1183
|
return JSON.stringify(arguments);
|
|
1161
|
-
},
|
|
1184
|
+
}, dn = (
|
|
1162
1185
|
/** @class */
|
|
1163
1186
|
function() {
|
|
1164
1187
|
function e() {
|
|
@@ -1170,61 +1193,71 @@ var hn = function() {
|
|
|
1170
1193
|
this.cache[t] = r;
|
|
1171
1194
|
}, e;
|
|
1172
1195
|
}()
|
|
1173
|
-
),
|
|
1196
|
+
), bn = {
|
|
1174
1197
|
create: function() {
|
|
1175
|
-
return new
|
|
1198
|
+
return new dn();
|
|
1176
1199
|
}
|
|
1177
|
-
},
|
|
1178
|
-
variadic:
|
|
1179
|
-
},
|
|
1200
|
+
}, Te = {
|
|
1201
|
+
variadic: pn
|
|
1202
|
+
}, pe = function() {
|
|
1203
|
+
return pe = Object.assign || function(t) {
|
|
1204
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1205
|
+
r = arguments[n];
|
|
1206
|
+
for (var o in r)
|
|
1207
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1208
|
+
}
|
|
1209
|
+
return t;
|
|
1210
|
+
}, pe.apply(this, arguments);
|
|
1211
|
+
};
|
|
1212
|
+
var p;
|
|
1180
1213
|
(function(e) {
|
|
1181
1214
|
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";
|
|
1182
1215
|
})(p || (p = {}));
|
|
1183
|
-
var
|
|
1216
|
+
var v;
|
|
1184
1217
|
(function(e) {
|
|
1185
1218
|
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";
|
|
1186
|
-
})(
|
|
1187
|
-
var
|
|
1219
|
+
})(v || (v = {}));
|
|
1220
|
+
var j;
|
|
1188
1221
|
(function(e) {
|
|
1189
1222
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1190
|
-
})(
|
|
1191
|
-
function
|
|
1192
|
-
return e.type ===
|
|
1223
|
+
})(j || (j = {}));
|
|
1224
|
+
function ht(e) {
|
|
1225
|
+
return e.type === v.literal;
|
|
1193
1226
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return e.type ===
|
|
1227
|
+
function gn(e) {
|
|
1228
|
+
return e.type === v.argument;
|
|
1196
1229
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return e.type ===
|
|
1230
|
+
function Rt(e) {
|
|
1231
|
+
return e.type === v.number;
|
|
1199
1232
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return e.type ===
|
|
1233
|
+
function Ut(e) {
|
|
1234
|
+
return e.type === v.date;
|
|
1202
1235
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return e.type ===
|
|
1236
|
+
function Dt(e) {
|
|
1237
|
+
return e.type === v.time;
|
|
1205
1238
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return e.type ===
|
|
1239
|
+
function Gt(e) {
|
|
1240
|
+
return e.type === v.select;
|
|
1208
1241
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return e.type ===
|
|
1242
|
+
function Ft(e) {
|
|
1243
|
+
return e.type === v.plural;
|
|
1211
1244
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return e.type ===
|
|
1245
|
+
function yn(e) {
|
|
1246
|
+
return e.type === v.pound;
|
|
1214
1247
|
}
|
|
1215
|
-
function
|
|
1216
|
-
return e.type ===
|
|
1248
|
+
function jt(e) {
|
|
1249
|
+
return e.type === v.tag;
|
|
1217
1250
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1251
|
+
function kt(e) {
|
|
1252
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
1220
1253
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1254
|
+
function De(e) {
|
|
1255
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
1223
1256
|
}
|
|
1224
|
-
var
|
|
1225
|
-
function
|
|
1257
|
+
var Vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, vn = /(?:[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;
|
|
1258
|
+
function En(e) {
|
|
1226
1259
|
var t = {};
|
|
1227
|
-
return e.replace(
|
|
1260
|
+
return e.replace(vn, function(r) {
|
|
1228
1261
|
var n = r.length;
|
|
1229
1262
|
switch (r[0]) {
|
|
1230
1263
|
case "G":
|
|
@@ -1313,11 +1346,21 @@ function dn(e) {
|
|
|
1313
1346
|
return "";
|
|
1314
1347
|
}), t;
|
|
1315
1348
|
}
|
|
1316
|
-
var
|
|
1317
|
-
function
|
|
1349
|
+
var E = function() {
|
|
1350
|
+
return E = Object.assign || function(t) {
|
|
1351
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1352
|
+
r = arguments[n];
|
|
1353
|
+
for (var o in r)
|
|
1354
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1355
|
+
}
|
|
1356
|
+
return t;
|
|
1357
|
+
}, E.apply(this, arguments);
|
|
1358
|
+
};
|
|
1359
|
+
var _n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1360
|
+
function xn(e) {
|
|
1318
1361
|
if (e.length === 0)
|
|
1319
1362
|
throw new Error("Number skeleton cannot be empty");
|
|
1320
|
-
for (var t = e.split(
|
|
1363
|
+
for (var t = e.split(_n).filter(function(f) {
|
|
1321
1364
|
return f.length > 0;
|
|
1322
1365
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1323
1366
|
var o = i[n], s = o.split("/");
|
|
@@ -1332,17 +1375,17 @@ function gn(e) {
|
|
|
1332
1375
|
}
|
|
1333
1376
|
return r;
|
|
1334
1377
|
}
|
|
1335
|
-
function
|
|
1378
|
+
function Sn(e) {
|
|
1336
1379
|
return e.replace(/^(.*?)-/, "");
|
|
1337
1380
|
}
|
|
1338
|
-
var
|
|
1339
|
-
function
|
|
1381
|
+
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g, Bn = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
|
|
1382
|
+
function ct(e) {
|
|
1340
1383
|
var t = {};
|
|
1341
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1384
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xt, function(r, n, i) {
|
|
1342
1385
|
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)), "";
|
|
1343
1386
|
}), t;
|
|
1344
1387
|
}
|
|
1345
|
-
function
|
|
1388
|
+
function Wt(e) {
|
|
1346
1389
|
switch (e) {
|
|
1347
1390
|
case "sign-auto":
|
|
1348
1391
|
return {
|
|
@@ -1382,7 +1425,7 @@ function jt(e) {
|
|
|
1382
1425
|
};
|
|
1383
1426
|
}
|
|
1384
1427
|
}
|
|
1385
|
-
function
|
|
1428
|
+
function wn(e) {
|
|
1386
1429
|
var t;
|
|
1387
1430
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1388
1431
|
notation: "engineering"
|
|
@@ -1390,17 +1433,17 @@ function En(e) {
|
|
|
1390
1433
|
notation: "scientific"
|
|
1391
1434
|
}, e = e.slice(1)), t) {
|
|
1392
1435
|
var r = e.slice(0, 2);
|
|
1393
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1436
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !zt.test(e))
|
|
1394
1437
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1395
1438
|
t.minimumIntegerDigits = e.length;
|
|
1396
1439
|
}
|
|
1397
1440
|
return t;
|
|
1398
1441
|
}
|
|
1399
|
-
function
|
|
1400
|
-
var t = {}, r =
|
|
1442
|
+
function ft(e) {
|
|
1443
|
+
var t = {}, r = Wt(e);
|
|
1401
1444
|
return r || t;
|
|
1402
1445
|
}
|
|
1403
|
-
function
|
|
1446
|
+
function Tn(e) {
|
|
1404
1447
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1405
1448
|
var i = n[r];
|
|
1406
1449
|
switch (i.stem) {
|
|
@@ -1424,7 +1467,7 @@ function xn(e) {
|
|
|
1424
1467
|
continue;
|
|
1425
1468
|
case "measure-unit":
|
|
1426
1469
|
case "unit":
|
|
1427
|
-
t.style = "unit", t.unit =
|
|
1470
|
+
t.style = "unit", t.unit = Sn(i.options[0]);
|
|
1428
1471
|
continue;
|
|
1429
1472
|
case "compact-short":
|
|
1430
1473
|
case "K":
|
|
@@ -1435,13 +1478,13 @@ function xn(e) {
|
|
|
1435
1478
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1436
1479
|
continue;
|
|
1437
1480
|
case "scientific":
|
|
1438
|
-
t =
|
|
1439
|
-
return
|
|
1481
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
|
1482
|
+
return E(E({}, u), ft(h));
|
|
1440
1483
|
}, {}));
|
|
1441
1484
|
continue;
|
|
1442
1485
|
case "engineering":
|
|
1443
|
-
t =
|
|
1444
|
-
return
|
|
1486
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
|
1487
|
+
return E(E({}, u), ft(h));
|
|
1445
1488
|
}, {}));
|
|
1446
1489
|
continue;
|
|
1447
1490
|
case "notation-simple":
|
|
@@ -1486,7 +1529,7 @@ function xn(e) {
|
|
|
1486
1529
|
case "integer-width":
|
|
1487
1530
|
if (i.options.length > 1)
|
|
1488
1531
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1489
|
-
i.options[0].replace(
|
|
1532
|
+
i.options[0].replace(Bn, function(u, h, l, c, f, m) {
|
|
1490
1533
|
if (h)
|
|
1491
1534
|
t.minimumIntegerDigits = l.length;
|
|
1492
1535
|
else {
|
|
@@ -1499,28 +1542,28 @@ function xn(e) {
|
|
|
1499
1542
|
});
|
|
1500
1543
|
continue;
|
|
1501
1544
|
}
|
|
1502
|
-
if (
|
|
1545
|
+
if (zt.test(i.stem)) {
|
|
1503
1546
|
t.minimumIntegerDigits = i.stem.length;
|
|
1504
1547
|
continue;
|
|
1505
1548
|
}
|
|
1506
|
-
if (
|
|
1549
|
+
if (lt.test(i.stem)) {
|
|
1507
1550
|
if (i.options.length > 1)
|
|
1508
1551
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1509
|
-
i.stem.replace(
|
|
1552
|
+
i.stem.replace(lt, function(u, h, l, c, f, m) {
|
|
1510
1553
|
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1511
1554
|
});
|
|
1512
1555
|
var o = i.options[0];
|
|
1513
|
-
o === "w" ? t =
|
|
1556
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), ct(o)));
|
|
1514
1557
|
continue;
|
|
1515
1558
|
}
|
|
1516
|
-
if (
|
|
1517
|
-
t =
|
|
1559
|
+
if (Xt.test(i.stem)) {
|
|
1560
|
+
t = E(E({}, t), ct(i.stem));
|
|
1518
1561
|
continue;
|
|
1519
1562
|
}
|
|
1520
|
-
var s =
|
|
1521
|
-
s && (t =
|
|
1522
|
-
var a =
|
|
1523
|
-
a && (t =
|
|
1563
|
+
var s = Wt(i.stem);
|
|
1564
|
+
s && (t = E(E({}, t), s));
|
|
1565
|
+
var a = wn(i.stem);
|
|
1566
|
+
a && (t = E(E({}, t), a));
|
|
1524
1567
|
}
|
|
1525
1568
|
return t;
|
|
1526
1569
|
}
|
|
@@ -2939,13 +2982,13 @@ var oe = {
|
|
|
2939
2982
|
"h"
|
|
2940
2983
|
]
|
|
2941
2984
|
};
|
|
2942
|
-
function
|
|
2985
|
+
function Hn(e, t) {
|
|
2943
2986
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2944
2987
|
var i = e.charAt(n);
|
|
2945
2988
|
if (i === "j") {
|
|
2946
2989
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2947
2990
|
o++, n++;
|
|
2948
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h =
|
|
2991
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = Pn(t);
|
|
2949
2992
|
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
|
2950
2993
|
r += u;
|
|
2951
2994
|
for (; s-- > 0; )
|
|
@@ -2955,7 +2998,7 @@ function _n(e, t) {
|
|
|
2955
2998
|
}
|
|
2956
2999
|
return r;
|
|
2957
3000
|
}
|
|
2958
|
-
function
|
|
3001
|
+
function Pn(e) {
|
|
2959
3002
|
var t = e.hourCycle;
|
|
2960
3003
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2961
3004
|
e.hourCycles && // @ts-ignore
|
|
@@ -2977,20 +3020,20 @@ function Sn(e) {
|
|
|
2977
3020
|
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2978
3021
|
return i[0];
|
|
2979
3022
|
}
|
|
2980
|
-
var
|
|
3023
|
+
var He, An = new RegExp("^".concat(Vt.source, "*")), On = new RegExp("".concat(Vt.source, "*$"));
|
|
2981
3024
|
function d(e, t) {
|
|
2982
3025
|
return { start: e, end: t };
|
|
2983
3026
|
}
|
|
2984
|
-
var
|
|
3027
|
+
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Ln = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, $n = !!String.prototype.trimEnd, Rn = !!Number.isSafeInteger, Un = Rn ? Number.isSafeInteger : function(e) {
|
|
2985
3028
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2986
|
-
},
|
|
3029
|
+
}, Ge = !0;
|
|
2987
3030
|
try {
|
|
2988
|
-
var
|
|
2989
|
-
|
|
3031
|
+
var Dn = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3032
|
+
Ge = ((He = Dn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
2990
3033
|
} catch {
|
|
2991
|
-
|
|
3034
|
+
Ge = !1;
|
|
2992
3035
|
}
|
|
2993
|
-
var
|
|
3036
|
+
var pt = In ? (
|
|
2994
3037
|
// Native
|
|
2995
3038
|
function(t, r, n) {
|
|
2996
3039
|
return t.startsWith(r, n);
|
|
@@ -3000,7 +3043,7 @@ var ut = wn ? (
|
|
|
3000
3043
|
function(t, r, n) {
|
|
3001
3044
|
return t.slice(n, n + r.length) === r;
|
|
3002
3045
|
}
|
|
3003
|
-
),
|
|
3046
|
+
), Fe = Nn ? String.fromCodePoint : (
|
|
3004
3047
|
// IE11
|
|
3005
3048
|
function() {
|
|
3006
3049
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3012,9 +3055,9 @@ var ut = wn ? (
|
|
|
3012
3055
|
}
|
|
3013
3056
|
return n;
|
|
3014
3057
|
}
|
|
3015
|
-
),
|
|
3058
|
+
), mt = (
|
|
3016
3059
|
// native
|
|
3017
|
-
|
|
3060
|
+
Ln ? Object.fromEntries : (
|
|
3018
3061
|
// Ponyfill
|
|
3019
3062
|
function(t) {
|
|
3020
3063
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3024,7 +3067,7 @@ var ut = wn ? (
|
|
|
3024
3067
|
return r;
|
|
3025
3068
|
}
|
|
3026
3069
|
)
|
|
3027
|
-
),
|
|
3070
|
+
), Zt = Cn ? (
|
|
3028
3071
|
// Native
|
|
3029
3072
|
function(t, r) {
|
|
3030
3073
|
return t.codePointAt(r);
|
|
@@ -3038,7 +3081,7 @@ var ut = wn ? (
|
|
|
3038
3081
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3039
3082
|
}
|
|
3040
3083
|
}
|
|
3041
|
-
),
|
|
3084
|
+
), Gn = Mn ? (
|
|
3042
3085
|
// Native
|
|
3043
3086
|
function(t) {
|
|
3044
3087
|
return t.trimStart();
|
|
@@ -3046,9 +3089,9 @@ var ut = wn ? (
|
|
|
3046
3089
|
) : (
|
|
3047
3090
|
// Ponyfill
|
|
3048
3091
|
function(t) {
|
|
3049
|
-
return t.replace(
|
|
3092
|
+
return t.replace(An, "");
|
|
3050
3093
|
}
|
|
3051
|
-
),
|
|
3094
|
+
), Fn = $n ? (
|
|
3052
3095
|
// Native
|
|
3053
3096
|
function(t) {
|
|
3054
3097
|
return t.trimEnd();
|
|
@@ -3056,32 +3099,32 @@ var ut = wn ? (
|
|
|
3056
3099
|
) : (
|
|
3057
3100
|
// Ponyfill
|
|
3058
3101
|
function(t) {
|
|
3059
|
-
return t.replace(
|
|
3102
|
+
return t.replace(On, "");
|
|
3060
3103
|
}
|
|
3061
3104
|
);
|
|
3062
|
-
function
|
|
3105
|
+
function Qt(e, t) {
|
|
3063
3106
|
return new RegExp(e, t);
|
|
3064
3107
|
}
|
|
3065
|
-
var
|
|
3066
|
-
if (
|
|
3067
|
-
var
|
|
3068
|
-
|
|
3108
|
+
var je;
|
|
3109
|
+
if (Ge) {
|
|
3110
|
+
var dt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3111
|
+
je = function(t, r) {
|
|
3069
3112
|
var n;
|
|
3070
|
-
|
|
3071
|
-
var i =
|
|
3113
|
+
dt.lastIndex = r;
|
|
3114
|
+
var i = dt.exec(t);
|
|
3072
3115
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3073
3116
|
};
|
|
3074
3117
|
} else
|
|
3075
|
-
|
|
3118
|
+
je = function(t, r) {
|
|
3076
3119
|
for (var n = []; ; ) {
|
|
3077
|
-
var i =
|
|
3078
|
-
if (i === void 0 ||
|
|
3120
|
+
var i = Zt(t, r);
|
|
3121
|
+
if (i === void 0 || Jt(i) || Xn(i))
|
|
3079
3122
|
break;
|
|
3080
3123
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3081
3124
|
}
|
|
3082
|
-
return
|
|
3125
|
+
return Fe.apply(void 0, n);
|
|
3083
3126
|
};
|
|
3084
|
-
var
|
|
3127
|
+
var jn = (
|
|
3085
3128
|
/** @class */
|
|
3086
3129
|
function() {
|
|
3087
3130
|
function e(t, r) {
|
|
@@ -3105,14 +3148,14 @@ var Rn = (
|
|
|
3105
3148
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3106
3149
|
var a = this.clonePosition();
|
|
3107
3150
|
this.bump(), i.push({
|
|
3108
|
-
type:
|
|
3151
|
+
type: v.pound,
|
|
3109
3152
|
location: d(a, this.clonePosition())
|
|
3110
3153
|
});
|
|
3111
3154
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3112
3155
|
if (n)
|
|
3113
3156
|
break;
|
|
3114
3157
|
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3115
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3158
|
+
} else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
3116
3159
|
var s = this.parseTag(t, r);
|
|
3117
3160
|
if (s.err)
|
|
3118
3161
|
return s;
|
|
@@ -3133,7 +3176,7 @@ var Rn = (
|
|
|
3133
3176
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3134
3177
|
return {
|
|
3135
3178
|
val: {
|
|
3136
|
-
type:
|
|
3179
|
+
type: v.literal,
|
|
3137
3180
|
value: "<".concat(i, "/>"),
|
|
3138
3181
|
location: d(n, this.clonePosition())
|
|
3139
3182
|
},
|
|
@@ -3145,12 +3188,12 @@ var Rn = (
|
|
|
3145
3188
|
return o;
|
|
3146
3189
|
var s = o.val, a = this.clonePosition();
|
|
3147
3190
|
if (this.bumpIf("</")) {
|
|
3148
|
-
if (this.isEOF() || !
|
|
3191
|
+
if (this.isEOF() || !ke(this.char()))
|
|
3149
3192
|
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3150
3193
|
var u = this.clonePosition(), h = this.parseTagName();
|
|
3151
3194
|
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, d(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3152
3195
|
val: {
|
|
3153
|
-
type:
|
|
3196
|
+
type: v.tag,
|
|
3154
3197
|
value: i,
|
|
3155
3198
|
children: s,
|
|
3156
3199
|
location: d(n, this.clonePosition())
|
|
@@ -3163,7 +3206,7 @@ var Rn = (
|
|
|
3163
3206
|
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3164
3207
|
}, e.prototype.parseTagName = function() {
|
|
3165
3208
|
var t = this.offset();
|
|
3166
|
-
for (this.bump(); !this.isEOF() &&
|
|
3209
|
+
for (this.bump(); !this.isEOF() && Vn(this.char()); )
|
|
3167
3210
|
this.bump();
|
|
3168
3211
|
return this.message.slice(t, this.offset());
|
|
3169
3212
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3187,12 +3230,12 @@ var Rn = (
|
|
|
3187
3230
|
}
|
|
3188
3231
|
var u = d(n, this.clonePosition());
|
|
3189
3232
|
return {
|
|
3190
|
-
val: { type:
|
|
3233
|
+
val: { type: v.literal, value: i, location: u },
|
|
3191
3234
|
err: null
|
|
3192
3235
|
};
|
|
3193
3236
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3194
3237
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3195
|
-
!
|
|
3238
|
+
!kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3196
3239
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3197
3240
|
if (this.isEOF() || this.char() !== 39)
|
|
3198
3241
|
return null;
|
|
@@ -3226,12 +3269,12 @@ var Rn = (
|
|
|
3226
3269
|
r.push(n);
|
|
3227
3270
|
this.bump();
|
|
3228
3271
|
}
|
|
3229
|
-
return
|
|
3272
|
+
return Fe.apply(void 0, r);
|
|
3230
3273
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3231
3274
|
if (this.isEOF())
|
|
3232
3275
|
return null;
|
|
3233
3276
|
var n = this.char();
|
|
3234
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3277
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3235
3278
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3236
3279
|
var n = this.clonePosition();
|
|
3237
3280
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3247,7 +3290,7 @@ var Rn = (
|
|
|
3247
3290
|
case 125:
|
|
3248
3291
|
return this.bump(), {
|
|
3249
3292
|
val: {
|
|
3250
|
-
type:
|
|
3293
|
+
type: v.argument,
|
|
3251
3294
|
// value does not include the opening and closing braces.
|
|
3252
3295
|
value: i,
|
|
3253
3296
|
location: d(n, this.clonePosition())
|
|
@@ -3260,7 +3303,7 @@ var Rn = (
|
|
|
3260
3303
|
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3261
3304
|
}
|
|
3262
3305
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3263
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3306
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3264
3307
|
this.bumpTo(i);
|
|
3265
3308
|
var o = this.clonePosition(), s = d(t, o);
|
|
3266
3309
|
return { value: n, location: s };
|
|
@@ -3279,46 +3322,46 @@ var Rn = (
|
|
|
3279
3322
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3280
3323
|
if (c.err)
|
|
3281
3324
|
return c;
|
|
3282
|
-
var f =
|
|
3325
|
+
var f = Fn(c.val);
|
|
3283
3326
|
if (f.length === 0)
|
|
3284
3327
|
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3285
3328
|
var m = d(l, this.clonePosition());
|
|
3286
3329
|
h = { style: f, styleLocation: m };
|
|
3287
3330
|
}
|
|
3288
|
-
var
|
|
3289
|
-
if (
|
|
3290
|
-
return
|
|
3291
|
-
var
|
|
3292
|
-
if (h &&
|
|
3293
|
-
var B =
|
|
3331
|
+
var g = this.tryParseArgumentClose(i);
|
|
3332
|
+
if (g.err)
|
|
3333
|
+
return g;
|
|
3334
|
+
var b = d(i, this.clonePosition());
|
|
3335
|
+
if (h && pt(h?.style, "::", 0)) {
|
|
3336
|
+
var B = Gn(h.style.slice(2));
|
|
3294
3337
|
if (a === "number") {
|
|
3295
3338
|
var c = this.parseNumberSkeletonFromString(B, h.styleLocation);
|
|
3296
3339
|
return c.err ? c : {
|
|
3297
|
-
val: { type:
|
|
3340
|
+
val: { type: v.number, value: n, location: b, style: c.val },
|
|
3298
3341
|
err: null
|
|
3299
3342
|
};
|
|
3300
3343
|
} else {
|
|
3301
3344
|
if (B.length === 0)
|
|
3302
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3345
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, b);
|
|
3303
3346
|
var N = B;
|
|
3304
|
-
this.locale && (N =
|
|
3347
|
+
this.locale && (N = Hn(B, this.locale));
|
|
3305
3348
|
var f = {
|
|
3306
|
-
type:
|
|
3349
|
+
type: j.dateTime,
|
|
3307
3350
|
pattern: N,
|
|
3308
3351
|
location: h.styleLocation,
|
|
3309
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3310
|
-
}, O = a === "date" ?
|
|
3352
|
+
parsedOptions: this.shouldParseSkeletons ? En(N) : {}
|
|
3353
|
+
}, O = a === "date" ? v.date : v.time;
|
|
3311
3354
|
return {
|
|
3312
|
-
val: { type: O, value: n, location:
|
|
3355
|
+
val: { type: O, value: n, location: b, style: f },
|
|
3313
3356
|
err: null
|
|
3314
3357
|
};
|
|
3315
3358
|
}
|
|
3316
3359
|
}
|
|
3317
3360
|
return {
|
|
3318
3361
|
val: {
|
|
3319
|
-
type: a === "number" ?
|
|
3362
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3320
3363
|
value: n,
|
|
3321
|
-
location:
|
|
3364
|
+
location: b,
|
|
3322
3365
|
style: (o = h?.style) !== null && o !== void 0 ? o : null
|
|
3323
3366
|
},
|
|
3324
3367
|
err: null
|
|
@@ -3327,40 +3370,40 @@ var Rn = (
|
|
|
3327
3370
|
case "plural":
|
|
3328
3371
|
case "selectordinal":
|
|
3329
3372
|
case "select": {
|
|
3330
|
-
var
|
|
3373
|
+
var x = this.clonePosition();
|
|
3331
3374
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3332
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(
|
|
3375
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(x, pe({}, x)));
|
|
3333
3376
|
this.bumpSpace();
|
|
3334
|
-
var
|
|
3335
|
-
if (a !== "select" &&
|
|
3377
|
+
var T = this.parseIdentifierIfPossible(), S = 0;
|
|
3378
|
+
if (a !== "select" && T.value === "offset") {
|
|
3336
3379
|
if (!this.bumpIf(":"))
|
|
3337
3380
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3338
3381
|
this.bumpSpace();
|
|
3339
3382
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3340
3383
|
if (c.err)
|
|
3341
3384
|
return c;
|
|
3342
|
-
this.bumpSpace(),
|
|
3385
|
+
this.bumpSpace(), T = this.parseIdentifierIfPossible(), S = c.val;
|
|
3343
3386
|
}
|
|
3344
|
-
var M = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3387
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, T);
|
|
3345
3388
|
if (M.err)
|
|
3346
3389
|
return M;
|
|
3347
|
-
var
|
|
3348
|
-
if (
|
|
3349
|
-
return
|
|
3390
|
+
var g = this.tryParseArgumentClose(i);
|
|
3391
|
+
if (g.err)
|
|
3392
|
+
return g;
|
|
3350
3393
|
var ne = d(i, this.clonePosition());
|
|
3351
3394
|
return a === "select" ? {
|
|
3352
3395
|
val: {
|
|
3353
|
-
type:
|
|
3396
|
+
type: v.select,
|
|
3354
3397
|
value: n,
|
|
3355
|
-
options:
|
|
3398
|
+
options: mt(M.val),
|
|
3356
3399
|
location: ne
|
|
3357
3400
|
},
|
|
3358
3401
|
err: null
|
|
3359
3402
|
} : {
|
|
3360
3403
|
val: {
|
|
3361
|
-
type:
|
|
3404
|
+
type: v.plural,
|
|
3362
3405
|
value: n,
|
|
3363
|
-
options:
|
|
3406
|
+
options: mt(M.val),
|
|
3364
3407
|
offset: S,
|
|
3365
3408
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3366
3409
|
location: ne
|
|
@@ -3411,16 +3454,16 @@ var Rn = (
|
|
|
3411
3454
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3412
3455
|
var n = [];
|
|
3413
3456
|
try {
|
|
3414
|
-
n =
|
|
3457
|
+
n = xn(t);
|
|
3415
3458
|
} catch {
|
|
3416
3459
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3417
3460
|
}
|
|
3418
3461
|
return {
|
|
3419
3462
|
val: {
|
|
3420
|
-
type:
|
|
3463
|
+
type: j.number,
|
|
3421
3464
|
tokens: n,
|
|
3422
3465
|
location: r,
|
|
3423
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3466
|
+
parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
|
|
3424
3467
|
},
|
|
3425
3468
|
err: null
|
|
3426
3469
|
};
|
|
@@ -3442,16 +3485,16 @@ var Rn = (
|
|
|
3442
3485
|
var m = this.clonePosition();
|
|
3443
3486
|
if (!this.bumpIf("{"))
|
|
3444
3487
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3445
|
-
var
|
|
3446
|
-
if (y.err)
|
|
3447
|
-
return y;
|
|
3448
|
-
var g = this.tryParseArgumentClose(m);
|
|
3488
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3449
3489
|
if (g.err)
|
|
3450
3490
|
return g;
|
|
3491
|
+
var b = this.tryParseArgumentClose(m);
|
|
3492
|
+
if (b.err)
|
|
3493
|
+
return b;
|
|
3451
3494
|
a.push([
|
|
3452
3495
|
h,
|
|
3453
3496
|
{
|
|
3454
|
-
value:
|
|
3497
|
+
value: g.val,
|
|
3455
3498
|
location: d(m, this.clonePosition())
|
|
3456
3499
|
}
|
|
3457
3500
|
]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
|
|
@@ -3468,7 +3511,7 @@ var Rn = (
|
|
|
3468
3511
|
break;
|
|
3469
3512
|
}
|
|
3470
3513
|
var u = d(i, this.clonePosition());
|
|
3471
|
-
return o ? (s *= n,
|
|
3514
|
+
return o ? (s *= n, Un(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3472
3515
|
}, e.prototype.offset = function() {
|
|
3473
3516
|
return this.position.offset;
|
|
3474
3517
|
}, e.prototype.isEOF = function() {
|
|
@@ -3483,7 +3526,7 @@ var Rn = (
|
|
|
3483
3526
|
var t = this.position.offset;
|
|
3484
3527
|
if (t >= this.message.length)
|
|
3485
3528
|
throw Error("out of bound");
|
|
3486
|
-
var r =
|
|
3529
|
+
var r = Zt(this.message, t);
|
|
3487
3530
|
if (r === void 0)
|
|
3488
3531
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3489
3532
|
return r;
|
|
@@ -3502,7 +3545,7 @@ var Rn = (
|
|
|
3502
3545
|
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);
|
|
3503
3546
|
}
|
|
3504
3547
|
}, e.prototype.bumpIf = function(t) {
|
|
3505
|
-
if (
|
|
3548
|
+
if (pt(this.message, t, this.offset())) {
|
|
3506
3549
|
for (var r = 0; r < t.length; r++)
|
|
3507
3550
|
this.bump();
|
|
3508
3551
|
return !0;
|
|
@@ -3524,7 +3567,7 @@ var Rn = (
|
|
|
3524
3567
|
break;
|
|
3525
3568
|
}
|
|
3526
3569
|
}, e.prototype.bumpSpace = function() {
|
|
3527
|
-
for (; !this.isEOF() &&
|
|
3570
|
+
for (; !this.isEOF() && Jt(this.char()); )
|
|
3528
3571
|
this.bump();
|
|
3529
3572
|
}, e.prototype.peek = function() {
|
|
3530
3573
|
if (this.isEOF())
|
|
@@ -3534,47 +3577,47 @@ var Rn = (
|
|
|
3534
3577
|
}, e;
|
|
3535
3578
|
}()
|
|
3536
3579
|
);
|
|
3537
|
-
function
|
|
3580
|
+
function ke(e) {
|
|
3538
3581
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3539
3582
|
}
|
|
3540
|
-
function
|
|
3541
|
-
return
|
|
3583
|
+
function kn(e) {
|
|
3584
|
+
return ke(e) || e === 47;
|
|
3542
3585
|
}
|
|
3543
|
-
function
|
|
3586
|
+
function Vn(e) {
|
|
3544
3587
|
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;
|
|
3545
3588
|
}
|
|
3546
|
-
function
|
|
3589
|
+
function Jt(e) {
|
|
3547
3590
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3548
3591
|
}
|
|
3549
|
-
function
|
|
3592
|
+
function Xn(e) {
|
|
3550
3593
|
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;
|
|
3551
3594
|
}
|
|
3552
|
-
function
|
|
3595
|
+
function Ve(e) {
|
|
3553
3596
|
e.forEach(function(t) {
|
|
3554
|
-
if (delete t.location,
|
|
3597
|
+
if (delete t.location, Gt(t) || Ft(t))
|
|
3555
3598
|
for (var r in t.options)
|
|
3556
|
-
delete t.options[r].location,
|
|
3599
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3557
3600
|
else
|
|
3558
|
-
|
|
3601
|
+
Rt(t) && kt(t.style) || (Ut(t) || Dt(t)) && De(t.style) ? delete t.style.location : jt(t) && Ve(t.children);
|
|
3559
3602
|
});
|
|
3560
3603
|
}
|
|
3561
|
-
function
|
|
3562
|
-
t === void 0 && (t = {}), t =
|
|
3563
|
-
var r = new
|
|
3604
|
+
function zn(e, t) {
|
|
3605
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3606
|
+
var r = new jn(e, t).parse();
|
|
3564
3607
|
if (r.err) {
|
|
3565
3608
|
var n = SyntaxError(p[r.err.kind]);
|
|
3566
3609
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3567
3610
|
}
|
|
3568
|
-
return t?.captureLocation ||
|
|
3611
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3569
3612
|
}
|
|
3570
|
-
var
|
|
3613
|
+
var k;
|
|
3571
3614
|
(function(e) {
|
|
3572
3615
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3573
|
-
})(
|
|
3574
|
-
var
|
|
3616
|
+
})(k || (k = {}));
|
|
3617
|
+
var ve = (
|
|
3575
3618
|
/** @class */
|
|
3576
3619
|
function(e) {
|
|
3577
|
-
|
|
3620
|
+
ye(t, e);
|
|
3578
3621
|
function t(r, n, i) {
|
|
3579
3622
|
var o = e.call(this, r) || this;
|
|
3580
3623
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3583,155 +3626,155 @@ var ge = (
|
|
|
3583
3626
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3584
3627
|
}, t;
|
|
3585
3628
|
}(Error)
|
|
3586
|
-
),
|
|
3629
|
+
), bt = (
|
|
3587
3630
|
/** @class */
|
|
3588
3631
|
function(e) {
|
|
3589
|
-
|
|
3632
|
+
ye(t, e);
|
|
3590
3633
|
function t(r, n, i, o) {
|
|
3591
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3634
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, o) || this;
|
|
3592
3635
|
}
|
|
3593
3636
|
return t;
|
|
3594
|
-
}(
|
|
3595
|
-
),
|
|
3637
|
+
}(ve)
|
|
3638
|
+
), Wn = (
|
|
3596
3639
|
/** @class */
|
|
3597
3640
|
function(e) {
|
|
3598
|
-
|
|
3641
|
+
ye(t, e);
|
|
3599
3642
|
function t(r, n, i) {
|
|
3600
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3643
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
|
3601
3644
|
}
|
|
3602
3645
|
return t;
|
|
3603
|
-
}(
|
|
3604
|
-
),
|
|
3646
|
+
}(ve)
|
|
3647
|
+
), Zn = (
|
|
3605
3648
|
/** @class */
|
|
3606
3649
|
function(e) {
|
|
3607
|
-
|
|
3650
|
+
ye(t, e);
|
|
3608
3651
|
function t(r, n) {
|
|
3609
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3652
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
|
|
3610
3653
|
}
|
|
3611
3654
|
return t;
|
|
3612
|
-
}(
|
|
3613
|
-
),
|
|
3655
|
+
}(ve)
|
|
3656
|
+
), _;
|
|
3614
3657
|
(function(e) {
|
|
3615
3658
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3616
|
-
})(
|
|
3617
|
-
function
|
|
3659
|
+
})(_ || (_ = {}));
|
|
3660
|
+
function Qn(e) {
|
|
3618
3661
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3619
3662
|
var n = t[t.length - 1];
|
|
3620
|
-
return !n || n.type !==
|
|
3663
|
+
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3621
3664
|
}, []);
|
|
3622
3665
|
}
|
|
3623
|
-
function
|
|
3666
|
+
function Jn(e) {
|
|
3624
3667
|
return typeof e == "function";
|
|
3625
3668
|
}
|
|
3626
3669
|
function le(e, t, r, n, i, o, s) {
|
|
3627
|
-
if (e.length === 1 &&
|
|
3670
|
+
if (e.length === 1 && ht(e[0]))
|
|
3628
3671
|
return [
|
|
3629
3672
|
{
|
|
3630
|
-
type:
|
|
3673
|
+
type: _.literal,
|
|
3631
3674
|
value: e[0].value
|
|
3632
3675
|
}
|
|
3633
3676
|
];
|
|
3634
3677
|
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
|
3635
3678
|
var l = h[u];
|
|
3636
|
-
if (
|
|
3679
|
+
if (ht(l)) {
|
|
3637
3680
|
a.push({
|
|
3638
|
-
type:
|
|
3681
|
+
type: _.literal,
|
|
3639
3682
|
value: l.value
|
|
3640
3683
|
});
|
|
3641
3684
|
continue;
|
|
3642
3685
|
}
|
|
3643
|
-
if (
|
|
3686
|
+
if (yn(l)) {
|
|
3644
3687
|
typeof o == "number" && a.push({
|
|
3645
|
-
type:
|
|
3688
|
+
type: _.literal,
|
|
3646
3689
|
value: r.getNumberFormat(t).format(o)
|
|
3647
3690
|
});
|
|
3648
3691
|
continue;
|
|
3649
3692
|
}
|
|
3650
3693
|
var c = l.value;
|
|
3651
3694
|
if (!(i && c in i))
|
|
3652
|
-
throw new
|
|
3695
|
+
throw new Zn(c, s);
|
|
3653
3696
|
var f = i[c];
|
|
3654
|
-
if (
|
|
3697
|
+
if (gn(l)) {
|
|
3655
3698
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3656
|
-
type: typeof f == "string" ?
|
|
3699
|
+
type: typeof f == "string" ? _.literal : _.object,
|
|
3657
3700
|
value: f
|
|
3658
3701
|
});
|
|
3659
3702
|
continue;
|
|
3660
3703
|
}
|
|
3661
|
-
if (
|
|
3662
|
-
var m = typeof l.style == "string" ? n.date[l.style] :
|
|
3704
|
+
if (Ut(l)) {
|
|
3705
|
+
var m = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3663
3706
|
a.push({
|
|
3664
|
-
type:
|
|
3707
|
+
type: _.literal,
|
|
3665
3708
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3666
3709
|
});
|
|
3667
3710
|
continue;
|
|
3668
3711
|
}
|
|
3669
|
-
if (
|
|
3670
|
-
var m = typeof l.style == "string" ? n.time[l.style] :
|
|
3712
|
+
if (Dt(l)) {
|
|
3713
|
+
var m = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3671
3714
|
a.push({
|
|
3672
|
-
type:
|
|
3715
|
+
type: _.literal,
|
|
3673
3716
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3674
3717
|
});
|
|
3675
3718
|
continue;
|
|
3676
3719
|
}
|
|
3677
|
-
if (
|
|
3678
|
-
var m = typeof l.style == "string" ? n.number[l.style] :
|
|
3720
|
+
if (Rt(l)) {
|
|
3721
|
+
var m = typeof l.style == "string" ? n.number[l.style] : kt(l.style) ? l.style.parsedOptions : void 0;
|
|
3679
3722
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3680
|
-
type:
|
|
3723
|
+
type: _.literal,
|
|
3681
3724
|
value: r.getNumberFormat(t, m).format(f)
|
|
3682
3725
|
});
|
|
3683
3726
|
continue;
|
|
3684
3727
|
}
|
|
3685
|
-
if (
|
|
3686
|
-
var
|
|
3687
|
-
if (!
|
|
3688
|
-
throw new
|
|
3689
|
-
var N = le(
|
|
3728
|
+
if (jt(l)) {
|
|
3729
|
+
var g = l.children, b = l.value, B = i[b];
|
|
3730
|
+
if (!Jn(B))
|
|
3731
|
+
throw new Wn(b, "function", s);
|
|
3732
|
+
var N = le(g, t, r, n, i, o), O = B(N.map(function(S) {
|
|
3690
3733
|
return S.value;
|
|
3691
3734
|
}));
|
|
3692
3735
|
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(S) {
|
|
3693
3736
|
return {
|
|
3694
|
-
type: typeof S == "string" ?
|
|
3737
|
+
type: typeof S == "string" ? _.literal : _.object,
|
|
3695
3738
|
value: S
|
|
3696
3739
|
};
|
|
3697
3740
|
}));
|
|
3698
3741
|
}
|
|
3699
|
-
if (
|
|
3700
|
-
var
|
|
3701
|
-
if (!
|
|
3702
|
-
throw new
|
|
3703
|
-
a.push.apply(a, le(
|
|
3742
|
+
if (Gt(l)) {
|
|
3743
|
+
var x = l.options[f] || l.options.other;
|
|
3744
|
+
if (!x)
|
|
3745
|
+
throw new bt(l.value, f, Object.keys(l.options), s);
|
|
3746
|
+
a.push.apply(a, le(x.value, t, r, n, i));
|
|
3704
3747
|
continue;
|
|
3705
3748
|
}
|
|
3706
|
-
if (
|
|
3707
|
-
var
|
|
3708
|
-
if (!
|
|
3749
|
+
if (Ft(l)) {
|
|
3750
|
+
var x = l.options["=".concat(f)];
|
|
3751
|
+
if (!x) {
|
|
3709
3752
|
if (!Intl.PluralRules)
|
|
3710
|
-
throw new
|
|
3753
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3711
3754
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3712
|
-
`,
|
|
3713
|
-
var
|
|
3714
|
-
|
|
3755
|
+
`, k.MISSING_INTL_API, s);
|
|
3756
|
+
var T = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3757
|
+
x = l.options[T] || l.options.other;
|
|
3715
3758
|
}
|
|
3716
|
-
if (!
|
|
3717
|
-
throw new
|
|
3718
|
-
a.push.apply(a, le(
|
|
3759
|
+
if (!x)
|
|
3760
|
+
throw new bt(l.value, f, Object.keys(l.options), s);
|
|
3761
|
+
a.push.apply(a, le(x.value, t, r, n, i, f - (l.offset || 0)));
|
|
3719
3762
|
continue;
|
|
3720
3763
|
}
|
|
3721
3764
|
}
|
|
3722
|
-
return
|
|
3765
|
+
return Qn(a);
|
|
3723
3766
|
}
|
|
3724
|
-
function
|
|
3725
|
-
return t ?
|
|
3726
|
-
return r[n] =
|
|
3767
|
+
function Yn(e, t) {
|
|
3768
|
+
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3769
|
+
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
|
3727
3770
|
}, {})) : e;
|
|
3728
3771
|
}
|
|
3729
|
-
function
|
|
3772
|
+
function qn(e, t) {
|
|
3730
3773
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3731
|
-
return r[n] =
|
|
3732
|
-
},
|
|
3774
|
+
return r[n] = Yn(e[n], t[n]), r;
|
|
3775
|
+
}, H({}, e)) : e;
|
|
3733
3776
|
}
|
|
3734
|
-
function
|
|
3777
|
+
function Pe(e) {
|
|
3735
3778
|
return {
|
|
3736
3779
|
create: function() {
|
|
3737
3780
|
return {
|
|
@@ -3745,39 +3788,39 @@ function Te(e) {
|
|
|
3745
3788
|
}
|
|
3746
3789
|
};
|
|
3747
3790
|
}
|
|
3748
|
-
function
|
|
3791
|
+
function Kn(e) {
|
|
3749
3792
|
return e === void 0 && (e = {
|
|
3750
3793
|
number: {},
|
|
3751
3794
|
dateTime: {},
|
|
3752
3795
|
pluralRules: {}
|
|
3753
3796
|
}), {
|
|
3754
|
-
getNumberFormat:
|
|
3797
|
+
getNumberFormat: we(function() {
|
|
3755
3798
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3756
3799
|
r[n] = arguments[n];
|
|
3757
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3800
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3758
3801
|
}, {
|
|
3759
|
-
cache:
|
|
3760
|
-
strategy:
|
|
3802
|
+
cache: Pe(e.number),
|
|
3803
|
+
strategy: Te.variadic
|
|
3761
3804
|
}),
|
|
3762
|
-
getDateTimeFormat:
|
|
3805
|
+
getDateTimeFormat: we(function() {
|
|
3763
3806
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3764
3807
|
r[n] = arguments[n];
|
|
3765
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3808
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3766
3809
|
}, {
|
|
3767
|
-
cache:
|
|
3768
|
-
strategy:
|
|
3810
|
+
cache: Pe(e.dateTime),
|
|
3811
|
+
strategy: Te.variadic
|
|
3769
3812
|
}),
|
|
3770
|
-
getPluralRules:
|
|
3813
|
+
getPluralRules: we(function() {
|
|
3771
3814
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3772
3815
|
r[n] = arguments[n];
|
|
3773
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3816
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3774
3817
|
}, {
|
|
3775
|
-
cache:
|
|
3776
|
-
strategy:
|
|
3818
|
+
cache: Pe(e.pluralRules),
|
|
3819
|
+
strategy: Te.variadic
|
|
3777
3820
|
})
|
|
3778
3821
|
};
|
|
3779
3822
|
}
|
|
3780
|
-
var
|
|
3823
|
+
var ei = (
|
|
3781
3824
|
/** @class */
|
|
3782
3825
|
function() {
|
|
3783
3826
|
function e(t, r, n, i) {
|
|
@@ -3792,7 +3835,7 @@ var Qn = (
|
|
|
3792
3835
|
if (h.length === 1)
|
|
3793
3836
|
return h[0].value;
|
|
3794
3837
|
var l = h.reduce(function(c, f) {
|
|
3795
|
-
return !c.length || f.type !==
|
|
3838
|
+
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3796
3839
|
}, []);
|
|
3797
3840
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3798
3841
|
}, this.formatToParts = function(u) {
|
|
@@ -3809,13 +3852,13 @@ var Qn = (
|
|
|
3809
3852
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3810
3853
|
var s = i || {};
|
|
3811
3854
|
s.formatters;
|
|
3812
|
-
var a =
|
|
3813
|
-
this.ast = e.__parse(t,
|
|
3855
|
+
var a = hn(s, ["formatters"]);
|
|
3856
|
+
this.ast = e.__parse(t, H(H({}, a), { locale: this.resolvedLocale }));
|
|
3814
3857
|
} else
|
|
3815
3858
|
this.ast = t;
|
|
3816
3859
|
if (!Array.isArray(this.ast))
|
|
3817
3860
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3818
|
-
this.formats =
|
|
3861
|
+
this.formats = qn(e.formats, n), this.formatters = i && i.formatters || Kn(this.formatterCache);
|
|
3819
3862
|
}
|
|
3820
3863
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3821
3864
|
get: function() {
|
|
@@ -3828,7 +3871,7 @@ var Qn = (
|
|
|
3828
3871
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3829
3872
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3830
3873
|
}
|
|
3831
|
-
}, e.__parse =
|
|
3874
|
+
}, e.__parse = zn, e.formats = {
|
|
3832
3875
|
number: {
|
|
3833
3876
|
integer: {
|
|
3834
3877
|
maximumFractionDigits: 0
|
|
@@ -3889,7 +3932,7 @@ var Qn = (
|
|
|
3889
3932
|
}, e;
|
|
3890
3933
|
}()
|
|
3891
3934
|
);
|
|
3892
|
-
function
|
|
3935
|
+
function ti(e, t) {
|
|
3893
3936
|
if (t == null)
|
|
3894
3937
|
return;
|
|
3895
3938
|
if (t in e)
|
|
@@ -3910,92 +3953,92 @@ function Jn(e, t) {
|
|
|
3910
3953
|
n = void 0;
|
|
3911
3954
|
return n;
|
|
3912
3955
|
}
|
|
3913
|
-
const I = {},
|
|
3956
|
+
const I = {}, ri = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Yt = (e, t) => {
|
|
3914
3957
|
if (t == null)
|
|
3915
3958
|
return;
|
|
3916
3959
|
if (t in I && e in I[t])
|
|
3917
3960
|
return I[t][e];
|
|
3918
|
-
const r =
|
|
3961
|
+
const r = Ee(t);
|
|
3919
3962
|
for (let n = 0; n < r.length; n++) {
|
|
3920
|
-
const i = r[n], o =
|
|
3963
|
+
const i = r[n], o = ii(i, e);
|
|
3921
3964
|
if (o)
|
|
3922
|
-
return
|
|
3965
|
+
return ri(e, t, o);
|
|
3923
3966
|
}
|
|
3924
3967
|
};
|
|
3925
|
-
let
|
|
3926
|
-
const re =
|
|
3927
|
-
function
|
|
3928
|
-
return
|
|
3968
|
+
let Qe;
|
|
3969
|
+
const re = ge({});
|
|
3970
|
+
function ni(e) {
|
|
3971
|
+
return Qe[e] || null;
|
|
3929
3972
|
}
|
|
3930
|
-
function
|
|
3931
|
-
return e in
|
|
3973
|
+
function qt(e) {
|
|
3974
|
+
return e in Qe;
|
|
3932
3975
|
}
|
|
3933
|
-
function
|
|
3934
|
-
if (!
|
|
3976
|
+
function ii(e, t) {
|
|
3977
|
+
if (!qt(e))
|
|
3935
3978
|
return null;
|
|
3936
|
-
const r =
|
|
3937
|
-
return
|
|
3979
|
+
const r = ni(e);
|
|
3980
|
+
return ti(r, t);
|
|
3938
3981
|
}
|
|
3939
|
-
function
|
|
3982
|
+
function oi(e) {
|
|
3940
3983
|
if (e == null)
|
|
3941
3984
|
return;
|
|
3942
|
-
const t =
|
|
3985
|
+
const t = Ee(e);
|
|
3943
3986
|
for (let r = 0; r < t.length; r++) {
|
|
3944
3987
|
const n = t[r];
|
|
3945
|
-
if (
|
|
3988
|
+
if (qt(n))
|
|
3946
3989
|
return n;
|
|
3947
3990
|
}
|
|
3948
3991
|
}
|
|
3949
|
-
function
|
|
3950
|
-
delete I[e], re.update((r) => (r[e] =
|
|
3992
|
+
function Kt(e, ...t) {
|
|
3993
|
+
delete I[e], re.update((r) => (r[e] = un.all([r[e] || {}, ...t]), r));
|
|
3951
3994
|
}
|
|
3952
|
-
|
|
3995
|
+
X(
|
|
3953
3996
|
[re],
|
|
3954
3997
|
([e]) => Object.keys(e)
|
|
3955
3998
|
);
|
|
3956
|
-
re.subscribe((e) =>
|
|
3999
|
+
re.subscribe((e) => Qe = e);
|
|
3957
4000
|
const ce = {};
|
|
3958
|
-
function
|
|
4001
|
+
function si(e, t) {
|
|
3959
4002
|
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3960
4003
|
}
|
|
3961
|
-
function
|
|
4004
|
+
function er(e) {
|
|
3962
4005
|
return ce[e];
|
|
3963
4006
|
}
|
|
3964
|
-
function
|
|
3965
|
-
return
|
|
3966
|
-
const r =
|
|
4007
|
+
function ai(e) {
|
|
4008
|
+
return Ee(e).map((t) => {
|
|
4009
|
+
const r = er(t);
|
|
3967
4010
|
return [t, r ? [...r] : []];
|
|
3968
4011
|
}).filter(([, t]) => t.length > 0);
|
|
3969
4012
|
}
|
|
3970
|
-
function
|
|
3971
|
-
return e == null ? !1 :
|
|
4013
|
+
function Xe(e) {
|
|
4014
|
+
return e == null ? !1 : Ee(e).some(
|
|
3972
4015
|
(t) => {
|
|
3973
4016
|
var r;
|
|
3974
|
-
return (r =
|
|
4017
|
+
return (r = er(t)) == null ? void 0 : r.size;
|
|
3975
4018
|
}
|
|
3976
4019
|
);
|
|
3977
4020
|
}
|
|
3978
|
-
function
|
|
4021
|
+
function ui(e, t) {
|
|
3979
4022
|
return Promise.all(
|
|
3980
|
-
t.map((n) => (
|
|
3981
|
-
).then((n) =>
|
|
3982
|
-
}
|
|
3983
|
-
const
|
|
3984
|
-
function
|
|
3985
|
-
if (!
|
|
3986
|
-
return e in
|
|
3987
|
-
const t =
|
|
3988
|
-
return
|
|
4023
|
+
t.map((n) => (si(e, n), n().then((i) => i.default || i)))
|
|
4024
|
+
).then((n) => Kt(e, ...n));
|
|
4025
|
+
}
|
|
4026
|
+
const Z = {};
|
|
4027
|
+
function tr(e) {
|
|
4028
|
+
if (!Xe(e))
|
|
4029
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
4030
|
+
const t = ai(e);
|
|
4031
|
+
return Z[e] = Promise.all(
|
|
3989
4032
|
t.map(
|
|
3990
|
-
([r, n]) =>
|
|
4033
|
+
([r, n]) => ui(r, n)
|
|
3991
4034
|
)
|
|
3992
4035
|
).then(() => {
|
|
3993
|
-
if (
|
|
3994
|
-
return
|
|
3995
|
-
delete
|
|
3996
|
-
}),
|
|
4036
|
+
if (Xe(e))
|
|
4037
|
+
return tr(e);
|
|
4038
|
+
delete Z[e];
|
|
4039
|
+
}), Z[e];
|
|
3997
4040
|
}
|
|
3998
|
-
const
|
|
4041
|
+
const hi = {
|
|
3999
4042
|
number: {
|
|
4000
4043
|
scientific: { notation: "scientific" },
|
|
4001
4044
|
engineering: { notation: "engineering" },
|
|
@@ -4024,135 +4067,135 @@ const ii = {
|
|
|
4024
4067
|
timeZoneName: "short"
|
|
4025
4068
|
}
|
|
4026
4069
|
}
|
|
4027
|
-
},
|
|
4070
|
+
}, li = {
|
|
4028
4071
|
fallbackLocale: null,
|
|
4029
4072
|
loadingDelay: 200,
|
|
4030
|
-
formats:
|
|
4073
|
+
formats: hi,
|
|
4031
4074
|
warnOnMissingMessages: !0,
|
|
4032
4075
|
handleMissingMessage: void 0,
|
|
4033
4076
|
ignoreTag: !0
|
|
4034
|
-
},
|
|
4035
|
-
function
|
|
4036
|
-
return
|
|
4077
|
+
}, ci = li;
|
|
4078
|
+
function V() {
|
|
4079
|
+
return ci;
|
|
4037
4080
|
}
|
|
4038
|
-
const
|
|
4039
|
-
var
|
|
4081
|
+
const Ae = ge(!1);
|
|
4082
|
+
var fi = Object.defineProperty, pi = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gi = (e, t) => {
|
|
4040
4083
|
for (var r in t || (t = {}))
|
|
4041
|
-
|
|
4042
|
-
if (
|
|
4043
|
-
for (var r of
|
|
4044
|
-
|
|
4084
|
+
di.call(t, r) && yt(e, r, t[r]);
|
|
4085
|
+
if (gt)
|
|
4086
|
+
for (var r of gt(t))
|
|
4087
|
+
bi.call(t, r) && yt(e, r, t[r]);
|
|
4045
4088
|
return e;
|
|
4046
|
-
},
|
|
4047
|
-
let
|
|
4048
|
-
const
|
|
4049
|
-
function
|
|
4089
|
+
}, yi = (e, t) => pi(e, mi(t));
|
|
4090
|
+
let ze;
|
|
4091
|
+
const me = ge(null);
|
|
4092
|
+
function vt(e) {
|
|
4050
4093
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4051
4094
|
}
|
|
4052
|
-
function
|
|
4053
|
-
const r =
|
|
4054
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4095
|
+
function Ee(e, t = V().fallbackLocale) {
|
|
4096
|
+
const r = vt(e);
|
|
4097
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
|
|
4055
4098
|
}
|
|
4056
4099
|
function C() {
|
|
4057
|
-
return
|
|
4100
|
+
return ze ?? void 0;
|
|
4058
4101
|
}
|
|
4059
|
-
|
|
4060
|
-
|
|
4102
|
+
me.subscribe((e) => {
|
|
4103
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4061
4104
|
});
|
|
4062
|
-
const
|
|
4063
|
-
if (e &&
|
|
4064
|
-
const { loadingDelay: t } =
|
|
4105
|
+
const vi = (e) => {
|
|
4106
|
+
if (e && oi(e) && Xe(e)) {
|
|
4107
|
+
const { loadingDelay: t } = V();
|
|
4065
4108
|
let r;
|
|
4066
4109
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
|
4067
|
-
() =>
|
|
4110
|
+
() => Ae.set(!0),
|
|
4068
4111
|
t
|
|
4069
|
-
) :
|
|
4070
|
-
|
|
4112
|
+
) : Ae.set(!0), tr(e).then(() => {
|
|
4113
|
+
me.set(e);
|
|
4071
4114
|
}).finally(() => {
|
|
4072
|
-
clearTimeout(r),
|
|
4115
|
+
clearTimeout(r), Ae.set(!1);
|
|
4073
4116
|
});
|
|
4074
4117
|
}
|
|
4075
|
-
return
|
|
4076
|
-
},
|
|
4077
|
-
set:
|
|
4078
|
-
}),
|
|
4118
|
+
return me.set(e);
|
|
4119
|
+
}, z = yi(gi({}, me), {
|
|
4120
|
+
set: vi
|
|
4121
|
+
}), _e = (e) => {
|
|
4079
4122
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4080
4123
|
return (n) => {
|
|
4081
4124
|
const i = JSON.stringify(n);
|
|
4082
4125
|
return i in t ? t[i] : t[i] = e(n);
|
|
4083
4126
|
};
|
|
4084
4127
|
};
|
|
4085
|
-
var
|
|
4128
|
+
var Ei = Object.defineProperty, de = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
4086
4129
|
for (var r in t || (t = {}))
|
|
4087
|
-
|
|
4088
|
-
if (
|
|
4089
|
-
for (var r of
|
|
4090
|
-
|
|
4130
|
+
rr.call(t, r) && Et(e, r, t[r]);
|
|
4131
|
+
if (de)
|
|
4132
|
+
for (var r of de(t))
|
|
4133
|
+
nr.call(t, r) && Et(e, r, t[r]);
|
|
4091
4134
|
return e;
|
|
4092
|
-
},
|
|
4135
|
+
}, W = (e, t) => {
|
|
4093
4136
|
var r = {};
|
|
4094
4137
|
for (var n in e)
|
|
4095
|
-
|
|
4096
|
-
if (e != null &&
|
|
4097
|
-
for (var n of
|
|
4098
|
-
t.indexOf(n) < 0 &&
|
|
4138
|
+
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4139
|
+
if (e != null && de)
|
|
4140
|
+
for (var n of de(e))
|
|
4141
|
+
t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
|
|
4099
4142
|
return r;
|
|
4100
4143
|
};
|
|
4101
|
-
const
|
|
4102
|
-
const { formats: r } =
|
|
4144
|
+
const K = (e, t) => {
|
|
4145
|
+
const { formats: r } = V();
|
|
4103
4146
|
if (e in r && t in r[e])
|
|
4104
4147
|
return r[e][t];
|
|
4105
4148
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4106
|
-
},
|
|
4149
|
+
}, _i = _e(
|
|
4107
4150
|
(e) => {
|
|
4108
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4151
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4109
4152
|
if (r == null)
|
|
4110
4153
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4111
|
-
return n && (i =
|
|
4154
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
4112
4155
|
}
|
|
4113
|
-
),
|
|
4156
|
+
), xi = _e(
|
|
4114
4157
|
(e) => {
|
|
4115
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4158
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4116
4159
|
if (r == null)
|
|
4117
4160
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4118
|
-
return n ? i =
|
|
4161
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4119
4162
|
}
|
|
4120
|
-
),
|
|
4163
|
+
), Si = _e(
|
|
4121
4164
|
(e) => {
|
|
4122
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4165
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4123
4166
|
if (r == null)
|
|
4124
4167
|
throw new Error(
|
|
4125
4168
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4126
4169
|
);
|
|
4127
|
-
return n ? i =
|
|
4170
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4128
4171
|
}
|
|
4129
|
-
),
|
|
4172
|
+
), Bi = (e = {}) => {
|
|
4130
4173
|
var t = e, {
|
|
4131
4174
|
locale: r = C()
|
|
4132
|
-
} = t, n =
|
|
4175
|
+
} = t, n = W(t, [
|
|
4133
4176
|
"locale"
|
|
4134
4177
|
]);
|
|
4135
|
-
return
|
|
4136
|
-
},
|
|
4178
|
+
return _i(Je({ locale: r }, n));
|
|
4179
|
+
}, wi = (e = {}) => {
|
|
4137
4180
|
var t = e, {
|
|
4138
4181
|
locale: r = C()
|
|
4139
|
-
} = t, n =
|
|
4182
|
+
} = t, n = W(t, [
|
|
4140
4183
|
"locale"
|
|
4141
4184
|
]);
|
|
4142
|
-
return
|
|
4143
|
-
},
|
|
4185
|
+
return xi(Je({ locale: r }, n));
|
|
4186
|
+
}, Ti = (e = {}) => {
|
|
4144
4187
|
var t = e, {
|
|
4145
4188
|
locale: r = C()
|
|
4146
|
-
} = t, n =
|
|
4189
|
+
} = t, n = W(t, [
|
|
4147
4190
|
"locale"
|
|
4148
4191
|
]);
|
|
4149
|
-
return
|
|
4150
|
-
},
|
|
4192
|
+
return Si(Je({ locale: r }, n));
|
|
4193
|
+
}, Hi = _e(
|
|
4151
4194
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4152
|
-
(e, t = C()) => new
|
|
4153
|
-
ignoreTag:
|
|
4195
|
+
(e, t = C()) => new ei(e, t, V().formats, {
|
|
4196
|
+
ignoreTag: V().ignoreTag
|
|
4154
4197
|
})
|
|
4155
|
-
),
|
|
4198
|
+
), Pi = (e, t = {}) => {
|
|
4156
4199
|
var r, n, i, o;
|
|
4157
4200
|
let s = t;
|
|
4158
4201
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4165,9 +4208,9 @@ const ee = (e, t) => {
|
|
|
4165
4208
|
throw new Error(
|
|
4166
4209
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4167
4210
|
);
|
|
4168
|
-
let l =
|
|
4211
|
+
let l = Yt(e, u);
|
|
4169
4212
|
if (!l)
|
|
4170
|
-
l = (o = (i = (n = (r =
|
|
4213
|
+
l = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
|
|
4171
4214
|
else if (typeof l != "string")
|
|
4172
4215
|
return console.warn(
|
|
4173
4216
|
`[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.`
|
|
@@ -4176,7 +4219,7 @@ const ee = (e, t) => {
|
|
|
4176
4219
|
return l;
|
|
4177
4220
|
let c = l;
|
|
4178
4221
|
try {
|
|
4179
|
-
c =
|
|
4222
|
+
c = Hi(l, u).format(a);
|
|
4180
4223
|
} catch (f) {
|
|
4181
4224
|
f instanceof Error && console.warn(
|
|
4182
4225
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4184,20 +4227,20 @@ const ee = (e, t) => {
|
|
|
4184
4227
|
);
|
|
4185
4228
|
}
|
|
4186
4229
|
return c;
|
|
4187
|
-
},
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
window.emWidgets = { topic:
|
|
4230
|
+
}, Ai = (e, t) => Ti(t).format(e), Oi = (e, t) => wi(t).format(e), Ii = (e, t) => Bi(t).format(e), Ni = (e, t = C()) => Yt(e, t), Li = X([z, re], () => Pi);
|
|
4231
|
+
X([z], () => Ai);
|
|
4232
|
+
X([z], () => Oi);
|
|
4233
|
+
X([z], () => Ii);
|
|
4234
|
+
X([z, re], () => Ni);
|
|
4235
|
+
window.emWidgets = { topic: Vr };
|
|
4193
4236
|
const se = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4194
|
-
function
|
|
4195
|
-
|
|
4237
|
+
function _t(e, t) {
|
|
4238
|
+
Kt(e, t);
|
|
4196
4239
|
}
|
|
4197
|
-
function
|
|
4198
|
-
|
|
4240
|
+
function Ci(e) {
|
|
4241
|
+
z.set(e);
|
|
4199
4242
|
}
|
|
4200
|
-
const
|
|
4243
|
+
const xt = {
|
|
4201
4244
|
en: {
|
|
4202
4245
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4203
4246
|
},
|
|
@@ -4238,10 +4281,10 @@ const gt = {
|
|
|
4238
4281
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4239
4282
|
}
|
|
4240
4283
|
};
|
|
4241
|
-
function
|
|
4242
|
-
|
|
4284
|
+
function Mi(e) {
|
|
4285
|
+
sr(e, "svelte-1mifytr", "*,*::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, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));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, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));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, #22B04E));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, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
|
|
4243
4286
|
}
|
|
4244
|
-
function
|
|
4287
|
+
function $i(e) {
|
|
4245
4288
|
let t, r, n, i = (
|
|
4246
4289
|
/*customtext*/
|
|
4247
4290
|
(e[0] || /*$_*/
|
|
@@ -4249,13 +4292,13 @@ function Ii(e) {
|
|
|
4249
4292
|
), o, s;
|
|
4250
4293
|
return {
|
|
4251
4294
|
c() {
|
|
4252
|
-
t =
|
|
4295
|
+
t = Q("div"), r = Q("div"), n = Q("button"), o = hr(i), L(n, "class", "PanicButton " + (se(
|
|
4253
4296
|
/*userAgent*/
|
|
4254
4297
|
e[6]
|
|
4255
4298
|
) !== "PC" ? "PanicButtonMobile" : "")), L(n, "part", "PanicButton " + (se(
|
|
4256
4299
|
/*userAgent*/
|
|
4257
4300
|
e[6]
|
|
4258
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4301
|
+
) !== "PC" ? "PanicButtonMobile" : "")), Ke(
|
|
4259
4302
|
n,
|
|
4260
4303
|
"PanicButtonAnimation",
|
|
4261
4304
|
/*panicLoading*/
|
|
@@ -4270,14 +4313,14 @@ function Ii(e) {
|
|
|
4270
4313
|
e[1] == "true" ? "PanicButtonV2" : "");
|
|
4271
4314
|
},
|
|
4272
4315
|
m(a, u) {
|
|
4273
|
-
|
|
4316
|
+
Tt(a, t, u), ae(t, r), ae(r, n), ae(n, o), e[12](n), e[13](t);
|
|
4274
4317
|
},
|
|
4275
4318
|
p(a, [u]) {
|
|
4276
4319
|
u & /*customtext, $_*/
|
|
4277
4320
|
33 && i !== (i = /*customtext*/
|
|
4278
4321
|
(a[0] || /*$_*/
|
|
4279
|
-
a[5]("panicButtonString")) + "") &&
|
|
4280
|
-
16 &&
|
|
4322
|
+
a[5]("panicButtonString")) + "") && cr(o, i), u & /*panicLoading*/
|
|
4323
|
+
16 && Ke(
|
|
4281
4324
|
n,
|
|
4282
4325
|
"PanicButtonAnimation",
|
|
4283
4326
|
/*panicLoading*/
|
|
@@ -4286,65 +4329,65 @@ function Ii(e) {
|
|
|
4286
4329
|
2 && s !== (s = /*alternativestyling*/
|
|
4287
4330
|
a[1] == "true" ? "PanicButtonV2" : "") && L(t, "class", s);
|
|
4288
4331
|
},
|
|
4289
|
-
i:
|
|
4290
|
-
o:
|
|
4332
|
+
i: w,
|
|
4333
|
+
o: w,
|
|
4291
4334
|
d(a) {
|
|
4292
|
-
a &&
|
|
4335
|
+
a && Ze(t), e[12](null), e[13](null);
|
|
4293
4336
|
}
|
|
4294
4337
|
};
|
|
4295
4338
|
}
|
|
4296
|
-
function
|
|
4339
|
+
function Ri(e, t, r) {
|
|
4297
4340
|
let n;
|
|
4298
|
-
|
|
4299
|
-
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1,
|
|
4341
|
+
or(e, Li, (y) => r(5, n = y));
|
|
4342
|
+
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, g = 0, b, B = window.navigator.userAgent;
|
|
4300
4343
|
const N = () => {
|
|
4301
4344
|
fetch(l).then(($) => $.json()).then(($) => {
|
|
4302
|
-
Object.keys($).forEach((
|
|
4303
|
-
|
|
4345
|
+
Object.keys($).forEach((Ye) => {
|
|
4346
|
+
_t(Ye, $[Ye]);
|
|
4304
4347
|
});
|
|
4305
4348
|
}).catch(($) => {
|
|
4306
4349
|
console.log($);
|
|
4307
4350
|
});
|
|
4308
4351
|
};
|
|
4309
|
-
Object.keys(
|
|
4310
|
-
|
|
4352
|
+
Object.keys(xt).forEach((y) => {
|
|
4353
|
+
_t(y, xt[y]);
|
|
4311
4354
|
});
|
|
4312
4355
|
const O = () => {
|
|
4313
|
-
c?.addEventListener("mousedown",
|
|
4314
|
-
},
|
|
4315
|
-
r(4, m = !1), c?.removeEventListener("mousedown",
|
|
4316
|
-
},
|
|
4317
|
-
|
|
4356
|
+
c?.addEventListener("mousedown", T, !1), c?.addEventListener("touchstart", T, !1), c?.addEventListener("mouseup", S, !1), c?.addEventListener("touchend", S, !1);
|
|
4357
|
+
}, x = () => {
|
|
4358
|
+
r(4, m = !1), c?.removeEventListener("mousedown", T), c?.removeEventListener("touchstart", T), c?.removeEventListener("mouseup", S), c?.removeEventListener("touchend", S);
|
|
4359
|
+
}, T = () => {
|
|
4360
|
+
g = 0, r(4, m = !0), b = setInterval(
|
|
4318
4361
|
() => {
|
|
4319
|
-
|
|
4362
|
+
g++, g >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(b), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
|
|
4320
4363
|
},
|
|
4321
4364
|
1e3
|
|
4322
4365
|
);
|
|
4323
4366
|
}, S = () => {
|
|
4324
|
-
r(4, m = !1), clearInterval(
|
|
4367
|
+
r(4, m = !1), clearInterval(b);
|
|
4325
4368
|
};
|
|
4326
|
-
|
|
4327
|
-
|
|
4369
|
+
mr(() => () => {
|
|
4370
|
+
x();
|
|
4328
4371
|
});
|
|
4329
|
-
function M(
|
|
4330
|
-
fe[
|
|
4331
|
-
c =
|
|
4372
|
+
function M(y) {
|
|
4373
|
+
fe[y ? "unshift" : "push"](() => {
|
|
4374
|
+
c = y, r(2, c);
|
|
4332
4375
|
});
|
|
4333
4376
|
}
|
|
4334
|
-
function ne(
|
|
4335
|
-
fe[
|
|
4336
|
-
f =
|
|
4377
|
+
function ne(y) {
|
|
4378
|
+
fe[y ? "unshift" : "push"](() => {
|
|
4379
|
+
f = y, r(3, f);
|
|
4337
4380
|
});
|
|
4338
4381
|
}
|
|
4339
|
-
return e.$$set = (
|
|
4340
|
-
"lang" in
|
|
4382
|
+
return e.$$set = (y) => {
|
|
4383
|
+
"lang" in y && r(7, i = y.lang), "customtext" in y && r(0, o = y.customtext), "clientstyling" in y && r(8, s = y.clientstyling), "clientstylingurl" in y && r(9, a = y.clientstylingurl), "mbsource" in y && r(10, u = y.mbsource), "alternativestyling" in y && r(1, h = y.alternativestyling), "translationurl" in y && r(11, l = y.translationurl);
|
|
4341
4384
|
}, e.$$.update = () => {
|
|
4342
4385
|
e.$$.dirty & /*panicButton*/
|
|
4343
4386
|
4 && c && O(), e.$$.dirty & /*lang*/
|
|
4344
|
-
128 && i &&
|
|
4345
|
-
264 && s && f &&
|
|
4346
|
-
520 && a && f &&
|
|
4347
|
-
1032 && u && f &&
|
|
4387
|
+
128 && i && Ci(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4388
|
+
264 && s && f && Pr(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4389
|
+
520 && a && f && Ar(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4390
|
+
1032 && u && f && Or(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4348
4391
|
2048 && l && N();
|
|
4349
4392
|
}, [
|
|
4350
4393
|
o,
|
|
@@ -4363,14 +4406,14 @@ function Ni(e, t, r) {
|
|
|
4363
4406
|
ne
|
|
4364
4407
|
];
|
|
4365
4408
|
}
|
|
4366
|
-
class
|
|
4409
|
+
class Ui extends Tr {
|
|
4367
4410
|
constructor(t) {
|
|
4368
|
-
super(),
|
|
4411
|
+
super(), Br(
|
|
4369
4412
|
this,
|
|
4370
4413
|
t,
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4414
|
+
Ri,
|
|
4415
|
+
$i,
|
|
4416
|
+
Bt,
|
|
4374
4417
|
{
|
|
4375
4418
|
lang: 7,
|
|
4376
4419
|
customtext: 0,
|
|
@@ -4380,53 +4423,53 @@ class Li extends xr {
|
|
|
4380
4423
|
alternativestyling: 1,
|
|
4381
4424
|
translationurl: 11
|
|
4382
4425
|
},
|
|
4383
|
-
|
|
4426
|
+
Mi
|
|
4384
4427
|
);
|
|
4385
4428
|
}
|
|
4386
4429
|
get lang() {
|
|
4387
4430
|
return this.$$.ctx[7];
|
|
4388
4431
|
}
|
|
4389
4432
|
set lang(t) {
|
|
4390
|
-
this.$$set({ lang: t }),
|
|
4433
|
+
this.$$set({ lang: t }), P();
|
|
4391
4434
|
}
|
|
4392
4435
|
get customtext() {
|
|
4393
4436
|
return this.$$.ctx[0];
|
|
4394
4437
|
}
|
|
4395
4438
|
set customtext(t) {
|
|
4396
|
-
this.$$set({ customtext: t }),
|
|
4439
|
+
this.$$set({ customtext: t }), P();
|
|
4397
4440
|
}
|
|
4398
4441
|
get clientstyling() {
|
|
4399
4442
|
return this.$$.ctx[8];
|
|
4400
4443
|
}
|
|
4401
4444
|
set clientstyling(t) {
|
|
4402
|
-
this.$$set({ clientstyling: t }),
|
|
4445
|
+
this.$$set({ clientstyling: t }), P();
|
|
4403
4446
|
}
|
|
4404
4447
|
get clientstylingurl() {
|
|
4405
4448
|
return this.$$.ctx[9];
|
|
4406
4449
|
}
|
|
4407
4450
|
set clientstylingurl(t) {
|
|
4408
|
-
this.$$set({ clientstylingurl: t }),
|
|
4451
|
+
this.$$set({ clientstylingurl: t }), P();
|
|
4409
4452
|
}
|
|
4410
4453
|
get mbsource() {
|
|
4411
4454
|
return this.$$.ctx[10];
|
|
4412
4455
|
}
|
|
4413
4456
|
set mbsource(t) {
|
|
4414
|
-
this.$$set({ mbsource: t }),
|
|
4457
|
+
this.$$set({ mbsource: t }), P();
|
|
4415
4458
|
}
|
|
4416
4459
|
get alternativestyling() {
|
|
4417
4460
|
return this.$$.ctx[1];
|
|
4418
4461
|
}
|
|
4419
4462
|
set alternativestyling(t) {
|
|
4420
|
-
this.$$set({ alternativestyling: t }),
|
|
4463
|
+
this.$$set({ alternativestyling: t }), P();
|
|
4421
4464
|
}
|
|
4422
4465
|
get translationurl() {
|
|
4423
4466
|
return this.$$.ctx[11];
|
|
4424
4467
|
}
|
|
4425
4468
|
set translationurl(t) {
|
|
4426
|
-
this.$$set({ translationurl: t }),
|
|
4469
|
+
this.$$set({ translationurl: t }), P();
|
|
4427
4470
|
}
|
|
4428
4471
|
}
|
|
4429
|
-
|
|
4472
|
+
wr(Ui, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
|
|
4430
4473
|
export {
|
|
4431
|
-
|
|
4474
|
+
Ui as P
|
|
4432
4475
|
};
|