@everymatrix/player-panic-button 1.76.3 → 1.76.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-B3N7_pDz.cjs +18 -0
- package/components/{PlayerPanicButton-DpaxzQmz.js → PlayerPanicButton-BRhdV4bT.js} +792 -757
- package/components/{PlayerPanicButton-kvRbaraB.js → PlayerPanicButton-Z0b_0GW0.js} +815 -780
- 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,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var lr = Object.defineProperty, cr = Object.defineProperties;
|
|
2
|
+
var fr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var et = Object.getOwnPropertySymbols;
|
|
4
|
+
var pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Se = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
pr.call(t, r) && Se(e, r, t[r]);
|
|
8
|
+
if (et)
|
|
9
|
+
for (var r of et(t))
|
|
10
|
+
mr.call(t, r) && Se(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, rt = (e, t) => cr(e, fr(t));
|
|
13
|
+
var w = (e, t, r) => (Se(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var nt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(u));
|
|
@@ -29,25 +29,25 @@ var Ke = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function At(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function it() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function te(e) {
|
|
39
|
+
e.forEach(At);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Qe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ot(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function dr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function It(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function Ht(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function br(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(It(t, r));
|
|
61
61
|
}
|
|
62
62
|
function ue(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function gr(e, t, r) {
|
|
66
|
+
const n = yr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = J("style");
|
|
69
|
+
i.id = t, i.textContent = r, vr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function yr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,39 +79,39 @@ function pr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function vr(e, t) {
|
|
83
83
|
return ue(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Nt(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Je(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function J(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Er(e) {
|
|
99
99
|
return document.createTextNode(e);
|
|
100
100
|
}
|
|
101
101
|
function C(e, t, r) {
|
|
102
102
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function _r(e) {
|
|
105
105
|
return Array.from(e.childNodes);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function xr(e, t) {
|
|
108
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
109
109
|
t);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ot(e, t, r) {
|
|
112
112
|
e.classList.toggle(t, !!r);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Sr(e) {
|
|
115
115
|
const t = {};
|
|
116
116
|
return e.childNodes.forEach(
|
|
117
117
|
/** @param {Element} node */
|
|
@@ -120,87 +120,87 @@ function vr(e) {
|
|
|
120
120
|
}
|
|
121
121
|
), t;
|
|
122
122
|
}
|
|
123
|
-
let
|
|
124
|
-
function
|
|
125
|
-
|
|
123
|
+
let q;
|
|
124
|
+
function Y(e) {
|
|
125
|
+
q = e;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
if (!
|
|
127
|
+
function wr() {
|
|
128
|
+
if (!q)
|
|
129
129
|
throw new Error("Function called outside component initialization");
|
|
130
|
-
return
|
|
130
|
+
return q;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
132
|
+
function Tr(e) {
|
|
133
|
+
wr().$$.on_mount.push(e);
|
|
134
134
|
}
|
|
135
|
-
const G = [],
|
|
135
|
+
const G = [], pe = [];
|
|
136
136
|
let F = [];
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
function
|
|
140
|
-
|
|
137
|
+
const st = [], Br = /* @__PURE__ */ Promise.resolve();
|
|
138
|
+
let Ne = !1;
|
|
139
|
+
function Hr() {
|
|
140
|
+
Ne || (Ne = !0, Br.then(A));
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Le(e) {
|
|
143
143
|
F.push(e);
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const we = /* @__PURE__ */ new Set();
|
|
146
146
|
let U = 0;
|
|
147
|
-
function
|
|
147
|
+
function A() {
|
|
148
148
|
if (U !== 0)
|
|
149
149
|
return;
|
|
150
|
-
const e =
|
|
150
|
+
const e = q;
|
|
151
151
|
do {
|
|
152
152
|
try {
|
|
153
153
|
for (; U < G.length; ) {
|
|
154
154
|
const t = G[U];
|
|
155
|
-
U++,
|
|
155
|
+
U++, Y(t), Pr(t.$$);
|
|
156
156
|
}
|
|
157
157
|
} catch (t) {
|
|
158
158
|
throw G.length = 0, U = 0, t;
|
|
159
159
|
}
|
|
160
|
-
for (
|
|
161
|
-
|
|
160
|
+
for (Y(null), G.length = 0, U = 0; pe.length; )
|
|
161
|
+
pe.pop()();
|
|
162
162
|
for (let t = 0; t < F.length; t += 1) {
|
|
163
163
|
const r = F[t];
|
|
164
|
-
|
|
164
|
+
we.has(r) || (we.add(r), r());
|
|
165
165
|
}
|
|
166
166
|
F.length = 0;
|
|
167
167
|
} while (G.length);
|
|
168
|
-
for (;
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
for (; st.length; )
|
|
169
|
+
st.pop()();
|
|
170
|
+
Ne = !1, we.clear(), Y(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Pr(e) {
|
|
173
173
|
if (e.fragment !== null) {
|
|
174
|
-
e.update(),
|
|
174
|
+
e.update(), te(e.before_update);
|
|
175
175
|
const t = e.dirty;
|
|
176
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
176
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Ar(e) {
|
|
180
180
|
const t = [], r = [];
|
|
181
181
|
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
182
182
|
}
|
|
183
|
-
const
|
|
184
|
-
function
|
|
185
|
-
e && e.i && (
|
|
183
|
+
const Or = /* @__PURE__ */ new Set();
|
|
184
|
+
function Ir(e, t) {
|
|
185
|
+
e && e.i && (Or.delete(e), e.i(t));
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Nr(e, t, r) {
|
|
188
188
|
const { fragment: n, after_update: i } = e.$$;
|
|
189
|
-
n && n.m(t, r),
|
|
190
|
-
const o = e.$$.on_mount.map(
|
|
191
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
192
|
-
}), i.forEach(
|
|
189
|
+
n && n.m(t, r), Le(() => {
|
|
190
|
+
const o = e.$$.on_mount.map(At).filter(Qe);
|
|
191
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
|
192
|
+
}), i.forEach(Le);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Lr(e, t) {
|
|
195
195
|
const r = e.$$;
|
|
196
|
-
r.fragment !== null && (
|
|
196
|
+
r.fragment !== null && (Ar(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
e.$$.dirty[0] === -1 && (G.push(e),
|
|
198
|
+
function Cr(e, t) {
|
|
199
|
+
e.$$.dirty[0] === -1 && (G.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
const u =
|
|
203
|
-
|
|
201
|
+
function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
202
|
+
const u = q;
|
|
203
|
+
Y(e);
|
|
204
204
|
const h = e.$$ = {
|
|
205
205
|
fragment: null,
|
|
206
206
|
ctx: [],
|
|
@@ -208,7 +208,7 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
208
208
|
props: o,
|
|
209
209
|
update: B,
|
|
210
210
|
not_equal: i,
|
|
211
|
-
bound:
|
|
211
|
+
bound: it(),
|
|
212
212
|
// lifecycle
|
|
213
213
|
on_mount: [],
|
|
214
214
|
on_destroy: [],
|
|
@@ -217,48 +217,48 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
217
217
|
after_update: [],
|
|
218
218
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
219
219
|
// everything else
|
|
220
|
-
callbacks:
|
|
220
|
+
callbacks: it(),
|
|
221
221
|
dirty: a,
|
|
222
222
|
skip_bound: !1,
|
|
223
223
|
root: t.target || u.$$.root
|
|
224
224
|
};
|
|
225
225
|
s && s(h.root);
|
|
226
226
|
let l = !1;
|
|
227
|
-
if (h.ctx = r(e, t.props || {}, (c, f, ...
|
|
228
|
-
const
|
|
229
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] =
|
|
230
|
-
}), h.update(), l = !0,
|
|
227
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
228
|
+
const g = m.length ? m[0] : f;
|
|
229
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l && Cr(e, c)), f;
|
|
230
|
+
}) : [], h.update(), l = !0, te(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
231
231
|
if (t.hydrate) {
|
|
232
|
-
const c =
|
|
233
|
-
h.fragment && h.fragment.l(c), c.forEach(
|
|
232
|
+
const c = _r(t.target);
|
|
233
|
+
h.fragment && h.fragment.l(c), c.forEach(Je);
|
|
234
234
|
} else
|
|
235
235
|
h.fragment && h.fragment.c();
|
|
236
|
-
t.intro &&
|
|
236
|
+
t.intro && Ir(e.$$.fragment), Nr(e, t.target, t.anchor), A();
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
Y(u);
|
|
239
239
|
}
|
|
240
|
-
let
|
|
241
|
-
typeof HTMLElement == "function" && (
|
|
240
|
+
let Lt;
|
|
241
|
+
typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
242
242
|
constructor(t, r, n) {
|
|
243
243
|
super();
|
|
244
244
|
/** The Svelte component constructor */
|
|
245
|
-
|
|
245
|
+
w(this, "$$ctor");
|
|
246
246
|
/** Slots */
|
|
247
|
-
|
|
247
|
+
w(this, "$$s");
|
|
248
248
|
/** The Svelte component instance */
|
|
249
|
-
|
|
249
|
+
w(this, "$$c");
|
|
250
250
|
/** Whether or not the custom element is connected */
|
|
251
|
-
|
|
251
|
+
w(this, "$$cn", !1);
|
|
252
252
|
/** Component props data */
|
|
253
|
-
|
|
253
|
+
w(this, "$$d", {});
|
|
254
254
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
255
|
-
|
|
255
|
+
w(this, "$$r", !1);
|
|
256
256
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
257
|
-
|
|
257
|
+
w(this, "$$p_d", {});
|
|
258
258
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
259
|
-
|
|
259
|
+
w(this, "$$l", {});
|
|
260
260
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
261
|
-
|
|
261
|
+
w(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
262
262
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
263
263
|
}
|
|
264
264
|
addEventListener(t, r, n) {
|
|
@@ -275,31 +275,31 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
connectedCallback() {
|
|
278
|
-
return
|
|
278
|
+
return nt(this, null, function* () {
|
|
279
279
|
if (this.$$cn = !0, !this.$$c) {
|
|
280
280
|
let t = function(o) {
|
|
281
281
|
return () => {
|
|
282
282
|
let s;
|
|
283
283
|
return {
|
|
284
284
|
c: function() {
|
|
285
|
-
s =
|
|
285
|
+
s = J("slot"), o !== "default" && C(s, "name", o);
|
|
286
286
|
},
|
|
287
287
|
/**
|
|
288
288
|
* @param {HTMLElement} target
|
|
289
289
|
* @param {HTMLElement} [anchor]
|
|
290
290
|
*/
|
|
291
291
|
m: function(h, l) {
|
|
292
|
-
|
|
292
|
+
Nt(h, s, l);
|
|
293
293
|
},
|
|
294
294
|
d: function(h) {
|
|
295
|
-
h &&
|
|
295
|
+
h && Je(s);
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
};
|
|
299
299
|
};
|
|
300
300
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
301
301
|
return;
|
|
302
|
-
const r = {}, n =
|
|
302
|
+
const r = {}, n = Sr(this);
|
|
303
303
|
for (const o of this.$$s)
|
|
304
304
|
o in n && (r[o] = [t(o)]);
|
|
305
305
|
for (const o of this.attributes) {
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
310
310
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
311
311
|
this.$$c = new this.$$ctor({
|
|
312
312
|
target: this.shadowRoot || this,
|
|
313
|
-
props:
|
|
313
|
+
props: rt(tt({}, this.$$d), {
|
|
314
314
|
$$slots: r,
|
|
315
315
|
$$scope: {
|
|
316
316
|
ctx: []
|
|
@@ -388,8 +388,8 @@ function he(e, t, r, n) {
|
|
|
388
388
|
return t;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
let s = class extends
|
|
391
|
+
function $r(e, t, r, n, i, o) {
|
|
392
|
+
let s = class extends Lt {
|
|
393
393
|
constructor() {
|
|
394
394
|
super(e, r, i), this.$$p_d = t;
|
|
395
395
|
}
|
|
@@ -419,7 +419,7 @@ function Nr(e, t, r, n, i, o) {
|
|
|
419
419
|
}), e.element = /** @type {any} */
|
|
420
420
|
s, s;
|
|
421
421
|
}
|
|
422
|
-
class
|
|
422
|
+
class Rr {
|
|
423
423
|
constructor() {
|
|
424
424
|
/**
|
|
425
425
|
* ### PRIVATE API
|
|
@@ -428,7 +428,7 @@ class Lr {
|
|
|
428
428
|
*
|
|
429
429
|
* @type {any}
|
|
430
430
|
*/
|
|
431
|
-
|
|
431
|
+
w(this, "$$");
|
|
432
432
|
/**
|
|
433
433
|
* ### PRIVATE API
|
|
434
434
|
*
|
|
@@ -436,11 +436,11 @@ class Lr {
|
|
|
436
436
|
*
|
|
437
437
|
* @type {any}
|
|
438
438
|
*/
|
|
439
|
-
|
|
439
|
+
w(this, "$$set");
|
|
440
440
|
}
|
|
441
441
|
/** @returns {void} */
|
|
442
442
|
$destroy() {
|
|
443
|
-
|
|
443
|
+
Lr(this, 1), this.$destroy = B;
|
|
444
444
|
}
|
|
445
445
|
/**
|
|
446
446
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -449,7 +449,7 @@ class Lr {
|
|
|
449
449
|
* @returns {() => void}
|
|
450
450
|
*/
|
|
451
451
|
$on(t, r) {
|
|
452
|
-
if (!
|
|
452
|
+
if (!Qe(r))
|
|
453
453
|
return B;
|
|
454
454
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
455
455
|
return n.push(r), () => {
|
|
@@ -462,18 +462,18 @@ class Lr {
|
|
|
462
462
|
* @returns {void}
|
|
463
463
|
*/
|
|
464
464
|
$set(t) {
|
|
465
|
-
this.$$set && !
|
|
465
|
+
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
const
|
|
469
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
470
|
-
function
|
|
468
|
+
const Ur = "4";
|
|
469
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
470
|
+
function Dr(e, t) {
|
|
471
471
|
if (e) {
|
|
472
472
|
const r = document.createElement("style");
|
|
473
473
|
r.innerHTML = t, e.appendChild(r);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Gr(e, t) {
|
|
477
477
|
const r = new URL(t);
|
|
478
478
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
479
479
|
const i = document.createElement("style");
|
|
@@ -482,7 +482,7 @@ function $r(e, t) {
|
|
|
482
482
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Fr(e, t, r) {
|
|
486
486
|
if (window.emMessageBus) {
|
|
487
487
|
const n = document.createElement("style");
|
|
488
488
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -504,43 +504,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
504
504
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
505
505
|
PERFORMANCE OF THIS SOFTWARE.
|
|
506
506
|
***************************************************************************** */
|
|
507
|
-
var
|
|
508
|
-
return
|
|
507
|
+
var Ce = function(e, t) {
|
|
508
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
509
509
|
r.__proto__ = n;
|
|
510
510
|
} || function(r, n) {
|
|
511
511
|
for (var i in n)
|
|
512
512
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
513
|
-
},
|
|
513
|
+
}, Ce(e, t);
|
|
514
514
|
};
|
|
515
|
-
function
|
|
515
|
+
function re(e, t) {
|
|
516
516
|
if (typeof t != "function" && t !== null)
|
|
517
517
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
518
|
-
|
|
518
|
+
Ce(e, t);
|
|
519
519
|
function r() {
|
|
520
520
|
this.constructor = e;
|
|
521
521
|
}
|
|
522
522
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
523
523
|
}
|
|
524
|
-
|
|
525
|
-
return b = Object.assign || function(t) {
|
|
526
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
527
|
-
r = arguments[n];
|
|
528
|
-
for (var o in r)
|
|
529
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
530
|
-
}
|
|
531
|
-
return t;
|
|
532
|
-
}, b.apply(this, arguments);
|
|
533
|
-
};
|
|
534
|
-
function Ur(e, t) {
|
|
535
|
-
var r = {};
|
|
536
|
-
for (var n in e)
|
|
537
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
538
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
539
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
540
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
541
|
-
return r;
|
|
542
|
-
}
|
|
543
|
-
function Ne(e) {
|
|
524
|
+
function Me(e) {
|
|
544
525
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
545
526
|
if (r)
|
|
546
527
|
return r.call(e);
|
|
@@ -552,7 +533,7 @@ function Ne(e) {
|
|
|
552
533
|
};
|
|
553
534
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
554
535
|
}
|
|
555
|
-
function
|
|
536
|
+
function $e(e, t) {
|
|
556
537
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
557
538
|
if (!r)
|
|
558
539
|
return e;
|
|
@@ -572,22 +553,22 @@ function Le(e, t) {
|
|
|
572
553
|
}
|
|
573
554
|
return o;
|
|
574
555
|
}
|
|
575
|
-
function
|
|
576
|
-
if (
|
|
556
|
+
function Re(e, t, r) {
|
|
557
|
+
if (arguments.length === 2)
|
|
577
558
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
578
559
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
579
560
|
return e.concat(o || t);
|
|
580
561
|
}
|
|
581
|
-
function
|
|
562
|
+
function O(e) {
|
|
582
563
|
return typeof e == "function";
|
|
583
564
|
}
|
|
584
|
-
function
|
|
565
|
+
function Ct(e) {
|
|
585
566
|
var t = function(n) {
|
|
586
567
|
Error.call(n), n.stack = new Error().stack;
|
|
587
568
|
}, r = e(t);
|
|
588
569
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
589
570
|
}
|
|
590
|
-
var
|
|
571
|
+
var Te = Ct(function(e) {
|
|
591
572
|
return function(r) {
|
|
592
573
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
593
574
|
` + r.map(function(n, i) {
|
|
@@ -596,13 +577,13 @@ var Se = Ot(function(e) {
|
|
|
596
577
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
597
578
|
};
|
|
598
579
|
});
|
|
599
|
-
function
|
|
580
|
+
function Ue(e, t) {
|
|
600
581
|
if (e) {
|
|
601
582
|
var r = e.indexOf(t);
|
|
602
583
|
0 <= r && e.splice(r, 1);
|
|
603
584
|
}
|
|
604
585
|
}
|
|
605
|
-
var
|
|
586
|
+
var ge = function() {
|
|
606
587
|
function e(t) {
|
|
607
588
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
608
589
|
}
|
|
@@ -614,12 +595,12 @@ var be = function() {
|
|
|
614
595
|
if (s)
|
|
615
596
|
if (this._parentage = null, Array.isArray(s))
|
|
616
597
|
try {
|
|
617
|
-
for (var a =
|
|
598
|
+
for (var a = Me(s), u = a.next(); !u.done; u = a.next()) {
|
|
618
599
|
var h = u.value;
|
|
619
600
|
h.remove(this);
|
|
620
601
|
}
|
|
621
|
-
} catch (
|
|
622
|
-
t = { error:
|
|
602
|
+
} catch (b) {
|
|
603
|
+
t = { error: b };
|
|
623
604
|
} finally {
|
|
624
605
|
try {
|
|
625
606
|
u && !u.done && (r = a.return) && r.call(a);
|
|
@@ -631,29 +612,29 @@ var be = function() {
|
|
|
631
612
|
else
|
|
632
613
|
s.remove(this);
|
|
633
614
|
var l = this.initialTeardown;
|
|
634
|
-
if (
|
|
615
|
+
if (O(l))
|
|
635
616
|
try {
|
|
636
617
|
l();
|
|
637
|
-
} catch (
|
|
638
|
-
o =
|
|
618
|
+
} catch (b) {
|
|
619
|
+
o = b instanceof Te ? b.errors : [b];
|
|
639
620
|
}
|
|
640
621
|
var c = this._finalizers;
|
|
641
622
|
if (c) {
|
|
642
623
|
this._finalizers = null;
|
|
643
624
|
try {
|
|
644
|
-
for (var f =
|
|
645
|
-
var
|
|
625
|
+
for (var f = Me(c), m = f.next(); !m.done; m = f.next()) {
|
|
626
|
+
var g = m.value;
|
|
646
627
|
try {
|
|
647
|
-
|
|
648
|
-
} catch (
|
|
649
|
-
o = o != null ? o : [],
|
|
628
|
+
at(g);
|
|
629
|
+
} catch (b) {
|
|
630
|
+
o = o != null ? o : [], b instanceof Te ? o = Re(Re([], $e(o)), $e(b.errors)) : o.push(b);
|
|
650
631
|
}
|
|
651
632
|
}
|
|
652
|
-
} catch (
|
|
653
|
-
n = { error:
|
|
633
|
+
} catch (b) {
|
|
634
|
+
n = { error: b };
|
|
654
635
|
} finally {
|
|
655
636
|
try {
|
|
656
|
-
|
|
637
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
657
638
|
} finally {
|
|
658
639
|
if (n)
|
|
659
640
|
throw n.error;
|
|
@@ -661,13 +642,13 @@ var be = function() {
|
|
|
661
642
|
}
|
|
662
643
|
}
|
|
663
644
|
if (o)
|
|
664
|
-
throw new
|
|
645
|
+
throw new Te(o);
|
|
665
646
|
}
|
|
666
647
|
}, e.prototype.add = function(t) {
|
|
667
648
|
var r;
|
|
668
649
|
if (t && t !== this)
|
|
669
650
|
if (this.closed)
|
|
670
|
-
|
|
651
|
+
at(t);
|
|
671
652
|
else {
|
|
672
653
|
if (t instanceof e) {
|
|
673
654
|
if (t.closed || t._hasParent(this))
|
|
@@ -684,56 +665,52 @@ var be = function() {
|
|
|
684
665
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
685
666
|
}, e.prototype._removeParent = function(t) {
|
|
686
667
|
var r = this._parentage;
|
|
687
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
668
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
688
669
|
}, e.prototype.remove = function(t) {
|
|
689
670
|
var r = this._finalizers;
|
|
690
|
-
r &&
|
|
671
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
691
672
|
}, e.EMPTY = function() {
|
|
692
673
|
var t = new e();
|
|
693
674
|
return t.closed = !0, t;
|
|
694
675
|
}(), e;
|
|
695
|
-
}(),
|
|
696
|
-
function
|
|
697
|
-
return e instanceof
|
|
698
|
-
}
|
|
699
|
-
function
|
|
700
|
-
|
|
701
|
-
}
|
|
702
|
-
var
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
Promise: void 0,
|
|
706
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
707
|
-
useDeprecatedNextContext: !1
|
|
708
|
-
}, Gr = {
|
|
676
|
+
}(), Mt = ge.EMPTY;
|
|
677
|
+
function $t(e) {
|
|
678
|
+
return e instanceof ge || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
679
|
+
}
|
|
680
|
+
function at(e) {
|
|
681
|
+
O(e) ? e() : e.unsubscribe();
|
|
682
|
+
}
|
|
683
|
+
var jr = {
|
|
684
|
+
Promise: void 0
|
|
685
|
+
}, kr = {
|
|
709
686
|
setTimeout: function(e, t) {
|
|
710
687
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
711
688
|
r[n - 2] = arguments[n];
|
|
712
|
-
return setTimeout.apply(void 0,
|
|
689
|
+
return setTimeout.apply(void 0, Re([e, t], $e(r)));
|
|
713
690
|
},
|
|
714
691
|
clearTimeout: function(e) {
|
|
715
692
|
return clearTimeout(e);
|
|
716
693
|
},
|
|
717
694
|
delegate: void 0
|
|
718
695
|
};
|
|
719
|
-
function
|
|
720
|
-
|
|
696
|
+
function Vr(e) {
|
|
697
|
+
kr.setTimeout(function() {
|
|
721
698
|
throw e;
|
|
722
699
|
});
|
|
723
700
|
}
|
|
724
|
-
function
|
|
701
|
+
function ut() {
|
|
725
702
|
}
|
|
726
703
|
function le(e) {
|
|
727
704
|
e();
|
|
728
705
|
}
|
|
729
|
-
var
|
|
730
|
-
|
|
706
|
+
var Rt = function(e) {
|
|
707
|
+
re(t, e);
|
|
731
708
|
function t(r) {
|
|
732
709
|
var n = e.call(this) || this;
|
|
733
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
710
|
+
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Wr, n;
|
|
734
711
|
}
|
|
735
712
|
return t.create = function(r, n, i) {
|
|
736
|
-
return new
|
|
713
|
+
return new De(r, n, i);
|
|
737
714
|
}, t.prototype.next = function(r) {
|
|
738
715
|
this.isStopped || this._next(r);
|
|
739
716
|
}, t.prototype.error = function(r) {
|
|
@@ -757,7 +734,7 @@ var Lt = function(e) {
|
|
|
757
734
|
this.unsubscribe();
|
|
758
735
|
}
|
|
759
736
|
}, t;
|
|
760
|
-
}(
|
|
737
|
+
}(ge), Xr = function() {
|
|
761
738
|
function e(t) {
|
|
762
739
|
this.partialObserver = t;
|
|
763
740
|
}
|
|
@@ -788,43 +765,43 @@ var Lt = function(e) {
|
|
|
788
765
|
oe(r);
|
|
789
766
|
}
|
|
790
767
|
}, e;
|
|
791
|
-
}(),
|
|
792
|
-
|
|
768
|
+
}(), De = function(e) {
|
|
769
|
+
re(t, e);
|
|
793
770
|
function t(r, n, i) {
|
|
794
771
|
var o = e.call(this) || this, s;
|
|
795
|
-
return
|
|
772
|
+
return O(r) || !r ? s = {
|
|
796
773
|
next: r != null ? r : void 0,
|
|
797
774
|
error: n != null ? n : void 0,
|
|
798
775
|
complete: i != null ? i : void 0
|
|
799
|
-
} : s = r, o.destination = new
|
|
776
|
+
} : s = r, o.destination = new Xr(s), o;
|
|
800
777
|
}
|
|
801
778
|
return t;
|
|
802
|
-
}(
|
|
779
|
+
}(Rt);
|
|
803
780
|
function oe(e) {
|
|
804
|
-
|
|
781
|
+
Vr(e);
|
|
805
782
|
}
|
|
806
|
-
function
|
|
783
|
+
function zr(e) {
|
|
807
784
|
throw e;
|
|
808
785
|
}
|
|
809
|
-
var
|
|
786
|
+
var Wr = {
|
|
810
787
|
closed: !0,
|
|
811
|
-
next:
|
|
812
|
-
error:
|
|
813
|
-
complete:
|
|
814
|
-
},
|
|
788
|
+
next: ut,
|
|
789
|
+
error: zr,
|
|
790
|
+
complete: ut
|
|
791
|
+
}, Zr = function() {
|
|
815
792
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
816
793
|
}();
|
|
817
|
-
function
|
|
794
|
+
function Qr(e) {
|
|
818
795
|
return e;
|
|
819
796
|
}
|
|
820
|
-
function
|
|
821
|
-
return e.length === 0 ?
|
|
797
|
+
function Jr(e) {
|
|
798
|
+
return e.length === 0 ? Qr : e.length === 1 ? e[0] : function(r) {
|
|
822
799
|
return e.reduce(function(n, i) {
|
|
823
800
|
return i(n);
|
|
824
801
|
}, r);
|
|
825
802
|
};
|
|
826
803
|
}
|
|
827
|
-
var
|
|
804
|
+
var ht = function() {
|
|
828
805
|
function e(t) {
|
|
829
806
|
t && (this._subscribe = t);
|
|
830
807
|
}
|
|
@@ -832,7 +809,7 @@ var ot = function() {
|
|
|
832
809
|
var r = new e();
|
|
833
810
|
return r.source = this, r.operator = t, r;
|
|
834
811
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
835
|
-
var i = this, o =
|
|
812
|
+
var i = this, o = qr(t) ? t : new De(t, r, n);
|
|
836
813
|
return le(function() {
|
|
837
814
|
var s = i, a = s.operator, u = s.source;
|
|
838
815
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -845,8 +822,8 @@ var ot = function() {
|
|
|
845
822
|
}
|
|
846
823
|
}, e.prototype.forEach = function(t, r) {
|
|
847
824
|
var n = this;
|
|
848
|
-
return r =
|
|
849
|
-
var s = new
|
|
825
|
+
return r = lt(r), new r(function(i, o) {
|
|
826
|
+
var s = new De({
|
|
850
827
|
next: function(a) {
|
|
851
828
|
try {
|
|
852
829
|
t(a);
|
|
@@ -862,15 +839,15 @@ var ot = function() {
|
|
|
862
839
|
}, e.prototype._subscribe = function(t) {
|
|
863
840
|
var r;
|
|
864
841
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
865
|
-
}, e.prototype[
|
|
842
|
+
}, e.prototype[Zr] = function() {
|
|
866
843
|
return this;
|
|
867
844
|
}, e.prototype.pipe = function() {
|
|
868
845
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
869
846
|
t[r] = arguments[r];
|
|
870
|
-
return
|
|
847
|
+
return Jr(t)(this);
|
|
871
848
|
}, e.prototype.toPromise = function(t) {
|
|
872
849
|
var r = this;
|
|
873
|
-
return t =
|
|
850
|
+
return t = lt(t), new t(function(n, i) {
|
|
874
851
|
var o;
|
|
875
852
|
r.subscribe(function(s) {
|
|
876
853
|
return o = s;
|
|
@@ -884,32 +861,32 @@ var ot = function() {
|
|
|
884
861
|
return new e(t);
|
|
885
862
|
}, e;
|
|
886
863
|
}();
|
|
887
|
-
function
|
|
864
|
+
function lt(e) {
|
|
888
865
|
var t;
|
|
889
|
-
return (t = e != null ? e :
|
|
866
|
+
return (t = e != null ? e : jr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
890
867
|
}
|
|
891
|
-
function
|
|
892
|
-
return e &&
|
|
868
|
+
function Yr(e) {
|
|
869
|
+
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
893
870
|
}
|
|
894
|
-
function
|
|
895
|
-
return e && e instanceof
|
|
871
|
+
function qr(e) {
|
|
872
|
+
return e && e instanceof Rt || Yr(e) && $t(e);
|
|
896
873
|
}
|
|
897
|
-
var
|
|
874
|
+
var Kr = Ct(function(e) {
|
|
898
875
|
return function() {
|
|
899
876
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
900
877
|
};
|
|
901
|
-
}),
|
|
902
|
-
|
|
878
|
+
}), Ut = function(e) {
|
|
879
|
+
re(t, e);
|
|
903
880
|
function t() {
|
|
904
881
|
var r = e.call(this) || this;
|
|
905
882
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
906
883
|
}
|
|
907
884
|
return t.prototype.lift = function(r) {
|
|
908
|
-
var n = new
|
|
885
|
+
var n = new ct(this, this);
|
|
909
886
|
return n.operator = r, n;
|
|
910
887
|
}, t.prototype._throwIfClosed = function() {
|
|
911
888
|
if (this.closed)
|
|
912
|
-
throw new
|
|
889
|
+
throw new Kr();
|
|
913
890
|
}, t.prototype.next = function(r) {
|
|
914
891
|
var n = this;
|
|
915
892
|
le(function() {
|
|
@@ -917,7 +894,7 @@ var Jr = Ot(function(e) {
|
|
|
917
894
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
918
895
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
919
896
|
try {
|
|
920
|
-
for (var s =
|
|
897
|
+
for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
921
898
|
var u = a.value;
|
|
922
899
|
u.next(r);
|
|
923
900
|
}
|
|
@@ -966,20 +943,20 @@ var Jr = Ot(function(e) {
|
|
|
966
943
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
967
944
|
}, t.prototype._innerSubscribe = function(r) {
|
|
968
945
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
969
|
-
return o || s ?
|
|
970
|
-
n.currentObservers = null,
|
|
946
|
+
return o || s ? Mt : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
947
|
+
n.currentObservers = null, Ue(a, r);
|
|
971
948
|
}));
|
|
972
949
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
973
950
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
974
951
|
i ? r.error(o) : s && r.complete();
|
|
975
952
|
}, t.prototype.asObservable = function() {
|
|
976
|
-
var r = new
|
|
953
|
+
var r = new ht();
|
|
977
954
|
return r.source = this, r;
|
|
978
955
|
}, t.create = function(r, n) {
|
|
979
|
-
return new
|
|
956
|
+
return new ct(r, n);
|
|
980
957
|
}, t;
|
|
981
|
-
}(
|
|
982
|
-
|
|
958
|
+
}(ht), ct = function(e) {
|
|
959
|
+
re(t, e);
|
|
983
960
|
function t(r, n) {
|
|
984
961
|
var i = e.call(this) || this;
|
|
985
962
|
return i.destination = r, i.source = n, i;
|
|
@@ -995,17 +972,17 @@ var Jr = Ot(function(e) {
|
|
|
995
972
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
996
973
|
}, t.prototype._subscribe = function(r) {
|
|
997
974
|
var n, i;
|
|
998
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
975
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
|
999
976
|
}, t;
|
|
1000
|
-
}(
|
|
977
|
+
}(Ut), Dt = {
|
|
1001
978
|
now: function() {
|
|
1002
|
-
return (
|
|
979
|
+
return (Dt.delegate || Date).now();
|
|
1003
980
|
},
|
|
1004
981
|
delegate: void 0
|
|
1005
|
-
},
|
|
1006
|
-
|
|
982
|
+
}, en = function(e) {
|
|
983
|
+
re(t, e);
|
|
1007
984
|
function t(r, n, i) {
|
|
1008
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
985
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
|
|
1009
986
|
var o = e.call(this) || this;
|
|
1010
987
|
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;
|
|
1011
988
|
}
|
|
@@ -1025,24 +1002,24 @@ var Jr = Ot(function(e) {
|
|
|
1025
1002
|
h && o.splice(0, h + 1);
|
|
1026
1003
|
}
|
|
1027
1004
|
}, t;
|
|
1028
|
-
}(
|
|
1029
|
-
const
|
|
1030
|
-
if (
|
|
1031
|
-
const r = new
|
|
1032
|
-
|
|
1005
|
+
}(Ut);
|
|
1006
|
+
const ft = [], pt = {}, tn = (e, t = 0) => {
|
|
1007
|
+
if (ft.indexOf(e) == -1) {
|
|
1008
|
+
const r = new en(t);
|
|
1009
|
+
pt[e] = r, ft.push(e);
|
|
1033
1010
|
}
|
|
1034
|
-
return
|
|
1011
|
+
return pt[e];
|
|
1035
1012
|
}, D = [];
|
|
1036
|
-
function
|
|
1013
|
+
function rn(e, t) {
|
|
1037
1014
|
return {
|
|
1038
|
-
subscribe:
|
|
1015
|
+
subscribe: ye(e, t).subscribe
|
|
1039
1016
|
};
|
|
1040
1017
|
}
|
|
1041
|
-
function
|
|
1018
|
+
function ye(e, t = B) {
|
|
1042
1019
|
let r;
|
|
1043
1020
|
const n = /* @__PURE__ */ new Set();
|
|
1044
1021
|
function i(a) {
|
|
1045
|
-
if (
|
|
1022
|
+
if (Ot(e, a) && (e = a, r)) {
|
|
1046
1023
|
const u = !D.length;
|
|
1047
1024
|
for (const h of n)
|
|
1048
1025
|
h[1](), D.push(h, e);
|
|
@@ -1064,12 +1041,12 @@ function ge(e, t = B) {
|
|
|
1064
1041
|
}
|
|
1065
1042
|
return { set: i, update: o, subscribe: s };
|
|
1066
1043
|
}
|
|
1067
|
-
function
|
|
1044
|
+
function z(e, t, r) {
|
|
1068
1045
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1069
1046
|
if (!i.every(Boolean))
|
|
1070
1047
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1071
1048
|
const o = t.length < 2;
|
|
1072
|
-
return
|
|
1049
|
+
return rn(r, (s, a) => {
|
|
1073
1050
|
let u = !1;
|
|
1074
1051
|
const h = [];
|
|
1075
1052
|
let l = 0, c = B;
|
|
@@ -1077,132 +1054,171 @@ function W(e, t, r) {
|
|
|
1077
1054
|
if (l)
|
|
1078
1055
|
return;
|
|
1079
1056
|
c();
|
|
1080
|
-
const
|
|
1081
|
-
o ? s(
|
|
1082
|
-
},
|
|
1083
|
-
(
|
|
1084
|
-
|
|
1085
|
-
(
|
|
1086
|
-
h[
|
|
1057
|
+
const g = t(n ? h[0] : h, s, a);
|
|
1058
|
+
o ? s(g) : c = Qe(g) ? g : B;
|
|
1059
|
+
}, m = i.map(
|
|
1060
|
+
(g, b) => It(
|
|
1061
|
+
g,
|
|
1062
|
+
(T) => {
|
|
1063
|
+
h[b] = T, l &= ~(1 << b), u && f();
|
|
1087
1064
|
},
|
|
1088
1065
|
() => {
|
|
1089
|
-
l |= 1 <<
|
|
1066
|
+
l |= 1 << b;
|
|
1090
1067
|
}
|
|
1091
1068
|
)
|
|
1092
1069
|
);
|
|
1093
1070
|
return u = !0, f(), function() {
|
|
1094
|
-
|
|
1071
|
+
te(m), c(), u = !1;
|
|
1095
1072
|
};
|
|
1096
1073
|
});
|
|
1097
1074
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1075
|
+
function nn(e) {
|
|
1076
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1100
1077
|
}
|
|
1101
|
-
var
|
|
1102
|
-
return
|
|
1078
|
+
var on = function(t) {
|
|
1079
|
+
return sn(t) && !an(t);
|
|
1103
1080
|
};
|
|
1104
|
-
function
|
|
1081
|
+
function sn(e) {
|
|
1105
1082
|
return !!e && typeof e == "object";
|
|
1106
1083
|
}
|
|
1107
|
-
function
|
|
1084
|
+
function an(e) {
|
|
1108
1085
|
var t = Object.prototype.toString.call(e);
|
|
1109
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1086
|
+
return t === "[object RegExp]" || t === "[object Date]" || ln(e);
|
|
1110
1087
|
}
|
|
1111
|
-
var
|
|
1112
|
-
function
|
|
1113
|
-
return e.$$typeof ===
|
|
1088
|
+
var un = typeof Symbol == "function" && Symbol.for, hn = un ? Symbol.for("react.element") : 60103;
|
|
1089
|
+
function ln(e) {
|
|
1090
|
+
return e.$$typeof === hn;
|
|
1114
1091
|
}
|
|
1115
|
-
function
|
|
1092
|
+
function cn(e) {
|
|
1116
1093
|
return Array.isArray(e) ? [] : {};
|
|
1117
1094
|
}
|
|
1118
|
-
function
|
|
1119
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1095
|
+
function K(e, t) {
|
|
1096
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(cn(e), e, t) : e;
|
|
1120
1097
|
}
|
|
1121
|
-
function
|
|
1098
|
+
function fn(e, t, r) {
|
|
1122
1099
|
return e.concat(t).map(function(n) {
|
|
1123
|
-
return
|
|
1100
|
+
return K(n, r);
|
|
1124
1101
|
});
|
|
1125
1102
|
}
|
|
1126
|
-
function
|
|
1103
|
+
function pn(e, t) {
|
|
1127
1104
|
if (!t.customMerge)
|
|
1128
|
-
return
|
|
1105
|
+
return j;
|
|
1129
1106
|
var r = t.customMerge(e);
|
|
1130
|
-
return typeof r == "function" ? r :
|
|
1107
|
+
return typeof r == "function" ? r : j;
|
|
1131
1108
|
}
|
|
1132
|
-
function
|
|
1109
|
+
function mn(e) {
|
|
1133
1110
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1134
1111
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1135
1112
|
}) : [];
|
|
1136
1113
|
}
|
|
1137
|
-
function
|
|
1138
|
-
return Object.keys(e).concat(
|
|
1114
|
+
function mt(e) {
|
|
1115
|
+
return Object.keys(e).concat(mn(e));
|
|
1139
1116
|
}
|
|
1140
|
-
function
|
|
1117
|
+
function Gt(e, t) {
|
|
1141
1118
|
try {
|
|
1142
1119
|
return t in e;
|
|
1143
1120
|
} catch (r) {
|
|
1144
1121
|
return !1;
|
|
1145
1122
|
}
|
|
1146
1123
|
}
|
|
1147
|
-
function
|
|
1148
|
-
return
|
|
1124
|
+
function dn(e, t) {
|
|
1125
|
+
return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1149
1126
|
}
|
|
1150
|
-
function
|
|
1127
|
+
function bn(e, t, r) {
|
|
1151
1128
|
var n = {};
|
|
1152
|
-
return r.isMergeableObject(e) &&
|
|
1153
|
-
n[i] =
|
|
1154
|
-
}),
|
|
1155
|
-
|
|
1129
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1130
|
+
n[i] = K(e[i], r);
|
|
1131
|
+
}), mt(t).forEach(function(i) {
|
|
1132
|
+
dn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
1156
1133
|
}), n;
|
|
1157
1134
|
}
|
|
1158
|
-
function
|
|
1159
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1135
|
+
function j(e, t, r) {
|
|
1136
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = K;
|
|
1160
1137
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1161
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1138
|
+
return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : K(t, r);
|
|
1162
1139
|
}
|
|
1163
|
-
|
|
1140
|
+
j.all = function(t, r) {
|
|
1164
1141
|
if (!Array.isArray(t))
|
|
1165
1142
|
throw new Error("first argument should be an array");
|
|
1166
1143
|
return t.reduce(function(n, i) {
|
|
1167
|
-
return
|
|
1144
|
+
return j(n, i, r);
|
|
1168
1145
|
}, {});
|
|
1169
1146
|
};
|
|
1170
|
-
var
|
|
1171
|
-
const
|
|
1172
|
-
function
|
|
1173
|
-
|
|
1147
|
+
var gn = j, yn = gn;
|
|
1148
|
+
const vn = /* @__PURE__ */ nn(yn);
|
|
1149
|
+
var Ge = function(e, t) {
|
|
1150
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1151
|
+
r.__proto__ = n;
|
|
1152
|
+
} || function(r, n) {
|
|
1153
|
+
for (var i in n)
|
|
1154
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1155
|
+
}, Ge(e, t);
|
|
1156
|
+
};
|
|
1157
|
+
function ve(e, t) {
|
|
1158
|
+
if (typeof t != "function" && t !== null)
|
|
1159
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1160
|
+
Ge(e, t);
|
|
1161
|
+
function r() {
|
|
1162
|
+
this.constructor = e;
|
|
1163
|
+
}
|
|
1164
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1165
|
+
}
|
|
1166
|
+
var P = function() {
|
|
1167
|
+
return P = Object.assign || function(t) {
|
|
1168
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1169
|
+
r = arguments[n];
|
|
1170
|
+
for (var o in r)
|
|
1171
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1172
|
+
}
|
|
1173
|
+
return t;
|
|
1174
|
+
}, P.apply(this, arguments);
|
|
1175
|
+
};
|
|
1176
|
+
function En(e, t) {
|
|
1177
|
+
var r = {};
|
|
1178
|
+
for (var n in e)
|
|
1179
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1180
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1181
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1182
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1183
|
+
return r;
|
|
1184
|
+
}
|
|
1185
|
+
function Be(e, t, r) {
|
|
1186
|
+
if (r || arguments.length === 2)
|
|
1187
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1188
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1189
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1190
|
+
}
|
|
1191
|
+
function He(e, t) {
|
|
1192
|
+
var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : Sn;
|
|
1174
1193
|
return i(e, {
|
|
1175
1194
|
cache: r,
|
|
1176
1195
|
serializer: n
|
|
1177
1196
|
});
|
|
1178
1197
|
}
|
|
1179
|
-
function
|
|
1198
|
+
function _n(e) {
|
|
1180
1199
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1181
1200
|
}
|
|
1182
|
-
function
|
|
1183
|
-
var i =
|
|
1201
|
+
function xn(e, t, r, n) {
|
|
1202
|
+
var i = _n(n) ? n : r(n), o = t.get(i);
|
|
1184
1203
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1185
1204
|
}
|
|
1186
|
-
function
|
|
1205
|
+
function Ft(e, t, r) {
|
|
1187
1206
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1188
1207
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1189
1208
|
}
|
|
1190
|
-
function
|
|
1209
|
+
function jt(e, t, r, n, i) {
|
|
1191
1210
|
return r.bind(t, e, n, i);
|
|
1192
1211
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var r = e.length === 1 ?
|
|
1195
|
-
return
|
|
1196
|
-
}
|
|
1197
|
-
function vn(e, t) {
|
|
1198
|
-
return Xe(e, this, Ut, t.cache.create(), t.serializer);
|
|
1212
|
+
function Sn(e, t) {
|
|
1213
|
+
var r = e.length === 1 ? xn : Ft;
|
|
1214
|
+
return jt(e, this, r, t.cache.create(), t.serializer);
|
|
1199
1215
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return
|
|
1216
|
+
function wn(e, t) {
|
|
1217
|
+
return jt(e, this, Ft, t.cache.create(), t.serializer);
|
|
1202
1218
|
}
|
|
1203
|
-
var
|
|
1219
|
+
var Tn = function() {
|
|
1204
1220
|
return JSON.stringify(arguments);
|
|
1205
|
-
},
|
|
1221
|
+
}, Bn = (
|
|
1206
1222
|
/** @class */
|
|
1207
1223
|
function() {
|
|
1208
1224
|
function e() {
|
|
@@ -1214,62 +1230,71 @@ var xn = function() {
|
|
|
1214
1230
|
this.cache[t] = r;
|
|
1215
1231
|
}, e;
|
|
1216
1232
|
}()
|
|
1217
|
-
),
|
|
1233
|
+
), Hn = {
|
|
1218
1234
|
create: function() {
|
|
1219
|
-
return new
|
|
1235
|
+
return new Bn();
|
|
1220
1236
|
}
|
|
1221
|
-
},
|
|
1222
|
-
variadic:
|
|
1223
|
-
|
|
1224
|
-
|
|
1237
|
+
}, Pe = {
|
|
1238
|
+
variadic: wn
|
|
1239
|
+
}, me = function() {
|
|
1240
|
+
return me = Object.assign || function(t) {
|
|
1241
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1242
|
+
r = arguments[n];
|
|
1243
|
+
for (var o in r)
|
|
1244
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1245
|
+
}
|
|
1246
|
+
return t;
|
|
1247
|
+
}, me.apply(this, arguments);
|
|
1248
|
+
};
|
|
1249
|
+
var p;
|
|
1225
1250
|
(function(e) {
|
|
1226
1251
|
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";
|
|
1227
|
-
})(
|
|
1228
|
-
var
|
|
1252
|
+
})(p || (p = {}));
|
|
1253
|
+
var v;
|
|
1229
1254
|
(function(e) {
|
|
1230
1255
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1231
|
-
})(
|
|
1232
|
-
var
|
|
1256
|
+
})(v || (v = {}));
|
|
1257
|
+
var k;
|
|
1233
1258
|
(function(e) {
|
|
1234
1259
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1235
|
-
})(
|
|
1236
|
-
function
|
|
1237
|
-
return e.type ===
|
|
1260
|
+
})(k || (k = {}));
|
|
1261
|
+
function dt(e) {
|
|
1262
|
+
return e.type === v.literal;
|
|
1238
1263
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return e.type ===
|
|
1264
|
+
function Pn(e) {
|
|
1265
|
+
return e.type === v.argument;
|
|
1241
1266
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return e.type ===
|
|
1267
|
+
function kt(e) {
|
|
1268
|
+
return e.type === v.number;
|
|
1244
1269
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return e.type ===
|
|
1270
|
+
function Vt(e) {
|
|
1271
|
+
return e.type === v.date;
|
|
1247
1272
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return e.type ===
|
|
1273
|
+
function Xt(e) {
|
|
1274
|
+
return e.type === v.time;
|
|
1250
1275
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return e.type ===
|
|
1276
|
+
function zt(e) {
|
|
1277
|
+
return e.type === v.select;
|
|
1253
1278
|
}
|
|
1254
|
-
function
|
|
1255
|
-
return e.type ===
|
|
1279
|
+
function Wt(e) {
|
|
1280
|
+
return e.type === v.plural;
|
|
1256
1281
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return e.type ===
|
|
1282
|
+
function An(e) {
|
|
1283
|
+
return e.type === v.pound;
|
|
1259
1284
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return e.type ===
|
|
1285
|
+
function Zt(e) {
|
|
1286
|
+
return e.type === v.tag;
|
|
1262
1287
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1288
|
+
function Qt(e) {
|
|
1289
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
1265
1290
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1291
|
+
function Fe(e) {
|
|
1292
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
1268
1293
|
}
|
|
1269
|
-
var
|
|
1270
|
-
function
|
|
1294
|
+
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
|
|
1295
|
+
function In(e) {
|
|
1271
1296
|
var t = {};
|
|
1272
|
-
return e.replace(
|
|
1297
|
+
return e.replace(On, function(r) {
|
|
1273
1298
|
var n = r.length;
|
|
1274
1299
|
switch (r[0]) {
|
|
1275
1300
|
case "G":
|
|
@@ -1358,11 +1383,21 @@ function Hn(e) {
|
|
|
1358
1383
|
return "";
|
|
1359
1384
|
}), t;
|
|
1360
1385
|
}
|
|
1361
|
-
var
|
|
1362
|
-
function
|
|
1386
|
+
var E = function() {
|
|
1387
|
+
return E = Object.assign || function(t) {
|
|
1388
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1389
|
+
r = arguments[n];
|
|
1390
|
+
for (var o in r)
|
|
1391
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1392
|
+
}
|
|
1393
|
+
return t;
|
|
1394
|
+
}, E.apply(this, arguments);
|
|
1395
|
+
};
|
|
1396
|
+
var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1397
|
+
function Ln(e) {
|
|
1363
1398
|
if (e.length === 0)
|
|
1364
1399
|
throw new Error("Number skeleton cannot be empty");
|
|
1365
|
-
for (var t = e.split(
|
|
1400
|
+
for (var t = e.split(Nn).filter(function(f) {
|
|
1366
1401
|
return f.length > 0;
|
|
1367
1402
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1368
1403
|
var o = i[n], s = o.split("/");
|
|
@@ -1377,17 +1412,17 @@ function An(e) {
|
|
|
1377
1412
|
}
|
|
1378
1413
|
return r;
|
|
1379
1414
|
}
|
|
1380
|
-
function
|
|
1415
|
+
function Cn(e) {
|
|
1381
1416
|
return e.replace(/^(.*?)-/, "");
|
|
1382
1417
|
}
|
|
1383
|
-
var
|
|
1384
|
-
function
|
|
1418
|
+
var bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Yt = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
|
|
1419
|
+
function gt(e) {
|
|
1385
1420
|
var t = {};
|
|
1386
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1421
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Yt, function(r, n, i) {
|
|
1387
1422
|
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)), "";
|
|
1388
1423
|
}), t;
|
|
1389
1424
|
}
|
|
1390
|
-
function
|
|
1425
|
+
function Kt(e) {
|
|
1391
1426
|
switch (e) {
|
|
1392
1427
|
case "sign-auto":
|
|
1393
1428
|
return {
|
|
@@ -1427,7 +1462,7 @@ function Qt(e) {
|
|
|
1427
1462
|
};
|
|
1428
1463
|
}
|
|
1429
1464
|
}
|
|
1430
|
-
function
|
|
1465
|
+
function $n(e) {
|
|
1431
1466
|
var t;
|
|
1432
1467
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1433
1468
|
notation: "engineering"
|
|
@@ -1435,17 +1470,17 @@ function Nn(e) {
|
|
|
1435
1470
|
notation: "scientific"
|
|
1436
1471
|
}, e = e.slice(1)), t) {
|
|
1437
1472
|
var r = e.slice(0, 2);
|
|
1438
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1473
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
|
|
1439
1474
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1440
1475
|
t.minimumIntegerDigits = e.length;
|
|
1441
1476
|
}
|
|
1442
1477
|
return t;
|
|
1443
1478
|
}
|
|
1444
|
-
function
|
|
1445
|
-
var t = {}, r =
|
|
1479
|
+
function yt(e) {
|
|
1480
|
+
var t = {}, r = Kt(e);
|
|
1446
1481
|
return r || t;
|
|
1447
1482
|
}
|
|
1448
|
-
function
|
|
1483
|
+
function Rn(e) {
|
|
1449
1484
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1450
1485
|
var i = n[r];
|
|
1451
1486
|
switch (i.stem) {
|
|
@@ -1469,7 +1504,7 @@ function Ln(e) {
|
|
|
1469
1504
|
continue;
|
|
1470
1505
|
case "measure-unit":
|
|
1471
1506
|
case "unit":
|
|
1472
|
-
t.style = "unit", t.unit =
|
|
1507
|
+
t.style = "unit", t.unit = Cn(i.options[0]);
|
|
1473
1508
|
continue;
|
|
1474
1509
|
case "compact-short":
|
|
1475
1510
|
case "K":
|
|
@@ -1480,13 +1515,13 @@ function Ln(e) {
|
|
|
1480
1515
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1481
1516
|
continue;
|
|
1482
1517
|
case "scientific":
|
|
1483
|
-
t =
|
|
1484
|
-
return
|
|
1518
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
|
1519
|
+
return E(E({}, u), yt(h));
|
|
1485
1520
|
}, {}));
|
|
1486
1521
|
continue;
|
|
1487
1522
|
case "engineering":
|
|
1488
|
-
t =
|
|
1489
|
-
return
|
|
1523
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
|
1524
|
+
return E(E({}, u), yt(h));
|
|
1490
1525
|
}, {}));
|
|
1491
1526
|
continue;
|
|
1492
1527
|
case "notation-simple":
|
|
@@ -1531,41 +1566,41 @@ function Ln(e) {
|
|
|
1531
1566
|
case "integer-width":
|
|
1532
1567
|
if (i.options.length > 1)
|
|
1533
1568
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1534
|
-
i.options[0].replace(
|
|
1569
|
+
i.options[0].replace(Mn, function(u, h, l, c, f, m) {
|
|
1535
1570
|
if (h)
|
|
1536
1571
|
t.minimumIntegerDigits = l.length;
|
|
1537
1572
|
else {
|
|
1538
1573
|
if (c && f)
|
|
1539
1574
|
throw new Error("We currently do not support maximum integer digits");
|
|
1540
|
-
if (
|
|
1575
|
+
if (m)
|
|
1541
1576
|
throw new Error("We currently do not support exact integer digits");
|
|
1542
1577
|
}
|
|
1543
1578
|
return "";
|
|
1544
1579
|
});
|
|
1545
1580
|
continue;
|
|
1546
1581
|
}
|
|
1547
|
-
if (
|
|
1582
|
+
if (qt.test(i.stem)) {
|
|
1548
1583
|
t.minimumIntegerDigits = i.stem.length;
|
|
1549
1584
|
continue;
|
|
1550
1585
|
}
|
|
1551
|
-
if (
|
|
1586
|
+
if (bt.test(i.stem)) {
|
|
1552
1587
|
if (i.options.length > 1)
|
|
1553
1588
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1554
|
-
i.stem.replace(
|
|
1555
|
-
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1589
|
+
i.stem.replace(bt, function(u, h, l, c, f, m) {
|
|
1590
|
+
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), "";
|
|
1556
1591
|
});
|
|
1557
1592
|
var o = i.options[0];
|
|
1558
|
-
o === "w" ? t =
|
|
1593
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), gt(o)));
|
|
1559
1594
|
continue;
|
|
1560
1595
|
}
|
|
1561
|
-
if (
|
|
1562
|
-
t =
|
|
1596
|
+
if (Yt.test(i.stem)) {
|
|
1597
|
+
t = E(E({}, t), gt(i.stem));
|
|
1563
1598
|
continue;
|
|
1564
1599
|
}
|
|
1565
|
-
var s =
|
|
1566
|
-
s && (t =
|
|
1567
|
-
var a =
|
|
1568
|
-
a && (t =
|
|
1600
|
+
var s = Kt(i.stem);
|
|
1601
|
+
s && (t = E(E({}, t), s));
|
|
1602
|
+
var a = $n(i.stem);
|
|
1603
|
+
a && (t = E(E({}, t), a));
|
|
1569
1604
|
}
|
|
1570
1605
|
return t;
|
|
1571
1606
|
}
|
|
@@ -2984,13 +3019,13 @@ var se = {
|
|
|
2984
3019
|
"h"
|
|
2985
3020
|
]
|
|
2986
3021
|
};
|
|
2987
|
-
function
|
|
3022
|
+
function Un(e, t) {
|
|
2988
3023
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2989
3024
|
var i = e.charAt(n);
|
|
2990
3025
|
if (i === "j") {
|
|
2991
3026
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2992
3027
|
o++, n++;
|
|
2993
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h =
|
|
3028
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = Dn(t);
|
|
2994
3029
|
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
|
2995
3030
|
r += u;
|
|
2996
3031
|
for (; s-- > 0; )
|
|
@@ -3000,7 +3035,7 @@ function Cn(e, t) {
|
|
|
3000
3035
|
}
|
|
3001
3036
|
return r;
|
|
3002
3037
|
}
|
|
3003
|
-
function
|
|
3038
|
+
function Dn(e) {
|
|
3004
3039
|
var t = e.hourCycle;
|
|
3005
3040
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3006
3041
|
e.hourCycles && // @ts-ignore
|
|
@@ -3022,20 +3057,20 @@ function Mn(e) {
|
|
|
3022
3057
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3023
3058
|
return i[0];
|
|
3024
3059
|
}
|
|
3025
|
-
var
|
|
3026
|
-
function
|
|
3060
|
+
var Ae, Gn = new RegExp("^".concat(Jt.source, "*")), Fn = new RegExp("".concat(Jt.source, "*$"));
|
|
3061
|
+
function d(e, t) {
|
|
3027
3062
|
return { start: e, end: t };
|
|
3028
3063
|
}
|
|
3029
|
-
var
|
|
3064
|
+
var jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), kn = !!String.fromCodePoint, Vn = !!Object.fromEntries, Xn = !!String.prototype.codePointAt, zn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, Zn = !!Number.isSafeInteger, Qn = Zn ? Number.isSafeInteger : function(e) {
|
|
3030
3065
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3031
|
-
},
|
|
3066
|
+
}, je = !0;
|
|
3032
3067
|
try {
|
|
3033
|
-
var
|
|
3034
|
-
|
|
3068
|
+
var Jn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3069
|
+
je = ((Ae = Jn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
3035
3070
|
} catch (e) {
|
|
3036
|
-
|
|
3071
|
+
je = !1;
|
|
3037
3072
|
}
|
|
3038
|
-
var
|
|
3073
|
+
var vt = jn ? (
|
|
3039
3074
|
// Native
|
|
3040
3075
|
function(t, r, n) {
|
|
3041
3076
|
return t.startsWith(r, n);
|
|
@@ -3045,7 +3080,7 @@ var mt = Un ? (
|
|
|
3045
3080
|
function(t, r, n) {
|
|
3046
3081
|
return t.slice(n, n + r.length) === r;
|
|
3047
3082
|
}
|
|
3048
|
-
),
|
|
3083
|
+
), ke = kn ? String.fromCodePoint : (
|
|
3049
3084
|
// IE11
|
|
3050
3085
|
function() {
|
|
3051
3086
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3057,9 +3092,9 @@ var mt = Un ? (
|
|
|
3057
3092
|
}
|
|
3058
3093
|
return n;
|
|
3059
3094
|
}
|
|
3060
|
-
),
|
|
3095
|
+
), Et = (
|
|
3061
3096
|
// native
|
|
3062
|
-
|
|
3097
|
+
Vn ? Object.fromEntries : (
|
|
3063
3098
|
// Ponyfill
|
|
3064
3099
|
function(t) {
|
|
3065
3100
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3069,7 +3104,7 @@ var mt = Un ? (
|
|
|
3069
3104
|
return r;
|
|
3070
3105
|
}
|
|
3071
3106
|
)
|
|
3072
|
-
),
|
|
3107
|
+
), er = Xn ? (
|
|
3073
3108
|
// Native
|
|
3074
3109
|
function(t, r) {
|
|
3075
3110
|
return t.codePointAt(r);
|
|
@@ -3083,7 +3118,7 @@ var mt = Un ? (
|
|
|
3083
3118
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3084
3119
|
}
|
|
3085
3120
|
}
|
|
3086
|
-
),
|
|
3121
|
+
), Yn = zn ? (
|
|
3087
3122
|
// Native
|
|
3088
3123
|
function(t) {
|
|
3089
3124
|
return t.trimStart();
|
|
@@ -3091,9 +3126,9 @@ var mt = Un ? (
|
|
|
3091
3126
|
) : (
|
|
3092
3127
|
// Ponyfill
|
|
3093
3128
|
function(t) {
|
|
3094
|
-
return t.replace(
|
|
3129
|
+
return t.replace(Gn, "");
|
|
3095
3130
|
}
|
|
3096
|
-
),
|
|
3131
|
+
), qn = Wn ? (
|
|
3097
3132
|
// Native
|
|
3098
3133
|
function(t) {
|
|
3099
3134
|
return t.trimEnd();
|
|
@@ -3101,32 +3136,32 @@ var mt = Un ? (
|
|
|
3101
3136
|
) : (
|
|
3102
3137
|
// Ponyfill
|
|
3103
3138
|
function(t) {
|
|
3104
|
-
return t.replace(
|
|
3139
|
+
return t.replace(Fn, "");
|
|
3105
3140
|
}
|
|
3106
3141
|
);
|
|
3107
|
-
function
|
|
3142
|
+
function tr(e, t) {
|
|
3108
3143
|
return new RegExp(e, t);
|
|
3109
3144
|
}
|
|
3110
|
-
var
|
|
3111
|
-
if (
|
|
3112
|
-
var
|
|
3113
|
-
|
|
3145
|
+
var Ve;
|
|
3146
|
+
if (je) {
|
|
3147
|
+
var _t = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3148
|
+
Ve = function(t, r) {
|
|
3114
3149
|
var n;
|
|
3115
|
-
|
|
3116
|
-
var i =
|
|
3150
|
+
_t.lastIndex = r;
|
|
3151
|
+
var i = _t.exec(t);
|
|
3117
3152
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3118
3153
|
};
|
|
3119
3154
|
} else
|
|
3120
|
-
|
|
3155
|
+
Ve = function(t, r) {
|
|
3121
3156
|
for (var n = []; ; ) {
|
|
3122
|
-
var i =
|
|
3123
|
-
if (i === void 0 ||
|
|
3157
|
+
var i = er(t, r);
|
|
3158
|
+
if (i === void 0 || rr(i) || ri(i))
|
|
3124
3159
|
break;
|
|
3125
3160
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3126
3161
|
}
|
|
3127
|
-
return
|
|
3162
|
+
return ke.apply(void 0, n);
|
|
3128
3163
|
};
|
|
3129
|
-
var
|
|
3164
|
+
var Kn = (
|
|
3130
3165
|
/** @class */
|
|
3131
3166
|
function() {
|
|
3132
3167
|
function e(t, r) {
|
|
@@ -3150,14 +3185,14 @@ var Qn = (
|
|
|
3150
3185
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3151
3186
|
var a = this.clonePosition();
|
|
3152
3187
|
this.bump(), i.push({
|
|
3153
|
-
type:
|
|
3154
|
-
location:
|
|
3188
|
+
type: v.pound,
|
|
3189
|
+
location: d(a, this.clonePosition())
|
|
3155
3190
|
});
|
|
3156
3191
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3157
3192
|
if (n)
|
|
3158
3193
|
break;
|
|
3159
|
-
return this.error(
|
|
3160
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3194
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3195
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3161
3196
|
var s = this.parseTag(t, r);
|
|
3162
3197
|
if (s.err)
|
|
3163
3198
|
return s;
|
|
@@ -3178,9 +3213,9 @@ var Qn = (
|
|
|
3178
3213
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3179
3214
|
return {
|
|
3180
3215
|
val: {
|
|
3181
|
-
type:
|
|
3216
|
+
type: v.literal,
|
|
3182
3217
|
value: "<".concat(i, "/>"),
|
|
3183
|
-
location:
|
|
3218
|
+
location: d(n, this.clonePosition())
|
|
3184
3219
|
},
|
|
3185
3220
|
err: null
|
|
3186
3221
|
};
|
|
@@ -3190,25 +3225,25 @@ var Qn = (
|
|
|
3190
3225
|
return o;
|
|
3191
3226
|
var s = o.val, a = this.clonePosition();
|
|
3192
3227
|
if (this.bumpIf("</")) {
|
|
3193
|
-
if (this.isEOF() || !
|
|
3194
|
-
return this.error(
|
|
3228
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
3229
|
+
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3195
3230
|
var u = this.clonePosition(), h = this.parseTagName();
|
|
3196
|
-
return i !== h ? this.error(
|
|
3231
|
+
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, d(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3197
3232
|
val: {
|
|
3198
|
-
type:
|
|
3233
|
+
type: v.tag,
|
|
3199
3234
|
value: i,
|
|
3200
3235
|
children: s,
|
|
3201
|
-
location:
|
|
3236
|
+
location: d(n, this.clonePosition())
|
|
3202
3237
|
},
|
|
3203
3238
|
err: null
|
|
3204
|
-
} : this.error(
|
|
3239
|
+
} : this.error(p.INVALID_TAG, d(a, this.clonePosition())));
|
|
3205
3240
|
} else
|
|
3206
|
-
return this.error(
|
|
3241
|
+
return this.error(p.UNCLOSED_TAG, d(n, this.clonePosition()));
|
|
3207
3242
|
} else
|
|
3208
|
-
return this.error(
|
|
3243
|
+
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3209
3244
|
}, e.prototype.parseTagName = function() {
|
|
3210
3245
|
var t = this.offset();
|
|
3211
|
-
for (this.bump(); !this.isEOF() &&
|
|
3246
|
+
for (this.bump(); !this.isEOF() && ti(this.char()); )
|
|
3212
3247
|
this.bump();
|
|
3213
3248
|
return this.message.slice(t, this.offset());
|
|
3214
3249
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3230,14 +3265,14 @@ var Qn = (
|
|
|
3230
3265
|
}
|
|
3231
3266
|
break;
|
|
3232
3267
|
}
|
|
3233
|
-
var u =
|
|
3268
|
+
var u = d(n, this.clonePosition());
|
|
3234
3269
|
return {
|
|
3235
|
-
val: { type:
|
|
3270
|
+
val: { type: v.literal, value: i, location: u },
|
|
3236
3271
|
err: null
|
|
3237
3272
|
};
|
|
3238
3273
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3239
3274
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3240
|
-
!
|
|
3275
|
+
!ei(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3241
3276
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3242
3277
|
if (this.isEOF() || this.char() !== 39)
|
|
3243
3278
|
return null;
|
|
@@ -3271,49 +3306,49 @@ var Qn = (
|
|
|
3271
3306
|
r.push(n);
|
|
3272
3307
|
this.bump();
|
|
3273
3308
|
}
|
|
3274
|
-
return
|
|
3309
|
+
return ke.apply(void 0, r);
|
|
3275
3310
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3276
3311
|
if (this.isEOF())
|
|
3277
3312
|
return null;
|
|
3278
3313
|
var n = this.char();
|
|
3279
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3314
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3280
3315
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3281
3316
|
var n = this.clonePosition();
|
|
3282
3317
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3283
|
-
return this.error(
|
|
3318
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3284
3319
|
if (this.char() === 125)
|
|
3285
|
-
return this.bump(), this.error(
|
|
3320
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
|
3286
3321
|
var i = this.parseIdentifierIfPossible().value;
|
|
3287
3322
|
if (!i)
|
|
3288
|
-
return this.error(
|
|
3323
|
+
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3289
3324
|
if (this.bumpSpace(), this.isEOF())
|
|
3290
|
-
return this.error(
|
|
3325
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3291
3326
|
switch (this.char()) {
|
|
3292
3327
|
case 125:
|
|
3293
3328
|
return this.bump(), {
|
|
3294
3329
|
val: {
|
|
3295
|
-
type:
|
|
3330
|
+
type: v.argument,
|
|
3296
3331
|
// value does not include the opening and closing braces.
|
|
3297
3332
|
value: i,
|
|
3298
|
-
location:
|
|
3333
|
+
location: d(n, this.clonePosition())
|
|
3299
3334
|
},
|
|
3300
3335
|
err: null
|
|
3301
3336
|
};
|
|
3302
3337
|
case 44:
|
|
3303
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3338
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3304
3339
|
default:
|
|
3305
|
-
return this.error(
|
|
3340
|
+
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3306
3341
|
}
|
|
3307
3342
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3308
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3343
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
3309
3344
|
this.bumpTo(i);
|
|
3310
|
-
var o = this.clonePosition(), s =
|
|
3345
|
+
var o = this.clonePosition(), s = d(t, o);
|
|
3311
3346
|
return { value: n, location: s };
|
|
3312
3347
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3313
3348
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3314
3349
|
switch (a) {
|
|
3315
3350
|
case "":
|
|
3316
|
-
return this.error(
|
|
3351
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, d(s, u));
|
|
3317
3352
|
case "number":
|
|
3318
3353
|
case "date":
|
|
3319
3354
|
case "time": {
|
|
@@ -3324,46 +3359,46 @@ var Qn = (
|
|
|
3324
3359
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3325
3360
|
if (c.err)
|
|
3326
3361
|
return c;
|
|
3327
|
-
var f =
|
|
3362
|
+
var f = qn(c.val);
|
|
3328
3363
|
if (f.length === 0)
|
|
3329
|
-
return this.error(
|
|
3330
|
-
var
|
|
3331
|
-
h = { style: f, styleLocation:
|
|
3364
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3365
|
+
var m = d(l, this.clonePosition());
|
|
3366
|
+
h = { style: f, styleLocation: m };
|
|
3332
3367
|
}
|
|
3333
|
-
var
|
|
3334
|
-
if (
|
|
3335
|
-
return
|
|
3336
|
-
var
|
|
3337
|
-
if (h &&
|
|
3338
|
-
var
|
|
3368
|
+
var g = this.tryParseArgumentClose(i);
|
|
3369
|
+
if (g.err)
|
|
3370
|
+
return g;
|
|
3371
|
+
var b = d(i, this.clonePosition());
|
|
3372
|
+
if (h && vt(h == null ? void 0 : h.style, "::", 0)) {
|
|
3373
|
+
var T = Yn(h.style.slice(2));
|
|
3339
3374
|
if (a === "number") {
|
|
3340
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3375
|
+
var c = this.parseNumberSkeletonFromString(T, h.styleLocation);
|
|
3341
3376
|
return c.err ? c : {
|
|
3342
|
-
val: { type:
|
|
3377
|
+
val: { type: v.number, value: n, location: b, style: c.val },
|
|
3343
3378
|
err: null
|
|
3344
3379
|
};
|
|
3345
3380
|
} else {
|
|
3346
|
-
if (
|
|
3347
|
-
return this.error(
|
|
3348
|
-
var L =
|
|
3349
|
-
this.locale && (L =
|
|
3381
|
+
if (T.length === 0)
|
|
3382
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, b);
|
|
3383
|
+
var L = T;
|
|
3384
|
+
this.locale && (L = Un(T, this.locale));
|
|
3350
3385
|
var f = {
|
|
3351
|
-
type:
|
|
3386
|
+
type: k.dateTime,
|
|
3352
3387
|
pattern: L,
|
|
3353
3388
|
location: h.styleLocation,
|
|
3354
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3355
|
-
}, I = a === "date" ?
|
|
3389
|
+
parsedOptions: this.shouldParseSkeletons ? In(L) : {}
|
|
3390
|
+
}, I = a === "date" ? v.date : v.time;
|
|
3356
3391
|
return {
|
|
3357
|
-
val: { type: I, value: n, location:
|
|
3392
|
+
val: { type: I, value: n, location: b, style: f },
|
|
3358
3393
|
err: null
|
|
3359
3394
|
};
|
|
3360
3395
|
}
|
|
3361
3396
|
}
|
|
3362
3397
|
return {
|
|
3363
3398
|
val: {
|
|
3364
|
-
type: a === "number" ?
|
|
3399
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3365
3400
|
value: n,
|
|
3366
|
-
location:
|
|
3401
|
+
location: b,
|
|
3367
3402
|
style: (o = h == null ? void 0 : h.style) !== null && o !== void 0 ? o : null
|
|
3368
3403
|
},
|
|
3369
3404
|
err: null
|
|
@@ -3372,16 +3407,16 @@ var Qn = (
|
|
|
3372
3407
|
case "plural":
|
|
3373
3408
|
case "selectordinal":
|
|
3374
3409
|
case "select": {
|
|
3375
|
-
var
|
|
3410
|
+
var x = this.clonePosition();
|
|
3376
3411
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3377
|
-
return this.error(
|
|
3412
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(x, me({}, x)));
|
|
3378
3413
|
this.bumpSpace();
|
|
3379
3414
|
var H = this.parseIdentifierIfPossible(), S = 0;
|
|
3380
3415
|
if (a !== "select" && H.value === "offset") {
|
|
3381
3416
|
if (!this.bumpIf(":"))
|
|
3382
|
-
return this.error(
|
|
3417
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3383
3418
|
this.bumpSpace();
|
|
3384
|
-
var c = this.tryParseDecimalInteger(
|
|
3419
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3385
3420
|
if (c.err)
|
|
3386
3421
|
return c;
|
|
3387
3422
|
this.bumpSpace(), H = this.parseIdentifierIfPossible(), S = c.val;
|
|
@@ -3389,23 +3424,23 @@ var Qn = (
|
|
|
3389
3424
|
var $ = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
|
3390
3425
|
if ($.err)
|
|
3391
3426
|
return $;
|
|
3392
|
-
var
|
|
3393
|
-
if (
|
|
3394
|
-
return
|
|
3395
|
-
var ie =
|
|
3427
|
+
var g = this.tryParseArgumentClose(i);
|
|
3428
|
+
if (g.err)
|
|
3429
|
+
return g;
|
|
3430
|
+
var ie = d(i, this.clonePosition());
|
|
3396
3431
|
return a === "select" ? {
|
|
3397
3432
|
val: {
|
|
3398
|
-
type:
|
|
3433
|
+
type: v.select,
|
|
3399
3434
|
value: n,
|
|
3400
|
-
options:
|
|
3435
|
+
options: Et($.val),
|
|
3401
3436
|
location: ie
|
|
3402
3437
|
},
|
|
3403
3438
|
err: null
|
|
3404
3439
|
} : {
|
|
3405
3440
|
val: {
|
|
3406
|
-
type:
|
|
3441
|
+
type: v.plural,
|
|
3407
3442
|
value: n,
|
|
3408
|
-
options:
|
|
3443
|
+
options: Et($.val),
|
|
3409
3444
|
offset: S,
|
|
3410
3445
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3411
3446
|
location: ie
|
|
@@ -3414,10 +3449,10 @@ var Qn = (
|
|
|
3414
3449
|
};
|
|
3415
3450
|
}
|
|
3416
3451
|
default:
|
|
3417
|
-
return this.error(
|
|
3452
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, d(s, u));
|
|
3418
3453
|
}
|
|
3419
3454
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3420
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3455
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3421
3456
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3422
3457
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3423
3458
|
var n = this.char();
|
|
@@ -3426,7 +3461,7 @@ var Qn = (
|
|
|
3426
3461
|
this.bump();
|
|
3427
3462
|
var i = this.clonePosition();
|
|
3428
3463
|
if (!this.bumpUntil("'"))
|
|
3429
|
-
return this.error(
|
|
3464
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
|
3430
3465
|
this.bump();
|
|
3431
3466
|
break;
|
|
3432
3467
|
}
|
|
@@ -3456,16 +3491,16 @@ var Qn = (
|
|
|
3456
3491
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3457
3492
|
var n = [];
|
|
3458
3493
|
try {
|
|
3459
|
-
n =
|
|
3494
|
+
n = Ln(t);
|
|
3460
3495
|
} catch (i) {
|
|
3461
|
-
return this.error(
|
|
3496
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3462
3497
|
}
|
|
3463
3498
|
return {
|
|
3464
3499
|
val: {
|
|
3465
|
-
type:
|
|
3500
|
+
type: k.number,
|
|
3466
3501
|
tokens: n,
|
|
3467
3502
|
location: r,
|
|
3468
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3503
|
+
parsedOptions: this.shouldParseSkeletons ? Rn(n) : {}
|
|
3469
3504
|
},
|
|
3470
3505
|
err: null
|
|
3471
3506
|
};
|
|
@@ -3474,34 +3509,34 @@ var Qn = (
|
|
|
3474
3509
|
if (h.length === 0) {
|
|
3475
3510
|
var c = this.clonePosition();
|
|
3476
3511
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3477
|
-
var f = this.tryParseDecimalInteger(
|
|
3512
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3478
3513
|
if (f.err)
|
|
3479
3514
|
return f;
|
|
3480
|
-
l =
|
|
3515
|
+
l = d(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
|
3481
3516
|
} else
|
|
3482
3517
|
break;
|
|
3483
3518
|
}
|
|
3484
3519
|
if (u.has(h))
|
|
3485
|
-
return this.error(r === "select" ?
|
|
3520
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3486
3521
|
h === "other" && (s = !0), this.bumpSpace();
|
|
3487
|
-
var
|
|
3522
|
+
var m = this.clonePosition();
|
|
3488
3523
|
if (!this.bumpIf("{"))
|
|
3489
|
-
return this.error(r === "select" ?
|
|
3490
|
-
var
|
|
3491
|
-
if (y.err)
|
|
3492
|
-
return y;
|
|
3493
|
-
var g = this.tryParseArgumentClose(p);
|
|
3524
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3525
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3494
3526
|
if (g.err)
|
|
3495
3527
|
return g;
|
|
3528
|
+
var b = this.tryParseArgumentClose(m);
|
|
3529
|
+
if (b.err)
|
|
3530
|
+
return b;
|
|
3496
3531
|
a.push([
|
|
3497
3532
|
h,
|
|
3498
3533
|
{
|
|
3499
|
-
value:
|
|
3500
|
-
location: m
|
|
3534
|
+
value: g.val,
|
|
3535
|
+
location: d(m, this.clonePosition())
|
|
3501
3536
|
}
|
|
3502
3537
|
]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
|
|
3503
3538
|
}
|
|
3504
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3539
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3505
3540
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3506
3541
|
var n = 1, i = this.clonePosition();
|
|
3507
3542
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3512,8 +3547,8 @@ var Qn = (
|
|
|
3512
3547
|
else
|
|
3513
3548
|
break;
|
|
3514
3549
|
}
|
|
3515
|
-
var u =
|
|
3516
|
-
return o ? (s *= n,
|
|
3550
|
+
var u = d(i, this.clonePosition());
|
|
3551
|
+
return o ? (s *= n, Qn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3517
3552
|
}, e.prototype.offset = function() {
|
|
3518
3553
|
return this.position.offset;
|
|
3519
3554
|
}, e.prototype.isEOF = function() {
|
|
@@ -3528,7 +3563,7 @@ var Qn = (
|
|
|
3528
3563
|
var t = this.position.offset;
|
|
3529
3564
|
if (t >= this.message.length)
|
|
3530
3565
|
throw Error("out of bound");
|
|
3531
|
-
var r =
|
|
3566
|
+
var r = er(this.message, t);
|
|
3532
3567
|
if (r === void 0)
|
|
3533
3568
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3534
3569
|
return r;
|
|
@@ -3547,7 +3582,7 @@ var Qn = (
|
|
|
3547
3582
|
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);
|
|
3548
3583
|
}
|
|
3549
3584
|
}, e.prototype.bumpIf = function(t) {
|
|
3550
|
-
if (
|
|
3585
|
+
if (vt(this.message, t, this.offset())) {
|
|
3551
3586
|
for (var r = 0; r < t.length; r++)
|
|
3552
3587
|
this.bump();
|
|
3553
3588
|
return !0;
|
|
@@ -3569,7 +3604,7 @@ var Qn = (
|
|
|
3569
3604
|
break;
|
|
3570
3605
|
}
|
|
3571
3606
|
}, e.prototype.bumpSpace = function() {
|
|
3572
|
-
for (; !this.isEOF() &&
|
|
3607
|
+
for (; !this.isEOF() && rr(this.char()); )
|
|
3573
3608
|
this.bump();
|
|
3574
3609
|
}, e.prototype.peek = function() {
|
|
3575
3610
|
if (this.isEOF())
|
|
@@ -3579,47 +3614,47 @@ var Qn = (
|
|
|
3579
3614
|
}, e;
|
|
3580
3615
|
}()
|
|
3581
3616
|
);
|
|
3582
|
-
function
|
|
3617
|
+
function Xe(e) {
|
|
3583
3618
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3584
3619
|
}
|
|
3585
|
-
function
|
|
3586
|
-
return
|
|
3620
|
+
function ei(e) {
|
|
3621
|
+
return Xe(e) || e === 47;
|
|
3587
3622
|
}
|
|
3588
|
-
function
|
|
3623
|
+
function ti(e) {
|
|
3589
3624
|
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;
|
|
3590
3625
|
}
|
|
3591
|
-
function
|
|
3626
|
+
function rr(e) {
|
|
3592
3627
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3593
3628
|
}
|
|
3594
|
-
function
|
|
3629
|
+
function ri(e) {
|
|
3595
3630
|
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;
|
|
3596
3631
|
}
|
|
3597
|
-
function
|
|
3632
|
+
function ze(e) {
|
|
3598
3633
|
e.forEach(function(t) {
|
|
3599
|
-
if (delete t.location,
|
|
3634
|
+
if (delete t.location, zt(t) || Wt(t))
|
|
3600
3635
|
for (var r in t.options)
|
|
3601
|
-
delete t.options[r].location,
|
|
3636
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3602
3637
|
else
|
|
3603
|
-
|
|
3638
|
+
kt(t) && Qt(t.style) || (Vt(t) || Xt(t)) && Fe(t.style) ? delete t.style.location : Zt(t) && ze(t.children);
|
|
3604
3639
|
});
|
|
3605
3640
|
}
|
|
3606
|
-
function
|
|
3607
|
-
t === void 0 && (t = {}), t =
|
|
3608
|
-
var r = new
|
|
3641
|
+
function ni(e, t) {
|
|
3642
|
+
t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3643
|
+
var r = new Kn(e, t).parse();
|
|
3609
3644
|
if (r.err) {
|
|
3610
|
-
var n = SyntaxError(
|
|
3645
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3611
3646
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3612
3647
|
}
|
|
3613
|
-
return t != null && t.captureLocation ||
|
|
3648
|
+
return t != null && t.captureLocation || ze(r.val), r.val;
|
|
3614
3649
|
}
|
|
3615
|
-
var
|
|
3650
|
+
var V;
|
|
3616
3651
|
(function(e) {
|
|
3617
3652
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3618
|
-
})(
|
|
3619
|
-
var
|
|
3653
|
+
})(V || (V = {}));
|
|
3654
|
+
var Ee = (
|
|
3620
3655
|
/** @class */
|
|
3621
3656
|
function(e) {
|
|
3622
|
-
|
|
3657
|
+
ve(t, e);
|
|
3623
3658
|
function t(r, n, i) {
|
|
3624
3659
|
var o = e.call(this, r) || this;
|
|
3625
3660
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3628,155 +3663,155 @@ var ye = (
|
|
|
3628
3663
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3629
3664
|
}, t;
|
|
3630
3665
|
}(Error)
|
|
3631
|
-
),
|
|
3666
|
+
), xt = (
|
|
3632
3667
|
/** @class */
|
|
3633
3668
|
function(e) {
|
|
3634
|
-
|
|
3669
|
+
ve(t, e);
|
|
3635
3670
|
function t(r, n, i, o) {
|
|
3636
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3671
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
|
|
3637
3672
|
}
|
|
3638
3673
|
return t;
|
|
3639
|
-
}(
|
|
3640
|
-
),
|
|
3674
|
+
}(Ee)
|
|
3675
|
+
), ii = (
|
|
3641
3676
|
/** @class */
|
|
3642
3677
|
function(e) {
|
|
3643
|
-
|
|
3678
|
+
ve(t, e);
|
|
3644
3679
|
function t(r, n, i) {
|
|
3645
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3680
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3646
3681
|
}
|
|
3647
3682
|
return t;
|
|
3648
|
-
}(
|
|
3649
|
-
),
|
|
3683
|
+
}(Ee)
|
|
3684
|
+
), oi = (
|
|
3650
3685
|
/** @class */
|
|
3651
3686
|
function(e) {
|
|
3652
|
-
|
|
3687
|
+
ve(t, e);
|
|
3653
3688
|
function t(r, n) {
|
|
3654
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3689
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3655
3690
|
}
|
|
3656
3691
|
return t;
|
|
3657
|
-
}(
|
|
3658
|
-
),
|
|
3692
|
+
}(Ee)
|
|
3693
|
+
), _;
|
|
3659
3694
|
(function(e) {
|
|
3660
3695
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3661
|
-
})(
|
|
3662
|
-
function
|
|
3696
|
+
})(_ || (_ = {}));
|
|
3697
|
+
function si(e) {
|
|
3663
3698
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3664
3699
|
var n = t[t.length - 1];
|
|
3665
|
-
return !n || n.type !==
|
|
3700
|
+
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3666
3701
|
}, []);
|
|
3667
3702
|
}
|
|
3668
|
-
function
|
|
3703
|
+
function ai(e) {
|
|
3669
3704
|
return typeof e == "function";
|
|
3670
3705
|
}
|
|
3671
3706
|
function ce(e, t, r, n, i, o, s) {
|
|
3672
|
-
if (e.length === 1 &&
|
|
3707
|
+
if (e.length === 1 && dt(e[0]))
|
|
3673
3708
|
return [
|
|
3674
3709
|
{
|
|
3675
|
-
type:
|
|
3710
|
+
type: _.literal,
|
|
3676
3711
|
value: e[0].value
|
|
3677
3712
|
}
|
|
3678
3713
|
];
|
|
3679
3714
|
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
|
3680
3715
|
var l = h[u];
|
|
3681
|
-
if (
|
|
3716
|
+
if (dt(l)) {
|
|
3682
3717
|
a.push({
|
|
3683
|
-
type:
|
|
3718
|
+
type: _.literal,
|
|
3684
3719
|
value: l.value
|
|
3685
3720
|
});
|
|
3686
3721
|
continue;
|
|
3687
3722
|
}
|
|
3688
|
-
if (
|
|
3723
|
+
if (An(l)) {
|
|
3689
3724
|
typeof o == "number" && a.push({
|
|
3690
|
-
type:
|
|
3725
|
+
type: _.literal,
|
|
3691
3726
|
value: r.getNumberFormat(t).format(o)
|
|
3692
3727
|
});
|
|
3693
3728
|
continue;
|
|
3694
3729
|
}
|
|
3695
3730
|
var c = l.value;
|
|
3696
3731
|
if (!(i && c in i))
|
|
3697
|
-
throw new
|
|
3732
|
+
throw new oi(c, s);
|
|
3698
3733
|
var f = i[c];
|
|
3699
|
-
if (
|
|
3734
|
+
if (Pn(l)) {
|
|
3700
3735
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3701
|
-
type: typeof f == "string" ?
|
|
3736
|
+
type: typeof f == "string" ? _.literal : _.object,
|
|
3702
3737
|
value: f
|
|
3703
3738
|
});
|
|
3704
3739
|
continue;
|
|
3705
3740
|
}
|
|
3706
|
-
if (
|
|
3707
|
-
var
|
|
3741
|
+
if (Vt(l)) {
|
|
3742
|
+
var m = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
|
|
3708
3743
|
a.push({
|
|
3709
|
-
type:
|
|
3710
|
-
value: r.getDateTimeFormat(t,
|
|
3744
|
+
type: _.literal,
|
|
3745
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3711
3746
|
});
|
|
3712
3747
|
continue;
|
|
3713
3748
|
}
|
|
3714
|
-
if (
|
|
3715
|
-
var
|
|
3749
|
+
if (Xt(l)) {
|
|
3750
|
+
var m = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3716
3751
|
a.push({
|
|
3717
|
-
type:
|
|
3718
|
-
value: r.getDateTimeFormat(t,
|
|
3752
|
+
type: _.literal,
|
|
3753
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3719
3754
|
});
|
|
3720
3755
|
continue;
|
|
3721
3756
|
}
|
|
3722
|
-
if (
|
|
3723
|
-
var
|
|
3724
|
-
|
|
3725
|
-
type:
|
|
3726
|
-
value: r.getNumberFormat(t,
|
|
3757
|
+
if (kt(l)) {
|
|
3758
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3759
|
+
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3760
|
+
type: _.literal,
|
|
3761
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3727
3762
|
});
|
|
3728
3763
|
continue;
|
|
3729
3764
|
}
|
|
3730
|
-
if (
|
|
3731
|
-
var
|
|
3732
|
-
if (!
|
|
3733
|
-
throw new
|
|
3734
|
-
var L = ce(
|
|
3765
|
+
if (Zt(l)) {
|
|
3766
|
+
var g = l.children, b = l.value, T = i[b];
|
|
3767
|
+
if (!ai(T))
|
|
3768
|
+
throw new ii(b, "function", s);
|
|
3769
|
+
var L = ce(g, t, r, n, i, o), I = T(L.map(function(S) {
|
|
3735
3770
|
return S.value;
|
|
3736
3771
|
}));
|
|
3737
3772
|
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(S) {
|
|
3738
3773
|
return {
|
|
3739
|
-
type: typeof S == "string" ?
|
|
3774
|
+
type: typeof S == "string" ? _.literal : _.object,
|
|
3740
3775
|
value: S
|
|
3741
3776
|
};
|
|
3742
3777
|
}));
|
|
3743
3778
|
}
|
|
3744
|
-
if (
|
|
3745
|
-
var
|
|
3746
|
-
if (!
|
|
3747
|
-
throw new
|
|
3748
|
-
a.push.apply(a, ce(
|
|
3779
|
+
if (zt(l)) {
|
|
3780
|
+
var x = l.options[f] || l.options.other;
|
|
3781
|
+
if (!x)
|
|
3782
|
+
throw new xt(l.value, f, Object.keys(l.options), s);
|
|
3783
|
+
a.push.apply(a, ce(x.value, t, r, n, i));
|
|
3749
3784
|
continue;
|
|
3750
3785
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
var
|
|
3753
|
-
if (!
|
|
3786
|
+
if (Wt(l)) {
|
|
3787
|
+
var x = l.options["=".concat(f)];
|
|
3788
|
+
if (!x) {
|
|
3754
3789
|
if (!Intl.PluralRules)
|
|
3755
|
-
throw new
|
|
3790
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3756
3791
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3757
|
-
`,
|
|
3792
|
+
`, V.MISSING_INTL_API, s);
|
|
3758
3793
|
var H = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3759
|
-
|
|
3794
|
+
x = l.options[H] || l.options.other;
|
|
3760
3795
|
}
|
|
3761
|
-
if (!
|
|
3762
|
-
throw new
|
|
3763
|
-
a.push.apply(a, ce(
|
|
3796
|
+
if (!x)
|
|
3797
|
+
throw new xt(l.value, f, Object.keys(l.options), s);
|
|
3798
|
+
a.push.apply(a, ce(x.value, t, r, n, i, f - (l.offset || 0)));
|
|
3764
3799
|
continue;
|
|
3765
3800
|
}
|
|
3766
3801
|
}
|
|
3767
|
-
return
|
|
3802
|
+
return si(a);
|
|
3768
3803
|
}
|
|
3769
|
-
function
|
|
3770
|
-
return t ?
|
|
3771
|
-
return r[n] =
|
|
3804
|
+
function ui(e, t) {
|
|
3805
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3806
|
+
return r[n] = P(P({}, e[n]), t[n] || {}), r;
|
|
3772
3807
|
}, {})) : e;
|
|
3773
3808
|
}
|
|
3774
|
-
function
|
|
3809
|
+
function hi(e, t) {
|
|
3775
3810
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3776
|
-
return r[n] =
|
|
3777
|
-
},
|
|
3811
|
+
return r[n] = ui(e[n], t[n]), r;
|
|
3812
|
+
}, P({}, e)) : e;
|
|
3778
3813
|
}
|
|
3779
|
-
function
|
|
3814
|
+
function Oe(e) {
|
|
3780
3815
|
return {
|
|
3781
3816
|
create: function() {
|
|
3782
3817
|
return {
|
|
@@ -3790,39 +3825,39 @@ function He(e) {
|
|
|
3790
3825
|
}
|
|
3791
3826
|
};
|
|
3792
3827
|
}
|
|
3793
|
-
function
|
|
3828
|
+
function li(e) {
|
|
3794
3829
|
return e === void 0 && (e = {
|
|
3795
3830
|
number: {},
|
|
3796
3831
|
dateTime: {},
|
|
3797
3832
|
pluralRules: {}
|
|
3798
3833
|
}), {
|
|
3799
|
-
getNumberFormat:
|
|
3834
|
+
getNumberFormat: He(function() {
|
|
3800
3835
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3801
3836
|
r[n] = arguments[n];
|
|
3802
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3837
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3803
3838
|
}, {
|
|
3804
|
-
cache:
|
|
3805
|
-
strategy:
|
|
3839
|
+
cache: Oe(e.number),
|
|
3840
|
+
strategy: Pe.variadic
|
|
3806
3841
|
}),
|
|
3807
|
-
getDateTimeFormat:
|
|
3842
|
+
getDateTimeFormat: He(function() {
|
|
3808
3843
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3809
3844
|
r[n] = arguments[n];
|
|
3810
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3845
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3811
3846
|
}, {
|
|
3812
|
-
cache:
|
|
3813
|
-
strategy:
|
|
3847
|
+
cache: Oe(e.dateTime),
|
|
3848
|
+
strategy: Pe.variadic
|
|
3814
3849
|
}),
|
|
3815
|
-
getPluralRules:
|
|
3850
|
+
getPluralRules: He(function() {
|
|
3816
3851
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3817
3852
|
r[n] = arguments[n];
|
|
3818
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3853
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3819
3854
|
}, {
|
|
3820
|
-
cache:
|
|
3821
|
-
strategy:
|
|
3855
|
+
cache: Oe(e.pluralRules),
|
|
3856
|
+
strategy: Pe.variadic
|
|
3822
3857
|
})
|
|
3823
3858
|
};
|
|
3824
3859
|
}
|
|
3825
|
-
var
|
|
3860
|
+
var ci = (
|
|
3826
3861
|
/** @class */
|
|
3827
3862
|
function() {
|
|
3828
3863
|
function e(t, r, n, i) {
|
|
@@ -3837,7 +3872,7 @@ var ai = (
|
|
|
3837
3872
|
if (h.length === 1)
|
|
3838
3873
|
return h[0].value;
|
|
3839
3874
|
var l = h.reduce(function(c, f) {
|
|
3840
|
-
return !c.length || f.type !==
|
|
3875
|
+
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3841
3876
|
}, []);
|
|
3842
3877
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3843
3878
|
}, this.formatToParts = function(u) {
|
|
@@ -3854,13 +3889,13 @@ var ai = (
|
|
|
3854
3889
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3855
3890
|
var s = i || {};
|
|
3856
3891
|
s.formatters;
|
|
3857
|
-
var a =
|
|
3858
|
-
this.ast = e.__parse(t,
|
|
3892
|
+
var a = En(s, ["formatters"]);
|
|
3893
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3859
3894
|
} else
|
|
3860
3895
|
this.ast = t;
|
|
3861
3896
|
if (!Array.isArray(this.ast))
|
|
3862
3897
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3863
|
-
this.formats =
|
|
3898
|
+
this.formats = hi(e.formats, n), this.formatters = i && i.formatters || li(this.formatterCache);
|
|
3864
3899
|
}
|
|
3865
3900
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3866
3901
|
get: function() {
|
|
@@ -3873,7 +3908,7 @@ var ai = (
|
|
|
3873
3908
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3874
3909
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3875
3910
|
}
|
|
3876
|
-
}, e.__parse =
|
|
3911
|
+
}, e.__parse = ni, e.formats = {
|
|
3877
3912
|
number: {
|
|
3878
3913
|
integer: {
|
|
3879
3914
|
maximumFractionDigits: 0
|
|
@@ -3934,7 +3969,7 @@ var ai = (
|
|
|
3934
3969
|
}, e;
|
|
3935
3970
|
}()
|
|
3936
3971
|
);
|
|
3937
|
-
function
|
|
3972
|
+
function fi(e, t) {
|
|
3938
3973
|
if (t == null)
|
|
3939
3974
|
return;
|
|
3940
3975
|
if (t in e)
|
|
@@ -3955,92 +3990,92 @@ function ui(e, t) {
|
|
|
3955
3990
|
n = void 0;
|
|
3956
3991
|
return n;
|
|
3957
3992
|
}
|
|
3958
|
-
const N = {},
|
|
3993
|
+
const N = {}, pi = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), nr = (e, t) => {
|
|
3959
3994
|
if (t == null)
|
|
3960
3995
|
return;
|
|
3961
3996
|
if (t in N && e in N[t])
|
|
3962
3997
|
return N[t][e];
|
|
3963
|
-
const r =
|
|
3998
|
+
const r = _e(t);
|
|
3964
3999
|
for (let n = 0; n < r.length; n++) {
|
|
3965
|
-
const i = r[n], o =
|
|
4000
|
+
const i = r[n], o = di(i, e);
|
|
3966
4001
|
if (o)
|
|
3967
|
-
return
|
|
4002
|
+
return pi(e, t, o);
|
|
3968
4003
|
}
|
|
3969
4004
|
};
|
|
3970
|
-
let
|
|
3971
|
-
const ne =
|
|
3972
|
-
function
|
|
3973
|
-
return
|
|
4005
|
+
let Ye;
|
|
4006
|
+
const ne = ye({});
|
|
4007
|
+
function mi(e) {
|
|
4008
|
+
return Ye[e] || null;
|
|
3974
4009
|
}
|
|
3975
|
-
function
|
|
3976
|
-
return e in
|
|
4010
|
+
function ir(e) {
|
|
4011
|
+
return e in Ye;
|
|
3977
4012
|
}
|
|
3978
|
-
function
|
|
3979
|
-
if (!
|
|
4013
|
+
function di(e, t) {
|
|
4014
|
+
if (!ir(e))
|
|
3980
4015
|
return null;
|
|
3981
|
-
const r =
|
|
3982
|
-
return
|
|
4016
|
+
const r = mi(e);
|
|
4017
|
+
return fi(r, t);
|
|
3983
4018
|
}
|
|
3984
|
-
function
|
|
4019
|
+
function bi(e) {
|
|
3985
4020
|
if (e == null)
|
|
3986
4021
|
return;
|
|
3987
|
-
const t =
|
|
4022
|
+
const t = _e(e);
|
|
3988
4023
|
for (let r = 0; r < t.length; r++) {
|
|
3989
4024
|
const n = t[r];
|
|
3990
|
-
if (
|
|
4025
|
+
if (ir(n))
|
|
3991
4026
|
return n;
|
|
3992
4027
|
}
|
|
3993
4028
|
}
|
|
3994
|
-
function
|
|
3995
|
-
delete N[e], ne.update((r) => (r[e] =
|
|
4029
|
+
function or(e, ...t) {
|
|
4030
|
+
delete N[e], ne.update((r) => (r[e] = vn.all([r[e] || {}, ...t]), r));
|
|
3996
4031
|
}
|
|
3997
|
-
|
|
4032
|
+
z(
|
|
3998
4033
|
[ne],
|
|
3999
4034
|
([e]) => Object.keys(e)
|
|
4000
4035
|
);
|
|
4001
|
-
ne.subscribe((e) =>
|
|
4036
|
+
ne.subscribe((e) => Ye = e);
|
|
4002
4037
|
const fe = {};
|
|
4003
|
-
function
|
|
4038
|
+
function gi(e, t) {
|
|
4004
4039
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
4005
4040
|
}
|
|
4006
|
-
function
|
|
4041
|
+
function sr(e) {
|
|
4007
4042
|
return fe[e];
|
|
4008
4043
|
}
|
|
4009
|
-
function
|
|
4010
|
-
return
|
|
4011
|
-
const r =
|
|
4044
|
+
function yi(e) {
|
|
4045
|
+
return _e(e).map((t) => {
|
|
4046
|
+
const r = sr(t);
|
|
4012
4047
|
return [t, r ? [...r] : []];
|
|
4013
4048
|
}).filter(([, t]) => t.length > 0);
|
|
4014
4049
|
}
|
|
4015
|
-
function
|
|
4016
|
-
return e == null ? !1 :
|
|
4050
|
+
function We(e) {
|
|
4051
|
+
return e == null ? !1 : _e(e).some(
|
|
4017
4052
|
(t) => {
|
|
4018
4053
|
var r;
|
|
4019
|
-
return (r =
|
|
4054
|
+
return (r = sr(t)) == null ? void 0 : r.size;
|
|
4020
4055
|
}
|
|
4021
4056
|
);
|
|
4022
4057
|
}
|
|
4023
|
-
function
|
|
4058
|
+
function vi(e, t) {
|
|
4024
4059
|
return Promise.all(
|
|
4025
|
-
t.map((n) => (
|
|
4026
|
-
).then((n) =>
|
|
4027
|
-
}
|
|
4028
|
-
const
|
|
4029
|
-
function
|
|
4030
|
-
if (!
|
|
4031
|
-
return e in
|
|
4032
|
-
const t =
|
|
4033
|
-
return
|
|
4060
|
+
t.map((n) => (gi(e, n), n().then((i) => i.default || i)))
|
|
4061
|
+
).then((n) => or(e, ...n));
|
|
4062
|
+
}
|
|
4063
|
+
const Q = {};
|
|
4064
|
+
function ar(e) {
|
|
4065
|
+
if (!We(e))
|
|
4066
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
4067
|
+
const t = yi(e);
|
|
4068
|
+
return Q[e] = Promise.all(
|
|
4034
4069
|
t.map(
|
|
4035
|
-
([r, n]) =>
|
|
4070
|
+
([r, n]) => vi(r, n)
|
|
4036
4071
|
)
|
|
4037
4072
|
).then(() => {
|
|
4038
|
-
if (
|
|
4039
|
-
return
|
|
4040
|
-
delete
|
|
4041
|
-
}),
|
|
4073
|
+
if (We(e))
|
|
4074
|
+
return ar(e);
|
|
4075
|
+
delete Q[e];
|
|
4076
|
+
}), Q[e];
|
|
4042
4077
|
}
|
|
4043
|
-
const
|
|
4078
|
+
const Ei = {
|
|
4044
4079
|
number: {
|
|
4045
4080
|
scientific: { notation: "scientific" },
|
|
4046
4081
|
engineering: { notation: "engineering" },
|
|
@@ -4069,135 +4104,135 @@ const bi = {
|
|
|
4069
4104
|
timeZoneName: "short"
|
|
4070
4105
|
}
|
|
4071
4106
|
}
|
|
4072
|
-
},
|
|
4107
|
+
}, _i = {
|
|
4073
4108
|
fallbackLocale: null,
|
|
4074
4109
|
loadingDelay: 200,
|
|
4075
|
-
formats:
|
|
4110
|
+
formats: Ei,
|
|
4076
4111
|
warnOnMissingMessages: !0,
|
|
4077
4112
|
handleMissingMessage: void 0,
|
|
4078
4113
|
ignoreTag: !0
|
|
4079
|
-
},
|
|
4114
|
+
}, xi = _i;
|
|
4080
4115
|
function X() {
|
|
4081
|
-
return
|
|
4082
|
-
}
|
|
4083
|
-
const
|
|
4084
|
-
var
|
|
4085
|
-
for (var r in t)
|
|
4086
|
-
|
|
4087
|
-
if (
|
|
4088
|
-
for (var r of
|
|
4089
|
-
|
|
4116
|
+
return xi;
|
|
4117
|
+
}
|
|
4118
|
+
const Ie = ye(!1);
|
|
4119
|
+
var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, St = Object.getOwnPropertySymbols, Bi = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pi = (e, t) => {
|
|
4120
|
+
for (var r in t || (t = {}))
|
|
4121
|
+
Bi.call(t, r) && wt(e, r, t[r]);
|
|
4122
|
+
if (St)
|
|
4123
|
+
for (var r of St(t))
|
|
4124
|
+
Hi.call(t, r) && wt(e, r, t[r]);
|
|
4090
4125
|
return e;
|
|
4091
|
-
},
|
|
4092
|
-
let
|
|
4093
|
-
const
|
|
4094
|
-
function
|
|
4126
|
+
}, Ai = (e, t) => wi(e, Ti(t));
|
|
4127
|
+
let Ze;
|
|
4128
|
+
const de = ye(null);
|
|
4129
|
+
function Tt(e) {
|
|
4095
4130
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4096
4131
|
}
|
|
4097
|
-
function
|
|
4098
|
-
const r =
|
|
4099
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4132
|
+
function _e(e, t = X().fallbackLocale) {
|
|
4133
|
+
const r = Tt(e);
|
|
4134
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
|
4100
4135
|
}
|
|
4101
4136
|
function M() {
|
|
4102
|
-
return
|
|
4137
|
+
return Ze != null ? Ze : void 0;
|
|
4103
4138
|
}
|
|
4104
|
-
|
|
4105
|
-
|
|
4139
|
+
de.subscribe((e) => {
|
|
4140
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4106
4141
|
});
|
|
4107
|
-
const
|
|
4108
|
-
if (e &&
|
|
4142
|
+
const Oi = (e) => {
|
|
4143
|
+
if (e && bi(e) && We(e)) {
|
|
4109
4144
|
const { loadingDelay: t } = X();
|
|
4110
4145
|
let r;
|
|
4111
4146
|
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
4112
|
-
() =>
|
|
4147
|
+
() => Ie.set(!0),
|
|
4113
4148
|
t
|
|
4114
|
-
) :
|
|
4115
|
-
|
|
4149
|
+
) : Ie.set(!0), ar(e).then(() => {
|
|
4150
|
+
de.set(e);
|
|
4116
4151
|
}).finally(() => {
|
|
4117
|
-
clearTimeout(r),
|
|
4152
|
+
clearTimeout(r), Ie.set(!1);
|
|
4118
4153
|
});
|
|
4119
4154
|
}
|
|
4120
|
-
return
|
|
4121
|
-
},
|
|
4122
|
-
set:
|
|
4123
|
-
}),
|
|
4155
|
+
return de.set(e);
|
|
4156
|
+
}, W = Ai(Pi({}, de), {
|
|
4157
|
+
set: Oi
|
|
4158
|
+
}), xe = (e) => {
|
|
4124
4159
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4125
4160
|
return (n) => {
|
|
4126
4161
|
const i = JSON.stringify(n);
|
|
4127
4162
|
return i in t ? t[i] : t[i] = e(n);
|
|
4128
4163
|
};
|
|
4129
4164
|
};
|
|
4130
|
-
var
|
|
4165
|
+
var Ii = Object.defineProperty, be = Object.getOwnPropertySymbols, ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4131
4166
|
for (var r in t || (t = {}))
|
|
4132
|
-
|
|
4133
|
-
if (
|
|
4134
|
-
for (var r of
|
|
4135
|
-
|
|
4167
|
+
ur.call(t, r) && Bt(e, r, t[r]);
|
|
4168
|
+
if (be)
|
|
4169
|
+
for (var r of be(t))
|
|
4170
|
+
hr.call(t, r) && Bt(e, r, t[r]);
|
|
4136
4171
|
return e;
|
|
4137
|
-
},
|
|
4172
|
+
}, Z = (e, t) => {
|
|
4138
4173
|
var r = {};
|
|
4139
4174
|
for (var n in e)
|
|
4140
|
-
|
|
4141
|
-
if (e != null &&
|
|
4142
|
-
for (var n of
|
|
4143
|
-
t.indexOf(n) < 0 &&
|
|
4175
|
+
ur.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4176
|
+
if (e != null && be)
|
|
4177
|
+
for (var n of be(e))
|
|
4178
|
+
t.indexOf(n) < 0 && hr.call(e, n) && (r[n] = e[n]);
|
|
4144
4179
|
return r;
|
|
4145
4180
|
};
|
|
4146
|
-
const
|
|
4181
|
+
const ee = (e, t) => {
|
|
4147
4182
|
const { formats: r } = X();
|
|
4148
4183
|
if (e in r && t in r[e])
|
|
4149
4184
|
return r[e][t];
|
|
4150
4185
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4151
|
-
},
|
|
4186
|
+
}, Ni = xe(
|
|
4152
4187
|
(e) => {
|
|
4153
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4188
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4154
4189
|
if (r == null)
|
|
4155
4190
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4156
|
-
return n && (i =
|
|
4191
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4157
4192
|
}
|
|
4158
|
-
),
|
|
4193
|
+
), Li = xe(
|
|
4159
4194
|
(e) => {
|
|
4160
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4195
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4161
4196
|
if (r == null)
|
|
4162
4197
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4163
|
-
return n ? i =
|
|
4198
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4164
4199
|
}
|
|
4165
|
-
),
|
|
4200
|
+
), Ci = xe(
|
|
4166
4201
|
(e) => {
|
|
4167
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4202
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4168
4203
|
if (r == null)
|
|
4169
4204
|
throw new Error(
|
|
4170
4205
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4171
4206
|
);
|
|
4172
|
-
return n ? i =
|
|
4207
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4173
4208
|
}
|
|
4174
|
-
),
|
|
4209
|
+
), Mi = (e = {}) => {
|
|
4175
4210
|
var t = e, {
|
|
4176
4211
|
locale: r = M()
|
|
4177
|
-
} = t, n =
|
|
4212
|
+
} = t, n = Z(t, [
|
|
4178
4213
|
"locale"
|
|
4179
4214
|
]);
|
|
4180
|
-
return
|
|
4181
|
-
},
|
|
4215
|
+
return Ni(qe({ locale: r }, n));
|
|
4216
|
+
}, $i = (e = {}) => {
|
|
4182
4217
|
var t = e, {
|
|
4183
4218
|
locale: r = M()
|
|
4184
|
-
} = t, n =
|
|
4219
|
+
} = t, n = Z(t, [
|
|
4185
4220
|
"locale"
|
|
4186
4221
|
]);
|
|
4187
|
-
return
|
|
4188
|
-
},
|
|
4222
|
+
return Li(qe({ locale: r }, n));
|
|
4223
|
+
}, Ri = (e = {}) => {
|
|
4189
4224
|
var t = e, {
|
|
4190
4225
|
locale: r = M()
|
|
4191
|
-
} = t, n =
|
|
4226
|
+
} = t, n = Z(t, [
|
|
4192
4227
|
"locale"
|
|
4193
4228
|
]);
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4229
|
+
return Ci(qe({ locale: r }, n));
|
|
4230
|
+
}, Ui = xe(
|
|
4196
4231
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4197
|
-
(e, t = M()) => new
|
|
4232
|
+
(e, t = M()) => new ci(e, t, X().formats, {
|
|
4198
4233
|
ignoreTag: X().ignoreTag
|
|
4199
4234
|
})
|
|
4200
|
-
),
|
|
4235
|
+
), Di = (e, t = {}) => {
|
|
4201
4236
|
var r, n, i, o;
|
|
4202
4237
|
let s = t;
|
|
4203
4238
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4210,7 +4245,7 @@ const te = (e, t) => {
|
|
|
4210
4245
|
throw new Error(
|
|
4211
4246
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4212
4247
|
);
|
|
4213
|
-
let l =
|
|
4248
|
+
let l = nr(e, u);
|
|
4214
4249
|
if (!l)
|
|
4215
4250
|
l = (o = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
|
|
4216
4251
|
else if (typeof l != "string")
|
|
@@ -4221,7 +4256,7 @@ const te = (e, t) => {
|
|
|
4221
4256
|
return l;
|
|
4222
4257
|
let c = l;
|
|
4223
4258
|
try {
|
|
4224
|
-
c =
|
|
4259
|
+
c = Ui(l, u).format(a);
|
|
4225
4260
|
} catch (f) {
|
|
4226
4261
|
f instanceof Error && console.warn(
|
|
4227
4262
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4229,20 +4264,20 @@ const te = (e, t) => {
|
|
|
4229
4264
|
);
|
|
4230
4265
|
}
|
|
4231
4266
|
return c;
|
|
4232
|
-
},
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
window.emWidgets = { topic:
|
|
4267
|
+
}, Gi = (e, t) => Ri(t).format(e), Fi = (e, t) => $i(t).format(e), ji = (e, t) => Mi(t).format(e), ki = (e, t = M()) => nr(e, t), Vi = z([W, ne], () => Di);
|
|
4268
|
+
z([W], () => Gi);
|
|
4269
|
+
z([W], () => Fi);
|
|
4270
|
+
z([W], () => ji);
|
|
4271
|
+
z([W, ne], () => ki);
|
|
4272
|
+
window.emWidgets = { topic: tn };
|
|
4238
4273
|
const ae = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4239
|
-
function
|
|
4240
|
-
|
|
4274
|
+
function Ht(e, t) {
|
|
4275
|
+
or(e, t);
|
|
4241
4276
|
}
|
|
4242
|
-
function
|
|
4243
|
-
|
|
4277
|
+
function Xi(e) {
|
|
4278
|
+
W.set(e);
|
|
4244
4279
|
}
|
|
4245
|
-
const
|
|
4280
|
+
const Pt = {
|
|
4246
4281
|
en: {
|
|
4247
4282
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4248
4283
|
},
|
|
@@ -4283,10 +4318,10 @@ const Tt = {
|
|
|
4283
4318
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4284
4319
|
}
|
|
4285
4320
|
};
|
|
4286
|
-
function
|
|
4287
|
-
|
|
4321
|
+
function zi(e) {
|
|
4322
|
+
gr(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}}");
|
|
4288
4323
|
}
|
|
4289
|
-
function
|
|
4324
|
+
function Wi(e) {
|
|
4290
4325
|
let t, r, n, i = (
|
|
4291
4326
|
/*customtext*/
|
|
4292
4327
|
(e[0] || /*$_*/
|
|
@@ -4294,13 +4329,13 @@ function ki(e) {
|
|
|
4294
4329
|
), o, s;
|
|
4295
4330
|
return {
|
|
4296
4331
|
c() {
|
|
4297
|
-
t =
|
|
4332
|
+
t = J("div"), r = J("div"), n = J("button"), o = Er(i), C(n, "class", "PanicButton " + (ae(
|
|
4298
4333
|
/*userAgent*/
|
|
4299
4334
|
e[6]
|
|
4300
4335
|
) !== "PC" ? "PanicButtonMobile" : "")), C(n, "part", "PanicButton " + (ae(
|
|
4301
4336
|
/*userAgent*/
|
|
4302
4337
|
e[6]
|
|
4303
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4338
|
+
) !== "PC" ? "PanicButtonMobile" : "")), ot(
|
|
4304
4339
|
n,
|
|
4305
4340
|
"PanicButtonAnimation",
|
|
4306
4341
|
/*panicLoading*/
|
|
@@ -4315,14 +4350,14 @@ function ki(e) {
|
|
|
4315
4350
|
e[1] == "true" ? "PanicButtonV2" : "");
|
|
4316
4351
|
},
|
|
4317
4352
|
m(a, u) {
|
|
4318
|
-
|
|
4353
|
+
Nt(a, t, u), ue(t, r), ue(r, n), ue(n, o), e[12](n), e[13](t);
|
|
4319
4354
|
},
|
|
4320
4355
|
p(a, [u]) {
|
|
4321
4356
|
u & /*customtext, $_*/
|
|
4322
4357
|
33 && i !== (i = /*customtext*/
|
|
4323
4358
|
(a[0] || /*$_*/
|
|
4324
|
-
a[5]("panicButtonString")) + "") &&
|
|
4325
|
-
16 &&
|
|
4359
|
+
a[5]("panicButtonString")) + "") && xr(o, i), u & /*panicLoading*/
|
|
4360
|
+
16 && ot(
|
|
4326
4361
|
n,
|
|
4327
4362
|
"PanicButtonAnimation",
|
|
4328
4363
|
/*panicLoading*/
|
|
@@ -4334,71 +4369,71 @@ function ki(e) {
|
|
|
4334
4369
|
i: B,
|
|
4335
4370
|
o: B,
|
|
4336
4371
|
d(a) {
|
|
4337
|
-
a &&
|
|
4372
|
+
a && Je(t), e[12](null), e[13](null);
|
|
4338
4373
|
}
|
|
4339
4374
|
};
|
|
4340
4375
|
}
|
|
4341
|
-
function
|
|
4376
|
+
function Zi(e, t, r) {
|
|
4342
4377
|
let n;
|
|
4343
|
-
|
|
4344
|
-
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f,
|
|
4378
|
+
br(e, Vi, (y) => r(5, n = y));
|
|
4379
|
+
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, g = 0, b, T = window.navigator.userAgent;
|
|
4345
4380
|
const L = () => {
|
|
4346
4381
|
fetch(l).then((R) => R.json()).then((R) => {
|
|
4347
|
-
Object.keys(R).forEach((
|
|
4348
|
-
|
|
4382
|
+
Object.keys(R).forEach((Ke) => {
|
|
4383
|
+
Ht(Ke, R[Ke]);
|
|
4349
4384
|
});
|
|
4350
4385
|
}).catch((R) => {
|
|
4351
4386
|
console.log(R);
|
|
4352
4387
|
});
|
|
4353
4388
|
};
|
|
4354
|
-
Object.keys(
|
|
4355
|
-
|
|
4389
|
+
Object.keys(Pt).forEach((y) => {
|
|
4390
|
+
Ht(y, Pt[y]);
|
|
4356
4391
|
});
|
|
4357
4392
|
const I = () => {
|
|
4358
4393
|
c == null || c.addEventListener("mousedown", H, !1), c == null || c.addEventListener("touchstart", H, !1), c == null || c.addEventListener("mouseup", S, !1), c == null || c.addEventListener("touchend", S, !1);
|
|
4359
|
-
},
|
|
4360
|
-
r(4,
|
|
4394
|
+
}, x = () => {
|
|
4395
|
+
r(4, m = !1), c == null || c.removeEventListener("mousedown", H), c == null || c.removeEventListener("touchstart", H), c == null || c.removeEventListener("mouseup", S), c == null || c.removeEventListener("touchend", S);
|
|
4361
4396
|
}, H = () => {
|
|
4362
|
-
|
|
4397
|
+
g = 0, r(4, m = !0), b = setInterval(
|
|
4363
4398
|
() => {
|
|
4364
|
-
|
|
4399
|
+
g++, g >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(b), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
|
|
4365
4400
|
},
|
|
4366
4401
|
1e3
|
|
4367
4402
|
);
|
|
4368
4403
|
}, S = () => {
|
|
4369
|
-
r(4,
|
|
4404
|
+
r(4, m = !1), clearInterval(b);
|
|
4370
4405
|
};
|
|
4371
|
-
|
|
4372
|
-
|
|
4406
|
+
Tr(() => () => {
|
|
4407
|
+
x();
|
|
4373
4408
|
});
|
|
4374
|
-
function $(
|
|
4375
|
-
|
|
4376
|
-
c =
|
|
4409
|
+
function $(y) {
|
|
4410
|
+
pe[y ? "unshift" : "push"](() => {
|
|
4411
|
+
c = y, r(2, c);
|
|
4377
4412
|
});
|
|
4378
4413
|
}
|
|
4379
|
-
function ie(
|
|
4380
|
-
|
|
4381
|
-
f =
|
|
4414
|
+
function ie(y) {
|
|
4415
|
+
pe[y ? "unshift" : "push"](() => {
|
|
4416
|
+
f = y, r(3, f);
|
|
4382
4417
|
});
|
|
4383
4418
|
}
|
|
4384
|
-
return e.$$set = (
|
|
4385
|
-
"lang" in
|
|
4419
|
+
return e.$$set = (y) => {
|
|
4420
|
+
"lang" in y && r(7, i = y.lang), "customtext" in y && r(0, o = y.customtext), "clientstyling" in y && r(8, s = y.clientstyling), "clientstylingurl" in y && r(9, a = y.clientstylingurl), "mbsource" in y && r(10, u = y.mbsource), "alternativestyling" in y && r(1, h = y.alternativestyling), "translationurl" in y && r(11, l = y.translationurl);
|
|
4386
4421
|
}, e.$$.update = () => {
|
|
4387
4422
|
e.$$.dirty & /*panicButton*/
|
|
4388
4423
|
4 && c && I(), e.$$.dirty & /*lang*/
|
|
4389
|
-
128 && i &&
|
|
4390
|
-
264 && s && f &&
|
|
4391
|
-
520 && a && f &&
|
|
4392
|
-
1032 && u && f &&
|
|
4424
|
+
128 && i && Xi(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4425
|
+
264 && s && f && Dr(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4426
|
+
520 && a && f && Gr(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4427
|
+
1032 && u && f && Fr(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4393
4428
|
2048 && l && L();
|
|
4394
4429
|
}, [
|
|
4395
4430
|
o,
|
|
4396
4431
|
h,
|
|
4397
4432
|
c,
|
|
4398
4433
|
f,
|
|
4399
|
-
|
|
4434
|
+
m,
|
|
4400
4435
|
n,
|
|
4401
|
-
|
|
4436
|
+
T,
|
|
4402
4437
|
i,
|
|
4403
4438
|
s,
|
|
4404
4439
|
a,
|
|
@@ -4408,14 +4443,14 @@ function Vi(e, t, r) {
|
|
|
4408
4443
|
ie
|
|
4409
4444
|
];
|
|
4410
4445
|
}
|
|
4411
|
-
class
|
|
4446
|
+
class Qi extends Rr {
|
|
4412
4447
|
constructor(t) {
|
|
4413
|
-
super(),
|
|
4448
|
+
super(), Mr(
|
|
4414
4449
|
this,
|
|
4415
4450
|
t,
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4451
|
+
Zi,
|
|
4452
|
+
Wi,
|
|
4453
|
+
Ot,
|
|
4419
4454
|
{
|
|
4420
4455
|
lang: 7,
|
|
4421
4456
|
customtext: 0,
|
|
@@ -4425,53 +4460,53 @@ class zi extends Lr {
|
|
|
4425
4460
|
alternativestyling: 1,
|
|
4426
4461
|
translationurl: 11
|
|
4427
4462
|
},
|
|
4428
|
-
|
|
4463
|
+
zi
|
|
4429
4464
|
);
|
|
4430
4465
|
}
|
|
4431
4466
|
get lang() {
|
|
4432
4467
|
return this.$$.ctx[7];
|
|
4433
4468
|
}
|
|
4434
4469
|
set lang(t) {
|
|
4435
|
-
this.$$set({ lang: t }),
|
|
4470
|
+
this.$$set({ lang: t }), A();
|
|
4436
4471
|
}
|
|
4437
4472
|
get customtext() {
|
|
4438
4473
|
return this.$$.ctx[0];
|
|
4439
4474
|
}
|
|
4440
4475
|
set customtext(t) {
|
|
4441
|
-
this.$$set({ customtext: t }),
|
|
4476
|
+
this.$$set({ customtext: t }), A();
|
|
4442
4477
|
}
|
|
4443
4478
|
get clientstyling() {
|
|
4444
4479
|
return this.$$.ctx[8];
|
|
4445
4480
|
}
|
|
4446
4481
|
set clientstyling(t) {
|
|
4447
|
-
this.$$set({ clientstyling: t }),
|
|
4482
|
+
this.$$set({ clientstyling: t }), A();
|
|
4448
4483
|
}
|
|
4449
4484
|
get clientstylingurl() {
|
|
4450
4485
|
return this.$$.ctx[9];
|
|
4451
4486
|
}
|
|
4452
4487
|
set clientstylingurl(t) {
|
|
4453
|
-
this.$$set({ clientstylingurl: t }),
|
|
4488
|
+
this.$$set({ clientstylingurl: t }), A();
|
|
4454
4489
|
}
|
|
4455
4490
|
get mbsource() {
|
|
4456
4491
|
return this.$$.ctx[10];
|
|
4457
4492
|
}
|
|
4458
4493
|
set mbsource(t) {
|
|
4459
|
-
this.$$set({ mbsource: t }),
|
|
4494
|
+
this.$$set({ mbsource: t }), A();
|
|
4460
4495
|
}
|
|
4461
4496
|
get alternativestyling() {
|
|
4462
4497
|
return this.$$.ctx[1];
|
|
4463
4498
|
}
|
|
4464
4499
|
set alternativestyling(t) {
|
|
4465
|
-
this.$$set({ alternativestyling: t }),
|
|
4500
|
+
this.$$set({ alternativestyling: t }), A();
|
|
4466
4501
|
}
|
|
4467
4502
|
get translationurl() {
|
|
4468
4503
|
return this.$$.ctx[11];
|
|
4469
4504
|
}
|
|
4470
4505
|
set translationurl(t) {
|
|
4471
|
-
this.$$set({ translationurl: t }),
|
|
4506
|
+
this.$$set({ translationurl: t }), A();
|
|
4472
4507
|
}
|
|
4473
4508
|
}
|
|
4474
|
-
|
|
4509
|
+
$r(Qi, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
|
|
4475
4510
|
export {
|
|
4476
|
-
|
|
4511
|
+
Qi as default
|
|
4477
4512
|
};
|