@everymatrix/player-panic-button 1.74.3 → 1.74.4
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-DpaxzQmz.js → PlayerPanicButton-CERsF5Pr.js} +698 -684
- package/components/PlayerPanicButton-DQ4mYjLE.cjs +18 -0
- package/components/{PlayerPanicButton-kvRbaraB.js → PlayerPanicButton-hR3U-jzg.js} +583 -569
- 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-ClwDjGaA.cjs +0 -18
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function T() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function xt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function te(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(xt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ke(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _t(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function nr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function St(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function xt(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function ir(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(St(t, r));
|
|
32
32
|
}
|
|
33
33
|
function ae(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function or(e, t, r) {
|
|
37
|
+
const n = sr(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = J("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, ar(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function sr(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,39 +50,39 @@ function nr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function ar(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 Bt(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Ve(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
66
|
function J(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ur(e) {
|
|
70
70
|
return document.createTextNode(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function N(e, t, r) {
|
|
73
73
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function hr(e) {
|
|
76
76
|
return Array.from(e.childNodes);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function lr(e, t) {
|
|
79
79
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
80
80
|
t);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Ye(e, t, r) {
|
|
83
83
|
e.classList.toggle(t, !!r);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function cr(e) {
|
|
86
86
|
const t = {};
|
|
87
87
|
return e.childNodes.forEach(
|
|
88
88
|
/** @param {Element} node */
|
|
@@ -95,23 +95,23 @@ let q;
|
|
|
95
95
|
function Y(e) {
|
|
96
96
|
q = e;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function fr() {
|
|
99
99
|
if (!q)
|
|
100
100
|
throw new Error("Function called outside component initialization");
|
|
101
101
|
return q;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
103
|
+
function pr(e) {
|
|
104
|
+
fr().$$.on_mount.push(e);
|
|
105
105
|
}
|
|
106
106
|
const D = [], fe = [];
|
|
107
|
-
let
|
|
108
|
-
const
|
|
109
|
-
let
|
|
110
|
-
function
|
|
111
|
-
|
|
107
|
+
let F = [];
|
|
108
|
+
const qe = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
109
|
+
let Pe = !1;
|
|
110
|
+
function dr() {
|
|
111
|
+
Pe || (Pe = !0, mr.then(H));
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function Ae(e) {
|
|
114
|
+
F.push(e);
|
|
115
115
|
}
|
|
116
116
|
const Ee = /* @__PURE__ */ new Set();
|
|
117
117
|
let R = 0;
|
|
@@ -123,53 +123,53 @@ function H() {
|
|
|
123
123
|
try {
|
|
124
124
|
for (; R < D.length; ) {
|
|
125
125
|
const t = D[R];
|
|
126
|
-
R++, Y(t),
|
|
126
|
+
R++, Y(t), br(t.$$);
|
|
127
127
|
}
|
|
128
128
|
} catch (t) {
|
|
129
129
|
throw D.length = 0, R = 0, t;
|
|
130
130
|
}
|
|
131
131
|
for (Y(null), D.length = 0, R = 0; fe.length; )
|
|
132
132
|
fe.pop()();
|
|
133
|
-
for (let t = 0; t <
|
|
134
|
-
const r =
|
|
133
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
134
|
+
const r = F[t];
|
|
135
135
|
Ee.has(r) || (Ee.add(r), r());
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
F.length = 0;
|
|
138
138
|
} while (D.length);
|
|
139
|
-
for (;
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
for (; qe.length; )
|
|
140
|
+
qe.pop()();
|
|
141
|
+
Pe = !1, Ee.clear(), Y(e);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function br(e) {
|
|
144
144
|
if (e.fragment !== null) {
|
|
145
145
|
e.update(), te(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(Ae);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function gr(e) {
|
|
151
151
|
const t = [], r = [];
|
|
152
|
-
|
|
152
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
function
|
|
156
|
-
e && e.i && (
|
|
154
|
+
const yr = /* @__PURE__ */ new Set();
|
|
155
|
+
function vr(e, t) {
|
|
156
|
+
e && e.i && (yr.delete(e), e.i(t));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Er(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(
|
|
160
|
+
n && n.m(t, r), Ae(() => {
|
|
161
|
+
const o = e.$$.on_mount.map(xt).filter(ke);
|
|
162
162
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
|
163
|
-
}), i.forEach(
|
|
163
|
+
}), i.forEach(Ae);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function xr(e, t) {
|
|
166
166
|
const r = e.$$;
|
|
167
|
-
r.fragment !== null && (
|
|
167
|
+
r.fragment !== null && (gr(r.after_update), te(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 _r(e, t) {
|
|
170
|
+
e.$$.dirty[0] === -1 && (D.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
173
173
|
const u = q;
|
|
174
174
|
Y(e);
|
|
175
175
|
const h = e.$$ = {
|
|
@@ -179,7 +179,7 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
179
179
|
props: o,
|
|
180
180
|
update: T,
|
|
181
181
|
not_equal: i,
|
|
182
|
-
bound:
|
|
182
|
+
bound: Je(),
|
|
183
183
|
// lifecycle
|
|
184
184
|
on_mount: [],
|
|
185
185
|
on_destroy: [],
|
|
@@ -188,28 +188,28 @@ function Er(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:
|
|
192
|
-
dirty:
|
|
191
|
+
callbacks: Je(),
|
|
192
|
+
dirty: s,
|
|
193
193
|
skip_bound: !1,
|
|
194
194
|
root: t.target || u.$$.root
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
a && a(h.root);
|
|
197
197
|
let l = !1;
|
|
198
|
-
if (h.ctx = r(e, t.props || {}, (c, f, ...
|
|
199
|
-
const y =
|
|
200
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] = y) && (!h.skip_bound && h.bound[c] && h.bound[c](y), l &&
|
|
201
|
-
}), h.update(), l = !0, te(h.before_update), h.fragment = n(h.ctx), t.target) {
|
|
198
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
199
|
+
const y = m.length ? m[0] : f;
|
|
200
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = y) && (!h.skip_bound && h.bound[c] && h.bound[c](y), l && _r(e, c)), f;
|
|
201
|
+
}) : [], h.update(), l = !0, te(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 = hr(t.target);
|
|
204
|
+
h.fragment && h.fragment.l(c), c.forEach(Ve);
|
|
205
205
|
} else
|
|
206
206
|
h.fragment && h.fragment.c();
|
|
207
|
-
t.intro &&
|
|
207
|
+
t.intro && vr(e.$$.fragment), Er(e, t.target, t.anchor), H();
|
|
208
208
|
}
|
|
209
209
|
Y(u);
|
|
210
210
|
}
|
|
211
|
-
let
|
|
212
|
-
typeof HTMLElement == "function" && (
|
|
211
|
+
let Tt;
|
|
212
|
+
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
213
213
|
/** The Svelte component constructor */
|
|
214
214
|
$$ctor;
|
|
215
215
|
/** Slots */
|
|
@@ -251,24 +251,24 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
251
251
|
let o;
|
|
252
252
|
return {
|
|
253
253
|
c: function() {
|
|
254
|
-
o = J("slot"), i !== "default" &&
|
|
254
|
+
o = J("slot"), i !== "default" && N(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
|
+
Bt(u, o, h);
|
|
262
262
|
},
|
|
263
263
|
d: function(u) {
|
|
264
|
-
u &&
|
|
264
|
+
u && Ve(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 = cr(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) {
|
|
@@ -304,8 +304,8 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
304
304
|
this.$$c.$$.after_update.push(n), n();
|
|
305
305
|
for (const i in this.$$l)
|
|
306
306
|
for (const o of this.$$l[i]) {
|
|
307
|
-
const
|
|
308
|
-
this.$$l_u.set(o,
|
|
307
|
+
const a = this.$$c.$on(i, o);
|
|
308
|
+
this.$$l_u.set(o, a);
|
|
309
309
|
}
|
|
310
310
|
this.$$l = {};
|
|
311
311
|
}
|
|
@@ -355,36 +355,36 @@ function ue(e, t, r, n) {
|
|
|
355
355
|
return t;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
let
|
|
358
|
+
function Br(e, t, r, n, i, o) {
|
|
359
|
+
let a = class extends Tt {
|
|
360
360
|
constructor() {
|
|
361
361
|
super(e, r, i), this.$$p_d = t;
|
|
362
362
|
}
|
|
363
363
|
static get observedAttributes() {
|
|
364
364
|
return Object.keys(t).map(
|
|
365
|
-
(
|
|
365
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
366
366
|
);
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
|
-
return Object.keys(t).forEach((
|
|
370
|
-
Object.defineProperty(
|
|
369
|
+
return Object.keys(t).forEach((s) => {
|
|
370
|
+
Object.defineProperty(a.prototype, s, {
|
|
371
371
|
get() {
|
|
372
|
-
return this.$$c &&
|
|
372
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
373
373
|
},
|
|
374
374
|
set(u) {
|
|
375
|
-
u = ue(
|
|
375
|
+
u = ue(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
|
-
}), n.forEach((
|
|
379
|
-
Object.defineProperty(
|
|
378
|
+
}), n.forEach((s) => {
|
|
379
|
+
Object.defineProperty(a.prototype, s, {
|
|
380
380
|
get() {
|
|
381
|
-
return this.$$c?.[
|
|
381
|
+
return this.$$c?.[s];
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}), e.element = /** @type {any} */
|
|
385
|
-
|
|
385
|
+
a, a;
|
|
386
386
|
}
|
|
387
|
-
class
|
|
387
|
+
class Tr {
|
|
388
388
|
/**
|
|
389
389
|
* ### PRIVATE API
|
|
390
390
|
*
|
|
@@ -403,7 +403,7 @@ class _r {
|
|
|
403
403
|
$$set = void 0;
|
|
404
404
|
/** @returns {void} */
|
|
405
405
|
$destroy() {
|
|
406
|
-
|
|
406
|
+
xr(this, 1), this.$destroy = T;
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
409
409
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -412,7 +412,7 @@ class _r {
|
|
|
412
412
|
* @returns {() => void}
|
|
413
413
|
*/
|
|
414
414
|
$on(t, r) {
|
|
415
|
-
if (!
|
|
415
|
+
if (!ke(r))
|
|
416
416
|
return T;
|
|
417
417
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
418
418
|
return n.push(r), () => {
|
|
@@ -425,18 +425,18 @@ class _r {
|
|
|
425
425
|
* @returns {void}
|
|
426
426
|
*/
|
|
427
427
|
$set(t) {
|
|
428
|
-
this.$$set && !
|
|
428
|
+
this.$$set && !nr(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 wr = "4";
|
|
432
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
|
|
433
|
+
function Hr(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 Pr(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 Tr(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 Ar(e, t, r) {
|
|
449
449
|
if (window.emMessageBus) {
|
|
450
450
|
const n = document.createElement("style");
|
|
451
451
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -467,18 +467,18 @@ 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 Oe = function(e, t) {
|
|
471
|
+
return Oe = 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
|
+
}, Oe(e, t);
|
|
477
477
|
};
|
|
478
478
|
function A(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
|
+
Oe(e, t);
|
|
482
482
|
function r() {
|
|
483
483
|
this.constructor = e;
|
|
484
484
|
}
|
|
@@ -494,7 +494,7 @@ var b = function() {
|
|
|
494
494
|
return t;
|
|
495
495
|
}, b.apply(this, arguments);
|
|
496
496
|
};
|
|
497
|
-
function
|
|
497
|
+
function Or(e, t) {
|
|
498
498
|
var r = {};
|
|
499
499
|
for (var n in e)
|
|
500
500
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -503,7 +503,7 @@ function Hr(e, t) {
|
|
|
503
503
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
504
504
|
return r;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Ie(e) {
|
|
507
507
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
508
508
|
if (r)
|
|
509
509
|
return r.call(e);
|
|
@@ -515,27 +515,27 @@ function Oe(e) {
|
|
|
515
515
|
};
|
|
516
516
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Le(e, t) {
|
|
519
519
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
520
520
|
if (!r)
|
|
521
521
|
return e;
|
|
522
|
-
var n = r.call(e), i, o = [],
|
|
522
|
+
var n = r.call(e), i, o = [], a;
|
|
523
523
|
try {
|
|
524
524
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
525
525
|
o.push(i.value);
|
|
526
|
-
} catch (
|
|
527
|
-
|
|
526
|
+
} catch (s) {
|
|
527
|
+
a = { error: s };
|
|
528
528
|
} finally {
|
|
529
529
|
try {
|
|
530
530
|
i && !i.done && (r = n.return) && r.call(n);
|
|
531
531
|
} finally {
|
|
532
|
-
if (
|
|
533
|
-
throw
|
|
532
|
+
if (a)
|
|
533
|
+
throw a.error;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
return o;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function G(e, t, r) {
|
|
539
539
|
if (r || arguments.length === 2)
|
|
540
540
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
541
541
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
@@ -544,13 +544,13 @@ function F(e, t, r) {
|
|
|
544
544
|
function P(e) {
|
|
545
545
|
return typeof e == "function";
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function wt(e) {
|
|
548
548
|
var t = function(n) {
|
|
549
549
|
Error.call(n), n.stack = new Error().stack;
|
|
550
550
|
}, r = e(t);
|
|
551
551
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
552
552
|
}
|
|
553
|
-
var xe =
|
|
553
|
+
var xe = wt(function(e) {
|
|
554
554
|
return function(r) {
|
|
555
555
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
556
556
|
` + r.map(function(n, i) {
|
|
@@ -565,7 +565,7 @@ function Ne(e, t) {
|
|
|
565
565
|
0 <= r && e.splice(r, 1);
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
var
|
|
568
|
+
var de = function() {
|
|
569
569
|
function e(t) {
|
|
570
570
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
571
571
|
}
|
|
@@ -573,11 +573,11 @@ var me = function() {
|
|
|
573
573
|
var t, r, n, i, o;
|
|
574
574
|
if (!this.closed) {
|
|
575
575
|
this.closed = !0;
|
|
576
|
-
var
|
|
577
|
-
if (
|
|
578
|
-
if (this._parentage = null, Array.isArray(
|
|
576
|
+
var a = this._parentage;
|
|
577
|
+
if (a)
|
|
578
|
+
if (this._parentage = null, Array.isArray(a))
|
|
579
579
|
try {
|
|
580
|
-
for (var
|
|
580
|
+
for (var s = Ie(a), u = s.next(); !u.done; u = s.next()) {
|
|
581
581
|
var h = u.value;
|
|
582
582
|
h.remove(this);
|
|
583
583
|
}
|
|
@@ -585,14 +585,14 @@ var me = function() {
|
|
|
585
585
|
t = { error: g };
|
|
586
586
|
} finally {
|
|
587
587
|
try {
|
|
588
|
-
u && !u.done && (r =
|
|
588
|
+
u && !u.done && (r = s.return) && r.call(s);
|
|
589
589
|
} finally {
|
|
590
590
|
if (t)
|
|
591
591
|
throw t.error;
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
else
|
|
595
|
-
|
|
595
|
+
a.remove(this);
|
|
596
596
|
var l = this.initialTeardown;
|
|
597
597
|
if (P(l))
|
|
598
598
|
try {
|
|
@@ -604,19 +604,19 @@ var me = function() {
|
|
|
604
604
|
if (c) {
|
|
605
605
|
this._finalizers = null;
|
|
606
606
|
try {
|
|
607
|
-
for (var f =
|
|
608
|
-
var y =
|
|
607
|
+
for (var f = Ie(c), m = f.next(); !m.done; m = f.next()) {
|
|
608
|
+
var y = m.value;
|
|
609
609
|
try {
|
|
610
|
-
|
|
610
|
+
Ke(y);
|
|
611
611
|
} catch (g) {
|
|
612
|
-
o = o ?? [], g instanceof xe ? o =
|
|
612
|
+
o = o ?? [], g instanceof xe ? o = G(G([], Le(o)), Le(g.errors)) : o.push(g);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
} catch (g) {
|
|
616
616
|
n = { error: g };
|
|
617
617
|
} finally {
|
|
618
618
|
try {
|
|
619
|
-
|
|
619
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
620
620
|
} finally {
|
|
621
621
|
if (n)
|
|
622
622
|
throw n.error;
|
|
@@ -630,7 +630,7 @@ var me = function() {
|
|
|
630
630
|
var r;
|
|
631
631
|
if (t && t !== this)
|
|
632
632
|
if (this.closed)
|
|
633
|
-
|
|
633
|
+
Ke(t);
|
|
634
634
|
else {
|
|
635
635
|
if (t instanceof e) {
|
|
636
636
|
if (t.closed || t._hasParent(this))
|
|
@@ -655,48 +655,48 @@ var me = function() {
|
|
|
655
655
|
var t = new e();
|
|
656
656
|
return t.closed = !0, t;
|
|
657
657
|
}(), e;
|
|
658
|
-
}(),
|
|
659
|
-
function
|
|
660
|
-
return e instanceof
|
|
658
|
+
}(), Ht = de.EMPTY;
|
|
659
|
+
function Pt(e) {
|
|
660
|
+
return e instanceof de || e && "closed" in e && P(e.remove) && P(e.add) && P(e.unsubscribe);
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Ke(e) {
|
|
663
663
|
P(e) ? e() : e.unsubscribe();
|
|
664
664
|
}
|
|
665
|
-
var
|
|
665
|
+
var At = {
|
|
666
666
|
onUnhandledError: null,
|
|
667
667
|
onStoppedNotification: null,
|
|
668
668
|
Promise: void 0,
|
|
669
669
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
670
670
|
useDeprecatedNextContext: !1
|
|
671
|
-
},
|
|
671
|
+
}, Ir = {
|
|
672
672
|
setTimeout: function(e, t) {
|
|
673
673
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
674
674
|
r[n - 2] = arguments[n];
|
|
675
|
-
return setTimeout.apply(void 0,
|
|
675
|
+
return setTimeout.apply(void 0, G([e, t], Le(r)));
|
|
676
676
|
},
|
|
677
677
|
clearTimeout: function(e) {
|
|
678
678
|
return clearTimeout(e);
|
|
679
679
|
},
|
|
680
680
|
delegate: void 0
|
|
681
681
|
};
|
|
682
|
-
function
|
|
683
|
-
|
|
682
|
+
function Lr(e) {
|
|
683
|
+
Ir.setTimeout(function() {
|
|
684
684
|
throw e;
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function et() {
|
|
688
688
|
}
|
|
689
689
|
function he(e) {
|
|
690
690
|
e();
|
|
691
691
|
}
|
|
692
|
-
var
|
|
692
|
+
var Ot = function(e) {
|
|
693
693
|
A(t, e);
|
|
694
694
|
function t(r) {
|
|
695
695
|
var n = e.call(this) || this;
|
|
696
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
696
|
+
return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = $r, n;
|
|
697
697
|
}
|
|
698
698
|
return t.create = function(r, n, i) {
|
|
699
|
-
return new
|
|
699
|
+
return new Ce(r, n, i);
|
|
700
700
|
}, t.prototype.next = function(r) {
|
|
701
701
|
this.isStopped || this._next(r);
|
|
702
702
|
}, t.prototype.error = function(r) {
|
|
@@ -720,7 +720,11 @@ var Ht = function(e) {
|
|
|
720
720
|
this.unsubscribe();
|
|
721
721
|
}
|
|
722
722
|
}, t;
|
|
723
|
-
}(
|
|
723
|
+
}(de), Nr = Function.prototype.bind;
|
|
724
|
+
function _e(e, t) {
|
|
725
|
+
return Nr.call(e, t);
|
|
726
|
+
}
|
|
727
|
+
var Cr = function() {
|
|
724
728
|
function e(t) {
|
|
725
729
|
this.partialObserver = t;
|
|
726
730
|
}
|
|
@@ -751,43 +755,55 @@ var Ht = function(e) {
|
|
|
751
755
|
ie(r);
|
|
752
756
|
}
|
|
753
757
|
}, e;
|
|
754
|
-
}(),
|
|
758
|
+
}(), Ce = function(e) {
|
|
755
759
|
A(t, e);
|
|
756
760
|
function t(r, n, i) {
|
|
757
|
-
var o = e.call(this) || this,
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
761
|
+
var o = e.call(this) || this, a;
|
|
762
|
+
if (P(r) || !r)
|
|
763
|
+
a = {
|
|
764
|
+
next: r ?? void 0,
|
|
765
|
+
error: n ?? void 0,
|
|
766
|
+
complete: i ?? void 0
|
|
767
|
+
};
|
|
768
|
+
else {
|
|
769
|
+
var s;
|
|
770
|
+
o && At.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
771
|
+
return o.unsubscribe();
|
|
772
|
+
}, a = {
|
|
773
|
+
next: r.next && _e(r.next, s),
|
|
774
|
+
error: r.error && _e(r.error, s),
|
|
775
|
+
complete: r.complete && _e(r.complete, s)
|
|
776
|
+
}) : a = r;
|
|
777
|
+
}
|
|
778
|
+
return o.destination = new Cr(a), o;
|
|
763
779
|
}
|
|
764
780
|
return t;
|
|
765
|
-
}(
|
|
781
|
+
}(Ot);
|
|
766
782
|
function ie(e) {
|
|
767
|
-
|
|
783
|
+
Lr(e);
|
|
768
784
|
}
|
|
769
|
-
function
|
|
785
|
+
function Mr(e) {
|
|
770
786
|
throw e;
|
|
771
787
|
}
|
|
772
|
-
var
|
|
788
|
+
var $r = {
|
|
773
789
|
closed: !0,
|
|
774
|
-
next:
|
|
775
|
-
error:
|
|
776
|
-
complete:
|
|
777
|
-
},
|
|
790
|
+
next: et,
|
|
791
|
+
error: Mr,
|
|
792
|
+
complete: et
|
|
793
|
+
}, Rr = function() {
|
|
778
794
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
779
795
|
}();
|
|
780
|
-
function
|
|
796
|
+
function Ur(e) {
|
|
781
797
|
return e;
|
|
782
798
|
}
|
|
783
|
-
function
|
|
784
|
-
return e.length === 0 ?
|
|
799
|
+
function Dr(e) {
|
|
800
|
+
return e.length === 0 ? Ur : e.length === 1 ? e[0] : function(r) {
|
|
785
801
|
return e.reduce(function(n, i) {
|
|
786
802
|
return i(n);
|
|
787
803
|
}, r);
|
|
788
804
|
};
|
|
789
805
|
}
|
|
790
|
-
var
|
|
806
|
+
var tt = function() {
|
|
791
807
|
function e(t) {
|
|
792
808
|
t && (this._subscribe = t);
|
|
793
809
|
}
|
|
@@ -795,10 +811,10 @@ var Ke = function() {
|
|
|
795
811
|
var r = new e();
|
|
796
812
|
return r.source = this, r.operator = t, r;
|
|
797
813
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
798
|
-
var i = this, o =
|
|
814
|
+
var i = this, o = Gr(t) ? t : new Ce(t, r, n);
|
|
799
815
|
return he(function() {
|
|
800
|
-
var
|
|
801
|
-
o.add(
|
|
816
|
+
var a = i, s = a.operator, u = a.source;
|
|
817
|
+
o.add(s ? s.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
802
818
|
}), o;
|
|
803
819
|
}, e.prototype._trySubscribe = function(t) {
|
|
804
820
|
try {
|
|
@@ -808,37 +824,37 @@ var Ke = function() {
|
|
|
808
824
|
}
|
|
809
825
|
}, e.prototype.forEach = function(t, r) {
|
|
810
826
|
var n = this;
|
|
811
|
-
return r =
|
|
812
|
-
var
|
|
813
|
-
next: function(
|
|
827
|
+
return r = rt(r), new r(function(i, o) {
|
|
828
|
+
var a = new Ce({
|
|
829
|
+
next: function(s) {
|
|
814
830
|
try {
|
|
815
|
-
t(
|
|
831
|
+
t(s);
|
|
816
832
|
} catch (u) {
|
|
817
|
-
o(u),
|
|
833
|
+
o(u), a.unsubscribe();
|
|
818
834
|
}
|
|
819
835
|
},
|
|
820
836
|
error: o,
|
|
821
837
|
complete: i
|
|
822
838
|
});
|
|
823
|
-
n.subscribe(
|
|
839
|
+
n.subscribe(a);
|
|
824
840
|
});
|
|
825
841
|
}, e.prototype._subscribe = function(t) {
|
|
826
842
|
var r;
|
|
827
843
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
828
|
-
}, e.prototype[
|
|
844
|
+
}, e.prototype[Rr] = function() {
|
|
829
845
|
return this;
|
|
830
846
|
}, e.prototype.pipe = function() {
|
|
831
847
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
832
848
|
t[r] = arguments[r];
|
|
833
|
-
return
|
|
849
|
+
return Dr(t)(this);
|
|
834
850
|
}, e.prototype.toPromise = function(t) {
|
|
835
851
|
var r = this;
|
|
836
|
-
return t =
|
|
852
|
+
return t = rt(t), new t(function(n, i) {
|
|
837
853
|
var o;
|
|
838
|
-
r.subscribe(function(
|
|
839
|
-
return o =
|
|
840
|
-
}, function(
|
|
841
|
-
return i(
|
|
854
|
+
r.subscribe(function(a) {
|
|
855
|
+
return o = a;
|
|
856
|
+
}, function(a) {
|
|
857
|
+
return i(a);
|
|
842
858
|
}, function() {
|
|
843
859
|
return n(o);
|
|
844
860
|
});
|
|
@@ -847,32 +863,32 @@ var Ke = function() {
|
|
|
847
863
|
return new e(t);
|
|
848
864
|
}, e;
|
|
849
865
|
}();
|
|
850
|
-
function
|
|
866
|
+
function rt(e) {
|
|
851
867
|
var t;
|
|
852
|
-
return (t = e ??
|
|
868
|
+
return (t = e ?? At.Promise) !== null && t !== void 0 ? t : Promise;
|
|
853
869
|
}
|
|
854
|
-
function
|
|
870
|
+
function Fr(e) {
|
|
855
871
|
return e && P(e.next) && P(e.error) && P(e.complete);
|
|
856
872
|
}
|
|
857
|
-
function
|
|
858
|
-
return e && e instanceof
|
|
873
|
+
function Gr(e) {
|
|
874
|
+
return e && e instanceof Ot || Fr(e) && Pt(e);
|
|
859
875
|
}
|
|
860
|
-
var
|
|
876
|
+
var jr = wt(function(e) {
|
|
861
877
|
return function() {
|
|
862
878
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
863
879
|
};
|
|
864
|
-
}),
|
|
880
|
+
}), It = function(e) {
|
|
865
881
|
A(t, e);
|
|
866
882
|
function t() {
|
|
867
883
|
var r = e.call(this) || this;
|
|
868
884
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
869
885
|
}
|
|
870
886
|
return t.prototype.lift = function(r) {
|
|
871
|
-
var n = new
|
|
887
|
+
var n = new nt(this, this);
|
|
872
888
|
return n.operator = r, n;
|
|
873
889
|
}, t.prototype._throwIfClosed = function() {
|
|
874
890
|
if (this.closed)
|
|
875
|
-
throw new
|
|
891
|
+
throw new jr();
|
|
876
892
|
}, t.prototype.next = function(r) {
|
|
877
893
|
var n = this;
|
|
878
894
|
he(function() {
|
|
@@ -880,15 +896,15 @@ var Dr = Bt(function(e) {
|
|
|
880
896
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
881
897
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
882
898
|
try {
|
|
883
|
-
for (var
|
|
884
|
-
var u =
|
|
899
|
+
for (var a = Ie(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
900
|
+
var u = s.value;
|
|
885
901
|
u.next(r);
|
|
886
902
|
}
|
|
887
903
|
} catch (h) {
|
|
888
904
|
i = { error: h };
|
|
889
905
|
} finally {
|
|
890
906
|
try {
|
|
891
|
-
|
|
907
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
892
908
|
} finally {
|
|
893
909
|
if (i)
|
|
894
910
|
throw i.error;
|
|
@@ -928,20 +944,20 @@ var Dr = Bt(function(e) {
|
|
|
928
944
|
}, t.prototype._subscribe = function(r) {
|
|
929
945
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
930
946
|
}, t.prototype._innerSubscribe = function(r) {
|
|
931
|
-
var n = this, i = this, o = i.hasError,
|
|
932
|
-
return o ||
|
|
933
|
-
n.currentObservers = null, Ne(
|
|
947
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
948
|
+
return o || a ? Ht : (this.currentObservers = null, s.push(r), new de(function() {
|
|
949
|
+
n.currentObservers = null, Ne(s, r);
|
|
934
950
|
}));
|
|
935
951
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
936
|
-
var n = this, i = n.hasError, o = n.thrownError,
|
|
937
|
-
i ? r.error(o) :
|
|
952
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
953
|
+
i ? r.error(o) : a && r.complete();
|
|
938
954
|
}, t.prototype.asObservable = function() {
|
|
939
|
-
var r = new
|
|
955
|
+
var r = new tt();
|
|
940
956
|
return r.source = this, r;
|
|
941
957
|
}, t.create = function(r, n) {
|
|
942
|
-
return new
|
|
958
|
+
return new nt(r, n);
|
|
943
959
|
}, t;
|
|
944
|
-
}(
|
|
960
|
+
}(tt), nt = function(e) {
|
|
945
961
|
A(t, e);
|
|
946
962
|
function t(r, n) {
|
|
947
963
|
var i = e.call(this) || this;
|
|
@@ -958,45 +974,45 @@ var Dr = Bt(function(e) {
|
|
|
958
974
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
959
975
|
}, t.prototype._subscribe = function(r) {
|
|
960
976
|
var n, i;
|
|
961
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
977
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ht;
|
|
962
978
|
}, t;
|
|
963
|
-
}(
|
|
979
|
+
}(It), Lt = {
|
|
964
980
|
now: function() {
|
|
965
|
-
return (
|
|
981
|
+
return (Lt.delegate || Date).now();
|
|
966
982
|
},
|
|
967
983
|
delegate: void 0
|
|
968
|
-
},
|
|
984
|
+
}, kr = function(e) {
|
|
969
985
|
A(t, e);
|
|
970
986
|
function t(r, n, i) {
|
|
971
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
987
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
|
|
972
988
|
var o = e.call(this) || this;
|
|
973
989
|
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;
|
|
974
990
|
}
|
|
975
991
|
return t.prototype.next = function(r) {
|
|
976
|
-
var n = this, i = n.isStopped, o = n._buffer,
|
|
977
|
-
i || (o.push(r), !
|
|
992
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, u = n._windowTime;
|
|
993
|
+
i || (o.push(r), !a && o.push(s.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
978
994
|
}, t.prototype._subscribe = function(r) {
|
|
979
995
|
this._throwIfClosed(), this._trimBuffer();
|
|
980
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow,
|
|
981
|
-
r.next(
|
|
996
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), u = 0; u < s.length && !r.closed; u += o ? 1 : 2)
|
|
997
|
+
r.next(s[u]);
|
|
982
998
|
return this._checkFinalizedStatuses(r), n;
|
|
983
999
|
}, t.prototype._trimBuffer = function() {
|
|
984
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer,
|
|
985
|
-
if (n < 1 / 0 &&
|
|
1000
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1001
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
986
1002
|
for (var u = i.now(), h = 0, l = 1; l < o.length && o[l] <= u; l += 2)
|
|
987
1003
|
h = l;
|
|
988
1004
|
h && o.splice(0, h + 1);
|
|
989
1005
|
}
|
|
990
1006
|
}, t;
|
|
991
|
-
}(
|
|
992
|
-
const
|
|
993
|
-
if (
|
|
994
|
-
const r = new
|
|
995
|
-
|
|
1007
|
+
}(It);
|
|
1008
|
+
const it = [], ot = {}, Vr = (e, t = 0) => {
|
|
1009
|
+
if (it.indexOf(e) == -1) {
|
|
1010
|
+
const r = new kr(t);
|
|
1011
|
+
ot[e] = r, it.push(e);
|
|
996
1012
|
}
|
|
997
|
-
return
|
|
1013
|
+
return ot[e];
|
|
998
1014
|
}, U = [];
|
|
999
|
-
function
|
|
1015
|
+
function zr(e, t) {
|
|
1000
1016
|
return {
|
|
1001
1017
|
subscribe: be(e, t).subscribe
|
|
1002
1018
|
};
|
|
@@ -1004,8 +1020,8 @@ function jr(e, t) {
|
|
|
1004
1020
|
function be(e, t = T) {
|
|
1005
1021
|
let r;
|
|
1006
1022
|
const n = /* @__PURE__ */ new Set();
|
|
1007
|
-
function i(
|
|
1008
|
-
if (
|
|
1023
|
+
function i(s) {
|
|
1024
|
+
if (_t(e, s) && (e = s, r)) {
|
|
1009
1025
|
const u = !U.length;
|
|
1010
1026
|
for (const h of n)
|
|
1011
1027
|
h[1](), U.push(h, e);
|
|
@@ -1016,23 +1032,23 @@ function be(e, t = T) {
|
|
|
1016
1032
|
}
|
|
1017
1033
|
}
|
|
1018
1034
|
}
|
|
1019
|
-
function o(
|
|
1020
|
-
i(
|
|
1035
|
+
function o(s) {
|
|
1036
|
+
i(s(e));
|
|
1021
1037
|
}
|
|
1022
|
-
function s
|
|
1023
|
-
const h = [
|
|
1024
|
-
return n.add(h), n.size === 1 && (r = t(i, o) || T),
|
|
1038
|
+
function a(s, u = T) {
|
|
1039
|
+
const h = [s, u];
|
|
1040
|
+
return n.add(h), n.size === 1 && (r = t(i, o) || T), s(e), () => {
|
|
1025
1041
|
n.delete(h), n.size === 0 && r && (r(), r = null);
|
|
1026
1042
|
};
|
|
1027
1043
|
}
|
|
1028
|
-
return { set: i, update: o, subscribe:
|
|
1044
|
+
return { set: i, update: o, subscribe: a };
|
|
1029
1045
|
}
|
|
1030
1046
|
function X(e, t, r) {
|
|
1031
1047
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1032
1048
|
if (!i.every(Boolean))
|
|
1033
1049
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1034
1050
|
const o = t.length < 2;
|
|
1035
|
-
return
|
|
1051
|
+
return zr(r, (a, s) => {
|
|
1036
1052
|
let u = !1;
|
|
1037
1053
|
const h = [];
|
|
1038
1054
|
let l = 0, c = T;
|
|
@@ -1040,10 +1056,10 @@ function X(e, t, r) {
|
|
|
1040
1056
|
if (l)
|
|
1041
1057
|
return;
|
|
1042
1058
|
c();
|
|
1043
|
-
const y = t(n ? h[0] : h,
|
|
1044
|
-
o ?
|
|
1045
|
-
},
|
|
1046
|
-
(y, g) =>
|
|
1059
|
+
const y = t(n ? h[0] : h, a, s);
|
|
1060
|
+
o ? a(y) : c = ke(y) ? y : T;
|
|
1061
|
+
}, m = i.map(
|
|
1062
|
+
(y, g) => St(
|
|
1047
1063
|
y,
|
|
1048
1064
|
(B) => {
|
|
1049
1065
|
h[g] = B, l &= ~(1 << g), u && f();
|
|
@@ -1054,74 +1070,74 @@ function X(e, t, r) {
|
|
|
1054
1070
|
)
|
|
1055
1071
|
);
|
|
1056
1072
|
return u = !0, f(), function() {
|
|
1057
|
-
te(
|
|
1073
|
+
te(m), c(), u = !1;
|
|
1058
1074
|
};
|
|
1059
1075
|
});
|
|
1060
1076
|
}
|
|
1061
|
-
function
|
|
1062
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1077
|
+
function Xr(e) {
|
|
1078
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1063
1079
|
}
|
|
1064
|
-
var
|
|
1065
|
-
return
|
|
1080
|
+
var Wr = function(t) {
|
|
1081
|
+
return Zr(t) && !Qr(t);
|
|
1066
1082
|
};
|
|
1067
|
-
function
|
|
1083
|
+
function Zr(e) {
|
|
1068
1084
|
return !!e && typeof e == "object";
|
|
1069
1085
|
}
|
|
1070
|
-
function
|
|
1086
|
+
function Qr(e) {
|
|
1071
1087
|
var t = Object.prototype.toString.call(e);
|
|
1072
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1088
|
+
return t === "[object RegExp]" || t === "[object Date]" || qr(e);
|
|
1073
1089
|
}
|
|
1074
|
-
var
|
|
1075
|
-
function
|
|
1076
|
-
return e.$$typeof ===
|
|
1090
|
+
var Jr = typeof Symbol == "function" && Symbol.for, Yr = Jr ? Symbol.for("react.element") : 60103;
|
|
1091
|
+
function qr(e) {
|
|
1092
|
+
return e.$$typeof === Yr;
|
|
1077
1093
|
}
|
|
1078
|
-
function
|
|
1094
|
+
function Kr(e) {
|
|
1079
1095
|
return Array.isArray(e) ? [] : {};
|
|
1080
1096
|
}
|
|
1081
1097
|
function K(e, t) {
|
|
1082
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? j(
|
|
1098
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(Kr(e), e, t) : e;
|
|
1083
1099
|
}
|
|
1084
|
-
function
|
|
1100
|
+
function en(e, t, r) {
|
|
1085
1101
|
return e.concat(t).map(function(n) {
|
|
1086
1102
|
return K(n, r);
|
|
1087
1103
|
});
|
|
1088
1104
|
}
|
|
1089
|
-
function
|
|
1105
|
+
function tn(e, t) {
|
|
1090
1106
|
if (!t.customMerge)
|
|
1091
1107
|
return j;
|
|
1092
1108
|
var r = t.customMerge(e);
|
|
1093
1109
|
return typeof r == "function" ? r : j;
|
|
1094
1110
|
}
|
|
1095
|
-
function
|
|
1111
|
+
function rn(e) {
|
|
1096
1112
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1097
1113
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1098
1114
|
}) : [];
|
|
1099
1115
|
}
|
|
1100
|
-
function
|
|
1101
|
-
return Object.keys(e).concat(
|
|
1116
|
+
function st(e) {
|
|
1117
|
+
return Object.keys(e).concat(rn(e));
|
|
1102
1118
|
}
|
|
1103
|
-
function
|
|
1119
|
+
function Nt(e, t) {
|
|
1104
1120
|
try {
|
|
1105
1121
|
return t in e;
|
|
1106
1122
|
} catch {
|
|
1107
1123
|
return !1;
|
|
1108
1124
|
}
|
|
1109
1125
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return
|
|
1126
|
+
function nn(e, t) {
|
|
1127
|
+
return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1112
1128
|
}
|
|
1113
|
-
function
|
|
1129
|
+
function on(e, t, r) {
|
|
1114
1130
|
var n = {};
|
|
1115
|
-
return r.isMergeableObject(e) &&
|
|
1131
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
1116
1132
|
n[i] = K(e[i], r);
|
|
1117
|
-
}),
|
|
1118
|
-
|
|
1133
|
+
}), st(t).forEach(function(i) {
|
|
1134
|
+
nn(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = tn(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
1119
1135
|
}), n;
|
|
1120
1136
|
}
|
|
1121
1137
|
function j(e, t, r) {
|
|
1122
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1138
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || en, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = K;
|
|
1123
1139
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1124
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1140
|
+
return o ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : K(t, r);
|
|
1125
1141
|
}
|
|
1126
1142
|
j.all = function(t, r) {
|
|
1127
1143
|
if (!Array.isArray(t))
|
|
@@ -1130,60 +1146,58 @@ j.all = function(t, r) {
|
|
|
1130
1146
|
return j(n, i, r);
|
|
1131
1147
|
}, {});
|
|
1132
1148
|
};
|
|
1133
|
-
var
|
|
1134
|
-
const
|
|
1135
|
-
function
|
|
1136
|
-
var r = t && t.cache ? t.cache :
|
|
1149
|
+
var sn = j, an = sn;
|
|
1150
|
+
const un = /* @__PURE__ */ Xr(an);
|
|
1151
|
+
function Se(e, t) {
|
|
1152
|
+
var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : ln;
|
|
1137
1153
|
return i(e, {
|
|
1138
1154
|
cache: r,
|
|
1139
1155
|
serializer: n
|
|
1140
1156
|
});
|
|
1141
1157
|
}
|
|
1142
|
-
function
|
|
1158
|
+
function hn(e) {
|
|
1143
1159
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1144
1160
|
}
|
|
1145
|
-
function
|
|
1146
|
-
var i =
|
|
1161
|
+
function Ct(e, t, r, n) {
|
|
1162
|
+
var i = hn(n) ? n : r(n), o = t.get(i);
|
|
1147
1163
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1148
1164
|
}
|
|
1149
|
-
function
|
|
1165
|
+
function Mt(e, t, r) {
|
|
1150
1166
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1151
1167
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1152
1168
|
}
|
|
1153
|
-
function
|
|
1169
|
+
function ze(e, t, r, n, i) {
|
|
1154
1170
|
return r.bind(t, e, n, i);
|
|
1155
1171
|
}
|
|
1156
|
-
function
|
|
1157
|
-
var r = e.length === 1 ?
|
|
1158
|
-
return
|
|
1172
|
+
function ln(e, t) {
|
|
1173
|
+
var r = e.length === 1 ? Ct : Mt;
|
|
1174
|
+
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
1159
1175
|
}
|
|
1160
|
-
function
|
|
1161
|
-
return
|
|
1176
|
+
function cn(e, t) {
|
|
1177
|
+
return ze(e, this, Mt, t.cache.create(), t.serializer);
|
|
1162
1178
|
}
|
|
1163
|
-
function
|
|
1164
|
-
return
|
|
1179
|
+
function fn(e, t) {
|
|
1180
|
+
return ze(e, this, Ct, t.cache.create(), t.serializer);
|
|
1165
1181
|
}
|
|
1166
|
-
var
|
|
1182
|
+
var pn = function() {
|
|
1167
1183
|
return JSON.stringify(arguments);
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
}()
|
|
1180
|
-
), fn = {
|
|
1184
|
+
};
|
|
1185
|
+
function Xe() {
|
|
1186
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1187
|
+
}
|
|
1188
|
+
Xe.prototype.get = function(e) {
|
|
1189
|
+
return this.cache[e];
|
|
1190
|
+
};
|
|
1191
|
+
Xe.prototype.set = function(e, t) {
|
|
1192
|
+
this.cache[e] = t;
|
|
1193
|
+
};
|
|
1194
|
+
var mn = {
|
|
1181
1195
|
create: function() {
|
|
1182
|
-
return new
|
|
1196
|
+
return new Xe();
|
|
1183
1197
|
}
|
|
1184
|
-
},
|
|
1185
|
-
variadic:
|
|
1186
|
-
monadic:
|
|
1198
|
+
}, Be = {
|
|
1199
|
+
variadic: cn,
|
|
1200
|
+
monadic: fn
|
|
1187
1201
|
}, p;
|
|
1188
1202
|
(function(e) {
|
|
1189
1203
|
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";
|
|
@@ -1196,43 +1210,43 @@ var k;
|
|
|
1196
1210
|
(function(e) {
|
|
1197
1211
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1198
1212
|
})(k || (k = {}));
|
|
1199
|
-
function
|
|
1213
|
+
function at(e) {
|
|
1200
1214
|
return e.type === E.literal;
|
|
1201
1215
|
}
|
|
1202
|
-
function
|
|
1216
|
+
function dn(e) {
|
|
1203
1217
|
return e.type === E.argument;
|
|
1204
1218
|
}
|
|
1205
|
-
function
|
|
1219
|
+
function $t(e) {
|
|
1206
1220
|
return e.type === E.number;
|
|
1207
1221
|
}
|
|
1208
|
-
function
|
|
1222
|
+
function Rt(e) {
|
|
1209
1223
|
return e.type === E.date;
|
|
1210
1224
|
}
|
|
1211
|
-
function
|
|
1225
|
+
function Ut(e) {
|
|
1212
1226
|
return e.type === E.time;
|
|
1213
1227
|
}
|
|
1214
|
-
function
|
|
1228
|
+
function Dt(e) {
|
|
1215
1229
|
return e.type === E.select;
|
|
1216
1230
|
}
|
|
1217
|
-
function
|
|
1231
|
+
function Ft(e) {
|
|
1218
1232
|
return e.type === E.plural;
|
|
1219
1233
|
}
|
|
1220
|
-
function
|
|
1234
|
+
function bn(e) {
|
|
1221
1235
|
return e.type === E.pound;
|
|
1222
1236
|
}
|
|
1223
|
-
function
|
|
1237
|
+
function Gt(e) {
|
|
1224
1238
|
return e.type === E.tag;
|
|
1225
1239
|
}
|
|
1226
|
-
function
|
|
1240
|
+
function jt(e) {
|
|
1227
1241
|
return !!(e && typeof e == "object" && e.type === k.number);
|
|
1228
1242
|
}
|
|
1229
|
-
function
|
|
1243
|
+
function Me(e) {
|
|
1230
1244
|
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
1231
1245
|
}
|
|
1232
|
-
var
|
|
1233
|
-
function
|
|
1246
|
+
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[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;
|
|
1247
|
+
function yn(e) {
|
|
1234
1248
|
var t = {};
|
|
1235
|
-
return e.replace(
|
|
1249
|
+
return e.replace(gn, function(r) {
|
|
1236
1250
|
var n = r.length;
|
|
1237
1251
|
switch (r[0]) {
|
|
1238
1252
|
case "G":
|
|
@@ -1321,36 +1335,36 @@ function bn(e) {
|
|
|
1321
1335
|
return "";
|
|
1322
1336
|
}), t;
|
|
1323
1337
|
}
|
|
1324
|
-
var
|
|
1325
|
-
function
|
|
1338
|
+
var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1339
|
+
function En(e) {
|
|
1326
1340
|
if (e.length === 0)
|
|
1327
1341
|
throw new Error("Number skeleton cannot be empty");
|
|
1328
|
-
for (var t = e.split(
|
|
1342
|
+
for (var t = e.split(vn).filter(function(f) {
|
|
1329
1343
|
return f.length > 0;
|
|
1330
1344
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1331
|
-
var o = i[n],
|
|
1332
|
-
if (
|
|
1345
|
+
var o = i[n], a = o.split("/");
|
|
1346
|
+
if (a.length === 0)
|
|
1333
1347
|
throw new Error("Invalid number skeleton");
|
|
1334
|
-
for (var
|
|
1348
|
+
for (var s = a[0], u = a.slice(1), h = 0, l = u; h < l.length; h++) {
|
|
1335
1349
|
var c = l[h];
|
|
1336
1350
|
if (c.length === 0)
|
|
1337
1351
|
throw new Error("Invalid number skeleton");
|
|
1338
1352
|
}
|
|
1339
|
-
r.push({ stem:
|
|
1353
|
+
r.push({ stem: s, options: u });
|
|
1340
1354
|
}
|
|
1341
1355
|
return r;
|
|
1342
1356
|
}
|
|
1343
|
-
function
|
|
1357
|
+
function xn(e) {
|
|
1344
1358
|
return e.replace(/^(.*?)-/, "");
|
|
1345
1359
|
}
|
|
1346
|
-
var
|
|
1347
|
-
function
|
|
1360
|
+
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
|
|
1361
|
+
function ht(e) {
|
|
1348
1362
|
var t = {};
|
|
1349
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1363
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
|
|
1350
1364
|
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)), "";
|
|
1351
1365
|
}), t;
|
|
1352
1366
|
}
|
|
1353
|
-
function
|
|
1367
|
+
function Xt(e) {
|
|
1354
1368
|
switch (e) {
|
|
1355
1369
|
case "sign-auto":
|
|
1356
1370
|
return {
|
|
@@ -1390,7 +1404,7 @@ function kt(e) {
|
|
|
1390
1404
|
};
|
|
1391
1405
|
}
|
|
1392
1406
|
}
|
|
1393
|
-
function
|
|
1407
|
+
function Sn(e) {
|
|
1394
1408
|
var t;
|
|
1395
1409
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1396
1410
|
notation: "engineering"
|
|
@@ -1398,17 +1412,17 @@ function xn(e) {
|
|
|
1398
1412
|
notation: "scientific"
|
|
1399
1413
|
}, e = e.slice(1)), t) {
|
|
1400
1414
|
var r = e.slice(0, 2);
|
|
1401
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1415
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !zt.test(e))
|
|
1402
1416
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1403
1417
|
t.minimumIntegerDigits = e.length;
|
|
1404
1418
|
}
|
|
1405
1419
|
return t;
|
|
1406
1420
|
}
|
|
1407
|
-
function
|
|
1408
|
-
var t = {}, r =
|
|
1421
|
+
function lt(e) {
|
|
1422
|
+
var t = {}, r = Xt(e);
|
|
1409
1423
|
return r || t;
|
|
1410
1424
|
}
|
|
1411
|
-
function
|
|
1425
|
+
function Bn(e) {
|
|
1412
1426
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1413
1427
|
var i = n[r];
|
|
1414
1428
|
switch (i.stem) {
|
|
@@ -1432,7 +1446,7 @@ function _n(e) {
|
|
|
1432
1446
|
continue;
|
|
1433
1447
|
case "measure-unit":
|
|
1434
1448
|
case "unit":
|
|
1435
|
-
t.style = "unit", t.unit =
|
|
1449
|
+
t.style = "unit", t.unit = xn(i.options[0]);
|
|
1436
1450
|
continue;
|
|
1437
1451
|
case "compact-short":
|
|
1438
1452
|
case "K":
|
|
@@ -1444,12 +1458,12 @@ function _n(e) {
|
|
|
1444
1458
|
continue;
|
|
1445
1459
|
case "scientific":
|
|
1446
1460
|
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
|
1447
|
-
return b(b({}, u),
|
|
1461
|
+
return b(b({}, u), lt(h));
|
|
1448
1462
|
}, {}));
|
|
1449
1463
|
continue;
|
|
1450
1464
|
case "engineering":
|
|
1451
1465
|
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
|
1452
|
-
return b(b({}, u),
|
|
1466
|
+
return b(b({}, u), lt(h));
|
|
1453
1467
|
}, {}));
|
|
1454
1468
|
continue;
|
|
1455
1469
|
case "notation-simple":
|
|
@@ -1494,41 +1508,41 @@ function _n(e) {
|
|
|
1494
1508
|
case "integer-width":
|
|
1495
1509
|
if (i.options.length > 1)
|
|
1496
1510
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1497
|
-
i.options[0].replace(
|
|
1511
|
+
i.options[0].replace(_n, function(u, h, l, c, f, m) {
|
|
1498
1512
|
if (h)
|
|
1499
1513
|
t.minimumIntegerDigits = l.length;
|
|
1500
1514
|
else {
|
|
1501
1515
|
if (c && f)
|
|
1502
1516
|
throw new Error("We currently do not support maximum integer digits");
|
|
1503
|
-
if (
|
|
1517
|
+
if (m)
|
|
1504
1518
|
throw new Error("We currently do not support exact integer digits");
|
|
1505
1519
|
}
|
|
1506
1520
|
return "";
|
|
1507
1521
|
});
|
|
1508
1522
|
continue;
|
|
1509
1523
|
}
|
|
1510
|
-
if (
|
|
1524
|
+
if (zt.test(i.stem)) {
|
|
1511
1525
|
t.minimumIntegerDigits = i.stem.length;
|
|
1512
1526
|
continue;
|
|
1513
1527
|
}
|
|
1514
|
-
if (
|
|
1528
|
+
if (ut.test(i.stem)) {
|
|
1515
1529
|
if (i.options.length > 1)
|
|
1516
1530
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1517
|
-
i.stem.replace(
|
|
1518
|
-
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1531
|
+
i.stem.replace(ut, function(u, h, l, c, f, m) {
|
|
1532
|
+
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), "";
|
|
1519
1533
|
});
|
|
1520
1534
|
var o = i.options[0];
|
|
1521
|
-
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t),
|
|
1535
|
+
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), ht(o)));
|
|
1522
1536
|
continue;
|
|
1523
1537
|
}
|
|
1524
|
-
if (
|
|
1525
|
-
t = b(b({}, t),
|
|
1538
|
+
if (Vt.test(i.stem)) {
|
|
1539
|
+
t = b(b({}, t), ht(i.stem));
|
|
1526
1540
|
continue;
|
|
1527
1541
|
}
|
|
1528
|
-
var
|
|
1529
|
-
s && (t = b(b({}, t), s));
|
|
1530
|
-
var a = xn(i.stem);
|
|
1542
|
+
var a = Xt(i.stem);
|
|
1531
1543
|
a && (t = b(b({}, t), a));
|
|
1544
|
+
var s = Sn(i.stem);
|
|
1545
|
+
s && (t = b(b({}, t), s));
|
|
1532
1546
|
}
|
|
1533
1547
|
return t;
|
|
1534
1548
|
}
|
|
@@ -2947,23 +2961,23 @@ var oe = {
|
|
|
2947
2961
|
"h"
|
|
2948
2962
|
]
|
|
2949
2963
|
};
|
|
2950
|
-
function
|
|
2964
|
+
function Tn(e, t) {
|
|
2951
2965
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2952
2966
|
var i = e.charAt(n);
|
|
2953
2967
|
if (i === "j") {
|
|
2954
2968
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2955
2969
|
o++, n++;
|
|
2956
|
-
var
|
|
2957
|
-
for ((h == "H" || h == "k") && (
|
|
2970
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = wn(t);
|
|
2971
|
+
for ((h == "H" || h == "k") && (s = 0); s-- > 0; )
|
|
2958
2972
|
r += u;
|
|
2959
|
-
for (;
|
|
2973
|
+
for (; a-- > 0; )
|
|
2960
2974
|
r = h + r;
|
|
2961
2975
|
} else
|
|
2962
2976
|
i === "J" ? r += "H" : r += i;
|
|
2963
2977
|
}
|
|
2964
2978
|
return r;
|
|
2965
2979
|
}
|
|
2966
|
-
function
|
|
2980
|
+
function wn(e) {
|
|
2967
2981
|
var t = e.hourCycle;
|
|
2968
2982
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2969
2983
|
e.hourCycles && // @ts-ignore
|
|
@@ -2985,20 +2999,20 @@ function Bn(e) {
|
|
|
2985
2999
|
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2986
3000
|
return i[0];
|
|
2987
3001
|
}
|
|
2988
|
-
var
|
|
2989
|
-
function
|
|
3002
|
+
var Te, Hn = new RegExp("^".concat(kt.source, "*")), Pn = new RegExp("".concat(kt.source, "*$"));
|
|
3003
|
+
function d(e, t) {
|
|
2990
3004
|
return { start: e, end: t };
|
|
2991
3005
|
}
|
|
2992
|
-
var
|
|
3006
|
+
var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), On = !!String.fromCodePoint, In = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, $n = Mn ? Number.isSafeInteger : function(e) {
|
|
2993
3007
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2994
|
-
},
|
|
3008
|
+
}, $e = !0;
|
|
2995
3009
|
try {
|
|
2996
|
-
var
|
|
2997
|
-
|
|
3010
|
+
var Rn = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3011
|
+
$e = ((Te = Rn.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
|
|
2998
3012
|
} catch {
|
|
2999
|
-
|
|
3013
|
+
$e = !1;
|
|
3000
3014
|
}
|
|
3001
|
-
var
|
|
3015
|
+
var ct = An ? (
|
|
3002
3016
|
// Native
|
|
3003
3017
|
function(t, r, n) {
|
|
3004
3018
|
return t.startsWith(r, n);
|
|
@@ -3008,31 +3022,31 @@ var ht = Hn ? (
|
|
|
3008
3022
|
function(t, r, n) {
|
|
3009
3023
|
return t.slice(n, n + r.length) === r;
|
|
3010
3024
|
}
|
|
3011
|
-
),
|
|
3025
|
+
), Re = On ? String.fromCodePoint : (
|
|
3012
3026
|
// IE11
|
|
3013
3027
|
function() {
|
|
3014
3028
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3015
3029
|
t[r] = arguments[r];
|
|
3016
|
-
for (var n = "", i = t.length, o = 0,
|
|
3017
|
-
if (
|
|
3018
|
-
throw RangeError(
|
|
3019
|
-
n +=
|
|
3030
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3031
|
+
if (a = t[o++], a > 1114111)
|
|
3032
|
+
throw RangeError(a + " is not a valid code point");
|
|
3033
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3020
3034
|
}
|
|
3021
3035
|
return n;
|
|
3022
3036
|
}
|
|
3023
|
-
),
|
|
3037
|
+
), ft = (
|
|
3024
3038
|
// native
|
|
3025
|
-
|
|
3039
|
+
In ? Object.fromEntries : (
|
|
3026
3040
|
// Ponyfill
|
|
3027
3041
|
function(t) {
|
|
3028
3042
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3029
|
-
var o = i[n],
|
|
3030
|
-
r[
|
|
3043
|
+
var o = i[n], a = o[0], s = o[1];
|
|
3044
|
+
r[a] = s;
|
|
3031
3045
|
}
|
|
3032
3046
|
return r;
|
|
3033
3047
|
}
|
|
3034
3048
|
)
|
|
3035
|
-
),
|
|
3049
|
+
), Wt = Ln ? (
|
|
3036
3050
|
// Native
|
|
3037
3051
|
function(t, r) {
|
|
3038
3052
|
return t.codePointAt(r);
|
|
@@ -3046,7 +3060,7 @@ var ht = Hn ? (
|
|
|
3046
3060
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3047
3061
|
}
|
|
3048
3062
|
}
|
|
3049
|
-
),
|
|
3063
|
+
), Un = Nn ? (
|
|
3050
3064
|
// Native
|
|
3051
3065
|
function(t) {
|
|
3052
3066
|
return t.trimStart();
|
|
@@ -3054,9 +3068,9 @@ var ht = Hn ? (
|
|
|
3054
3068
|
) : (
|
|
3055
3069
|
// Ponyfill
|
|
3056
3070
|
function(t) {
|
|
3057
|
-
return t.replace(
|
|
3071
|
+
return t.replace(Hn, "");
|
|
3058
3072
|
}
|
|
3059
|
-
),
|
|
3073
|
+
), Dn = Cn ? (
|
|
3060
3074
|
// Native
|
|
3061
3075
|
function(t) {
|
|
3062
3076
|
return t.trimEnd();
|
|
@@ -3064,32 +3078,32 @@ var ht = Hn ? (
|
|
|
3064
3078
|
) : (
|
|
3065
3079
|
// Ponyfill
|
|
3066
3080
|
function(t) {
|
|
3067
|
-
return t.replace(
|
|
3081
|
+
return t.replace(Pn, "");
|
|
3068
3082
|
}
|
|
3069
3083
|
);
|
|
3070
|
-
function
|
|
3084
|
+
function Zt(e, t) {
|
|
3071
3085
|
return new RegExp(e, t);
|
|
3072
3086
|
}
|
|
3073
|
-
var
|
|
3074
|
-
if (
|
|
3075
|
-
var
|
|
3076
|
-
|
|
3087
|
+
var Ue;
|
|
3088
|
+
if ($e) {
|
|
3089
|
+
var pt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3090
|
+
Ue = function(t, r) {
|
|
3077
3091
|
var n;
|
|
3078
|
-
|
|
3079
|
-
var i =
|
|
3092
|
+
pt.lastIndex = r;
|
|
3093
|
+
var i = pt.exec(t);
|
|
3080
3094
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3081
3095
|
};
|
|
3082
3096
|
} else
|
|
3083
|
-
|
|
3097
|
+
Ue = function(t, r) {
|
|
3084
3098
|
for (var n = []; ; ) {
|
|
3085
|
-
var i =
|
|
3086
|
-
if (i === void 0 ||
|
|
3099
|
+
var i = Wt(t, r);
|
|
3100
|
+
if (i === void 0 || Qt(i) || kn(i))
|
|
3087
3101
|
break;
|
|
3088
3102
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3089
3103
|
}
|
|
3090
|
-
return
|
|
3104
|
+
return Re.apply(void 0, n);
|
|
3091
3105
|
};
|
|
3092
|
-
var
|
|
3106
|
+
var Fn = (
|
|
3093
3107
|
/** @class */
|
|
3094
3108
|
function() {
|
|
3095
3109
|
function e(t, r) {
|
|
@@ -3103,33 +3117,33 @@ var Un = (
|
|
|
3103
3117
|
for (var i = []; !this.isEOF(); ) {
|
|
3104
3118
|
var o = this.char();
|
|
3105
3119
|
if (o === 123) {
|
|
3106
|
-
var
|
|
3107
|
-
if (
|
|
3108
|
-
return
|
|
3109
|
-
i.push(
|
|
3120
|
+
var a = this.parseArgument(t, n);
|
|
3121
|
+
if (a.err)
|
|
3122
|
+
return a;
|
|
3123
|
+
i.push(a.val);
|
|
3110
3124
|
} else {
|
|
3111
3125
|
if (o === 125 && t > 0)
|
|
3112
3126
|
break;
|
|
3113
3127
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3114
|
-
var
|
|
3128
|
+
var s = this.clonePosition();
|
|
3115
3129
|
this.bump(), i.push({
|
|
3116
3130
|
type: E.pound,
|
|
3117
|
-
location:
|
|
3131
|
+
location: d(s, this.clonePosition())
|
|
3118
3132
|
});
|
|
3119
3133
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3120
3134
|
if (n)
|
|
3121
3135
|
break;
|
|
3122
|
-
return this.error(p.UNMATCHED_CLOSING_TAG,
|
|
3123
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3124
|
-
var
|
|
3125
|
-
if (
|
|
3126
|
-
return
|
|
3127
|
-
i.push(
|
|
3136
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3137
|
+
} else if (o === 60 && !this.ignoreTag && De(this.peek() || 0)) {
|
|
3138
|
+
var a = this.parseTag(t, r);
|
|
3139
|
+
if (a.err)
|
|
3140
|
+
return a;
|
|
3141
|
+
i.push(a.val);
|
|
3128
3142
|
} else {
|
|
3129
|
-
var
|
|
3130
|
-
if (
|
|
3131
|
-
return
|
|
3132
|
-
i.push(
|
|
3143
|
+
var a = this.parseLiteral(t, r);
|
|
3144
|
+
if (a.err)
|
|
3145
|
+
return a;
|
|
3146
|
+
i.push(a.val);
|
|
3133
3147
|
}
|
|
3134
3148
|
}
|
|
3135
3149
|
}
|
|
@@ -3143,7 +3157,7 @@ var Un = (
|
|
|
3143
3157
|
val: {
|
|
3144
3158
|
type: E.literal,
|
|
3145
3159
|
value: "<".concat(i, "/>"),
|
|
3146
|
-
location:
|
|
3160
|
+
location: d(n, this.clonePosition())
|
|
3147
3161
|
},
|
|
3148
3162
|
err: null
|
|
3149
3163
|
};
|
|
@@ -3151,27 +3165,27 @@ var Un = (
|
|
|
3151
3165
|
var o = this.parseMessage(t + 1, r, !0);
|
|
3152
3166
|
if (o.err)
|
|
3153
3167
|
return o;
|
|
3154
|
-
var
|
|
3168
|
+
var a = o.val, s = this.clonePosition();
|
|
3155
3169
|
if (this.bumpIf("</")) {
|
|
3156
|
-
if (this.isEOF() || !
|
|
3157
|
-
return this.error(p.INVALID_TAG,
|
|
3170
|
+
if (this.isEOF() || !De(this.char()))
|
|
3171
|
+
return this.error(p.INVALID_TAG, d(s, this.clonePosition()));
|
|
3158
3172
|
var u = this.clonePosition(), h = this.parseTagName();
|
|
3159
|
-
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG,
|
|
3173
|
+
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, d(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3160
3174
|
val: {
|
|
3161
3175
|
type: E.tag,
|
|
3162
3176
|
value: i,
|
|
3163
|
-
children:
|
|
3164
|
-
location:
|
|
3177
|
+
children: a,
|
|
3178
|
+
location: d(n, this.clonePosition())
|
|
3165
3179
|
},
|
|
3166
3180
|
err: null
|
|
3167
|
-
} : this.error(p.INVALID_TAG,
|
|
3181
|
+
} : this.error(p.INVALID_TAG, d(s, this.clonePosition())));
|
|
3168
3182
|
} else
|
|
3169
|
-
return this.error(p.UNCLOSED_TAG,
|
|
3183
|
+
return this.error(p.UNCLOSED_TAG, d(n, this.clonePosition()));
|
|
3170
3184
|
} else
|
|
3171
|
-
return this.error(p.INVALID_TAG,
|
|
3185
|
+
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3172
3186
|
}, e.prototype.parseTagName = function() {
|
|
3173
3187
|
var t = this.offset();
|
|
3174
|
-
for (this.bump(); !this.isEOF() &&
|
|
3188
|
+
for (this.bump(); !this.isEOF() && jn(this.char()); )
|
|
3175
3189
|
this.bump();
|
|
3176
3190
|
return this.message.slice(t, this.offset());
|
|
3177
3191
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3181,26 +3195,26 @@ var Un = (
|
|
|
3181
3195
|
i += o;
|
|
3182
3196
|
continue;
|
|
3183
3197
|
}
|
|
3184
|
-
var
|
|
3185
|
-
if (s) {
|
|
3186
|
-
i += s;
|
|
3187
|
-
continue;
|
|
3188
|
-
}
|
|
3189
|
-
var a = this.tryParseLeftAngleBracket();
|
|
3198
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3190
3199
|
if (a) {
|
|
3191
3200
|
i += a;
|
|
3192
3201
|
continue;
|
|
3193
3202
|
}
|
|
3203
|
+
var s = this.tryParseLeftAngleBracket();
|
|
3204
|
+
if (s) {
|
|
3205
|
+
i += s;
|
|
3206
|
+
continue;
|
|
3207
|
+
}
|
|
3194
3208
|
break;
|
|
3195
3209
|
}
|
|
3196
|
-
var u =
|
|
3210
|
+
var u = d(n, this.clonePosition());
|
|
3197
3211
|
return {
|
|
3198
3212
|
val: { type: E.literal, value: i, location: u },
|
|
3199
3213
|
err: null
|
|
3200
3214
|
};
|
|
3201
3215
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3202
3216
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3203
|
-
!
|
|
3217
|
+
!Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3204
3218
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3205
3219
|
if (this.isEOF() || this.char() !== 39)
|
|
3206
3220
|
return null;
|
|
@@ -3234,23 +3248,23 @@ var Un = (
|
|
|
3234
3248
|
r.push(n);
|
|
3235
3249
|
this.bump();
|
|
3236
3250
|
}
|
|
3237
|
-
return
|
|
3251
|
+
return Re.apply(void 0, r);
|
|
3238
3252
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3239
3253
|
if (this.isEOF())
|
|
3240
3254
|
return null;
|
|
3241
3255
|
var n = this.char();
|
|
3242
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3256
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
3243
3257
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3244
3258
|
var n = this.clonePosition();
|
|
3245
3259
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3246
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3260
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3247
3261
|
if (this.char() === 125)
|
|
3248
|
-
return this.bump(), this.error(p.EMPTY_ARGUMENT,
|
|
3262
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
|
3249
3263
|
var i = this.parseIdentifierIfPossible().value;
|
|
3250
3264
|
if (!i)
|
|
3251
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
3265
|
+
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3252
3266
|
if (this.bumpSpace(), this.isEOF())
|
|
3253
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3267
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3254
3268
|
switch (this.char()) {
|
|
3255
3269
|
case 125:
|
|
3256
3270
|
return this.bump(), {
|
|
@@ -3258,25 +3272,25 @@ var Un = (
|
|
|
3258
3272
|
type: E.argument,
|
|
3259
3273
|
// value does not include the opening and closing braces.
|
|
3260
3274
|
value: i,
|
|
3261
|
-
location:
|
|
3275
|
+
location: d(n, this.clonePosition())
|
|
3262
3276
|
},
|
|
3263
3277
|
err: null
|
|
3264
3278
|
};
|
|
3265
3279
|
case 44:
|
|
3266
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3280
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3267
3281
|
default:
|
|
3268
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
3282
|
+
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3269
3283
|
}
|
|
3270
3284
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3271
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3285
|
+
var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
|
|
3272
3286
|
this.bumpTo(i);
|
|
3273
|
-
var o = this.clonePosition(),
|
|
3274
|
-
return { value: n, location:
|
|
3287
|
+
var o = this.clonePosition(), a = d(t, o);
|
|
3288
|
+
return { value: n, location: a };
|
|
3275
3289
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3276
|
-
var o,
|
|
3277
|
-
switch (
|
|
3290
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3291
|
+
switch (s) {
|
|
3278
3292
|
case "":
|
|
3279
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE,
|
|
3293
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, d(a, u));
|
|
3280
3294
|
case "number":
|
|
3281
3295
|
case "date":
|
|
3282
3296
|
case "time": {
|
|
@@ -3287,19 +3301,19 @@ var Un = (
|
|
|
3287
3301
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3288
3302
|
if (c.err)
|
|
3289
3303
|
return c;
|
|
3290
|
-
var f =
|
|
3304
|
+
var f = Dn(c.val);
|
|
3291
3305
|
if (f.length === 0)
|
|
3292
|
-
return this.error(p.EXPECT_ARGUMENT_STYLE,
|
|
3293
|
-
var
|
|
3294
|
-
h = { style: f, styleLocation:
|
|
3306
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3307
|
+
var m = d(l, this.clonePosition());
|
|
3308
|
+
h = { style: f, styleLocation: m };
|
|
3295
3309
|
}
|
|
3296
3310
|
var y = this.tryParseArgumentClose(i);
|
|
3297
3311
|
if (y.err)
|
|
3298
3312
|
return y;
|
|
3299
|
-
var g =
|
|
3300
|
-
if (h &&
|
|
3301
|
-
var B =
|
|
3302
|
-
if (
|
|
3313
|
+
var g = d(i, this.clonePosition());
|
|
3314
|
+
if (h && ct(h?.style, "::", 0)) {
|
|
3315
|
+
var B = Un(h.style.slice(2));
|
|
3316
|
+
if (s === "number") {
|
|
3303
3317
|
var c = this.parseNumberSkeletonFromString(B, h.styleLocation);
|
|
3304
3318
|
return c.err ? c : {
|
|
3305
3319
|
val: { type: E.number, value: n, location: g, style: c.val },
|
|
@@ -3308,14 +3322,14 @@ var Un = (
|
|
|
3308
3322
|
} else {
|
|
3309
3323
|
if (B.length === 0)
|
|
3310
3324
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
3311
|
-
var
|
|
3312
|
-
this.locale && (
|
|
3325
|
+
var L = B;
|
|
3326
|
+
this.locale && (L = Tn(B, this.locale));
|
|
3313
3327
|
var f = {
|
|
3314
3328
|
type: k.dateTime,
|
|
3315
|
-
pattern:
|
|
3329
|
+
pattern: L,
|
|
3316
3330
|
location: h.styleLocation,
|
|
3317
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3318
|
-
}, O =
|
|
3331
|
+
parsedOptions: this.shouldParseSkeletons ? yn(L) : {}
|
|
3332
|
+
}, O = s === "date" ? E.date : E.time;
|
|
3319
3333
|
return {
|
|
3320
3334
|
val: { type: O, value: n, location: g, style: f },
|
|
3321
3335
|
err: null
|
|
@@ -3324,7 +3338,7 @@ var Un = (
|
|
|
3324
3338
|
}
|
|
3325
3339
|
return {
|
|
3326
3340
|
val: {
|
|
3327
|
-
type:
|
|
3341
|
+
type: s === "number" ? E.number : s === "date" ? E.date : E.time,
|
|
3328
3342
|
value: n,
|
|
3329
3343
|
location: g,
|
|
3330
3344
|
style: (o = h?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3337,30 +3351,30 @@ var Un = (
|
|
|
3337
3351
|
case "select": {
|
|
3338
3352
|
var _ = this.clonePosition();
|
|
3339
3353
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3340
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3354
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(_, b({}, _)));
|
|
3341
3355
|
this.bumpSpace();
|
|
3342
3356
|
var w = this.parseIdentifierIfPossible(), S = 0;
|
|
3343
|
-
if (
|
|
3357
|
+
if (s !== "select" && w.value === "offset") {
|
|
3344
3358
|
if (!this.bumpIf(":"))
|
|
3345
|
-
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3359
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3346
3360
|
this.bumpSpace();
|
|
3347
3361
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3348
3362
|
if (c.err)
|
|
3349
3363
|
return c;
|
|
3350
3364
|
this.bumpSpace(), w = this.parseIdentifierIfPossible(), S = c.val;
|
|
3351
3365
|
}
|
|
3352
|
-
var M = this.tryParsePluralOrSelectOptions(t,
|
|
3366
|
+
var M = this.tryParsePluralOrSelectOptions(t, s, r, w);
|
|
3353
3367
|
if (M.err)
|
|
3354
3368
|
return M;
|
|
3355
3369
|
var y = this.tryParseArgumentClose(i);
|
|
3356
3370
|
if (y.err)
|
|
3357
3371
|
return y;
|
|
3358
|
-
var ne =
|
|
3359
|
-
return
|
|
3372
|
+
var ne = d(i, this.clonePosition());
|
|
3373
|
+
return s === "select" ? {
|
|
3360
3374
|
val: {
|
|
3361
3375
|
type: E.select,
|
|
3362
3376
|
value: n,
|
|
3363
|
-
options:
|
|
3377
|
+
options: ft(M.val),
|
|
3364
3378
|
location: ne
|
|
3365
3379
|
},
|
|
3366
3380
|
err: null
|
|
@@ -3368,19 +3382,19 @@ var Un = (
|
|
|
3368
3382
|
val: {
|
|
3369
3383
|
type: E.plural,
|
|
3370
3384
|
value: n,
|
|
3371
|
-
options:
|
|
3385
|
+
options: ft(M.val),
|
|
3372
3386
|
offset: S,
|
|
3373
|
-
pluralType:
|
|
3387
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3374
3388
|
location: ne
|
|
3375
3389
|
},
|
|
3376
3390
|
err: null
|
|
3377
3391
|
};
|
|
3378
3392
|
}
|
|
3379
3393
|
default:
|
|
3380
|
-
return this.error(p.INVALID_ARGUMENT_TYPE,
|
|
3394
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, d(a, u));
|
|
3381
3395
|
}
|
|
3382
3396
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3383
|
-
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3397
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3384
3398
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3385
3399
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3386
3400
|
var n = this.char();
|
|
@@ -3389,7 +3403,7 @@ var Un = (
|
|
|
3389
3403
|
this.bump();
|
|
3390
3404
|
var i = this.clonePosition();
|
|
3391
3405
|
if (!this.bumpUntil("'"))
|
|
3392
|
-
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3406
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
|
3393
3407
|
this.bump();
|
|
3394
3408
|
break;
|
|
3395
3409
|
}
|
|
@@ -3419,7 +3433,7 @@ var Un = (
|
|
|
3419
3433
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3420
3434
|
var n = [];
|
|
3421
3435
|
try {
|
|
3422
|
-
n =
|
|
3436
|
+
n = En(t);
|
|
3423
3437
|
} catch {
|
|
3424
3438
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3425
3439
|
}
|
|
@@ -3428,55 +3442,55 @@ var Un = (
|
|
|
3428
3442
|
type: k.number,
|
|
3429
3443
|
tokens: n,
|
|
3430
3444
|
location: r,
|
|
3431
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3445
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
|
|
3432
3446
|
},
|
|
3433
3447
|
err: null
|
|
3434
3448
|
};
|
|
3435
3449
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3436
|
-
for (var o,
|
|
3450
|
+
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
|
|
3437
3451
|
if (h.length === 0) {
|
|
3438
3452
|
var c = this.clonePosition();
|
|
3439
3453
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3440
3454
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3441
3455
|
if (f.err)
|
|
3442
3456
|
return f;
|
|
3443
|
-
l =
|
|
3457
|
+
l = d(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
|
3444
3458
|
} else
|
|
3445
3459
|
break;
|
|
3446
3460
|
}
|
|
3447
3461
|
if (u.has(h))
|
|
3448
3462
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3449
|
-
h === "other" && (
|
|
3450
|
-
var
|
|
3463
|
+
h === "other" && (a = !0), this.bumpSpace();
|
|
3464
|
+
var m = this.clonePosition();
|
|
3451
3465
|
if (!this.bumpIf("{"))
|
|
3452
|
-
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3466
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3453
3467
|
var y = this.parseMessage(t + 1, r, n);
|
|
3454
3468
|
if (y.err)
|
|
3455
3469
|
return y;
|
|
3456
|
-
var g = this.tryParseArgumentClose(
|
|
3470
|
+
var g = this.tryParseArgumentClose(m);
|
|
3457
3471
|
if (g.err)
|
|
3458
3472
|
return g;
|
|
3459
|
-
|
|
3473
|
+
s.push([
|
|
3460
3474
|
h,
|
|
3461
3475
|
{
|
|
3462
3476
|
value: y.val,
|
|
3463
|
-
location: m
|
|
3477
|
+
location: d(m, this.clonePosition())
|
|
3464
3478
|
}
|
|
3465
3479
|
]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
|
|
3466
3480
|
}
|
|
3467
|
-
return
|
|
3481
|
+
return s.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3468
3482
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3469
3483
|
var n = 1, i = this.clonePosition();
|
|
3470
3484
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3471
|
-
for (var o = !1,
|
|
3472
|
-
var
|
|
3473
|
-
if (
|
|
3474
|
-
o = !0,
|
|
3485
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3486
|
+
var s = this.char();
|
|
3487
|
+
if (s >= 48 && s <= 57)
|
|
3488
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3475
3489
|
else
|
|
3476
3490
|
break;
|
|
3477
3491
|
}
|
|
3478
|
-
var u =
|
|
3479
|
-
return o ? (
|
|
3492
|
+
var u = d(i, this.clonePosition());
|
|
3493
|
+
return o ? (a *= n, $n(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3480
3494
|
}, e.prototype.offset = function() {
|
|
3481
3495
|
return this.position.offset;
|
|
3482
3496
|
}, e.prototype.isEOF = function() {
|
|
@@ -3491,7 +3505,7 @@ var Un = (
|
|
|
3491
3505
|
var t = this.position.offset;
|
|
3492
3506
|
if (t >= this.message.length)
|
|
3493
3507
|
throw Error("out of bound");
|
|
3494
|
-
var r =
|
|
3508
|
+
var r = Wt(this.message, t);
|
|
3495
3509
|
if (r === void 0)
|
|
3496
3510
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3497
3511
|
return r;
|
|
@@ -3510,7 +3524,7 @@ var Un = (
|
|
|
3510
3524
|
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);
|
|
3511
3525
|
}
|
|
3512
3526
|
}, e.prototype.bumpIf = function(t) {
|
|
3513
|
-
if (
|
|
3527
|
+
if (ct(this.message, t, this.offset())) {
|
|
3514
3528
|
for (var r = 0; r < t.length; r++)
|
|
3515
3529
|
this.bump();
|
|
3516
3530
|
return !0;
|
|
@@ -3532,7 +3546,7 @@ var Un = (
|
|
|
3532
3546
|
break;
|
|
3533
3547
|
}
|
|
3534
3548
|
}, e.prototype.bumpSpace = function() {
|
|
3535
|
-
for (; !this.isEOF() &&
|
|
3549
|
+
for (; !this.isEOF() && Qt(this.char()); )
|
|
3536
3550
|
this.bump();
|
|
3537
3551
|
}, e.prototype.peek = function() {
|
|
3538
3552
|
if (this.isEOF())
|
|
@@ -3542,38 +3556,38 @@ var Un = (
|
|
|
3542
3556
|
}, e;
|
|
3543
3557
|
}()
|
|
3544
3558
|
);
|
|
3545
|
-
function
|
|
3559
|
+
function De(e) {
|
|
3546
3560
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3547
3561
|
}
|
|
3548
|
-
function Dn(e) {
|
|
3549
|
-
return Ue(e) || e === 47;
|
|
3550
|
-
}
|
|
3551
3562
|
function Gn(e) {
|
|
3563
|
+
return De(e) || e === 47;
|
|
3564
|
+
}
|
|
3565
|
+
function jn(e) {
|
|
3552
3566
|
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;
|
|
3553
3567
|
}
|
|
3554
|
-
function
|
|
3568
|
+
function Qt(e) {
|
|
3555
3569
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3556
3570
|
}
|
|
3557
|
-
function
|
|
3571
|
+
function kn(e) {
|
|
3558
3572
|
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;
|
|
3559
3573
|
}
|
|
3560
|
-
function
|
|
3574
|
+
function Fe(e) {
|
|
3561
3575
|
e.forEach(function(t) {
|
|
3562
|
-
if (delete t.location,
|
|
3576
|
+
if (delete t.location, Dt(t) || Ft(t))
|
|
3563
3577
|
for (var r in t.options)
|
|
3564
|
-
delete t.options[r].location,
|
|
3578
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3565
3579
|
else
|
|
3566
|
-
|
|
3580
|
+
$t(t) && jt(t.style) || (Rt(t) || Ut(t)) && Me(t.style) ? delete t.style.location : Gt(t) && Fe(t.children);
|
|
3567
3581
|
});
|
|
3568
3582
|
}
|
|
3569
|
-
function
|
|
3583
|
+
function Vn(e, t) {
|
|
3570
3584
|
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3571
|
-
var r = new
|
|
3585
|
+
var r = new Fn(e, t).parse();
|
|
3572
3586
|
if (r.err) {
|
|
3573
3587
|
var n = SyntaxError(p[r.err.kind]);
|
|
3574
3588
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3575
3589
|
}
|
|
3576
|
-
return t?.captureLocation ||
|
|
3590
|
+
return t?.captureLocation || Fe(r.val), r.val;
|
|
3577
3591
|
}
|
|
3578
3592
|
var V;
|
|
3579
3593
|
(function(e) {
|
|
@@ -3591,7 +3605,7 @@ var ge = (
|
|
|
3591
3605
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3592
3606
|
}, t;
|
|
3593
3607
|
}(Error)
|
|
3594
|
-
),
|
|
3608
|
+
), mt = (
|
|
3595
3609
|
/** @class */
|
|
3596
3610
|
function(e) {
|
|
3597
3611
|
A(t, e);
|
|
@@ -3600,7 +3614,7 @@ var ge = (
|
|
|
3600
3614
|
}
|
|
3601
3615
|
return t;
|
|
3602
3616
|
}(ge)
|
|
3603
|
-
),
|
|
3617
|
+
), zn = (
|
|
3604
3618
|
/** @class */
|
|
3605
3619
|
function(e) {
|
|
3606
3620
|
A(t, e);
|
|
@@ -3609,7 +3623,7 @@ var ge = (
|
|
|
3609
3623
|
}
|
|
3610
3624
|
return t;
|
|
3611
3625
|
}(ge)
|
|
3612
|
-
),
|
|
3626
|
+
), Xn = (
|
|
3613
3627
|
/** @class */
|
|
3614
3628
|
function(e) {
|
|
3615
3629
|
A(t, e);
|
|
@@ -3622,34 +3636,34 @@ var ge = (
|
|
|
3622
3636
|
(function(e) {
|
|
3623
3637
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3624
3638
|
})(x || (x = {}));
|
|
3625
|
-
function
|
|
3639
|
+
function Wn(e) {
|
|
3626
3640
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3627
3641
|
var n = t[t.length - 1];
|
|
3628
3642
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3629
3643
|
}, []);
|
|
3630
3644
|
}
|
|
3631
|
-
function
|
|
3645
|
+
function Zn(e) {
|
|
3632
3646
|
return typeof e == "function";
|
|
3633
3647
|
}
|
|
3634
|
-
function le(e, t, r, n, i, o,
|
|
3635
|
-
if (e.length === 1 &&
|
|
3648
|
+
function le(e, t, r, n, i, o, a) {
|
|
3649
|
+
if (e.length === 1 && at(e[0]))
|
|
3636
3650
|
return [
|
|
3637
3651
|
{
|
|
3638
3652
|
type: x.literal,
|
|
3639
3653
|
value: e[0].value
|
|
3640
3654
|
}
|
|
3641
3655
|
];
|
|
3642
|
-
for (var
|
|
3656
|
+
for (var s = [], u = 0, h = e; u < h.length; u++) {
|
|
3643
3657
|
var l = h[u];
|
|
3644
|
-
if (
|
|
3645
|
-
|
|
3658
|
+
if (at(l)) {
|
|
3659
|
+
s.push({
|
|
3646
3660
|
type: x.literal,
|
|
3647
3661
|
value: l.value
|
|
3648
3662
|
});
|
|
3649
3663
|
continue;
|
|
3650
3664
|
}
|
|
3651
|
-
if (
|
|
3652
|
-
typeof o == "number" &&
|
|
3665
|
+
if (bn(l)) {
|
|
3666
|
+
typeof o == "number" && s.push({
|
|
3653
3667
|
type: x.literal,
|
|
3654
3668
|
value: r.getNumberFormat(t).format(o)
|
|
3655
3669
|
});
|
|
@@ -3657,89 +3671,89 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3657
3671
|
}
|
|
3658
3672
|
var c = l.value;
|
|
3659
3673
|
if (!(i && c in i))
|
|
3660
|
-
throw new
|
|
3674
|
+
throw new Xn(c, a);
|
|
3661
3675
|
var f = i[c];
|
|
3662
|
-
if (
|
|
3663
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3676
|
+
if (dn(l)) {
|
|
3677
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3664
3678
|
type: typeof f == "string" ? x.literal : x.object,
|
|
3665
3679
|
value: f
|
|
3666
3680
|
});
|
|
3667
3681
|
continue;
|
|
3668
3682
|
}
|
|
3669
|
-
if (
|
|
3670
|
-
var
|
|
3671
|
-
|
|
3683
|
+
if (Rt(l)) {
|
|
3684
|
+
var m = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
|
|
3685
|
+
s.push({
|
|
3672
3686
|
type: x.literal,
|
|
3673
|
-
value: r.getDateTimeFormat(t,
|
|
3687
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3674
3688
|
});
|
|
3675
3689
|
continue;
|
|
3676
3690
|
}
|
|
3677
|
-
if (
|
|
3678
|
-
var
|
|
3679
|
-
|
|
3691
|
+
if (Ut(l)) {
|
|
3692
|
+
var m = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3693
|
+
s.push({
|
|
3680
3694
|
type: x.literal,
|
|
3681
|
-
value: r.getDateTimeFormat(t,
|
|
3695
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3682
3696
|
});
|
|
3683
3697
|
continue;
|
|
3684
3698
|
}
|
|
3685
|
-
if (
|
|
3686
|
-
var
|
|
3687
|
-
|
|
3699
|
+
if ($t(l)) {
|
|
3700
|
+
var m = typeof l.style == "string" ? n.number[l.style] : jt(l.style) ? l.style.parsedOptions : void 0;
|
|
3701
|
+
m && m.scale && (f = f * (m.scale || 1)), s.push({
|
|
3688
3702
|
type: x.literal,
|
|
3689
|
-
value: r.getNumberFormat(t,
|
|
3703
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3690
3704
|
});
|
|
3691
3705
|
continue;
|
|
3692
3706
|
}
|
|
3693
|
-
if (
|
|
3707
|
+
if (Gt(l)) {
|
|
3694
3708
|
var y = l.children, g = l.value, B = i[g];
|
|
3695
|
-
if (!
|
|
3696
|
-
throw new
|
|
3697
|
-
var
|
|
3709
|
+
if (!Zn(B))
|
|
3710
|
+
throw new zn(g, "function", a);
|
|
3711
|
+
var L = le(y, t, r, n, i, o), O = B(L.map(function(S) {
|
|
3698
3712
|
return S.value;
|
|
3699
3713
|
}));
|
|
3700
|
-
Array.isArray(O) || (O = [O]),
|
|
3714
|
+
Array.isArray(O) || (O = [O]), s.push.apply(s, O.map(function(S) {
|
|
3701
3715
|
return {
|
|
3702
3716
|
type: typeof S == "string" ? x.literal : x.object,
|
|
3703
3717
|
value: S
|
|
3704
3718
|
};
|
|
3705
3719
|
}));
|
|
3706
3720
|
}
|
|
3707
|
-
if (
|
|
3721
|
+
if (Dt(l)) {
|
|
3708
3722
|
var _ = l.options[f] || l.options.other;
|
|
3709
3723
|
if (!_)
|
|
3710
|
-
throw new
|
|
3711
|
-
|
|
3724
|
+
throw new mt(l.value, f, Object.keys(l.options), a);
|
|
3725
|
+
s.push.apply(s, le(_.value, t, r, n, i));
|
|
3712
3726
|
continue;
|
|
3713
3727
|
}
|
|
3714
|
-
if (
|
|
3728
|
+
if (Ft(l)) {
|
|
3715
3729
|
var _ = l.options["=".concat(f)];
|
|
3716
3730
|
if (!_) {
|
|
3717
3731
|
if (!Intl.PluralRules)
|
|
3718
3732
|
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3719
3733
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3720
|
-
`, V.MISSING_INTL_API,
|
|
3734
|
+
`, V.MISSING_INTL_API, a);
|
|
3721
3735
|
var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3722
3736
|
_ = l.options[w] || l.options.other;
|
|
3723
3737
|
}
|
|
3724
3738
|
if (!_)
|
|
3725
|
-
throw new
|
|
3726
|
-
|
|
3739
|
+
throw new mt(l.value, f, Object.keys(l.options), a);
|
|
3740
|
+
s.push.apply(s, le(_.value, t, r, n, i, f - (l.offset || 0)));
|
|
3727
3741
|
continue;
|
|
3728
3742
|
}
|
|
3729
3743
|
}
|
|
3730
|
-
return
|
|
3744
|
+
return Wn(s);
|
|
3731
3745
|
}
|
|
3732
|
-
function
|
|
3746
|
+
function Qn(e, t) {
|
|
3733
3747
|
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3734
3748
|
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
|
3735
3749
|
}, {})) : e;
|
|
3736
3750
|
}
|
|
3737
|
-
function
|
|
3751
|
+
function Jn(e, t) {
|
|
3738
3752
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3739
|
-
return r[n] =
|
|
3753
|
+
return r[n] = Qn(e[n], t[n]), r;
|
|
3740
3754
|
}, b({}, e)) : e;
|
|
3741
3755
|
}
|
|
3742
|
-
function
|
|
3756
|
+
function we(e) {
|
|
3743
3757
|
return {
|
|
3744
3758
|
create: function() {
|
|
3745
3759
|
return {
|
|
@@ -3753,39 +3767,39 @@ function Te(e) {
|
|
|
3753
3767
|
}
|
|
3754
3768
|
};
|
|
3755
3769
|
}
|
|
3756
|
-
function
|
|
3770
|
+
function Yn(e) {
|
|
3757
3771
|
return e === void 0 && (e = {
|
|
3758
3772
|
number: {},
|
|
3759
3773
|
dateTime: {},
|
|
3760
3774
|
pluralRules: {}
|
|
3761
3775
|
}), {
|
|
3762
|
-
getNumberFormat:
|
|
3776
|
+
getNumberFormat: Se(function() {
|
|
3763
3777
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3764
3778
|
r[n] = arguments[n];
|
|
3765
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3779
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, G([void 0], r, !1)))();
|
|
3766
3780
|
}, {
|
|
3767
|
-
cache:
|
|
3768
|
-
strategy:
|
|
3781
|
+
cache: we(e.number),
|
|
3782
|
+
strategy: Be.variadic
|
|
3769
3783
|
}),
|
|
3770
|
-
getDateTimeFormat:
|
|
3784
|
+
getDateTimeFormat: Se(function() {
|
|
3771
3785
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3772
3786
|
r[n] = arguments[n];
|
|
3773
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3787
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, G([void 0], r, !1)))();
|
|
3774
3788
|
}, {
|
|
3775
|
-
cache:
|
|
3776
|
-
strategy:
|
|
3789
|
+
cache: we(e.dateTime),
|
|
3790
|
+
strategy: Be.variadic
|
|
3777
3791
|
}),
|
|
3778
|
-
getPluralRules:
|
|
3792
|
+
getPluralRules: Se(function() {
|
|
3779
3793
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3780
3794
|
r[n] = arguments[n];
|
|
3781
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3795
|
+
return new ((t = Intl.PluralRules).bind.apply(t, G([void 0], r, !1)))();
|
|
3782
3796
|
}, {
|
|
3783
|
-
cache:
|
|
3784
|
-
strategy:
|
|
3797
|
+
cache: we(e.pluralRules),
|
|
3798
|
+
strategy: Be.variadic
|
|
3785
3799
|
})
|
|
3786
3800
|
};
|
|
3787
3801
|
}
|
|
3788
|
-
var
|
|
3802
|
+
var qn = (
|
|
3789
3803
|
/** @class */
|
|
3790
3804
|
function() {
|
|
3791
3805
|
function e(t, r, n, i) {
|
|
@@ -3815,15 +3829,15 @@ var Jn = (
|
|
|
3815
3829
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3816
3830
|
if (this.message = t, !e.__parse)
|
|
3817
3831
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3818
|
-
var
|
|
3819
|
-
|
|
3820
|
-
var
|
|
3821
|
-
this.ast = e.__parse(t, b(b({},
|
|
3832
|
+
var a = i || {};
|
|
3833
|
+
a.formatters;
|
|
3834
|
+
var s = Or(a, ["formatters"]);
|
|
3835
|
+
this.ast = e.__parse(t, b(b({}, s), { locale: this.resolvedLocale }));
|
|
3822
3836
|
} else
|
|
3823
3837
|
this.ast = t;
|
|
3824
3838
|
if (!Array.isArray(this.ast))
|
|
3825
3839
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3826
|
-
this.formats =
|
|
3840
|
+
this.formats = Jn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3827
3841
|
}
|
|
3828
3842
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3829
3843
|
get: function() {
|
|
@@ -3836,7 +3850,7 @@ var Jn = (
|
|
|
3836
3850
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3837
3851
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3838
3852
|
}
|
|
3839
|
-
}, e.__parse =
|
|
3853
|
+
}, e.__parse = Vn, e.formats = {
|
|
3840
3854
|
number: {
|
|
3841
3855
|
integer: {
|
|
3842
3856
|
maximumFractionDigits: 0
|
|
@@ -3897,7 +3911,7 @@ var Jn = (
|
|
|
3897
3911
|
}, e;
|
|
3898
3912
|
}()
|
|
3899
3913
|
);
|
|
3900
|
-
function
|
|
3914
|
+
function Kn(e, t) {
|
|
3901
3915
|
if (t == null)
|
|
3902
3916
|
return;
|
|
3903
3917
|
if (t in e)
|
|
@@ -3918,60 +3932,60 @@ function Yn(e, t) {
|
|
|
3918
3932
|
n = void 0;
|
|
3919
3933
|
return n;
|
|
3920
3934
|
}
|
|
3921
|
-
const I = {},
|
|
3935
|
+
const I = {}, ei = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Jt = (e, t) => {
|
|
3922
3936
|
if (t == null)
|
|
3923
3937
|
return;
|
|
3924
3938
|
if (t in I && e in I[t])
|
|
3925
3939
|
return I[t][e];
|
|
3926
3940
|
const r = ye(t);
|
|
3927
3941
|
for (let n = 0; n < r.length; n++) {
|
|
3928
|
-
const i = r[n], o =
|
|
3942
|
+
const i = r[n], o = ri(i, e);
|
|
3929
3943
|
if (o)
|
|
3930
|
-
return
|
|
3944
|
+
return ei(e, t, o);
|
|
3931
3945
|
}
|
|
3932
3946
|
};
|
|
3933
|
-
let
|
|
3947
|
+
let We;
|
|
3934
3948
|
const re = be({});
|
|
3935
|
-
function
|
|
3936
|
-
return
|
|
3949
|
+
function ti(e) {
|
|
3950
|
+
return We[e] || null;
|
|
3937
3951
|
}
|
|
3938
|
-
function
|
|
3939
|
-
return e in
|
|
3952
|
+
function Yt(e) {
|
|
3953
|
+
return e in We;
|
|
3940
3954
|
}
|
|
3941
|
-
function
|
|
3942
|
-
if (!
|
|
3955
|
+
function ri(e, t) {
|
|
3956
|
+
if (!Yt(e))
|
|
3943
3957
|
return null;
|
|
3944
|
-
const r =
|
|
3945
|
-
return
|
|
3958
|
+
const r = ti(e);
|
|
3959
|
+
return Kn(r, t);
|
|
3946
3960
|
}
|
|
3947
|
-
function
|
|
3961
|
+
function ni(e) {
|
|
3948
3962
|
if (e == null)
|
|
3949
3963
|
return;
|
|
3950
3964
|
const t = ye(e);
|
|
3951
3965
|
for (let r = 0; r < t.length; r++) {
|
|
3952
3966
|
const n = t[r];
|
|
3953
|
-
if (
|
|
3967
|
+
if (Yt(n))
|
|
3954
3968
|
return n;
|
|
3955
3969
|
}
|
|
3956
3970
|
}
|
|
3957
|
-
function
|
|
3958
|
-
delete I[e], re.update((r) => (r[e] =
|
|
3971
|
+
function qt(e, ...t) {
|
|
3972
|
+
delete I[e], re.update((r) => (r[e] = un.all([r[e] || {}, ...t]), r));
|
|
3959
3973
|
}
|
|
3960
3974
|
X(
|
|
3961
3975
|
[re],
|
|
3962
3976
|
([e]) => Object.keys(e)
|
|
3963
3977
|
);
|
|
3964
|
-
re.subscribe((e) =>
|
|
3978
|
+
re.subscribe((e) => We = e);
|
|
3965
3979
|
const ce = {};
|
|
3966
|
-
function
|
|
3980
|
+
function ii(e, t) {
|
|
3967
3981
|
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3968
3982
|
}
|
|
3969
|
-
function
|
|
3983
|
+
function Kt(e) {
|
|
3970
3984
|
return ce[e];
|
|
3971
3985
|
}
|
|
3972
|
-
function
|
|
3986
|
+
function oi(e) {
|
|
3973
3987
|
return ye(e).map((t) => {
|
|
3974
|
-
const r =
|
|
3988
|
+
const r = Kt(t);
|
|
3975
3989
|
return [t, r ? [...r] : []];
|
|
3976
3990
|
}).filter(([, t]) => t.length > 0);
|
|
3977
3991
|
}
|
|
@@ -3979,31 +3993,31 @@ function Ge(e) {
|
|
|
3979
3993
|
return e == null ? !1 : ye(e).some(
|
|
3980
3994
|
(t) => {
|
|
3981
3995
|
var r;
|
|
3982
|
-
return (r =
|
|
3996
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3983
3997
|
}
|
|
3984
3998
|
);
|
|
3985
3999
|
}
|
|
3986
|
-
function
|
|
4000
|
+
function si(e, t) {
|
|
3987
4001
|
return Promise.all(
|
|
3988
|
-
t.map((n) => (
|
|
3989
|
-
).then((n) =>
|
|
4002
|
+
t.map((n) => (ii(e, n), n().then((i) => i.default || i)))
|
|
4003
|
+
).then((n) => qt(e, ...n));
|
|
3990
4004
|
}
|
|
3991
4005
|
const Q = {};
|
|
3992
|
-
function
|
|
4006
|
+
function er(e) {
|
|
3993
4007
|
if (!Ge(e))
|
|
3994
4008
|
return e in Q ? Q[e] : Promise.resolve();
|
|
3995
|
-
const t =
|
|
4009
|
+
const t = oi(e);
|
|
3996
4010
|
return Q[e] = Promise.all(
|
|
3997
4011
|
t.map(
|
|
3998
|
-
([r, n]) =>
|
|
4012
|
+
([r, n]) => si(r, n)
|
|
3999
4013
|
)
|
|
4000
4014
|
).then(() => {
|
|
4001
4015
|
if (Ge(e))
|
|
4002
|
-
return
|
|
4016
|
+
return er(e);
|
|
4003
4017
|
delete Q[e];
|
|
4004
4018
|
}), Q[e];
|
|
4005
4019
|
}
|
|
4006
|
-
const
|
|
4020
|
+
const ai = {
|
|
4007
4021
|
number: {
|
|
4008
4022
|
scientific: { notation: "scientific" },
|
|
4009
4023
|
engineering: { notation: "engineering" },
|
|
@@ -4032,57 +4046,57 @@ const oi = {
|
|
|
4032
4046
|
timeZoneName: "short"
|
|
4033
4047
|
}
|
|
4034
4048
|
}
|
|
4035
|
-
},
|
|
4049
|
+
}, ui = {
|
|
4036
4050
|
fallbackLocale: null,
|
|
4037
4051
|
loadingDelay: 200,
|
|
4038
|
-
formats:
|
|
4052
|
+
formats: ai,
|
|
4039
4053
|
warnOnMissingMessages: !0,
|
|
4040
4054
|
handleMissingMessage: void 0,
|
|
4041
4055
|
ignoreTag: !0
|
|
4042
|
-
},
|
|
4056
|
+
}, hi = ui;
|
|
4043
4057
|
function z() {
|
|
4044
|
-
return
|
|
4045
|
-
}
|
|
4046
|
-
const
|
|
4047
|
-
var
|
|
4048
|
-
for (var r in t)
|
|
4049
|
-
|
|
4050
|
-
if (
|
|
4051
|
-
for (var r of
|
|
4052
|
-
|
|
4058
|
+
return hi;
|
|
4059
|
+
}
|
|
4060
|
+
const He = be(!1);
|
|
4061
|
+
var li = Object.defineProperty, ci = Object.defineProperties, fi = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, mi = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
|
|
4062
|
+
for (var r in t || (t = {}))
|
|
4063
|
+
pi.call(t, r) && bt(e, r, t[r]);
|
|
4064
|
+
if (dt)
|
|
4065
|
+
for (var r of dt(t))
|
|
4066
|
+
mi.call(t, r) && bt(e, r, t[r]);
|
|
4053
4067
|
return e;
|
|
4054
|
-
},
|
|
4055
|
-
let
|
|
4068
|
+
}, bi = (e, t) => ci(e, fi(t));
|
|
4069
|
+
let je;
|
|
4056
4070
|
const pe = be(null);
|
|
4057
|
-
function
|
|
4071
|
+
function gt(e) {
|
|
4058
4072
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4059
4073
|
}
|
|
4060
4074
|
function ye(e, t = z().fallbackLocale) {
|
|
4061
|
-
const r =
|
|
4062
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4075
|
+
const r = gt(e);
|
|
4076
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
4063
4077
|
}
|
|
4064
4078
|
function C() {
|
|
4065
|
-
return
|
|
4079
|
+
return je ?? void 0;
|
|
4066
4080
|
}
|
|
4067
4081
|
pe.subscribe((e) => {
|
|
4068
|
-
|
|
4082
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4069
4083
|
});
|
|
4070
|
-
const
|
|
4071
|
-
if (e &&
|
|
4084
|
+
const gi = (e) => {
|
|
4085
|
+
if (e && ni(e) && Ge(e)) {
|
|
4072
4086
|
const { loadingDelay: t } = z();
|
|
4073
4087
|
let r;
|
|
4074
4088
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
|
4075
|
-
() =>
|
|
4089
|
+
() => He.set(!0),
|
|
4076
4090
|
t
|
|
4077
|
-
) :
|
|
4091
|
+
) : He.set(!0), er(e).then(() => {
|
|
4078
4092
|
pe.set(e);
|
|
4079
4093
|
}).finally(() => {
|
|
4080
|
-
clearTimeout(r),
|
|
4094
|
+
clearTimeout(r), He.set(!1);
|
|
4081
4095
|
});
|
|
4082
4096
|
}
|
|
4083
4097
|
return pe.set(e);
|
|
4084
|
-
}, W = di(
|
|
4085
|
-
set:
|
|
4098
|
+
}, W = bi(di({}, pe), {
|
|
4099
|
+
set: gi
|
|
4086
4100
|
}), ve = (e) => {
|
|
4087
4101
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4088
4102
|
return (n) => {
|
|
@@ -4090,20 +4104,20 @@ const mi = (e) => {
|
|
|
4090
4104
|
return i in t ? t[i] : t[i] = e(n);
|
|
4091
4105
|
};
|
|
4092
4106
|
};
|
|
4093
|
-
var
|
|
4107
|
+
var yi = Object.defineProperty, me = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
4094
4108
|
for (var r in t || (t = {}))
|
|
4095
|
-
|
|
4096
|
-
if (
|
|
4097
|
-
for (var r of
|
|
4098
|
-
|
|
4109
|
+
tr.call(t, r) && yt(e, r, t[r]);
|
|
4110
|
+
if (me)
|
|
4111
|
+
for (var r of me(t))
|
|
4112
|
+
rr.call(t, r) && yt(e, r, t[r]);
|
|
4099
4113
|
return e;
|
|
4100
4114
|
}, Z = (e, t) => {
|
|
4101
4115
|
var r = {};
|
|
4102
4116
|
for (var n in e)
|
|
4103
|
-
|
|
4104
|
-
if (e != null &&
|
|
4105
|
-
for (var n of
|
|
4106
|
-
t.indexOf(n) < 0 &&
|
|
4117
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4118
|
+
if (e != null && me)
|
|
4119
|
+
for (var n of me(e))
|
|
4120
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
4107
4121
|
return r;
|
|
4108
4122
|
};
|
|
4109
4123
|
const ee = (e, t) => {
|
|
@@ -4111,21 +4125,21 @@ const ee = (e, t) => {
|
|
|
4111
4125
|
if (e in r && t in r[e])
|
|
4112
4126
|
return r[e][t];
|
|
4113
4127
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4114
|
-
},
|
|
4128
|
+
}, vi = ve(
|
|
4115
4129
|
(e) => {
|
|
4116
4130
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4117
4131
|
if (r == null)
|
|
4118
4132
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4119
4133
|
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4120
4134
|
}
|
|
4121
|
-
),
|
|
4135
|
+
), Ei = ve(
|
|
4122
4136
|
(e) => {
|
|
4123
4137
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4124
4138
|
if (r == null)
|
|
4125
4139
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4126
4140
|
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4127
4141
|
}
|
|
4128
|
-
),
|
|
4142
|
+
), xi = ve(
|
|
4129
4143
|
(e) => {
|
|
4130
4144
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4131
4145
|
if (r == null)
|
|
@@ -4134,57 +4148,57 @@ const ee = (e, t) => {
|
|
|
4134
4148
|
);
|
|
4135
4149
|
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4136
4150
|
}
|
|
4137
|
-
),
|
|
4151
|
+
), _i = (e = {}) => {
|
|
4138
4152
|
var t = e, {
|
|
4139
4153
|
locale: r = C()
|
|
4140
4154
|
} = t, n = Z(t, [
|
|
4141
4155
|
"locale"
|
|
4142
4156
|
]);
|
|
4143
|
-
return
|
|
4144
|
-
},
|
|
4157
|
+
return vi(Ze({ locale: r }, n));
|
|
4158
|
+
}, Si = (e = {}) => {
|
|
4145
4159
|
var t = e, {
|
|
4146
4160
|
locale: r = C()
|
|
4147
4161
|
} = t, n = Z(t, [
|
|
4148
4162
|
"locale"
|
|
4149
4163
|
]);
|
|
4150
|
-
return
|
|
4151
|
-
},
|
|
4164
|
+
return Ei(Ze({ locale: r }, n));
|
|
4165
|
+
}, Bi = (e = {}) => {
|
|
4152
4166
|
var t = e, {
|
|
4153
4167
|
locale: r = C()
|
|
4154
4168
|
} = t, n = Z(t, [
|
|
4155
4169
|
"locale"
|
|
4156
4170
|
]);
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4171
|
+
return xi(Ze({ locale: r }, n));
|
|
4172
|
+
}, Ti = ve(
|
|
4159
4173
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4160
|
-
(e, t = C()) => new
|
|
4174
|
+
(e, t = C()) => new qn(e, t, z().formats, {
|
|
4161
4175
|
ignoreTag: z().ignoreTag
|
|
4162
4176
|
})
|
|
4163
|
-
),
|
|
4177
|
+
), wi = (e, t = {}) => {
|
|
4164
4178
|
var r, n, i, o;
|
|
4165
|
-
let
|
|
4166
|
-
typeof e == "object" && (
|
|
4179
|
+
let a = t;
|
|
4180
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
4167
4181
|
const {
|
|
4168
|
-
values:
|
|
4182
|
+
values: s,
|
|
4169
4183
|
locale: u = C(),
|
|
4170
4184
|
default: h
|
|
4171
|
-
} =
|
|
4185
|
+
} = a;
|
|
4172
4186
|
if (u == null)
|
|
4173
4187
|
throw new Error(
|
|
4174
4188
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4175
4189
|
);
|
|
4176
|
-
let l =
|
|
4190
|
+
let l = Jt(e, u);
|
|
4177
4191
|
if (!l)
|
|
4178
4192
|
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
|
|
4179
4193
|
else if (typeof l != "string")
|
|
4180
4194
|
return console.warn(
|
|
4181
4195
|
`[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.`
|
|
4182
4196
|
), l;
|
|
4183
|
-
if (!
|
|
4197
|
+
if (!s)
|
|
4184
4198
|
return l;
|
|
4185
4199
|
let c = l;
|
|
4186
4200
|
try {
|
|
4187
|
-
c =
|
|
4201
|
+
c = Ti(l, u).format(s);
|
|
4188
4202
|
} catch (f) {
|
|
4189
4203
|
f instanceof Error && console.warn(
|
|
4190
4204
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4192,20 +4206,20 @@ const ee = (e, t) => {
|
|
|
4192
4206
|
);
|
|
4193
4207
|
}
|
|
4194
4208
|
return c;
|
|
4195
|
-
},
|
|
4196
|
-
X([W], () => Ti);
|
|
4197
|
-
X([W], () => wi);
|
|
4209
|
+
}, Hi = (e, t) => Bi(t).format(e), Pi = (e, t) => Si(t).format(e), Ai = (e, t) => _i(t).format(e), Oi = (e, t = C()) => Jt(e, t), Ii = X([W, re], () => wi);
|
|
4198
4210
|
X([W], () => Hi);
|
|
4199
|
-
X([W
|
|
4200
|
-
|
|
4211
|
+
X([W], () => Pi);
|
|
4212
|
+
X([W], () => Ai);
|
|
4213
|
+
X([W, re], () => Oi);
|
|
4214
|
+
window.emWidgets = { topic: Vr };
|
|
4201
4215
|
const se = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4202
|
-
function
|
|
4203
|
-
|
|
4216
|
+
function vt(e, t) {
|
|
4217
|
+
qt(e, t);
|
|
4204
4218
|
}
|
|
4205
|
-
function
|
|
4219
|
+
function Li(e) {
|
|
4206
4220
|
W.set(e);
|
|
4207
4221
|
}
|
|
4208
|
-
const
|
|
4222
|
+
const Et = {
|
|
4209
4223
|
en: {
|
|
4210
4224
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4211
4225
|
},
|
|
@@ -4246,92 +4260,92 @@ const yt = {
|
|
|
4246
4260
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4247
4261
|
}
|
|
4248
4262
|
};
|
|
4249
|
-
function Ii(e) {
|
|
4250
|
-
rr(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}}");
|
|
4251
|
-
}
|
|
4252
4263
|
function Ni(e) {
|
|
4264
|
+
or(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}}");
|
|
4265
|
+
}
|
|
4266
|
+
function Ci(e) {
|
|
4253
4267
|
let t, r, n, i = (
|
|
4254
4268
|
/*customtext*/
|
|
4255
4269
|
(e[0] || /*$_*/
|
|
4256
4270
|
e[5]("panicButtonString")) + ""
|
|
4257
|
-
), o,
|
|
4271
|
+
), o, a;
|
|
4258
4272
|
return {
|
|
4259
4273
|
c() {
|
|
4260
|
-
t = J("div"), r = J("div"), n = J("button"), o =
|
|
4274
|
+
t = J("div"), r = J("div"), n = J("button"), o = ur(i), N(n, "class", "PanicButton " + (se(
|
|
4261
4275
|
/*userAgent*/
|
|
4262
4276
|
e[6]
|
|
4263
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4277
|
+
) !== "PC" ? "PanicButtonMobile" : "")), N(n, "part", "PanicButton " + (se(
|
|
4264
4278
|
/*userAgent*/
|
|
4265
4279
|
e[6]
|
|
4266
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4280
|
+
) !== "PC" ? "PanicButtonMobile" : "")), Ye(
|
|
4267
4281
|
n,
|
|
4268
4282
|
"PanicButtonAnimation",
|
|
4269
4283
|
/*panicLoading*/
|
|
4270
4284
|
e[4]
|
|
4271
|
-
),
|
|
4285
|
+
), N(r, "class", "PanicSection " + (se(
|
|
4272
4286
|
/*userAgent*/
|
|
4273
4287
|
e[6]
|
|
4274
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4288
|
+
) !== "PC" ? "PanicSectionMobile" : "")), N(r, "part", "PanicSection " + (se(
|
|
4275
4289
|
/*userAgent*/
|
|
4276
4290
|
e[6]
|
|
4277
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4291
|
+
) !== "PC" ? "PanicSectionMobile" : "")), N(t, "class", a = /*alternativestyling*/
|
|
4278
4292
|
e[1] == "true" ? "PanicButtonV2" : "");
|
|
4279
4293
|
},
|
|
4280
|
-
m(
|
|
4281
|
-
|
|
4294
|
+
m(s, u) {
|
|
4295
|
+
Bt(s, t, u), ae(t, r), ae(r, n), ae(n, o), e[12](n), e[13](t);
|
|
4282
4296
|
},
|
|
4283
|
-
p(
|
|
4297
|
+
p(s, [u]) {
|
|
4284
4298
|
u & /*customtext, $_*/
|
|
4285
4299
|
33 && i !== (i = /*customtext*/
|
|
4286
|
-
(
|
|
4287
|
-
|
|
4288
|
-
16 &&
|
|
4300
|
+
(s[0] || /*$_*/
|
|
4301
|
+
s[5]("panicButtonString")) + "") && lr(o, i), u & /*panicLoading*/
|
|
4302
|
+
16 && Ye(
|
|
4289
4303
|
n,
|
|
4290
4304
|
"PanicButtonAnimation",
|
|
4291
4305
|
/*panicLoading*/
|
|
4292
|
-
|
|
4306
|
+
s[4]
|
|
4293
4307
|
), u & /*alternativestyling*/
|
|
4294
|
-
2 &&
|
|
4295
|
-
|
|
4308
|
+
2 && a !== (a = /*alternativestyling*/
|
|
4309
|
+
s[1] == "true" ? "PanicButtonV2" : "") && N(t, "class", a);
|
|
4296
4310
|
},
|
|
4297
4311
|
i: T,
|
|
4298
4312
|
o: T,
|
|
4299
|
-
d(
|
|
4300
|
-
|
|
4313
|
+
d(s) {
|
|
4314
|
+
s && Ve(t), e[12](null), e[13](null);
|
|
4301
4315
|
}
|
|
4302
4316
|
};
|
|
4303
4317
|
}
|
|
4304
|
-
function
|
|
4318
|
+
function Mi(e, t, r) {
|
|
4305
4319
|
let n;
|
|
4306
|
-
|
|
4307
|
-
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling:
|
|
4308
|
-
const
|
|
4320
|
+
ir(e, Ii, (v) => r(5, n = v));
|
|
4321
|
+
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, y = 0, g, B = window.navigator.userAgent;
|
|
4322
|
+
const L = () => {
|
|
4309
4323
|
fetch(l).then(($) => $.json()).then(($) => {
|
|
4310
|
-
Object.keys($).forEach((
|
|
4311
|
-
|
|
4324
|
+
Object.keys($).forEach((Qe) => {
|
|
4325
|
+
vt(Qe, $[Qe]);
|
|
4312
4326
|
});
|
|
4313
4327
|
}).catch(($) => {
|
|
4314
4328
|
console.log($);
|
|
4315
4329
|
});
|
|
4316
4330
|
};
|
|
4317
|
-
Object.keys(
|
|
4318
|
-
|
|
4331
|
+
Object.keys(Et).forEach((v) => {
|
|
4332
|
+
vt(v, Et[v]);
|
|
4319
4333
|
});
|
|
4320
4334
|
const O = () => {
|
|
4321
4335
|
c?.addEventListener("mousedown", w, !1), c?.addEventListener("touchstart", w, !1), c?.addEventListener("mouseup", S, !1), c?.addEventListener("touchend", S, !1);
|
|
4322
4336
|
}, _ = () => {
|
|
4323
|
-
r(4,
|
|
4337
|
+
r(4, m = !1), c?.removeEventListener("mousedown", w), c?.removeEventListener("touchstart", w), c?.removeEventListener("mouseup", S), c?.removeEventListener("touchend", S);
|
|
4324
4338
|
}, w = () => {
|
|
4325
|
-
y = 0, r(4,
|
|
4339
|
+
y = 0, r(4, m = !0), g = setInterval(
|
|
4326
4340
|
() => {
|
|
4327
4341
|
y++, y >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(g), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
|
|
4328
4342
|
},
|
|
4329
4343
|
1e3
|
|
4330
4344
|
);
|
|
4331
4345
|
}, S = () => {
|
|
4332
|
-
r(4,
|
|
4346
|
+
r(4, m = !1), clearInterval(g);
|
|
4333
4347
|
};
|
|
4334
|
-
|
|
4348
|
+
pr(() => () => {
|
|
4335
4349
|
_();
|
|
4336
4350
|
});
|
|
4337
4351
|
function M(v) {
|
|
@@ -4345,40 +4359,40 @@ function Li(e, t, r) {
|
|
|
4345
4359
|
});
|
|
4346
4360
|
}
|
|
4347
4361
|
return e.$$set = (v) => {
|
|
4348
|
-
"lang" in v && r(7, i = v.lang), "customtext" in v && r(0, o = v.customtext), "clientstyling" in v && r(8,
|
|
4362
|
+
"lang" in v && r(7, i = v.lang), "customtext" in v && r(0, o = v.customtext), "clientstyling" in v && r(8, a = v.clientstyling), "clientstylingurl" in v && r(9, s = v.clientstylingurl), "mbsource" in v && r(10, u = v.mbsource), "alternativestyling" in v && r(1, h = v.alternativestyling), "translationurl" in v && r(11, l = v.translationurl);
|
|
4349
4363
|
}, e.$$.update = () => {
|
|
4350
4364
|
e.$$.dirty & /*panicButton*/
|
|
4351
4365
|
4 && c && O(), e.$$.dirty & /*lang*/
|
|
4352
|
-
128 && i &&
|
|
4353
|
-
264 &&
|
|
4354
|
-
520 &&
|
|
4355
|
-
1032 && u && f &&
|
|
4356
|
-
2048 && l &&
|
|
4366
|
+
128 && i && Li(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4367
|
+
264 && a && f && Hr(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4368
|
+
520 && s && f && Pr(f, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4369
|
+
1032 && u && f && Ar(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4370
|
+
2048 && l && L();
|
|
4357
4371
|
}, [
|
|
4358
4372
|
o,
|
|
4359
4373
|
h,
|
|
4360
4374
|
c,
|
|
4361
4375
|
f,
|
|
4362
|
-
|
|
4376
|
+
m,
|
|
4363
4377
|
n,
|
|
4364
4378
|
B,
|
|
4365
4379
|
i,
|
|
4366
|
-
s,
|
|
4367
4380
|
a,
|
|
4381
|
+
s,
|
|
4368
4382
|
u,
|
|
4369
4383
|
l,
|
|
4370
4384
|
M,
|
|
4371
4385
|
ne
|
|
4372
4386
|
];
|
|
4373
4387
|
}
|
|
4374
|
-
class
|
|
4388
|
+
class $i extends Tr {
|
|
4375
4389
|
constructor(t) {
|
|
4376
|
-
super(),
|
|
4390
|
+
super(), Sr(
|
|
4377
4391
|
this,
|
|
4378
4392
|
t,
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4393
|
+
Mi,
|
|
4394
|
+
Ci,
|
|
4395
|
+
_t,
|
|
4382
4396
|
{
|
|
4383
4397
|
lang: 7,
|
|
4384
4398
|
customtext: 0,
|
|
@@ -4388,7 +4402,7 @@ class Ci extends _r {
|
|
|
4388
4402
|
alternativestyling: 1,
|
|
4389
4403
|
translationurl: 11
|
|
4390
4404
|
},
|
|
4391
|
-
|
|
4405
|
+
Ni
|
|
4392
4406
|
);
|
|
4393
4407
|
}
|
|
4394
4408
|
get lang() {
|
|
@@ -4434,7 +4448,7 @@ class Ci extends _r {
|
|
|
4434
4448
|
this.$$set({ translationurl: t }), H();
|
|
4435
4449
|
}
|
|
4436
4450
|
}
|
|
4437
|
-
|
|
4451
|
+
Br($i, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
|
|
4438
4452
|
export {
|
|
4439
|
-
|
|
4453
|
+
$i as P
|
|
4440
4454
|
};
|