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