@everymatrix/casino-calendar 1.74.10 → 1.75.1
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/{CasinoCalendar-DiNr9cyi.js → CasinoCalendar-B_yIJo9o.js} +1043 -1008
- package/components/{CasinoCalendar-gJywRnA3.js → CasinoCalendar-BsekytFQ.js} +1075 -1040
- package/components/CasinoCalendar-D4IlozoR.cjs +19 -0
- package/components/CasinoCalendarDailyDetails-5Uwasp4V.cjs +1 -0
- package/components/{CasinoCalendarDailyDetails-B9P6mZr1.js → CasinoCalendarDailyDetails-B9hKQEd-.js} +90 -90
- package/components/{CasinoCalendarDailyDetails-B6nGTAWp.js → CasinoCalendarDailyDetails-qQmxCOJN.js} +91 -91
- package/components/{CasinoCalendarDailyItem-BzdSDi-1.cjs → CasinoCalendarDailyItem-BuRk9egV.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-9BQciOX4.js → CasinoCalendarDailyItem-CqVVctMc.js} +38 -38
- package/components/{CasinoCalendarDailyItem-Bzj78vUR.js → CasinoCalendarDailyItem-J1Bv2gjs.js} +31 -31
- package/es2015/casino-calendar.cjs +1 -1
- package/es2015/casino-calendar.js +1 -1
- package/esnext/casino-calendar.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652--F7PvMq9.js} +176 -176
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-CCFHkzJw.js} +187 -187
- package/stencil/{ui-image-DJWD4G-S.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-D3_FGUyo.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-CYuYAlOX.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CasinoCalendar-CP5B6aU8.cjs +0 -19
- package/components/CasinoCalendarDailyDetails-DgNXGwb5.cjs +0 -1
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function T() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function mr(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,29 +8,29 @@ function fr(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function It(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function nt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
e.forEach(
|
|
17
|
+
function q(e) {
|
|
18
|
+
e.forEach(It);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ke(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Ct(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
26
|
let le;
|
|
27
|
-
function
|
|
27
|
+
function ro(e, t) {
|
|
28
28
|
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function br(e) {
|
|
31
31
|
return Object.keys(e).length === 0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Lt(e, ...t) {
|
|
34
34
|
if (e == null) {
|
|
35
35
|
for (const n of t)
|
|
36
36
|
n(void 0);
|
|
@@ -39,40 +39,40 @@ function Pt(e, ...t) {
|
|
|
39
39
|
const r = e.subscribe(...t);
|
|
40
40
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
e.$$.on_destroy.push(
|
|
42
|
+
function yr(e, t, r) {
|
|
43
|
+
e.$$.on_destroy.push(Lt(t, r));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function no(e, t, r, n) {
|
|
46
46
|
if (e) {
|
|
47
|
-
const i =
|
|
47
|
+
const i = Nt(e, t, r, n);
|
|
48
48
|
return e[0](i);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return e[1] && n ?
|
|
51
|
+
function Nt(e, t, r, n) {
|
|
52
|
+
return e[1] && n ? mr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function io(e, t, r, n) {
|
|
55
55
|
if (e[2] && n) {
|
|
56
56
|
const i = e[2](n(r));
|
|
57
57
|
if (t.dirty === void 0)
|
|
58
58
|
return i;
|
|
59
59
|
if (typeof i == "object") {
|
|
60
|
-
const
|
|
61
|
-
for (let
|
|
62
|
-
s
|
|
63
|
-
return
|
|
60
|
+
const o = [], a = Math.max(t.dirty.length, i.length);
|
|
61
|
+
for (let s = 0; s < a; s += 1)
|
|
62
|
+
o[s] = t.dirty[s] | i[s];
|
|
63
|
+
return o;
|
|
64
64
|
}
|
|
65
65
|
return t.dirty | i;
|
|
66
66
|
}
|
|
67
67
|
return t.dirty;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function oo(e, t, r, n, i, o) {
|
|
70
70
|
if (i) {
|
|
71
|
-
const a =
|
|
71
|
+
const a = Nt(t, r, n, o);
|
|
72
72
|
e.p(a, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function so(e) {
|
|
76
76
|
if (e.ctx.length > 32) {
|
|
77
77
|
const t = [], r = e.ctx.length / 32;
|
|
78
78
|
for (let n = 0; n < r; n++)
|
|
@@ -84,14 +84,14 @@ function rs(e) {
|
|
|
84
84
|
function _e(e, t) {
|
|
85
85
|
e.appendChild(t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const n =
|
|
87
|
+
function gr(e, t, r) {
|
|
88
|
+
const n = vr(e);
|
|
89
89
|
if (!n.getElementById(t)) {
|
|
90
|
-
const i =
|
|
91
|
-
i.id = t, i.textContent = r,
|
|
90
|
+
const i = C("style");
|
|
91
|
+
i.id = t, i.textContent = r, _r(n, i);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function vr(e) {
|
|
95
95
|
if (!e)
|
|
96
96
|
return document;
|
|
97
97
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -101,7 +101,7 @@ function mr(e) {
|
|
|
101
101
|
t
|
|
102
102
|
) : e.ownerDocument;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function _r(e, t) {
|
|
105
105
|
return _e(
|
|
106
106
|
/** @type {Document} */
|
|
107
107
|
e.head || e,
|
|
@@ -114,23 +114,23 @@ function G(e, t, r) {
|
|
|
114
114
|
function $(e) {
|
|
115
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Er(e, t) {
|
|
118
118
|
for (let r = 0; r < e.length; r += 1)
|
|
119
119
|
e[r] && e[r].d(t);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function C(e) {
|
|
122
122
|
return document.createElement(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function ao(e) {
|
|
125
125
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Mt(e) {
|
|
128
128
|
return document.createTextNode(e);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
130
|
+
function xr() {
|
|
131
|
+
return Mt(" ");
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function uo(e, t, r, n) {
|
|
134
134
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
135
135
|
}
|
|
136
136
|
function R(e, t, r) {
|
|
@@ -140,17 +140,17 @@ function d(e, t, r) {
|
|
|
140
140
|
const n = t.toLowerCase();
|
|
141
141
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : R(e, t, r);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Sr(e) {
|
|
144
144
|
return Array.from(e.childNodes);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function wr(e, t) {
|
|
147
147
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
148
148
|
t);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function lo(e, t, r, n) {
|
|
151
151
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Tr(e) {
|
|
154
154
|
const t = {};
|
|
155
155
|
return e.childNodes.forEach(
|
|
156
156
|
/** @param {Element} node */
|
|
@@ -159,69 +159,69 @@ function Er(e) {
|
|
|
159
159
|
}
|
|
160
160
|
), t;
|
|
161
161
|
}
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
|
|
162
|
+
let ne;
|
|
163
|
+
function re(e) {
|
|
164
|
+
ne = e;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
if (!
|
|
166
|
+
function Hr() {
|
|
167
|
+
if (!ne)
|
|
168
168
|
throw new Error("Function called outside component initialization");
|
|
169
|
-
return
|
|
169
|
+
return ne;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
171
|
+
function Br(e) {
|
|
172
|
+
Hr().$$.on_mount.push(e);
|
|
173
173
|
}
|
|
174
|
-
const X = [],
|
|
174
|
+
const X = [], Me = [];
|
|
175
175
|
let W = [];
|
|
176
|
-
const
|
|
177
|
-
let
|
|
178
|
-
function
|
|
179
|
-
|
|
176
|
+
const it = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
177
|
+
let Re = !1;
|
|
178
|
+
function Pr() {
|
|
179
|
+
Re || (Re = !0, Ar.then(B));
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function $e(e) {
|
|
182
182
|
W.push(e);
|
|
183
183
|
}
|
|
184
|
-
const
|
|
184
|
+
const Be = /* @__PURE__ */ new Set();
|
|
185
185
|
let k = 0;
|
|
186
186
|
function B() {
|
|
187
187
|
if (k !== 0)
|
|
188
188
|
return;
|
|
189
|
-
const e =
|
|
189
|
+
const e = ne;
|
|
190
190
|
do {
|
|
191
191
|
try {
|
|
192
192
|
for (; k < X.length; ) {
|
|
193
193
|
const t = X[k];
|
|
194
|
-
k++,
|
|
194
|
+
k++, re(t), Or(t.$$);
|
|
195
195
|
}
|
|
196
196
|
} catch (t) {
|
|
197
197
|
throw X.length = 0, k = 0, t;
|
|
198
198
|
}
|
|
199
|
-
for (
|
|
200
|
-
|
|
199
|
+
for (re(null), X.length = 0, k = 0; Me.length; )
|
|
200
|
+
Me.pop()();
|
|
201
201
|
for (let t = 0; t < W.length; t += 1) {
|
|
202
202
|
const r = W[t];
|
|
203
|
-
|
|
203
|
+
Be.has(r) || (Be.add(r), r());
|
|
204
204
|
}
|
|
205
205
|
W.length = 0;
|
|
206
206
|
} while (X.length);
|
|
207
|
-
for (;
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
for (; it.length; )
|
|
208
|
+
it.pop()();
|
|
209
|
+
Re = !1, Be.clear(), re(e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Or(e) {
|
|
212
212
|
if (e.fragment !== null) {
|
|
213
|
-
e.update(),
|
|
213
|
+
e.update(), q(e.before_update);
|
|
214
214
|
const t = e.dirty;
|
|
215
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
215
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Ir(e) {
|
|
219
219
|
const t = [], r = [];
|
|
220
220
|
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
221
221
|
}
|
|
222
|
-
const
|
|
222
|
+
const fe = /* @__PURE__ */ new Set();
|
|
223
223
|
let U;
|
|
224
|
-
function
|
|
224
|
+
function ho() {
|
|
225
225
|
U = {
|
|
226
226
|
r: 0,
|
|
227
227
|
c: [],
|
|
@@ -229,50 +229,50 @@ function os() {
|
|
|
229
229
|
// parent group
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
U.r ||
|
|
232
|
+
function co() {
|
|
233
|
+
U.r || q(U.c), U = U.p;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
e && e.i && (
|
|
235
|
+
function Cr(e, t) {
|
|
236
|
+
e && e.i && (fe.delete(e), e.i(t));
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function fo(e, t, r, n) {
|
|
239
239
|
if (e && e.o) {
|
|
240
|
-
if (
|
|
240
|
+
if (fe.has(e))
|
|
241
241
|
return;
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
fe.add(e), U.c.push(() => {
|
|
243
|
+
fe.delete(e), n && (r && e.d(1), n());
|
|
244
244
|
}), e.o(t);
|
|
245
245
|
} else
|
|
246
246
|
n && n();
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function ot(e) {
|
|
249
249
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Lr(e, t, r) {
|
|
252
252
|
const { fragment: n, after_update: i } = e.$$;
|
|
253
|
-
n && n.m(t, r),
|
|
254
|
-
const
|
|
255
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
256
|
-
}), i.forEach(
|
|
253
|
+
n && n.m(t, r), $e(() => {
|
|
254
|
+
const o = e.$$.on_mount.map(It).filter(Ke);
|
|
255
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : q(o), e.$$.on_mount = [];
|
|
256
|
+
}), i.forEach($e);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function Nr(e, t) {
|
|
259
259
|
const r = e.$$;
|
|
260
|
-
r.fragment !== null && (
|
|
260
|
+
r.fragment !== null && (Ir(r.after_update), q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
e.$$.dirty[0] === -1 && (X.push(e),
|
|
262
|
+
function Mr(e, t) {
|
|
263
|
+
e.$$.dirty[0] === -1 && (X.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
const l =
|
|
267
|
-
|
|
265
|
+
function Rr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
266
|
+
const l = ne;
|
|
267
|
+
re(e);
|
|
268
268
|
const u = e.$$ = {
|
|
269
269
|
fragment: null,
|
|
270
270
|
ctx: [],
|
|
271
271
|
// state
|
|
272
|
-
props:
|
|
272
|
+
props: o,
|
|
273
273
|
update: T,
|
|
274
274
|
not_equal: i,
|
|
275
|
-
bound:
|
|
275
|
+
bound: nt(),
|
|
276
276
|
// lifecycle
|
|
277
277
|
on_mount: [],
|
|
278
278
|
on_destroy: [],
|
|
@@ -281,28 +281,28 @@ function Cr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
281
281
|
after_update: [],
|
|
282
282
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
283
283
|
// everything else
|
|
284
|
-
callbacks:
|
|
285
|
-
dirty:
|
|
284
|
+
callbacks: nt(),
|
|
285
|
+
dirty: s,
|
|
286
286
|
skip_bound: !1,
|
|
287
287
|
root: t.target || l.$$.root
|
|
288
288
|
};
|
|
289
289
|
a && a(u.root);
|
|
290
290
|
let h = !1;
|
|
291
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
292
|
-
const v = y.length ? y[0] :
|
|
293
|
-
return u.ctx && i(u.ctx[
|
|
294
|
-
}) : [], u.update(), h = !0,
|
|
291
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
|
|
292
|
+
const v = y.length ? y[0] : c;
|
|
293
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), h && Mr(e, f)), c;
|
|
294
|
+
}) : [], u.update(), h = !0, q(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
295
295
|
if (t.hydrate) {
|
|
296
|
-
const
|
|
297
|
-
u.fragment && u.fragment.l(
|
|
296
|
+
const f = Sr(t.target);
|
|
297
|
+
u.fragment && u.fragment.l(f), f.forEach($);
|
|
298
298
|
} else
|
|
299
299
|
u.fragment && u.fragment.c();
|
|
300
|
-
t.intro &&
|
|
300
|
+
t.intro && Cr(e.$$.fragment), Lr(e, t.target, t.anchor), B();
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
re(l);
|
|
303
303
|
}
|
|
304
|
-
let
|
|
305
|
-
typeof HTMLElement == "function" && (
|
|
304
|
+
let Rt;
|
|
305
|
+
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
306
306
|
/** The Svelte component constructor */
|
|
307
307
|
$$ctor;
|
|
308
308
|
/** Slots */
|
|
@@ -341,32 +341,32 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
341
341
|
if (this.$$cn = !0, !this.$$c) {
|
|
342
342
|
let e = function(i) {
|
|
343
343
|
return () => {
|
|
344
|
-
let
|
|
344
|
+
let o;
|
|
345
345
|
return {
|
|
346
346
|
c: function() {
|
|
347
|
-
|
|
347
|
+
o = C("slot"), i !== "default" && R(o, "name", i);
|
|
348
348
|
},
|
|
349
349
|
/**
|
|
350
350
|
* @param {HTMLElement} target
|
|
351
351
|
* @param {HTMLElement} [anchor]
|
|
352
352
|
*/
|
|
353
353
|
m: function(l, u) {
|
|
354
|
-
G(l,
|
|
354
|
+
G(l, o, u);
|
|
355
355
|
},
|
|
356
356
|
d: function(l) {
|
|
357
|
-
l && $(
|
|
357
|
+
l && $(o);
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
};
|
|
361
361
|
};
|
|
362
362
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
363
363
|
return;
|
|
364
|
-
const t = {}, r =
|
|
364
|
+
const t = {}, r = Tr(this);
|
|
365
365
|
for (const i of this.$$s)
|
|
366
366
|
i in r && (t[i] = [e(i)]);
|
|
367
367
|
for (const i of this.attributes) {
|
|
368
|
-
const
|
|
369
|
-
|
|
368
|
+
const o = this.$$g_p(i.name);
|
|
369
|
+
o in this.$$d || (this.$$d[o] = de(o, i.value, this.$$p_d, "toProp"));
|
|
370
370
|
}
|
|
371
371
|
for (const i in this.$$p_d)
|
|
372
372
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -384,21 +384,21 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
384
384
|
this.$$r = !0;
|
|
385
385
|
for (const i in this.$$p_d)
|
|
386
386
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
387
|
-
const
|
|
387
|
+
const o = de(
|
|
388
388
|
i,
|
|
389
389
|
this.$$d[i],
|
|
390
390
|
this.$$p_d,
|
|
391
391
|
"toAttribute"
|
|
392
392
|
);
|
|
393
|
-
|
|
393
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
394
394
|
}
|
|
395
395
|
this.$$r = !1;
|
|
396
396
|
};
|
|
397
397
|
this.$$c.$$.after_update.push(n), n();
|
|
398
398
|
for (const i in this.$$l)
|
|
399
|
-
for (const
|
|
400
|
-
const a = this.$$c.$on(i,
|
|
401
|
-
this.$$l_u.set(
|
|
399
|
+
for (const o of this.$$l[i]) {
|
|
400
|
+
const a = this.$$c.$on(i, o);
|
|
401
|
+
this.$$l_u.set(o, a);
|
|
402
402
|
}
|
|
403
403
|
this.$$l = {};
|
|
404
404
|
}
|
|
@@ -448,36 +448,36 @@ function de(e, t, r, n) {
|
|
|
448
448
|
return t;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
let a = class extends
|
|
451
|
+
function $r(e, t, r, n, i, o) {
|
|
452
|
+
let a = class extends Rt {
|
|
453
453
|
constructor() {
|
|
454
454
|
super(e, r, i), this.$$p_d = t;
|
|
455
455
|
}
|
|
456
456
|
static get observedAttributes() {
|
|
457
457
|
return Object.keys(t).map(
|
|
458
|
-
(
|
|
458
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
459
459
|
);
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
|
-
return Object.keys(t).forEach((
|
|
463
|
-
Object.defineProperty(a.prototype,
|
|
462
|
+
return Object.keys(t).forEach((s) => {
|
|
463
|
+
Object.defineProperty(a.prototype, s, {
|
|
464
464
|
get() {
|
|
465
|
-
return this.$$c &&
|
|
465
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
466
466
|
},
|
|
467
467
|
set(l) {
|
|
468
|
-
l = de(
|
|
468
|
+
l = de(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
|
-
}), n.forEach((
|
|
472
|
-
Object.defineProperty(a.prototype,
|
|
471
|
+
}), n.forEach((s) => {
|
|
472
|
+
Object.defineProperty(a.prototype, s, {
|
|
473
473
|
get() {
|
|
474
|
-
return this.$$c?.[
|
|
474
|
+
return this.$$c?.[s];
|
|
475
475
|
}
|
|
476
476
|
});
|
|
477
477
|
}), e.element = /** @type {any} */
|
|
478
478
|
a, a;
|
|
479
479
|
}
|
|
480
|
-
class
|
|
480
|
+
class Dr {
|
|
481
481
|
/**
|
|
482
482
|
* ### PRIVATE API
|
|
483
483
|
*
|
|
@@ -496,7 +496,7 @@ class Nr {
|
|
|
496
496
|
$$set = void 0;
|
|
497
497
|
/** @returns {void} */
|
|
498
498
|
$destroy() {
|
|
499
|
-
|
|
499
|
+
Nr(this, 1), this.$destroy = T;
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
502
502
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -505,7 +505,7 @@ class Nr {
|
|
|
505
505
|
* @returns {() => void}
|
|
506
506
|
*/
|
|
507
507
|
$on(t, r) {
|
|
508
|
-
if (!
|
|
508
|
+
if (!Ke(r))
|
|
509
509
|
return T;
|
|
510
510
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
511
511
|
return n.push(r), () => {
|
|
@@ -518,11 +518,11 @@ class Nr {
|
|
|
518
518
|
* @returns {void}
|
|
519
519
|
*/
|
|
520
520
|
$set(t) {
|
|
521
|
-
this.$$set && !
|
|
521
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
const
|
|
525
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
524
|
+
const Ur = "4";
|
|
525
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
526
526
|
/*! *****************************************************************************
|
|
527
527
|
Copyright (c) Microsoft Corporation.
|
|
528
528
|
|
|
@@ -537,43 +537,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
537
537
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
538
538
|
PERFORMANCE OF THIS SOFTWARE.
|
|
539
539
|
***************************************************************************** */
|
|
540
|
-
var
|
|
541
|
-
return
|
|
540
|
+
var De = function(e, t) {
|
|
541
|
+
return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
542
542
|
r.__proto__ = n;
|
|
543
543
|
} || function(r, n) {
|
|
544
544
|
for (var i in n)
|
|
545
545
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
546
|
-
},
|
|
546
|
+
}, De(e, t);
|
|
547
547
|
};
|
|
548
|
-
function
|
|
548
|
+
function se(e, t) {
|
|
549
549
|
if (typeof t != "function" && t !== null)
|
|
550
550
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
551
|
-
|
|
551
|
+
De(e, t);
|
|
552
552
|
function r() {
|
|
553
553
|
this.constructor = e;
|
|
554
554
|
}
|
|
555
555
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
556
556
|
}
|
|
557
|
-
|
|
558
|
-
return g = Object.assign || function(t) {
|
|
559
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
560
|
-
r = arguments[n];
|
|
561
|
-
for (var s in r)
|
|
562
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
563
|
-
}
|
|
564
|
-
return t;
|
|
565
|
-
}, g.apply(this, arguments);
|
|
566
|
-
};
|
|
567
|
-
function Rr(e, t) {
|
|
568
|
-
var r = {};
|
|
569
|
-
for (var n in e)
|
|
570
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
571
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
572
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
573
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
574
|
-
return r;
|
|
575
|
-
}
|
|
576
|
-
function Re(e) {
|
|
557
|
+
function Ue(e) {
|
|
577
558
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
578
559
|
if (r)
|
|
579
560
|
return r.call(e);
|
|
@@ -585,16 +566,16 @@ function Re(e) {
|
|
|
585
566
|
};
|
|
586
567
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
587
568
|
}
|
|
588
|
-
function
|
|
569
|
+
function Ge(e, t) {
|
|
589
570
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
590
571
|
if (!r)
|
|
591
572
|
return e;
|
|
592
|
-
var n = r.call(e), i,
|
|
573
|
+
var n = r.call(e), i, o = [], a;
|
|
593
574
|
try {
|
|
594
575
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
595
|
-
|
|
596
|
-
} catch (
|
|
597
|
-
a = { error:
|
|
576
|
+
o.push(i.value);
|
|
577
|
+
} catch (s) {
|
|
578
|
+
a = { error: s };
|
|
598
579
|
} finally {
|
|
599
580
|
try {
|
|
600
581
|
i && !i.done && (r = n.return) && r.call(n);
|
|
@@ -603,24 +584,24 @@ function $e(e, t) {
|
|
|
603
584
|
throw a.error;
|
|
604
585
|
}
|
|
605
586
|
}
|
|
606
|
-
return
|
|
587
|
+
return o;
|
|
607
588
|
}
|
|
608
|
-
function
|
|
609
|
-
if (
|
|
610
|
-
for (var n = 0, i = t.length,
|
|
611
|
-
(
|
|
612
|
-
return e.concat(
|
|
589
|
+
function Fe(e, t, r) {
|
|
590
|
+
if (arguments.length === 2)
|
|
591
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
592
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
593
|
+
return e.concat(o || t);
|
|
613
594
|
}
|
|
614
|
-
function
|
|
595
|
+
function I(e) {
|
|
615
596
|
return typeof e == "function";
|
|
616
597
|
}
|
|
617
|
-
function
|
|
598
|
+
function $t(e) {
|
|
618
599
|
var t = function(n) {
|
|
619
600
|
Error.call(n), n.stack = new Error().stack;
|
|
620
601
|
}, r = e(t);
|
|
621
602
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
622
603
|
}
|
|
623
|
-
var
|
|
604
|
+
var Ae = $t(function(e) {
|
|
624
605
|
return function(r) {
|
|
625
606
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
626
607
|
` + r.map(function(n, i) {
|
|
@@ -629,33 +610,33 @@ var He = Lt(function(e) {
|
|
|
629
610
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
630
611
|
};
|
|
631
612
|
});
|
|
632
|
-
function
|
|
613
|
+
function je(e, t) {
|
|
633
614
|
if (e) {
|
|
634
615
|
var r = e.indexOf(t);
|
|
635
616
|
0 <= r && e.splice(r, 1);
|
|
636
617
|
}
|
|
637
618
|
}
|
|
638
|
-
var
|
|
619
|
+
var Ee = function() {
|
|
639
620
|
function e(t) {
|
|
640
621
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
641
622
|
}
|
|
642
623
|
return e.prototype.unsubscribe = function() {
|
|
643
|
-
var t, r, n, i,
|
|
624
|
+
var t, r, n, i, o;
|
|
644
625
|
if (!this.closed) {
|
|
645
626
|
this.closed = !0;
|
|
646
627
|
var a = this._parentage;
|
|
647
628
|
if (a)
|
|
648
629
|
if (this._parentage = null, Array.isArray(a))
|
|
649
630
|
try {
|
|
650
|
-
for (var
|
|
631
|
+
for (var s = Ue(a), l = s.next(); !l.done; l = s.next()) {
|
|
651
632
|
var u = l.value;
|
|
652
633
|
u.remove(this);
|
|
653
634
|
}
|
|
654
|
-
} catch (
|
|
655
|
-
t = { error:
|
|
635
|
+
} catch (g) {
|
|
636
|
+
t = { error: g };
|
|
656
637
|
} finally {
|
|
657
638
|
try {
|
|
658
|
-
l && !l.done && (r =
|
|
639
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
659
640
|
} finally {
|
|
660
641
|
if (t)
|
|
661
642
|
throw t.error;
|
|
@@ -664,43 +645,43 @@ var ve = function() {
|
|
|
664
645
|
else
|
|
665
646
|
a.remove(this);
|
|
666
647
|
var h = this.initialTeardown;
|
|
667
|
-
if (
|
|
648
|
+
if (I(h))
|
|
668
649
|
try {
|
|
669
650
|
h();
|
|
670
|
-
} catch (
|
|
671
|
-
|
|
651
|
+
} catch (g) {
|
|
652
|
+
o = g instanceof Ae ? g.errors : [g];
|
|
672
653
|
}
|
|
673
|
-
var
|
|
674
|
-
if (
|
|
654
|
+
var f = this._finalizers;
|
|
655
|
+
if (f) {
|
|
675
656
|
this._finalizers = null;
|
|
676
657
|
try {
|
|
677
|
-
for (var
|
|
658
|
+
for (var c = Ue(f), y = c.next(); !y.done; y = c.next()) {
|
|
678
659
|
var v = y.value;
|
|
679
660
|
try {
|
|
680
|
-
|
|
681
|
-
} catch (
|
|
682
|
-
|
|
661
|
+
st(v);
|
|
662
|
+
} catch (g) {
|
|
663
|
+
o = o ?? [], g instanceof Ae ? o = Fe(Fe([], Ge(o)), Ge(g.errors)) : o.push(g);
|
|
683
664
|
}
|
|
684
665
|
}
|
|
685
|
-
} catch (
|
|
686
|
-
n = { error:
|
|
666
|
+
} catch (g) {
|
|
667
|
+
n = { error: g };
|
|
687
668
|
} finally {
|
|
688
669
|
try {
|
|
689
|
-
y && !y.done && (i =
|
|
670
|
+
y && !y.done && (i = c.return) && i.call(c);
|
|
690
671
|
} finally {
|
|
691
672
|
if (n)
|
|
692
673
|
throw n.error;
|
|
693
674
|
}
|
|
694
675
|
}
|
|
695
676
|
}
|
|
696
|
-
if (
|
|
697
|
-
throw new
|
|
677
|
+
if (o)
|
|
678
|
+
throw new Ae(o);
|
|
698
679
|
}
|
|
699
680
|
}, e.prototype.add = function(t) {
|
|
700
681
|
var r;
|
|
701
682
|
if (t && t !== this)
|
|
702
683
|
if (this.closed)
|
|
703
|
-
|
|
684
|
+
st(t);
|
|
704
685
|
else {
|
|
705
686
|
if (t instanceof e) {
|
|
706
687
|
if (t.closed || t._hasParent(this))
|
|
@@ -717,56 +698,52 @@ var ve = function() {
|
|
|
717
698
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
718
699
|
}, e.prototype._removeParent = function(t) {
|
|
719
700
|
var r = this._parentage;
|
|
720
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
701
|
+
r === t ? this._parentage = null : Array.isArray(r) && je(r, t);
|
|
721
702
|
}, e.prototype.remove = function(t) {
|
|
722
703
|
var r = this._finalizers;
|
|
723
|
-
r &&
|
|
704
|
+
r && je(r, t), t instanceof e && t._removeParent(this);
|
|
724
705
|
}, e.EMPTY = function() {
|
|
725
706
|
var t = new e();
|
|
726
707
|
return t.closed = !0, t;
|
|
727
708
|
}(), e;
|
|
728
|
-
}(),
|
|
729
|
-
function
|
|
730
|
-
return e instanceof
|
|
731
|
-
}
|
|
732
|
-
function
|
|
733
|
-
|
|
734
|
-
}
|
|
735
|
-
var
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
Promise: void 0,
|
|
739
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
740
|
-
useDeprecatedNextContext: !1
|
|
741
|
-
}, Dr = {
|
|
709
|
+
}(), Dt = Ee.EMPTY;
|
|
710
|
+
function Ut(e) {
|
|
711
|
+
return e instanceof Ee || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
712
|
+
}
|
|
713
|
+
function st(e) {
|
|
714
|
+
I(e) ? e() : e.unsubscribe();
|
|
715
|
+
}
|
|
716
|
+
var Gr = {
|
|
717
|
+
Promise: void 0
|
|
718
|
+
}, Fr = {
|
|
742
719
|
setTimeout: function(e, t) {
|
|
743
720
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
744
721
|
r[n - 2] = arguments[n];
|
|
745
|
-
return setTimeout.apply(void 0,
|
|
722
|
+
return setTimeout.apply(void 0, Fe([e, t], Ge(r)));
|
|
746
723
|
},
|
|
747
724
|
clearTimeout: function(e) {
|
|
748
725
|
return clearTimeout(e);
|
|
749
726
|
},
|
|
750
727
|
delegate: void 0
|
|
751
728
|
};
|
|
752
|
-
function
|
|
753
|
-
|
|
729
|
+
function jr(e) {
|
|
730
|
+
Fr.setTimeout(function() {
|
|
754
731
|
throw e;
|
|
755
732
|
});
|
|
756
733
|
}
|
|
757
|
-
function
|
|
734
|
+
function at() {
|
|
758
735
|
}
|
|
759
736
|
function pe(e) {
|
|
760
737
|
e();
|
|
761
738
|
}
|
|
762
|
-
var
|
|
763
|
-
|
|
739
|
+
var Gt = function(e) {
|
|
740
|
+
se(t, e);
|
|
764
741
|
function t(r) {
|
|
765
742
|
var n = e.call(this) || this;
|
|
766
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
743
|
+
return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = Xr, n;
|
|
767
744
|
}
|
|
768
745
|
return t.create = function(r, n, i) {
|
|
769
|
-
return new
|
|
746
|
+
return new ke(r, n, i);
|
|
770
747
|
}, t.prototype.next = function(r) {
|
|
771
748
|
this.isStopped || this._next(r);
|
|
772
749
|
}, t.prototype.error = function(r) {
|
|
@@ -790,7 +767,7 @@ var Rt = function(e) {
|
|
|
790
767
|
this.unsubscribe();
|
|
791
768
|
}
|
|
792
769
|
}, t;
|
|
793
|
-
}(
|
|
770
|
+
}(Ee), kr = function() {
|
|
794
771
|
function e(t) {
|
|
795
772
|
this.partialObserver = t;
|
|
796
773
|
}
|
|
@@ -821,43 +798,43 @@ var Rt = function(e) {
|
|
|
821
798
|
he(r);
|
|
822
799
|
}
|
|
823
800
|
}, e;
|
|
824
|
-
}(),
|
|
825
|
-
|
|
801
|
+
}(), ke = function(e) {
|
|
802
|
+
se(t, e);
|
|
826
803
|
function t(r, n, i) {
|
|
827
|
-
var
|
|
828
|
-
return
|
|
804
|
+
var o = e.call(this) || this, a;
|
|
805
|
+
return I(r) || !r ? a = {
|
|
829
806
|
next: r ?? void 0,
|
|
830
807
|
error: n ?? void 0,
|
|
831
808
|
complete: i ?? void 0
|
|
832
|
-
} : a = r,
|
|
809
|
+
} : a = r, o.destination = new kr(a), o;
|
|
833
810
|
}
|
|
834
811
|
return t;
|
|
835
|
-
}(
|
|
812
|
+
}(Gt);
|
|
836
813
|
function he(e) {
|
|
837
|
-
|
|
814
|
+
jr(e);
|
|
838
815
|
}
|
|
839
|
-
function
|
|
816
|
+
function Vr(e) {
|
|
840
817
|
throw e;
|
|
841
818
|
}
|
|
842
|
-
var
|
|
819
|
+
var Xr = {
|
|
843
820
|
closed: !0,
|
|
844
|
-
next:
|
|
845
|
-
error:
|
|
846
|
-
complete:
|
|
847
|
-
},
|
|
821
|
+
next: at,
|
|
822
|
+
error: Vr,
|
|
823
|
+
complete: at
|
|
824
|
+
}, Wr = function() {
|
|
848
825
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
849
826
|
}();
|
|
850
|
-
function
|
|
827
|
+
function zr(e) {
|
|
851
828
|
return e;
|
|
852
829
|
}
|
|
853
|
-
function
|
|
854
|
-
return e.length === 0 ?
|
|
830
|
+
function Zr(e) {
|
|
831
|
+
return e.length === 0 ? zr : e.length === 1 ? e[0] : function(r) {
|
|
855
832
|
return e.reduce(function(n, i) {
|
|
856
833
|
return i(n);
|
|
857
834
|
}, r);
|
|
858
835
|
};
|
|
859
836
|
}
|
|
860
|
-
var
|
|
837
|
+
var ut = function() {
|
|
861
838
|
function e(t) {
|
|
862
839
|
t && (this._subscribe = t);
|
|
863
840
|
}
|
|
@@ -865,11 +842,11 @@ var it = function() {
|
|
|
865
842
|
var r = new e();
|
|
866
843
|
return r.source = this, r.operator = t, r;
|
|
867
844
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
868
|
-
var i = this,
|
|
845
|
+
var i = this, o = Jr(t) ? t : new ke(t, r, n);
|
|
869
846
|
return pe(function() {
|
|
870
|
-
var a = i,
|
|
871
|
-
|
|
872
|
-
}),
|
|
847
|
+
var a = i, s = a.operator, l = a.source;
|
|
848
|
+
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
849
|
+
}), o;
|
|
873
850
|
}, e.prototype._trySubscribe = function(t) {
|
|
874
851
|
try {
|
|
875
852
|
return this._subscribe(t);
|
|
@@ -878,16 +855,16 @@ var it = function() {
|
|
|
878
855
|
}
|
|
879
856
|
}, e.prototype.forEach = function(t, r) {
|
|
880
857
|
var n = this;
|
|
881
|
-
return r =
|
|
882
|
-
var a = new
|
|
883
|
-
next: function(
|
|
858
|
+
return r = lt(r), new r(function(i, o) {
|
|
859
|
+
var a = new ke({
|
|
860
|
+
next: function(s) {
|
|
884
861
|
try {
|
|
885
|
-
t(
|
|
862
|
+
t(s);
|
|
886
863
|
} catch (l) {
|
|
887
|
-
|
|
864
|
+
o(l), a.unsubscribe();
|
|
888
865
|
}
|
|
889
866
|
},
|
|
890
|
-
error:
|
|
867
|
+
error: o,
|
|
891
868
|
complete: i
|
|
892
869
|
});
|
|
893
870
|
n.subscribe(a);
|
|
@@ -895,70 +872,70 @@ var it = function() {
|
|
|
895
872
|
}, e.prototype._subscribe = function(t) {
|
|
896
873
|
var r;
|
|
897
874
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
898
|
-
}, e.prototype[
|
|
875
|
+
}, e.prototype[Wr] = function() {
|
|
899
876
|
return this;
|
|
900
877
|
}, e.prototype.pipe = function() {
|
|
901
878
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
902
879
|
t[r] = arguments[r];
|
|
903
|
-
return
|
|
880
|
+
return Zr(t)(this);
|
|
904
881
|
}, e.prototype.toPromise = function(t) {
|
|
905
882
|
var r = this;
|
|
906
|
-
return t =
|
|
907
|
-
var
|
|
883
|
+
return t = lt(t), new t(function(n, i) {
|
|
884
|
+
var o;
|
|
908
885
|
r.subscribe(function(a) {
|
|
909
|
-
return
|
|
886
|
+
return o = a;
|
|
910
887
|
}, function(a) {
|
|
911
888
|
return i(a);
|
|
912
889
|
}, function() {
|
|
913
|
-
return n(
|
|
890
|
+
return n(o);
|
|
914
891
|
});
|
|
915
892
|
});
|
|
916
893
|
}, e.create = function(t) {
|
|
917
894
|
return new e(t);
|
|
918
895
|
}, e;
|
|
919
896
|
}();
|
|
920
|
-
function
|
|
897
|
+
function lt(e) {
|
|
921
898
|
var t;
|
|
922
|
-
return (t = e ??
|
|
899
|
+
return (t = e ?? Gr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
923
900
|
}
|
|
924
|
-
function
|
|
925
|
-
return e &&
|
|
901
|
+
function Qr(e) {
|
|
902
|
+
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
926
903
|
}
|
|
927
|
-
function
|
|
928
|
-
return e && e instanceof
|
|
904
|
+
function Jr(e) {
|
|
905
|
+
return e && e instanceof Gt || Qr(e) && Ut(e);
|
|
929
906
|
}
|
|
930
|
-
var
|
|
907
|
+
var qr = $t(function(e) {
|
|
931
908
|
return function() {
|
|
932
909
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
933
910
|
};
|
|
934
|
-
}),
|
|
935
|
-
|
|
911
|
+
}), Ft = function(e) {
|
|
912
|
+
se(t, e);
|
|
936
913
|
function t() {
|
|
937
914
|
var r = e.call(this) || this;
|
|
938
915
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
939
916
|
}
|
|
940
917
|
return t.prototype.lift = function(r) {
|
|
941
|
-
var n = new
|
|
918
|
+
var n = new ht(this, this);
|
|
942
919
|
return n.operator = r, n;
|
|
943
920
|
}, t.prototype._throwIfClosed = function() {
|
|
944
921
|
if (this.closed)
|
|
945
|
-
throw new
|
|
922
|
+
throw new qr();
|
|
946
923
|
}, t.prototype.next = function(r) {
|
|
947
924
|
var n = this;
|
|
948
925
|
pe(function() {
|
|
949
|
-
var i,
|
|
926
|
+
var i, o;
|
|
950
927
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
951
928
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
952
929
|
try {
|
|
953
|
-
for (var a =
|
|
954
|
-
var l =
|
|
930
|
+
for (var a = Ue(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
931
|
+
var l = s.value;
|
|
955
932
|
l.next(r);
|
|
956
933
|
}
|
|
957
934
|
} catch (u) {
|
|
958
935
|
i = { error: u };
|
|
959
936
|
} finally {
|
|
960
937
|
try {
|
|
961
|
-
|
|
938
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
962
939
|
} finally {
|
|
963
940
|
if (i)
|
|
964
941
|
throw i.error;
|
|
@@ -998,21 +975,21 @@ var Zr = Lt(function(e) {
|
|
|
998
975
|
}, t.prototype._subscribe = function(r) {
|
|
999
976
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1000
977
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1001
|
-
var n = this, i = this,
|
|
1002
|
-
return
|
|
1003
|
-
n.currentObservers = null,
|
|
978
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
979
|
+
return o || a ? Dt : (this.currentObservers = null, s.push(r), new Ee(function() {
|
|
980
|
+
n.currentObservers = null, je(s, r);
|
|
1004
981
|
}));
|
|
1005
982
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1006
|
-
var n = this, i = n.hasError,
|
|
1007
|
-
i ? r.error(
|
|
983
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
984
|
+
i ? r.error(o) : a && r.complete();
|
|
1008
985
|
}, t.prototype.asObservable = function() {
|
|
1009
|
-
var r = new
|
|
986
|
+
var r = new ut();
|
|
1010
987
|
return r.source = this, r;
|
|
1011
988
|
}, t.create = function(r, n) {
|
|
1012
|
-
return new
|
|
989
|
+
return new ht(r, n);
|
|
1013
990
|
}, t;
|
|
1014
|
-
}(
|
|
1015
|
-
|
|
991
|
+
}(ut), ht = function(e) {
|
|
992
|
+
se(t, e);
|
|
1016
993
|
function t(r, n) {
|
|
1017
994
|
var i = e.call(this) || this;
|
|
1018
995
|
return i.destination = r, i.source = n, i;
|
|
@@ -1028,54 +1005,54 @@ var Zr = Lt(function(e) {
|
|
|
1028
1005
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1029
1006
|
}, t.prototype._subscribe = function(r) {
|
|
1030
1007
|
var n, i;
|
|
1031
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1008
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Dt;
|
|
1032
1009
|
}, t;
|
|
1033
|
-
}(
|
|
1010
|
+
}(Ft), jt = {
|
|
1034
1011
|
now: function() {
|
|
1035
|
-
return (
|
|
1012
|
+
return (jt.delegate || Date).now();
|
|
1036
1013
|
},
|
|
1037
1014
|
delegate: void 0
|
|
1038
|
-
},
|
|
1039
|
-
|
|
1015
|
+
}, Yr = function(e) {
|
|
1016
|
+
se(t, e);
|
|
1040
1017
|
function t(r, n, i) {
|
|
1041
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1042
|
-
var
|
|
1043
|
-
return
|
|
1018
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
1019
|
+
var o = e.call(this) || this;
|
|
1020
|
+
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;
|
|
1044
1021
|
}
|
|
1045
1022
|
return t.prototype.next = function(r) {
|
|
1046
|
-
var n = this, i = n.isStopped,
|
|
1047
|
-
i || (
|
|
1023
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
1024
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1048
1025
|
}, t.prototype._subscribe = function(r) {
|
|
1049
1026
|
this._throwIfClosed(), this._trimBuffer();
|
|
1050
|
-
for (var n = this._innerSubscribe(r), i = this,
|
|
1051
|
-
r.next(
|
|
1027
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
|
|
1028
|
+
r.next(s[l]);
|
|
1052
1029
|
return this._checkFinalizedStatuses(r), n;
|
|
1053
1030
|
}, t.prototype._trimBuffer = function() {
|
|
1054
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider,
|
|
1055
|
-
if (n < 1 / 0 &&
|
|
1056
|
-
for (var l = i.now(), u = 0, h = 1; h <
|
|
1031
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1032
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1033
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1057
1034
|
u = h;
|
|
1058
|
-
u &&
|
|
1035
|
+
u && o.splice(0, u + 1);
|
|
1059
1036
|
}
|
|
1060
1037
|
}, t;
|
|
1061
|
-
}(
|
|
1062
|
-
const
|
|
1063
|
-
if (
|
|
1064
|
-
const r = new
|
|
1065
|
-
|
|
1038
|
+
}(Ft);
|
|
1039
|
+
const ct = [], ft = {}, Kr = (e, t = 0) => {
|
|
1040
|
+
if (ct.indexOf(e) == -1) {
|
|
1041
|
+
const r = new Yr(t);
|
|
1042
|
+
ft[e] = r, ct.push(e);
|
|
1066
1043
|
}
|
|
1067
|
-
return
|
|
1044
|
+
return ft[e];
|
|
1068
1045
|
}, V = [];
|
|
1069
|
-
function
|
|
1046
|
+
function en(e, t) {
|
|
1070
1047
|
return {
|
|
1071
|
-
subscribe:
|
|
1048
|
+
subscribe: xe(e, t).subscribe
|
|
1072
1049
|
};
|
|
1073
1050
|
}
|
|
1074
|
-
function
|
|
1051
|
+
function xe(e, t = T) {
|
|
1075
1052
|
let r;
|
|
1076
1053
|
const n = /* @__PURE__ */ new Set();
|
|
1077
|
-
function i(
|
|
1078
|
-
if (
|
|
1054
|
+
function i(s) {
|
|
1055
|
+
if (Ct(e, s) && (e = s, r)) {
|
|
1079
1056
|
const l = !V.length;
|
|
1080
1057
|
for (const u of n)
|
|
1081
1058
|
u[1](), V.push(u, e);
|
|
@@ -1086,156 +1063,195 @@ function Ee(e, t = T) {
|
|
|
1086
1063
|
}
|
|
1087
1064
|
}
|
|
1088
1065
|
}
|
|
1089
|
-
function s
|
|
1090
|
-
i(
|
|
1066
|
+
function o(s) {
|
|
1067
|
+
i(s(e));
|
|
1091
1068
|
}
|
|
1092
|
-
function a(
|
|
1093
|
-
const u = [
|
|
1094
|
-
return n.add(u), n.size === 1 && (r = t(i,
|
|
1069
|
+
function a(s, l = T) {
|
|
1070
|
+
const u = [s, l];
|
|
1071
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || T), s(e), () => {
|
|
1095
1072
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1096
1073
|
};
|
|
1097
1074
|
}
|
|
1098
|
-
return { set: i, update:
|
|
1075
|
+
return { set: i, update: o, subscribe: a };
|
|
1099
1076
|
}
|
|
1100
|
-
function
|
|
1077
|
+
function Y(e, t, r) {
|
|
1101
1078
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1102
1079
|
if (!i.every(Boolean))
|
|
1103
1080
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1104
|
-
const
|
|
1105
|
-
return
|
|
1081
|
+
const o = t.length < 2;
|
|
1082
|
+
return en(r, (a, s) => {
|
|
1106
1083
|
let l = !1;
|
|
1107
1084
|
const u = [];
|
|
1108
|
-
let h = 0,
|
|
1109
|
-
const
|
|
1085
|
+
let h = 0, f = T;
|
|
1086
|
+
const c = () => {
|
|
1110
1087
|
if (h)
|
|
1111
1088
|
return;
|
|
1112
|
-
|
|
1113
|
-
const v = t(n ? u[0] : u, a,
|
|
1114
|
-
|
|
1089
|
+
f();
|
|
1090
|
+
const v = t(n ? u[0] : u, a, s);
|
|
1091
|
+
o ? a(v) : f = Ke(v) ? v : T;
|
|
1115
1092
|
}, y = i.map(
|
|
1116
|
-
(v,
|
|
1093
|
+
(v, g) => Lt(
|
|
1117
1094
|
v,
|
|
1118
1095
|
(w) => {
|
|
1119
|
-
u[
|
|
1096
|
+
u[g] = w, h &= ~(1 << g), l && c();
|
|
1120
1097
|
},
|
|
1121
1098
|
() => {
|
|
1122
|
-
h |= 1 <<
|
|
1099
|
+
h |= 1 << g;
|
|
1123
1100
|
}
|
|
1124
1101
|
)
|
|
1125
1102
|
);
|
|
1126
|
-
return l = !0,
|
|
1127
|
-
|
|
1103
|
+
return l = !0, c(), function() {
|
|
1104
|
+
q(y), f(), l = !1;
|
|
1128
1105
|
};
|
|
1129
1106
|
});
|
|
1130
1107
|
}
|
|
1131
|
-
function
|
|
1132
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1108
|
+
function tn(e) {
|
|
1109
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1133
1110
|
}
|
|
1134
|
-
var
|
|
1135
|
-
return
|
|
1111
|
+
var rn = function(t) {
|
|
1112
|
+
return nn(t) && !on(t);
|
|
1136
1113
|
};
|
|
1137
|
-
function
|
|
1114
|
+
function nn(e) {
|
|
1138
1115
|
return !!e && typeof e == "object";
|
|
1139
1116
|
}
|
|
1140
|
-
function
|
|
1117
|
+
function on(e) {
|
|
1141
1118
|
var t = Object.prototype.toString.call(e);
|
|
1142
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1119
|
+
return t === "[object RegExp]" || t === "[object Date]" || un(e);
|
|
1143
1120
|
}
|
|
1144
|
-
var
|
|
1145
|
-
function
|
|
1146
|
-
return e.$$typeof ===
|
|
1121
|
+
var sn = typeof Symbol == "function" && Symbol.for, an = sn ? Symbol.for("react.element") : 60103;
|
|
1122
|
+
function un(e) {
|
|
1123
|
+
return e.$$typeof === an;
|
|
1147
1124
|
}
|
|
1148
|
-
function
|
|
1125
|
+
function ln(e) {
|
|
1149
1126
|
return Array.isArray(e) ? [] : {};
|
|
1150
1127
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1128
|
+
function ie(e, t) {
|
|
1129
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(ln(e), e, t) : e;
|
|
1153
1130
|
}
|
|
1154
|
-
function
|
|
1131
|
+
function hn(e, t, r) {
|
|
1155
1132
|
return e.concat(t).map(function(n) {
|
|
1156
|
-
return
|
|
1133
|
+
return ie(n, r);
|
|
1157
1134
|
});
|
|
1158
1135
|
}
|
|
1159
|
-
function
|
|
1136
|
+
function cn(e, t) {
|
|
1160
1137
|
if (!t.customMerge)
|
|
1161
|
-
return
|
|
1138
|
+
return z;
|
|
1162
1139
|
var r = t.customMerge(e);
|
|
1163
|
-
return typeof r == "function" ? r :
|
|
1140
|
+
return typeof r == "function" ? r : z;
|
|
1164
1141
|
}
|
|
1165
|
-
function
|
|
1142
|
+
function fn(e) {
|
|
1166
1143
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1167
1144
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1168
1145
|
}) : [];
|
|
1169
1146
|
}
|
|
1170
|
-
function
|
|
1171
|
-
return Object.keys(e).concat(
|
|
1147
|
+
function dt(e) {
|
|
1148
|
+
return Object.keys(e).concat(fn(e));
|
|
1172
1149
|
}
|
|
1173
|
-
function
|
|
1150
|
+
function kt(e, t) {
|
|
1174
1151
|
try {
|
|
1175
1152
|
return t in e;
|
|
1176
1153
|
} catch {
|
|
1177
1154
|
return !1;
|
|
1178
1155
|
}
|
|
1179
1156
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return
|
|
1157
|
+
function dn(e, t) {
|
|
1158
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1182
1159
|
}
|
|
1183
|
-
function
|
|
1160
|
+
function pn(e, t, r) {
|
|
1184
1161
|
var n = {};
|
|
1185
|
-
return r.isMergeableObject(e) &&
|
|
1186
|
-
n[i] =
|
|
1187
|
-
}),
|
|
1188
|
-
|
|
1162
|
+
return r.isMergeableObject(e) && dt(e).forEach(function(i) {
|
|
1163
|
+
n[i] = ie(e[i], r);
|
|
1164
|
+
}), dt(t).forEach(function(i) {
|
|
1165
|
+
dn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = cn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1189
1166
|
}), n;
|
|
1190
1167
|
}
|
|
1191
|
-
function
|
|
1192
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1193
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
1194
|
-
return
|
|
1168
|
+
function z(e, t, r) {
|
|
1169
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || hn, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1170
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1171
|
+
return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : ie(t, r);
|
|
1195
1172
|
}
|
|
1196
|
-
|
|
1173
|
+
z.all = function(t, r) {
|
|
1197
1174
|
if (!Array.isArray(t))
|
|
1198
1175
|
throw new Error("first argument should be an array");
|
|
1199
1176
|
return t.reduce(function(n, i) {
|
|
1200
|
-
return
|
|
1177
|
+
return z(n, i, r);
|
|
1201
1178
|
}, {});
|
|
1202
1179
|
};
|
|
1203
|
-
var
|
|
1204
|
-
const
|
|
1205
|
-
function
|
|
1206
|
-
|
|
1180
|
+
var mn = z, bn = mn;
|
|
1181
|
+
const yn = /* @__PURE__ */ tn(bn);
|
|
1182
|
+
var Ve = function(e, t) {
|
|
1183
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1184
|
+
r.__proto__ = n;
|
|
1185
|
+
} || function(r, n) {
|
|
1186
|
+
for (var i in n)
|
|
1187
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1188
|
+
}, Ve(e, t);
|
|
1189
|
+
};
|
|
1190
|
+
function Se(e, t) {
|
|
1191
|
+
if (typeof t != "function" && t !== null)
|
|
1192
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1193
|
+
Ve(e, t);
|
|
1194
|
+
function r() {
|
|
1195
|
+
this.constructor = e;
|
|
1196
|
+
}
|
|
1197
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1198
|
+
}
|
|
1199
|
+
var A = function() {
|
|
1200
|
+
return A = Object.assign || function(t) {
|
|
1201
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1202
|
+
r = arguments[n];
|
|
1203
|
+
for (var o in r)
|
|
1204
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1205
|
+
}
|
|
1206
|
+
return t;
|
|
1207
|
+
}, A.apply(this, arguments);
|
|
1208
|
+
};
|
|
1209
|
+
function gn(e, t) {
|
|
1210
|
+
var r = {};
|
|
1211
|
+
for (var n in e)
|
|
1212
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1213
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1214
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1215
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1216
|
+
return r;
|
|
1217
|
+
}
|
|
1218
|
+
function Pe(e, t, r) {
|
|
1219
|
+
if (r || arguments.length === 2)
|
|
1220
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1221
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1222
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1223
|
+
}
|
|
1224
|
+
function Oe(e, t) {
|
|
1225
|
+
var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : Sn, i = t && t.strategy ? t.strategy : En;
|
|
1207
1226
|
return i(e, {
|
|
1208
1227
|
cache: r,
|
|
1209
1228
|
serializer: n
|
|
1210
1229
|
});
|
|
1211
1230
|
}
|
|
1212
|
-
function
|
|
1231
|
+
function vn(e) {
|
|
1213
1232
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1214
1233
|
}
|
|
1215
|
-
function
|
|
1216
|
-
var i =
|
|
1217
|
-
return typeof
|
|
1234
|
+
function _n(e, t, r, n) {
|
|
1235
|
+
var i = vn(n) ? n : r(n), o = t.get(i);
|
|
1236
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1218
1237
|
}
|
|
1219
|
-
function
|
|
1220
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
1221
|
-
return typeof
|
|
1238
|
+
function Vt(e, t, r) {
|
|
1239
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1240
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1222
1241
|
}
|
|
1223
|
-
function
|
|
1242
|
+
function Xt(e, t, r, n, i) {
|
|
1224
1243
|
return r.bind(t, e, n, i);
|
|
1225
1244
|
}
|
|
1226
|
-
function
|
|
1227
|
-
var r = e.length === 1 ?
|
|
1228
|
-
return
|
|
1245
|
+
function En(e, t) {
|
|
1246
|
+
var r = e.length === 1 ? _n : Vt;
|
|
1247
|
+
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1229
1248
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return
|
|
1249
|
+
function xn(e, t) {
|
|
1250
|
+
return Xt(e, this, Vt, t.cache.create(), t.serializer);
|
|
1232
1251
|
}
|
|
1233
|
-
function
|
|
1234
|
-
return Qe(e, this, Gt, t.cache.create(), t.serializer);
|
|
1235
|
-
}
|
|
1236
|
-
var _n = function() {
|
|
1252
|
+
var Sn = function() {
|
|
1237
1253
|
return JSON.stringify(arguments);
|
|
1238
|
-
},
|
|
1254
|
+
}, wn = (
|
|
1239
1255
|
/** @class */
|
|
1240
1256
|
function() {
|
|
1241
1257
|
function e() {
|
|
@@ -1247,62 +1263,71 @@ var _n = function() {
|
|
|
1247
1263
|
this.cache[t] = r;
|
|
1248
1264
|
}, e;
|
|
1249
1265
|
}()
|
|
1250
|
-
),
|
|
1266
|
+
), Tn = {
|
|
1251
1267
|
create: function() {
|
|
1252
|
-
return new
|
|
1268
|
+
return new wn();
|
|
1253
1269
|
}
|
|
1254
|
-
},
|
|
1255
|
-
variadic:
|
|
1256
|
-
|
|
1257
|
-
|
|
1270
|
+
}, Ie = {
|
|
1271
|
+
variadic: xn
|
|
1272
|
+
}, ye = function() {
|
|
1273
|
+
return ye = Object.assign || function(t) {
|
|
1274
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1275
|
+
r = arguments[n];
|
|
1276
|
+
for (var o in r)
|
|
1277
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1278
|
+
}
|
|
1279
|
+
return t;
|
|
1280
|
+
}, ye.apply(this, arguments);
|
|
1281
|
+
};
|
|
1282
|
+
var m;
|
|
1258
1283
|
(function(e) {
|
|
1259
1284
|
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";
|
|
1260
1285
|
})(m || (m = {}));
|
|
1261
|
-
var
|
|
1286
|
+
var _;
|
|
1262
1287
|
(function(e) {
|
|
1263
1288
|
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";
|
|
1264
|
-
})(
|
|
1265
|
-
var
|
|
1289
|
+
})(_ || (_ = {}));
|
|
1290
|
+
var Z;
|
|
1266
1291
|
(function(e) {
|
|
1267
1292
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1268
|
-
})(
|
|
1269
|
-
function
|
|
1270
|
-
return e.type ===
|
|
1293
|
+
})(Z || (Z = {}));
|
|
1294
|
+
function pt(e) {
|
|
1295
|
+
return e.type === _.literal;
|
|
1271
1296
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return e.type ===
|
|
1297
|
+
function Hn(e) {
|
|
1298
|
+
return e.type === _.argument;
|
|
1274
1299
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return e.type ===
|
|
1300
|
+
function Wt(e) {
|
|
1301
|
+
return e.type === _.number;
|
|
1277
1302
|
}
|
|
1278
|
-
function
|
|
1279
|
-
return e.type ===
|
|
1303
|
+
function zt(e) {
|
|
1304
|
+
return e.type === _.date;
|
|
1280
1305
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return e.type ===
|
|
1306
|
+
function Zt(e) {
|
|
1307
|
+
return e.type === _.time;
|
|
1283
1308
|
}
|
|
1284
|
-
function
|
|
1285
|
-
return e.type ===
|
|
1309
|
+
function Qt(e) {
|
|
1310
|
+
return e.type === _.select;
|
|
1286
1311
|
}
|
|
1287
|
-
function
|
|
1288
|
-
return e.type ===
|
|
1312
|
+
function Jt(e) {
|
|
1313
|
+
return e.type === _.plural;
|
|
1289
1314
|
}
|
|
1290
|
-
function
|
|
1291
|
-
return e.type ===
|
|
1315
|
+
function Bn(e) {
|
|
1316
|
+
return e.type === _.pound;
|
|
1292
1317
|
}
|
|
1293
|
-
function
|
|
1294
|
-
return e.type ===
|
|
1318
|
+
function qt(e) {
|
|
1319
|
+
return e.type === _.tag;
|
|
1295
1320
|
}
|
|
1296
|
-
function
|
|
1297
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1321
|
+
function Yt(e) {
|
|
1322
|
+
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
1298
1323
|
}
|
|
1299
|
-
function
|
|
1300
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1324
|
+
function Xe(e) {
|
|
1325
|
+
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
1301
1326
|
}
|
|
1302
|
-
var
|
|
1303
|
-
function
|
|
1327
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, An = /(?:[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;
|
|
1328
|
+
function Pn(e) {
|
|
1304
1329
|
var t = {};
|
|
1305
|
-
return e.replace(
|
|
1330
|
+
return e.replace(An, function(r) {
|
|
1306
1331
|
var n = r.length;
|
|
1307
1332
|
switch (r[0]) {
|
|
1308
1333
|
case "G":
|
|
@@ -1391,36 +1416,46 @@ function Tn(e) {
|
|
|
1391
1416
|
return "";
|
|
1392
1417
|
}), t;
|
|
1393
1418
|
}
|
|
1394
|
-
var
|
|
1395
|
-
function
|
|
1419
|
+
var E = function() {
|
|
1420
|
+
return E = Object.assign || function(t) {
|
|
1421
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1422
|
+
r = arguments[n];
|
|
1423
|
+
for (var o in r)
|
|
1424
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1425
|
+
}
|
|
1426
|
+
return t;
|
|
1427
|
+
}, E.apply(this, arguments);
|
|
1428
|
+
};
|
|
1429
|
+
var On = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1430
|
+
function In(e) {
|
|
1396
1431
|
if (e.length === 0)
|
|
1397
1432
|
throw new Error("Number skeleton cannot be empty");
|
|
1398
|
-
for (var t = e.split(
|
|
1399
|
-
return
|
|
1433
|
+
for (var t = e.split(On).filter(function(c) {
|
|
1434
|
+
return c.length > 0;
|
|
1400
1435
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1401
|
-
var
|
|
1436
|
+
var o = i[n], a = o.split("/");
|
|
1402
1437
|
if (a.length === 0)
|
|
1403
1438
|
throw new Error("Invalid number skeleton");
|
|
1404
|
-
for (var
|
|
1405
|
-
var
|
|
1406
|
-
if (
|
|
1439
|
+
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1440
|
+
var f = h[u];
|
|
1441
|
+
if (f.length === 0)
|
|
1407
1442
|
throw new Error("Invalid number skeleton");
|
|
1408
1443
|
}
|
|
1409
|
-
r.push({ stem:
|
|
1444
|
+
r.push({ stem: s, options: l });
|
|
1410
1445
|
}
|
|
1411
1446
|
return r;
|
|
1412
1447
|
}
|
|
1413
|
-
function
|
|
1448
|
+
function Cn(e) {
|
|
1414
1449
|
return e.replace(/^(.*?)-/, "");
|
|
1415
1450
|
}
|
|
1416
|
-
var
|
|
1417
|
-
function
|
|
1451
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1452
|
+
function bt(e) {
|
|
1418
1453
|
var t = {};
|
|
1419
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1454
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
1420
1455
|
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)), "";
|
|
1421
1456
|
}), t;
|
|
1422
1457
|
}
|
|
1423
|
-
function
|
|
1458
|
+
function rr(e) {
|
|
1424
1459
|
switch (e) {
|
|
1425
1460
|
case "sign-auto":
|
|
1426
1461
|
return {
|
|
@@ -1460,7 +1495,7 @@ function Yt(e) {
|
|
|
1460
1495
|
};
|
|
1461
1496
|
}
|
|
1462
1497
|
}
|
|
1463
|
-
function
|
|
1498
|
+
function Nn(e) {
|
|
1464
1499
|
var t;
|
|
1465
1500
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1466
1501
|
notation: "engineering"
|
|
@@ -1468,17 +1503,17 @@ function On(e) {
|
|
|
1468
1503
|
notation: "scientific"
|
|
1469
1504
|
}, e = e.slice(1)), t) {
|
|
1470
1505
|
var r = e.slice(0, 2);
|
|
1471
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1506
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
|
|
1472
1507
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1473
1508
|
t.minimumIntegerDigits = e.length;
|
|
1474
1509
|
}
|
|
1475
1510
|
return t;
|
|
1476
1511
|
}
|
|
1477
|
-
function
|
|
1478
|
-
var t = {}, r =
|
|
1512
|
+
function yt(e) {
|
|
1513
|
+
var t = {}, r = rr(e);
|
|
1479
1514
|
return r || t;
|
|
1480
1515
|
}
|
|
1481
|
-
function
|
|
1516
|
+
function Mn(e) {
|
|
1482
1517
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1483
1518
|
var i = n[r];
|
|
1484
1519
|
switch (i.stem) {
|
|
@@ -1502,7 +1537,7 @@ function In(e) {
|
|
|
1502
1537
|
continue;
|
|
1503
1538
|
case "measure-unit":
|
|
1504
1539
|
case "unit":
|
|
1505
|
-
t.style = "unit", t.unit =
|
|
1540
|
+
t.style = "unit", t.unit = Cn(i.options[0]);
|
|
1506
1541
|
continue;
|
|
1507
1542
|
case "compact-short":
|
|
1508
1543
|
case "K":
|
|
@@ -1513,13 +1548,13 @@ function In(e) {
|
|
|
1513
1548
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1514
1549
|
continue;
|
|
1515
1550
|
case "scientific":
|
|
1516
|
-
t =
|
|
1517
|
-
return
|
|
1551
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1552
|
+
return E(E({}, l), yt(u));
|
|
1518
1553
|
}, {}));
|
|
1519
1554
|
continue;
|
|
1520
1555
|
case "engineering":
|
|
1521
|
-
t =
|
|
1522
|
-
return
|
|
1556
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1557
|
+
return E(E({}, l), yt(u));
|
|
1523
1558
|
}, {}));
|
|
1524
1559
|
continue;
|
|
1525
1560
|
case "notation-simple":
|
|
@@ -1564,11 +1599,11 @@ function In(e) {
|
|
|
1564
1599
|
case "integer-width":
|
|
1565
1600
|
if (i.options.length > 1)
|
|
1566
1601
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1567
|
-
i.options[0].replace(
|
|
1602
|
+
i.options[0].replace(Ln, function(l, u, h, f, c, y) {
|
|
1568
1603
|
if (u)
|
|
1569
1604
|
t.minimumIntegerDigits = h.length;
|
|
1570
1605
|
else {
|
|
1571
|
-
if (
|
|
1606
|
+
if (f && c)
|
|
1572
1607
|
throw new Error("We currently do not support maximum integer digits");
|
|
1573
1608
|
if (y)
|
|
1574
1609
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1577,32 +1612,32 @@ function In(e) {
|
|
|
1577
1612
|
});
|
|
1578
1613
|
continue;
|
|
1579
1614
|
}
|
|
1580
|
-
if (
|
|
1615
|
+
if (tr.test(i.stem)) {
|
|
1581
1616
|
t.minimumIntegerDigits = i.stem.length;
|
|
1582
1617
|
continue;
|
|
1583
1618
|
}
|
|
1584
|
-
if (
|
|
1619
|
+
if (mt.test(i.stem)) {
|
|
1585
1620
|
if (i.options.length > 1)
|
|
1586
1621
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1587
|
-
i.stem.replace(
|
|
1588
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1622
|
+
i.stem.replace(mt, function(l, u, h, f, c, y) {
|
|
1623
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && y ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1589
1624
|
});
|
|
1590
|
-
var
|
|
1591
|
-
|
|
1625
|
+
var o = i.options[0];
|
|
1626
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), bt(o)));
|
|
1592
1627
|
continue;
|
|
1593
1628
|
}
|
|
1594
|
-
if (
|
|
1595
|
-
t =
|
|
1629
|
+
if (er.test(i.stem)) {
|
|
1630
|
+
t = E(E({}, t), bt(i.stem));
|
|
1596
1631
|
continue;
|
|
1597
1632
|
}
|
|
1598
|
-
var a =
|
|
1599
|
-
a && (t =
|
|
1600
|
-
var
|
|
1601
|
-
|
|
1633
|
+
var a = rr(i.stem);
|
|
1634
|
+
a && (t = E(E({}, t), a));
|
|
1635
|
+
var s = Nn(i.stem);
|
|
1636
|
+
s && (t = E(E({}, t), s));
|
|
1602
1637
|
}
|
|
1603
1638
|
return t;
|
|
1604
1639
|
}
|
|
1605
|
-
var
|
|
1640
|
+
var ce = {
|
|
1606
1641
|
"001": [
|
|
1607
1642
|
"H",
|
|
1608
1643
|
"h"
|
|
@@ -3017,14 +3052,14 @@ var fe = {
|
|
|
3017
3052
|
"h"
|
|
3018
3053
|
]
|
|
3019
3054
|
};
|
|
3020
|
-
function
|
|
3055
|
+
function Rn(e, t) {
|
|
3021
3056
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3022
3057
|
var i = e.charAt(n);
|
|
3023
3058
|
if (i === "j") {
|
|
3024
|
-
for (var
|
|
3025
|
-
|
|
3026
|
-
var a = 1 + (
|
|
3027
|
-
for ((u == "H" || u == "k") && (
|
|
3059
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3060
|
+
o++, n++;
|
|
3061
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = $n(t);
|
|
3062
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3028
3063
|
r += l;
|
|
3029
3064
|
for (; a-- > 0; )
|
|
3030
3065
|
r = u + r;
|
|
@@ -3033,7 +3068,7 @@ function Cn(e, t) {
|
|
|
3033
3068
|
}
|
|
3034
3069
|
return r;
|
|
3035
3070
|
}
|
|
3036
|
-
function
|
|
3071
|
+
function $n(e) {
|
|
3037
3072
|
var t = e.hourCycle;
|
|
3038
3073
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3039
3074
|
e.hourCycles && // @ts-ignore
|
|
@@ -3052,23 +3087,23 @@ function Ln(e) {
|
|
|
3052
3087
|
}
|
|
3053
3088
|
var r = e.language, n;
|
|
3054
3089
|
r !== "root" && (n = e.maximize().region);
|
|
3055
|
-
var i =
|
|
3090
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
3056
3091
|
return i[0];
|
|
3057
3092
|
}
|
|
3058
|
-
var
|
|
3093
|
+
var Ce, Dn = new RegExp("^".concat(Kt.source, "*")), Un = new RegExp("".concat(Kt.source, "*$"));
|
|
3059
3094
|
function b(e, t) {
|
|
3060
3095
|
return { start: e, end: t };
|
|
3061
3096
|
}
|
|
3062
|
-
var
|
|
3097
|
+
var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, zn = Wn ? Number.isSafeInteger : function(e) {
|
|
3063
3098
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3064
|
-
},
|
|
3099
|
+
}, We = !0;
|
|
3065
3100
|
try {
|
|
3066
|
-
var
|
|
3067
|
-
|
|
3101
|
+
var Zn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3102
|
+
We = ((Ce = Zn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
3068
3103
|
} catch {
|
|
3069
|
-
|
|
3104
|
+
We = !1;
|
|
3070
3105
|
}
|
|
3071
|
-
var
|
|
3106
|
+
var gt = Gn ? (
|
|
3072
3107
|
// Native
|
|
3073
3108
|
function(t, r, n) {
|
|
3074
3109
|
return t.startsWith(r, n);
|
|
@@ -3078,31 +3113,31 @@ var pt = Rn ? (
|
|
|
3078
3113
|
function(t, r, n) {
|
|
3079
3114
|
return t.slice(n, n + r.length) === r;
|
|
3080
3115
|
}
|
|
3081
|
-
),
|
|
3116
|
+
), ze = Fn ? String.fromCodePoint : (
|
|
3082
3117
|
// IE11
|
|
3083
3118
|
function() {
|
|
3084
3119
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3085
3120
|
t[r] = arguments[r];
|
|
3086
|
-
for (var n = "", i = t.length,
|
|
3087
|
-
if (a = t[
|
|
3121
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3122
|
+
if (a = t[o++], a > 1114111)
|
|
3088
3123
|
throw RangeError(a + " is not a valid code point");
|
|
3089
3124
|
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3090
3125
|
}
|
|
3091
3126
|
return n;
|
|
3092
3127
|
}
|
|
3093
|
-
),
|
|
3128
|
+
), vt = (
|
|
3094
3129
|
// native
|
|
3095
|
-
|
|
3130
|
+
jn ? Object.fromEntries : (
|
|
3096
3131
|
// Ponyfill
|
|
3097
3132
|
function(t) {
|
|
3098
3133
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3099
|
-
var
|
|
3100
|
-
r[a] =
|
|
3134
|
+
var o = i[n], a = o[0], s = o[1];
|
|
3135
|
+
r[a] = s;
|
|
3101
3136
|
}
|
|
3102
3137
|
return r;
|
|
3103
3138
|
}
|
|
3104
3139
|
)
|
|
3105
|
-
),
|
|
3140
|
+
), nr = kn ? (
|
|
3106
3141
|
// Native
|
|
3107
3142
|
function(t, r) {
|
|
3108
3143
|
return t.codePointAt(r);
|
|
@@ -3112,11 +3147,11 @@ var pt = Rn ? (
|
|
|
3112
3147
|
function(t, r) {
|
|
3113
3148
|
var n = t.length;
|
|
3114
3149
|
if (!(r < 0 || r >= n)) {
|
|
3115
|
-
var i = t.charCodeAt(r),
|
|
3116
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
3150
|
+
var i = t.charCodeAt(r), o;
|
|
3151
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3117
3152
|
}
|
|
3118
3153
|
}
|
|
3119
|
-
),
|
|
3154
|
+
), Qn = Vn ? (
|
|
3120
3155
|
// Native
|
|
3121
3156
|
function(t) {
|
|
3122
3157
|
return t.trimStart();
|
|
@@ -3124,9 +3159,9 @@ var pt = Rn ? (
|
|
|
3124
3159
|
) : (
|
|
3125
3160
|
// Ponyfill
|
|
3126
3161
|
function(t) {
|
|
3127
|
-
return t.replace(
|
|
3162
|
+
return t.replace(Dn, "");
|
|
3128
3163
|
}
|
|
3129
|
-
),
|
|
3164
|
+
), Jn = Xn ? (
|
|
3130
3165
|
// Native
|
|
3131
3166
|
function(t) {
|
|
3132
3167
|
return t.trimEnd();
|
|
@@ -3134,32 +3169,32 @@ var pt = Rn ? (
|
|
|
3134
3169
|
) : (
|
|
3135
3170
|
// Ponyfill
|
|
3136
3171
|
function(t) {
|
|
3137
|
-
return t.replace(
|
|
3172
|
+
return t.replace(Un, "");
|
|
3138
3173
|
}
|
|
3139
3174
|
);
|
|
3140
|
-
function
|
|
3175
|
+
function ir(e, t) {
|
|
3141
3176
|
return new RegExp(e, t);
|
|
3142
3177
|
}
|
|
3143
|
-
var
|
|
3144
|
-
if (
|
|
3145
|
-
var
|
|
3146
|
-
|
|
3178
|
+
var Ze;
|
|
3179
|
+
if (We) {
|
|
3180
|
+
var _t = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3181
|
+
Ze = function(t, r) {
|
|
3147
3182
|
var n;
|
|
3148
|
-
|
|
3149
|
-
var i =
|
|
3183
|
+
_t.lastIndex = r;
|
|
3184
|
+
var i = _t.exec(t);
|
|
3150
3185
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3151
3186
|
};
|
|
3152
3187
|
} else
|
|
3153
|
-
|
|
3188
|
+
Ze = function(t, r) {
|
|
3154
3189
|
for (var n = []; ; ) {
|
|
3155
|
-
var i =
|
|
3156
|
-
if (i === void 0 ||
|
|
3190
|
+
var i = nr(t, r);
|
|
3191
|
+
if (i === void 0 || or(i) || ei(i))
|
|
3157
3192
|
break;
|
|
3158
3193
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3159
3194
|
}
|
|
3160
|
-
return
|
|
3195
|
+
return ze.apply(void 0, n);
|
|
3161
3196
|
};
|
|
3162
|
-
var
|
|
3197
|
+
var qn = (
|
|
3163
3198
|
/** @class */
|
|
3164
3199
|
function() {
|
|
3165
3200
|
function e(t, r) {
|
|
@@ -3171,26 +3206,26 @@ var zn = (
|
|
|
3171
3206
|
return this.parseMessage(0, "", !1);
|
|
3172
3207
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3173
3208
|
for (var i = []; !this.isEOF(); ) {
|
|
3174
|
-
var
|
|
3175
|
-
if (
|
|
3209
|
+
var o = this.char();
|
|
3210
|
+
if (o === 123) {
|
|
3176
3211
|
var a = this.parseArgument(t, n);
|
|
3177
3212
|
if (a.err)
|
|
3178
3213
|
return a;
|
|
3179
3214
|
i.push(a.val);
|
|
3180
3215
|
} else {
|
|
3181
|
-
if (
|
|
3216
|
+
if (o === 125 && t > 0)
|
|
3182
3217
|
break;
|
|
3183
|
-
if (
|
|
3184
|
-
var
|
|
3218
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3219
|
+
var s = this.clonePosition();
|
|
3185
3220
|
this.bump(), i.push({
|
|
3186
|
-
type:
|
|
3187
|
-
location: b(
|
|
3221
|
+
type: _.pound,
|
|
3222
|
+
location: b(s, this.clonePosition())
|
|
3188
3223
|
});
|
|
3189
|
-
} else if (
|
|
3224
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3190
3225
|
if (n)
|
|
3191
3226
|
break;
|
|
3192
3227
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3193
|
-
} else if (
|
|
3228
|
+
} else if (o === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
|
|
3194
3229
|
var a = this.parseTag(t, r);
|
|
3195
3230
|
if (a.err)
|
|
3196
3231
|
return a;
|
|
@@ -3211,44 +3246,44 @@ var zn = (
|
|
|
3211
3246
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3212
3247
|
return {
|
|
3213
3248
|
val: {
|
|
3214
|
-
type:
|
|
3249
|
+
type: _.literal,
|
|
3215
3250
|
value: "<".concat(i, "/>"),
|
|
3216
3251
|
location: b(n, this.clonePosition())
|
|
3217
3252
|
},
|
|
3218
3253
|
err: null
|
|
3219
3254
|
};
|
|
3220
3255
|
if (this.bumpIf(">")) {
|
|
3221
|
-
var
|
|
3222
|
-
if (
|
|
3223
|
-
return
|
|
3224
|
-
var a =
|
|
3256
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3257
|
+
if (o.err)
|
|
3258
|
+
return o;
|
|
3259
|
+
var a = o.val, s = this.clonePosition();
|
|
3225
3260
|
if (this.bumpIf("</")) {
|
|
3226
|
-
if (this.isEOF() || !
|
|
3227
|
-
return this.error(m.INVALID_TAG, b(
|
|
3261
|
+
if (this.isEOF() || !Qe(this.char()))
|
|
3262
|
+
return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
|
|
3228
3263
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3229
3264
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3230
3265
|
val: {
|
|
3231
|
-
type:
|
|
3266
|
+
type: _.tag,
|
|
3232
3267
|
value: i,
|
|
3233
3268
|
children: a,
|
|
3234
3269
|
location: b(n, this.clonePosition())
|
|
3235
3270
|
},
|
|
3236
3271
|
err: null
|
|
3237
|
-
} : this.error(m.INVALID_TAG, b(
|
|
3272
|
+
} : this.error(m.INVALID_TAG, b(s, this.clonePosition())));
|
|
3238
3273
|
} else
|
|
3239
3274
|
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3240
3275
|
} else
|
|
3241
3276
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3242
3277
|
}, e.prototype.parseTagName = function() {
|
|
3243
3278
|
var t = this.offset();
|
|
3244
|
-
for (this.bump(); !this.isEOF() &&
|
|
3279
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
|
3245
3280
|
this.bump();
|
|
3246
3281
|
return this.message.slice(t, this.offset());
|
|
3247
3282
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
3248
3283
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3249
|
-
var
|
|
3250
|
-
if (
|
|
3251
|
-
i +=
|
|
3284
|
+
var o = this.tryParseQuote(r);
|
|
3285
|
+
if (o) {
|
|
3286
|
+
i += o;
|
|
3252
3287
|
continue;
|
|
3253
3288
|
}
|
|
3254
3289
|
var a = this.tryParseUnquoted(t, r);
|
|
@@ -3256,21 +3291,21 @@ var zn = (
|
|
|
3256
3291
|
i += a;
|
|
3257
3292
|
continue;
|
|
3258
3293
|
}
|
|
3259
|
-
var
|
|
3260
|
-
if (
|
|
3261
|
-
i +=
|
|
3294
|
+
var s = this.tryParseLeftAngleBracket();
|
|
3295
|
+
if (s) {
|
|
3296
|
+
i += s;
|
|
3262
3297
|
continue;
|
|
3263
3298
|
}
|
|
3264
3299
|
break;
|
|
3265
3300
|
}
|
|
3266
3301
|
var l = b(n, this.clonePosition());
|
|
3267
3302
|
return {
|
|
3268
|
-
val: { type:
|
|
3303
|
+
val: { type: _.literal, value: i, location: l },
|
|
3269
3304
|
err: null
|
|
3270
3305
|
};
|
|
3271
3306
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3272
3307
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3273
|
-
!
|
|
3308
|
+
!Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3274
3309
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3275
3310
|
if (this.isEOF() || this.char() !== 39)
|
|
3276
3311
|
return null;
|
|
@@ -3304,12 +3339,12 @@ var zn = (
|
|
|
3304
3339
|
r.push(n);
|
|
3305
3340
|
this.bump();
|
|
3306
3341
|
}
|
|
3307
|
-
return
|
|
3342
|
+
return ze.apply(void 0, r);
|
|
3308
3343
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3309
3344
|
if (this.isEOF())
|
|
3310
3345
|
return null;
|
|
3311
3346
|
var n = this.char();
|
|
3312
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3347
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
|
|
3313
3348
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3314
3349
|
var n = this.clonePosition();
|
|
3315
3350
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3325,7 +3360,7 @@ var zn = (
|
|
|
3325
3360
|
case 125:
|
|
3326
3361
|
return this.bump(), {
|
|
3327
3362
|
val: {
|
|
3328
|
-
type:
|
|
3363
|
+
type: _.argument,
|
|
3329
3364
|
// value does not include the opening and closing braces.
|
|
3330
3365
|
value: i,
|
|
3331
3366
|
location: b(n, this.clonePosition())
|
|
@@ -3338,13 +3373,13 @@ var zn = (
|
|
|
3338
3373
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3339
3374
|
}
|
|
3340
3375
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3341
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3376
|
+
var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
|
|
3342
3377
|
this.bumpTo(i);
|
|
3343
|
-
var
|
|
3378
|
+
var o = this.clonePosition(), a = b(t, o);
|
|
3344
3379
|
return { value: n, location: a };
|
|
3345
3380
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3346
|
-
var
|
|
3347
|
-
switch (
|
|
3381
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3382
|
+
switch (s) {
|
|
3348
3383
|
case "":
|
|
3349
3384
|
return this.error(m.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
3350
3385
|
case "number":
|
|
@@ -3354,50 +3389,50 @@ var zn = (
|
|
|
3354
3389
|
var u = null;
|
|
3355
3390
|
if (this.bumpIf(",")) {
|
|
3356
3391
|
this.bumpSpace();
|
|
3357
|
-
var h = this.clonePosition(),
|
|
3358
|
-
if (
|
|
3359
|
-
return
|
|
3360
|
-
var
|
|
3361
|
-
if (
|
|
3392
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3393
|
+
if (f.err)
|
|
3394
|
+
return f;
|
|
3395
|
+
var c = Jn(f.val);
|
|
3396
|
+
if (c.length === 0)
|
|
3362
3397
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3363
3398
|
var y = b(h, this.clonePosition());
|
|
3364
|
-
u = { style:
|
|
3399
|
+
u = { style: c, styleLocation: y };
|
|
3365
3400
|
}
|
|
3366
3401
|
var v = this.tryParseArgumentClose(i);
|
|
3367
3402
|
if (v.err)
|
|
3368
3403
|
return v;
|
|
3369
|
-
var
|
|
3370
|
-
if (u &&
|
|
3371
|
-
var w =
|
|
3372
|
-
if (
|
|
3373
|
-
var
|
|
3374
|
-
return
|
|
3375
|
-
val: { type:
|
|
3404
|
+
var g = b(i, this.clonePosition());
|
|
3405
|
+
if (u && gt(u?.style, "::", 0)) {
|
|
3406
|
+
var w = Qn(u.style.slice(2));
|
|
3407
|
+
if (s === "number") {
|
|
3408
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3409
|
+
return f.err ? f : {
|
|
3410
|
+
val: { type: _.number, value: n, location: g, style: f.val },
|
|
3376
3411
|
err: null
|
|
3377
3412
|
};
|
|
3378
3413
|
} else {
|
|
3379
3414
|
if (w.length === 0)
|
|
3380
|
-
return this.error(m.EXPECT_DATE_TIME_SKELETON,
|
|
3415
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, g);
|
|
3381
3416
|
var L = w;
|
|
3382
|
-
this.locale && (L =
|
|
3383
|
-
var
|
|
3384
|
-
type:
|
|
3417
|
+
this.locale && (L = Rn(w, this.locale));
|
|
3418
|
+
var c = {
|
|
3419
|
+
type: Z.dateTime,
|
|
3385
3420
|
pattern: L,
|
|
3386
3421
|
location: u.styleLocation,
|
|
3387
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3388
|
-
},
|
|
3422
|
+
parsedOptions: this.shouldParseSkeletons ? Pn(L) : {}
|
|
3423
|
+
}, P = s === "date" ? _.date : _.time;
|
|
3389
3424
|
return {
|
|
3390
|
-
val: { type:
|
|
3425
|
+
val: { type: P, value: n, location: g, style: c },
|
|
3391
3426
|
err: null
|
|
3392
3427
|
};
|
|
3393
3428
|
}
|
|
3394
3429
|
}
|
|
3395
3430
|
return {
|
|
3396
3431
|
val: {
|
|
3397
|
-
type:
|
|
3432
|
+
type: s === "number" ? _.number : s === "date" ? _.date : _.time,
|
|
3398
3433
|
value: n,
|
|
3399
|
-
location:
|
|
3400
|
-
style: (
|
|
3434
|
+
location: g,
|
|
3435
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3401
3436
|
},
|
|
3402
3437
|
err: null
|
|
3403
3438
|
};
|
|
@@ -3407,40 +3442,40 @@ var zn = (
|
|
|
3407
3442
|
case "select": {
|
|
3408
3443
|
var S = this.clonePosition();
|
|
3409
3444
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3410
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S,
|
|
3445
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, ye({}, S)));
|
|
3411
3446
|
this.bumpSpace();
|
|
3412
|
-
var D = this.parseIdentifierIfPossible(),
|
|
3413
|
-
if (
|
|
3447
|
+
var D = this.parseIdentifierIfPossible(), O = 0;
|
|
3448
|
+
if (s !== "select" && D.value === "offset") {
|
|
3414
3449
|
if (!this.bumpIf(":"))
|
|
3415
3450
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3416
3451
|
this.bumpSpace();
|
|
3417
|
-
var
|
|
3418
|
-
if (
|
|
3419
|
-
return
|
|
3420
|
-
this.bumpSpace(), D = this.parseIdentifierIfPossible(),
|
|
3452
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3453
|
+
if (f.err)
|
|
3454
|
+
return f;
|
|
3455
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), O = f.val;
|
|
3421
3456
|
}
|
|
3422
|
-
var j = this.tryParsePluralOrSelectOptions(t,
|
|
3457
|
+
var j = this.tryParsePluralOrSelectOptions(t, s, r, D);
|
|
3423
3458
|
if (j.err)
|
|
3424
3459
|
return j;
|
|
3425
3460
|
var v = this.tryParseArgumentClose(i);
|
|
3426
3461
|
if (v.err)
|
|
3427
3462
|
return v;
|
|
3428
3463
|
var ue = b(i, this.clonePosition());
|
|
3429
|
-
return
|
|
3464
|
+
return s === "select" ? {
|
|
3430
3465
|
val: {
|
|
3431
|
-
type:
|
|
3466
|
+
type: _.select,
|
|
3432
3467
|
value: n,
|
|
3433
|
-
options:
|
|
3468
|
+
options: vt(j.val),
|
|
3434
3469
|
location: ue
|
|
3435
3470
|
},
|
|
3436
3471
|
err: null
|
|
3437
3472
|
} : {
|
|
3438
3473
|
val: {
|
|
3439
|
-
type:
|
|
3474
|
+
type: _.plural,
|
|
3440
3475
|
value: n,
|
|
3441
|
-
options:
|
|
3442
|
-
offset:
|
|
3443
|
-
pluralType:
|
|
3476
|
+
options: vt(j.val),
|
|
3477
|
+
offset: O,
|
|
3478
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3444
3479
|
location: ue
|
|
3445
3480
|
},
|
|
3446
3481
|
err: null
|
|
@@ -3489,28 +3524,28 @@ var zn = (
|
|
|
3489
3524
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3490
3525
|
var n = [];
|
|
3491
3526
|
try {
|
|
3492
|
-
n =
|
|
3527
|
+
n = In(t);
|
|
3493
3528
|
} catch {
|
|
3494
3529
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3495
3530
|
}
|
|
3496
3531
|
return {
|
|
3497
3532
|
val: {
|
|
3498
|
-
type:
|
|
3533
|
+
type: Z.number,
|
|
3499
3534
|
tokens: n,
|
|
3500
3535
|
location: r,
|
|
3501
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3536
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
|
|
3502
3537
|
},
|
|
3503
3538
|
err: null
|
|
3504
3539
|
};
|
|
3505
3540
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3506
|
-
for (var
|
|
3541
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3507
3542
|
if (u.length === 0) {
|
|
3508
|
-
var
|
|
3543
|
+
var f = this.clonePosition();
|
|
3509
3544
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3510
|
-
var
|
|
3511
|
-
if (
|
|
3512
|
-
return
|
|
3513
|
-
h = b(
|
|
3545
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3546
|
+
if (c.err)
|
|
3547
|
+
return c;
|
|
3548
|
+
h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3514
3549
|
} else
|
|
3515
3550
|
break;
|
|
3516
3551
|
}
|
|
@@ -3523,30 +3558,30 @@ var zn = (
|
|
|
3523
3558
|
var v = this.parseMessage(t + 1, r, n);
|
|
3524
3559
|
if (v.err)
|
|
3525
3560
|
return v;
|
|
3526
|
-
var
|
|
3527
|
-
if (
|
|
3528
|
-
return
|
|
3529
|
-
|
|
3561
|
+
var g = this.tryParseArgumentClose(y);
|
|
3562
|
+
if (g.err)
|
|
3563
|
+
return g;
|
|
3564
|
+
s.push([
|
|
3530
3565
|
u,
|
|
3531
3566
|
{
|
|
3532
3567
|
value: v.val,
|
|
3533
3568
|
location: b(y, this.clonePosition())
|
|
3534
3569
|
}
|
|
3535
|
-
]), l.add(u), this.bumpSpace(),
|
|
3570
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3536
3571
|
}
|
|
3537
|
-
return
|
|
3572
|
+
return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3538
3573
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3539
3574
|
var n = 1, i = this.clonePosition();
|
|
3540
3575
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3541
|
-
for (var
|
|
3542
|
-
var
|
|
3543
|
-
if (
|
|
3544
|
-
|
|
3576
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3577
|
+
var s = this.char();
|
|
3578
|
+
if (s >= 48 && s <= 57)
|
|
3579
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3545
3580
|
else
|
|
3546
3581
|
break;
|
|
3547
3582
|
}
|
|
3548
3583
|
var l = b(i, this.clonePosition());
|
|
3549
|
-
return
|
|
3584
|
+
return o ? (a *= n, zn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3550
3585
|
}, e.prototype.offset = function() {
|
|
3551
3586
|
return this.position.offset;
|
|
3552
3587
|
}, e.prototype.isEOF = function() {
|
|
@@ -3561,7 +3596,7 @@ var zn = (
|
|
|
3561
3596
|
var t = this.position.offset;
|
|
3562
3597
|
if (t >= this.message.length)
|
|
3563
3598
|
throw Error("out of bound");
|
|
3564
|
-
var r =
|
|
3599
|
+
var r = nr(this.message, t);
|
|
3565
3600
|
if (r === void 0)
|
|
3566
3601
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3567
3602
|
return r;
|
|
@@ -3580,7 +3615,7 @@ var zn = (
|
|
|
3580
3615
|
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);
|
|
3581
3616
|
}
|
|
3582
3617
|
}, e.prototype.bumpIf = function(t) {
|
|
3583
|
-
if (
|
|
3618
|
+
if (gt(this.message, t, this.offset())) {
|
|
3584
3619
|
for (var r = 0; r < t.length; r++)
|
|
3585
3620
|
this.bump();
|
|
3586
3621
|
return !0;
|
|
@@ -3602,7 +3637,7 @@ var zn = (
|
|
|
3602
3637
|
break;
|
|
3603
3638
|
}
|
|
3604
3639
|
}, e.prototype.bumpSpace = function() {
|
|
3605
|
-
for (; !this.isEOF() &&
|
|
3640
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3606
3641
|
this.bump();
|
|
3607
3642
|
}, e.prototype.peek = function() {
|
|
3608
3643
|
if (this.isEOF())
|
|
@@ -3612,204 +3647,204 @@ var zn = (
|
|
|
3612
3647
|
}, e;
|
|
3613
3648
|
}()
|
|
3614
3649
|
);
|
|
3615
|
-
function
|
|
3650
|
+
function Qe(e) {
|
|
3616
3651
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3617
3652
|
}
|
|
3618
|
-
function
|
|
3619
|
-
return
|
|
3653
|
+
function Yn(e) {
|
|
3654
|
+
return Qe(e) || e === 47;
|
|
3620
3655
|
}
|
|
3621
|
-
function
|
|
3656
|
+
function Kn(e) {
|
|
3622
3657
|
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;
|
|
3623
3658
|
}
|
|
3624
|
-
function
|
|
3659
|
+
function or(e) {
|
|
3625
3660
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3626
3661
|
}
|
|
3627
|
-
function
|
|
3662
|
+
function ei(e) {
|
|
3628
3663
|
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;
|
|
3629
3664
|
}
|
|
3630
|
-
function
|
|
3665
|
+
function Je(e) {
|
|
3631
3666
|
e.forEach(function(t) {
|
|
3632
|
-
if (delete t.location,
|
|
3667
|
+
if (delete t.location, Qt(t) || Jt(t))
|
|
3633
3668
|
for (var r in t.options)
|
|
3634
|
-
delete t.options[r].location,
|
|
3669
|
+
delete t.options[r].location, Je(t.options[r].value);
|
|
3635
3670
|
else
|
|
3636
|
-
|
|
3671
|
+
Wt(t) && Yt(t.style) || (zt(t) || Zt(t)) && Xe(t.style) ? delete t.style.location : qt(t) && Je(t.children);
|
|
3637
3672
|
});
|
|
3638
3673
|
}
|
|
3639
|
-
function
|
|
3640
|
-
t === void 0 && (t = {}), t =
|
|
3641
|
-
var r = new
|
|
3674
|
+
function ti(e, t) {
|
|
3675
|
+
t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3676
|
+
var r = new qn(e, t).parse();
|
|
3642
3677
|
if (r.err) {
|
|
3643
3678
|
var n = SyntaxError(m[r.err.kind]);
|
|
3644
3679
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3645
3680
|
}
|
|
3646
|
-
return t?.captureLocation ||
|
|
3681
|
+
return t?.captureLocation || Je(r.val), r.val;
|
|
3647
3682
|
}
|
|
3648
|
-
var
|
|
3683
|
+
var Q;
|
|
3649
3684
|
(function(e) {
|
|
3650
3685
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3651
|
-
})(
|
|
3652
|
-
var
|
|
3686
|
+
})(Q || (Q = {}));
|
|
3687
|
+
var we = (
|
|
3653
3688
|
/** @class */
|
|
3654
3689
|
function(e) {
|
|
3655
|
-
|
|
3690
|
+
Se(t, e);
|
|
3656
3691
|
function t(r, n, i) {
|
|
3657
|
-
var
|
|
3658
|
-
return
|
|
3692
|
+
var o = e.call(this, r) || this;
|
|
3693
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3659
3694
|
}
|
|
3660
3695
|
return t.prototype.toString = function() {
|
|
3661
3696
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3662
3697
|
}, t;
|
|
3663
3698
|
}(Error)
|
|
3664
|
-
),
|
|
3699
|
+
), Et = (
|
|
3665
3700
|
/** @class */
|
|
3666
3701
|
function(e) {
|
|
3667
|
-
|
|
3668
|
-
function t(r, n, i,
|
|
3669
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3702
|
+
Se(t, e);
|
|
3703
|
+
function t(r, n, i, o) {
|
|
3704
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3670
3705
|
}
|
|
3671
3706
|
return t;
|
|
3672
|
-
}(
|
|
3673
|
-
),
|
|
3707
|
+
}(we)
|
|
3708
|
+
), ri = (
|
|
3674
3709
|
/** @class */
|
|
3675
3710
|
function(e) {
|
|
3676
|
-
|
|
3711
|
+
Se(t, e);
|
|
3677
3712
|
function t(r, n, i) {
|
|
3678
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3713
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3679
3714
|
}
|
|
3680
3715
|
return t;
|
|
3681
|
-
}(
|
|
3682
|
-
),
|
|
3716
|
+
}(we)
|
|
3717
|
+
), ni = (
|
|
3683
3718
|
/** @class */
|
|
3684
3719
|
function(e) {
|
|
3685
|
-
|
|
3720
|
+
Se(t, e);
|
|
3686
3721
|
function t(r, n) {
|
|
3687
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3722
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3688
3723
|
}
|
|
3689
3724
|
return t;
|
|
3690
|
-
}(
|
|
3725
|
+
}(we)
|
|
3691
3726
|
), x;
|
|
3692
3727
|
(function(e) {
|
|
3693
3728
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3694
3729
|
})(x || (x = {}));
|
|
3695
|
-
function
|
|
3730
|
+
function ii(e) {
|
|
3696
3731
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3697
3732
|
var n = t[t.length - 1];
|
|
3698
3733
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3699
3734
|
}, []);
|
|
3700
3735
|
}
|
|
3701
|
-
function
|
|
3736
|
+
function oi(e) {
|
|
3702
3737
|
return typeof e == "function";
|
|
3703
3738
|
}
|
|
3704
|
-
function me(e, t, r, n, i,
|
|
3705
|
-
if (e.length === 1 &&
|
|
3739
|
+
function me(e, t, r, n, i, o, a) {
|
|
3740
|
+
if (e.length === 1 && pt(e[0]))
|
|
3706
3741
|
return [
|
|
3707
3742
|
{
|
|
3708
3743
|
type: x.literal,
|
|
3709
3744
|
value: e[0].value
|
|
3710
3745
|
}
|
|
3711
3746
|
];
|
|
3712
|
-
for (var
|
|
3747
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3713
3748
|
var h = u[l];
|
|
3714
|
-
if (
|
|
3715
|
-
|
|
3749
|
+
if (pt(h)) {
|
|
3750
|
+
s.push({
|
|
3716
3751
|
type: x.literal,
|
|
3717
3752
|
value: h.value
|
|
3718
3753
|
});
|
|
3719
3754
|
continue;
|
|
3720
3755
|
}
|
|
3721
|
-
if (
|
|
3722
|
-
typeof
|
|
3756
|
+
if (Bn(h)) {
|
|
3757
|
+
typeof o == "number" && s.push({
|
|
3723
3758
|
type: x.literal,
|
|
3724
|
-
value: r.getNumberFormat(t).format(
|
|
3759
|
+
value: r.getNumberFormat(t).format(o)
|
|
3725
3760
|
});
|
|
3726
3761
|
continue;
|
|
3727
3762
|
}
|
|
3728
|
-
var
|
|
3729
|
-
if (!(i &&
|
|
3730
|
-
throw new
|
|
3731
|
-
var
|
|
3732
|
-
if (
|
|
3733
|
-
(!
|
|
3734
|
-
type: typeof
|
|
3735
|
-
value:
|
|
3763
|
+
var f = h.value;
|
|
3764
|
+
if (!(i && f in i))
|
|
3765
|
+
throw new ni(f, a);
|
|
3766
|
+
var c = i[f];
|
|
3767
|
+
if (Hn(h)) {
|
|
3768
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3769
|
+
type: typeof c == "string" ? x.literal : x.object,
|
|
3770
|
+
value: c
|
|
3736
3771
|
});
|
|
3737
3772
|
continue;
|
|
3738
3773
|
}
|
|
3739
|
-
if (
|
|
3740
|
-
var y = typeof h.style == "string" ? n.date[h.style] :
|
|
3741
|
-
|
|
3774
|
+
if (zt(h)) {
|
|
3775
|
+
var y = typeof h.style == "string" ? n.date[h.style] : Xe(h.style) ? h.style.parsedOptions : void 0;
|
|
3776
|
+
s.push({
|
|
3742
3777
|
type: x.literal,
|
|
3743
|
-
value: r.getDateTimeFormat(t, y).format(
|
|
3778
|
+
value: r.getDateTimeFormat(t, y).format(c)
|
|
3744
3779
|
});
|
|
3745
3780
|
continue;
|
|
3746
3781
|
}
|
|
3747
|
-
if (
|
|
3748
|
-
var y = typeof h.style == "string" ? n.time[h.style] :
|
|
3749
|
-
|
|
3782
|
+
if (Zt(h)) {
|
|
3783
|
+
var y = typeof h.style == "string" ? n.time[h.style] : Xe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3784
|
+
s.push({
|
|
3750
3785
|
type: x.literal,
|
|
3751
|
-
value: r.getDateTimeFormat(t, y).format(
|
|
3786
|
+
value: r.getDateTimeFormat(t, y).format(c)
|
|
3752
3787
|
});
|
|
3753
3788
|
continue;
|
|
3754
3789
|
}
|
|
3755
|
-
if (
|
|
3756
|
-
var y = typeof h.style == "string" ? n.number[h.style] :
|
|
3757
|
-
y && y.scale && (
|
|
3790
|
+
if (Wt(h)) {
|
|
3791
|
+
var y = typeof h.style == "string" ? n.number[h.style] : Yt(h.style) ? h.style.parsedOptions : void 0;
|
|
3792
|
+
y && y.scale && (c = c * (y.scale || 1)), s.push({
|
|
3758
3793
|
type: x.literal,
|
|
3759
|
-
value: r.getNumberFormat(t, y).format(
|
|
3794
|
+
value: r.getNumberFormat(t, y).format(c)
|
|
3760
3795
|
});
|
|
3761
3796
|
continue;
|
|
3762
3797
|
}
|
|
3763
|
-
if (
|
|
3764
|
-
var v = h.children,
|
|
3765
|
-
if (!
|
|
3766
|
-
throw new
|
|
3767
|
-
var L = me(v, t, r, n, i,
|
|
3768
|
-
return
|
|
3798
|
+
if (qt(h)) {
|
|
3799
|
+
var v = h.children, g = h.value, w = i[g];
|
|
3800
|
+
if (!oi(w))
|
|
3801
|
+
throw new ri(g, "function", a);
|
|
3802
|
+
var L = me(v, t, r, n, i, o), P = w(L.map(function(O) {
|
|
3803
|
+
return O.value;
|
|
3769
3804
|
}));
|
|
3770
|
-
Array.isArray(
|
|
3805
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(O) {
|
|
3771
3806
|
return {
|
|
3772
|
-
type: typeof
|
|
3773
|
-
value:
|
|
3807
|
+
type: typeof O == "string" ? x.literal : x.object,
|
|
3808
|
+
value: O
|
|
3774
3809
|
};
|
|
3775
3810
|
}));
|
|
3776
3811
|
}
|
|
3777
|
-
if (
|
|
3778
|
-
var S = h.options[
|
|
3812
|
+
if (Qt(h)) {
|
|
3813
|
+
var S = h.options[c] || h.options.other;
|
|
3779
3814
|
if (!S)
|
|
3780
|
-
throw new
|
|
3781
|
-
|
|
3815
|
+
throw new Et(h.value, c, Object.keys(h.options), a);
|
|
3816
|
+
s.push.apply(s, me(S.value, t, r, n, i));
|
|
3782
3817
|
continue;
|
|
3783
3818
|
}
|
|
3784
|
-
if (
|
|
3785
|
-
var S = h.options["=".concat(
|
|
3819
|
+
if (Jt(h)) {
|
|
3820
|
+
var S = h.options["=".concat(c)];
|
|
3786
3821
|
if (!S) {
|
|
3787
3822
|
if (!Intl.PluralRules)
|
|
3788
|
-
throw new
|
|
3823
|
+
throw new we(`Intl.PluralRules is not available in this environment.
|
|
3789
3824
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3790
|
-
`,
|
|
3791
|
-
var D = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3825
|
+
`, Q.MISSING_INTL_API, a);
|
|
3826
|
+
var D = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3792
3827
|
S = h.options[D] || h.options.other;
|
|
3793
3828
|
}
|
|
3794
3829
|
if (!S)
|
|
3795
|
-
throw new
|
|
3796
|
-
|
|
3830
|
+
throw new Et(h.value, c, Object.keys(h.options), a);
|
|
3831
|
+
s.push.apply(s, me(S.value, t, r, n, i, c - (h.offset || 0)));
|
|
3797
3832
|
continue;
|
|
3798
3833
|
}
|
|
3799
3834
|
}
|
|
3800
|
-
return
|
|
3835
|
+
return ii(s);
|
|
3801
3836
|
}
|
|
3802
|
-
function
|
|
3803
|
-
return t ?
|
|
3804
|
-
return r[n] =
|
|
3837
|
+
function si(e, t) {
|
|
3838
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3839
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3805
3840
|
}, {})) : e;
|
|
3806
3841
|
}
|
|
3807
|
-
function
|
|
3842
|
+
function ai(e, t) {
|
|
3808
3843
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3809
|
-
return r[n] =
|
|
3810
|
-
},
|
|
3844
|
+
return r[n] = si(e[n], t[n]), r;
|
|
3845
|
+
}, A({}, e)) : e;
|
|
3811
3846
|
}
|
|
3812
|
-
function
|
|
3847
|
+
function Le(e) {
|
|
3813
3848
|
return {
|
|
3814
3849
|
create: function() {
|
|
3815
3850
|
return {
|
|
@@ -3823,77 +3858,77 @@ function Oe(e) {
|
|
|
3823
3858
|
}
|
|
3824
3859
|
};
|
|
3825
3860
|
}
|
|
3826
|
-
function
|
|
3861
|
+
function ui(e) {
|
|
3827
3862
|
return e === void 0 && (e = {
|
|
3828
3863
|
number: {},
|
|
3829
3864
|
dateTime: {},
|
|
3830
3865
|
pluralRules: {}
|
|
3831
3866
|
}), {
|
|
3832
|
-
getNumberFormat:
|
|
3867
|
+
getNumberFormat: Oe(function() {
|
|
3833
3868
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3834
3869
|
r[n] = arguments[n];
|
|
3835
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3870
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3836
3871
|
}, {
|
|
3837
|
-
cache:
|
|
3838
|
-
strategy:
|
|
3872
|
+
cache: Le(e.number),
|
|
3873
|
+
strategy: Ie.variadic
|
|
3839
3874
|
}),
|
|
3840
|
-
getDateTimeFormat:
|
|
3875
|
+
getDateTimeFormat: Oe(function() {
|
|
3841
3876
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3842
3877
|
r[n] = arguments[n];
|
|
3843
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3878
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3844
3879
|
}, {
|
|
3845
|
-
cache:
|
|
3846
|
-
strategy:
|
|
3880
|
+
cache: Le(e.dateTime),
|
|
3881
|
+
strategy: Ie.variadic
|
|
3847
3882
|
}),
|
|
3848
|
-
getPluralRules:
|
|
3883
|
+
getPluralRules: Oe(function() {
|
|
3849
3884
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3850
3885
|
r[n] = arguments[n];
|
|
3851
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3886
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3852
3887
|
}, {
|
|
3853
|
-
cache:
|
|
3854
|
-
strategy:
|
|
3888
|
+
cache: Le(e.pluralRules),
|
|
3889
|
+
strategy: Ie.variadic
|
|
3855
3890
|
})
|
|
3856
3891
|
};
|
|
3857
3892
|
}
|
|
3858
|
-
var
|
|
3893
|
+
var li = (
|
|
3859
3894
|
/** @class */
|
|
3860
3895
|
function() {
|
|
3861
3896
|
function e(t, r, n, i) {
|
|
3862
3897
|
r === void 0 && (r = e.defaultLocale);
|
|
3863
|
-
var
|
|
3898
|
+
var o = this;
|
|
3864
3899
|
if (this.formatterCache = {
|
|
3865
3900
|
number: {},
|
|
3866
3901
|
dateTime: {},
|
|
3867
3902
|
pluralRules: {}
|
|
3868
3903
|
}, this.format = function(l) {
|
|
3869
|
-
var u =
|
|
3904
|
+
var u = o.formatToParts(l);
|
|
3870
3905
|
if (u.length === 1)
|
|
3871
3906
|
return u[0].value;
|
|
3872
|
-
var h = u.reduce(function(
|
|
3873
|
-
return !
|
|
3907
|
+
var h = u.reduce(function(f, c) {
|
|
3908
|
+
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3874
3909
|
}, []);
|
|
3875
3910
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3876
3911
|
}, this.formatToParts = function(l) {
|
|
3877
|
-
return me(
|
|
3912
|
+
return me(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3878
3913
|
}, this.resolvedOptions = function() {
|
|
3879
3914
|
var l;
|
|
3880
3915
|
return {
|
|
3881
|
-
locale: ((l =
|
|
3916
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3882
3917
|
};
|
|
3883
3918
|
}, this.getAst = function() {
|
|
3884
|
-
return
|
|
3919
|
+
return o.ast;
|
|
3885
3920
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3886
3921
|
if (this.message = t, !e.__parse)
|
|
3887
3922
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3888
3923
|
var a = i || {};
|
|
3889
3924
|
a.formatters;
|
|
3890
|
-
var
|
|
3891
|
-
this.ast = e.__parse(t,
|
|
3925
|
+
var s = gn(a, ["formatters"]);
|
|
3926
|
+
this.ast = e.__parse(t, A(A({}, s), { locale: this.resolvedLocale }));
|
|
3892
3927
|
} else
|
|
3893
3928
|
this.ast = t;
|
|
3894
3929
|
if (!Array.isArray(this.ast))
|
|
3895
3930
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3896
|
-
this.formats =
|
|
3931
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
|
|
3897
3932
|
}
|
|
3898
3933
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3899
3934
|
get: function() {
|
|
@@ -3906,7 +3941,7 @@ var si = (
|
|
|
3906
3941
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3907
3942
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3908
3943
|
}
|
|
3909
|
-
}, e.__parse =
|
|
3944
|
+
}, e.__parse = ti, e.formats = {
|
|
3910
3945
|
number: {
|
|
3911
3946
|
integer: {
|
|
3912
3947
|
maximumFractionDigits: 0
|
|
@@ -3967,7 +4002,7 @@ var si = (
|
|
|
3967
4002
|
}, e;
|
|
3968
4003
|
}()
|
|
3969
4004
|
);
|
|
3970
|
-
function
|
|
4005
|
+
function hi(e, t) {
|
|
3971
4006
|
if (t == null)
|
|
3972
4007
|
return;
|
|
3973
4008
|
if (t in e)
|
|
@@ -3977,9 +4012,9 @@ function oi(e, t) {
|
|
|
3977
4012
|
for (let i = 0; i < r.length; i++)
|
|
3978
4013
|
if (typeof n == "object") {
|
|
3979
4014
|
if (i > 0) {
|
|
3980
|
-
const
|
|
3981
|
-
if (
|
|
3982
|
-
n = n[
|
|
4015
|
+
const o = r.slice(i, r.length).join(".");
|
|
4016
|
+
if (o in n) {
|
|
4017
|
+
n = n[o];
|
|
3983
4018
|
break;
|
|
3984
4019
|
}
|
|
3985
4020
|
}
|
|
@@ -3988,92 +4023,92 @@ function oi(e, t) {
|
|
|
3988
4023
|
n = void 0;
|
|
3989
4024
|
return n;
|
|
3990
4025
|
}
|
|
3991
|
-
const M = {},
|
|
4026
|
+
const M = {}, ci = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), sr = (e, t) => {
|
|
3992
4027
|
if (t == null)
|
|
3993
4028
|
return;
|
|
3994
4029
|
if (t in M && e in M[t])
|
|
3995
4030
|
return M[t][e];
|
|
3996
|
-
const r =
|
|
4031
|
+
const r = Te(t);
|
|
3997
4032
|
for (let n = 0; n < r.length; n++) {
|
|
3998
|
-
const i = r[n],
|
|
3999
|
-
if (
|
|
4000
|
-
return
|
|
4033
|
+
const i = r[n], o = di(i, e);
|
|
4034
|
+
if (o)
|
|
4035
|
+
return ci(e, t, o);
|
|
4001
4036
|
}
|
|
4002
4037
|
};
|
|
4003
|
-
let
|
|
4004
|
-
const ae =
|
|
4005
|
-
function
|
|
4006
|
-
return
|
|
4038
|
+
let et;
|
|
4039
|
+
const ae = xe({});
|
|
4040
|
+
function fi(e) {
|
|
4041
|
+
return et[e] || null;
|
|
4007
4042
|
}
|
|
4008
|
-
function
|
|
4009
|
-
return e in
|
|
4043
|
+
function ar(e) {
|
|
4044
|
+
return e in et;
|
|
4010
4045
|
}
|
|
4011
|
-
function
|
|
4012
|
-
if (!
|
|
4046
|
+
function di(e, t) {
|
|
4047
|
+
if (!ar(e))
|
|
4013
4048
|
return null;
|
|
4014
|
-
const r =
|
|
4015
|
-
return
|
|
4049
|
+
const r = fi(e);
|
|
4050
|
+
return hi(r, t);
|
|
4016
4051
|
}
|
|
4017
|
-
function
|
|
4052
|
+
function pi(e) {
|
|
4018
4053
|
if (e == null)
|
|
4019
4054
|
return;
|
|
4020
|
-
const t =
|
|
4055
|
+
const t = Te(e);
|
|
4021
4056
|
for (let r = 0; r < t.length; r++) {
|
|
4022
4057
|
const n = t[r];
|
|
4023
|
-
if (
|
|
4058
|
+
if (ar(n))
|
|
4024
4059
|
return n;
|
|
4025
4060
|
}
|
|
4026
4061
|
}
|
|
4027
|
-
function
|
|
4028
|
-
delete M[e], ae.update((r) => (r[e] =
|
|
4062
|
+
function ur(e, ...t) {
|
|
4063
|
+
delete M[e], ae.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
|
|
4029
4064
|
}
|
|
4030
|
-
|
|
4065
|
+
Y(
|
|
4031
4066
|
[ae],
|
|
4032
4067
|
([e]) => Object.keys(e)
|
|
4033
4068
|
);
|
|
4034
|
-
ae.subscribe((e) =>
|
|
4069
|
+
ae.subscribe((e) => et = e);
|
|
4035
4070
|
const be = {};
|
|
4036
|
-
function
|
|
4071
|
+
function mi(e, t) {
|
|
4037
4072
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
4038
4073
|
}
|
|
4039
|
-
function
|
|
4074
|
+
function lr(e) {
|
|
4040
4075
|
return be[e];
|
|
4041
4076
|
}
|
|
4042
|
-
function
|
|
4043
|
-
return
|
|
4044
|
-
const r =
|
|
4077
|
+
function bi(e) {
|
|
4078
|
+
return Te(e).map((t) => {
|
|
4079
|
+
const r = lr(t);
|
|
4045
4080
|
return [t, r ? [...r] : []];
|
|
4046
4081
|
}).filter(([, t]) => t.length > 0);
|
|
4047
4082
|
}
|
|
4048
|
-
function
|
|
4049
|
-
return e == null ? !1 :
|
|
4083
|
+
function qe(e) {
|
|
4084
|
+
return e == null ? !1 : Te(e).some(
|
|
4050
4085
|
(t) => {
|
|
4051
4086
|
var r;
|
|
4052
|
-
return (r =
|
|
4087
|
+
return (r = lr(t)) == null ? void 0 : r.size;
|
|
4053
4088
|
}
|
|
4054
4089
|
);
|
|
4055
4090
|
}
|
|
4056
|
-
function
|
|
4091
|
+
function yi(e, t) {
|
|
4057
4092
|
return Promise.all(
|
|
4058
|
-
t.map((n) => (
|
|
4059
|
-
).then((n) =>
|
|
4060
|
-
}
|
|
4061
|
-
const
|
|
4062
|
-
function
|
|
4063
|
-
if (!
|
|
4064
|
-
return e in
|
|
4065
|
-
const t =
|
|
4066
|
-
return
|
|
4093
|
+
t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
|
|
4094
|
+
).then((n) => ur(e, ...n));
|
|
4095
|
+
}
|
|
4096
|
+
const te = {};
|
|
4097
|
+
function hr(e) {
|
|
4098
|
+
if (!qe(e))
|
|
4099
|
+
return e in te ? te[e] : Promise.resolve();
|
|
4100
|
+
const t = bi(e);
|
|
4101
|
+
return te[e] = Promise.all(
|
|
4067
4102
|
t.map(
|
|
4068
|
-
([r, n]) =>
|
|
4103
|
+
([r, n]) => yi(r, n)
|
|
4069
4104
|
)
|
|
4070
4105
|
).then(() => {
|
|
4071
|
-
if (
|
|
4072
|
-
return
|
|
4073
|
-
delete
|
|
4074
|
-
}),
|
|
4106
|
+
if (qe(e))
|
|
4107
|
+
return hr(e);
|
|
4108
|
+
delete te[e];
|
|
4109
|
+
}), te[e];
|
|
4075
4110
|
}
|
|
4076
|
-
const
|
|
4111
|
+
const gi = {
|
|
4077
4112
|
number: {
|
|
4078
4113
|
scientific: { notation: "scientific" },
|
|
4079
4114
|
engineering: { notation: "engineering" },
|
|
@@ -4102,140 +4137,140 @@ const pi = {
|
|
|
4102
4137
|
timeZoneName: "short"
|
|
4103
4138
|
}
|
|
4104
4139
|
}
|
|
4105
|
-
},
|
|
4140
|
+
}, vi = {
|
|
4106
4141
|
fallbackLocale: null,
|
|
4107
4142
|
loadingDelay: 200,
|
|
4108
|
-
formats:
|
|
4143
|
+
formats: gi,
|
|
4109
4144
|
warnOnMissingMessages: !0,
|
|
4110
4145
|
handleMissingMessage: void 0,
|
|
4111
4146
|
ignoreTag: !0
|
|
4112
|
-
},
|
|
4113
|
-
function
|
|
4114
|
-
return
|
|
4115
|
-
}
|
|
4116
|
-
const
|
|
4117
|
-
var
|
|
4118
|
-
for (var r in t)
|
|
4119
|
-
|
|
4120
|
-
if (
|
|
4121
|
-
for (var r of
|
|
4122
|
-
|
|
4147
|
+
}, _i = vi;
|
|
4148
|
+
function J() {
|
|
4149
|
+
return _i;
|
|
4150
|
+
}
|
|
4151
|
+
const Ne = xe(!1);
|
|
4152
|
+
var Ei = Object.defineProperty, xi = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
|
|
4153
|
+
for (var r in t || (t = {}))
|
|
4154
|
+
wi.call(t, r) && St(e, r, t[r]);
|
|
4155
|
+
if (xt)
|
|
4156
|
+
for (var r of xt(t))
|
|
4157
|
+
Ti.call(t, r) && St(e, r, t[r]);
|
|
4123
4158
|
return e;
|
|
4124
|
-
},
|
|
4125
|
-
let
|
|
4126
|
-
const
|
|
4127
|
-
function
|
|
4159
|
+
}, Bi = (e, t) => xi(e, Si(t));
|
|
4160
|
+
let Ye;
|
|
4161
|
+
const ge = xe(null);
|
|
4162
|
+
function wt(e) {
|
|
4128
4163
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4129
4164
|
}
|
|
4130
|
-
function
|
|
4131
|
-
const r =
|
|
4132
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4165
|
+
function Te(e, t = J().fallbackLocale) {
|
|
4166
|
+
const r = wt(e);
|
|
4167
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
|
4133
4168
|
}
|
|
4134
4169
|
function F() {
|
|
4135
|
-
return
|
|
4170
|
+
return Ye ?? void 0;
|
|
4136
4171
|
}
|
|
4137
|
-
|
|
4138
|
-
|
|
4172
|
+
ge.subscribe((e) => {
|
|
4173
|
+
Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4139
4174
|
});
|
|
4140
|
-
const
|
|
4141
|
-
if (e &&
|
|
4142
|
-
const { loadingDelay: t } =
|
|
4175
|
+
const Ai = (e) => {
|
|
4176
|
+
if (e && pi(e) && qe(e)) {
|
|
4177
|
+
const { loadingDelay: t } = J();
|
|
4143
4178
|
let r;
|
|
4144
4179
|
return typeof window < "u" && F() != null && t ? r = window.setTimeout(
|
|
4145
|
-
() =>
|
|
4180
|
+
() => Ne.set(!0),
|
|
4146
4181
|
t
|
|
4147
|
-
) :
|
|
4148
|
-
|
|
4182
|
+
) : Ne.set(!0), hr(e).then(() => {
|
|
4183
|
+
ge.set(e);
|
|
4149
4184
|
}).finally(() => {
|
|
4150
|
-
clearTimeout(r),
|
|
4185
|
+
clearTimeout(r), Ne.set(!1);
|
|
4151
4186
|
});
|
|
4152
4187
|
}
|
|
4153
|
-
return
|
|
4154
|
-
},
|
|
4155
|
-
set:
|
|
4156
|
-
}),
|
|
4188
|
+
return ge.set(e);
|
|
4189
|
+
}, K = Bi(Hi({}, ge), {
|
|
4190
|
+
set: Ai
|
|
4191
|
+
}), He = (e) => {
|
|
4157
4192
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4158
4193
|
return (n) => {
|
|
4159
4194
|
const i = JSON.stringify(n);
|
|
4160
4195
|
return i in t ? t[i] : t[i] = e(n);
|
|
4161
4196
|
};
|
|
4162
4197
|
};
|
|
4163
|
-
var
|
|
4198
|
+
var Pi = Object.defineProperty, ve = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4164
4199
|
for (var r in t || (t = {}))
|
|
4165
|
-
|
|
4166
|
-
if (
|
|
4167
|
-
for (var r of
|
|
4168
|
-
|
|
4200
|
+
cr.call(t, r) && Tt(e, r, t[r]);
|
|
4201
|
+
if (ve)
|
|
4202
|
+
for (var r of ve(t))
|
|
4203
|
+
fr.call(t, r) && Tt(e, r, t[r]);
|
|
4169
4204
|
return e;
|
|
4170
|
-
},
|
|
4205
|
+
}, ee = (e, t) => {
|
|
4171
4206
|
var r = {};
|
|
4172
4207
|
for (var n in e)
|
|
4173
|
-
|
|
4174
|
-
if (e != null &&
|
|
4175
|
-
for (var n of
|
|
4176
|
-
t.indexOf(n) < 0 &&
|
|
4208
|
+
cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4209
|
+
if (e != null && ve)
|
|
4210
|
+
for (var n of ve(e))
|
|
4211
|
+
t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
|
|
4177
4212
|
return r;
|
|
4178
4213
|
};
|
|
4179
4214
|
const oe = (e, t) => {
|
|
4180
|
-
const { formats: r } =
|
|
4215
|
+
const { formats: r } = J();
|
|
4181
4216
|
if (e in r && t in r[e])
|
|
4182
4217
|
return r[e][t];
|
|
4183
4218
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4184
|
-
},
|
|
4219
|
+
}, Oi = He(
|
|
4185
4220
|
(e) => {
|
|
4186
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4221
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4187
4222
|
if (r == null)
|
|
4188
4223
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4189
4224
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4190
4225
|
}
|
|
4191
|
-
),
|
|
4226
|
+
), Ii = He(
|
|
4192
4227
|
(e) => {
|
|
4193
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4228
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4194
4229
|
if (r == null)
|
|
4195
4230
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4196
4231
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4197
4232
|
}
|
|
4198
|
-
),
|
|
4233
|
+
), Ci = He(
|
|
4199
4234
|
(e) => {
|
|
4200
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4235
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4201
4236
|
if (r == null)
|
|
4202
4237
|
throw new Error(
|
|
4203
4238
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4204
4239
|
);
|
|
4205
4240
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4206
4241
|
}
|
|
4207
|
-
),
|
|
4242
|
+
), Li = (e = {}) => {
|
|
4208
4243
|
var t = e, {
|
|
4209
4244
|
locale: r = F()
|
|
4210
|
-
} = t, n =
|
|
4245
|
+
} = t, n = ee(t, [
|
|
4211
4246
|
"locale"
|
|
4212
4247
|
]);
|
|
4213
|
-
return
|
|
4214
|
-
},
|
|
4248
|
+
return Oi(tt({ locale: r }, n));
|
|
4249
|
+
}, Ni = (e = {}) => {
|
|
4215
4250
|
var t = e, {
|
|
4216
4251
|
locale: r = F()
|
|
4217
|
-
} = t, n =
|
|
4252
|
+
} = t, n = ee(t, [
|
|
4218
4253
|
"locale"
|
|
4219
4254
|
]);
|
|
4220
|
-
return
|
|
4221
|
-
},
|
|
4255
|
+
return Ii(tt({ locale: r }, n));
|
|
4256
|
+
}, Mi = (e = {}) => {
|
|
4222
4257
|
var t = e, {
|
|
4223
4258
|
locale: r = F()
|
|
4224
|
-
} = t, n =
|
|
4259
|
+
} = t, n = ee(t, [
|
|
4225
4260
|
"locale"
|
|
4226
4261
|
]);
|
|
4227
|
-
return
|
|
4228
|
-
},
|
|
4262
|
+
return Ci(tt({ locale: r }, n));
|
|
4263
|
+
}, Ri = He(
|
|
4229
4264
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4230
|
-
(e, t = F()) => new
|
|
4231
|
-
ignoreTag:
|
|
4265
|
+
(e, t = F()) => new li(e, t, J().formats, {
|
|
4266
|
+
ignoreTag: J().ignoreTag
|
|
4232
4267
|
})
|
|
4233
|
-
),
|
|
4234
|
-
var r, n, i,
|
|
4268
|
+
), $i = (e, t = {}) => {
|
|
4269
|
+
var r, n, i, o;
|
|
4235
4270
|
let a = t;
|
|
4236
4271
|
typeof e == "object" && (a = e, e = a.id);
|
|
4237
4272
|
const {
|
|
4238
|
-
values:
|
|
4273
|
+
values: s,
|
|
4239
4274
|
locale: l = F(),
|
|
4240
4275
|
default: u
|
|
4241
4276
|
} = a;
|
|
@@ -4243,39 +4278,39 @@ const oe = (e, t) => {
|
|
|
4243
4278
|
throw new Error(
|
|
4244
4279
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4245
4280
|
);
|
|
4246
|
-
let h =
|
|
4281
|
+
let h = sr(e, l);
|
|
4247
4282
|
if (!h)
|
|
4248
|
-
h = (
|
|
4283
|
+
h = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4249
4284
|
else if (typeof h != "string")
|
|
4250
4285
|
return console.warn(
|
|
4251
4286
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4252
4287
|
), h;
|
|
4253
|
-
if (!
|
|
4288
|
+
if (!s)
|
|
4254
4289
|
return h;
|
|
4255
|
-
let
|
|
4290
|
+
let f = h;
|
|
4256
4291
|
try {
|
|
4257
|
-
|
|
4258
|
-
} catch (
|
|
4259
|
-
|
|
4292
|
+
f = Ri(h, l).format(s);
|
|
4293
|
+
} catch (c) {
|
|
4294
|
+
c instanceof Error && console.warn(
|
|
4260
4295
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4261
|
-
|
|
4296
|
+
c.message
|
|
4262
4297
|
);
|
|
4263
4298
|
}
|
|
4264
|
-
return
|
|
4265
|
-
},
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
window.emWidgets = { topic:
|
|
4271
|
-
const
|
|
4272
|
-
function
|
|
4299
|
+
return f;
|
|
4300
|
+
}, Di = (e, t) => Mi(t).format(e), Ui = (e, t) => Ni(t).format(e), Gi = (e, t) => Li(t).format(e), Fi = (e, t = F()) => sr(e, t), ji = Y([K, ae], () => $i);
|
|
4301
|
+
Y([K], () => Di);
|
|
4302
|
+
Y([K], () => Ui);
|
|
4303
|
+
Y([K], () => Gi);
|
|
4304
|
+
Y([K, ae], () => Fi);
|
|
4305
|
+
window.emWidgets = { topic: Kr };
|
|
4306
|
+
const ki = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4307
|
+
function Xi(e, t) {
|
|
4273
4308
|
if (e) {
|
|
4274
4309
|
const r = document.createElement("style");
|
|
4275
4310
|
r.innerHTML = t, e.appendChild(r);
|
|
4276
4311
|
}
|
|
4277
4312
|
}
|
|
4278
|
-
function
|
|
4313
|
+
function Wi(e, t) {
|
|
4279
4314
|
const r = new URL(t);
|
|
4280
4315
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4281
4316
|
const i = document.createElement("style");
|
|
@@ -4284,7 +4319,7 @@ function ji(e, t) {
|
|
|
4284
4319
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4285
4320
|
});
|
|
4286
4321
|
}
|
|
4287
|
-
function
|
|
4322
|
+
function zi(e, t, r) {
|
|
4288
4323
|
if (window.emMessageBus) {
|
|
4289
4324
|
const n = document.createElement("style");
|
|
4290
4325
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4292,13 +4327,13 @@ function ki(e, t, r) {
|
|
|
4292
4327
|
});
|
|
4293
4328
|
}
|
|
4294
4329
|
}
|
|
4295
|
-
function
|
|
4296
|
-
|
|
4330
|
+
function Ht(e, t) {
|
|
4331
|
+
ur(e, t);
|
|
4297
4332
|
}
|
|
4298
|
-
function
|
|
4299
|
-
|
|
4333
|
+
function Zi(e) {
|
|
4334
|
+
K.set(e);
|
|
4300
4335
|
}
|
|
4301
|
-
const
|
|
4336
|
+
const Bt = {
|
|
4302
4337
|
en: {
|
|
4303
4338
|
error: "500 Error - Internal Server Error"
|
|
4304
4339
|
},
|
|
@@ -4330,7 +4365,7 @@ if (typeof window < "u") {
|
|
|
4330
4365
|
}
|
|
4331
4366
|
};
|
|
4332
4367
|
};
|
|
4333
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-
|
|
4368
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-B9hKQEd-.js").then(({ default: t }) => {
|
|
4334
4369
|
!customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", t.element);
|
|
4335
4370
|
});
|
|
4336
4371
|
}
|
|
@@ -4346,74 +4381,74 @@ if (typeof window < "u") {
|
|
|
4346
4381
|
}
|
|
4347
4382
|
};
|
|
4348
4383
|
};
|
|
4349
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-
|
|
4384
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-CqVVctMc.js").then(({ default: t }) => {
|
|
4350
4385
|
!customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", t.element);
|
|
4351
4386
|
});
|
|
4352
4387
|
}
|
|
4353
|
-
function
|
|
4354
|
-
|
|
4388
|
+
function Qi(e) {
|
|
4389
|
+
gr(e, "svelte-5u3c97", `.svelte-5u3c97{font-family:inherit}.CasinoCalendarItem.svelte-5u3c97{display:flex;flex-direction:row;flex-wrap:nowrap;text-align:left;gap:10px;overflow-x:auto;overflow-y:hidden;justify-content:space-evenly}.Mobile.svelte-5u3c97{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.CalendarDetailsWrapper.svelte-5u3c97{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-5u3c97{display:block;width:80px;height:80px;margin:0 auto
|
|
4355
4390
|
}.LoadingSpinner.svelte-5u3c97:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:svelte-5u3c97-LoadingSpinner 1.2s linear infinite}@keyframes svelte-5u3c97-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
|
|
4356
4391
|
}
|
|
4357
|
-
function
|
|
4392
|
+
function At(e, t, r) {
|
|
4358
4393
|
const n = e.slice();
|
|
4359
4394
|
return n[26] = t[r], n[28] = r, n;
|
|
4360
4395
|
}
|
|
4361
|
-
function
|
|
4362
|
-
let t, r, n, i =
|
|
4396
|
+
function Ji(e) {
|
|
4397
|
+
let t, r, n, i = ot(
|
|
4363
4398
|
/*calendarCollections*/
|
|
4364
4399
|
e[6]
|
|
4365
|
-
),
|
|
4366
|
-
for (let
|
|
4367
|
-
s
|
|
4400
|
+
), o = [];
|
|
4401
|
+
for (let s = 0; s < i.length; s += 1)
|
|
4402
|
+
o[s] = Pt(At(e, i, s));
|
|
4368
4403
|
let a = (
|
|
4369
4404
|
/*calendarModalOpened*/
|
|
4370
|
-
e[11] == !0 &&
|
|
4405
|
+
e[11] == !0 && Ot(e)
|
|
4371
4406
|
);
|
|
4372
4407
|
return {
|
|
4373
4408
|
c() {
|
|
4374
|
-
t =
|
|
4375
|
-
for (let
|
|
4376
|
-
s
|
|
4377
|
-
r =
|
|
4409
|
+
t = C("div");
|
|
4410
|
+
for (let s = 0; s < o.length; s += 1)
|
|
4411
|
+
o[s].c();
|
|
4412
|
+
r = xr(), a && a.c(), R(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
|
|
4378
4413
|
(e[10] ? "Mobile" : "") + " svelte-5u3c97");
|
|
4379
4414
|
},
|
|
4380
|
-
m(
|
|
4381
|
-
G(
|
|
4382
|
-
for (let u = 0; u <
|
|
4383
|
-
|
|
4415
|
+
m(s, l) {
|
|
4416
|
+
G(s, t, l);
|
|
4417
|
+
for (let u = 0; u < o.length; u += 1)
|
|
4418
|
+
o[u] && o[u].m(t, null);
|
|
4384
4419
|
_e(t, r), a && a.m(t, null);
|
|
4385
4420
|
},
|
|
4386
|
-
p(
|
|
4421
|
+
p(s, l) {
|
|
4387
4422
|
if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, mbsource, translationurl*/
|
|
4388
4423
|
95) {
|
|
4389
|
-
i =
|
|
4424
|
+
i = ot(
|
|
4390
4425
|
/*calendarCollections*/
|
|
4391
|
-
|
|
4426
|
+
s[6]
|
|
4392
4427
|
);
|
|
4393
4428
|
let u;
|
|
4394
4429
|
for (u = 0; u < i.length; u += 1) {
|
|
4395
|
-
const h =
|
|
4396
|
-
|
|
4430
|
+
const h = At(s, i, u);
|
|
4431
|
+
o[u] ? o[u].p(h, l) : (o[u] = Pt(h), o[u].c(), o[u].m(t, r));
|
|
4397
4432
|
}
|
|
4398
|
-
for (; u <
|
|
4399
|
-
|
|
4400
|
-
|
|
4433
|
+
for (; u < o.length; u += 1)
|
|
4434
|
+
o[u].d(1);
|
|
4435
|
+
o.length = i.length;
|
|
4401
4436
|
}
|
|
4402
4437
|
/*calendarModalOpened*/
|
|
4403
|
-
|
|
4438
|
+
s[11] == !0 ? a ? a.p(s, l) : (a = Ot(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null), l & /*mobileView*/
|
|
4404
4439
|
1024 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
|
|
4405
|
-
(
|
|
4440
|
+
(s[10] ? "Mobile" : "") + " svelte-5u3c97") && R(t, "class", n);
|
|
4406
4441
|
},
|
|
4407
|
-
d(
|
|
4408
|
-
|
|
4442
|
+
d(s) {
|
|
4443
|
+
s && $(t), Er(o, s), a && a.d();
|
|
4409
4444
|
}
|
|
4410
4445
|
};
|
|
4411
4446
|
}
|
|
4412
|
-
function
|
|
4447
|
+
function qi(e) {
|
|
4413
4448
|
let t;
|
|
4414
4449
|
return {
|
|
4415
4450
|
c() {
|
|
4416
|
-
t =
|
|
4451
|
+
t = C("div"), R(t, "class", "LoadingSpinner svelte-5u3c97");
|
|
4417
4452
|
},
|
|
4418
4453
|
m(r, n) {
|
|
4419
4454
|
G(r, t, n);
|
|
@@ -4424,36 +4459,36 @@ function zi(e) {
|
|
|
4424
4459
|
}
|
|
4425
4460
|
};
|
|
4426
4461
|
}
|
|
4427
|
-
function
|
|
4462
|
+
function Yi(e) {
|
|
4428
4463
|
let t, r = (
|
|
4429
4464
|
/*$_*/
|
|
4430
4465
|
e[12]("error") + ""
|
|
4431
4466
|
), n;
|
|
4432
4467
|
return {
|
|
4433
4468
|
c() {
|
|
4434
|
-
t =
|
|
4469
|
+
t = C("p"), n = Mt(r), R(t, "class", "SearchLoading svelte-5u3c97");
|
|
4435
4470
|
},
|
|
4436
|
-
m(i,
|
|
4437
|
-
G(i, t,
|
|
4471
|
+
m(i, o) {
|
|
4472
|
+
G(i, t, o), _e(t, n);
|
|
4438
4473
|
},
|
|
4439
|
-
p(i,
|
|
4440
|
-
|
|
4474
|
+
p(i, o) {
|
|
4475
|
+
o & /*$_*/
|
|
4441
4476
|
4096 && r !== (r = /*$_*/
|
|
4442
|
-
i[12]("error") + "") &&
|
|
4477
|
+
i[12]("error") + "") && wr(n, r);
|
|
4443
4478
|
},
|
|
4444
4479
|
d(i) {
|
|
4445
4480
|
i && $(t);
|
|
4446
4481
|
}
|
|
4447
4482
|
};
|
|
4448
4483
|
}
|
|
4449
|
-
function
|
|
4450
|
-
let t, r, n, i,
|
|
4484
|
+
function Pt(e) {
|
|
4485
|
+
let t, r, n, i, o, a;
|
|
4451
4486
|
return {
|
|
4452
4487
|
c() {
|
|
4453
|
-
t =
|
|
4488
|
+
t = C("casino-calendar-daily-item"), d(t, "dailybackground", r = /*dailyCalendarData*/
|
|
4454
4489
|
e[26].dailyBackground), d(t, "dailyicon", n = /*dailyCalendarData*/
|
|
4455
4490
|
e[26].dailyIcon), d(t, "dailyday", i = /*dailyCalendarData*/
|
|
4456
|
-
e[26].dailyDay), d(t, "dailydescription",
|
|
4491
|
+
e[26].dailyDay), d(t, "dailydescription", o = /*dailyCalendarData*/
|
|
4457
4492
|
e[26].dailyDescription), d(t, "dailybuttontitle", a = /*dailyCalendarData*/
|
|
4458
4493
|
e[26].dailyButtonTitle), d(
|
|
4459
4494
|
t,
|
|
@@ -4487,62 +4522,62 @@ function Tt(e) {
|
|
|
4487
4522
|
e[3]
|
|
4488
4523
|
), d(t, "class", "svelte-5u3c97");
|
|
4489
4524
|
},
|
|
4490
|
-
m(
|
|
4491
|
-
G(
|
|
4525
|
+
m(s, l) {
|
|
4526
|
+
G(s, t, l);
|
|
4492
4527
|
},
|
|
4493
|
-
p(
|
|
4528
|
+
p(s, l) {
|
|
4494
4529
|
l & /*calendarCollections*/
|
|
4495
4530
|
64 && r !== (r = /*dailyCalendarData*/
|
|
4496
|
-
|
|
4531
|
+
s[26].dailyBackground) && d(t, "dailybackground", r), l & /*calendarCollections*/
|
|
4497
4532
|
64 && n !== (n = /*dailyCalendarData*/
|
|
4498
|
-
|
|
4533
|
+
s[26].dailyIcon) && d(t, "dailyicon", n), l & /*calendarCollections*/
|
|
4499
4534
|
64 && i !== (i = /*dailyCalendarData*/
|
|
4500
|
-
|
|
4501
|
-
64 &&
|
|
4502
|
-
|
|
4535
|
+
s[26].dailyDay) && d(t, "dailyday", i), l & /*calendarCollections*/
|
|
4536
|
+
64 && o !== (o = /*dailyCalendarData*/
|
|
4537
|
+
s[26].dailyDescription) && d(t, "dailydescription", o), l & /*calendarCollections*/
|
|
4503
4538
|
64 && a !== (a = /*dailyCalendarData*/
|
|
4504
|
-
|
|
4539
|
+
s[26].dailyButtonTitle) && d(t, "dailybuttontitle", a), l & /*lang*/
|
|
4505
4540
|
1 && d(
|
|
4506
4541
|
t,
|
|
4507
4542
|
"lang",
|
|
4508
4543
|
/*lang*/
|
|
4509
|
-
|
|
4544
|
+
s[0]
|
|
4510
4545
|
), l & /*clientstyling*/
|
|
4511
4546
|
2 && d(
|
|
4512
4547
|
t,
|
|
4513
4548
|
"clientstyling",
|
|
4514
4549
|
/*clientstyling*/
|
|
4515
|
-
|
|
4550
|
+
s[1]
|
|
4516
4551
|
), l & /*clientstylingurl*/
|
|
4517
4552
|
4 && d(
|
|
4518
4553
|
t,
|
|
4519
4554
|
"clientstylingurl",
|
|
4520
4555
|
/*clientstylingurl*/
|
|
4521
|
-
|
|
4556
|
+
s[2]
|
|
4522
4557
|
), l & /*mbsource*/
|
|
4523
4558
|
16 && d(
|
|
4524
4559
|
t,
|
|
4525
4560
|
"mbsource",
|
|
4526
4561
|
/*mbsource*/
|
|
4527
|
-
|
|
4562
|
+
s[4]
|
|
4528
4563
|
), l & /*translationurl*/
|
|
4529
4564
|
8 && d(
|
|
4530
4565
|
t,
|
|
4531
4566
|
"translationurl",
|
|
4532
4567
|
/*translationurl*/
|
|
4533
|
-
|
|
4568
|
+
s[3]
|
|
4534
4569
|
);
|
|
4535
4570
|
},
|
|
4536
|
-
d(
|
|
4537
|
-
|
|
4571
|
+
d(s) {
|
|
4572
|
+
s && $(t);
|
|
4538
4573
|
}
|
|
4539
4574
|
};
|
|
4540
4575
|
}
|
|
4541
|
-
function
|
|
4542
|
-
let t, r, n, i,
|
|
4576
|
+
function Ot(e) {
|
|
4577
|
+
let t, r, n, i, o, a, s, l;
|
|
4543
4578
|
return {
|
|
4544
4579
|
c() {
|
|
4545
|
-
t =
|
|
4580
|
+
t = C("div"), r = C("casino-calendar-daily-details"), d(r, "dailybackground", n = /*calendarCollections*/
|
|
4546
4581
|
e[6][
|
|
4547
4582
|
/*selectedIndex*/
|
|
4548
4583
|
e[7]
|
|
@@ -4550,7 +4585,7 @@ function Ht(e) {
|
|
|
4550
4585
|
e[6][
|
|
4551
4586
|
/*selectedIndex*/
|
|
4552
4587
|
e[7]
|
|
4553
|
-
].dailyButtonTitle), d(r, "dailyday",
|
|
4588
|
+
].dailyButtonTitle), d(r, "dailyday", o = /*calendarCollections*/
|
|
4554
4589
|
e[6][
|
|
4555
4590
|
/*selectedIndex*/
|
|
4556
4591
|
e[7]
|
|
@@ -4558,7 +4593,7 @@ function Ht(e) {
|
|
|
4558
4593
|
e[6][
|
|
4559
4594
|
/*selectedIndex*/
|
|
4560
4595
|
e[7]
|
|
4561
|
-
].dailyDescription), d(r, "dailyicon",
|
|
4596
|
+
].dailyDescription), d(r, "dailyicon", s = /*calendarCollections*/
|
|
4562
4597
|
e[6][
|
|
4563
4598
|
/*selectedIndex*/
|
|
4564
4599
|
e[7]
|
|
@@ -4608,21 +4643,21 @@ function Ht(e) {
|
|
|
4608
4643
|
/*selectedIndex*/
|
|
4609
4644
|
u[7]
|
|
4610
4645
|
].dailyButtonTitle) && d(r, "dailybuttontitle", i), h & /*calendarCollections, selectedIndex*/
|
|
4611
|
-
192 &&
|
|
4646
|
+
192 && o !== (o = /*calendarCollections*/
|
|
4612
4647
|
u[6][
|
|
4613
4648
|
/*selectedIndex*/
|
|
4614
4649
|
u[7]
|
|
4615
|
-
].dailyDay) && d(r, "dailyday",
|
|
4650
|
+
].dailyDay) && d(r, "dailyday", o), h & /*calendarCollections, selectedIndex*/
|
|
4616
4651
|
192 && a !== (a = /*calendarCollections*/
|
|
4617
4652
|
u[6][
|
|
4618
4653
|
/*selectedIndex*/
|
|
4619
4654
|
u[7]
|
|
4620
4655
|
].dailyDescription) && d(r, "dailydescription", a), h & /*calendarCollections, selectedIndex*/
|
|
4621
|
-
192 &&
|
|
4656
|
+
192 && s !== (s = /*calendarCollections*/
|
|
4622
4657
|
u[6][
|
|
4623
4658
|
/*selectedIndex*/
|
|
4624
4659
|
u[7]
|
|
4625
|
-
].dailyIcon) && d(r, "dailyicon",
|
|
4660
|
+
].dailyIcon) && d(r, "dailyicon", s), h & /*calendarCollections, selectedIndex*/
|
|
4626
4661
|
192 && l !== (l = /*calendarCollections*/
|
|
4627
4662
|
u[6][
|
|
4628
4663
|
/*selectedIndex*/
|
|
@@ -4664,81 +4699,81 @@ function Ht(e) {
|
|
|
4664
4699
|
}
|
|
4665
4700
|
};
|
|
4666
4701
|
}
|
|
4667
|
-
function
|
|
4702
|
+
function Ki(e) {
|
|
4668
4703
|
let t;
|
|
4669
|
-
function r(
|
|
4704
|
+
function r(o, a) {
|
|
4670
4705
|
if (
|
|
4671
4706
|
/*hasErrors*/
|
|
4672
|
-
|
|
4707
|
+
o[9]
|
|
4673
4708
|
)
|
|
4674
|
-
return
|
|
4709
|
+
return Yi;
|
|
4675
4710
|
if (
|
|
4676
4711
|
/*isLoading*/
|
|
4677
|
-
|
|
4712
|
+
o[8]
|
|
4678
4713
|
)
|
|
4679
|
-
return
|
|
4714
|
+
return qi;
|
|
4680
4715
|
if (
|
|
4681
4716
|
/*calendarCollections*/
|
|
4682
|
-
|
|
4717
|
+
o[6]?.length
|
|
4683
4718
|
)
|
|
4684
|
-
return
|
|
4719
|
+
return Ji;
|
|
4685
4720
|
}
|
|
4686
4721
|
let n = r(e), i = n && n(e);
|
|
4687
4722
|
return {
|
|
4688
4723
|
c() {
|
|
4689
|
-
t =
|
|
4724
|
+
t = C("div"), i && i.c(), R(t, "class", "svelte-5u3c97");
|
|
4690
4725
|
},
|
|
4691
|
-
m(
|
|
4692
|
-
G(
|
|
4726
|
+
m(o, a) {
|
|
4727
|
+
G(o, t, a), i && i.m(t, null), e[16](t);
|
|
4693
4728
|
},
|
|
4694
|
-
p(
|
|
4695
|
-
n === (n = r(
|
|
4729
|
+
p(o, [a]) {
|
|
4730
|
+
n === (n = r(o)) && i ? i.p(o, a) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
4696
4731
|
},
|
|
4697
4732
|
i: T,
|
|
4698
4733
|
o: T,
|
|
4699
|
-
d(
|
|
4700
|
-
|
|
4734
|
+
d(o) {
|
|
4735
|
+
o && $(t), i && i.d(), e[16](null);
|
|
4701
4736
|
}
|
|
4702
4737
|
};
|
|
4703
4738
|
}
|
|
4704
|
-
function
|
|
4739
|
+
function eo(e, t, r) {
|
|
4705
4740
|
let n;
|
|
4706
|
-
|
|
4707
|
-
let { cmsendpoint: i = "" } = t, { env:
|
|
4741
|
+
yr(e, ji, (p) => r(12, n = p));
|
|
4742
|
+
let { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, { mbsource: f } = t, c, y, v = 0, g = !0, w = !1, L = !1, P = window.navigator.userAgent, S = !1;
|
|
4708
4743
|
const D = () => {
|
|
4709
|
-
|
|
4744
|
+
Zi(s);
|
|
4710
4745
|
};
|
|
4711
|
-
Object.keys(
|
|
4712
|
-
|
|
4746
|
+
Object.keys(Bt).forEach((p) => {
|
|
4747
|
+
Ht(p, Bt[p]);
|
|
4713
4748
|
});
|
|
4714
|
-
const
|
|
4749
|
+
const O = () => {
|
|
4715
4750
|
let p = h;
|
|
4716
4751
|
if (p)
|
|
4717
4752
|
return fetch(p).then((H) => H.json()).then((H) => {
|
|
4718
4753
|
Object.keys(H).forEach((N) => {
|
|
4719
|
-
|
|
4754
|
+
Ht(N, H[N]);
|
|
4720
4755
|
});
|
|
4721
4756
|
}).catch((H) => {
|
|
4722
4757
|
console.log(H);
|
|
4723
4758
|
});
|
|
4724
4759
|
}, j = () => {
|
|
4725
|
-
r(8,
|
|
4726
|
-
let p = new URL(`${i}/${
|
|
4727
|
-
p.searchParams.append("userRoles", a), p.searchParams.append("env",
|
|
4728
|
-
let H =
|
|
4760
|
+
r(8, g = !0);
|
|
4761
|
+
let p = new URL(`${i}/${s}/daily-calendar`);
|
|
4762
|
+
p.searchParams.append("userRoles", a), p.searchParams.append("env", o);
|
|
4763
|
+
let H = Vi(P);
|
|
4729
4764
|
H && (H === "PC" ? p.searchParams.append("device", "dk") : H === "iPad" || H === "iPhone" ? p.searchParams.append("device", "ios") : p.searchParams.append("device", "mtWeb")), fetch(p.href).then((N) => N.json()).then((N) => {
|
|
4730
4765
|
r(6, y = N);
|
|
4731
4766
|
}).catch((N) => {
|
|
4732
4767
|
console.log(N), r(9, w = !0);
|
|
4733
4768
|
}).finally(() => {
|
|
4734
|
-
ue(), r(8,
|
|
4769
|
+
ue(), r(8, g = !1);
|
|
4735
4770
|
});
|
|
4736
4771
|
}, ue = () => {
|
|
4737
|
-
const p =
|
|
4772
|
+
const p = c.getRootNode().host;
|
|
4738
4773
|
p.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: p } }));
|
|
4739
|
-
},
|
|
4774
|
+
}, dr = () => {
|
|
4740
4775
|
j();
|
|
4741
|
-
},
|
|
4776
|
+
}, rt = (p) => {
|
|
4742
4777
|
p.data && p.data.type == "OpenCalendar" && (r(7, v = p.data.index), r(11, S = !0), window.postMessage(
|
|
4743
4778
|
{
|
|
4744
4779
|
type: "ShowModal",
|
|
@@ -4751,52 +4786,52 @@ function Ji(e, t, r) {
|
|
|
4751
4786
|
data: y[v]?.dailyEvents
|
|
4752
4787
|
})), p.data && p.data.type == "ModalClosed" && r(11, S = !1);
|
|
4753
4788
|
};
|
|
4754
|
-
|
|
4755
|
-
window.removeEventListener("message",
|
|
4789
|
+
Br(() => (window.addEventListener("message", rt, !1), ki(P) && r(10, L = !0), () => {
|
|
4790
|
+
window.removeEventListener("message", rt);
|
|
4756
4791
|
}));
|
|
4757
|
-
function
|
|
4758
|
-
|
|
4759
|
-
|
|
4792
|
+
function pr(p) {
|
|
4793
|
+
Me[p ? "unshift" : "push"](() => {
|
|
4794
|
+
c = p, r(5, c);
|
|
4760
4795
|
});
|
|
4761
4796
|
}
|
|
4762
4797
|
return e.$$set = (p) => {
|
|
4763
|
-
"cmsendpoint" in p && r(13, i = p.cmsendpoint), "env" in p && r(14,
|
|
4798
|
+
"cmsendpoint" in p && r(13, i = p.cmsendpoint), "env" in p && r(14, o = p.env), "userroles" in p && r(15, a = p.userroles), "lang" in p && r(0, s = p.lang), "clientstyling" in p && r(1, l = p.clientstyling), "clientstylingurl" in p && r(2, u = p.clientstylingurl), "translationurl" in p && r(3, h = p.translationurl), "mbsource" in p && r(4, f = p.mbsource);
|
|
4764
4799
|
}, e.$$.update = () => {
|
|
4765
4800
|
e.$$.dirty & /*cmsendpoint, lang, env, userroles*/
|
|
4766
|
-
57345 && i &&
|
|
4767
|
-
34 && l &&
|
|
4768
|
-
36 && u &&
|
|
4769
|
-
48 &&
|
|
4770
|
-
1 &&
|
|
4771
|
-
9 &&
|
|
4801
|
+
57345 && i && s && o && a && dr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4802
|
+
34 && l && c && Xi(c, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4803
|
+
36 && u && c && Wi(c, u), e.$$.dirty & /*customStylingContainer, mbsource*/
|
|
4804
|
+
48 && c && zi(c, `${f}.Style`), e.$$.dirty & /*lang*/
|
|
4805
|
+
1 && s && D(), e.$$.dirty & /*lang, translationurl*/
|
|
4806
|
+
9 && s && h && O();
|
|
4772
4807
|
}, [
|
|
4773
|
-
|
|
4808
|
+
s,
|
|
4774
4809
|
l,
|
|
4775
4810
|
u,
|
|
4776
4811
|
h,
|
|
4777
|
-
c,
|
|
4778
4812
|
f,
|
|
4813
|
+
c,
|
|
4779
4814
|
y,
|
|
4780
4815
|
v,
|
|
4781
|
-
|
|
4816
|
+
g,
|
|
4782
4817
|
w,
|
|
4783
4818
|
L,
|
|
4784
4819
|
S,
|
|
4785
4820
|
n,
|
|
4786
4821
|
i,
|
|
4787
|
-
|
|
4822
|
+
o,
|
|
4788
4823
|
a,
|
|
4789
|
-
|
|
4824
|
+
pr
|
|
4790
4825
|
];
|
|
4791
4826
|
}
|
|
4792
|
-
class
|
|
4827
|
+
class to extends Dr {
|
|
4793
4828
|
constructor(t) {
|
|
4794
|
-
super(),
|
|
4829
|
+
super(), Rr(
|
|
4795
4830
|
this,
|
|
4796
4831
|
t,
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4832
|
+
eo,
|
|
4833
|
+
Ki,
|
|
4834
|
+
Ct,
|
|
4800
4835
|
{
|
|
4801
4836
|
cmsendpoint: 13,
|
|
4802
4837
|
env: 14,
|
|
@@ -4807,7 +4842,7 @@ class qi extends Nr {
|
|
|
4807
4842
|
translationurl: 3,
|
|
4808
4843
|
mbsource: 4
|
|
4809
4844
|
},
|
|
4810
|
-
|
|
4845
|
+
Qi
|
|
4811
4846
|
);
|
|
4812
4847
|
}
|
|
4813
4848
|
get cmsendpoint() {
|
|
@@ -4859,47 +4894,47 @@ class qi extends Nr {
|
|
|
4859
4894
|
this.$$set({ mbsource: t }), B();
|
|
4860
4895
|
}
|
|
4861
4896
|
}
|
|
4862
|
-
|
|
4897
|
+
$r(to, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4863
4898
|
export {
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4899
|
+
K as $,
|
|
4900
|
+
uo as A,
|
|
4901
|
+
xr as B,
|
|
4902
|
+
Me as C,
|
|
4903
|
+
ro as D,
|
|
4904
|
+
d as E,
|
|
4905
|
+
ao as F,
|
|
4906
|
+
lo as G,
|
|
4907
|
+
ho as H,
|
|
4908
|
+
ji as I,
|
|
4909
|
+
Xi as J,
|
|
4910
|
+
Wi as K,
|
|
4911
|
+
zi as L,
|
|
4912
|
+
to as M,
|
|
4913
|
+
Dr as S,
|
|
4914
|
+
ur as a,
|
|
4915
|
+
gr as b,
|
|
4916
|
+
$r as c,
|
|
4917
|
+
$ as d,
|
|
4918
|
+
Cr as e,
|
|
4884
4919
|
B as f,
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4920
|
+
co as g,
|
|
4921
|
+
G as h,
|
|
4922
|
+
Rr as i,
|
|
4923
|
+
C as j,
|
|
4924
|
+
yr as k,
|
|
4925
|
+
ki as l,
|
|
4926
|
+
wr as m,
|
|
4927
|
+
T as n,
|
|
4928
|
+
Br as o,
|
|
4929
|
+
_e as p,
|
|
4930
|
+
Mt as q,
|
|
4931
|
+
R as r,
|
|
4932
|
+
Ct as s,
|
|
4933
|
+
fo as t,
|
|
4934
|
+
no as u,
|
|
4935
|
+
ot as v,
|
|
4936
|
+
Er as w,
|
|
4937
|
+
oo as x,
|
|
4938
|
+
so as y,
|
|
4939
|
+
io as z
|
|
4905
4940
|
};
|