@everymatrix/player-consents 1.86.2 → 1.86.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralAnimationLoading-CnE7clu4.js → GeneralAnimationLoading-BtioJF6y.js} +19 -19
- package/components/{GeneralAnimationLoading-Bl4q3liU.js → GeneralAnimationLoading-D9yegS5O.js} +30 -30
- package/components/GeneralAnimationLoading-DLDqB-yF.cjs +1 -0
- package/components/PlayerConsents-Btszdxkn.cjs +16 -0
- package/components/{PlayerConsents-D_MmyzKF.js → PlayerConsents-DGXQU5mz.js} +668 -672
- package/components/{PlayerConsents-C4AKEATH.js → PlayerConsents-DdWER5BL.js} +664 -668
- 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-CvjpSnS0.cjs +0 -1
- package/components/PlayerConsents-BpocBWYo.cjs +0 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as q, s as Hr, r as zt, a as Qe, i as Pr, c as Ot, S as It, b as jt, d as ot, e as b, f as j, g as x, h as L, j as X, k as Br, l as A, m as zr, o as Or, p as Ir, q as at, t as jr, u as Lr, v as Rr, w as $, x as Ye, y as G, z as Ur, A as de, B as pe, C as fe, D as Q, H as Lt } from "./GeneralAnimationLoading-D9yegS5O.js";
|
|
2
2
|
const K = [];
|
|
3
|
-
function
|
|
3
|
+
function Dr(e, t) {
|
|
4
4
|
return {
|
|
5
|
-
subscribe:
|
|
5
|
+
subscribe: Ne(e, t).subscribe
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function Ne(e, t = q) {
|
|
9
9
|
let r;
|
|
10
10
|
const n = /* @__PURE__ */ new Set();
|
|
11
11
|
function i(s) {
|
|
12
|
-
if (
|
|
12
|
+
if (Qe(e, s) && (e = s, r)) {
|
|
13
13
|
const h = !K.length;
|
|
14
14
|
for (const u of n)
|
|
15
15
|
u[1](), K.push(u, e);
|
|
@@ -23,9 +23,9 @@ function Ae(e, t = W) {
|
|
|
23
23
|
function o(s) {
|
|
24
24
|
i(s(e));
|
|
25
25
|
}
|
|
26
|
-
function a(s, h =
|
|
26
|
+
function a(s, h = q) {
|
|
27
27
|
const u = [s, h];
|
|
28
|
-
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), () => {
|
|
29
29
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -36,96 +36,96 @@ function ie(e, t, r) {
|
|
|
36
36
|
if (!i.every(Boolean))
|
|
37
37
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
38
38
|
const o = t.length < 2;
|
|
39
|
-
return
|
|
39
|
+
return Dr(r, (a, s) => {
|
|
40
40
|
let h = !1;
|
|
41
41
|
const u = [];
|
|
42
|
-
let l = 0, d =
|
|
42
|
+
let l = 0, d = q;
|
|
43
43
|
const m = () => {
|
|
44
44
|
if (l)
|
|
45
45
|
return;
|
|
46
46
|
d();
|
|
47
47
|
const f = t(n ? u[0] : u, a, s);
|
|
48
|
-
o ? a(f) : d =
|
|
49
|
-
},
|
|
50
|
-
(f,
|
|
48
|
+
o ? a(f) : d = Pr(f) ? f : q;
|
|
49
|
+
}, y = i.map(
|
|
50
|
+
(f, g) => Hr(
|
|
51
51
|
f,
|
|
52
|
-
(
|
|
53
|
-
u[
|
|
52
|
+
(S) => {
|
|
53
|
+
u[g] = S, l &= ~(1 << g), h && m();
|
|
54
54
|
},
|
|
55
55
|
() => {
|
|
56
|
-
l |= 1 <<
|
|
56
|
+
l |= 1 << g;
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
);
|
|
60
60
|
return h = !0, m(), function() {
|
|
61
|
-
|
|
61
|
+
zt(y), d(), h = !1;
|
|
62
62
|
};
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Gr(e) {
|
|
66
66
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
return
|
|
68
|
+
var Fr = function(t) {
|
|
69
|
+
return Vr(t) && !Xr(t);
|
|
70
70
|
};
|
|
71
|
-
function
|
|
71
|
+
function Vr(e) {
|
|
72
72
|
return !!e && typeof e == "object";
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Xr(e) {
|
|
75
75
|
var t = Object.prototype.toString.call(e);
|
|
76
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
77
|
-
}
|
|
78
|
-
var Xr = typeof Symbol == "function" && Symbol.for, qr = Xr ? Symbol.for("react.element") : 60103;
|
|
79
|
-
function Wr(e) {
|
|
80
|
-
return e.$$typeof === qr;
|
|
76
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
|
|
81
77
|
}
|
|
78
|
+
var qr = typeof Symbol == "function" && Symbol.for, Wr = qr ? Symbol.for("react.element") : 60103;
|
|
82
79
|
function Zr(e) {
|
|
80
|
+
return e.$$typeof === Wr;
|
|
81
|
+
}
|
|
82
|
+
function Jr(e) {
|
|
83
83
|
return Array.isArray(e) ? [] : {};
|
|
84
84
|
}
|
|
85
85
|
function me(e, t) {
|
|
86
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ee(
|
|
86
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ee(Jr(e), e, t) : e;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Qr(e, t, r) {
|
|
89
89
|
return e.concat(t).map(function(n) {
|
|
90
90
|
return me(n, r);
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Yr(e, t) {
|
|
94
94
|
if (!t.customMerge)
|
|
95
95
|
return ee;
|
|
96
96
|
var r = t.customMerge(e);
|
|
97
97
|
return typeof r == "function" ? r : ee;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Kr(e) {
|
|
100
100
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
101
101
|
return Object.propertyIsEnumerable.call(e, t);
|
|
102
102
|
}) : [];
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return Object.keys(e).concat(
|
|
104
|
+
function st(e) {
|
|
105
|
+
return Object.keys(e).concat(Kr(e));
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Rt(e, t) {
|
|
108
108
|
try {
|
|
109
109
|
return t in e;
|
|
110
110
|
} catch {
|
|
111
111
|
return !1;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
return
|
|
114
|
+
function $r(e, t) {
|
|
115
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function en(e, t, r) {
|
|
118
118
|
var n = {};
|
|
119
|
-
return r.isMergeableObject(e) &&
|
|
119
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
120
120
|
n[i] = me(e[i], r);
|
|
121
|
-
}),
|
|
122
|
-
|
|
121
|
+
}), st(t).forEach(function(i) {
|
|
122
|
+
$r(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yr(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
123
123
|
}), n;
|
|
124
124
|
}
|
|
125
125
|
function ee(e, t, r) {
|
|
126
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
126
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || Fr, r.cloneUnlessOtherwiseSpecified = me;
|
|
127
127
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
128
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
128
|
+
return o ? n ? r.arrayMerge(e, t, r) : en(e, t, r) : me(t, r);
|
|
129
129
|
}
|
|
130
130
|
ee.all = function(t, r) {
|
|
131
131
|
if (!Array.isArray(t))
|
|
@@ -134,36 +134,50 @@ ee.all = function(t, r) {
|
|
|
134
134
|
return ee(n, i, r);
|
|
135
135
|
}, {});
|
|
136
136
|
};
|
|
137
|
-
var
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
var tn = ee, rn = tn;
|
|
138
|
+
const nn = /* @__PURE__ */ Gr(rn);
|
|
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 De = function(e, t) {
|
|
154
|
+
return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
141
155
|
r.__proto__ = n;
|
|
142
156
|
} || function(r, n) {
|
|
143
157
|
for (var i in n)
|
|
144
158
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
145
|
-
},
|
|
159
|
+
}, De(e, t);
|
|
146
160
|
};
|
|
147
|
-
function
|
|
161
|
+
function Ae(e, t) {
|
|
148
162
|
if (typeof t != "function" && t !== null)
|
|
149
163
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
150
|
-
|
|
164
|
+
De(e, t);
|
|
151
165
|
function r() {
|
|
152
166
|
this.constructor = e;
|
|
153
167
|
}
|
|
154
168
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
155
169
|
}
|
|
156
|
-
var
|
|
157
|
-
return
|
|
170
|
+
var H = function() {
|
|
171
|
+
return H = Object.assign || function(t) {
|
|
158
172
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
159
173
|
r = arguments[n];
|
|
160
174
|
for (var o in r)
|
|
161
175
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
162
176
|
}
|
|
163
177
|
return t;
|
|
164
|
-
},
|
|
178
|
+
}, H.apply(this, arguments);
|
|
165
179
|
};
|
|
166
|
-
function
|
|
180
|
+
function on(e, t) {
|
|
167
181
|
var r = {};
|
|
168
182
|
for (var n in e)
|
|
169
183
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -172,119 +186,111 @@ function nn(e, t) {
|
|
|
172
186
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
173
187
|
return r;
|
|
174
188
|
}
|
|
175
|
-
function
|
|
176
|
-
if (
|
|
189
|
+
function Oe(e, t, r) {
|
|
190
|
+
if (arguments.length === 2)
|
|
177
191
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
178
192
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
179
|
-
return e.concat(o ||
|
|
193
|
+
return e.concat(o || t);
|
|
180
194
|
}
|
|
181
|
-
function
|
|
182
|
-
var r = t && t.cache ? t.cache : hn, n = t && t.serializer ? t.serializer :
|
|
195
|
+
function Ie(e, t) {
|
|
196
|
+
var r = t && t.cache ? t.cache : hn, n = t && t.serializer ? t.serializer : un, i = t && t.strategy ? t.strategy : sn;
|
|
183
197
|
return i(e, {
|
|
184
198
|
cache: r,
|
|
185
199
|
serializer: n
|
|
186
200
|
});
|
|
187
201
|
}
|
|
188
|
-
function
|
|
202
|
+
function an(e) {
|
|
189
203
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
190
204
|
}
|
|
191
|
-
function
|
|
192
|
-
var i =
|
|
205
|
+
function Ut(e, t, r, n) {
|
|
206
|
+
var i = an(n) ? n : r(n), o = t.get(i);
|
|
193
207
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
194
208
|
}
|
|
195
|
-
function
|
|
209
|
+
function Dt(e, t, r) {
|
|
196
210
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
197
211
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
198
212
|
}
|
|
199
|
-
function
|
|
213
|
+
function Ke(e, t, r, n, i) {
|
|
200
214
|
return r.bind(t, e, n, i);
|
|
201
215
|
}
|
|
202
216
|
function sn(e, t) {
|
|
203
|
-
var r = e.length === 1 ?
|
|
204
|
-
return
|
|
217
|
+
var r = e.length === 1 ? Ut : Dt;
|
|
218
|
+
return Ke(e, this, r, t.cache.create(), t.serializer);
|
|
205
219
|
}
|
|
206
220
|
function ln(e, t) {
|
|
207
|
-
return
|
|
221
|
+
return Ke(e, this, Dt, t.cache.create(), t.serializer);
|
|
222
|
+
}
|
|
223
|
+
function cn(e, t) {
|
|
224
|
+
return Ke(e, this, Ut, t.cache.create(), t.serializer);
|
|
208
225
|
}
|
|
209
|
-
var
|
|
226
|
+
var un = function() {
|
|
210
227
|
return JSON.stringify(arguments);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}()
|
|
223
|
-
), hn = {
|
|
228
|
+
};
|
|
229
|
+
function $e() {
|
|
230
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
231
|
+
}
|
|
232
|
+
$e.prototype.get = function(e) {
|
|
233
|
+
return this.cache[e];
|
|
234
|
+
};
|
|
235
|
+
$e.prototype.set = function(e, t) {
|
|
236
|
+
this.cache[e] = t;
|
|
237
|
+
};
|
|
238
|
+
var hn = {
|
|
224
239
|
create: function() {
|
|
225
|
-
return new
|
|
240
|
+
return new $e();
|
|
226
241
|
}
|
|
227
|
-
},
|
|
228
|
-
variadic: ln
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
232
|
-
r = arguments[n];
|
|
233
|
-
for (var o in r)
|
|
234
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
235
|
-
}
|
|
236
|
-
return t;
|
|
237
|
-
}, Me.apply(this, arguments);
|
|
238
|
-
};
|
|
239
|
-
var w;
|
|
242
|
+
}, je = {
|
|
243
|
+
variadic: ln,
|
|
244
|
+
monadic: cn
|
|
245
|
+
}, w;
|
|
240
246
|
(function(e) {
|
|
241
247
|
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";
|
|
242
248
|
})(w || (w = {}));
|
|
243
|
-
var
|
|
249
|
+
var B;
|
|
244
250
|
(function(e) {
|
|
245
251
|
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";
|
|
246
|
-
})(
|
|
252
|
+
})(B || (B = {}));
|
|
247
253
|
var te;
|
|
248
254
|
(function(e) {
|
|
249
255
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
250
256
|
})(te || (te = {}));
|
|
251
|
-
function
|
|
252
|
-
return e.type ===
|
|
257
|
+
function lt(e) {
|
|
258
|
+
return e.type === B.literal;
|
|
253
259
|
}
|
|
254
260
|
function dn(e) {
|
|
255
|
-
return e.type ===
|
|
256
|
-
}
|
|
257
|
-
function Dt(e) {
|
|
258
|
-
return e.type === P.number;
|
|
261
|
+
return e.type === B.argument;
|
|
259
262
|
}
|
|
260
263
|
function Gt(e) {
|
|
261
|
-
return e.type ===
|
|
264
|
+
return e.type === B.number;
|
|
262
265
|
}
|
|
263
266
|
function Ft(e) {
|
|
264
|
-
return e.type ===
|
|
267
|
+
return e.type === B.date;
|
|
265
268
|
}
|
|
266
269
|
function Vt(e) {
|
|
267
|
-
return e.type ===
|
|
270
|
+
return e.type === B.time;
|
|
268
271
|
}
|
|
269
272
|
function Xt(e) {
|
|
270
|
-
return e.type ===
|
|
271
|
-
}
|
|
272
|
-
function mn(e) {
|
|
273
|
-
return e.type === P.pound;
|
|
273
|
+
return e.type === B.select;
|
|
274
274
|
}
|
|
275
275
|
function qt(e) {
|
|
276
|
-
return e.type ===
|
|
276
|
+
return e.type === B.plural;
|
|
277
|
+
}
|
|
278
|
+
function mn(e) {
|
|
279
|
+
return e.type === B.pound;
|
|
277
280
|
}
|
|
278
281
|
function Wt(e) {
|
|
282
|
+
return e.type === B.tag;
|
|
283
|
+
}
|
|
284
|
+
function Zt(e) {
|
|
279
285
|
return !!(e && typeof e == "object" && e.type === te.number);
|
|
280
286
|
}
|
|
281
|
-
function
|
|
287
|
+
function Ge(e) {
|
|
282
288
|
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
283
289
|
}
|
|
284
|
-
var
|
|
285
|
-
function
|
|
290
|
+
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
291
|
+
function pn(e) {
|
|
286
292
|
var t = {};
|
|
287
|
-
return e.replace(
|
|
293
|
+
return e.replace(gn, function(r) {
|
|
288
294
|
var n = r.length;
|
|
289
295
|
switch (r[0]) {
|
|
290
296
|
case "G":
|
|
@@ -373,16 +379,6 @@ function gn(e) {
|
|
|
373
379
|
return "";
|
|
374
380
|
}), t;
|
|
375
381
|
}
|
|
376
|
-
var z = function() {
|
|
377
|
-
return z = Object.assign || function(t) {
|
|
378
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
379
|
-
r = arguments[n];
|
|
380
|
-
for (var o in r)
|
|
381
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
382
|
-
}
|
|
383
|
-
return t;
|
|
384
|
-
}, z.apply(this, arguments);
|
|
385
|
-
};
|
|
386
382
|
var fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
387
383
|
function _n(e) {
|
|
388
384
|
if (e.length === 0)
|
|
@@ -405,14 +401,14 @@ function _n(e) {
|
|
|
405
401
|
function yn(e) {
|
|
406
402
|
return e.replace(/^(.*?)-/, "");
|
|
407
403
|
}
|
|
408
|
-
var
|
|
409
|
-
function
|
|
404
|
+
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, vn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
|
|
405
|
+
function ut(e) {
|
|
410
406
|
var t = {};
|
|
411
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
407
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
|
|
412
408
|
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)), "";
|
|
413
409
|
}), t;
|
|
414
410
|
}
|
|
415
|
-
function
|
|
411
|
+
function Kt(e) {
|
|
416
412
|
switch (e) {
|
|
417
413
|
case "sign-auto":
|
|
418
414
|
return {
|
|
@@ -460,14 +456,14 @@ function kn(e) {
|
|
|
460
456
|
notation: "scientific"
|
|
461
457
|
}, e = e.slice(1)), t) {
|
|
462
458
|
var r = e.slice(0, 2);
|
|
463
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
459
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
|
|
464
460
|
throw new Error("Malformed concise eng/scientific notation");
|
|
465
461
|
t.minimumIntegerDigits = e.length;
|
|
466
462
|
}
|
|
467
463
|
return t;
|
|
468
464
|
}
|
|
469
|
-
function
|
|
470
|
-
var t = {}, r =
|
|
465
|
+
function ht(e) {
|
|
466
|
+
var t = {}, r = Kt(e);
|
|
471
467
|
return r || t;
|
|
472
468
|
}
|
|
473
469
|
function bn(e) {
|
|
@@ -505,13 +501,13 @@ function bn(e) {
|
|
|
505
501
|
t.notation = "compact", t.compactDisplay = "long";
|
|
506
502
|
continue;
|
|
507
503
|
case "scientific":
|
|
508
|
-
t =
|
|
509
|
-
return
|
|
504
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
505
|
+
return H(H({}, h), ht(u));
|
|
510
506
|
}, {}));
|
|
511
507
|
continue;
|
|
512
508
|
case "engineering":
|
|
513
|
-
t =
|
|
514
|
-
return
|
|
509
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
510
|
+
return H(H({}, h), ht(u));
|
|
515
511
|
}, {}));
|
|
516
512
|
continue;
|
|
517
513
|
case "notation-simple":
|
|
@@ -556,41 +552,41 @@ function bn(e) {
|
|
|
556
552
|
case "integer-width":
|
|
557
553
|
if (i.options.length > 1)
|
|
558
554
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
559
|
-
i.options[0].replace(vn, function(h, u, l, d, m,
|
|
555
|
+
i.options[0].replace(vn, function(h, u, l, d, m, y) {
|
|
560
556
|
if (u)
|
|
561
557
|
t.minimumIntegerDigits = l.length;
|
|
562
558
|
else {
|
|
563
559
|
if (d && m)
|
|
564
560
|
throw new Error("We currently do not support maximum integer digits");
|
|
565
|
-
if (
|
|
561
|
+
if (y)
|
|
566
562
|
throw new Error("We currently do not support exact integer digits");
|
|
567
563
|
}
|
|
568
564
|
return "";
|
|
569
565
|
});
|
|
570
566
|
continue;
|
|
571
567
|
}
|
|
572
|
-
if (
|
|
568
|
+
if (Yt.test(i.stem)) {
|
|
573
569
|
t.minimumIntegerDigits = i.stem.length;
|
|
574
570
|
continue;
|
|
575
571
|
}
|
|
576
|
-
if (
|
|
572
|
+
if (ct.test(i.stem)) {
|
|
577
573
|
if (i.options.length > 1)
|
|
578
574
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
579
|
-
i.stem.replace(
|
|
580
|
-
return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m &&
|
|
575
|
+
i.stem.replace(ct, function(h, u, l, d, m, y) {
|
|
576
|
+
return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
581
577
|
});
|
|
582
578
|
var o = i.options[0];
|
|
583
|
-
o === "w" ? t =
|
|
579
|
+
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), ut(o)));
|
|
584
580
|
continue;
|
|
585
581
|
}
|
|
586
|
-
if (
|
|
587
|
-
t =
|
|
582
|
+
if (Qt.test(i.stem)) {
|
|
583
|
+
t = H(H({}, t), ut(i.stem));
|
|
588
584
|
continue;
|
|
589
585
|
}
|
|
590
|
-
var a =
|
|
591
|
-
a && (t =
|
|
586
|
+
var a = Kt(i.stem);
|
|
587
|
+
a && (t = H(H({}, t), a));
|
|
592
588
|
var s = kn(i.stem);
|
|
593
|
-
s && (t =
|
|
589
|
+
s && (t = H(H({}, t), s));
|
|
594
590
|
}
|
|
595
591
|
return t;
|
|
596
592
|
}
|
|
@@ -2047,20 +2043,20 @@ function Cn(e) {
|
|
|
2047
2043
|
var i = Se[n || ""] || Se[r || ""] || Se["".concat(r, "-001")] || Se["001"];
|
|
2048
2044
|
return i[0];
|
|
2049
2045
|
}
|
|
2050
|
-
var
|
|
2046
|
+
var Le, Sn = new RegExp("^".concat(Jt.source, "*")), xn = new RegExp("".concat(Jt.source, "*$"));
|
|
2051
2047
|
function N(e, t) {
|
|
2052
2048
|
return { start: e, end: t };
|
|
2053
2049
|
}
|
|
2054
|
-
var
|
|
2050
|
+
var Mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Tn = !!String.fromCodePoint, wn = !!Object.fromEntries, Nn = !!String.prototype.codePointAt, An = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, Pn = !!Number.isSafeInteger, Bn = Pn ? Number.isSafeInteger : function(e) {
|
|
2055
2051
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2056
|
-
},
|
|
2052
|
+
}, Fe = !0;
|
|
2057
2053
|
try {
|
|
2058
|
-
var
|
|
2059
|
-
|
|
2054
|
+
var zn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2055
|
+
Fe = ((Le = zn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
2060
2056
|
} catch {
|
|
2061
|
-
|
|
2057
|
+
Fe = !1;
|
|
2062
2058
|
}
|
|
2063
|
-
var
|
|
2059
|
+
var dt = Mn ? (
|
|
2064
2060
|
// Native
|
|
2065
2061
|
function(t, r, n) {
|
|
2066
2062
|
return t.startsWith(r, n);
|
|
@@ -2070,7 +2066,7 @@ var ht = Tn ? (
|
|
|
2070
2066
|
function(t, r, n) {
|
|
2071
2067
|
return t.slice(n, n + r.length) === r;
|
|
2072
2068
|
}
|
|
2073
|
-
),
|
|
2069
|
+
), Ve = Tn ? String.fromCodePoint : (
|
|
2074
2070
|
// IE11
|
|
2075
2071
|
function() {
|
|
2076
2072
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2082,7 +2078,7 @@ var ht = Tn ? (
|
|
|
2082
2078
|
}
|
|
2083
2079
|
return n;
|
|
2084
2080
|
}
|
|
2085
|
-
),
|
|
2081
|
+
), mt = (
|
|
2086
2082
|
// native
|
|
2087
2083
|
wn ? Object.fromEntries : (
|
|
2088
2084
|
// Ponyfill
|
|
@@ -2094,7 +2090,7 @@ var ht = Tn ? (
|
|
|
2094
2090
|
return r;
|
|
2095
2091
|
}
|
|
2096
2092
|
)
|
|
2097
|
-
),
|
|
2093
|
+
), $t = Nn ? (
|
|
2098
2094
|
// Native
|
|
2099
2095
|
function(t, r) {
|
|
2100
2096
|
return t.codePointAt(r);
|
|
@@ -2108,7 +2104,7 @@ var ht = Tn ? (
|
|
|
2108
2104
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2109
2105
|
}
|
|
2110
2106
|
}
|
|
2111
|
-
),
|
|
2107
|
+
), On = An ? (
|
|
2112
2108
|
// Native
|
|
2113
2109
|
function(t) {
|
|
2114
2110
|
return t.trimStart();
|
|
@@ -2129,27 +2125,27 @@ var ht = Tn ? (
|
|
|
2129
2125
|
return t.replace(xn, "");
|
|
2130
2126
|
}
|
|
2131
2127
|
);
|
|
2132
|
-
function
|
|
2128
|
+
function er(e, t) {
|
|
2133
2129
|
return new RegExp(e, t);
|
|
2134
2130
|
}
|
|
2135
|
-
var
|
|
2136
|
-
if (
|
|
2137
|
-
var
|
|
2138
|
-
|
|
2131
|
+
var Xe;
|
|
2132
|
+
if (Fe) {
|
|
2133
|
+
var gt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2134
|
+
Xe = function(t, r) {
|
|
2139
2135
|
var n;
|
|
2140
|
-
|
|
2141
|
-
var i =
|
|
2136
|
+
gt.lastIndex = r;
|
|
2137
|
+
var i = gt.exec(t);
|
|
2142
2138
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2143
2139
|
};
|
|
2144
2140
|
} else
|
|
2145
|
-
|
|
2141
|
+
Xe = function(t, r) {
|
|
2146
2142
|
for (var n = []; ; ) {
|
|
2147
|
-
var i =
|
|
2148
|
-
if (i === void 0 ||
|
|
2143
|
+
var i = $t(t, r);
|
|
2144
|
+
if (i === void 0 || tr(i) || Un(i))
|
|
2149
2145
|
break;
|
|
2150
2146
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2151
2147
|
}
|
|
2152
|
-
return
|
|
2148
|
+
return Ve.apply(void 0, n);
|
|
2153
2149
|
};
|
|
2154
2150
|
var jn = (
|
|
2155
2151
|
/** @class */
|
|
@@ -2175,14 +2171,14 @@ var jn = (
|
|
|
2175
2171
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2176
2172
|
var s = this.clonePosition();
|
|
2177
2173
|
this.bump(), i.push({
|
|
2178
|
-
type:
|
|
2174
|
+
type: B.pound,
|
|
2179
2175
|
location: N(s, this.clonePosition())
|
|
2180
2176
|
});
|
|
2181
2177
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2182
2178
|
if (n)
|
|
2183
2179
|
break;
|
|
2184
2180
|
return this.error(w.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2185
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2181
|
+
} else if (o === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
|
2186
2182
|
var a = this.parseTag(t, r);
|
|
2187
2183
|
if (a.err)
|
|
2188
2184
|
return a;
|
|
@@ -2203,7 +2199,7 @@ var jn = (
|
|
|
2203
2199
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2204
2200
|
return {
|
|
2205
2201
|
val: {
|
|
2206
|
-
type:
|
|
2202
|
+
type: B.literal,
|
|
2207
2203
|
value: "<".concat(i, "/>"),
|
|
2208
2204
|
location: N(n, this.clonePosition())
|
|
2209
2205
|
},
|
|
@@ -2215,12 +2211,12 @@ var jn = (
|
|
|
2215
2211
|
return o;
|
|
2216
2212
|
var a = o.val, s = this.clonePosition();
|
|
2217
2213
|
if (this.bumpIf("</")) {
|
|
2218
|
-
if (this.isEOF() || !
|
|
2214
|
+
if (this.isEOF() || !qe(this.char()))
|
|
2219
2215
|
return this.error(w.INVALID_TAG, N(s, this.clonePosition()));
|
|
2220
2216
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2221
2217
|
return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, N(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2222
2218
|
val: {
|
|
2223
|
-
type:
|
|
2219
|
+
type: B.tag,
|
|
2224
2220
|
value: i,
|
|
2225
2221
|
children: a,
|
|
2226
2222
|
location: N(n, this.clonePosition())
|
|
@@ -2257,7 +2253,7 @@ var jn = (
|
|
|
2257
2253
|
}
|
|
2258
2254
|
var h = N(n, this.clonePosition());
|
|
2259
2255
|
return {
|
|
2260
|
-
val: { type:
|
|
2256
|
+
val: { type: B.literal, value: i, location: h },
|
|
2261
2257
|
err: null
|
|
2262
2258
|
};
|
|
2263
2259
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2296,12 +2292,12 @@ var jn = (
|
|
|
2296
2292
|
r.push(n);
|
|
2297
2293
|
this.bump();
|
|
2298
2294
|
}
|
|
2299
|
-
return
|
|
2295
|
+
return Ve.apply(void 0, r);
|
|
2300
2296
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2301
2297
|
if (this.isEOF())
|
|
2302
2298
|
return null;
|
|
2303
2299
|
var n = this.char();
|
|
2304
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2300
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
|
|
2305
2301
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2306
2302
|
var n = this.clonePosition();
|
|
2307
2303
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2317,7 +2313,7 @@ var jn = (
|
|
|
2317
2313
|
case 125:
|
|
2318
2314
|
return this.bump(), {
|
|
2319
2315
|
val: {
|
|
2320
|
-
type:
|
|
2316
|
+
type: B.argument,
|
|
2321
2317
|
// value does not include the opening and closing braces.
|
|
2322
2318
|
value: i,
|
|
2323
2319
|
location: N(n, this.clonePosition())
|
|
@@ -2330,7 +2326,7 @@ var jn = (
|
|
|
2330
2326
|
return this.error(w.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
2331
2327
|
}
|
|
2332
2328
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2333
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2329
|
+
var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
|
|
2334
2330
|
this.bumpTo(i);
|
|
2335
2331
|
var o = this.clonePosition(), a = N(t, o);
|
|
2336
2332
|
return { value: n, location: a };
|
|
@@ -2352,43 +2348,43 @@ var jn = (
|
|
|
2352
2348
|
var m = In(d.val);
|
|
2353
2349
|
if (m.length === 0)
|
|
2354
2350
|
return this.error(w.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
2355
|
-
var
|
|
2356
|
-
u = { style: m, styleLocation:
|
|
2351
|
+
var y = N(l, this.clonePosition());
|
|
2352
|
+
u = { style: m, styleLocation: y };
|
|
2357
2353
|
}
|
|
2358
2354
|
var f = this.tryParseArgumentClose(i);
|
|
2359
2355
|
if (f.err)
|
|
2360
2356
|
return f;
|
|
2361
|
-
var
|
|
2362
|
-
if (u &&
|
|
2363
|
-
var
|
|
2357
|
+
var g = N(i, this.clonePosition());
|
|
2358
|
+
if (u && dt(u?.style, "::", 0)) {
|
|
2359
|
+
var S = On(u.style.slice(2));
|
|
2364
2360
|
if (s === "number") {
|
|
2365
|
-
var d = this.parseNumberSkeletonFromString(
|
|
2361
|
+
var d = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
2366
2362
|
return d.err ? d : {
|
|
2367
|
-
val: { type:
|
|
2363
|
+
val: { type: B.number, value: n, location: g, style: d.val },
|
|
2368
2364
|
err: null
|
|
2369
2365
|
};
|
|
2370
2366
|
} else {
|
|
2371
|
-
if (
|
|
2372
|
-
return this.error(w.EXPECT_DATE_TIME_SKELETON,
|
|
2373
|
-
var _ =
|
|
2374
|
-
this.locale && (_ = En(
|
|
2367
|
+
if (S.length === 0)
|
|
2368
|
+
return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
|
|
2369
|
+
var _ = S;
|
|
2370
|
+
this.locale && (_ = En(S, this.locale));
|
|
2375
2371
|
var m = {
|
|
2376
2372
|
type: te.dateTime,
|
|
2377
2373
|
pattern: _,
|
|
2378
2374
|
location: u.styleLocation,
|
|
2379
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2380
|
-
},
|
|
2375
|
+
parsedOptions: this.shouldParseSkeletons ? pn(_) : {}
|
|
2376
|
+
}, v = s === "date" ? B.date : B.time;
|
|
2381
2377
|
return {
|
|
2382
|
-
val: { type:
|
|
2378
|
+
val: { type: v, value: n, location: g, style: m },
|
|
2383
2379
|
err: null
|
|
2384
2380
|
};
|
|
2385
2381
|
}
|
|
2386
2382
|
}
|
|
2387
2383
|
return {
|
|
2388
2384
|
val: {
|
|
2389
|
-
type: s === "number" ?
|
|
2385
|
+
type: s === "number" ? B.number : s === "date" ? B.date : B.time,
|
|
2390
2386
|
value: n,
|
|
2391
|
-
location:
|
|
2387
|
+
location: g,
|
|
2392
2388
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2393
2389
|
},
|
|
2394
2390
|
err: null
|
|
@@ -2397,43 +2393,43 @@ var jn = (
|
|
|
2397
2393
|
case "plural":
|
|
2398
2394
|
case "selectordinal":
|
|
2399
2395
|
case "select": {
|
|
2400
|
-
var
|
|
2396
|
+
var C = this.clonePosition();
|
|
2401
2397
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2402
|
-
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(
|
|
2398
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(C, H({}, C)));
|
|
2403
2399
|
this.bumpSpace();
|
|
2404
|
-
var
|
|
2405
|
-
if (s !== "select" &&
|
|
2400
|
+
var P = this.parseIdentifierIfPossible(), E = 0;
|
|
2401
|
+
if (s !== "select" && P.value === "offset") {
|
|
2406
2402
|
if (!this.bumpIf(":"))
|
|
2407
2403
|
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
|
|
2408
2404
|
this.bumpSpace();
|
|
2409
2405
|
var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2410
2406
|
if (d.err)
|
|
2411
2407
|
return d;
|
|
2412
|
-
this.bumpSpace(),
|
|
2408
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), E = d.val;
|
|
2413
2409
|
}
|
|
2414
|
-
var
|
|
2415
|
-
if (
|
|
2416
|
-
return
|
|
2410
|
+
var z = this.tryParsePluralOrSelectOptions(t, s, r, P);
|
|
2411
|
+
if (z.err)
|
|
2412
|
+
return z;
|
|
2417
2413
|
var f = this.tryParseArgumentClose(i);
|
|
2418
2414
|
if (f.err)
|
|
2419
2415
|
return f;
|
|
2420
|
-
var
|
|
2416
|
+
var W = N(i, this.clonePosition());
|
|
2421
2417
|
return s === "select" ? {
|
|
2422
2418
|
val: {
|
|
2423
|
-
type:
|
|
2419
|
+
type: B.select,
|
|
2424
2420
|
value: n,
|
|
2425
|
-
options:
|
|
2426
|
-
location:
|
|
2421
|
+
options: mt(z.val),
|
|
2422
|
+
location: W
|
|
2427
2423
|
},
|
|
2428
2424
|
err: null
|
|
2429
2425
|
} : {
|
|
2430
2426
|
val: {
|
|
2431
|
-
type:
|
|
2427
|
+
type: B.plural,
|
|
2432
2428
|
value: n,
|
|
2433
|
-
options:
|
|
2434
|
-
offset:
|
|
2429
|
+
options: mt(z.val),
|
|
2430
|
+
offset: E,
|
|
2435
2431
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2436
|
-
location:
|
|
2432
|
+
location: W
|
|
2437
2433
|
},
|
|
2438
2434
|
err: null
|
|
2439
2435
|
};
|
|
@@ -2509,20 +2505,20 @@ var jn = (
|
|
|
2509
2505
|
if (h.has(u))
|
|
2510
2506
|
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2511
2507
|
u === "other" && (a = !0), this.bumpSpace();
|
|
2512
|
-
var
|
|
2508
|
+
var y = this.clonePosition();
|
|
2513
2509
|
if (!this.bumpIf("{"))
|
|
2514
2510
|
return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
|
|
2515
2511
|
var f = this.parseMessage(t + 1, r, n);
|
|
2516
2512
|
if (f.err)
|
|
2517
2513
|
return f;
|
|
2518
|
-
var
|
|
2519
|
-
if (
|
|
2520
|
-
return
|
|
2514
|
+
var g = this.tryParseArgumentClose(y);
|
|
2515
|
+
if (g.err)
|
|
2516
|
+
return g;
|
|
2521
2517
|
s.push([
|
|
2522
2518
|
u,
|
|
2523
2519
|
{
|
|
2524
2520
|
value: f.val,
|
|
2525
|
-
location: N(
|
|
2521
|
+
location: N(y, this.clonePosition())
|
|
2526
2522
|
}
|
|
2527
2523
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
2528
2524
|
}
|
|
@@ -2553,7 +2549,7 @@ var jn = (
|
|
|
2553
2549
|
var t = this.position.offset;
|
|
2554
2550
|
if (t >= this.message.length)
|
|
2555
2551
|
throw Error("out of bound");
|
|
2556
|
-
var r =
|
|
2552
|
+
var r = $t(this.message, t);
|
|
2557
2553
|
if (r === void 0)
|
|
2558
2554
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2559
2555
|
return r;
|
|
@@ -2572,7 +2568,7 @@ var jn = (
|
|
|
2572
2568
|
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);
|
|
2573
2569
|
}
|
|
2574
2570
|
}, e.prototype.bumpIf = function(t) {
|
|
2575
|
-
if (
|
|
2571
|
+
if (dt(this.message, t, this.offset())) {
|
|
2576
2572
|
for (var r = 0; r < t.length; r++)
|
|
2577
2573
|
this.bump();
|
|
2578
2574
|
return !0;
|
|
@@ -2594,7 +2590,7 @@ var jn = (
|
|
|
2594
2590
|
break;
|
|
2595
2591
|
}
|
|
2596
2592
|
}, e.prototype.bumpSpace = function() {
|
|
2597
|
-
for (; !this.isEOF() &&
|
|
2593
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
2598
2594
|
this.bump();
|
|
2599
2595
|
}, e.prototype.peek = function() {
|
|
2600
2596
|
if (this.isEOF())
|
|
@@ -2604,47 +2600,47 @@ var jn = (
|
|
|
2604
2600
|
}, e;
|
|
2605
2601
|
}()
|
|
2606
2602
|
);
|
|
2607
|
-
function
|
|
2603
|
+
function qe(e) {
|
|
2608
2604
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2609
2605
|
}
|
|
2610
2606
|
function Ln(e) {
|
|
2611
|
-
return
|
|
2607
|
+
return qe(e) || e === 47;
|
|
2612
2608
|
}
|
|
2613
2609
|
function Rn(e) {
|
|
2614
2610
|
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;
|
|
2615
2611
|
}
|
|
2616
|
-
function
|
|
2612
|
+
function tr(e) {
|
|
2617
2613
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2618
2614
|
}
|
|
2619
2615
|
function Un(e) {
|
|
2620
2616
|
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;
|
|
2621
2617
|
}
|
|
2622
|
-
function
|
|
2618
|
+
function We(e) {
|
|
2623
2619
|
e.forEach(function(t) {
|
|
2624
|
-
if (delete t.location,
|
|
2620
|
+
if (delete t.location, Xt(t) || qt(t))
|
|
2625
2621
|
for (var r in t.options)
|
|
2626
|
-
delete t.options[r].location,
|
|
2622
|
+
delete t.options[r].location, We(t.options[r].value);
|
|
2627
2623
|
else
|
|
2628
|
-
|
|
2624
|
+
Gt(t) && Zt(t.style) || (Ft(t) || Vt(t)) && Ge(t.style) ? delete t.style.location : Wt(t) && We(t.children);
|
|
2629
2625
|
});
|
|
2630
2626
|
}
|
|
2631
2627
|
function Dn(e, t) {
|
|
2632
|
-
t === void 0 && (t = {}), t =
|
|
2628
|
+
t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
2633
2629
|
var r = new jn(e, t).parse();
|
|
2634
2630
|
if (r.err) {
|
|
2635
2631
|
var n = SyntaxError(w[r.err.kind]);
|
|
2636
2632
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
2637
2633
|
}
|
|
2638
|
-
return t?.captureLocation ||
|
|
2634
|
+
return t?.captureLocation || We(r.val), r.val;
|
|
2639
2635
|
}
|
|
2640
2636
|
var re;
|
|
2641
2637
|
(function(e) {
|
|
2642
2638
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
2643
2639
|
})(re || (re = {}));
|
|
2644
|
-
var
|
|
2640
|
+
var He = (
|
|
2645
2641
|
/** @class */
|
|
2646
2642
|
function(e) {
|
|
2647
|
-
|
|
2643
|
+
Ae(t, e);
|
|
2648
2644
|
function t(r, n, i) {
|
|
2649
2645
|
var o = e.call(this, r) || this;
|
|
2650
2646
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -2656,30 +2652,30 @@ var Pe = (
|
|
|
2656
2652
|
), pt = (
|
|
2657
2653
|
/** @class */
|
|
2658
2654
|
function(e) {
|
|
2659
|
-
|
|
2655
|
+
Ae(t, e);
|
|
2660
2656
|
function t(r, n, i, o) {
|
|
2661
2657
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
|
|
2662
2658
|
}
|
|
2663
2659
|
return t;
|
|
2664
|
-
}(
|
|
2660
|
+
}(He)
|
|
2665
2661
|
), Gn = (
|
|
2666
2662
|
/** @class */
|
|
2667
2663
|
function(e) {
|
|
2668
|
-
|
|
2664
|
+
Ae(t, e);
|
|
2669
2665
|
function t(r, n, i) {
|
|
2670
2666
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
|
|
2671
2667
|
}
|
|
2672
2668
|
return t;
|
|
2673
|
-
}(
|
|
2669
|
+
}(He)
|
|
2674
2670
|
), Fn = (
|
|
2675
2671
|
/** @class */
|
|
2676
2672
|
function(e) {
|
|
2677
|
-
|
|
2673
|
+
Ae(t, e);
|
|
2678
2674
|
function t(r, n) {
|
|
2679
2675
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
|
|
2680
2676
|
}
|
|
2681
2677
|
return t;
|
|
2682
|
-
}(
|
|
2678
|
+
}(He)
|
|
2683
2679
|
), D;
|
|
2684
2680
|
(function(e) {
|
|
2685
2681
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -2694,7 +2690,7 @@ function Xn(e) {
|
|
|
2694
2690
|
return typeof e == "function";
|
|
2695
2691
|
}
|
|
2696
2692
|
function xe(e, t, r, n, i, o, a) {
|
|
2697
|
-
if (e.length === 1 &&
|
|
2693
|
+
if (e.length === 1 && lt(e[0]))
|
|
2698
2694
|
return [
|
|
2699
2695
|
{
|
|
2700
2696
|
type: D.literal,
|
|
@@ -2703,7 +2699,7 @@ function xe(e, t, r, n, i, o, a) {
|
|
|
2703
2699
|
];
|
|
2704
2700
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
2705
2701
|
var l = u[h];
|
|
2706
|
-
if (
|
|
2702
|
+
if (lt(l)) {
|
|
2707
2703
|
s.push({
|
|
2708
2704
|
type: D.literal,
|
|
2709
2705
|
value: l.value
|
|
@@ -2728,80 +2724,80 @@ function xe(e, t, r, n, i, o, a) {
|
|
|
2728
2724
|
});
|
|
2729
2725
|
continue;
|
|
2730
2726
|
}
|
|
2731
|
-
if (
|
|
2732
|
-
var
|
|
2727
|
+
if (Ft(l)) {
|
|
2728
|
+
var y = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
|
|
2733
2729
|
s.push({
|
|
2734
2730
|
type: D.literal,
|
|
2735
|
-
value: r.getDateTimeFormat(t,
|
|
2731
|
+
value: r.getDateTimeFormat(t, y).format(m)
|
|
2736
2732
|
});
|
|
2737
2733
|
continue;
|
|
2738
2734
|
}
|
|
2739
|
-
if (
|
|
2740
|
-
var
|
|
2735
|
+
if (Vt(l)) {
|
|
2736
|
+
var y = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
2741
2737
|
s.push({
|
|
2742
2738
|
type: D.literal,
|
|
2743
|
-
value: r.getDateTimeFormat(t,
|
|
2739
|
+
value: r.getDateTimeFormat(t, y).format(m)
|
|
2744
2740
|
});
|
|
2745
2741
|
continue;
|
|
2746
2742
|
}
|
|
2747
|
-
if (
|
|
2748
|
-
var
|
|
2749
|
-
|
|
2743
|
+
if (Gt(l)) {
|
|
2744
|
+
var y = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
|
|
2745
|
+
y && y.scale && (m = m * (y.scale || 1)), s.push({
|
|
2750
2746
|
type: D.literal,
|
|
2751
|
-
value: r.getNumberFormat(t,
|
|
2747
|
+
value: r.getNumberFormat(t, y).format(m)
|
|
2752
2748
|
});
|
|
2753
2749
|
continue;
|
|
2754
2750
|
}
|
|
2755
|
-
if (
|
|
2756
|
-
var f = l.children,
|
|
2757
|
-
if (!Xn(
|
|
2758
|
-
throw new Gn(
|
|
2759
|
-
var _ = xe(f, t, r, n, i, o),
|
|
2760
|
-
return
|
|
2751
|
+
if (Wt(l)) {
|
|
2752
|
+
var f = l.children, g = l.value, S = i[g];
|
|
2753
|
+
if (!Xn(S))
|
|
2754
|
+
throw new Gn(g, "function", a);
|
|
2755
|
+
var _ = xe(f, t, r, n, i, o), v = S(_.map(function(E) {
|
|
2756
|
+
return E.value;
|
|
2761
2757
|
}));
|
|
2762
|
-
Array.isArray(
|
|
2758
|
+
Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(E) {
|
|
2763
2759
|
return {
|
|
2764
|
-
type: typeof
|
|
2765
|
-
value:
|
|
2760
|
+
type: typeof E == "string" ? D.literal : D.object,
|
|
2761
|
+
value: E
|
|
2766
2762
|
};
|
|
2767
2763
|
}));
|
|
2768
2764
|
}
|
|
2769
|
-
if (
|
|
2770
|
-
var
|
|
2771
|
-
if (!
|
|
2765
|
+
if (Xt(l)) {
|
|
2766
|
+
var C = l.options[m] || l.options.other;
|
|
2767
|
+
if (!C)
|
|
2772
2768
|
throw new pt(l.value, m, Object.keys(l.options), a);
|
|
2773
|
-
s.push.apply(s, xe(
|
|
2769
|
+
s.push.apply(s, xe(C.value, t, r, n, i));
|
|
2774
2770
|
continue;
|
|
2775
2771
|
}
|
|
2776
|
-
if (
|
|
2777
|
-
var
|
|
2778
|
-
if (!
|
|
2772
|
+
if (qt(l)) {
|
|
2773
|
+
var C = l.options["=".concat(m)];
|
|
2774
|
+
if (!C) {
|
|
2779
2775
|
if (!Intl.PluralRules)
|
|
2780
|
-
throw new
|
|
2776
|
+
throw new He(`Intl.PluralRules is not available in this environment.
|
|
2781
2777
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2782
2778
|
`, re.MISSING_INTL_API, a);
|
|
2783
|
-
var
|
|
2784
|
-
|
|
2779
|
+
var P = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
|
|
2780
|
+
C = l.options[P] || l.options.other;
|
|
2785
2781
|
}
|
|
2786
|
-
if (!
|
|
2782
|
+
if (!C)
|
|
2787
2783
|
throw new pt(l.value, m, Object.keys(l.options), a);
|
|
2788
|
-
s.push.apply(s, xe(
|
|
2784
|
+
s.push.apply(s, xe(C.value, t, r, n, i, m - (l.offset || 0)));
|
|
2789
2785
|
continue;
|
|
2790
2786
|
}
|
|
2791
2787
|
}
|
|
2792
2788
|
return Vn(s);
|
|
2793
2789
|
}
|
|
2794
2790
|
function qn(e, t) {
|
|
2795
|
-
return t ?
|
|
2796
|
-
return r[n] =
|
|
2791
|
+
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
2792
|
+
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
|
2797
2793
|
}, {})) : e;
|
|
2798
2794
|
}
|
|
2799
2795
|
function Wn(e, t) {
|
|
2800
2796
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
2801
2797
|
return r[n] = qn(e[n], t[n]), r;
|
|
2802
|
-
},
|
|
2798
|
+
}, H({}, e)) : e;
|
|
2803
2799
|
}
|
|
2804
|
-
function
|
|
2800
|
+
function Re(e) {
|
|
2805
2801
|
return {
|
|
2806
2802
|
create: function() {
|
|
2807
2803
|
return {
|
|
@@ -2821,29 +2817,29 @@ function Zn(e) {
|
|
|
2821
2817
|
dateTime: {},
|
|
2822
2818
|
pluralRules: {}
|
|
2823
2819
|
}), {
|
|
2824
|
-
getNumberFormat:
|
|
2820
|
+
getNumberFormat: Ie(function() {
|
|
2825
2821
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2826
2822
|
r[n] = arguments[n];
|
|
2827
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
2823
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
2828
2824
|
}, {
|
|
2829
|
-
cache:
|
|
2830
|
-
strategy:
|
|
2825
|
+
cache: Re(e.number),
|
|
2826
|
+
strategy: je.variadic
|
|
2831
2827
|
}),
|
|
2832
|
-
getDateTimeFormat:
|
|
2828
|
+
getDateTimeFormat: Ie(function() {
|
|
2833
2829
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2834
2830
|
r[n] = arguments[n];
|
|
2835
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
2831
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
2836
2832
|
}, {
|
|
2837
|
-
cache:
|
|
2838
|
-
strategy:
|
|
2833
|
+
cache: Re(e.dateTime),
|
|
2834
|
+
strategy: je.variadic
|
|
2839
2835
|
}),
|
|
2840
|
-
getPluralRules:
|
|
2836
|
+
getPluralRules: Ie(function() {
|
|
2841
2837
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2842
2838
|
r[n] = arguments[n];
|
|
2843
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
2839
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
2844
2840
|
}, {
|
|
2845
|
-
cache:
|
|
2846
|
-
strategy:
|
|
2841
|
+
cache: Re(e.pluralRules),
|
|
2842
|
+
strategy: je.variadic
|
|
2847
2843
|
})
|
|
2848
2844
|
};
|
|
2849
2845
|
}
|
|
@@ -2879,8 +2875,8 @@ var Jn = (
|
|
|
2879
2875
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
2880
2876
|
var a = i || {};
|
|
2881
2877
|
a.formatters;
|
|
2882
|
-
var s =
|
|
2883
|
-
this.ast = e.__parse(t,
|
|
2878
|
+
var s = on(a, ["formatters"]);
|
|
2879
|
+
this.ast = e.__parse(t, H(H({}, s), { locale: this.resolvedLocale }));
|
|
2884
2880
|
} else
|
|
2885
2881
|
this.ast = t;
|
|
2886
2882
|
if (!Array.isArray(this.ast))
|
|
@@ -2980,28 +2976,28 @@ function Qn(e, t) {
|
|
|
2980
2976
|
n = void 0;
|
|
2981
2977
|
return n;
|
|
2982
2978
|
}
|
|
2983
|
-
const J = {}, Yn = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r),
|
|
2979
|
+
const J = {}, Yn = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), rr = (e, t) => {
|
|
2984
2980
|
if (t == null)
|
|
2985
2981
|
return;
|
|
2986
2982
|
if (t in J && e in J[t])
|
|
2987
2983
|
return J[t][e];
|
|
2988
|
-
const r =
|
|
2984
|
+
const r = Pe(t);
|
|
2989
2985
|
for (let n = 0; n < r.length; n++) {
|
|
2990
2986
|
const i = r[n], o = $n(i, e);
|
|
2991
2987
|
if (o)
|
|
2992
2988
|
return Yn(e, t, o);
|
|
2993
2989
|
}
|
|
2994
2990
|
};
|
|
2995
|
-
let
|
|
2996
|
-
const _e =
|
|
2991
|
+
let et;
|
|
2992
|
+
const _e = Ne({});
|
|
2997
2993
|
function Kn(e) {
|
|
2998
|
-
return
|
|
2994
|
+
return et[e] || null;
|
|
2999
2995
|
}
|
|
3000
|
-
function
|
|
3001
|
-
return e in
|
|
2996
|
+
function nr(e) {
|
|
2997
|
+
return e in et;
|
|
3002
2998
|
}
|
|
3003
2999
|
function $n(e, t) {
|
|
3004
|
-
if (!
|
|
3000
|
+
if (!nr(e))
|
|
3005
3001
|
return null;
|
|
3006
3002
|
const r = Kn(e);
|
|
3007
3003
|
return Qn(r, t);
|
|
@@ -3009,50 +3005,50 @@ function $n(e, t) {
|
|
|
3009
3005
|
function ei(e) {
|
|
3010
3006
|
if (e == null)
|
|
3011
3007
|
return;
|
|
3012
|
-
const t =
|
|
3008
|
+
const t = Pe(e);
|
|
3013
3009
|
for (let r = 0; r < t.length; r++) {
|
|
3014
3010
|
const n = t[r];
|
|
3015
|
-
if (
|
|
3011
|
+
if (nr(n))
|
|
3016
3012
|
return n;
|
|
3017
3013
|
}
|
|
3018
3014
|
}
|
|
3019
|
-
function
|
|
3020
|
-
delete J[e], _e.update((r) => (r[e] =
|
|
3015
|
+
function ir(e, ...t) {
|
|
3016
|
+
delete J[e], _e.update((r) => (r[e] = nn.all([r[e] || {}, ...t]), r));
|
|
3021
3017
|
}
|
|
3022
3018
|
ie(
|
|
3023
3019
|
[_e],
|
|
3024
3020
|
([e]) => Object.keys(e)
|
|
3025
3021
|
);
|
|
3026
|
-
_e.subscribe((e) =>
|
|
3027
|
-
const
|
|
3022
|
+
_e.subscribe((e) => et = e);
|
|
3023
|
+
const Me = {};
|
|
3028
3024
|
function ti(e, t) {
|
|
3029
|
-
|
|
3025
|
+
Me[e].delete(t), Me[e].size === 0 && delete Me[e];
|
|
3030
3026
|
}
|
|
3031
|
-
function
|
|
3032
|
-
return
|
|
3027
|
+
function or(e) {
|
|
3028
|
+
return Me[e];
|
|
3033
3029
|
}
|
|
3034
3030
|
function ri(e) {
|
|
3035
|
-
return
|
|
3036
|
-
const r =
|
|
3031
|
+
return Pe(e).map((t) => {
|
|
3032
|
+
const r = or(t);
|
|
3037
3033
|
return [t, r ? [...r] : []];
|
|
3038
3034
|
}).filter(([, t]) => t.length > 0);
|
|
3039
3035
|
}
|
|
3040
|
-
function
|
|
3041
|
-
return e == null ? !1 :
|
|
3036
|
+
function Ze(e) {
|
|
3037
|
+
return e == null ? !1 : Pe(e).some(
|
|
3042
3038
|
(t) => {
|
|
3043
3039
|
var r;
|
|
3044
|
-
return (r =
|
|
3040
|
+
return (r = or(t)) == null ? void 0 : r.size;
|
|
3045
3041
|
}
|
|
3046
3042
|
);
|
|
3047
3043
|
}
|
|
3048
3044
|
function ni(e, t) {
|
|
3049
3045
|
return Promise.all(
|
|
3050
3046
|
t.map((n) => (ti(e, n), n().then((i) => i.default || i)))
|
|
3051
|
-
).then((n) =>
|
|
3047
|
+
).then((n) => ir(e, ...n));
|
|
3052
3048
|
}
|
|
3053
3049
|
const he = {};
|
|
3054
|
-
function
|
|
3055
|
-
if (!
|
|
3050
|
+
function ar(e) {
|
|
3051
|
+
if (!Ze(e))
|
|
3056
3052
|
return e in he ? he[e] : Promise.resolve();
|
|
3057
3053
|
const t = ri(e);
|
|
3058
3054
|
return he[e] = Promise.all(
|
|
@@ -3060,8 +3056,8 @@ function or(e) {
|
|
|
3060
3056
|
([r, n]) => ni(r, n)
|
|
3061
3057
|
)
|
|
3062
3058
|
).then(() => {
|
|
3063
|
-
if (
|
|
3064
|
-
return
|
|
3059
|
+
if (Ze(e))
|
|
3060
|
+
return ar(e);
|
|
3065
3061
|
delete he[e];
|
|
3066
3062
|
}), he[e];
|
|
3067
3063
|
}
|
|
@@ -3105,96 +3101,96 @@ const ii = {
|
|
|
3105
3101
|
function ne() {
|
|
3106
3102
|
return ai;
|
|
3107
3103
|
}
|
|
3108
|
-
const
|
|
3109
|
-
var si = Object.defineProperty, li = Object.defineProperties, ci = Object.getOwnPropertyDescriptors,
|
|
3104
|
+
const Ue = Ne(!1);
|
|
3105
|
+
var si = Object.defineProperty, li = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
|
|
3110
3106
|
for (var r in t || (t = {}))
|
|
3111
|
-
ui.call(t, r) &&
|
|
3112
|
-
if (
|
|
3113
|
-
for (var r of
|
|
3114
|
-
hi.call(t, r) &&
|
|
3107
|
+
ui.call(t, r) && _t(e, r, t[r]);
|
|
3108
|
+
if (ft)
|
|
3109
|
+
for (var r of ft(t))
|
|
3110
|
+
hi.call(t, r) && _t(e, r, t[r]);
|
|
3115
3111
|
return e;
|
|
3116
3112
|
}, mi = (e, t) => li(e, ci(t));
|
|
3117
|
-
let
|
|
3118
|
-
const
|
|
3119
|
-
function
|
|
3113
|
+
let Je;
|
|
3114
|
+
const Te = Ne(null);
|
|
3115
|
+
function yt(e) {
|
|
3120
3116
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3121
3117
|
}
|
|
3122
|
-
function
|
|
3123
|
-
const r =
|
|
3124
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3118
|
+
function Pe(e, t = ne().fallbackLocale) {
|
|
3119
|
+
const r = yt(e);
|
|
3120
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
3125
3121
|
}
|
|
3126
3122
|
function Y() {
|
|
3127
|
-
return
|
|
3123
|
+
return Je ?? void 0;
|
|
3128
3124
|
}
|
|
3129
|
-
|
|
3130
|
-
|
|
3125
|
+
Te.subscribe((e) => {
|
|
3126
|
+
Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3131
3127
|
});
|
|
3132
|
-
const
|
|
3133
|
-
if (e && ei(e) &&
|
|
3128
|
+
const gi = (e) => {
|
|
3129
|
+
if (e && ei(e) && Ze(e)) {
|
|
3134
3130
|
const { loadingDelay: t } = ne();
|
|
3135
3131
|
let r;
|
|
3136
3132
|
return typeof window < "u" && Y() != null && t ? r = window.setTimeout(
|
|
3137
|
-
() =>
|
|
3133
|
+
() => Ue.set(!0),
|
|
3138
3134
|
t
|
|
3139
|
-
) :
|
|
3140
|
-
|
|
3135
|
+
) : Ue.set(!0), ar(e).then(() => {
|
|
3136
|
+
Te.set(e);
|
|
3141
3137
|
}).finally(() => {
|
|
3142
|
-
clearTimeout(r),
|
|
3138
|
+
clearTimeout(r), Ue.set(!1);
|
|
3143
3139
|
});
|
|
3144
3140
|
}
|
|
3145
|
-
return
|
|
3146
|
-
}, oe = mi(di({},
|
|
3147
|
-
set:
|
|
3148
|
-
}),
|
|
3141
|
+
return Te.set(e);
|
|
3142
|
+
}, oe = mi(di({}, Te), {
|
|
3143
|
+
set: gi
|
|
3144
|
+
}), Be = (e) => {
|
|
3149
3145
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3150
3146
|
return (n) => {
|
|
3151
3147
|
const i = JSON.stringify(n);
|
|
3152
3148
|
return i in t ? t[i] : t[i] = e(n);
|
|
3153
3149
|
};
|
|
3154
3150
|
};
|
|
3155
|
-
var
|
|
3151
|
+
var pi = Object.defineProperty, we = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
3156
3152
|
for (var r in t || (t = {}))
|
|
3157
|
-
|
|
3158
|
-
if (
|
|
3159
|
-
for (var r of
|
|
3160
|
-
|
|
3153
|
+
sr.call(t, r) && vt(e, r, t[r]);
|
|
3154
|
+
if (we)
|
|
3155
|
+
for (var r of we(t))
|
|
3156
|
+
lr.call(t, r) && vt(e, r, t[r]);
|
|
3161
3157
|
return e;
|
|
3162
3158
|
}, ae = (e, t) => {
|
|
3163
3159
|
var r = {};
|
|
3164
3160
|
for (var n in e)
|
|
3165
|
-
|
|
3166
|
-
if (e != null &&
|
|
3167
|
-
for (var n of
|
|
3168
|
-
t.indexOf(n) < 0 &&
|
|
3161
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3162
|
+
if (e != null && we)
|
|
3163
|
+
for (var n of we(e))
|
|
3164
|
+
t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
|
|
3169
3165
|
return r;
|
|
3170
3166
|
};
|
|
3171
|
-
const
|
|
3167
|
+
const ge = (e, t) => {
|
|
3172
3168
|
const { formats: r } = ne();
|
|
3173
3169
|
if (e in r && t in r[e])
|
|
3174
3170
|
return r[e][t];
|
|
3175
3171
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3176
|
-
}, fi =
|
|
3172
|
+
}, fi = Be(
|
|
3177
3173
|
(e) => {
|
|
3178
3174
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3179
3175
|
if (r == null)
|
|
3180
3176
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3181
|
-
return n && (i =
|
|
3177
|
+
return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
|
|
3182
3178
|
}
|
|
3183
|
-
), _i =
|
|
3179
|
+
), _i = Be(
|
|
3184
3180
|
(e) => {
|
|
3185
3181
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3186
3182
|
if (r == null)
|
|
3187
3183
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3188
|
-
return n ? i =
|
|
3184
|
+
return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3189
3185
|
}
|
|
3190
|
-
), yi =
|
|
3186
|
+
), yi = Be(
|
|
3191
3187
|
(e) => {
|
|
3192
3188
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3193
3189
|
if (r == null)
|
|
3194
3190
|
throw new Error(
|
|
3195
3191
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3196
3192
|
);
|
|
3197
|
-
return n ? i =
|
|
3193
|
+
return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3198
3194
|
}
|
|
3199
3195
|
), vi = (e = {}) => {
|
|
3200
3196
|
var t = e, {
|
|
@@ -3202,22 +3198,22 @@ const pe = (e, t) => {
|
|
|
3202
3198
|
} = t, n = ae(t, [
|
|
3203
3199
|
"locale"
|
|
3204
3200
|
]);
|
|
3205
|
-
return fi(
|
|
3201
|
+
return fi(tt({ locale: r }, n));
|
|
3206
3202
|
}, ki = (e = {}) => {
|
|
3207
3203
|
var t = e, {
|
|
3208
3204
|
locale: r = Y()
|
|
3209
3205
|
} = t, n = ae(t, [
|
|
3210
3206
|
"locale"
|
|
3211
3207
|
]);
|
|
3212
|
-
return _i(
|
|
3208
|
+
return _i(tt({ locale: r }, n));
|
|
3213
3209
|
}, bi = (e = {}) => {
|
|
3214
3210
|
var t = e, {
|
|
3215
3211
|
locale: r = Y()
|
|
3216
3212
|
} = t, n = ae(t, [
|
|
3217
3213
|
"locale"
|
|
3218
3214
|
]);
|
|
3219
|
-
return yi(
|
|
3220
|
-
}, Ei =
|
|
3215
|
+
return yi(tt({ locale: r }, n));
|
|
3216
|
+
}, Ei = Be(
|
|
3221
3217
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3222
3218
|
(e, t = Y()) => new Jn(e, t, ne().formats, {
|
|
3223
3219
|
ignoreTag: ne().ignoreTag
|
|
@@ -3235,7 +3231,7 @@ const pe = (e, t) => {
|
|
|
3235
3231
|
throw new Error(
|
|
3236
3232
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3237
3233
|
);
|
|
3238
|
-
let l =
|
|
3234
|
+
let l = rr(e, h);
|
|
3239
3235
|
if (!l)
|
|
3240
3236
|
l = (o = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3241
3237
|
else if (typeof l != "string")
|
|
@@ -3254,18 +3250,18 @@ const pe = (e, t) => {
|
|
|
3254
3250
|
);
|
|
3255
3251
|
}
|
|
3256
3252
|
return d;
|
|
3257
|
-
}, Si = (e, t) => bi(t).format(e), xi = (e, t) => ki(t).format(e),
|
|
3253
|
+
}, Si = (e, t) => bi(t).format(e), xi = (e, t) => ki(t).format(e), Mi = (e, t) => vi(t).format(e), Ti = (e, t = Y()) => rr(e, t), wi = ie([oe, _e], () => Ci);
|
|
3258
3254
|
ie([oe], () => Si);
|
|
3259
3255
|
ie([oe], () => xi);
|
|
3260
|
-
ie([oe], () =>
|
|
3261
|
-
ie([oe, _e], () =>
|
|
3262
|
-
function
|
|
3263
|
-
|
|
3256
|
+
ie([oe], () => Mi);
|
|
3257
|
+
ie([oe, _e], () => Ti);
|
|
3258
|
+
function kt(e, t) {
|
|
3259
|
+
ir(e, t);
|
|
3264
3260
|
}
|
|
3265
3261
|
function Ni(e) {
|
|
3266
3262
|
oe.set(e);
|
|
3267
3263
|
}
|
|
3268
|
-
const
|
|
3264
|
+
const bt = {
|
|
3269
3265
|
en: {
|
|
3270
3266
|
invalidUrl: "Failed to construct 'URL': Invalid URL",
|
|
3271
3267
|
fetchConsentsError: "Error: Could not fetch consents.",
|
|
@@ -3837,7 +3833,7 @@ if (typeof window < "u") {
|
|
|
3837
3833
|
}
|
|
3838
3834
|
};
|
|
3839
3835
|
};
|
|
3840
|
-
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-
|
|
3836
|
+
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-D9yegS5O.js").then((t) => t.G).then(({ default: t }) => {
|
|
3841
3837
|
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
|
|
3842
3838
|
});
|
|
3843
3839
|
}
|
|
@@ -3845,37 +3841,37 @@ function Ai(e) {
|
|
|
3845
3841
|
let t, r;
|
|
3846
3842
|
return {
|
|
3847
3843
|
c() {
|
|
3848
|
-
t =
|
|
3844
|
+
t = ot("svg"), r = ot("path"), b(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"), b(t, "xmlns", "http://www.w3.org/2000/svg"), b(t, "viewBox", "0 0 512 512");
|
|
3849
3845
|
},
|
|
3850
3846
|
m(n, i) {
|
|
3851
|
-
|
|
3847
|
+
j(n, t, i), x(t, r);
|
|
3852
3848
|
},
|
|
3853
|
-
p:
|
|
3854
|
-
i:
|
|
3855
|
-
o:
|
|
3849
|
+
p: q,
|
|
3850
|
+
i: q,
|
|
3851
|
+
o: q,
|
|
3856
3852
|
d(n) {
|
|
3857
|
-
n &&
|
|
3853
|
+
n && L(t);
|
|
3858
3854
|
}
|
|
3859
3855
|
};
|
|
3860
3856
|
}
|
|
3861
|
-
class Hi extends
|
|
3857
|
+
class Hi extends It {
|
|
3862
3858
|
constructor(t) {
|
|
3863
|
-
super(),
|
|
3859
|
+
super(), jt(this, t, null, Ai, Qe, {});
|
|
3864
3860
|
}
|
|
3865
3861
|
}
|
|
3866
3862
|
customElements.define("circle-exclamation-icon", Ot(Hi, {}, [], [], !0));
|
|
3867
3863
|
function Pi(e) {
|
|
3868
|
-
|
|
3864
|
+
Br(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}');
|
|
3869
3865
|
}
|
|
3870
|
-
function
|
|
3866
|
+
function Et(e, t, r) {
|
|
3871
3867
|
const n = e.slice();
|
|
3872
3868
|
return n[64] = t[r], n;
|
|
3873
3869
|
}
|
|
3874
|
-
function
|
|
3870
|
+
function Ct(e, t, r) {
|
|
3875
3871
|
const n = e.slice();
|
|
3876
3872
|
return n[61] = t[r], n[62] = t, n[63] = r, n;
|
|
3877
3873
|
}
|
|
3878
|
-
function
|
|
3874
|
+
function St(e, t, r) {
|
|
3879
3875
|
const n = e.slice();
|
|
3880
3876
|
return n[64] = t[r], n;
|
|
3881
3877
|
}
|
|
@@ -3885,16 +3881,16 @@ function Bi(e) {
|
|
|
3885
3881
|
e[9]
|
|
3886
3882
|
), i = [];
|
|
3887
3883
|
for (let o = 0; o < n.length; o += 1)
|
|
3888
|
-
i[o] =
|
|
3884
|
+
i[o] = xt(Et(e, n, o));
|
|
3889
3885
|
return {
|
|
3890
3886
|
c() {
|
|
3891
3887
|
t = A("div"), r = A("form");
|
|
3892
3888
|
for (let o = 0; o < i.length; o += 1)
|
|
3893
3889
|
i[o].c();
|
|
3894
|
-
|
|
3890
|
+
b(r, "class", "checkbox svelte-etk3ty"), b(t, "class", "legacyStyle");
|
|
3895
3891
|
},
|
|
3896
3892
|
m(o, a) {
|
|
3897
|
-
|
|
3893
|
+
j(o, t, a), x(t, r);
|
|
3898
3894
|
for (let s = 0; s < i.length; s += 1)
|
|
3899
3895
|
i[s] && i[s].m(r, null);
|
|
3900
3896
|
e[31](r);
|
|
@@ -3908,8 +3904,8 @@ function Bi(e) {
|
|
|
3908
3904
|
);
|
|
3909
3905
|
let s;
|
|
3910
3906
|
for (s = 0; s < n.length; s += 1) {
|
|
3911
|
-
const h =
|
|
3912
|
-
i[s] ? i[s].p(h, a) : (i[s] =
|
|
3907
|
+
const h = Et(o, n, s);
|
|
3908
|
+
i[s] ? i[s].p(h, a) : (i[s] = xt(h), i[s].c(), i[s].m(r, null));
|
|
3913
3909
|
}
|
|
3914
3910
|
for (; s < i.length; s += 1)
|
|
3915
3911
|
i[s].d(1);
|
|
@@ -3917,11 +3913,11 @@ function Bi(e) {
|
|
|
3917
3913
|
}
|
|
3918
3914
|
},
|
|
3919
3915
|
d(o) {
|
|
3920
|
-
o &&
|
|
3916
|
+
o && L(t), Ye(i, o), e[31](null);
|
|
3921
3917
|
}
|
|
3922
3918
|
};
|
|
3923
3919
|
}
|
|
3924
|
-
function
|
|
3920
|
+
function zi(e) {
|
|
3925
3921
|
let t = (
|
|
3926
3922
|
/*$_*/
|
|
3927
3923
|
e[16]("title") || /*$_*/
|
|
@@ -3929,88 +3925,88 @@ function Oi(e) {
|
|
|
3929
3925
|
), r, n, i, o = (
|
|
3930
3926
|
/*$_*/
|
|
3931
3927
|
(e[16]("saveButtonContent") || "Save Consents") + ""
|
|
3932
|
-
), a, s, h, u, l, d = t &&
|
|
3928
|
+
), a, s, h, u, l, d = t && Mt(e), m = $(
|
|
3933
3929
|
/*consentsCategories*/
|
|
3934
3930
|
e[8]
|
|
3935
|
-
),
|
|
3936
|
-
for (let
|
|
3937
|
-
|
|
3931
|
+
), y = [];
|
|
3932
|
+
for (let g = 0; g < m.length; g += 1)
|
|
3933
|
+
y[g] = Pt(Ct(e, m, g));
|
|
3938
3934
|
let f = (
|
|
3939
3935
|
/*errorMessage*/
|
|
3940
|
-
e[6] &&
|
|
3936
|
+
e[6] && Bt(e)
|
|
3941
3937
|
);
|
|
3942
3938
|
return {
|
|
3943
3939
|
c() {
|
|
3944
3940
|
d && d.c(), r = G();
|
|
3945
|
-
for (let
|
|
3946
|
-
|
|
3947
|
-
n = G(), i = A("button"), s = G(), f && f.c(), h =
|
|
3941
|
+
for (let g = 0; g < y.length; g += 1)
|
|
3942
|
+
y[g].c();
|
|
3943
|
+
n = G(), i = A("button"), s = G(), f && f.c(), h = Ur(), b(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
|
|
3948
3944
|
e[14];
|
|
3949
3945
|
},
|
|
3950
|
-
m(
|
|
3951
|
-
d && d.m(
|
|
3952
|
-
for (let _ = 0; _ <
|
|
3953
|
-
|
|
3954
|
-
|
|
3946
|
+
m(g, S) {
|
|
3947
|
+
d && d.m(g, S), j(g, r, S);
|
|
3948
|
+
for (let _ = 0; _ < y.length; _ += 1)
|
|
3949
|
+
y[_] && y[_].m(g, S);
|
|
3950
|
+
j(g, n, S), j(g, i, S), i.innerHTML = o, j(g, s, S), f && f.m(g, S), j(g, h, S), u || (l = de(
|
|
3955
3951
|
i,
|
|
3956
3952
|
"click",
|
|
3957
3953
|
/*saveChanges*/
|
|
3958
3954
|
e[17]
|
|
3959
3955
|
), u = !0);
|
|
3960
3956
|
},
|
|
3961
|
-
p(
|
|
3962
|
-
if (
|
|
3957
|
+
p(g, S) {
|
|
3958
|
+
if (S[0] & /*$_*/
|
|
3963
3959
|
65536 && (t = /*$_*/
|
|
3964
|
-
|
|
3965
|
-
|
|
3960
|
+
g[16]("title") || /*$_*/
|
|
3961
|
+
g[16]("description")), t ? d ? d.p(g, S) : (d = Mt(g), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), S[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
|
|
3966
3962
|
867088) {
|
|
3967
3963
|
m = $(
|
|
3968
3964
|
/*consentsCategories*/
|
|
3969
|
-
|
|
3965
|
+
g[8]
|
|
3970
3966
|
);
|
|
3971
3967
|
let _;
|
|
3972
3968
|
for (_ = 0; _ < m.length; _ += 1) {
|
|
3973
|
-
const
|
|
3974
|
-
|
|
3969
|
+
const v = Ct(g, m, _);
|
|
3970
|
+
y[_] ? y[_].p(v, S) : (y[_] = Pt(v), y[_].c(), y[_].m(n.parentNode, n));
|
|
3975
3971
|
}
|
|
3976
|
-
for (; _ <
|
|
3977
|
-
|
|
3978
|
-
|
|
3972
|
+
for (; _ < y.length; _ += 1)
|
|
3973
|
+
y[_].d(1);
|
|
3974
|
+
y.length = m.length;
|
|
3979
3975
|
}
|
|
3980
|
-
|
|
3976
|
+
S[0] & /*$_*/
|
|
3981
3977
|
65536 && o !== (o = /*$_*/
|
|
3982
|
-
(
|
|
3978
|
+
(g[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
|
|
3983
3979
|
16384 && a !== (a = !/*isValid*/
|
|
3984
|
-
|
|
3985
|
-
|
|
3980
|
+
g[14]) && (i.disabled = a), /*errorMessage*/
|
|
3981
|
+
g[6] ? f ? f.p(g, S) : (f = Bt(g), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
|
|
3986
3982
|
},
|
|
3987
|
-
d(
|
|
3988
|
-
|
|
3983
|
+
d(g) {
|
|
3984
|
+
g && (L(r), L(n), L(i), L(s), L(h)), d && d.d(g), Ye(y, g), f && f.d(g), u = !1, l();
|
|
3989
3985
|
}
|
|
3990
3986
|
};
|
|
3991
3987
|
}
|
|
3992
|
-
function
|
|
3988
|
+
function Oi(e) {
|
|
3993
3989
|
let t, r, n;
|
|
3994
3990
|
return {
|
|
3995
3991
|
c() {
|
|
3996
|
-
t = A("div"), r = A("strong"), n =
|
|
3992
|
+
t = A("div"), r = A("strong"), n = pe(
|
|
3997
3993
|
/*fatalError*/
|
|
3998
3994
|
e[7]
|
|
3999
|
-
),
|
|
3995
|
+
), b(r, "class", "ErrorMessage svelte-etk3ty"), b(t, "class", "ContainerCenter svelte-etk3ty");
|
|
4000
3996
|
},
|
|
4001
3997
|
m(i, o) {
|
|
4002
|
-
|
|
3998
|
+
j(i, t, o), x(t, r), x(r, n);
|
|
4003
3999
|
},
|
|
4004
4000
|
p(i, o) {
|
|
4005
4001
|
o[0] & /*fatalError*/
|
|
4006
|
-
128 &&
|
|
4002
|
+
128 && fe(
|
|
4007
4003
|
n,
|
|
4008
4004
|
/*fatalError*/
|
|
4009
4005
|
i[7]
|
|
4010
4006
|
);
|
|
4011
4007
|
},
|
|
4012
4008
|
d(i) {
|
|
4013
|
-
i &&
|
|
4009
|
+
i && L(t);
|
|
4014
4010
|
}
|
|
4015
4011
|
};
|
|
4016
4012
|
}
|
|
@@ -4036,7 +4032,7 @@ function Ii(e) {
|
|
|
4036
4032
|
);
|
|
4037
4033
|
},
|
|
4038
4034
|
m(r, n) {
|
|
4039
|
-
|
|
4035
|
+
j(r, t, n);
|
|
4040
4036
|
},
|
|
4041
4037
|
p(r, n) {
|
|
4042
4038
|
n[0] & /*clientstyling*/
|
|
@@ -4060,11 +4056,11 @@ function Ii(e) {
|
|
|
4060
4056
|
);
|
|
4061
4057
|
},
|
|
4062
4058
|
d(r) {
|
|
4063
|
-
r &&
|
|
4059
|
+
r && L(t);
|
|
4064
4060
|
}
|
|
4065
4061
|
};
|
|
4066
4062
|
}
|
|
4067
|
-
function
|
|
4063
|
+
function xt(e) {
|
|
4068
4064
|
let t, r, n, i, o, a, s, h, u = (
|
|
4069
4065
|
/*$_*/
|
|
4070
4066
|
(e[16](`${/*consent*/
|
|
@@ -4073,77 +4069,77 @@ function St(e) {
|
|
|
4073
4069
|
), l = (
|
|
4074
4070
|
/*consent*/
|
|
4075
4071
|
e[64].mustAccept ? " *" : ""
|
|
4076
|
-
), d, m,
|
|
4077
|
-
function
|
|
4072
|
+
), d, m, y, f, g, S, _, v, C;
|
|
4073
|
+
function P(...E) {
|
|
4078
4074
|
return (
|
|
4079
4075
|
/*input_handler_1*/
|
|
4080
4076
|
e[30](
|
|
4081
4077
|
/*consent*/
|
|
4082
4078
|
e[64],
|
|
4083
|
-
...
|
|
4079
|
+
...E
|
|
4084
4080
|
)
|
|
4085
4081
|
);
|
|
4086
4082
|
}
|
|
4087
4083
|
return {
|
|
4088
4084
|
c() {
|
|
4089
|
-
t = A("div"), r = A("input"), o = G(), a = A("label"), s = A("div"), h = new
|
|
4090
|
-
e[64].status === "1",
|
|
4091
|
-
e[64].tagCode}__input`), h.a = d,
|
|
4092
|
-
e[64].tagCode}__input`),
|
|
4093
|
-
e[64].tagCode),
|
|
4085
|
+
t = A("div"), r = A("input"), o = G(), a = A("label"), s = A("div"), h = new Lt(!1), d = pe(l), y = G(), f = A("small"), S = G(), b(r, "class", "checkbox__input svelte-etk3ty"), b(r, "type", "checkbox"), r.checked = n = /*consent*/
|
|
4086
|
+
e[64].status === "1", b(r, "id", i = `${/*consent*/
|
|
4087
|
+
e[64].tagCode}__input`), h.a = d, b(s, "class", "checkbox__label-text svelte-etk3ty"), b(a, "class", "checkbox__label svelte-etk3ty"), b(a, "for", m = `${/*consent*/
|
|
4088
|
+
e[64].tagCode}__input`), b(f, "class", "checkbox__error-message svelte-etk3ty"), b(f, "id", g = "checkBoxError__" + /*consent*/
|
|
4089
|
+
e[64].tagCode), b(t, "class", _ = "checkbox__wrapper " + /*consent*/
|
|
4094
4090
|
e[64].tagCode + "__input svelte-etk3ty");
|
|
4095
4091
|
},
|
|
4096
|
-
m(
|
|
4097
|
-
|
|
4092
|
+
m(E, z) {
|
|
4093
|
+
j(E, t, z), x(t, r), x(t, o), x(t, a), x(a, s), h.m(u, s), x(s, d), x(t, y), x(t, f), x(t, S), v || (C = de(r, "input", P), v = !0);
|
|
4098
4094
|
},
|
|
4099
|
-
p(
|
|
4100
|
-
e =
|
|
4095
|
+
p(E, z) {
|
|
4096
|
+
e = E, z[0] & /*playerConsents*/
|
|
4101
4097
|
512 && n !== (n = /*consent*/
|
|
4102
|
-
e[64].status === "1") && (r.checked = n),
|
|
4098
|
+
e[64].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
|
|
4103
4099
|
512 && i !== (i = `${/*consent*/
|
|
4104
|
-
e[64].tagCode}__input`) &&
|
|
4100
|
+
e[64].tagCode}__input`) && b(r, "id", i), z[0] & /*$_, playerConsents*/
|
|
4105
4101
|
66048 && u !== (u = /*$_*/
|
|
4106
4102
|
(e[16](`${/*consent*/
|
|
4107
4103
|
e[64].tagCode}__description`) || /*consent*/
|
|
4108
|
-
e[64].tagCode) + "") && h.p(u),
|
|
4104
|
+
e[64].tagCode) + "") && h.p(u), z[0] & /*playerConsents*/
|
|
4109
4105
|
512 && l !== (l = /*consent*/
|
|
4110
|
-
e[64].mustAccept ? " *" : "") &&
|
|
4106
|
+
e[64].mustAccept ? " *" : "") && fe(d, l), z[0] & /*playerConsents*/
|
|
4111
4107
|
512 && m !== (m = `${/*consent*/
|
|
4112
|
-
e[64].tagCode}__input`) &&
|
|
4113
|
-
512 &&
|
|
4114
|
-
e[64].tagCode) &&
|
|
4108
|
+
e[64].tagCode}__input`) && b(a, "for", m), z[0] & /*playerConsents*/
|
|
4109
|
+
512 && g !== (g = "checkBoxError__" + /*consent*/
|
|
4110
|
+
e[64].tagCode) && b(f, "id", g), z[0] & /*playerConsents*/
|
|
4115
4111
|
512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
|
|
4116
|
-
e[64].tagCode + "__input svelte-etk3ty") &&
|
|
4112
|
+
e[64].tagCode + "__input svelte-etk3ty") && b(t, "class", _);
|
|
4117
4113
|
},
|
|
4118
|
-
d(
|
|
4119
|
-
|
|
4114
|
+
d(E) {
|
|
4115
|
+
E && L(t), v = !1, C();
|
|
4120
4116
|
}
|
|
4121
4117
|
};
|
|
4122
4118
|
}
|
|
4123
|
-
function
|
|
4119
|
+
function Mt(e) {
|
|
4124
4120
|
let t, r = (
|
|
4125
4121
|
/*$_*/
|
|
4126
4122
|
e[16]("title")
|
|
4127
4123
|
), n, i = (
|
|
4128
4124
|
/*$_*/
|
|
4129
4125
|
e[16]("description")
|
|
4130
|
-
), o = r && Tt(e), a = i &&
|
|
4126
|
+
), o = r && Tt(e), a = i && wt(e);
|
|
4131
4127
|
return {
|
|
4132
4128
|
c() {
|
|
4133
|
-
t = A("div"), o && o.c(), n = G(), a && a.c(),
|
|
4129
|
+
t = A("div"), o && o.c(), n = G(), a && a.c(), b(t, "class", "PlayerConsentsHeader svelte-etk3ty");
|
|
4134
4130
|
},
|
|
4135
4131
|
m(s, h) {
|
|
4136
|
-
|
|
4132
|
+
j(s, t, h), o && o.m(t, null), x(t, n), a && a.m(t, null);
|
|
4137
4133
|
},
|
|
4138
4134
|
p(s, h) {
|
|
4139
4135
|
h[0] & /*$_*/
|
|
4140
4136
|
65536 && (r = /*$_*/
|
|
4141
4137
|
s[16]("title")), r ? o ? o.p(s, h) : (o = Tt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
|
|
4142
4138
|
65536 && (i = /*$_*/
|
|
4143
|
-
s[16]("description")), i ? a ? a.p(s, h) : (a =
|
|
4139
|
+
s[16]("description")), i ? a ? a.p(s, h) : (a = wt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4144
4140
|
},
|
|
4145
4141
|
d(s) {
|
|
4146
|
-
s &&
|
|
4142
|
+
s && L(t), o && o.d(), a && a.d();
|
|
4147
4143
|
}
|
|
4148
4144
|
};
|
|
4149
4145
|
}
|
|
@@ -4154,58 +4150,58 @@ function Tt(e) {
|
|
|
4154
4150
|
), n;
|
|
4155
4151
|
return {
|
|
4156
4152
|
c() {
|
|
4157
|
-
t = A("h2"), n =
|
|
4153
|
+
t = A("h2"), n = pe(r), b(t, "class", "PlayerConsentsTitle");
|
|
4158
4154
|
},
|
|
4159
4155
|
m(i, o) {
|
|
4160
|
-
|
|
4156
|
+
j(i, t, o), x(t, n);
|
|
4161
4157
|
},
|
|
4162
4158
|
p(i, o) {
|
|
4163
4159
|
o[0] & /*$_*/
|
|
4164
4160
|
65536 && r !== (r = /*$_*/
|
|
4165
|
-
i[16]("title") + "") &&
|
|
4161
|
+
i[16]("title") + "") && fe(n, r);
|
|
4166
4162
|
},
|
|
4167
4163
|
d(i) {
|
|
4168
|
-
i &&
|
|
4164
|
+
i && L(t);
|
|
4169
4165
|
}
|
|
4170
4166
|
};
|
|
4171
4167
|
}
|
|
4172
|
-
function
|
|
4168
|
+
function wt(e) {
|
|
4173
4169
|
let t, r = (
|
|
4174
4170
|
/*$_*/
|
|
4175
4171
|
e[16]("description") + ""
|
|
4176
4172
|
), n;
|
|
4177
4173
|
return {
|
|
4178
4174
|
c() {
|
|
4179
|
-
t = A("p"), n =
|
|
4175
|
+
t = A("p"), n = pe(r), b(t, "class", "PlayerConsentsDescription");
|
|
4180
4176
|
},
|
|
4181
4177
|
m(i, o) {
|
|
4182
|
-
|
|
4178
|
+
j(i, t, o), x(t, n);
|
|
4183
4179
|
},
|
|
4184
4180
|
p(i, o) {
|
|
4185
4181
|
o[0] & /*$_*/
|
|
4186
4182
|
65536 && r !== (r = /*$_*/
|
|
4187
|
-
i[16]("description") + "") &&
|
|
4183
|
+
i[16]("description") + "") && fe(n, r);
|
|
4188
4184
|
},
|
|
4189
4185
|
d(i) {
|
|
4190
|
-
i &&
|
|
4186
|
+
i && L(t);
|
|
4191
4187
|
}
|
|
4192
4188
|
};
|
|
4193
4189
|
}
|
|
4194
|
-
function
|
|
4190
|
+
function Nt(e) {
|
|
4195
4191
|
let t;
|
|
4196
4192
|
return {
|
|
4197
4193
|
c() {
|
|
4198
|
-
t = A("sup"), t.textContent = "*",
|
|
4194
|
+
t = A("sup"), t.textContent = "*", b(t, "class", "ConsentRequired svelte-etk3ty");
|
|
4199
4195
|
},
|
|
4200
4196
|
m(r, n) {
|
|
4201
|
-
|
|
4197
|
+
j(r, t, n);
|
|
4202
4198
|
},
|
|
4203
4199
|
d(r) {
|
|
4204
|
-
r &&
|
|
4200
|
+
r && L(t);
|
|
4205
4201
|
}
|
|
4206
4202
|
};
|
|
4207
4203
|
}
|
|
4208
|
-
function
|
|
4204
|
+
function At(e) {
|
|
4209
4205
|
let t, r = (
|
|
4210
4206
|
/*$_*/
|
|
4211
4207
|
(e[16](`${/*consent*/
|
|
@@ -4214,10 +4210,10 @@ function Nt(e) {
|
|
|
4214
4210
|
);
|
|
4215
4211
|
return {
|
|
4216
4212
|
c() {
|
|
4217
|
-
t = A("p"),
|
|
4213
|
+
t = A("p"), b(t, "class", "ConsentDescription svelte-etk3ty");
|
|
4218
4214
|
},
|
|
4219
4215
|
m(n, i) {
|
|
4220
|
-
|
|
4216
|
+
j(n, t, i), t.innerHTML = r;
|
|
4221
4217
|
},
|
|
4222
4218
|
p(n, i) {
|
|
4223
4219
|
i[0] & /*$_, playerConsents, consentsCategories*/
|
|
@@ -4227,36 +4223,36 @@ function Nt(e) {
|
|
|
4227
4223
|
n[64].description) + "") && (t.innerHTML = r);
|
|
4228
4224
|
},
|
|
4229
4225
|
d(n) {
|
|
4230
|
-
n &&
|
|
4226
|
+
n && L(t);
|
|
4231
4227
|
}
|
|
4232
4228
|
};
|
|
4233
4229
|
}
|
|
4234
|
-
function
|
|
4230
|
+
function Ht(e) {
|
|
4235
4231
|
let t, r, n, i, o = (
|
|
4236
4232
|
/*$_*/
|
|
4237
4233
|
(e[16](`${/*consent*/
|
|
4238
4234
|
e[64].tagCode}__name`) || /*consent*/
|
|
4239
4235
|
e[64].friendlyName) + ""
|
|
4240
|
-
), a, s, h, u, l, d, m,
|
|
4236
|
+
), a, s, h, u, l, d, m, y, f, g, S, _ = (
|
|
4241
4237
|
/*consent*/
|
|
4242
|
-
e[64].mustAccept === !0 &&
|
|
4243
|
-
),
|
|
4238
|
+
e[64].mustAccept === !0 && Nt()
|
|
4239
|
+
), v = (
|
|
4244
4240
|
/*displayconsentdescription*/
|
|
4245
|
-
e[4] === "true" &&
|
|
4241
|
+
e[4] === "true" && At(e)
|
|
4246
4242
|
);
|
|
4247
|
-
function
|
|
4243
|
+
function C(...P) {
|
|
4248
4244
|
return (
|
|
4249
4245
|
/*input_handler*/
|
|
4250
4246
|
e[29](
|
|
4251
4247
|
/*consent*/
|
|
4252
4248
|
e[64],
|
|
4253
|
-
...
|
|
4249
|
+
...P
|
|
4254
4250
|
)
|
|
4255
4251
|
);
|
|
4256
4252
|
}
|
|
4257
4253
|
return {
|
|
4258
4254
|
c() {
|
|
4259
|
-
t = A("div"), r = A("div"), n = A("h4"), i = new
|
|
4255
|
+
t = A("div"), r = A("div"), n = A("h4"), i = new Lt(!1), a = G(), _ && _.c(), s = G(), v && v.c(), h = G(), u = A("label"), l = A("input"), y = G(), f = A("span"), i.a = a, b(n, "class", "ConsentName svelte-etk3ty"), b(r, "class", "ConsentContent"), b(l, "type", "checkbox"), l.disabled = d = /*consent*/
|
|
4260
4256
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4261
4257
|
e[12][
|
|
4262
4258
|
/*consent*/
|
|
@@ -4265,43 +4261,43 @@ function At(e) {
|
|
|
4265
4261
|
e[13][
|
|
4266
4262
|
/*consent*/
|
|
4267
4263
|
e[64].tagCode
|
|
4268
|
-
],
|
|
4264
|
+
], b(l, "class", "svelte-etk3ty"), b(f, "class", "Slider Round svelte-etk3ty"), b(u, "class", "ToggleSwitch svelte-etk3ty"), b(t, "class", "ConsentItem svelte-etk3ty");
|
|
4269
4265
|
},
|
|
4270
|
-
m(
|
|
4271
|
-
|
|
4266
|
+
m(P, E) {
|
|
4267
|
+
j(P, t, E), x(t, r), x(r, n), i.m(o, n), x(n, a), _ && _.m(n, null), x(r, s), v && v.m(r, null), x(t, h), x(t, u), x(u, l), x(u, y), x(u, f), g || (S = de(l, "input", C), g = !0);
|
|
4272
4268
|
},
|
|
4273
|
-
p(
|
|
4274
|
-
e =
|
|
4269
|
+
p(P, E) {
|
|
4270
|
+
e = P, E[0] & /*$_, playerConsents, consentsCategories*/
|
|
4275
4271
|
66304 && o !== (o = /*$_*/
|
|
4276
4272
|
(e[16](`${/*consent*/
|
|
4277
4273
|
e[64].tagCode}__name`) || /*consent*/
|
|
4278
4274
|
e[64].friendlyName) + "") && i.p(o), /*consent*/
|
|
4279
|
-
e[64].mustAccept === !0 ? _ || (_ =
|
|
4280
|
-
e[4] === "true" ?
|
|
4275
|
+
e[64].mustAccept === !0 ? _ || (_ = Nt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
|
|
4276
|
+
e[4] === "true" ? v ? v.p(e, E) : (v = At(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
|
|
4281
4277
|
4864 && d !== (d = /*consent*/
|
|
4282
4278
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4283
4279
|
e[12][
|
|
4284
4280
|
/*consent*/
|
|
4285
4281
|
e[64].tagCode
|
|
4286
|
-
] === !0) && (l.disabled = d),
|
|
4282
|
+
] === !0) && (l.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
|
|
4287
4283
|
8960 && m !== (m = /*consentsState*/
|
|
4288
4284
|
e[13][
|
|
4289
4285
|
/*consent*/
|
|
4290
4286
|
e[64].tagCode
|
|
4291
4287
|
]) && (l.checked = m);
|
|
4292
4288
|
},
|
|
4293
|
-
d(
|
|
4294
|
-
|
|
4289
|
+
d(P) {
|
|
4290
|
+
P && L(t), _ && _.d(), v && v.d(), g = !1, S();
|
|
4295
4291
|
}
|
|
4296
4292
|
};
|
|
4297
4293
|
}
|
|
4298
|
-
function
|
|
4294
|
+
function Pt(e) {
|
|
4299
4295
|
let t, r, n, i = (
|
|
4300
4296
|
/*$_*/
|
|
4301
4297
|
(e[16](`${/*category*/
|
|
4302
4298
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
4303
4299
|
e[61].friendlyName) + ""
|
|
4304
|
-
), o, a, s, h, u, l, d, m,
|
|
4300
|
+
), o, a, s, h, u, l, d, m, y;
|
|
4305
4301
|
function f() {
|
|
4306
4302
|
e[26].call(
|
|
4307
4303
|
s,
|
|
@@ -4309,7 +4305,7 @@ function Ht(e) {
|
|
|
4309
4305
|
e[61]
|
|
4310
4306
|
);
|
|
4311
4307
|
}
|
|
4312
|
-
function
|
|
4308
|
+
function g() {
|
|
4313
4309
|
return (
|
|
4314
4310
|
/*change_handler*/
|
|
4315
4311
|
e[27](
|
|
@@ -4318,95 +4314,95 @@ function Ht(e) {
|
|
|
4318
4314
|
)
|
|
4319
4315
|
);
|
|
4320
4316
|
}
|
|
4321
|
-
function
|
|
4317
|
+
function S(...C) {
|
|
4322
4318
|
return (
|
|
4323
4319
|
/*func*/
|
|
4324
4320
|
e[28](
|
|
4325
4321
|
/*category*/
|
|
4326
4322
|
e[61],
|
|
4327
|
-
...
|
|
4323
|
+
...C
|
|
4328
4324
|
)
|
|
4329
4325
|
);
|
|
4330
4326
|
}
|
|
4331
4327
|
let _ = $(
|
|
4332
4328
|
/*playerConsents*/
|
|
4333
|
-
e[9].filter(
|
|
4334
|
-
),
|
|
4335
|
-
for (let
|
|
4336
|
-
|
|
4329
|
+
e[9].filter(S)
|
|
4330
|
+
), v = [];
|
|
4331
|
+
for (let C = 0; C < _.length; C += 1)
|
|
4332
|
+
v[C] = Ht(St(e, _, C));
|
|
4337
4333
|
return {
|
|
4338
4334
|
c() {
|
|
4339
4335
|
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");
|
|
4340
|
-
for (let
|
|
4341
|
-
|
|
4342
|
-
|
|
4336
|
+
for (let C = 0; C < v.length; C += 1)
|
|
4337
|
+
v[C].c();
|
|
4338
|
+
b(s, "type", "checkbox"), b(s, "class", "svelte-etk3ty"), b(u, "class", "Slider Round svelte-etk3ty"), b(a, "class", "ToggleSwitch Big svelte-etk3ty"), b(r, "class", "AccordionHeader svelte-etk3ty"), b(d, "class", "AccordionContent svelte-etk3ty"), b(t, "class", "AccordionItem svelte-etk3ty");
|
|
4343
4339
|
},
|
|
4344
|
-
m(
|
|
4345
|
-
|
|
4340
|
+
m(C, P) {
|
|
4341
|
+
j(C, t, P), x(t, r), x(r, n), n.innerHTML = i, x(r, o), x(r, a), x(a, s), s.checked = /*categoryToggle*/
|
|
4346
4342
|
e[11][
|
|
4347
4343
|
/*category*/
|
|
4348
4344
|
e[61].categoryTagCode
|
|
4349
|
-
],
|
|
4350
|
-
for (let
|
|
4351
|
-
|
|
4352
|
-
m || (
|
|
4345
|
+
], x(a, h), x(a, u), x(t, l), x(t, d);
|
|
4346
|
+
for (let E = 0; E < v.length; E += 1)
|
|
4347
|
+
v[E] && v[E].m(d, null);
|
|
4348
|
+
m || (y = [
|
|
4353
4349
|
de(s, "change", f),
|
|
4354
|
-
de(s, "change",
|
|
4350
|
+
de(s, "change", g)
|
|
4355
4351
|
], m = !0);
|
|
4356
4352
|
},
|
|
4357
|
-
p(
|
|
4358
|
-
if (e =
|
|
4353
|
+
p(C, P) {
|
|
4354
|
+
if (e = C, P[0] & /*$_, consentsCategories*/
|
|
4359
4355
|
65792 && i !== (i = /*$_*/
|
|
4360
4356
|
(e[16](`${/*category*/
|
|
4361
4357
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
4362
|
-
e[61].friendlyName) + "") && (n.innerHTML = i),
|
|
4358
|
+
e[61].friendlyName) + "") && (n.innerHTML = i), P[0] & /*categoryToggle, consentsCategories*/
|
|
4363
4359
|
2304 && (s.checked = /*categoryToggle*/
|
|
4364
4360
|
e[11][
|
|
4365
4361
|
/*category*/
|
|
4366
4362
|
e[61].categoryTagCode
|
|
4367
|
-
]),
|
|
4363
|
+
]), P[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
|
|
4368
4364
|
602896) {
|
|
4369
4365
|
_ = $(
|
|
4370
4366
|
/*playerConsents*/
|
|
4371
|
-
e[9].filter(
|
|
4367
|
+
e[9].filter(S)
|
|
4372
4368
|
);
|
|
4373
|
-
let
|
|
4374
|
-
for (
|
|
4375
|
-
const
|
|
4376
|
-
|
|
4369
|
+
let E;
|
|
4370
|
+
for (E = 0; E < _.length; E += 1) {
|
|
4371
|
+
const z = St(e, _, E);
|
|
4372
|
+
v[E] ? v[E].p(z, P) : (v[E] = Ht(z), v[E].c(), v[E].m(d, null));
|
|
4377
4373
|
}
|
|
4378
|
-
for (;
|
|
4379
|
-
|
|
4380
|
-
|
|
4374
|
+
for (; E < v.length; E += 1)
|
|
4375
|
+
v[E].d(1);
|
|
4376
|
+
v.length = _.length;
|
|
4381
4377
|
}
|
|
4382
4378
|
},
|
|
4383
|
-
d(
|
|
4384
|
-
|
|
4379
|
+
d(C) {
|
|
4380
|
+
C && L(t), Ye(v, C), m = !1, zt(y);
|
|
4385
4381
|
}
|
|
4386
4382
|
};
|
|
4387
4383
|
}
|
|
4388
|
-
function
|
|
4384
|
+
function Bt(e) {
|
|
4389
4385
|
let t, r, n, i, o;
|
|
4390
4386
|
return {
|
|
4391
4387
|
c() {
|
|
4392
|
-
t = A("div"), r = A("circle-exclamation-icon"), n = G(), i = A("strong"), o =
|
|
4388
|
+
t = A("div"), r = A("circle-exclamation-icon"), n = G(), i = A("strong"), o = pe(
|
|
4393
4389
|
/*errorMessage*/
|
|
4394
4390
|
e[6]
|
|
4395
|
-
), Q(r, "class", "svelte-etk3ty"),
|
|
4391
|
+
), Q(r, "class", "svelte-etk3ty"), b(i, "class", "ErrorMessage svelte-etk3ty"), b(t, "class", "ConsentErrorContainer svelte-etk3ty");
|
|
4396
4392
|
},
|
|
4397
4393
|
m(a, s) {
|
|
4398
|
-
|
|
4394
|
+
j(a, t, s), x(t, r), x(t, n), x(t, i), x(i, o);
|
|
4399
4395
|
},
|
|
4400
4396
|
p(a, s) {
|
|
4401
4397
|
s[0] & /*errorMessage*/
|
|
4402
|
-
64 &&
|
|
4398
|
+
64 && fe(
|
|
4403
4399
|
o,
|
|
4404
4400
|
/*errorMessage*/
|
|
4405
4401
|
a[6]
|
|
4406
4402
|
);
|
|
4407
4403
|
},
|
|
4408
4404
|
d(a) {
|
|
4409
|
-
a &&
|
|
4405
|
+
a && L(t);
|
|
4410
4406
|
}
|
|
4411
4407
|
};
|
|
4412
4408
|
}
|
|
@@ -4422,12 +4418,12 @@ function ji(e) {
|
|
|
4422
4418
|
/*fatalError*/
|
|
4423
4419
|
a[7]
|
|
4424
4420
|
)
|
|
4425
|
-
return
|
|
4421
|
+
return Oi;
|
|
4426
4422
|
if (
|
|
4427
4423
|
/*session*/
|
|
4428
4424
|
a[0]
|
|
4429
4425
|
)
|
|
4430
|
-
return
|
|
4426
|
+
return zi;
|
|
4431
4427
|
if (!/*session*/
|
|
4432
4428
|
a[0])
|
|
4433
4429
|
return Bi;
|
|
@@ -4435,197 +4431,197 @@ function ji(e) {
|
|
|
4435
4431
|
let i = n(e), o = i && i(e);
|
|
4436
4432
|
return {
|
|
4437
4433
|
c() {
|
|
4438
|
-
t = A("div"), r = A("div"), o && o.c(),
|
|
4434
|
+
t = A("div"), r = A("div"), o && o.c(), b(r, "class", "ConsentsContainer svelte-etk3ty"), b(t, "class", Ir("") + " svelte-etk3ty");
|
|
4439
4435
|
},
|
|
4440
4436
|
m(a, s) {
|
|
4441
|
-
|
|
4437
|
+
j(a, t, s), x(t, r), o && o.m(r, null), e[32](r);
|
|
4442
4438
|
},
|
|
4443
4439
|
p(a, s) {
|
|
4444
4440
|
i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
|
|
4445
4441
|
},
|
|
4446
|
-
i:
|
|
4447
|
-
o:
|
|
4442
|
+
i: q,
|
|
4443
|
+
o: q,
|
|
4448
4444
|
d(a) {
|
|
4449
|
-
a &&
|
|
4445
|
+
a && L(t), o && o.d(), e[32](null);
|
|
4450
4446
|
}
|
|
4451
4447
|
};
|
|
4452
4448
|
}
|
|
4453
4449
|
function Li(e, t, r) {
|
|
4454
4450
|
let n;
|
|
4455
|
-
|
|
4456
|
-
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:
|
|
4451
|
+
zr(e, wi, (c) => r(16, n = c));
|
|
4452
|
+
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: y = "false" } = t, f, g, S = !1, _ = !1, v = "", C = "", P = "", E = "", z = [], W = [], O = [], se = !0, ye = !0, F = {}, ve = {}, Z = {}, U = {}, le, ke, R = {
|
|
4457
4453
|
none: { key: "0", value: "None" },
|
|
4458
4454
|
accepted: { key: "1", value: "Accepted" },
|
|
4459
4455
|
expired: { key: "2", value: "Expired" },
|
|
4460
4456
|
denied: { key: "3", value: "Denied" },
|
|
4461
4457
|
suspended: { key: "4", value: "Suspended" }
|
|
4462
4458
|
}, be = !1;
|
|
4463
|
-
Object.keys(
|
|
4464
|
-
|
|
4459
|
+
Object.keys(bt).forEach((c) => {
|
|
4460
|
+
kt(c, bt[c]);
|
|
4465
4461
|
});
|
|
4466
|
-
const
|
|
4462
|
+
const cr = () => {
|
|
4467
4463
|
Ni(l);
|
|
4468
|
-
},
|
|
4464
|
+
}, ur = () => {
|
|
4469
4465
|
let c = new URL(m);
|
|
4470
|
-
fetch(c.href).then((
|
|
4471
|
-
Object.keys(
|
|
4472
|
-
|
|
4466
|
+
fetch(c.href).then((p) => p.json()).then((p) => {
|
|
4467
|
+
Object.keys(p).forEach((T) => {
|
|
4468
|
+
kt(T, p[T]);
|
|
4473
4469
|
});
|
|
4474
|
-
}).catch((
|
|
4475
|
-
console.log(
|
|
4470
|
+
}).catch((p) => {
|
|
4471
|
+
console.log(p);
|
|
4476
4472
|
});
|
|
4477
|
-
},
|
|
4478
|
-
i && (
|
|
4479
|
-
}, Ee = (c,
|
|
4480
|
-
|
|
4481
|
-
}, ce = async (c,
|
|
4473
|
+
}, hr = () => {
|
|
4474
|
+
i && (v = i, _ = !0), o && (C = o);
|
|
4475
|
+
}, Ee = (c, p = !1) => {
|
|
4476
|
+
p ? r(7, E = c) : (_r(), r(6, P = c));
|
|
4477
|
+
}, ce = async (c, p, T, k = !1) => {
|
|
4482
4478
|
try {
|
|
4483
|
-
const
|
|
4484
|
-
if (!
|
|
4485
|
-
throw new Error(n(
|
|
4486
|
-
const I = await
|
|
4487
|
-
return
|
|
4488
|
-
} catch (
|
|
4479
|
+
const M = await fetch(c, T);
|
|
4480
|
+
if (!M.ok)
|
|
4481
|
+
throw new Error(n(p));
|
|
4482
|
+
const I = await M.json();
|
|
4483
|
+
return _ ? I : I.filter((V) => V.showOnRegister === !0);
|
|
4484
|
+
} catch (M) {
|
|
4489
4485
|
throw Ee(
|
|
4490
|
-
|
|
4486
|
+
M instanceof TypeError ? n(p) : M.message,
|
|
4491
4487
|
k
|
|
4492
|
-
),
|
|
4488
|
+
), M;
|
|
4493
4489
|
}
|
|
4494
|
-
},
|
|
4490
|
+
}, dr = async () => {
|
|
4495
4491
|
try {
|
|
4496
|
-
let c = [],
|
|
4497
|
-
if (
|
|
4498
|
-
let k = O.find((
|
|
4492
|
+
let c = [], p = [];
|
|
4493
|
+
if (_ ? [c, p] = await rt() : c = await rt(), r(10, se = !1), W = [...c], r(8, z = gr(W).sort((T, k) => T.categoryTagCode.localeCompare(k.categoryTagCode))), r(11, F = pr(z)), ve = { ...F }, r(9, O = [...p]), W.forEach((T) => {
|
|
4494
|
+
let k = O.find((M) => M.tagCode === T.tagCode);
|
|
4499
4495
|
k || (k = {
|
|
4500
|
-
...
|
|
4496
|
+
...T,
|
|
4501
4497
|
status: R.denied.value
|
|
4502
|
-
}, O.push(k)), k.description =
|
|
4503
|
-
}),
|
|
4504
|
-
if (r(9, O = O.filter((
|
|
4498
|
+
}, O.push(k)), k.description = T.description, k.orderNumber = T.orderNumber;
|
|
4499
|
+
}), y === "true") {
|
|
4500
|
+
if (r(9, O = O.filter((T) => T.status === R.expired.value)), O.length !== 0)
|
|
4505
4501
|
return;
|
|
4506
4502
|
Ee(n("wrongModalConfig"), !0);
|
|
4507
4503
|
}
|
|
4508
|
-
|
|
4504
|
+
fr();
|
|
4509
4505
|
} catch (c) {
|
|
4510
4506
|
throw r(10, se = !1), Ee(
|
|
4511
4507
|
c instanceof TypeError ? n("invalidUrl") : c.message,
|
|
4512
4508
|
!0
|
|
4513
4509
|
), c;
|
|
4514
4510
|
}
|
|
4515
|
-
},
|
|
4511
|
+
}, rt = async () => {
|
|
4516
4512
|
const c = new URL(`${a}/api/v1/gm/consents`);
|
|
4517
|
-
if (c.searchParams.append("Status", "Active"), !
|
|
4513
|
+
if (c.searchParams.append("Status", "Active"), !_)
|
|
4518
4514
|
return await ce(c.href, "fetchConsentsError", { method: "GET" }, !0);
|
|
4519
|
-
const
|
|
4515
|
+
const p = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
4520
4516
|
return await Promise.all([
|
|
4521
4517
|
ce(c.href, "fetchConsentsError", { method: "GET" }, !0),
|
|
4522
|
-
ce(
|
|
4518
|
+
ce(p.href, "fetchPlayerConsentsError", {
|
|
4523
4519
|
method: "GET",
|
|
4524
4520
|
headers: {
|
|
4525
|
-
"X-SessionId":
|
|
4521
|
+
"X-SessionId": v,
|
|
4526
4522
|
"Content-Type": "application/json"
|
|
4527
4523
|
}
|
|
4528
4524
|
})
|
|
4529
4525
|
]);
|
|
4530
|
-
},
|
|
4526
|
+
}, mr = () => {
|
|
4531
4527
|
be = !1;
|
|
4532
|
-
const c = new URL(`${a}/api/v2/gm/legislation/consents`),
|
|
4528
|
+
const c = new URL(`${a}/api/v2/gm/legislation/consents`), p = {
|
|
4533
4529
|
"Content-Type": "application/json",
|
|
4534
4530
|
Accept: "application/json"
|
|
4535
|
-
},
|
|
4536
|
-
fetch(c.href,
|
|
4531
|
+
}, T = { method: "GET", headers: p };
|
|
4532
|
+
fetch(c.href, T).then((k) => k.ok ? k.json() : (be = !0, k.json().then((M) => (console.error(M), Ce(M))))).then((k) => {
|
|
4537
4533
|
if (!be) {
|
|
4538
|
-
if (
|
|
4534
|
+
if (W = k, localStorage.getItem("playerConsents")) {
|
|
4539
4535
|
try {
|
|
4540
4536
|
r(9, O = JSON.parse(localStorage.getItem("playerConsents")));
|
|
4541
|
-
} catch (
|
|
4542
|
-
return console.error(
|
|
4537
|
+
} catch (M) {
|
|
4538
|
+
return console.error(M), Ce(M);
|
|
4543
4539
|
}
|
|
4544
4540
|
return;
|
|
4545
4541
|
}
|
|
4546
|
-
return r(9, O =
|
|
4547
|
-
id:
|
|
4542
|
+
return r(9, O = W.map((M) => ({
|
|
4543
|
+
id: M.id,
|
|
4548
4544
|
status: R.denied.key,
|
|
4549
|
-
friendlyName:
|
|
4550
|
-
tagCode:
|
|
4545
|
+
friendlyName: M.friendlyName,
|
|
4546
|
+
tagCode: M.tagCode,
|
|
4551
4547
|
selected: null,
|
|
4552
|
-
mustAccept:
|
|
4548
|
+
mustAccept: M.mustAccept
|
|
4553
4549
|
}))), localStorage.setItem("playerConsents", JSON.stringify(O)), O;
|
|
4554
4550
|
}
|
|
4555
4551
|
}).catch((k) => (console.error(k), Ce(k))).finally(() => {
|
|
4556
4552
|
r(10, se = !1);
|
|
4557
4553
|
});
|
|
4558
|
-
},
|
|
4559
|
-
const
|
|
4560
|
-
return c.forEach((
|
|
4561
|
-
|
|
4562
|
-
}), Array.from(
|
|
4554
|
+
}, gr = (c) => {
|
|
4555
|
+
const p = /* @__PURE__ */ new Map();
|
|
4556
|
+
return c.forEach((T) => {
|
|
4557
|
+
p.has(T.category.categoryTagCode) || p.set(T.category.categoryTagCode, T.category);
|
|
4558
|
+
}), Array.from(p.values());
|
|
4563
4559
|
}, pr = (c) => {
|
|
4564
|
-
const
|
|
4565
|
-
if (
|
|
4566
|
-
const
|
|
4567
|
-
(k,
|
|
4560
|
+
const p = localStorage.getItem("categoryToggle" + C);
|
|
4561
|
+
if (p === null) {
|
|
4562
|
+
const T = c.reduce(
|
|
4563
|
+
(k, M) => (k[M.categoryTagCode] = !1, k),
|
|
4568
4564
|
{}
|
|
4569
4565
|
);
|
|
4570
|
-
return localStorage.setItem("categoryToggle" +
|
|
4566
|
+
return localStorage.setItem("categoryToggle" + C, JSON.stringify(T)), T;
|
|
4571
4567
|
} else
|
|
4572
|
-
return JSON.parse(
|
|
4573
|
-
},
|
|
4568
|
+
return JSON.parse(p);
|
|
4569
|
+
}, fr = () => {
|
|
4574
4570
|
O.forEach((c) => {
|
|
4575
4571
|
r(12, Z[c.tagCode] = c.status === R.accepted.value, Z);
|
|
4576
4572
|
}), r(13, U = { ...Z });
|
|
4577
|
-
},
|
|
4573
|
+
}, _r = () => {
|
|
4578
4574
|
r(13, U = { ...Z }), r(11, F = { ...ve });
|
|
4579
|
-
},
|
|
4575
|
+
}, yr = async () => {
|
|
4580
4576
|
if (!ye)
|
|
4581
4577
|
return;
|
|
4582
4578
|
ye = !1;
|
|
4583
|
-
const c = [],
|
|
4579
|
+
const c = [], p = [];
|
|
4584
4580
|
if (Object.keys(U).forEach((k) => {
|
|
4585
|
-
const
|
|
4586
|
-
U[k] !== Z[k] && (
|
|
4581
|
+
const M = O.find((I) => I.tagCode === k);
|
|
4582
|
+
U[k] !== Z[k] && (M ? c.push({
|
|
4587
4583
|
tagCode: k,
|
|
4588
4584
|
status: U[k] ? R.accepted.value : R.denied.value
|
|
4589
|
-
}) :
|
|
4585
|
+
}) : p.push({
|
|
4590
4586
|
tagCode: k,
|
|
4591
4587
|
status: U[k] ? R.accepted.value : R.denied.value
|
|
4592
4588
|
}));
|
|
4593
|
-
}), !
|
|
4594
|
-
localStorage.setItem("categoryToggle" +
|
|
4589
|
+
}), !_) {
|
|
4590
|
+
localStorage.setItem("categoryToggle" + C, JSON.stringify(F)), ve = { ...F }, window.postMessage(
|
|
4595
4591
|
{
|
|
4596
4592
|
type: "NewPlayerConsentData",
|
|
4597
|
-
data: JSON.stringify(
|
|
4593
|
+
data: JSON.stringify(p)
|
|
4598
4594
|
},
|
|
4599
4595
|
window.location.href
|
|
4600
4596
|
), ye = !0;
|
|
4601
4597
|
return;
|
|
4602
4598
|
}
|
|
4603
|
-
const
|
|
4599
|
+
const T = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
4604
4600
|
try {
|
|
4605
4601
|
const k = await Promise.allSettled([
|
|
4606
|
-
|
|
4602
|
+
p.length > 0 && ce(T.href, "updateConsentsError", {
|
|
4607
4603
|
method: "POST",
|
|
4608
4604
|
headers: {
|
|
4609
|
-
"X-SessionId":
|
|
4605
|
+
"X-SessionId": v,
|
|
4610
4606
|
"Content-Type": "application/json"
|
|
4611
4607
|
},
|
|
4612
|
-
body: JSON.stringify({ userConsents:
|
|
4608
|
+
body: JSON.stringify({ userConsents: p })
|
|
4613
4609
|
}),
|
|
4614
|
-
c.length > 0 && ce(
|
|
4610
|
+
c.length > 0 && ce(T.href, "updateConsentsError", {
|
|
4615
4611
|
method: "PATCH",
|
|
4616
4612
|
headers: {
|
|
4617
|
-
"X-SessionId":
|
|
4613
|
+
"X-SessionId": v,
|
|
4618
4614
|
"Content-Type": "application/json"
|
|
4619
4615
|
},
|
|
4620
4616
|
body: JSON.stringify({ userConsents: c })
|
|
4621
4617
|
})
|
|
4622
4618
|
]);
|
|
4623
|
-
k.forEach((
|
|
4624
|
-
if (
|
|
4625
|
-
const V = I <
|
|
4619
|
+
k.forEach((M, I) => {
|
|
4620
|
+
if (M.status === "rejected" || M.value.ok === !1) {
|
|
4621
|
+
const V = I < p.length ? p[I] : c[I - p.length];
|
|
4626
4622
|
r(13, U[V.tagCode] = Z[V.tagCode], U);
|
|
4627
4623
|
}
|
|
4628
|
-
}), k.every((
|
|
4624
|
+
}), k.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify(F)), ve = { ...F }, window.postMessage(
|
|
4629
4625
|
{
|
|
4630
4626
|
type: "PlayerConsentUpdated",
|
|
4631
4627
|
success: !0
|
|
@@ -4643,56 +4639,56 @@ function Li(e, t, r) {
|
|
|
4643
4639
|
} finally {
|
|
4644
4640
|
ye = !0, r(14, le = !1);
|
|
4645
4641
|
}
|
|
4646
|
-
},
|
|
4647
|
-
const
|
|
4642
|
+
}, vr = (c) => {
|
|
4643
|
+
const p = new URL(`${a}/api/v2/gm/legislation/consents`), T = {
|
|
4648
4644
|
"Content-Type": "application/json",
|
|
4649
4645
|
Accept: "application/json"
|
|
4650
4646
|
}, k = {
|
|
4651
4647
|
playerConsents: O,
|
|
4652
4648
|
registrationId: c
|
|
4653
|
-
},
|
|
4649
|
+
}, M = {
|
|
4654
4650
|
method: "POST",
|
|
4655
4651
|
body: JSON.stringify(k),
|
|
4656
|
-
headers:
|
|
4652
|
+
headers: T
|
|
4657
4653
|
};
|
|
4658
|
-
fetch(
|
|
4654
|
+
fetch(p.href, M).then((I) => {
|
|
4659
4655
|
I.ok || (be = !0);
|
|
4660
4656
|
}).catch((I) => (console.error(I), Ce(I))).finally(() => {
|
|
4661
4657
|
r(10, se = !1);
|
|
4662
4658
|
});
|
|
4663
|
-
},
|
|
4664
|
-
O.filter((
|
|
4665
|
-
|
|
4666
|
-
}), r(14, le =
|
|
4667
|
-
}, ze = (c,
|
|
4668
|
-
const k = O.find((V) => V.id ===
|
|
4659
|
+
}, nt = (c) => {
|
|
4660
|
+
O.filter((p) => p.category.categoryTagCode === c).forEach((p) => {
|
|
4661
|
+
p.status = p.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[p.tagCode] = F[c] || !1, U);
|
|
4662
|
+
}), r(14, le = it());
|
|
4663
|
+
}, ze = (c, p, T) => {
|
|
4664
|
+
const k = O.find((V) => V.id === T), M = p ? "value" : "key";
|
|
4669
4665
|
let I;
|
|
4670
|
-
if (!
|
|
4666
|
+
if (!p && k.mustAccept) {
|
|
4671
4667
|
const V = Array.from(ke.children);
|
|
4672
4668
|
for (const ue of V)
|
|
4673
|
-
if (I = Array.from(ue.children).find((
|
|
4669
|
+
if (I = Array.from(ue.children).find((Ar) => Ar.getAttribute("id") === `checkBoxError__${k.tagCode}`), I)
|
|
4674
4670
|
break;
|
|
4675
4671
|
}
|
|
4676
|
-
if (k.status === R.accepted[
|
|
4672
|
+
if (k.status === R.accepted[M] ? (k.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (k.status = R.accepted[M], I && (I.innerHTML = "")), p) {
|
|
4677
4673
|
r(13, U[k.tagCode] = !U[k.tagCode], U);
|
|
4678
|
-
const V = O.filter((ue) => ue.category.categoryTagCode ===
|
|
4679
|
-
r(11, F[
|
|
4674
|
+
const V = O.filter((ue) => ue.category.categoryTagCode === p.categoryTagCode).every((ue) => ue.status !== R.denied.value);
|
|
4675
|
+
r(11, F[p.categoryTagCode] = V, F);
|
|
4680
4676
|
}
|
|
4681
|
-
|
|
4682
|
-
},
|
|
4683
|
-
let
|
|
4677
|
+
kr();
|
|
4678
|
+
}, kr = ((c, p) => {
|
|
4679
|
+
let T;
|
|
4684
4680
|
return function(...k) {
|
|
4685
|
-
const
|
|
4686
|
-
clearTimeout(
|
|
4681
|
+
const M = this;
|
|
4682
|
+
clearTimeout(T), T = setTimeout(
|
|
4687
4683
|
() => {
|
|
4688
|
-
c.apply(
|
|
4684
|
+
c.apply(M, k);
|
|
4689
4685
|
},
|
|
4690
|
-
|
|
4686
|
+
p
|
|
4691
4687
|
);
|
|
4692
4688
|
};
|
|
4693
|
-
})(() =>
|
|
4694
|
-
r(14, le =
|
|
4695
|
-
},
|
|
4689
|
+
})(() => br(), 500), br = () => {
|
|
4690
|
+
r(14, le = it()), i || (window.postMessage({ type: "isConsentsValid", isValid: le }), localStorage.setItem("playerConsents", JSON.stringify(O)));
|
|
4691
|
+
}, it = () => O.filter((p) => O.some((T) => p.tagCode === T.tagCode && T.mustAccept && (p.status === R.denied.key || p.status === R.denied.value))).length === 0, Ce = (c) => {
|
|
4696
4692
|
window.postMessage(
|
|
4697
4693
|
{
|
|
4698
4694
|
type: "WidgetNotification",
|
|
@@ -4700,46 +4696,46 @@ function Li(e, t, r) {
|
|
|
4700
4696
|
},
|
|
4701
4697
|
window.location.href
|
|
4702
4698
|
);
|
|
4703
|
-
},
|
|
4704
|
-
c.data && c.data.type !== "setUpPlayerConsents" ||
|
|
4699
|
+
}, Er = (c) => {
|
|
4700
|
+
c.data && c.data.type !== "setUpPlayerConsents" || vr(c.data.registerid);
|
|
4705
4701
|
};
|
|
4706
4702
|
Or(() => {
|
|
4707
4703
|
setTimeout(
|
|
4708
4704
|
() => {
|
|
4709
|
-
r(25,
|
|
4705
|
+
r(25, S = !0);
|
|
4710
4706
|
},
|
|
4711
4707
|
50
|
|
4712
4708
|
);
|
|
4713
|
-
const c = (
|
|
4709
|
+
const c = (p) => Er(p);
|
|
4714
4710
|
return window.addEventListener("message", c), () => {
|
|
4715
|
-
window.removeEventListener("message", c);
|
|
4711
|
+
window.emMessageBus && g && g.unsubscribe(), window.removeEventListener("message", c);
|
|
4716
4712
|
};
|
|
4717
4713
|
});
|
|
4718
|
-
function
|
|
4714
|
+
function Cr(c) {
|
|
4719
4715
|
F[c.categoryTagCode] = this.checked, r(11, F);
|
|
4720
4716
|
}
|
|
4721
|
-
const
|
|
4722
|
-
function
|
|
4723
|
-
|
|
4717
|
+
const Sr = (c) => nt(c.categoryTagCode), xr = (c, p) => p.category.categoryTagCode === c.categoryTagCode, Mr = (c, p) => ze(p, c.category, c.id), Tr = (c, p) => ze(p, null, c.id);
|
|
4718
|
+
function wr(c) {
|
|
4719
|
+
at[c ? "unshift" : "push"](() => {
|
|
4724
4720
|
ke = c, r(15, ke);
|
|
4725
4721
|
});
|
|
4726
4722
|
}
|
|
4727
|
-
function
|
|
4728
|
-
|
|
4723
|
+
function Nr(c) {
|
|
4724
|
+
at[c ? "unshift" : "push"](() => {
|
|
4729
4725
|
f = c, r(5, f);
|
|
4730
4726
|
});
|
|
4731
4727
|
}
|
|
4732
4728
|
return e.$$set = (c) => {
|
|
4733
|
-
"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,
|
|
4729
|
+
"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, y = c.modalconsents);
|
|
4734
4730
|
}, e.$$.update = () => {
|
|
4735
4731
|
e.$$.dirty[0] & /*isMounted, session*/
|
|
4736
|
-
33554433 &&
|
|
4737
|
-
1 && (i ||
|
|
4732
|
+
33554433 && S && i && (hr(), dr()), e.$$.dirty[0] & /*session*/
|
|
4733
|
+
1 && (i || mr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4738
4734
|
34 && s && f && jr(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4739
4735
|
36 && h && f && Lr(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4740
4736
|
40 && f && Rr(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
|
|
4741
|
-
4194304 && l &&
|
|
4742
|
-
8388608 && m &&
|
|
4737
|
+
4194304 && l && cr(), e.$$.dirty[0] & /*translationurl*/
|
|
4738
|
+
8388608 && m && ur();
|
|
4743
4739
|
}, [
|
|
4744
4740
|
i,
|
|
4745
4741
|
s,
|
|
@@ -4747,9 +4743,9 @@ function Li(e, t, r) {
|
|
|
4747
4743
|
u,
|
|
4748
4744
|
d,
|
|
4749
4745
|
f,
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4746
|
+
P,
|
|
4747
|
+
E,
|
|
4748
|
+
z,
|
|
4753
4749
|
O,
|
|
4754
4750
|
se,
|
|
4755
4751
|
F,
|
|
@@ -4758,32 +4754,32 @@ function Li(e, t, r) {
|
|
|
4758
4754
|
le,
|
|
4759
4755
|
ke,
|
|
4760
4756
|
n,
|
|
4761
|
-
|
|
4762
|
-
|
|
4757
|
+
yr,
|
|
4758
|
+
nt,
|
|
4763
4759
|
ze,
|
|
4764
4760
|
o,
|
|
4765
4761
|
a,
|
|
4766
4762
|
l,
|
|
4767
4763
|
m,
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
Er,
|
|
4764
|
+
y,
|
|
4765
|
+
S,
|
|
4771
4766
|
Cr,
|
|
4772
4767
|
Sr,
|
|
4773
4768
|
xr,
|
|
4774
|
-
Tr,
|
|
4775
4769
|
Mr,
|
|
4776
|
-
|
|
4770
|
+
Tr,
|
|
4771
|
+
wr,
|
|
4772
|
+
Nr
|
|
4777
4773
|
];
|
|
4778
4774
|
}
|
|
4779
|
-
class Ri extends
|
|
4775
|
+
class Ri extends It {
|
|
4780
4776
|
constructor(t) {
|
|
4781
|
-
super(),
|
|
4777
|
+
super(), jt(
|
|
4782
4778
|
this,
|
|
4783
4779
|
t,
|
|
4784
4780
|
Li,
|
|
4785
4781
|
ji,
|
|
4786
|
-
|
|
4782
|
+
Qe,
|
|
4787
4783
|
{
|
|
4788
4784
|
session: 0,
|
|
4789
4785
|
userid: 20,
|