@everymatrix/player-consents 1.76.0 → 1.76.3
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/{GeneralAnimationLoading-ZTNd0X9B.js → GeneralAnimationLoading-CfVy1Wef.js} +30 -30
- package/components/{GeneralAnimationLoading-CAP3Fch3.js → GeneralAnimationLoading-DXjp5XQP.js} +19 -19
- package/components/GeneralAnimationLoading-acwReDLO.cjs +1 -0
- package/components/{PlayerConsents-S9uer3_U.js → PlayerConsents-BnndxanX.js} +744 -773
- package/components/PlayerConsents-CTCXDjy8.cjs +16 -0
- package/components/{PlayerConsents-Cqbn9bMP.js → PlayerConsents-qUW5xtcz.js} +624 -599
- package/es2015/player-consents.cjs +1 -1
- package/es2015/player-consents.js +1 -1
- package/esnext/player-consents.js +1 -1
- package/package.json +1 -1
- package/components/GeneralAnimationLoading-Sk__cGd0.cjs +0 -1
- package/components/PlayerConsents-DrhcDBLh.cjs +0 -3
|
@@ -1,81 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var Lr = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var st = (e, t, r) => t in e ? zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Z = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
Lr.call(t, r) && st(e, r, t[r]);
|
|
8
|
-
if (at)
|
|
9
|
-
for (var r of at(t))
|
|
10
|
-
Rr.call(t, r) && st(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, lt = (e, t) => Ir(e, jr(t));
|
|
13
|
-
var de = (e, t, r) => new Promise((n, i) => {
|
|
14
|
-
var o = (h) => {
|
|
15
|
-
try {
|
|
16
|
-
s(r.next(h));
|
|
17
|
-
} catch (u) {
|
|
18
|
-
i(u);
|
|
19
|
-
}
|
|
20
|
-
}, a = (h) => {
|
|
21
|
-
try {
|
|
22
|
-
s(r.throw(h));
|
|
23
|
-
} catch (u) {
|
|
24
|
-
i(u);
|
|
25
|
-
}
|
|
26
|
-
}, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
|
|
27
|
-
s((r = r.apply(e, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import { n as W, s as $e, a as Ur, r as Lt, i as Dr, c as Rt, S as Ut, b as Dt, d as j, e as L, f as S, g as ct, h as E, j as X, k as Gr, l as A, m as Fr, o as Vr, p as ut, q as Y, t as _e, u as ye, v as ee, w as et, x as pe, y as G, z as Xr, H as Gt, A as qr, B as Wr, C as Zr, D as Jr } from "./GeneralAnimationLoading-CAP3Fch3.js";
|
|
30
|
-
const $ = [];
|
|
31
|
-
function Qr(e, t) {
|
|
1
|
+
import { n as q, s as Nr, r as Pt, a as Je, i as Ar, c as Bt, S as zt, b as Ot, d as nt, e as E, f as j, g as S, h as L, j as X, k as Hr, l as A, m as Pr, o as Br, p as zr, q as it, t as Or, u as Ir, v as jr, w as K, x as Qe, y as G, z as Lr, A as he, B as pe, C as ge, D as J, H as It } from "./GeneralAnimationLoading-CfVy1Wef.js";
|
|
2
|
+
const Y = [];
|
|
3
|
+
function Rr(e, t) {
|
|
32
4
|
return {
|
|
33
|
-
subscribe:
|
|
5
|
+
subscribe: we(e, t).subscribe
|
|
34
6
|
};
|
|
35
7
|
}
|
|
36
|
-
function
|
|
8
|
+
function we(e, t = q) {
|
|
37
9
|
let r;
|
|
38
10
|
const n = /* @__PURE__ */ new Set();
|
|
39
11
|
function i(s) {
|
|
40
|
-
if (
|
|
41
|
-
const h =
|
|
12
|
+
if (Je(e, s) && (e = s, r)) {
|
|
13
|
+
const h = !Y.length;
|
|
42
14
|
for (const u of n)
|
|
43
|
-
u[1](),
|
|
15
|
+
u[1](), Y.push(u, e);
|
|
44
16
|
if (h) {
|
|
45
|
-
for (let u = 0; u <
|
|
46
|
-
|
|
47
|
-
|
|
17
|
+
for (let u = 0; u < Y.length; u += 2)
|
|
18
|
+
Y[u][0](Y[u + 1]);
|
|
19
|
+
Y.length = 0;
|
|
48
20
|
}
|
|
49
21
|
}
|
|
50
22
|
}
|
|
51
23
|
function o(s) {
|
|
52
24
|
i(s(e));
|
|
53
25
|
}
|
|
54
|
-
function a(s, h =
|
|
26
|
+
function a(s, h = q) {
|
|
55
27
|
const u = [s, h];
|
|
56
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
28
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || q), s(e), () => {
|
|
57
29
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
58
30
|
};
|
|
59
31
|
}
|
|
60
32
|
return { set: i, update: o, subscribe: a };
|
|
61
33
|
}
|
|
62
|
-
function
|
|
34
|
+
function ne(e, t, r) {
|
|
63
35
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
64
36
|
if (!i.every(Boolean))
|
|
65
37
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
66
38
|
const o = t.length < 2;
|
|
67
|
-
return
|
|
39
|
+
return Rr(r, (a, s) => {
|
|
68
40
|
let h = !1;
|
|
69
41
|
const u = [];
|
|
70
|
-
let l = 0, d =
|
|
42
|
+
let l = 0, d = q;
|
|
71
43
|
const m = () => {
|
|
72
44
|
if (l)
|
|
73
45
|
return;
|
|
74
46
|
d();
|
|
75
47
|
const f = t(n ? u[0] : u, a, s);
|
|
76
|
-
o ? a(f) : d =
|
|
48
|
+
o ? a(f) : d = Ar(f) ? f : q;
|
|
77
49
|
}, v = i.map(
|
|
78
|
-
(f, p) =>
|
|
50
|
+
(f, p) => Nr(
|
|
79
51
|
f,
|
|
80
52
|
(C) => {
|
|
81
53
|
u[p] = C, l &= ~(1 << p), h && m();
|
|
@@ -86,112 +58,126 @@ function oe(e, t, r) {
|
|
|
86
58
|
)
|
|
87
59
|
);
|
|
88
60
|
return h = !0, m(), function() {
|
|
89
|
-
|
|
61
|
+
Pt(v), d(), h = !1;
|
|
90
62
|
};
|
|
91
63
|
});
|
|
92
64
|
}
|
|
93
|
-
function
|
|
94
|
-
return e
|
|
65
|
+
function Ur(e) {
|
|
66
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
95
67
|
}
|
|
96
|
-
var
|
|
97
|
-
return
|
|
68
|
+
var Dr = function(t) {
|
|
69
|
+
return Gr(t) && !Fr(t);
|
|
98
70
|
};
|
|
99
|
-
function
|
|
71
|
+
function Gr(e) {
|
|
100
72
|
return !!e && typeof e == "object";
|
|
101
73
|
}
|
|
102
|
-
function
|
|
74
|
+
function Fr(e) {
|
|
103
75
|
var t = Object.prototype.toString.call(e);
|
|
104
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
76
|
+
return t === "[object RegExp]" || t === "[object Date]" || qr(e);
|
|
105
77
|
}
|
|
106
|
-
var
|
|
107
|
-
function
|
|
108
|
-
return e.$$typeof ===
|
|
78
|
+
var Vr = typeof Symbol == "function" && Symbol.for, Xr = Vr ? Symbol.for("react.element") : 60103;
|
|
79
|
+
function qr(e) {
|
|
80
|
+
return e.$$typeof === Xr;
|
|
109
81
|
}
|
|
110
|
-
function
|
|
82
|
+
function Wr(e) {
|
|
111
83
|
return Array.isArray(e) ? [] : {};
|
|
112
84
|
}
|
|
113
|
-
function
|
|
114
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
85
|
+
function de(e, t) {
|
|
86
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $(Wr(e), e, t) : e;
|
|
115
87
|
}
|
|
116
|
-
function
|
|
88
|
+
function Zr(e, t, r) {
|
|
117
89
|
return e.concat(t).map(function(n) {
|
|
118
|
-
return
|
|
90
|
+
return de(n, r);
|
|
119
91
|
});
|
|
120
92
|
}
|
|
121
|
-
function
|
|
93
|
+
function Jr(e, t) {
|
|
122
94
|
if (!t.customMerge)
|
|
123
|
-
return
|
|
95
|
+
return $;
|
|
124
96
|
var r = t.customMerge(e);
|
|
125
|
-
return typeof r == "function" ? r :
|
|
97
|
+
return typeof r == "function" ? r : $;
|
|
126
98
|
}
|
|
127
|
-
function
|
|
99
|
+
function Qr(e) {
|
|
128
100
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
129
101
|
return Object.propertyIsEnumerable.call(e, t);
|
|
130
102
|
}) : [];
|
|
131
103
|
}
|
|
132
|
-
function
|
|
133
|
-
return Object.keys(e).concat(
|
|
104
|
+
function ot(e) {
|
|
105
|
+
return Object.keys(e).concat(Qr(e));
|
|
134
106
|
}
|
|
135
|
-
function
|
|
107
|
+
function jt(e, t) {
|
|
136
108
|
try {
|
|
137
109
|
return t in e;
|
|
138
|
-
} catch
|
|
110
|
+
} catch {
|
|
139
111
|
return !1;
|
|
140
112
|
}
|
|
141
113
|
}
|
|
142
|
-
function
|
|
143
|
-
return
|
|
114
|
+
function Yr(e, t) {
|
|
115
|
+
return jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
144
116
|
}
|
|
145
|
-
function
|
|
117
|
+
function Kr(e, t, r) {
|
|
146
118
|
var n = {};
|
|
147
|
-
return r.isMergeableObject(e) &&
|
|
148
|
-
n[i] =
|
|
149
|
-
}),
|
|
150
|
-
|
|
119
|
+
return r.isMergeableObject(e) && ot(e).forEach(function(i) {
|
|
120
|
+
n[i] = de(e[i], r);
|
|
121
|
+
}), ot(t).forEach(function(i) {
|
|
122
|
+
Yr(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jr(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
|
|
151
123
|
}), n;
|
|
152
124
|
}
|
|
153
|
-
function
|
|
154
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
125
|
+
function $(e, t, r) {
|
|
126
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Zr, r.isMergeableObject = r.isMergeableObject || Dr, r.cloneUnlessOtherwiseSpecified = de;
|
|
155
127
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
156
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
128
|
+
return o ? n ? r.arrayMerge(e, t, r) : Kr(e, t, r) : de(t, r);
|
|
157
129
|
}
|
|
158
|
-
|
|
130
|
+
$.all = function(t, r) {
|
|
159
131
|
if (!Array.isArray(t))
|
|
160
132
|
throw new Error("first argument should be an array");
|
|
161
133
|
return t.reduce(function(n, i) {
|
|
162
|
-
return
|
|
134
|
+
return $(n, i, r);
|
|
163
135
|
}, {});
|
|
164
136
|
};
|
|
165
|
-
var
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
137
|
+
var $r = $, en = $r;
|
|
138
|
+
const tn = /* @__PURE__ */ Ur(en);
|
|
139
|
+
/*! *****************************************************************************
|
|
140
|
+
Copyright (c) Microsoft Corporation.
|
|
141
|
+
|
|
142
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
143
|
+
purpose with or without fee is hereby granted.
|
|
144
|
+
|
|
145
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
146
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
147
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
148
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
149
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
150
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
151
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
152
|
+
***************************************************************************** */
|
|
153
|
+
var Ue = function(e, t) {
|
|
154
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
169
155
|
r.__proto__ = n;
|
|
170
156
|
} || function(r, n) {
|
|
171
157
|
for (var i in n)
|
|
172
158
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
173
|
-
},
|
|
159
|
+
}, Ue(e, t);
|
|
174
160
|
};
|
|
175
|
-
function
|
|
161
|
+
function Ne(e, t) {
|
|
176
162
|
if (typeof t != "function" && t !== null)
|
|
177
163
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
178
|
-
|
|
164
|
+
Ue(e, t);
|
|
179
165
|
function r() {
|
|
180
166
|
this.constructor = e;
|
|
181
167
|
}
|
|
182
168
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
183
169
|
}
|
|
184
|
-
var
|
|
185
|
-
return
|
|
170
|
+
var H = function() {
|
|
171
|
+
return H = Object.assign || function(t) {
|
|
186
172
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
187
173
|
r = arguments[n];
|
|
188
174
|
for (var o in r)
|
|
189
175
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
190
176
|
}
|
|
191
177
|
return t;
|
|
192
|
-
},
|
|
178
|
+
}, H.apply(this, arguments);
|
|
193
179
|
};
|
|
194
|
-
function
|
|
180
|
+
function rn(e, t) {
|
|
195
181
|
var r = {};
|
|
196
182
|
for (var n in e)
|
|
197
183
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -200,43 +186,46 @@ function pn(e, t) {
|
|
|
200
186
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
201
187
|
return r;
|
|
202
188
|
}
|
|
203
|
-
function
|
|
204
|
-
if (
|
|
189
|
+
function ze(e, t, r) {
|
|
190
|
+
if (arguments.length === 2)
|
|
205
191
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
206
192
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
207
|
-
return e.concat(o ||
|
|
193
|
+
return e.concat(o || t);
|
|
208
194
|
}
|
|
209
|
-
function
|
|
210
|
-
var r = t && t.cache ? t.cache :
|
|
195
|
+
function Oe(e, t) {
|
|
196
|
+
var r = t && t.cache ? t.cache : un, n = t && t.serializer ? t.serializer : ln, i = t && t.strategy ? t.strategy : on;
|
|
211
197
|
return i(e, {
|
|
212
198
|
cache: r,
|
|
213
199
|
serializer: n
|
|
214
200
|
});
|
|
215
201
|
}
|
|
216
|
-
function
|
|
202
|
+
function nn(e) {
|
|
217
203
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
218
204
|
}
|
|
219
|
-
function
|
|
220
|
-
var i =
|
|
221
|
-
return typeof o
|
|
205
|
+
function Lt(e, t, r, n) {
|
|
206
|
+
var i = nn(n) ? n : r(n), o = t.get(i);
|
|
207
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
222
208
|
}
|
|
223
|
-
function
|
|
209
|
+
function Rt(e, t, r) {
|
|
224
210
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
225
|
-
return typeof o
|
|
211
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
226
212
|
}
|
|
227
|
-
function
|
|
213
|
+
function Ye(e, t, r, n, i) {
|
|
228
214
|
return r.bind(t, e, n, i);
|
|
229
215
|
}
|
|
230
|
-
function
|
|
231
|
-
var r = e.length === 1 ?
|
|
232
|
-
return
|
|
216
|
+
function on(e, t) {
|
|
217
|
+
var r = e.length === 1 ? Lt : Rt;
|
|
218
|
+
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
233
219
|
}
|
|
234
|
-
function
|
|
235
|
-
return
|
|
220
|
+
function an(e, t) {
|
|
221
|
+
return Ye(e, this, Rt, t.cache.create(), t.serializer);
|
|
222
|
+
}
|
|
223
|
+
function sn(e, t) {
|
|
224
|
+
return Ye(e, this, Lt, t.cache.create(), t.serializer);
|
|
236
225
|
}
|
|
237
|
-
var
|
|
226
|
+
var ln = function() {
|
|
238
227
|
return JSON.stringify(arguments);
|
|
239
|
-
},
|
|
228
|
+
}, cn = (
|
|
240
229
|
/** @class */
|
|
241
230
|
function() {
|
|
242
231
|
function e() {
|
|
@@ -248,71 +237,62 @@ var vn = function() {
|
|
|
248
237
|
this.cache[t] = r;
|
|
249
238
|
}, e;
|
|
250
239
|
}()
|
|
251
|
-
),
|
|
240
|
+
), un = {
|
|
252
241
|
create: function() {
|
|
253
|
-
return new
|
|
242
|
+
return new cn();
|
|
254
243
|
}
|
|
255
|
-
},
|
|
256
|
-
variadic:
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
260
|
-
r = arguments[n];
|
|
261
|
-
for (var o in r)
|
|
262
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
263
|
-
}
|
|
264
|
-
return t;
|
|
265
|
-
}, Ne.apply(this, arguments);
|
|
266
|
-
};
|
|
267
|
-
var w;
|
|
244
|
+
}, Ie = {
|
|
245
|
+
variadic: an,
|
|
246
|
+
monadic: sn
|
|
247
|
+
}, w;
|
|
268
248
|
(function(e) {
|
|
269
249
|
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";
|
|
270
250
|
})(w || (w = {}));
|
|
271
|
-
var
|
|
251
|
+
var B;
|
|
272
252
|
(function(e) {
|
|
273
253
|
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";
|
|
274
|
-
})(
|
|
275
|
-
var
|
|
254
|
+
})(B || (B = {}));
|
|
255
|
+
var ee;
|
|
276
256
|
(function(e) {
|
|
277
257
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
278
|
-
})(
|
|
279
|
-
function
|
|
280
|
-
return e.type ===
|
|
258
|
+
})(ee || (ee = {}));
|
|
259
|
+
function at(e) {
|
|
260
|
+
return e.type === B.literal;
|
|
281
261
|
}
|
|
282
|
-
function
|
|
283
|
-
return e.type ===
|
|
262
|
+
function hn(e) {
|
|
263
|
+
return e.type === B.argument;
|
|
284
264
|
}
|
|
285
|
-
function
|
|
286
|
-
return e.type ===
|
|
265
|
+
function Ut(e) {
|
|
266
|
+
return e.type === B.number;
|
|
287
267
|
}
|
|
288
|
-
function
|
|
289
|
-
return e.type ===
|
|
268
|
+
function Dt(e) {
|
|
269
|
+
return e.type === B.date;
|
|
290
270
|
}
|
|
291
|
-
function
|
|
292
|
-
return e.type ===
|
|
271
|
+
function Gt(e) {
|
|
272
|
+
return e.type === B.time;
|
|
293
273
|
}
|
|
294
|
-
function
|
|
295
|
-
return e.type ===
|
|
274
|
+
function Ft(e) {
|
|
275
|
+
return e.type === B.select;
|
|
296
276
|
}
|
|
297
|
-
function
|
|
298
|
-
return e.type ===
|
|
277
|
+
function Vt(e) {
|
|
278
|
+
return e.type === B.plural;
|
|
299
279
|
}
|
|
300
|
-
function
|
|
301
|
-
return e.type ===
|
|
280
|
+
function dn(e) {
|
|
281
|
+
return e.type === B.pound;
|
|
302
282
|
}
|
|
303
|
-
function
|
|
304
|
-
return e.type ===
|
|
283
|
+
function Xt(e) {
|
|
284
|
+
return e.type === B.tag;
|
|
305
285
|
}
|
|
306
|
-
function
|
|
307
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
286
|
+
function qt(e) {
|
|
287
|
+
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
308
288
|
}
|
|
309
|
-
function
|
|
310
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
289
|
+
function De(e) {
|
|
290
|
+
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
311
291
|
}
|
|
312
|
-
var
|
|
313
|
-
function
|
|
292
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mn = /(?:[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;
|
|
293
|
+
function pn(e) {
|
|
314
294
|
var t = {};
|
|
315
|
-
return e.replace(
|
|
295
|
+
return e.replace(mn, function(r) {
|
|
316
296
|
var n = r.length;
|
|
317
297
|
switch (r[0]) {
|
|
318
298
|
case "G":
|
|
@@ -401,21 +381,11 @@ function xn(e) {
|
|
|
401
381
|
return "";
|
|
402
382
|
}), t;
|
|
403
383
|
}
|
|
404
|
-
var
|
|
405
|
-
|
|
406
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
407
|
-
r = arguments[n];
|
|
408
|
-
for (var o in r)
|
|
409
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
410
|
-
}
|
|
411
|
-
return t;
|
|
412
|
-
}, z.apply(this, arguments);
|
|
413
|
-
};
|
|
414
|
-
var Tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
415
|
-
function Mn(e) {
|
|
384
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
385
|
+
function fn(e) {
|
|
416
386
|
if (e.length === 0)
|
|
417
387
|
throw new Error("Number skeleton cannot be empty");
|
|
418
|
-
for (var t = e.split(
|
|
388
|
+
for (var t = e.split(gn).filter(function(m) {
|
|
419
389
|
return m.length > 0;
|
|
420
390
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
421
391
|
var o = i[n], a = o.split("/");
|
|
@@ -430,17 +400,17 @@ function Mn(e) {
|
|
|
430
400
|
}
|
|
431
401
|
return r;
|
|
432
402
|
}
|
|
433
|
-
function
|
|
403
|
+
function _n(e) {
|
|
434
404
|
return e.replace(/^(.*?)-/, "");
|
|
435
405
|
}
|
|
436
|
-
var
|
|
437
|
-
function
|
|
406
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Jt = /^(0+)$/;
|
|
407
|
+
function lt(e) {
|
|
438
408
|
var t = {};
|
|
439
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
409
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
440
410
|
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)), "";
|
|
441
411
|
}), t;
|
|
442
412
|
}
|
|
443
|
-
function
|
|
413
|
+
function Qt(e) {
|
|
444
414
|
switch (e) {
|
|
445
415
|
case "sign-auto":
|
|
446
416
|
return {
|
|
@@ -480,7 +450,7 @@ function rr(e) {
|
|
|
480
450
|
};
|
|
481
451
|
}
|
|
482
452
|
}
|
|
483
|
-
function
|
|
453
|
+
function vn(e) {
|
|
484
454
|
var t;
|
|
485
455
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
486
456
|
notation: "engineering"
|
|
@@ -488,17 +458,17 @@ function An(e) {
|
|
|
488
458
|
notation: "scientific"
|
|
489
459
|
}, e = e.slice(1)), t) {
|
|
490
460
|
var r = e.slice(0, 2);
|
|
491
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
461
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jt.test(e))
|
|
492
462
|
throw new Error("Malformed concise eng/scientific notation");
|
|
493
463
|
t.minimumIntegerDigits = e.length;
|
|
494
464
|
}
|
|
495
465
|
return t;
|
|
496
466
|
}
|
|
497
|
-
function
|
|
498
|
-
var t = {}, r =
|
|
467
|
+
function ct(e) {
|
|
468
|
+
var t = {}, r = Qt(e);
|
|
499
469
|
return r || t;
|
|
500
470
|
}
|
|
501
|
-
function
|
|
471
|
+
function kn(e) {
|
|
502
472
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
503
473
|
var i = n[r];
|
|
504
474
|
switch (i.stem) {
|
|
@@ -522,7 +492,7 @@ function Hn(e) {
|
|
|
522
492
|
continue;
|
|
523
493
|
case "measure-unit":
|
|
524
494
|
case "unit":
|
|
525
|
-
t.style = "unit", t.unit =
|
|
495
|
+
t.style = "unit", t.unit = _n(i.options[0]);
|
|
526
496
|
continue;
|
|
527
497
|
case "compact-short":
|
|
528
498
|
case "K":
|
|
@@ -533,13 +503,13 @@ function Hn(e) {
|
|
|
533
503
|
t.notation = "compact", t.compactDisplay = "long";
|
|
534
504
|
continue;
|
|
535
505
|
case "scientific":
|
|
536
|
-
t =
|
|
537
|
-
return
|
|
506
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
507
|
+
return H(H({}, h), ct(u));
|
|
538
508
|
}, {}));
|
|
539
509
|
continue;
|
|
540
510
|
case "engineering":
|
|
541
|
-
t =
|
|
542
|
-
return
|
|
511
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
512
|
+
return H(H({}, h), ct(u));
|
|
543
513
|
}, {}));
|
|
544
514
|
continue;
|
|
545
515
|
case "notation-simple":
|
|
@@ -584,7 +554,7 @@ function Hn(e) {
|
|
|
584
554
|
case "integer-width":
|
|
585
555
|
if (i.options.length > 1)
|
|
586
556
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
587
|
-
i.options[0].replace(
|
|
557
|
+
i.options[0].replace(yn, function(h, u, l, d, m, v) {
|
|
588
558
|
if (u)
|
|
589
559
|
t.minimumIntegerDigits = l.length;
|
|
590
560
|
else {
|
|
@@ -597,32 +567,32 @@ function Hn(e) {
|
|
|
597
567
|
});
|
|
598
568
|
continue;
|
|
599
569
|
}
|
|
600
|
-
if (
|
|
570
|
+
if (Jt.test(i.stem)) {
|
|
601
571
|
t.minimumIntegerDigits = i.stem.length;
|
|
602
572
|
continue;
|
|
603
573
|
}
|
|
604
|
-
if (
|
|
574
|
+
if (st.test(i.stem)) {
|
|
605
575
|
if (i.options.length > 1)
|
|
606
576
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
607
|
-
i.stem.replace(
|
|
577
|
+
i.stem.replace(st, function(h, u, l, d, m, v) {
|
|
608
578
|
return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && v ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + v.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
609
579
|
});
|
|
610
580
|
var o = i.options[0];
|
|
611
|
-
o === "w" ? t =
|
|
581
|
+
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), lt(o)));
|
|
612
582
|
continue;
|
|
613
583
|
}
|
|
614
|
-
if (
|
|
615
|
-
t =
|
|
584
|
+
if (Zt.test(i.stem)) {
|
|
585
|
+
t = H(H({}, t), lt(i.stem));
|
|
616
586
|
continue;
|
|
617
587
|
}
|
|
618
|
-
var a =
|
|
619
|
-
a && (t =
|
|
620
|
-
var s =
|
|
621
|
-
s && (t =
|
|
588
|
+
var a = Qt(i.stem);
|
|
589
|
+
a && (t = H(H({}, t), a));
|
|
590
|
+
var s = vn(i.stem);
|
|
591
|
+
s && (t = H(H({}, t), s));
|
|
622
592
|
}
|
|
623
593
|
return t;
|
|
624
594
|
}
|
|
625
|
-
var
|
|
595
|
+
var Ce = {
|
|
626
596
|
"001": [
|
|
627
597
|
"H",
|
|
628
598
|
"h"
|
|
@@ -2037,13 +2007,13 @@ var Te = {
|
|
|
2037
2007
|
"h"
|
|
2038
2008
|
]
|
|
2039
2009
|
};
|
|
2040
|
-
function
|
|
2010
|
+
function bn(e, t) {
|
|
2041
2011
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2042
2012
|
var i = e.charAt(n);
|
|
2043
2013
|
if (i === "j") {
|
|
2044
2014
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2045
2015
|
o++, n++;
|
|
2046
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2016
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = En(t);
|
|
2047
2017
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2048
2018
|
r += h;
|
|
2049
2019
|
for (; a-- > 0; )
|
|
@@ -2053,7 +2023,7 @@ function Pn(e, t) {
|
|
|
2053
2023
|
}
|
|
2054
2024
|
return r;
|
|
2055
2025
|
}
|
|
2056
|
-
function
|
|
2026
|
+
function En(e) {
|
|
2057
2027
|
var t = e.hourCycle;
|
|
2058
2028
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2059
2029
|
e.hourCycles && // @ts-ignore
|
|
@@ -2072,23 +2042,23 @@ function Bn(e) {
|
|
|
2072
2042
|
}
|
|
2073
2043
|
var r = e.language, n;
|
|
2074
2044
|
r !== "root" && (n = e.maximize().region);
|
|
2075
|
-
var i =
|
|
2045
|
+
var i = Ce[n || ""] || Ce[r || ""] || Ce["".concat(r, "-001")] || Ce["001"];
|
|
2076
2046
|
return i[0];
|
|
2077
2047
|
}
|
|
2078
|
-
var
|
|
2048
|
+
var je, Cn = new RegExp("^".concat(Wt.source, "*")), Sn = new RegExp("".concat(Wt.source, "*$"));
|
|
2079
2049
|
function N(e, t) {
|
|
2080
2050
|
return { start: e, end: t };
|
|
2081
2051
|
}
|
|
2082
|
-
var
|
|
2052
|
+
var xn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mn = !!String.fromCodePoint, Tn = !!Object.fromEntries, wn = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, An = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Pn = Hn ? Number.isSafeInteger : function(e) {
|
|
2083
2053
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2084
|
-
},
|
|
2054
|
+
}, Ge = !0;
|
|
2085
2055
|
try {
|
|
2086
|
-
var
|
|
2087
|
-
|
|
2088
|
-
} catch
|
|
2089
|
-
|
|
2056
|
+
var Bn = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2057
|
+
Ge = ((je = Bn.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
|
|
2058
|
+
} catch {
|
|
2059
|
+
Ge = !1;
|
|
2090
2060
|
}
|
|
2091
|
-
var
|
|
2061
|
+
var ut = xn ? (
|
|
2092
2062
|
// Native
|
|
2093
2063
|
function(t, r, n) {
|
|
2094
2064
|
return t.startsWith(r, n);
|
|
@@ -2098,7 +2068,7 @@ var ft = In ? (
|
|
|
2098
2068
|
function(t, r, n) {
|
|
2099
2069
|
return t.slice(n, n + r.length) === r;
|
|
2100
2070
|
}
|
|
2101
|
-
),
|
|
2071
|
+
), Fe = Mn ? String.fromCodePoint : (
|
|
2102
2072
|
// IE11
|
|
2103
2073
|
function() {
|
|
2104
2074
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2110,9 +2080,9 @@ var ft = In ? (
|
|
|
2110
2080
|
}
|
|
2111
2081
|
return n;
|
|
2112
2082
|
}
|
|
2113
|
-
),
|
|
2083
|
+
), ht = (
|
|
2114
2084
|
// native
|
|
2115
|
-
|
|
2085
|
+
Tn ? Object.fromEntries : (
|
|
2116
2086
|
// Ponyfill
|
|
2117
2087
|
function(t) {
|
|
2118
2088
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2122,7 +2092,7 @@ var ft = In ? (
|
|
|
2122
2092
|
return r;
|
|
2123
2093
|
}
|
|
2124
2094
|
)
|
|
2125
|
-
),
|
|
2095
|
+
), Yt = wn ? (
|
|
2126
2096
|
// Native
|
|
2127
2097
|
function(t, r) {
|
|
2128
2098
|
return t.codePointAt(r);
|
|
@@ -2136,7 +2106,7 @@ var ft = In ? (
|
|
|
2136
2106
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2137
2107
|
}
|
|
2138
2108
|
}
|
|
2139
|
-
),
|
|
2109
|
+
), zn = Nn ? (
|
|
2140
2110
|
// Native
|
|
2141
2111
|
function(t) {
|
|
2142
2112
|
return t.trimStart();
|
|
@@ -2144,9 +2114,9 @@ var ft = In ? (
|
|
|
2144
2114
|
) : (
|
|
2145
2115
|
// Ponyfill
|
|
2146
2116
|
function(t) {
|
|
2147
|
-
return t.replace(
|
|
2117
|
+
return t.replace(Cn, "");
|
|
2148
2118
|
}
|
|
2149
|
-
),
|
|
2119
|
+
), On = An ? (
|
|
2150
2120
|
// Native
|
|
2151
2121
|
function(t) {
|
|
2152
2122
|
return t.trimEnd();
|
|
@@ -2154,32 +2124,32 @@ var ft = In ? (
|
|
|
2154
2124
|
) : (
|
|
2155
2125
|
// Ponyfill
|
|
2156
2126
|
function(t) {
|
|
2157
|
-
return t.replace(
|
|
2127
|
+
return t.replace(Sn, "");
|
|
2158
2128
|
}
|
|
2159
2129
|
);
|
|
2160
|
-
function
|
|
2130
|
+
function Kt(e, t) {
|
|
2161
2131
|
return new RegExp(e, t);
|
|
2162
2132
|
}
|
|
2163
|
-
var
|
|
2164
|
-
if (
|
|
2165
|
-
var
|
|
2166
|
-
|
|
2133
|
+
var Ve;
|
|
2134
|
+
if (Ge) {
|
|
2135
|
+
var dt = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2136
|
+
Ve = function(t, r) {
|
|
2167
2137
|
var n;
|
|
2168
|
-
|
|
2169
|
-
var i =
|
|
2138
|
+
dt.lastIndex = r;
|
|
2139
|
+
var i = dt.exec(t);
|
|
2170
2140
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2171
2141
|
};
|
|
2172
2142
|
} else
|
|
2173
|
-
|
|
2143
|
+
Ve = function(t, r) {
|
|
2174
2144
|
for (var n = []; ; ) {
|
|
2175
|
-
var i =
|
|
2176
|
-
if (i === void 0 ||
|
|
2145
|
+
var i = Yt(t, r);
|
|
2146
|
+
if (i === void 0 || $t(i) || Rn(i))
|
|
2177
2147
|
break;
|
|
2178
2148
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2179
2149
|
}
|
|
2180
|
-
return
|
|
2150
|
+
return Fe.apply(void 0, n);
|
|
2181
2151
|
};
|
|
2182
|
-
var
|
|
2152
|
+
var In = (
|
|
2183
2153
|
/** @class */
|
|
2184
2154
|
function() {
|
|
2185
2155
|
function e(t, r) {
|
|
@@ -2203,14 +2173,14 @@ var Wn = (
|
|
|
2203
2173
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2204
2174
|
var s = this.clonePosition();
|
|
2205
2175
|
this.bump(), i.push({
|
|
2206
|
-
type:
|
|
2176
|
+
type: B.pound,
|
|
2207
2177
|
location: N(s, this.clonePosition())
|
|
2208
2178
|
});
|
|
2209
2179
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2210
2180
|
if (n)
|
|
2211
2181
|
break;
|
|
2212
2182
|
return this.error(w.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2213
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2183
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
2214
2184
|
var a = this.parseTag(t, r);
|
|
2215
2185
|
if (a.err)
|
|
2216
2186
|
return a;
|
|
@@ -2231,7 +2201,7 @@ var Wn = (
|
|
|
2231
2201
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2232
2202
|
return {
|
|
2233
2203
|
val: {
|
|
2234
|
-
type:
|
|
2204
|
+
type: B.literal,
|
|
2235
2205
|
value: "<".concat(i, "/>"),
|
|
2236
2206
|
location: N(n, this.clonePosition())
|
|
2237
2207
|
},
|
|
@@ -2243,12 +2213,12 @@ var Wn = (
|
|
|
2243
2213
|
return o;
|
|
2244
2214
|
var a = o.val, s = this.clonePosition();
|
|
2245
2215
|
if (this.bumpIf("</")) {
|
|
2246
|
-
if (this.isEOF() || !
|
|
2216
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
2247
2217
|
return this.error(w.INVALID_TAG, N(s, this.clonePosition()));
|
|
2248
2218
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2249
2219
|
return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, N(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2250
2220
|
val: {
|
|
2251
|
-
type:
|
|
2221
|
+
type: B.tag,
|
|
2252
2222
|
value: i,
|
|
2253
2223
|
children: a,
|
|
2254
2224
|
location: N(n, this.clonePosition())
|
|
@@ -2261,7 +2231,7 @@ var Wn = (
|
|
|
2261
2231
|
return this.error(w.INVALID_TAG, N(n, this.clonePosition()));
|
|
2262
2232
|
}, e.prototype.parseTagName = function() {
|
|
2263
2233
|
var t = this.offset();
|
|
2264
|
-
for (this.bump(); !this.isEOF() &&
|
|
2234
|
+
for (this.bump(); !this.isEOF() && Ln(this.char()); )
|
|
2265
2235
|
this.bump();
|
|
2266
2236
|
return this.message.slice(t, this.offset());
|
|
2267
2237
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2285,12 +2255,12 @@ var Wn = (
|
|
|
2285
2255
|
}
|
|
2286
2256
|
var h = N(n, this.clonePosition());
|
|
2287
2257
|
return {
|
|
2288
|
-
val: { type:
|
|
2258
|
+
val: { type: B.literal, value: i, location: h },
|
|
2289
2259
|
err: null
|
|
2290
2260
|
};
|
|
2291
2261
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2292
2262
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2293
|
-
!
|
|
2263
|
+
!jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2294
2264
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2295
2265
|
if (this.isEOF() || this.char() !== 39)
|
|
2296
2266
|
return null;
|
|
@@ -2324,12 +2294,12 @@ var Wn = (
|
|
|
2324
2294
|
r.push(n);
|
|
2325
2295
|
this.bump();
|
|
2326
2296
|
}
|
|
2327
|
-
return
|
|
2297
|
+
return Fe.apply(void 0, r);
|
|
2328
2298
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2329
2299
|
if (this.isEOF())
|
|
2330
2300
|
return null;
|
|
2331
2301
|
var n = this.char();
|
|
2332
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2302
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2333
2303
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2334
2304
|
var n = this.clonePosition();
|
|
2335
2305
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2345,7 +2315,7 @@ var Wn = (
|
|
|
2345
2315
|
case 125:
|
|
2346
2316
|
return this.bump(), {
|
|
2347
2317
|
val: {
|
|
2348
|
-
type:
|
|
2318
|
+
type: B.argument,
|
|
2349
2319
|
// value does not include the opening and closing braces.
|
|
2350
2320
|
value: i,
|
|
2351
2321
|
location: N(n, this.clonePosition())
|
|
@@ -2358,7 +2328,7 @@ var Wn = (
|
|
|
2358
2328
|
return this.error(w.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
2359
2329
|
}
|
|
2360
2330
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2361
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2331
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
2362
2332
|
this.bumpTo(i);
|
|
2363
2333
|
var o = this.clonePosition(), a = N(t, o);
|
|
2364
2334
|
return { value: n, location: a };
|
|
@@ -2377,7 +2347,7 @@ var Wn = (
|
|
|
2377
2347
|
var l = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2378
2348
|
if (d.err)
|
|
2379
2349
|
return d;
|
|
2380
|
-
var m =
|
|
2350
|
+
var m = On(d.val);
|
|
2381
2351
|
if (m.length === 0)
|
|
2382
2352
|
return this.error(w.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
2383
2353
|
var v = N(l, this.clonePosition());
|
|
@@ -2387,25 +2357,25 @@ var Wn = (
|
|
|
2387
2357
|
if (f.err)
|
|
2388
2358
|
return f;
|
|
2389
2359
|
var p = N(i, this.clonePosition());
|
|
2390
|
-
if (u &&
|
|
2391
|
-
var C =
|
|
2360
|
+
if (u && ut(u?.style, "::", 0)) {
|
|
2361
|
+
var C = zn(u.style.slice(2));
|
|
2392
2362
|
if (s === "number") {
|
|
2393
2363
|
var d = this.parseNumberSkeletonFromString(C, u.styleLocation);
|
|
2394
2364
|
return d.err ? d : {
|
|
2395
|
-
val: { type:
|
|
2365
|
+
val: { type: B.number, value: n, location: p, style: d.val },
|
|
2396
2366
|
err: null
|
|
2397
2367
|
};
|
|
2398
2368
|
} else {
|
|
2399
2369
|
if (C.length === 0)
|
|
2400
2370
|
return this.error(w.EXPECT_DATE_TIME_SKELETON, p);
|
|
2401
2371
|
var _ = C;
|
|
2402
|
-
this.locale && (_ =
|
|
2372
|
+
this.locale && (_ = bn(C, this.locale));
|
|
2403
2373
|
var m = {
|
|
2404
|
-
type:
|
|
2374
|
+
type: ee.dateTime,
|
|
2405
2375
|
pattern: _,
|
|
2406
2376
|
location: u.styleLocation,
|
|
2407
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2408
|
-
}, y = s === "date" ?
|
|
2377
|
+
parsedOptions: this.shouldParseSkeletons ? pn(_) : {}
|
|
2378
|
+
}, y = s === "date" ? B.date : B.time;
|
|
2409
2379
|
return {
|
|
2410
2380
|
val: { type: y, value: n, location: p, style: m },
|
|
2411
2381
|
err: null
|
|
@@ -2414,10 +2384,10 @@ var Wn = (
|
|
|
2414
2384
|
}
|
|
2415
2385
|
return {
|
|
2416
2386
|
val: {
|
|
2417
|
-
type: s === "number" ?
|
|
2387
|
+
type: s === "number" ? B.number : s === "date" ? B.date : B.time,
|
|
2418
2388
|
value: n,
|
|
2419
2389
|
location: p,
|
|
2420
|
-
style: (o = u
|
|
2390
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2421
2391
|
},
|
|
2422
2392
|
err: null
|
|
2423
2393
|
};
|
|
@@ -2427,38 +2397,38 @@ var Wn = (
|
|
|
2427
2397
|
case "select": {
|
|
2428
2398
|
var x = this.clonePosition();
|
|
2429
2399
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2430
|
-
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(x,
|
|
2400
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(x, H({}, x)));
|
|
2431
2401
|
this.bumpSpace();
|
|
2432
|
-
var
|
|
2433
|
-
if (s !== "select" &&
|
|
2402
|
+
var P = this.parseIdentifierIfPossible(), b = 0;
|
|
2403
|
+
if (s !== "select" && P.value === "offset") {
|
|
2434
2404
|
if (!this.bumpIf(":"))
|
|
2435
2405
|
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
|
|
2436
2406
|
this.bumpSpace();
|
|
2437
2407
|
var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2438
2408
|
if (d.err)
|
|
2439
2409
|
return d;
|
|
2440
|
-
this.bumpSpace(),
|
|
2410
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), b = d.val;
|
|
2441
2411
|
}
|
|
2442
|
-
var
|
|
2443
|
-
if (
|
|
2444
|
-
return
|
|
2412
|
+
var z = this.tryParsePluralOrSelectOptions(t, s, r, P);
|
|
2413
|
+
if (z.err)
|
|
2414
|
+
return z;
|
|
2445
2415
|
var f = this.tryParseArgumentClose(i);
|
|
2446
2416
|
if (f.err)
|
|
2447
2417
|
return f;
|
|
2448
2418
|
var O = N(i, this.clonePosition());
|
|
2449
2419
|
return s === "select" ? {
|
|
2450
2420
|
val: {
|
|
2451
|
-
type:
|
|
2421
|
+
type: B.select,
|
|
2452
2422
|
value: n,
|
|
2453
|
-
options:
|
|
2423
|
+
options: ht(z.val),
|
|
2454
2424
|
location: O
|
|
2455
2425
|
},
|
|
2456
2426
|
err: null
|
|
2457
2427
|
} : {
|
|
2458
2428
|
val: {
|
|
2459
|
-
type:
|
|
2429
|
+
type: B.plural,
|
|
2460
2430
|
value: n,
|
|
2461
|
-
options:
|
|
2431
|
+
options: ht(z.val),
|
|
2462
2432
|
offset: b,
|
|
2463
2433
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2464
2434
|
location: O
|
|
@@ -2509,16 +2479,16 @@ var Wn = (
|
|
|
2509
2479
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2510
2480
|
var n = [];
|
|
2511
2481
|
try {
|
|
2512
|
-
n =
|
|
2513
|
-
} catch
|
|
2482
|
+
n = fn(t);
|
|
2483
|
+
} catch {
|
|
2514
2484
|
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
2515
2485
|
}
|
|
2516
2486
|
return {
|
|
2517
2487
|
val: {
|
|
2518
|
-
type:
|
|
2488
|
+
type: ee.number,
|
|
2519
2489
|
tokens: n,
|
|
2520
2490
|
location: r,
|
|
2521
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2491
|
+
parsedOptions: this.shouldParseSkeletons ? kn(n) : {}
|
|
2522
2492
|
},
|
|
2523
2493
|
err: null
|
|
2524
2494
|
};
|
|
@@ -2566,7 +2536,7 @@ var Wn = (
|
|
|
2566
2536
|
break;
|
|
2567
2537
|
}
|
|
2568
2538
|
var h = N(i, this.clonePosition());
|
|
2569
|
-
return o ? (a *= n,
|
|
2539
|
+
return o ? (a *= n, Pn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2570
2540
|
}, e.prototype.offset = function() {
|
|
2571
2541
|
return this.position.offset;
|
|
2572
2542
|
}, e.prototype.isEOF = function() {
|
|
@@ -2581,7 +2551,7 @@ var Wn = (
|
|
|
2581
2551
|
var t = this.position.offset;
|
|
2582
2552
|
if (t >= this.message.length)
|
|
2583
2553
|
throw Error("out of bound");
|
|
2584
|
-
var r =
|
|
2554
|
+
var r = Yt(this.message, t);
|
|
2585
2555
|
if (r === void 0)
|
|
2586
2556
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2587
2557
|
return r;
|
|
@@ -2600,7 +2570,7 @@ var Wn = (
|
|
|
2600
2570
|
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);
|
|
2601
2571
|
}
|
|
2602
2572
|
}, e.prototype.bumpIf = function(t) {
|
|
2603
|
-
if (
|
|
2573
|
+
if (ut(this.message, t, this.offset())) {
|
|
2604
2574
|
for (var r = 0; r < t.length; r++)
|
|
2605
2575
|
this.bump();
|
|
2606
2576
|
return !0;
|
|
@@ -2622,57 +2592,57 @@ var Wn = (
|
|
|
2622
2592
|
break;
|
|
2623
2593
|
}
|
|
2624
2594
|
}, e.prototype.bumpSpace = function() {
|
|
2625
|
-
for (; !this.isEOF() &&
|
|
2595
|
+
for (; !this.isEOF() && $t(this.char()); )
|
|
2626
2596
|
this.bump();
|
|
2627
2597
|
}, e.prototype.peek = function() {
|
|
2628
2598
|
if (this.isEOF())
|
|
2629
2599
|
return null;
|
|
2630
2600
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
2631
|
-
return n
|
|
2601
|
+
return n ?? null;
|
|
2632
2602
|
}, e;
|
|
2633
2603
|
}()
|
|
2634
2604
|
);
|
|
2635
|
-
function
|
|
2605
|
+
function Xe(e) {
|
|
2636
2606
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2637
2607
|
}
|
|
2638
|
-
function
|
|
2639
|
-
return
|
|
2608
|
+
function jn(e) {
|
|
2609
|
+
return Xe(e) || e === 47;
|
|
2640
2610
|
}
|
|
2641
|
-
function
|
|
2611
|
+
function Ln(e) {
|
|
2642
2612
|
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;
|
|
2643
2613
|
}
|
|
2644
|
-
function
|
|
2614
|
+
function $t(e) {
|
|
2645
2615
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2646
2616
|
}
|
|
2647
|
-
function
|
|
2617
|
+
function Rn(e) {
|
|
2648
2618
|
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;
|
|
2649
2619
|
}
|
|
2650
|
-
function
|
|
2620
|
+
function qe(e) {
|
|
2651
2621
|
e.forEach(function(t) {
|
|
2652
|
-
if (delete t.location,
|
|
2622
|
+
if (delete t.location, Ft(t) || Vt(t))
|
|
2653
2623
|
for (var r in t.options)
|
|
2654
|
-
delete t.options[r].location,
|
|
2624
|
+
delete t.options[r].location, qe(t.options[r].value);
|
|
2655
2625
|
else
|
|
2656
|
-
|
|
2626
|
+
Ut(t) && qt(t.style) || (Dt(t) || Gt(t)) && De(t.style) ? delete t.style.location : Xt(t) && qe(t.children);
|
|
2657
2627
|
});
|
|
2658
2628
|
}
|
|
2659
|
-
function
|
|
2660
|
-
t === void 0 && (t = {}), t =
|
|
2661
|
-
var r = new
|
|
2629
|
+
function Un(e, t) {
|
|
2630
|
+
t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
2631
|
+
var r = new In(e, t).parse();
|
|
2662
2632
|
if (r.err) {
|
|
2663
2633
|
var n = SyntaxError(w[r.err.kind]);
|
|
2664
2634
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
2665
2635
|
}
|
|
2666
|
-
return t
|
|
2636
|
+
return t?.captureLocation || qe(r.val), r.val;
|
|
2667
2637
|
}
|
|
2668
|
-
var
|
|
2638
|
+
var te;
|
|
2669
2639
|
(function(e) {
|
|
2670
2640
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
2671
|
-
})(
|
|
2672
|
-
var
|
|
2641
|
+
})(te || (te = {}));
|
|
2642
|
+
var Ae = (
|
|
2673
2643
|
/** @class */
|
|
2674
2644
|
function(e) {
|
|
2675
|
-
|
|
2645
|
+
Ne(t, e);
|
|
2676
2646
|
function t(r, n, i) {
|
|
2677
2647
|
var o = e.call(this, r) || this;
|
|
2678
2648
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -2681,48 +2651,48 @@ var Oe = (
|
|
|
2681
2651
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
2682
2652
|
}, t;
|
|
2683
2653
|
}(Error)
|
|
2684
|
-
),
|
|
2654
|
+
), mt = (
|
|
2685
2655
|
/** @class */
|
|
2686
2656
|
function(e) {
|
|
2687
|
-
|
|
2657
|
+
Ne(t, e);
|
|
2688
2658
|
function t(r, n, i, o) {
|
|
2689
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
2659
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
|
|
2690
2660
|
}
|
|
2691
2661
|
return t;
|
|
2692
|
-
}(
|
|
2693
|
-
),
|
|
2662
|
+
}(Ae)
|
|
2663
|
+
), Dn = (
|
|
2694
2664
|
/** @class */
|
|
2695
2665
|
function(e) {
|
|
2696
|
-
|
|
2666
|
+
Ne(t, e);
|
|
2697
2667
|
function t(r, n, i) {
|
|
2698
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
2668
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
|
|
2699
2669
|
}
|
|
2700
2670
|
return t;
|
|
2701
|
-
}(
|
|
2702
|
-
),
|
|
2671
|
+
}(Ae)
|
|
2672
|
+
), Gn = (
|
|
2703
2673
|
/** @class */
|
|
2704
2674
|
function(e) {
|
|
2705
|
-
|
|
2675
|
+
Ne(t, e);
|
|
2706
2676
|
function t(r, n) {
|
|
2707
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
2677
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
|
|
2708
2678
|
}
|
|
2709
2679
|
return t;
|
|
2710
|
-
}(
|
|
2680
|
+
}(Ae)
|
|
2711
2681
|
), D;
|
|
2712
2682
|
(function(e) {
|
|
2713
2683
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
2714
2684
|
})(D || (D = {}));
|
|
2715
|
-
function
|
|
2685
|
+
function Fn(e) {
|
|
2716
2686
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
2717
2687
|
var n = t[t.length - 1];
|
|
2718
2688
|
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
2719
2689
|
}, []);
|
|
2720
2690
|
}
|
|
2721
|
-
function
|
|
2691
|
+
function Vn(e) {
|
|
2722
2692
|
return typeof e == "function";
|
|
2723
2693
|
}
|
|
2724
|
-
function
|
|
2725
|
-
if (e.length === 1 &&
|
|
2694
|
+
function Se(e, t, r, n, i, o, a) {
|
|
2695
|
+
if (e.length === 1 && at(e[0]))
|
|
2726
2696
|
return [
|
|
2727
2697
|
{
|
|
2728
2698
|
type: D.literal,
|
|
@@ -2731,14 +2701,14 @@ function Me(e, t, r, n, i, o, a) {
|
|
|
2731
2701
|
];
|
|
2732
2702
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
2733
2703
|
var l = u[h];
|
|
2734
|
-
if (
|
|
2704
|
+
if (at(l)) {
|
|
2735
2705
|
s.push({
|
|
2736
2706
|
type: D.literal,
|
|
2737
2707
|
value: l.value
|
|
2738
2708
|
});
|
|
2739
2709
|
continue;
|
|
2740
2710
|
}
|
|
2741
|
-
if (
|
|
2711
|
+
if (dn(l)) {
|
|
2742
2712
|
typeof o == "number" && s.push({
|
|
2743
2713
|
type: D.literal,
|
|
2744
2714
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -2747,44 +2717,44 @@ function Me(e, t, r, n, i, o, a) {
|
|
|
2747
2717
|
}
|
|
2748
2718
|
var d = l.value;
|
|
2749
2719
|
if (!(i && d in i))
|
|
2750
|
-
throw new
|
|
2720
|
+
throw new Gn(d, a);
|
|
2751
2721
|
var m = i[d];
|
|
2752
|
-
if (
|
|
2722
|
+
if (hn(l)) {
|
|
2753
2723
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
2754
2724
|
type: typeof m == "string" ? D.literal : D.object,
|
|
2755
2725
|
value: m
|
|
2756
2726
|
});
|
|
2757
2727
|
continue;
|
|
2758
2728
|
}
|
|
2759
|
-
if (
|
|
2760
|
-
var v = typeof l.style == "string" ? n.date[l.style] :
|
|
2729
|
+
if (Dt(l)) {
|
|
2730
|
+
var v = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
2761
2731
|
s.push({
|
|
2762
2732
|
type: D.literal,
|
|
2763
2733
|
value: r.getDateTimeFormat(t, v).format(m)
|
|
2764
2734
|
});
|
|
2765
2735
|
continue;
|
|
2766
2736
|
}
|
|
2767
|
-
if (
|
|
2768
|
-
var v = typeof l.style == "string" ? n.time[l.style] :
|
|
2737
|
+
if (Gt(l)) {
|
|
2738
|
+
var v = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
2769
2739
|
s.push({
|
|
2770
2740
|
type: D.literal,
|
|
2771
2741
|
value: r.getDateTimeFormat(t, v).format(m)
|
|
2772
2742
|
});
|
|
2773
2743
|
continue;
|
|
2774
2744
|
}
|
|
2775
|
-
if (
|
|
2776
|
-
var v = typeof l.style == "string" ? n.number[l.style] :
|
|
2745
|
+
if (Ut(l)) {
|
|
2746
|
+
var v = typeof l.style == "string" ? n.number[l.style] : qt(l.style) ? l.style.parsedOptions : void 0;
|
|
2777
2747
|
v && v.scale && (m = m * (v.scale || 1)), s.push({
|
|
2778
2748
|
type: D.literal,
|
|
2779
2749
|
value: r.getNumberFormat(t, v).format(m)
|
|
2780
2750
|
});
|
|
2781
2751
|
continue;
|
|
2782
2752
|
}
|
|
2783
|
-
if (
|
|
2753
|
+
if (Xt(l)) {
|
|
2784
2754
|
var f = l.children, p = l.value, C = i[p];
|
|
2785
|
-
if (!
|
|
2786
|
-
throw new
|
|
2787
|
-
var _ =
|
|
2755
|
+
if (!Vn(C))
|
|
2756
|
+
throw new Dn(p, "function", a);
|
|
2757
|
+
var _ = Se(f, t, r, n, i, o), y = C(_.map(function(b) {
|
|
2788
2758
|
return b.value;
|
|
2789
2759
|
}));
|
|
2790
2760
|
Array.isArray(y) || (y = [y]), s.push.apply(s, y.map(function(b) {
|
|
@@ -2794,42 +2764,42 @@ function Me(e, t, r, n, i, o, a) {
|
|
|
2794
2764
|
};
|
|
2795
2765
|
}));
|
|
2796
2766
|
}
|
|
2797
|
-
if (
|
|
2767
|
+
if (Ft(l)) {
|
|
2798
2768
|
var x = l.options[m] || l.options.other;
|
|
2799
2769
|
if (!x)
|
|
2800
|
-
throw new
|
|
2801
|
-
s.push.apply(s,
|
|
2770
|
+
throw new mt(l.value, m, Object.keys(l.options), a);
|
|
2771
|
+
s.push.apply(s, Se(x.value, t, r, n, i));
|
|
2802
2772
|
continue;
|
|
2803
2773
|
}
|
|
2804
|
-
if (
|
|
2774
|
+
if (Vt(l)) {
|
|
2805
2775
|
var x = l.options["=".concat(m)];
|
|
2806
2776
|
if (!x) {
|
|
2807
2777
|
if (!Intl.PluralRules)
|
|
2808
|
-
throw new
|
|
2778
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
2809
2779
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2810
|
-
`,
|
|
2811
|
-
var
|
|
2812
|
-
x = l.options[
|
|
2780
|
+
`, te.MISSING_INTL_API, a);
|
|
2781
|
+
var P = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
|
|
2782
|
+
x = l.options[P] || l.options.other;
|
|
2813
2783
|
}
|
|
2814
2784
|
if (!x)
|
|
2815
|
-
throw new
|
|
2816
|
-
s.push.apply(s,
|
|
2785
|
+
throw new mt(l.value, m, Object.keys(l.options), a);
|
|
2786
|
+
s.push.apply(s, Se(x.value, t, r, n, i, m - (l.offset || 0)));
|
|
2817
2787
|
continue;
|
|
2818
2788
|
}
|
|
2819
2789
|
}
|
|
2820
|
-
return
|
|
2790
|
+
return Fn(s);
|
|
2821
2791
|
}
|
|
2822
|
-
function
|
|
2823
|
-
return t ?
|
|
2824
|
-
return r[n] =
|
|
2792
|
+
function Xn(e, t) {
|
|
2793
|
+
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
2794
|
+
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
|
2825
2795
|
}, {})) : e;
|
|
2826
2796
|
}
|
|
2827
|
-
function
|
|
2797
|
+
function qn(e, t) {
|
|
2828
2798
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
2829
|
-
return r[n] =
|
|
2830
|
-
},
|
|
2799
|
+
return r[n] = Xn(e[n], t[n]), r;
|
|
2800
|
+
}, H({}, e)) : e;
|
|
2831
2801
|
}
|
|
2832
|
-
function
|
|
2802
|
+
function Le(e) {
|
|
2833
2803
|
return {
|
|
2834
2804
|
create: function() {
|
|
2835
2805
|
return {
|
|
@@ -2843,39 +2813,39 @@ function Ge(e) {
|
|
|
2843
2813
|
}
|
|
2844
2814
|
};
|
|
2845
2815
|
}
|
|
2846
|
-
function
|
|
2816
|
+
function Wn(e) {
|
|
2847
2817
|
return e === void 0 && (e = {
|
|
2848
2818
|
number: {},
|
|
2849
2819
|
dateTime: {},
|
|
2850
2820
|
pluralRules: {}
|
|
2851
2821
|
}), {
|
|
2852
|
-
getNumberFormat:
|
|
2822
|
+
getNumberFormat: Oe(function() {
|
|
2853
2823
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2854
2824
|
r[n] = arguments[n];
|
|
2855
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
2825
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ze([void 0], r, !1)))();
|
|
2856
2826
|
}, {
|
|
2857
|
-
cache:
|
|
2858
|
-
strategy:
|
|
2827
|
+
cache: Le(e.number),
|
|
2828
|
+
strategy: Ie.variadic
|
|
2859
2829
|
}),
|
|
2860
|
-
getDateTimeFormat:
|
|
2830
|
+
getDateTimeFormat: Oe(function() {
|
|
2861
2831
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2862
2832
|
r[n] = arguments[n];
|
|
2863
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
2833
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ze([void 0], r, !1)))();
|
|
2864
2834
|
}, {
|
|
2865
|
-
cache:
|
|
2866
|
-
strategy:
|
|
2835
|
+
cache: Le(e.dateTime),
|
|
2836
|
+
strategy: Ie.variadic
|
|
2867
2837
|
}),
|
|
2868
|
-
getPluralRules:
|
|
2838
|
+
getPluralRules: Oe(function() {
|
|
2869
2839
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2870
2840
|
r[n] = arguments[n];
|
|
2871
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
2841
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ze([void 0], r, !1)))();
|
|
2872
2842
|
}, {
|
|
2873
|
-
cache:
|
|
2874
|
-
strategy:
|
|
2843
|
+
cache: Le(e.pluralRules),
|
|
2844
|
+
strategy: Ie.variadic
|
|
2875
2845
|
})
|
|
2876
2846
|
};
|
|
2877
2847
|
}
|
|
2878
|
-
var
|
|
2848
|
+
var Zn = (
|
|
2879
2849
|
/** @class */
|
|
2880
2850
|
function() {
|
|
2881
2851
|
function e(t, r, n, i) {
|
|
@@ -2894,7 +2864,7 @@ var oi = (
|
|
|
2894
2864
|
}, []);
|
|
2895
2865
|
return l.length <= 1 ? l[0] || "" : l;
|
|
2896
2866
|
}, this.formatToParts = function(h) {
|
|
2897
|
-
return
|
|
2867
|
+
return Se(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
2898
2868
|
}, this.resolvedOptions = function() {
|
|
2899
2869
|
var h;
|
|
2900
2870
|
return {
|
|
@@ -2907,13 +2877,13 @@ var oi = (
|
|
|
2907
2877
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
2908
2878
|
var a = i || {};
|
|
2909
2879
|
a.formatters;
|
|
2910
|
-
var s =
|
|
2911
|
-
this.ast = e.__parse(t,
|
|
2880
|
+
var s = rn(a, ["formatters"]);
|
|
2881
|
+
this.ast = e.__parse(t, H(H({}, s), { locale: this.resolvedLocale }));
|
|
2912
2882
|
} else
|
|
2913
2883
|
this.ast = t;
|
|
2914
2884
|
if (!Array.isArray(this.ast))
|
|
2915
2885
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
2916
|
-
this.formats =
|
|
2886
|
+
this.formats = qn(e.formats, n), this.formatters = i && i.formatters || Wn(this.formatterCache);
|
|
2917
2887
|
}
|
|
2918
2888
|
return Object.defineProperty(e, "defaultLocale", {
|
|
2919
2889
|
get: function() {
|
|
@@ -2922,11 +2892,11 @@ var oi = (
|
|
|
2922
2892
|
enumerable: !1,
|
|
2923
2893
|
configurable: !0
|
|
2924
2894
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
2925
|
-
if (typeof Intl.Locale
|
|
2895
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
2926
2896
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
2927
2897
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
2928
2898
|
}
|
|
2929
|
-
}, e.__parse =
|
|
2899
|
+
}, e.__parse = Un, e.formats = {
|
|
2930
2900
|
number: {
|
|
2931
2901
|
integer: {
|
|
2932
2902
|
maximumFractionDigits: 0
|
|
@@ -2987,7 +2957,7 @@ var oi = (
|
|
|
2987
2957
|
}, e;
|
|
2988
2958
|
}()
|
|
2989
2959
|
);
|
|
2990
|
-
function
|
|
2960
|
+
function Jn(e, t) {
|
|
2991
2961
|
if (t == null)
|
|
2992
2962
|
return;
|
|
2993
2963
|
if (t in e)
|
|
@@ -3008,92 +2978,92 @@ function ai(e, t) {
|
|
|
3008
2978
|
n = void 0;
|
|
3009
2979
|
return n;
|
|
3010
2980
|
}
|
|
3011
|
-
const
|
|
2981
|
+
const Z = {}, Qn = (e, t, r) => r && (t in Z || (Z[t] = {}), e in Z[t] || (Z[t][e] = r), r), er = (e, t) => {
|
|
3012
2982
|
if (t == null)
|
|
3013
2983
|
return;
|
|
3014
|
-
if (t in
|
|
3015
|
-
return
|
|
3016
|
-
const r =
|
|
2984
|
+
if (t in Z && e in Z[t])
|
|
2985
|
+
return Z[t][e];
|
|
2986
|
+
const r = He(t);
|
|
3017
2987
|
for (let n = 0; n < r.length; n++) {
|
|
3018
|
-
const i = r[n], o =
|
|
2988
|
+
const i = r[n], o = Kn(i, e);
|
|
3019
2989
|
if (o)
|
|
3020
|
-
return
|
|
2990
|
+
return Qn(e, t, o);
|
|
3021
2991
|
}
|
|
3022
2992
|
};
|
|
3023
|
-
let
|
|
3024
|
-
const
|
|
3025
|
-
function
|
|
3026
|
-
return
|
|
2993
|
+
let Ke;
|
|
2994
|
+
const fe = we({});
|
|
2995
|
+
function Yn(e) {
|
|
2996
|
+
return Ke[e] || null;
|
|
3027
2997
|
}
|
|
3028
|
-
function
|
|
3029
|
-
return e in
|
|
2998
|
+
function tr(e) {
|
|
2999
|
+
return e in Ke;
|
|
3030
3000
|
}
|
|
3031
|
-
function
|
|
3032
|
-
if (!
|
|
3001
|
+
function Kn(e, t) {
|
|
3002
|
+
if (!tr(e))
|
|
3033
3003
|
return null;
|
|
3034
|
-
const r =
|
|
3035
|
-
return
|
|
3004
|
+
const r = Yn(e);
|
|
3005
|
+
return Jn(r, t);
|
|
3036
3006
|
}
|
|
3037
|
-
function
|
|
3007
|
+
function $n(e) {
|
|
3038
3008
|
if (e == null)
|
|
3039
3009
|
return;
|
|
3040
|
-
const t =
|
|
3010
|
+
const t = He(e);
|
|
3041
3011
|
for (let r = 0; r < t.length; r++) {
|
|
3042
3012
|
const n = t[r];
|
|
3043
|
-
if (
|
|
3013
|
+
if (tr(n))
|
|
3044
3014
|
return n;
|
|
3045
3015
|
}
|
|
3046
3016
|
}
|
|
3047
|
-
function
|
|
3048
|
-
delete
|
|
3017
|
+
function rr(e, ...t) {
|
|
3018
|
+
delete Z[e], fe.update((r) => (r[e] = tn.all([r[e] || {}, ...t]), r));
|
|
3049
3019
|
}
|
|
3050
|
-
|
|
3051
|
-
[
|
|
3020
|
+
ne(
|
|
3021
|
+
[fe],
|
|
3052
3022
|
([e]) => Object.keys(e)
|
|
3053
3023
|
);
|
|
3054
|
-
|
|
3055
|
-
const
|
|
3056
|
-
function
|
|
3057
|
-
|
|
3024
|
+
fe.subscribe((e) => Ke = e);
|
|
3025
|
+
const xe = {};
|
|
3026
|
+
function ei(e, t) {
|
|
3027
|
+
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3058
3028
|
}
|
|
3059
|
-
function
|
|
3060
|
-
return
|
|
3029
|
+
function nr(e) {
|
|
3030
|
+
return xe[e];
|
|
3061
3031
|
}
|
|
3062
|
-
function
|
|
3063
|
-
return
|
|
3064
|
-
const r =
|
|
3032
|
+
function ti(e) {
|
|
3033
|
+
return He(e).map((t) => {
|
|
3034
|
+
const r = nr(t);
|
|
3065
3035
|
return [t, r ? [...r] : []];
|
|
3066
3036
|
}).filter(([, t]) => t.length > 0);
|
|
3067
3037
|
}
|
|
3068
|
-
function
|
|
3069
|
-
return e == null ? !1 :
|
|
3038
|
+
function We(e) {
|
|
3039
|
+
return e == null ? !1 : He(e).some(
|
|
3070
3040
|
(t) => {
|
|
3071
3041
|
var r;
|
|
3072
|
-
return (r =
|
|
3042
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3073
3043
|
}
|
|
3074
3044
|
);
|
|
3075
3045
|
}
|
|
3076
|
-
function
|
|
3046
|
+
function ri(e, t) {
|
|
3077
3047
|
return Promise.all(
|
|
3078
|
-
t.map((n) => (
|
|
3079
|
-
).then((n) =>
|
|
3048
|
+
t.map((n) => (ei(e, n), n().then((i) => i.default || i)))
|
|
3049
|
+
).then((n) => rr(e, ...n));
|
|
3080
3050
|
}
|
|
3081
|
-
const
|
|
3082
|
-
function
|
|
3083
|
-
if (!
|
|
3084
|
-
return e in
|
|
3085
|
-
const t =
|
|
3086
|
-
return
|
|
3051
|
+
const ue = {};
|
|
3052
|
+
function ir(e) {
|
|
3053
|
+
if (!We(e))
|
|
3054
|
+
return e in ue ? ue[e] : Promise.resolve();
|
|
3055
|
+
const t = ti(e);
|
|
3056
|
+
return ue[e] = Promise.all(
|
|
3087
3057
|
t.map(
|
|
3088
|
-
([r, n]) =>
|
|
3058
|
+
([r, n]) => ri(r, n)
|
|
3089
3059
|
)
|
|
3090
3060
|
).then(() => {
|
|
3091
|
-
if (
|
|
3092
|
-
return
|
|
3093
|
-
delete
|
|
3094
|
-
}),
|
|
3061
|
+
if (We(e))
|
|
3062
|
+
return ir(e);
|
|
3063
|
+
delete ue[e];
|
|
3064
|
+
}), ue[e];
|
|
3095
3065
|
}
|
|
3096
|
-
const
|
|
3066
|
+
const ni = {
|
|
3097
3067
|
number: {
|
|
3098
3068
|
scientific: { notation: "scientific" },
|
|
3099
3069
|
engineering: { notation: "engineering" },
|
|
@@ -3122,150 +3092,150 @@ const pi = {
|
|
|
3122
3092
|
timeZoneName: "short"
|
|
3123
3093
|
}
|
|
3124
3094
|
}
|
|
3125
|
-
},
|
|
3095
|
+
}, ii = {
|
|
3126
3096
|
fallbackLocale: null,
|
|
3127
3097
|
loadingDelay: 200,
|
|
3128
|
-
formats:
|
|
3098
|
+
formats: ni,
|
|
3129
3099
|
warnOnMissingMessages: !0,
|
|
3130
3100
|
handleMissingMessage: void 0,
|
|
3131
3101
|
ignoreTag: !0
|
|
3132
|
-
},
|
|
3133
|
-
function
|
|
3134
|
-
return
|
|
3102
|
+
}, oi = ii;
|
|
3103
|
+
function re() {
|
|
3104
|
+
return oi;
|
|
3135
3105
|
}
|
|
3136
|
-
const
|
|
3137
|
-
var
|
|
3138
|
-
for (var r in t
|
|
3139
|
-
|
|
3140
|
-
if (
|
|
3141
|
-
for (var r of
|
|
3142
|
-
|
|
3106
|
+
const Re = we(!1);
|
|
3107
|
+
var ai = Object.defineProperty, si = Object.defineProperties, li = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
|
|
3108
|
+
for (var r in t)
|
|
3109
|
+
ci.call(t, r) && gt(e, r, t[r]);
|
|
3110
|
+
if (pt)
|
|
3111
|
+
for (var r of pt(t))
|
|
3112
|
+
ui.call(t, r) && gt(e, r, t[r]);
|
|
3143
3113
|
return e;
|
|
3144
|
-
},
|
|
3145
|
-
let
|
|
3146
|
-
const
|
|
3147
|
-
function
|
|
3114
|
+
}, di = (e, t) => si(e, li(t));
|
|
3115
|
+
let Ze;
|
|
3116
|
+
const Me = we(null);
|
|
3117
|
+
function ft(e) {
|
|
3148
3118
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3149
3119
|
}
|
|
3150
|
-
function
|
|
3151
|
-
const r =
|
|
3152
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3120
|
+
function He(e, t = re().fallbackLocale) {
|
|
3121
|
+
const r = ft(e);
|
|
3122
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
|
|
3153
3123
|
}
|
|
3154
|
-
function
|
|
3155
|
-
return
|
|
3124
|
+
function Q() {
|
|
3125
|
+
return Ze ?? void 0;
|
|
3156
3126
|
}
|
|
3157
|
-
|
|
3158
|
-
|
|
3127
|
+
Me.subscribe((e) => {
|
|
3128
|
+
Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3159
3129
|
});
|
|
3160
|
-
const
|
|
3161
|
-
if (e &&
|
|
3162
|
-
const { loadingDelay: t } =
|
|
3130
|
+
const mi = (e) => {
|
|
3131
|
+
if (e && $n(e) && We(e)) {
|
|
3132
|
+
const { loadingDelay: t } = re();
|
|
3163
3133
|
let r;
|
|
3164
|
-
return typeof window
|
|
3165
|
-
() =>
|
|
3134
|
+
return typeof window < "u" && Q() != null && t ? r = window.setTimeout(
|
|
3135
|
+
() => Re.set(!0),
|
|
3166
3136
|
t
|
|
3167
|
-
) :
|
|
3168
|
-
|
|
3137
|
+
) : Re.set(!0), ir(e).then(() => {
|
|
3138
|
+
Me.set(e);
|
|
3169
3139
|
}).finally(() => {
|
|
3170
|
-
clearTimeout(r),
|
|
3140
|
+
clearTimeout(r), Re.set(!1);
|
|
3171
3141
|
});
|
|
3172
3142
|
}
|
|
3173
|
-
return
|
|
3174
|
-
},
|
|
3175
|
-
set:
|
|
3176
|
-
}),
|
|
3143
|
+
return Me.set(e);
|
|
3144
|
+
}, ie = di(hi({}, Me), {
|
|
3145
|
+
set: mi
|
|
3146
|
+
}), Pe = (e) => {
|
|
3177
3147
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3178
3148
|
return (n) => {
|
|
3179
3149
|
const i = JSON.stringify(n);
|
|
3180
3150
|
return i in t ? t[i] : t[i] = e(n);
|
|
3181
3151
|
};
|
|
3182
3152
|
};
|
|
3183
|
-
var
|
|
3153
|
+
var pi = Object.defineProperty, Te = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $e = (e, t) => {
|
|
3184
3154
|
for (var r in t || (t = {}))
|
|
3185
|
-
|
|
3186
|
-
if (
|
|
3187
|
-
for (var r of
|
|
3188
|
-
|
|
3155
|
+
or.call(t, r) && _t(e, r, t[r]);
|
|
3156
|
+
if (Te)
|
|
3157
|
+
for (var r of Te(t))
|
|
3158
|
+
ar.call(t, r) && _t(e, r, t[r]);
|
|
3189
3159
|
return e;
|
|
3190
|
-
},
|
|
3160
|
+
}, oe = (e, t) => {
|
|
3191
3161
|
var r = {};
|
|
3192
3162
|
for (var n in e)
|
|
3193
|
-
|
|
3194
|
-
if (e != null &&
|
|
3195
|
-
for (var n of
|
|
3196
|
-
t.indexOf(n) < 0 &&
|
|
3163
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3164
|
+
if (e != null && Te)
|
|
3165
|
+
for (var n of Te(e))
|
|
3166
|
+
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
3197
3167
|
return r;
|
|
3198
3168
|
};
|
|
3199
|
-
const
|
|
3200
|
-
const { formats: r } =
|
|
3169
|
+
const me = (e, t) => {
|
|
3170
|
+
const { formats: r } = re();
|
|
3201
3171
|
if (e in r && t in r[e])
|
|
3202
3172
|
return r[e][t];
|
|
3203
3173
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3204
|
-
},
|
|
3174
|
+
}, gi = Pe(
|
|
3205
3175
|
(e) => {
|
|
3206
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3176
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3207
3177
|
if (r == null)
|
|
3208
3178
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3209
|
-
return n && (i =
|
|
3179
|
+
return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
|
|
3210
3180
|
}
|
|
3211
|
-
),
|
|
3181
|
+
), fi = Pe(
|
|
3212
3182
|
(e) => {
|
|
3213
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3183
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3214
3184
|
if (r == null)
|
|
3215
3185
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3216
|
-
return n ? i =
|
|
3186
|
+
return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3217
3187
|
}
|
|
3218
|
-
),
|
|
3188
|
+
), _i = Pe(
|
|
3219
3189
|
(e) => {
|
|
3220
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3190
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3221
3191
|
if (r == null)
|
|
3222
3192
|
throw new Error(
|
|
3223
3193
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3224
3194
|
);
|
|
3225
|
-
return n ? i =
|
|
3195
|
+
return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3226
3196
|
}
|
|
3227
|
-
),
|
|
3197
|
+
), yi = (e = {}) => {
|
|
3228
3198
|
var t = e, {
|
|
3229
|
-
locale: r =
|
|
3230
|
-
} = t, n =
|
|
3199
|
+
locale: r = Q()
|
|
3200
|
+
} = t, n = oe(t, [
|
|
3231
3201
|
"locale"
|
|
3232
3202
|
]);
|
|
3233
|
-
return
|
|
3234
|
-
},
|
|
3203
|
+
return gi($e({ locale: r }, n));
|
|
3204
|
+
}, vi = (e = {}) => {
|
|
3235
3205
|
var t = e, {
|
|
3236
|
-
locale: r =
|
|
3237
|
-
} = t, n =
|
|
3206
|
+
locale: r = Q()
|
|
3207
|
+
} = t, n = oe(t, [
|
|
3238
3208
|
"locale"
|
|
3239
3209
|
]);
|
|
3240
|
-
return
|
|
3241
|
-
},
|
|
3210
|
+
return fi($e({ locale: r }, n));
|
|
3211
|
+
}, ki = (e = {}) => {
|
|
3242
3212
|
var t = e, {
|
|
3243
|
-
locale: r =
|
|
3244
|
-
} = t, n =
|
|
3213
|
+
locale: r = Q()
|
|
3214
|
+
} = t, n = oe(t, [
|
|
3245
3215
|
"locale"
|
|
3246
3216
|
]);
|
|
3247
|
-
return
|
|
3248
|
-
},
|
|
3217
|
+
return _i($e({ locale: r }, n));
|
|
3218
|
+
}, bi = Pe(
|
|
3249
3219
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3250
|
-
(e, t =
|
|
3251
|
-
ignoreTag:
|
|
3220
|
+
(e, t = Q()) => new Zn(e, t, re().formats, {
|
|
3221
|
+
ignoreTag: re().ignoreTag
|
|
3252
3222
|
})
|
|
3253
|
-
),
|
|
3223
|
+
), Ei = (e, t = {}) => {
|
|
3254
3224
|
var r, n, i, o;
|
|
3255
3225
|
let a = t;
|
|
3256
3226
|
typeof e == "object" && (a = e, e = a.id);
|
|
3257
3227
|
const {
|
|
3258
3228
|
values: s,
|
|
3259
|
-
locale: h =
|
|
3229
|
+
locale: h = Q(),
|
|
3260
3230
|
default: u
|
|
3261
3231
|
} = a;
|
|
3262
3232
|
if (h == null)
|
|
3263
3233
|
throw new Error(
|
|
3264
3234
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3265
3235
|
);
|
|
3266
|
-
let l =
|
|
3236
|
+
let l = er(e, h);
|
|
3267
3237
|
if (!l)
|
|
3268
|
-
l = (o = (i = (n = (r =
|
|
3238
|
+
l = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3269
3239
|
else if (typeof l != "string")
|
|
3270
3240
|
return console.warn(
|
|
3271
3241
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3274,7 +3244,7 @@ const fe = (e, t) => {
|
|
|
3274
3244
|
return l;
|
|
3275
3245
|
let d = l;
|
|
3276
3246
|
try {
|
|
3277
|
-
d =
|
|
3247
|
+
d = bi(l, h).format(s);
|
|
3278
3248
|
} catch (m) {
|
|
3279
3249
|
m instanceof Error && console.warn(
|
|
3280
3250
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3282,18 +3252,18 @@ const fe = (e, t) => {
|
|
|
3282
3252
|
);
|
|
3283
3253
|
}
|
|
3284
3254
|
return d;
|
|
3285
|
-
},
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
function
|
|
3291
|
-
|
|
3255
|
+
}, Ci = (e, t) => ki(t).format(e), Si = (e, t) => vi(t).format(e), xi = (e, t) => yi(t).format(e), Mi = (e, t = Q()) => er(e, t), Ti = ne([ie, fe], () => Ei);
|
|
3256
|
+
ne([ie], () => Ci);
|
|
3257
|
+
ne([ie], () => Si);
|
|
3258
|
+
ne([ie], () => xi);
|
|
3259
|
+
ne([ie, fe], () => Mi);
|
|
3260
|
+
function yt(e, t) {
|
|
3261
|
+
rr(e, t);
|
|
3292
3262
|
}
|
|
3293
|
-
function
|
|
3294
|
-
|
|
3263
|
+
function wi(e) {
|
|
3264
|
+
ie.set(e);
|
|
3295
3265
|
}
|
|
3296
|
-
const
|
|
3266
|
+
const vt = {
|
|
3297
3267
|
en: {
|
|
3298
3268
|
invalidUrl: "Failed to construct 'URL': Invalid URL",
|
|
3299
3269
|
fetchConsentsError: "Error: Could not fetch consents.",
|
|
@@ -3853,7 +3823,7 @@ const xt = {
|
|
|
3853
3823
|
wrongModalConfig: "Houve um erro na configuração! Nenhum consentimento expirado encontrado."
|
|
3854
3824
|
}
|
|
3855
3825
|
};
|
|
3856
|
-
if (typeof window
|
|
3826
|
+
if (typeof window < "u") {
|
|
3857
3827
|
let e = function(t) {
|
|
3858
3828
|
return function(...r) {
|
|
3859
3829
|
try {
|
|
@@ -3865,55 +3835,55 @@ if (typeof window != "undefined") {
|
|
|
3865
3835
|
}
|
|
3866
3836
|
};
|
|
3867
3837
|
};
|
|
3868
|
-
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-
|
|
3838
|
+
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-CfVy1Wef.js").then((t) => t.G).then(({ default: t }) => {
|
|
3869
3839
|
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
|
|
3870
3840
|
});
|
|
3871
3841
|
}
|
|
3872
|
-
function
|
|
3842
|
+
function Ni(e) {
|
|
3873
3843
|
let t, r;
|
|
3874
3844
|
return {
|
|
3875
3845
|
c() {
|
|
3876
|
-
t =
|
|
3846
|
+
t = nt("svg"), r = nt("path"), E(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), E(t, "xmlns", "http://www.w3.org/2000/svg"), E(t, "viewBox", "0 0 512 512");
|
|
3877
3847
|
},
|
|
3878
3848
|
m(n, i) {
|
|
3879
|
-
|
|
3849
|
+
j(n, t, i), S(t, r);
|
|
3880
3850
|
},
|
|
3881
|
-
p:
|
|
3882
|
-
i:
|
|
3883
|
-
o:
|
|
3851
|
+
p: q,
|
|
3852
|
+
i: q,
|
|
3853
|
+
o: q,
|
|
3884
3854
|
d(n) {
|
|
3885
|
-
n &&
|
|
3855
|
+
n && L(t);
|
|
3886
3856
|
}
|
|
3887
3857
|
};
|
|
3888
3858
|
}
|
|
3889
|
-
class
|
|
3859
|
+
class Ai extends zt {
|
|
3890
3860
|
constructor(t) {
|
|
3891
|
-
super(),
|
|
3861
|
+
super(), Ot(this, t, null, Ni, Je, {});
|
|
3892
3862
|
}
|
|
3893
3863
|
}
|
|
3894
|
-
customElements.define("circle-exclamation-icon",
|
|
3895
|
-
function
|
|
3896
|
-
|
|
3864
|
+
customElements.define("circle-exclamation-icon", Bt(Ai, {}, [], [], !0));
|
|
3865
|
+
function Hi(e) {
|
|
3866
|
+
Hr(e, "svelte-etk3ty", '.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');
|
|
3897
3867
|
}
|
|
3898
|
-
function
|
|
3868
|
+
function kt(e, t, r) {
|
|
3899
3869
|
const n = e.slice();
|
|
3900
3870
|
return n[64] = t[r], n;
|
|
3901
3871
|
}
|
|
3902
|
-
function
|
|
3872
|
+
function bt(e, t, r) {
|
|
3903
3873
|
const n = e.slice();
|
|
3904
3874
|
return n[61] = t[r], n[62] = t, n[63] = r, n;
|
|
3905
3875
|
}
|
|
3906
|
-
function
|
|
3876
|
+
function Et(e, t, r) {
|
|
3907
3877
|
const n = e.slice();
|
|
3908
3878
|
return n[64] = t[r], n;
|
|
3909
3879
|
}
|
|
3910
|
-
function
|
|
3911
|
-
let t, r, n =
|
|
3880
|
+
function Pi(e) {
|
|
3881
|
+
let t, r, n = K(
|
|
3912
3882
|
/*playerConsents*/
|
|
3913
3883
|
e[9]
|
|
3914
3884
|
), i = [];
|
|
3915
3885
|
for (let o = 0; o < n.length; o += 1)
|
|
3916
|
-
i[o] =
|
|
3886
|
+
i[o] = Ct(kt(e, n, o));
|
|
3917
3887
|
return {
|
|
3918
3888
|
c() {
|
|
3919
3889
|
t = A("div"), r = A("form");
|
|
@@ -3922,7 +3892,7 @@ function Fi(e) {
|
|
|
3922
3892
|
E(r, "class", "checkbox svelte-etk3ty"), E(t, "class", "legacyStyle");
|
|
3923
3893
|
},
|
|
3924
3894
|
m(o, a) {
|
|
3925
|
-
|
|
3895
|
+
j(o, t, a), S(t, r);
|
|
3926
3896
|
for (let s = 0; s < i.length; s += 1)
|
|
3927
3897
|
i[s] && i[s].m(r, null);
|
|
3928
3898
|
e[31](r);
|
|
@@ -3930,14 +3900,14 @@ function Fi(e) {
|
|
|
3930
3900
|
p(o, a) {
|
|
3931
3901
|
if (a[0] & /*playerConsents, $_, handleInput*/
|
|
3932
3902
|
590336) {
|
|
3933
|
-
n =
|
|
3903
|
+
n = K(
|
|
3934
3904
|
/*playerConsents*/
|
|
3935
3905
|
o[9]
|
|
3936
3906
|
);
|
|
3937
3907
|
let s;
|
|
3938
3908
|
for (s = 0; s < n.length; s += 1) {
|
|
3939
|
-
const h =
|
|
3940
|
-
i[s] ? i[s].p(h, a) : (i[s] =
|
|
3909
|
+
const h = kt(o, n, s);
|
|
3910
|
+
i[s] ? i[s].p(h, a) : (i[s] = Ct(h), i[s].c(), i[s].m(r, null));
|
|
3941
3911
|
}
|
|
3942
3912
|
for (; s < i.length; s += 1)
|
|
3943
3913
|
i[s].d(1);
|
|
@@ -3945,11 +3915,11 @@ function Fi(e) {
|
|
|
3945
3915
|
}
|
|
3946
3916
|
},
|
|
3947
3917
|
d(o) {
|
|
3948
|
-
o &&
|
|
3918
|
+
o && L(t), Qe(i, o), e[31](null);
|
|
3949
3919
|
}
|
|
3950
3920
|
};
|
|
3951
3921
|
}
|
|
3952
|
-
function
|
|
3922
|
+
function Bi(e) {
|
|
3953
3923
|
let t = (
|
|
3954
3924
|
/*$_*/
|
|
3955
3925
|
e[16]("title") || /*$_*/
|
|
@@ -3957,29 +3927,29 @@ function Vi(e) {
|
|
|
3957
3927
|
), r, n, i, o = (
|
|
3958
3928
|
/*$_*/
|
|
3959
3929
|
(e[16]("saveButtonContent") || "Save Consents") + ""
|
|
3960
|
-
), a, s, h, u, l, d = t &&
|
|
3930
|
+
), a, s, h, u, l, d = t && St(e), m = K(
|
|
3961
3931
|
/*consentsCategories*/
|
|
3962
3932
|
e[8]
|
|
3963
3933
|
), v = [];
|
|
3964
3934
|
for (let p = 0; p < m.length; p += 1)
|
|
3965
|
-
v[p] =
|
|
3935
|
+
v[p] = At(bt(e, m, p));
|
|
3966
3936
|
let f = (
|
|
3967
3937
|
/*errorMessage*/
|
|
3968
|
-
e[6] &&
|
|
3938
|
+
e[6] && Ht(e)
|
|
3969
3939
|
);
|
|
3970
3940
|
return {
|
|
3971
3941
|
c() {
|
|
3972
3942
|
d && d.c(), r = G();
|
|
3973
3943
|
for (let p = 0; p < v.length; p += 1)
|
|
3974
3944
|
v[p].c();
|
|
3975
|
-
n = G(), i = A("button"), s = G(), f && f.c(), h =
|
|
3945
|
+
n = G(), i = A("button"), s = G(), f && f.c(), h = Lr(), E(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
|
|
3976
3946
|
e[14];
|
|
3977
3947
|
},
|
|
3978
3948
|
m(p, C) {
|
|
3979
|
-
d && d.m(p, C),
|
|
3949
|
+
d && d.m(p, C), j(p, r, C);
|
|
3980
3950
|
for (let _ = 0; _ < v.length; _ += 1)
|
|
3981
3951
|
v[_] && v[_].m(p, C);
|
|
3982
|
-
|
|
3952
|
+
j(p, n, C), j(p, i, C), i.innerHTML = o, j(p, s, C), f && f.m(p, C), j(p, h, C), u || (l = he(
|
|
3983
3953
|
i,
|
|
3984
3954
|
"click",
|
|
3985
3955
|
/*saveChanges*/
|
|
@@ -3990,16 +3960,16 @@ function Vi(e) {
|
|
|
3990
3960
|
if (C[0] & /*$_*/
|
|
3991
3961
|
65536 && (t = /*$_*/
|
|
3992
3962
|
p[16]("title") || /*$_*/
|
|
3993
|
-
p[16]("description")), t ? d ? d.p(p, C) : (d =
|
|
3963
|
+
p[16]("description")), t ? d ? d.p(p, C) : (d = St(p), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), C[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
|
|
3994
3964
|
867088) {
|
|
3995
|
-
m =
|
|
3965
|
+
m = K(
|
|
3996
3966
|
/*consentsCategories*/
|
|
3997
3967
|
p[8]
|
|
3998
3968
|
);
|
|
3999
3969
|
let _;
|
|
4000
3970
|
for (_ = 0; _ < m.length; _ += 1) {
|
|
4001
|
-
const y =
|
|
4002
|
-
v[_] ? v[_].p(y, C) : (v[_] =
|
|
3971
|
+
const y = bt(p, m, _);
|
|
3972
|
+
v[_] ? v[_].p(y, C) : (v[_] = At(y), v[_].c(), v[_].m(n.parentNode, n));
|
|
4003
3973
|
}
|
|
4004
3974
|
for (; _ < v.length; _ += 1)
|
|
4005
3975
|
v[_].d(1);
|
|
@@ -4010,53 +3980,53 @@ function Vi(e) {
|
|
|
4010
3980
|
(p[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), C[0] & /*isValid*/
|
|
4011
3981
|
16384 && a !== (a = !/*isValid*/
|
|
4012
3982
|
p[14]) && (i.disabled = a), /*errorMessage*/
|
|
4013
|
-
p[6] ? f ? f.p(p, C) : (f =
|
|
3983
|
+
p[6] ? f ? f.p(p, C) : (f = Ht(p), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
|
|
4014
3984
|
},
|
|
4015
3985
|
d(p) {
|
|
4016
|
-
p && (
|
|
3986
|
+
p && (L(r), L(n), L(i), L(s), L(h)), d && d.d(p), Qe(v, p), f && f.d(p), u = !1, l();
|
|
4017
3987
|
}
|
|
4018
3988
|
};
|
|
4019
3989
|
}
|
|
4020
|
-
function
|
|
3990
|
+
function zi(e) {
|
|
4021
3991
|
let t, r, n;
|
|
4022
3992
|
return {
|
|
4023
3993
|
c() {
|
|
4024
|
-
t = A("div"), r = A("strong"), n =
|
|
3994
|
+
t = A("div"), r = A("strong"), n = pe(
|
|
4025
3995
|
/*fatalError*/
|
|
4026
3996
|
e[7]
|
|
4027
3997
|
), E(r, "class", "ErrorMessage svelte-etk3ty"), E(t, "class", "ContainerCenter svelte-etk3ty");
|
|
4028
3998
|
},
|
|
4029
3999
|
m(i, o) {
|
|
4030
|
-
|
|
4000
|
+
j(i, t, o), S(t, r), S(r, n);
|
|
4031
4001
|
},
|
|
4032
4002
|
p(i, o) {
|
|
4033
4003
|
o[0] & /*fatalError*/
|
|
4034
|
-
128 &&
|
|
4004
|
+
128 && ge(
|
|
4035
4005
|
n,
|
|
4036
4006
|
/*fatalError*/
|
|
4037
4007
|
i[7]
|
|
4038
4008
|
);
|
|
4039
4009
|
},
|
|
4040
4010
|
d(i) {
|
|
4041
|
-
i &&
|
|
4011
|
+
i && L(t);
|
|
4042
4012
|
}
|
|
4043
4013
|
};
|
|
4044
4014
|
}
|
|
4045
|
-
function
|
|
4015
|
+
function Oi(e) {
|
|
4046
4016
|
let t;
|
|
4047
4017
|
return {
|
|
4048
4018
|
c() {
|
|
4049
|
-
t = A("general-animation-loading"),
|
|
4019
|
+
t = A("general-animation-loading"), J(
|
|
4050
4020
|
t,
|
|
4051
4021
|
"clientstyling",
|
|
4052
4022
|
/*clientstyling*/
|
|
4053
4023
|
e[1]
|
|
4054
|
-
),
|
|
4024
|
+
), J(
|
|
4055
4025
|
t,
|
|
4056
4026
|
"clientstylingurl",
|
|
4057
4027
|
/*clientstylingurl*/
|
|
4058
4028
|
e[2]
|
|
4059
|
-
),
|
|
4029
|
+
), J(
|
|
4060
4030
|
t,
|
|
4061
4031
|
"mbsource",
|
|
4062
4032
|
/*mbsource*/
|
|
@@ -4064,23 +4034,23 @@ function qi(e) {
|
|
|
4064
4034
|
);
|
|
4065
4035
|
},
|
|
4066
4036
|
m(r, n) {
|
|
4067
|
-
|
|
4037
|
+
j(r, t, n);
|
|
4068
4038
|
},
|
|
4069
4039
|
p(r, n) {
|
|
4070
4040
|
n[0] & /*clientstyling*/
|
|
4071
|
-
2 &&
|
|
4041
|
+
2 && J(
|
|
4072
4042
|
t,
|
|
4073
4043
|
"clientstyling",
|
|
4074
4044
|
/*clientstyling*/
|
|
4075
4045
|
r[1]
|
|
4076
4046
|
), n[0] & /*clientstylingurl*/
|
|
4077
|
-
4 &&
|
|
4047
|
+
4 && J(
|
|
4078
4048
|
t,
|
|
4079
4049
|
"clientstylingurl",
|
|
4080
4050
|
/*clientstylingurl*/
|
|
4081
4051
|
r[2]
|
|
4082
4052
|
), n[0] & /*mbsource*/
|
|
4083
|
-
8 &&
|
|
4053
|
+
8 && J(
|
|
4084
4054
|
t,
|
|
4085
4055
|
"mbsource",
|
|
4086
4056
|
/*mbsource*/
|
|
@@ -4088,11 +4058,11 @@ function qi(e) {
|
|
|
4088
4058
|
);
|
|
4089
4059
|
},
|
|
4090
4060
|
d(r) {
|
|
4091
|
-
r &&
|
|
4061
|
+
r && L(t);
|
|
4092
4062
|
}
|
|
4093
4063
|
};
|
|
4094
4064
|
}
|
|
4095
|
-
function
|
|
4065
|
+
function Ct(e) {
|
|
4096
4066
|
let t, r, n, i, o, a, s, h, u = (
|
|
4097
4067
|
/*$_*/
|
|
4098
4068
|
(e[16](`${/*consent*/
|
|
@@ -4102,7 +4072,7 @@ function Nt(e) {
|
|
|
4102
4072
|
/*consent*/
|
|
4103
4073
|
e[64].mustAccept ? " *" : ""
|
|
4104
4074
|
), d, m, v, f, p, C, _, y, x;
|
|
4105
|
-
function
|
|
4075
|
+
function P(...b) {
|
|
4106
4076
|
return (
|
|
4107
4077
|
/*input_handler_1*/
|
|
4108
4078
|
e[30](
|
|
@@ -4114,126 +4084,126 @@ function Nt(e) {
|
|
|
4114
4084
|
}
|
|
4115
4085
|
return {
|
|
4116
4086
|
c() {
|
|
4117
|
-
t = A("div"), r = A("input"), o = G(), a = A("label"), s = A("div"), h = new
|
|
4087
|
+
t = A("div"), r = A("input"), o = G(), a = A("label"), s = A("div"), h = new It(!1), d = pe(l), v = G(), f = A("small"), C = G(), E(r, "class", "checkbox__input svelte-etk3ty"), E(r, "type", "checkbox"), r.checked = n = /*consent*/
|
|
4118
4088
|
e[64].status === "1", E(r, "id", i = `${/*consent*/
|
|
4119
4089
|
e[64].tagCode}__input`), h.a = d, E(s, "class", "checkbox__label-text svelte-etk3ty"), E(a, "class", "checkbox__label svelte-etk3ty"), E(a, "for", m = `${/*consent*/
|
|
4120
4090
|
e[64].tagCode}__input`), E(f, "class", "checkbox__error-message svelte-etk3ty"), E(f, "id", p = "checkBoxError__" + /*consent*/
|
|
4121
4091
|
e[64].tagCode), E(t, "class", _ = "checkbox__wrapper " + /*consent*/
|
|
4122
4092
|
e[64].tagCode + "__input svelte-etk3ty");
|
|
4123
4093
|
},
|
|
4124
|
-
m(b,
|
|
4125
|
-
|
|
4094
|
+
m(b, z) {
|
|
4095
|
+
j(b, t, z), S(t, r), S(t, o), S(t, a), S(a, s), h.m(u, s), S(s, d), S(t, v), S(t, f), S(t, C), y || (x = he(r, "input", P), y = !0);
|
|
4126
4096
|
},
|
|
4127
|
-
p(b,
|
|
4128
|
-
e = b,
|
|
4097
|
+
p(b, z) {
|
|
4098
|
+
e = b, z[0] & /*playerConsents*/
|
|
4129
4099
|
512 && n !== (n = /*consent*/
|
|
4130
|
-
e[64].status === "1") && (r.checked = n),
|
|
4100
|
+
e[64].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
|
|
4131
4101
|
512 && i !== (i = `${/*consent*/
|
|
4132
|
-
e[64].tagCode}__input`) && E(r, "id", i),
|
|
4102
|
+
e[64].tagCode}__input`) && E(r, "id", i), z[0] & /*$_, playerConsents*/
|
|
4133
4103
|
66048 && u !== (u = /*$_*/
|
|
4134
4104
|
(e[16](`${/*consent*/
|
|
4135
4105
|
e[64].tagCode}__description`) || /*consent*/
|
|
4136
|
-
e[64].tagCode) + "") && h.p(u),
|
|
4106
|
+
e[64].tagCode) + "") && h.p(u), z[0] & /*playerConsents*/
|
|
4137
4107
|
512 && l !== (l = /*consent*/
|
|
4138
|
-
e[64].mustAccept ? " *" : "") &&
|
|
4108
|
+
e[64].mustAccept ? " *" : "") && ge(d, l), z[0] & /*playerConsents*/
|
|
4139
4109
|
512 && m !== (m = `${/*consent*/
|
|
4140
|
-
e[64].tagCode}__input`) && E(a, "for", m),
|
|
4110
|
+
e[64].tagCode}__input`) && E(a, "for", m), z[0] & /*playerConsents*/
|
|
4141
4111
|
512 && p !== (p = "checkBoxError__" + /*consent*/
|
|
4142
|
-
e[64].tagCode) && E(f, "id", p),
|
|
4112
|
+
e[64].tagCode) && E(f, "id", p), z[0] & /*playerConsents*/
|
|
4143
4113
|
512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
|
|
4144
4114
|
e[64].tagCode + "__input svelte-etk3ty") && E(t, "class", _);
|
|
4145
4115
|
},
|
|
4146
4116
|
d(b) {
|
|
4147
|
-
b &&
|
|
4117
|
+
b && L(t), y = !1, x();
|
|
4148
4118
|
}
|
|
4149
4119
|
};
|
|
4150
4120
|
}
|
|
4151
|
-
function
|
|
4121
|
+
function St(e) {
|
|
4152
4122
|
let t, r = (
|
|
4153
4123
|
/*$_*/
|
|
4154
4124
|
e[16]("title")
|
|
4155
4125
|
), n, i = (
|
|
4156
4126
|
/*$_*/
|
|
4157
4127
|
e[16]("description")
|
|
4158
|
-
), o = r &&
|
|
4128
|
+
), o = r && xt(e), a = i && Mt(e);
|
|
4159
4129
|
return {
|
|
4160
4130
|
c() {
|
|
4161
4131
|
t = A("div"), o && o.c(), n = G(), a && a.c(), E(t, "class", "PlayerConsentsHeader svelte-etk3ty");
|
|
4162
4132
|
},
|
|
4163
4133
|
m(s, h) {
|
|
4164
|
-
|
|
4134
|
+
j(s, t, h), o && o.m(t, null), S(t, n), a && a.m(t, null);
|
|
4165
4135
|
},
|
|
4166
4136
|
p(s, h) {
|
|
4167
4137
|
h[0] & /*$_*/
|
|
4168
4138
|
65536 && (r = /*$_*/
|
|
4169
|
-
s[16]("title")), r ? o ? o.p(s, h) : (o =
|
|
4139
|
+
s[16]("title")), r ? o ? o.p(s, h) : (o = xt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
|
|
4170
4140
|
65536 && (i = /*$_*/
|
|
4171
|
-
s[16]("description")), i ? a ? a.p(s, h) : (a =
|
|
4141
|
+
s[16]("description")), i ? a ? a.p(s, h) : (a = Mt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4172
4142
|
},
|
|
4173
4143
|
d(s) {
|
|
4174
|
-
s &&
|
|
4144
|
+
s && L(t), o && o.d(), a && a.d();
|
|
4175
4145
|
}
|
|
4176
4146
|
};
|
|
4177
4147
|
}
|
|
4178
|
-
function
|
|
4148
|
+
function xt(e) {
|
|
4179
4149
|
let t, r = (
|
|
4180
4150
|
/*$_*/
|
|
4181
4151
|
e[16]("title") + ""
|
|
4182
4152
|
), n;
|
|
4183
4153
|
return {
|
|
4184
4154
|
c() {
|
|
4185
|
-
t = A("h2"), n =
|
|
4155
|
+
t = A("h2"), n = pe(r), E(t, "class", "PlayerConsentsTitle");
|
|
4186
4156
|
},
|
|
4187
4157
|
m(i, o) {
|
|
4188
|
-
|
|
4158
|
+
j(i, t, o), S(t, n);
|
|
4189
4159
|
},
|
|
4190
4160
|
p(i, o) {
|
|
4191
4161
|
o[0] & /*$_*/
|
|
4192
4162
|
65536 && r !== (r = /*$_*/
|
|
4193
|
-
i[16]("title") + "") &&
|
|
4163
|
+
i[16]("title") + "") && ge(n, r);
|
|
4194
4164
|
},
|
|
4195
4165
|
d(i) {
|
|
4196
|
-
i &&
|
|
4166
|
+
i && L(t);
|
|
4197
4167
|
}
|
|
4198
4168
|
};
|
|
4199
4169
|
}
|
|
4200
|
-
function
|
|
4170
|
+
function Mt(e) {
|
|
4201
4171
|
let t, r = (
|
|
4202
4172
|
/*$_*/
|
|
4203
4173
|
e[16]("description") + ""
|
|
4204
4174
|
), n;
|
|
4205
4175
|
return {
|
|
4206
4176
|
c() {
|
|
4207
|
-
t = A("p"), n =
|
|
4177
|
+
t = A("p"), n = pe(r), E(t, "class", "PlayerConsentsDescription");
|
|
4208
4178
|
},
|
|
4209
4179
|
m(i, o) {
|
|
4210
|
-
|
|
4180
|
+
j(i, t, o), S(t, n);
|
|
4211
4181
|
},
|
|
4212
4182
|
p(i, o) {
|
|
4213
4183
|
o[0] & /*$_*/
|
|
4214
4184
|
65536 && r !== (r = /*$_*/
|
|
4215
|
-
i[16]("description") + "") &&
|
|
4185
|
+
i[16]("description") + "") && ge(n, r);
|
|
4216
4186
|
},
|
|
4217
4187
|
d(i) {
|
|
4218
|
-
i &&
|
|
4188
|
+
i && L(t);
|
|
4219
4189
|
}
|
|
4220
4190
|
};
|
|
4221
4191
|
}
|
|
4222
|
-
function
|
|
4192
|
+
function Tt(e) {
|
|
4223
4193
|
let t;
|
|
4224
4194
|
return {
|
|
4225
4195
|
c() {
|
|
4226
4196
|
t = A("sup"), t.textContent = "*", E(t, "class", "ConsentRequired svelte-etk3ty");
|
|
4227
4197
|
},
|
|
4228
4198
|
m(r, n) {
|
|
4229
|
-
|
|
4199
|
+
j(r, t, n);
|
|
4230
4200
|
},
|
|
4231
4201
|
d(r) {
|
|
4232
|
-
r &&
|
|
4202
|
+
r && L(t);
|
|
4233
4203
|
}
|
|
4234
4204
|
};
|
|
4235
4205
|
}
|
|
4236
|
-
function
|
|
4206
|
+
function wt(e) {
|
|
4237
4207
|
let t, r = (
|
|
4238
4208
|
/*$_*/
|
|
4239
4209
|
(e[16](`${/*consent*/
|
|
@@ -4245,7 +4215,7 @@ function Ot(e) {
|
|
|
4245
4215
|
t = A("p"), E(t, "class", "ConsentDescription svelte-etk3ty");
|
|
4246
4216
|
},
|
|
4247
4217
|
m(n, i) {
|
|
4248
|
-
|
|
4218
|
+
j(n, t, i), t.innerHTML = r;
|
|
4249
4219
|
},
|
|
4250
4220
|
p(n, i) {
|
|
4251
4221
|
i[0] & /*$_, playerConsents, consentsCategories*/
|
|
@@ -4255,11 +4225,11 @@ function Ot(e) {
|
|
|
4255
4225
|
n[64].description) + "") && (t.innerHTML = r);
|
|
4256
4226
|
},
|
|
4257
4227
|
d(n) {
|
|
4258
|
-
n &&
|
|
4228
|
+
n && L(t);
|
|
4259
4229
|
}
|
|
4260
4230
|
};
|
|
4261
4231
|
}
|
|
4262
|
-
function
|
|
4232
|
+
function Nt(e) {
|
|
4263
4233
|
let t, r, n, i, o = (
|
|
4264
4234
|
/*$_*/
|
|
4265
4235
|
(e[16](`${/*consent*/
|
|
@@ -4267,24 +4237,24 @@ function zt(e) {
|
|
|
4267
4237
|
e[64].friendlyName) + ""
|
|
4268
4238
|
), a, s, h, u, l, d, m, v, f, p, C, _ = (
|
|
4269
4239
|
/*consent*/
|
|
4270
|
-
e[64].mustAccept === !0 &&
|
|
4240
|
+
e[64].mustAccept === !0 && Tt()
|
|
4271
4241
|
), y = (
|
|
4272
4242
|
/*displayconsentdescription*/
|
|
4273
|
-
e[4] === "true" &&
|
|
4243
|
+
e[4] === "true" && wt(e)
|
|
4274
4244
|
);
|
|
4275
|
-
function x(...
|
|
4245
|
+
function x(...P) {
|
|
4276
4246
|
return (
|
|
4277
4247
|
/*input_handler*/
|
|
4278
4248
|
e[29](
|
|
4279
4249
|
/*consent*/
|
|
4280
4250
|
e[64],
|
|
4281
|
-
...
|
|
4251
|
+
...P
|
|
4282
4252
|
)
|
|
4283
4253
|
);
|
|
4284
4254
|
}
|
|
4285
4255
|
return {
|
|
4286
4256
|
c() {
|
|
4287
|
-
t = A("div"), r = A("div"), n = A("h4"), i = new
|
|
4257
|
+
t = A("div"), r = A("div"), n = A("h4"), i = new It(!1), a = G(), _ && _.c(), s = G(), y && y.c(), h = G(), u = A("label"), l = A("input"), v = G(), f = A("span"), i.a = a, E(n, "class", "ConsentName svelte-etk3ty"), E(r, "class", "ConsentContent"), E(l, "type", "checkbox"), l.disabled = d = /*consent*/
|
|
4288
4258
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4289
4259
|
e[12][
|
|
4290
4260
|
/*consent*/
|
|
@@ -4295,17 +4265,17 @@ function zt(e) {
|
|
|
4295
4265
|
e[64].tagCode
|
|
4296
4266
|
], E(l, "class", "svelte-etk3ty"), E(f, "class", "Slider Round svelte-etk3ty"), E(u, "class", "ToggleSwitch svelte-etk3ty"), E(t, "class", "ConsentItem svelte-etk3ty");
|
|
4297
4267
|
},
|
|
4298
|
-
m(
|
|
4299
|
-
|
|
4268
|
+
m(P, b) {
|
|
4269
|
+
j(P, t, b), S(t, r), S(r, n), i.m(o, n), S(n, a), _ && _.m(n, null), S(r, s), y && y.m(r, null), S(t, h), S(t, u), S(u, l), S(u, v), S(u, f), p || (C = he(l, "input", x), p = !0);
|
|
4300
4270
|
},
|
|
4301
|
-
p(
|
|
4302
|
-
e =
|
|
4271
|
+
p(P, b) {
|
|
4272
|
+
e = P, b[0] & /*$_, playerConsents, consentsCategories*/
|
|
4303
4273
|
66304 && o !== (o = /*$_*/
|
|
4304
4274
|
(e[16](`${/*consent*/
|
|
4305
4275
|
e[64].tagCode}__name`) || /*consent*/
|
|
4306
4276
|
e[64].friendlyName) + "") && i.p(o), /*consent*/
|
|
4307
|
-
e[64].mustAccept === !0 ? _ || (_ =
|
|
4308
|
-
e[4] === "true" ? y ? y.p(e, b) : (y =
|
|
4277
|
+
e[64].mustAccept === !0 ? _ || (_ = Tt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
|
|
4278
|
+
e[4] === "true" ? y ? y.p(e, b) : (y = wt(e), y.c(), y.m(r, null)) : y && (y.d(1), y = null), b[0] & /*playerConsents, consentsCategories, initialConsentsState*/
|
|
4309
4279
|
4864 && d !== (d = /*consent*/
|
|
4310
4280
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4311
4281
|
e[12][
|
|
@@ -4318,12 +4288,12 @@ function zt(e) {
|
|
|
4318
4288
|
e[64].tagCode
|
|
4319
4289
|
]) && (l.checked = m);
|
|
4320
4290
|
},
|
|
4321
|
-
d(
|
|
4322
|
-
|
|
4291
|
+
d(P) {
|
|
4292
|
+
P && L(t), _ && _.d(), y && y.d(), p = !1, C();
|
|
4323
4293
|
}
|
|
4324
4294
|
};
|
|
4325
4295
|
}
|
|
4326
|
-
function
|
|
4296
|
+
function At(e) {
|
|
4327
4297
|
let t, r, n, i = (
|
|
4328
4298
|
/*$_*/
|
|
4329
4299
|
(e[16](`${/*category*/
|
|
@@ -4356,12 +4326,12 @@ function It(e) {
|
|
|
4356
4326
|
)
|
|
4357
4327
|
);
|
|
4358
4328
|
}
|
|
4359
|
-
let _ =
|
|
4329
|
+
let _ = K(
|
|
4360
4330
|
/*playerConsents*/
|
|
4361
4331
|
e[9].filter(C)
|
|
4362
4332
|
), y = [];
|
|
4363
4333
|
for (let x = 0; x < _.length; x += 1)
|
|
4364
|
-
y[x] =
|
|
4334
|
+
y[x] = Nt(Et(e, _, x));
|
|
4365
4335
|
return {
|
|
4366
4336
|
c() {
|
|
4367
4337
|
t = A("div"), r = A("div"), n = A("h3"), o = G(), a = A("label"), s = A("input"), h = G(), u = A("span"), l = G(), d = A("div");
|
|
@@ -4369,8 +4339,8 @@ function It(e) {
|
|
|
4369
4339
|
y[x].c();
|
|
4370
4340
|
E(s, "type", "checkbox"), E(s, "class", "svelte-etk3ty"), E(u, "class", "Slider Round svelte-etk3ty"), E(a, "class", "ToggleSwitch Big svelte-etk3ty"), E(r, "class", "AccordionHeader svelte-etk3ty"), E(d, "class", "AccordionContent svelte-etk3ty"), E(t, "class", "AccordionItem svelte-etk3ty");
|
|
4371
4341
|
},
|
|
4372
|
-
m(x,
|
|
4373
|
-
|
|
4342
|
+
m(x, P) {
|
|
4343
|
+
j(x, t, P), S(t, r), S(r, n), n.innerHTML = i, S(r, o), S(r, a), S(a, s), s.checked = /*categoryToggle*/
|
|
4374
4344
|
e[11][
|
|
4375
4345
|
/*category*/
|
|
4376
4346
|
e[61].categoryTagCode
|
|
@@ -4378,30 +4348,30 @@ function It(e) {
|
|
|
4378
4348
|
for (let b = 0; b < y.length; b += 1)
|
|
4379
4349
|
y[b] && y[b].m(d, null);
|
|
4380
4350
|
m || (v = [
|
|
4381
|
-
|
|
4382
|
-
|
|
4351
|
+
he(s, "change", f),
|
|
4352
|
+
he(s, "change", p)
|
|
4383
4353
|
], m = !0);
|
|
4384
4354
|
},
|
|
4385
|
-
p(x,
|
|
4386
|
-
if (e = x,
|
|
4355
|
+
p(x, P) {
|
|
4356
|
+
if (e = x, P[0] & /*$_, consentsCategories*/
|
|
4387
4357
|
65792 && i !== (i = /*$_*/
|
|
4388
4358
|
(e[16](`${/*category*/
|
|
4389
4359
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
4390
|
-
e[61].friendlyName) + "") && (n.innerHTML = i),
|
|
4360
|
+
e[61].friendlyName) + "") && (n.innerHTML = i), P[0] & /*categoryToggle, consentsCategories*/
|
|
4391
4361
|
2304 && (s.checked = /*categoryToggle*/
|
|
4392
4362
|
e[11][
|
|
4393
4363
|
/*category*/
|
|
4394
4364
|
e[61].categoryTagCode
|
|
4395
|
-
]),
|
|
4365
|
+
]), P[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
|
|
4396
4366
|
602896) {
|
|
4397
|
-
_ =
|
|
4367
|
+
_ = K(
|
|
4398
4368
|
/*playerConsents*/
|
|
4399
4369
|
e[9].filter(C)
|
|
4400
4370
|
);
|
|
4401
4371
|
let b;
|
|
4402
4372
|
for (b = 0; b < _.length; b += 1) {
|
|
4403
|
-
const
|
|
4404
|
-
y[b] ? y[b].p(
|
|
4373
|
+
const z = Et(e, _, b);
|
|
4374
|
+
y[b] ? y[b].p(z, P) : (y[b] = Nt(z), y[b].c(), y[b].m(d, null));
|
|
4405
4375
|
}
|
|
4406
4376
|
for (; b < y.length; b += 1)
|
|
4407
4377
|
y[b].d(1);
|
|
@@ -4409,144 +4379,145 @@ function It(e) {
|
|
|
4409
4379
|
}
|
|
4410
4380
|
},
|
|
4411
4381
|
d(x) {
|
|
4412
|
-
x &&
|
|
4382
|
+
x && L(t), Qe(y, x), m = !1, Pt(v);
|
|
4413
4383
|
}
|
|
4414
4384
|
};
|
|
4415
4385
|
}
|
|
4416
|
-
function
|
|
4386
|
+
function Ht(e) {
|
|
4417
4387
|
let t, r, n, i, o;
|
|
4418
4388
|
return {
|
|
4419
4389
|
c() {
|
|
4420
|
-
t = A("div"), r = A("circle-exclamation-icon"), n = G(), i = A("strong"), o =
|
|
4390
|
+
t = A("div"), r = A("circle-exclamation-icon"), n = G(), i = A("strong"), o = pe(
|
|
4421
4391
|
/*errorMessage*/
|
|
4422
4392
|
e[6]
|
|
4423
|
-
),
|
|
4393
|
+
), J(r, "class", "svelte-etk3ty"), E(i, "class", "ErrorMessage svelte-etk3ty"), E(t, "class", "ConsentErrorContainer svelte-etk3ty");
|
|
4424
4394
|
},
|
|
4425
4395
|
m(a, s) {
|
|
4426
|
-
|
|
4396
|
+
j(a, t, s), S(t, r), S(t, n), S(t, i), S(i, o);
|
|
4427
4397
|
},
|
|
4428
4398
|
p(a, s) {
|
|
4429
4399
|
s[0] & /*errorMessage*/
|
|
4430
|
-
64 &&
|
|
4400
|
+
64 && ge(
|
|
4431
4401
|
o,
|
|
4432
4402
|
/*errorMessage*/
|
|
4433
4403
|
a[6]
|
|
4434
4404
|
);
|
|
4435
4405
|
},
|
|
4436
4406
|
d(a) {
|
|
4437
|
-
a &&
|
|
4407
|
+
a && L(t);
|
|
4438
4408
|
}
|
|
4439
4409
|
};
|
|
4440
4410
|
}
|
|
4441
|
-
function
|
|
4411
|
+
function Ii(e) {
|
|
4442
4412
|
let t, r;
|
|
4443
4413
|
function n(a, s) {
|
|
4444
4414
|
if (
|
|
4445
4415
|
/*isLoading*/
|
|
4446
4416
|
a[10]
|
|
4447
4417
|
)
|
|
4448
|
-
return
|
|
4418
|
+
return Oi;
|
|
4449
4419
|
if (
|
|
4450
4420
|
/*fatalError*/
|
|
4451
4421
|
a[7]
|
|
4452
4422
|
)
|
|
4453
|
-
return
|
|
4423
|
+
return zi;
|
|
4454
4424
|
if (
|
|
4455
4425
|
/*session*/
|
|
4456
4426
|
a[0]
|
|
4457
4427
|
)
|
|
4458
|
-
return
|
|
4428
|
+
return Bi;
|
|
4459
4429
|
if (!/*session*/
|
|
4460
4430
|
a[0])
|
|
4461
|
-
return
|
|
4431
|
+
return Pi;
|
|
4462
4432
|
}
|
|
4463
4433
|
let i = n(e), o = i && i(e);
|
|
4464
4434
|
return {
|
|
4465
4435
|
c() {
|
|
4466
|
-
t = A("div"), r = A("div"), o && o.c(), E(r, "class", "ConsentsContainer svelte-etk3ty"), E(t, "class",
|
|
4436
|
+
t = A("div"), r = A("div"), o && o.c(), E(r, "class", "ConsentsContainer svelte-etk3ty"), E(t, "class", zr("") + " svelte-etk3ty");
|
|
4467
4437
|
},
|
|
4468
4438
|
m(a, s) {
|
|
4469
|
-
|
|
4439
|
+
j(a, t, s), S(t, r), o && o.m(r, null), e[32](r);
|
|
4470
4440
|
},
|
|
4471
4441
|
p(a, s) {
|
|
4472
4442
|
i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
|
|
4473
4443
|
},
|
|
4474
|
-
i:
|
|
4475
|
-
o:
|
|
4444
|
+
i: q,
|
|
4445
|
+
o: q,
|
|
4476
4446
|
d(a) {
|
|
4477
|
-
a &&
|
|
4447
|
+
a && L(t), o && o.d(), e[32](null);
|
|
4478
4448
|
}
|
|
4479
4449
|
};
|
|
4480
4450
|
}
|
|
4481
|
-
function
|
|
4451
|
+
function ji(e, t, r) {
|
|
4482
4452
|
let n;
|
|
4483
|
-
|
|
4484
|
-
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: v = "false" } = t, f, p = !1, C = !1, _ = "", y = "", x = "",
|
|
4453
|
+
Pr(e, Ti, (c) => r(16, n = c));
|
|
4454
|
+
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: v = "false" } = t, f, p = !1, C = !1, _ = "", y = "", x = "", P = "", b = [], z = [], O = [], ae = !0, _e = !0, F = {}, ye = {}, W = {}, U = {}, se, ve, R = {
|
|
4485
4455
|
none: { key: "0", value: "None" },
|
|
4486
4456
|
accepted: { key: "1", value: "Accepted" },
|
|
4487
4457
|
expired: { key: "2", value: "Expired" },
|
|
4488
4458
|
denied: { key: "3", value: "Denied" },
|
|
4489
4459
|
suspended: { key: "4", value: "Suspended" }
|
|
4490
|
-
},
|
|
4491
|
-
Object.keys(
|
|
4492
|
-
|
|
4460
|
+
}, ke = !1;
|
|
4461
|
+
Object.keys(vt).forEach((c) => {
|
|
4462
|
+
yt(c, vt[c]);
|
|
4493
4463
|
});
|
|
4494
|
-
const
|
|
4495
|
-
|
|
4496
|
-
},
|
|
4464
|
+
const sr = () => {
|
|
4465
|
+
wi(l);
|
|
4466
|
+
}, lr = () => {
|
|
4497
4467
|
let c = new URL(m);
|
|
4498
4468
|
fetch(c.href).then((g) => g.json()).then((g) => {
|
|
4499
|
-
Object.keys(g).forEach((
|
|
4500
|
-
|
|
4469
|
+
Object.keys(g).forEach((T) => {
|
|
4470
|
+
yt(T, g[T]);
|
|
4501
4471
|
});
|
|
4502
4472
|
}).catch((g) => {
|
|
4503
4473
|
console.log(g);
|
|
4504
4474
|
});
|
|
4505
|
-
},
|
|
4475
|
+
}, cr = () => {
|
|
4506
4476
|
i && (_ = i, C = !0), o && (y = o);
|
|
4507
|
-
},
|
|
4508
|
-
g ? r(7,
|
|
4509
|
-
},
|
|
4477
|
+
}, be = (c, g = !1) => {
|
|
4478
|
+
g ? r(7, P = c) : (gr(), r(6, x = c));
|
|
4479
|
+
}, le = async (c, g, T, k = !1) => {
|
|
4510
4480
|
try {
|
|
4511
|
-
const
|
|
4512
|
-
if (!
|
|
4481
|
+
const M = await fetch(c, T);
|
|
4482
|
+
if (!M.ok)
|
|
4513
4483
|
throw new Error(n(g));
|
|
4514
|
-
const I =
|
|
4484
|
+
const I = await M.json();
|
|
4515
4485
|
return C ? I : I.filter((V) => V.showOnRegister === !0);
|
|
4516
|
-
} catch (
|
|
4517
|
-
throw
|
|
4518
|
-
|
|
4486
|
+
} catch (M) {
|
|
4487
|
+
throw be(
|
|
4488
|
+
M instanceof TypeError ? n(g) : M.message,
|
|
4519
4489
|
k
|
|
4520
|
-
),
|
|
4490
|
+
), M;
|
|
4521
4491
|
}
|
|
4522
|
-
}
|
|
4492
|
+
}, ur = async () => {
|
|
4523
4493
|
try {
|
|
4524
4494
|
let c = [], g = [];
|
|
4525
|
-
if (C ? [c, g] =
|
|
4526
|
-
let k = O.find((
|
|
4527
|
-
k || (k =
|
|
4495
|
+
if (C ? [c, g] = await et() : c = await et(), r(10, ae = !1), z = [...c], r(8, b = dr(z).sort((T, k) => T.categoryTagCode.localeCompare(k.categoryTagCode))), r(11, F = mr(b)), ye = { ...F }, r(9, O = [...g]), z.forEach((T) => {
|
|
4496
|
+
let k = O.find((M) => M.tagCode === T.tagCode);
|
|
4497
|
+
k || (k = {
|
|
4498
|
+
...T,
|
|
4528
4499
|
status: R.denied.value
|
|
4529
|
-
}
|
|
4500
|
+
}, O.push(k)), k.description = T.description, k.orderNumber = T.orderNumber;
|
|
4530
4501
|
}), v === "true") {
|
|
4531
|
-
if (r(9, O = O.filter((
|
|
4502
|
+
if (r(9, O = O.filter((T) => T.status === R.expired.value)), O.length !== 0)
|
|
4532
4503
|
return;
|
|
4533
|
-
|
|
4504
|
+
be(n("wrongModalConfig"), !0);
|
|
4534
4505
|
}
|
|
4535
|
-
|
|
4506
|
+
pr();
|
|
4536
4507
|
} catch (c) {
|
|
4537
|
-
throw r(10,
|
|
4508
|
+
throw r(10, ae = !1), be(
|
|
4538
4509
|
c instanceof TypeError ? n("invalidUrl") : c.message,
|
|
4539
4510
|
!0
|
|
4540
4511
|
), c;
|
|
4541
4512
|
}
|
|
4542
|
-
}
|
|
4513
|
+
}, et = async () => {
|
|
4543
4514
|
const c = new URL(`${a}/api/v1/gm/consents`);
|
|
4544
4515
|
if (c.searchParams.append("Status", "Active"), !C)
|
|
4545
|
-
return
|
|
4516
|
+
return await le(c.href, "fetchConsentsError", { method: "GET" }, !0);
|
|
4546
4517
|
const g = new URL(`${a}/api/v1/gm/user-consents/${y}`);
|
|
4547
|
-
return
|
|
4548
|
-
|
|
4549
|
-
|
|
4518
|
+
return await Promise.all([
|
|
4519
|
+
le(c.href, "fetchConsentsError", { method: "GET" }, !0),
|
|
4520
|
+
le(g.href, "fetchPlayerConsentsError", {
|
|
4550
4521
|
method: "GET",
|
|
4551
4522
|
headers: {
|
|
4552
4523
|
"X-SessionId": _,
|
|
@@ -4554,63 +4525,63 @@ function Zi(e, t, r) {
|
|
|
4554
4525
|
}
|
|
4555
4526
|
})
|
|
4556
4527
|
]);
|
|
4557
|
-
}
|
|
4558
|
-
|
|
4528
|
+
}, hr = () => {
|
|
4529
|
+
ke = !1;
|
|
4559
4530
|
const c = new URL(`${a}/api/v2/gm/legislation/consents`), g = {
|
|
4560
4531
|
"Content-Type": "application/json",
|
|
4561
4532
|
Accept: "application/json"
|
|
4562
|
-
},
|
|
4563
|
-
fetch(c.href,
|
|
4564
|
-
if (!
|
|
4565
|
-
if (
|
|
4533
|
+
}, T = { method: "GET", headers: g };
|
|
4534
|
+
fetch(c.href, T).then((k) => k.ok ? k.json() : (ke = !0, k.json().then((M) => (console.error(M), Ee(M))))).then((k) => {
|
|
4535
|
+
if (!ke) {
|
|
4536
|
+
if (z = k, localStorage.getItem("playerConsents")) {
|
|
4566
4537
|
try {
|
|
4567
4538
|
r(9, O = JSON.parse(localStorage.getItem("playerConsents")));
|
|
4568
|
-
} catch (
|
|
4569
|
-
return console.error(
|
|
4539
|
+
} catch (M) {
|
|
4540
|
+
return console.error(M), Ee(M);
|
|
4570
4541
|
}
|
|
4571
4542
|
return;
|
|
4572
4543
|
}
|
|
4573
|
-
return r(9, O =
|
|
4574
|
-
id:
|
|
4544
|
+
return r(9, O = z.map((M) => ({
|
|
4545
|
+
id: M.id,
|
|
4575
4546
|
status: R.denied.key,
|
|
4576
|
-
friendlyName:
|
|
4577
|
-
tagCode:
|
|
4547
|
+
friendlyName: M.friendlyName,
|
|
4548
|
+
tagCode: M.tagCode,
|
|
4578
4549
|
selected: null,
|
|
4579
|
-
mustAccept:
|
|
4550
|
+
mustAccept: M.mustAccept
|
|
4580
4551
|
}))), localStorage.setItem("playerConsents", JSON.stringify(O)), O;
|
|
4581
4552
|
}
|
|
4582
|
-
}).catch((k) => (console.error(k),
|
|
4583
|
-
r(10,
|
|
4553
|
+
}).catch((k) => (console.error(k), Ee(k))).finally(() => {
|
|
4554
|
+
r(10, ae = !1);
|
|
4584
4555
|
});
|
|
4585
|
-
},
|
|
4556
|
+
}, dr = (c) => {
|
|
4586
4557
|
const g = /* @__PURE__ */ new Map();
|
|
4587
|
-
return c.forEach((
|
|
4588
|
-
g.has(
|
|
4558
|
+
return c.forEach((T) => {
|
|
4559
|
+
g.has(T.category.categoryTagCode) || g.set(T.category.categoryTagCode, T.category);
|
|
4589
4560
|
}), Array.from(g.values());
|
|
4590
|
-
},
|
|
4561
|
+
}, mr = (c) => {
|
|
4591
4562
|
const g = localStorage.getItem("categoryToggle" + y);
|
|
4592
4563
|
if (g === null) {
|
|
4593
|
-
const
|
|
4594
|
-
(k,
|
|
4564
|
+
const T = c.reduce(
|
|
4565
|
+
(k, M) => (k[M.categoryTagCode] = !1, k),
|
|
4595
4566
|
{}
|
|
4596
4567
|
);
|
|
4597
|
-
return localStorage.setItem("categoryToggle" + y, JSON.stringify(
|
|
4568
|
+
return localStorage.setItem("categoryToggle" + y, JSON.stringify(T)), T;
|
|
4598
4569
|
} else
|
|
4599
4570
|
return JSON.parse(g);
|
|
4600
|
-
},
|
|
4571
|
+
}, pr = () => {
|
|
4601
4572
|
O.forEach((c) => {
|
|
4602
|
-
r(12,
|
|
4603
|
-
}), r(13, U =
|
|
4604
|
-
},
|
|
4605
|
-
r(13, U =
|
|
4606
|
-
},
|
|
4607
|
-
if (!
|
|
4573
|
+
r(12, W[c.tagCode] = c.status === R.accepted.value, W);
|
|
4574
|
+
}), r(13, U = { ...W });
|
|
4575
|
+
}, gr = () => {
|
|
4576
|
+
r(13, U = { ...W }), r(11, F = { ...ye });
|
|
4577
|
+
}, fr = async () => {
|
|
4578
|
+
if (!_e)
|
|
4608
4579
|
return;
|
|
4609
|
-
|
|
4580
|
+
_e = !1;
|
|
4610
4581
|
const c = [], g = [];
|
|
4611
4582
|
if (Object.keys(U).forEach((k) => {
|
|
4612
|
-
const
|
|
4613
|
-
U[k] !==
|
|
4583
|
+
const M = O.find((I) => I.tagCode === k);
|
|
4584
|
+
U[k] !== W[k] && (M ? c.push({
|
|
4614
4585
|
tagCode: k,
|
|
4615
4586
|
status: U[k] ? R.accepted.value : R.denied.value
|
|
4616
4587
|
}) : g.push({
|
|
@@ -4618,19 +4589,19 @@ function Zi(e, t, r) {
|
|
|
4618
4589
|
status: U[k] ? R.accepted.value : R.denied.value
|
|
4619
4590
|
}));
|
|
4620
4591
|
}), !C) {
|
|
4621
|
-
localStorage.setItem("categoryToggle" + y, JSON.stringify(F)),
|
|
4592
|
+
localStorage.setItem("categoryToggle" + y, JSON.stringify(F)), ye = { ...F }, window.postMessage(
|
|
4622
4593
|
{
|
|
4623
4594
|
type: "NewPlayerConsentData",
|
|
4624
4595
|
data: JSON.stringify(g)
|
|
4625
4596
|
},
|
|
4626
4597
|
window.location.href
|
|
4627
|
-
),
|
|
4598
|
+
), _e = !0;
|
|
4628
4599
|
return;
|
|
4629
4600
|
}
|
|
4630
|
-
const
|
|
4601
|
+
const T = new URL(`${a}/api/v1/gm/user-consents/${y}`);
|
|
4631
4602
|
try {
|
|
4632
|
-
const k =
|
|
4633
|
-
g.length > 0 &&
|
|
4603
|
+
const k = await Promise.allSettled([
|
|
4604
|
+
g.length > 0 && le(T.href, "updateConsentsError", {
|
|
4634
4605
|
method: "POST",
|
|
4635
4606
|
headers: {
|
|
4636
4607
|
"X-SessionId": _,
|
|
@@ -4638,7 +4609,7 @@ function Zi(e, t, r) {
|
|
|
4638
4609
|
},
|
|
4639
4610
|
body: JSON.stringify({ userConsents: g })
|
|
4640
4611
|
}),
|
|
4641
|
-
c.length > 0 &&
|
|
4612
|
+
c.length > 0 && le(T.href, "updateConsentsError", {
|
|
4642
4613
|
method: "PATCH",
|
|
4643
4614
|
headers: {
|
|
4644
4615
|
"X-SessionId": _,
|
|
@@ -4647,20 +4618,20 @@ function Zi(e, t, r) {
|
|
|
4647
4618
|
body: JSON.stringify({ userConsents: c })
|
|
4648
4619
|
})
|
|
4649
4620
|
]);
|
|
4650
|
-
k.forEach((
|
|
4651
|
-
if (
|
|
4621
|
+
k.forEach((M, I) => {
|
|
4622
|
+
if (M.status === "rejected" || M.value.ok === !1) {
|
|
4652
4623
|
const V = I < g.length ? g[I] : c[I - g.length];
|
|
4653
|
-
r(13, U[V.tagCode] =
|
|
4624
|
+
r(13, U[V.tagCode] = W[V.tagCode], U);
|
|
4654
4625
|
}
|
|
4655
|
-
}), k.every((
|
|
4626
|
+
}), k.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + y, JSON.stringify(F)), ye = { ...F }, window.postMessage(
|
|
4656
4627
|
{
|
|
4657
4628
|
type: "PlayerConsentUpdated",
|
|
4658
4629
|
success: !0
|
|
4659
4630
|
},
|
|
4660
4631
|
window.location.href
|
|
4661
|
-
), r(12,
|
|
4632
|
+
), r(12, W = { ...U }));
|
|
4662
4633
|
} catch (k) {
|
|
4663
|
-
|
|
4634
|
+
be(k instanceof TypeError ? n("saveChangesError") : k.message), window.postMessage(
|
|
4664
4635
|
{
|
|
4665
4636
|
type: "PlayerConsentUpdated",
|
|
4666
4637
|
success: !1
|
|
@@ -4668,58 +4639,58 @@ function Zi(e, t, r) {
|
|
|
4668
4639
|
window.location.href
|
|
4669
4640
|
);
|
|
4670
4641
|
} finally {
|
|
4671
|
-
|
|
4642
|
+
_e = !0, r(14, se = !1);
|
|
4672
4643
|
}
|
|
4673
|
-
}
|
|
4674
|
-
const g = new URL(`${a}/api/v2/gm/legislation/consents`),
|
|
4644
|
+
}, _r = (c) => {
|
|
4645
|
+
const g = new URL(`${a}/api/v2/gm/legislation/consents`), T = {
|
|
4675
4646
|
"Content-Type": "application/json",
|
|
4676
4647
|
Accept: "application/json"
|
|
4677
4648
|
}, k = {
|
|
4678
4649
|
playerConsents: O,
|
|
4679
4650
|
registrationId: c
|
|
4680
|
-
},
|
|
4651
|
+
}, M = {
|
|
4681
4652
|
method: "POST",
|
|
4682
4653
|
body: JSON.stringify(k),
|
|
4683
|
-
headers:
|
|
4654
|
+
headers: T
|
|
4684
4655
|
};
|
|
4685
|
-
fetch(g.href,
|
|
4686
|
-
I.ok || (
|
|
4687
|
-
}).catch((I) => (console.error(I),
|
|
4688
|
-
r(10,
|
|
4656
|
+
fetch(g.href, M).then((I) => {
|
|
4657
|
+
I.ok || (ke = !0);
|
|
4658
|
+
}).catch((I) => (console.error(I), Ee(I))).finally(() => {
|
|
4659
|
+
r(10, ae = !1);
|
|
4689
4660
|
});
|
|
4690
|
-
},
|
|
4661
|
+
}, tt = (c) => {
|
|
4691
4662
|
O.filter((g) => g.category.categoryTagCode === c).forEach((g) => {
|
|
4692
4663
|
g.status = g.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[g.tagCode] = F[c] || !1, U);
|
|
4693
|
-
}), r(14,
|
|
4694
|
-
},
|
|
4695
|
-
const k = O.find((V) => V.id ===
|
|
4664
|
+
}), r(14, se = rt());
|
|
4665
|
+
}, Be = (c, g, T) => {
|
|
4666
|
+
const k = O.find((V) => V.id === T), M = g ? "value" : "key";
|
|
4696
4667
|
let I;
|
|
4697
4668
|
if (!g && k.mustAccept) {
|
|
4698
|
-
const V = Array.from(
|
|
4699
|
-
for (const
|
|
4700
|
-
if (I = Array.from(
|
|
4669
|
+
const V = Array.from(ve.children);
|
|
4670
|
+
for (const ce of V)
|
|
4671
|
+
if (I = Array.from(ce.children).find((wr) => wr.getAttribute("id") === `checkBoxError__${k.tagCode}`), I)
|
|
4701
4672
|
break;
|
|
4702
4673
|
}
|
|
4703
|
-
if (k.status === R.accepted[
|
|
4674
|
+
if (k.status === R.accepted[M] ? (k.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (k.status = R.accepted[M], I && (I.innerHTML = "")), g) {
|
|
4704
4675
|
r(13, U[k.tagCode] = !U[k.tagCode], U);
|
|
4705
|
-
const V = O.filter((
|
|
4676
|
+
const V = O.filter((ce) => ce.category.categoryTagCode === g.categoryTagCode).every((ce) => ce.status !== R.denied.value);
|
|
4706
4677
|
r(11, F[g.categoryTagCode] = V, F);
|
|
4707
4678
|
}
|
|
4708
|
-
|
|
4709
|
-
},
|
|
4710
|
-
let
|
|
4679
|
+
yr();
|
|
4680
|
+
}, yr = ((c, g) => {
|
|
4681
|
+
let T;
|
|
4711
4682
|
return function(...k) {
|
|
4712
|
-
const
|
|
4713
|
-
clearTimeout(
|
|
4683
|
+
const M = this;
|
|
4684
|
+
clearTimeout(T), T = setTimeout(
|
|
4714
4685
|
() => {
|
|
4715
|
-
c.apply(
|
|
4686
|
+
c.apply(M, k);
|
|
4716
4687
|
},
|
|
4717
4688
|
g
|
|
4718
4689
|
);
|
|
4719
4690
|
};
|
|
4720
|
-
})(() =>
|
|
4721
|
-
r(14,
|
|
4722
|
-
},
|
|
4691
|
+
})(() => vr(), 500), vr = () => {
|
|
4692
|
+
r(14, se = rt()), i || (window.postMessage({ type: "isConsentsValid", isValid: se }), localStorage.setItem("playerConsents", JSON.stringify(O)));
|
|
4693
|
+
}, rt = () => O.filter((g) => O.some((T) => g.tagCode === T.tagCode && T.mustAccept && (g.status === R.denied.key || g.status === R.denied.value))).length === 0, Ee = (c) => {
|
|
4723
4694
|
window.postMessage(
|
|
4724
4695
|
{
|
|
4725
4696
|
type: "WidgetNotification",
|
|
@@ -4727,32 +4698,32 @@ function Zi(e, t, r) {
|
|
|
4727
4698
|
},
|
|
4728
4699
|
window.location.href
|
|
4729
4700
|
);
|
|
4730
|
-
},
|
|
4731
|
-
c.data && c.data.type !== "setUpPlayerConsents" ||
|
|
4701
|
+
}, kr = (c) => {
|
|
4702
|
+
c.data && c.data.type !== "setUpPlayerConsents" || _r(c.data.registerid);
|
|
4732
4703
|
};
|
|
4733
|
-
|
|
4704
|
+
Br(() => {
|
|
4734
4705
|
setTimeout(
|
|
4735
4706
|
() => {
|
|
4736
4707
|
r(25, p = !0);
|
|
4737
4708
|
},
|
|
4738
4709
|
50
|
|
4739
4710
|
);
|
|
4740
|
-
const c = (g) =>
|
|
4711
|
+
const c = (g) => kr(g);
|
|
4741
4712
|
return window.addEventListener("message", c), () => {
|
|
4742
4713
|
window.removeEventListener("message", c);
|
|
4743
4714
|
};
|
|
4744
4715
|
});
|
|
4745
|
-
function
|
|
4716
|
+
function br(c) {
|
|
4746
4717
|
F[c.categoryTagCode] = this.checked, r(11, F);
|
|
4747
4718
|
}
|
|
4748
|
-
const
|
|
4749
|
-
function
|
|
4750
|
-
|
|
4751
|
-
|
|
4719
|
+
const Er = (c) => tt(c.categoryTagCode), Cr = (c, g) => g.category.categoryTagCode === c.categoryTagCode, Sr = (c, g) => Be(g, c.category, c.id), xr = (c, g) => Be(g, null, c.id);
|
|
4720
|
+
function Mr(c) {
|
|
4721
|
+
it[c ? "unshift" : "push"](() => {
|
|
4722
|
+
ve = c, r(15, ve);
|
|
4752
4723
|
});
|
|
4753
4724
|
}
|
|
4754
|
-
function
|
|
4755
|
-
|
|
4725
|
+
function Tr(c) {
|
|
4726
|
+
it[c ? "unshift" : "push"](() => {
|
|
4756
4727
|
f = c, r(5, f);
|
|
4757
4728
|
});
|
|
4758
4729
|
}
|
|
@@ -4760,13 +4731,13 @@ function Zi(e, t, r) {
|
|
|
4760
4731
|
"session" in c && r(0, i = c.session), "userid" in c && r(20, o = c.userid), "endpoint" in c && r(21, a = c.endpoint), "clientstyling" in c && r(1, s = c.clientstyling), "clientstylingurl" in c && r(2, h = c.clientstylingurl), "mbsource" in c && r(3, u = c.mbsource), "lang" in c && r(22, l = c.lang), "displayconsentdescription" in c && r(4, d = c.displayconsentdescription), "translationurl" in c && r(23, m = c.translationurl), "modalconsents" in c && r(24, v = c.modalconsents);
|
|
4761
4732
|
}, e.$$.update = () => {
|
|
4762
4733
|
e.$$.dirty[0] & /*isMounted, session*/
|
|
4763
|
-
33554433 && p && i && (
|
|
4764
|
-
1 && (i ||
|
|
4765
|
-
34 && s && f &&
|
|
4766
|
-
36 && h && f &&
|
|
4767
|
-
40 && f &&
|
|
4768
|
-
4194304 && l &&
|
|
4769
|
-
8388608 && m &&
|
|
4734
|
+
33554433 && p && i && (cr(), ur()), e.$$.dirty[0] & /*session*/
|
|
4735
|
+
1 && (i || hr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4736
|
+
34 && s && f && Or(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4737
|
+
36 && h && f && Ir(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4738
|
+
40 && f && jr(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
|
|
4739
|
+
4194304 && l && sr(), e.$$.dirty[0] & /*translationurl*/
|
|
4740
|
+
8388608 && m && lr();
|
|
4770
4741
|
}, [
|
|
4771
4742
|
i,
|
|
4772
4743
|
s,
|
|
@@ -4775,42 +4746,42 @@ function Zi(e, t, r) {
|
|
|
4775
4746
|
d,
|
|
4776
4747
|
f,
|
|
4777
4748
|
x,
|
|
4778
|
-
|
|
4749
|
+
P,
|
|
4779
4750
|
b,
|
|
4780
4751
|
O,
|
|
4781
|
-
|
|
4752
|
+
ae,
|
|
4782
4753
|
F,
|
|
4783
|
-
|
|
4754
|
+
W,
|
|
4784
4755
|
U,
|
|
4785
|
-
|
|
4786
|
-
|
|
4756
|
+
se,
|
|
4757
|
+
ve,
|
|
4787
4758
|
n,
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4759
|
+
fr,
|
|
4760
|
+
tt,
|
|
4761
|
+
Be,
|
|
4791
4762
|
o,
|
|
4792
4763
|
a,
|
|
4793
4764
|
l,
|
|
4794
4765
|
m,
|
|
4795
4766
|
v,
|
|
4796
4767
|
p,
|
|
4768
|
+
br,
|
|
4769
|
+
Er,
|
|
4770
|
+
Cr,
|
|
4771
|
+
Sr,
|
|
4772
|
+
xr,
|
|
4797
4773
|
Mr,
|
|
4798
|
-
|
|
4799
|
-
Nr,
|
|
4800
|
-
Ar,
|
|
4801
|
-
Hr,
|
|
4802
|
-
Pr,
|
|
4803
|
-
Br
|
|
4774
|
+
Tr
|
|
4804
4775
|
];
|
|
4805
4776
|
}
|
|
4806
|
-
class
|
|
4777
|
+
class Li extends zt {
|
|
4807
4778
|
constructor(t) {
|
|
4808
|
-
super(),
|
|
4779
|
+
super(), Ot(
|
|
4809
4780
|
this,
|
|
4810
4781
|
t,
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4782
|
+
ji,
|
|
4783
|
+
Ii,
|
|
4784
|
+
Je,
|
|
4814
4785
|
{
|
|
4815
4786
|
session: 0,
|
|
4816
4787
|
userid: 20,
|
|
@@ -4823,7 +4794,7 @@ class Ji extends Ut {
|
|
|
4823
4794
|
translationurl: 23,
|
|
4824
4795
|
modalconsents: 24
|
|
4825
4796
|
},
|
|
4826
|
-
|
|
4797
|
+
Hi,
|
|
4827
4798
|
[-1, -1, -1]
|
|
4828
4799
|
);
|
|
4829
4800
|
}
|
|
@@ -4888,7 +4859,7 @@ class Ji extends Ut {
|
|
|
4888
4859
|
this.$$set({ modalconsents: t }), X();
|
|
4889
4860
|
}
|
|
4890
4861
|
}
|
|
4891
|
-
|
|
4862
|
+
Bt(Li, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
|
|
4892
4863
|
export {
|
|
4893
|
-
|
|
4864
|
+
Li as P
|
|
4894
4865
|
};
|