@everymatrix/player-consents 1.55.0 → 1.56.2
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-DLLI1H8X.js → GeneralAnimationLoading-BMZE178n.js} +263 -225
- package/components/GeneralAnimationLoading-acwReDLO.cjs +1 -0
- package/components/{GeneralAnimationLoading-DWnrpKBQ.js → GeneralAnimationLoading-kMKGPw5f.js} +239 -201
- package/components/{PlayerConsents-Bg0jlykt.js → PlayerConsents-Bvhxca3p.js} +926 -911
- package/components/PlayerConsents-DAjj2l81.cjs +16 -0
- package/components/{PlayerConsents-kxvPSHUT.js → PlayerConsents-f416QJ42.js} +781 -766
- 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-B-XuIUYl.cjs +0 -1
- package/components/PlayerConsents-BuzLspgH.cjs +0 -3
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
1
|
+
import { n as X, 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 E, f as j, g as x, h as L, j as V, k as Br, l as A, m as zr, o as Or, p as Ir, q as jr, t as at, u as Lr, v as Rr, w as $, x as Ye, y as q, z as Ur, A as de, B as pe, C as fe, D as Q, H as Lt } from "./GeneralAnimationLoading-BMZE178n.js";
|
|
2
|
+
const K = [];
|
|
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 = X) {
|
|
9
9
|
let r;
|
|
10
10
|
const n = /* @__PURE__ */ new Set();
|
|
11
11
|
function i(s) {
|
|
12
|
-
if (
|
|
13
|
-
const h = !
|
|
12
|
+
if (Qe(e, s) && (e = s, r)) {
|
|
13
|
+
const h = !K.length;
|
|
14
14
|
for (const u of n)
|
|
15
|
-
u[1](),
|
|
15
|
+
u[1](), K.push(u, e);
|
|
16
16
|
if (h) {
|
|
17
|
-
for (let u = 0; u <
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
for (let u = 0; u < K.length; u += 2)
|
|
18
|
+
K[u][0](K[u + 1]);
|
|
19
|
+
K.length = 0;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
function o(s) {
|
|
24
24
|
i(s(e));
|
|
25
25
|
}
|
|
26
|
-
function a(s, h =
|
|
26
|
+
function a(s, h = X) {
|
|
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) || X), s(e), () => {
|
|
29
29
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
return { set: i, update: o, subscribe: a };
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function ie(e, t, r) {
|
|
35
35
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
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
|
|
42
|
+
let l = 0, d = X;
|
|
43
43
|
const m = () => {
|
|
44
|
-
if (
|
|
44
|
+
if (l)
|
|
45
45
|
return;
|
|
46
46
|
d();
|
|
47
|
-
const
|
|
48
|
-
o ? a(
|
|
47
|
+
const f = t(n ? u[0] : u, a, s);
|
|
48
|
+
o ? a(f) : d = Pr(f) ? f : X;
|
|
49
49
|
}, b = i.map(
|
|
50
|
-
(
|
|
51
|
-
|
|
52
|
-
(
|
|
53
|
-
u[g] =
|
|
50
|
+
(f, g) => Hr(
|
|
51
|
+
f,
|
|
52
|
+
(S) => {
|
|
53
|
+
u[g] = S, l &= ~(1 << g), h && m();
|
|
54
54
|
},
|
|
55
55
|
() => {
|
|
56
|
-
|
|
56
|
+
l |= 1 << g;
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
);
|
|
@@ -62,47 +62,47 @@ function re(e, t, r) {
|
|
|
62
62
|
};
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function qr(e) {
|
|
66
66
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
return
|
|
68
|
+
var Gr = function(t) {
|
|
69
|
+
return Fr(t) && !Vr(t);
|
|
70
70
|
};
|
|
71
|
-
function
|
|
71
|
+
function Fr(e) {
|
|
72
72
|
return !!e && typeof e == "object";
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Vr(e) {
|
|
75
75
|
var t = Object.prototype.toString.call(e);
|
|
76
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
76
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
|
|
77
77
|
}
|
|
78
|
-
var
|
|
79
|
-
function
|
|
80
|
-
return e.$$typeof ===
|
|
78
|
+
var Xr = typeof Symbol == "function" && Symbol.for, Wr = Xr ? Symbol.for("react.element") : 60103;
|
|
79
|
+
function Zr(e) {
|
|
80
|
+
return e.$$typeof === Wr;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
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) ?
|
|
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
|
-
return
|
|
95
|
+
return ee;
|
|
96
96
|
var r = t.customMerge(e);
|
|
97
|
-
return typeof r == "function" ? r :
|
|
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
104
|
function st(e) {
|
|
105
|
-
return Object.keys(e).concat(
|
|
105
|
+
return Object.keys(e).concat(Kr(e));
|
|
106
106
|
}
|
|
107
107
|
function Rt(e, t) {
|
|
108
108
|
try {
|
|
@@ -111,42 +111,57 @@ function Rt(e, t) {
|
|
|
111
111
|
return !1;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function $r(e, t) {
|
|
115
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
119
|
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
120
120
|
n[i] = me(e[i], r);
|
|
121
121
|
}), st(t).forEach(function(i) {
|
|
122
|
-
|
|
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
|
-
function
|
|
126
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
125
|
+
function ee(e, t, r) {
|
|
126
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || Gr, 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))
|
|
132
132
|
throw new Error("first argument should be an array");
|
|
133
133
|
return t.reduce(function(n, i) {
|
|
134
|
-
return
|
|
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__ */ qr(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
|
-
for (var i in n)
|
|
144
|
-
|
|
157
|
+
for (var i in n)
|
|
158
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
159
|
+
}, De(e, t);
|
|
145
160
|
};
|
|
146
|
-
function
|
|
161
|
+
function Ae(e, t) {
|
|
147
162
|
if (typeof t != "function" && t !== null)
|
|
148
163
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
149
|
-
|
|
164
|
+
De(e, t);
|
|
150
165
|
function r() {
|
|
151
166
|
this.constructor = e;
|
|
152
167
|
}
|
|
@@ -156,74 +171,77 @@ var H = function() {
|
|
|
156
171
|
return H = Object.assign || function(t) {
|
|
157
172
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
158
173
|
r = arguments[n];
|
|
159
|
-
for (var o in r)
|
|
174
|
+
for (var o in r)
|
|
175
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
160
176
|
}
|
|
161
177
|
return t;
|
|
162
178
|
}, H.apply(this, arguments);
|
|
163
179
|
};
|
|
164
|
-
function
|
|
180
|
+
function on(e, t) {
|
|
165
181
|
var r = {};
|
|
166
|
-
for (var n in e)
|
|
182
|
+
for (var n in e)
|
|
183
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
167
184
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
168
185
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
169
186
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
170
187
|
return r;
|
|
171
188
|
}
|
|
172
|
-
function
|
|
173
|
-
if (
|
|
174
|
-
(
|
|
175
|
-
|
|
189
|
+
function Oe(e, t, r) {
|
|
190
|
+
if (arguments.length === 2)
|
|
191
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
192
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
193
|
+
return e.concat(o || t);
|
|
176
194
|
}
|
|
177
|
-
function
|
|
178
|
-
var r = t && t.cache ? t.cache :
|
|
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;
|
|
179
197
|
return i(e, {
|
|
180
198
|
cache: r,
|
|
181
199
|
serializer: n
|
|
182
200
|
});
|
|
183
201
|
}
|
|
184
|
-
function
|
|
202
|
+
function an(e) {
|
|
185
203
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
186
204
|
}
|
|
187
205
|
function Ut(e, t, r, n) {
|
|
188
|
-
var i =
|
|
206
|
+
var i = an(n) ? n : r(n), o = t.get(i);
|
|
189
207
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
190
208
|
}
|
|
191
209
|
function Dt(e, t, r) {
|
|
192
210
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
193
211
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
194
212
|
}
|
|
195
|
-
function
|
|
213
|
+
function Ke(e, t, r, n, i) {
|
|
196
214
|
return r.bind(t, e, n, i);
|
|
197
215
|
}
|
|
198
|
-
function
|
|
216
|
+
function sn(e, t) {
|
|
199
217
|
var r = e.length === 1 ? Ut : Dt;
|
|
200
|
-
return
|
|
218
|
+
return Ke(e, this, r, t.cache.create(), t.serializer);
|
|
201
219
|
}
|
|
202
|
-
function
|
|
203
|
-
return
|
|
220
|
+
function ln(e, t) {
|
|
221
|
+
return Ke(e, this, Dt, t.cache.create(), t.serializer);
|
|
204
222
|
}
|
|
205
|
-
function
|
|
206
|
-
return
|
|
223
|
+
function cn(e, t) {
|
|
224
|
+
return Ke(e, this, Ut, t.cache.create(), t.serializer);
|
|
207
225
|
}
|
|
208
|
-
var
|
|
226
|
+
var un = function() {
|
|
209
227
|
return JSON.stringify(arguments);
|
|
210
228
|
};
|
|
211
|
-
function
|
|
229
|
+
function $e() {
|
|
212
230
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
213
231
|
}
|
|
214
|
-
|
|
232
|
+
$e.prototype.get = function(e) {
|
|
215
233
|
return this.cache[e];
|
|
216
234
|
};
|
|
217
|
-
|
|
235
|
+
$e.prototype.set = function(e, t) {
|
|
218
236
|
this.cache[e] = t;
|
|
219
237
|
};
|
|
220
|
-
var
|
|
238
|
+
var hn = {
|
|
221
239
|
create: function() {
|
|
222
|
-
return new
|
|
240
|
+
return new $e();
|
|
223
241
|
}
|
|
224
|
-
},
|
|
225
|
-
variadic:
|
|
226
|
-
monadic:
|
|
242
|
+
}, je = {
|
|
243
|
+
variadic: ln,
|
|
244
|
+
monadic: cn
|
|
227
245
|
}, w;
|
|
228
246
|
(function(e) {
|
|
229
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";
|
|
@@ -232,14 +250,14 @@ var B;
|
|
|
232
250
|
(function(e) {
|
|
233
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";
|
|
234
252
|
})(B || (B = {}));
|
|
235
|
-
var
|
|
253
|
+
var te;
|
|
236
254
|
(function(e) {
|
|
237
255
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
238
|
-
})(
|
|
256
|
+
})(te || (te = {}));
|
|
239
257
|
function lt(e) {
|
|
240
258
|
return e.type === B.literal;
|
|
241
259
|
}
|
|
242
|
-
function
|
|
260
|
+
function dn(e) {
|
|
243
261
|
return e.type === B.argument;
|
|
244
262
|
}
|
|
245
263
|
function qt(e) {
|
|
@@ -257,22 +275,22 @@ function Vt(e) {
|
|
|
257
275
|
function Xt(e) {
|
|
258
276
|
return e.type === B.plural;
|
|
259
277
|
}
|
|
260
|
-
function
|
|
278
|
+
function mn(e) {
|
|
261
279
|
return e.type === B.pound;
|
|
262
280
|
}
|
|
263
281
|
function Wt(e) {
|
|
264
282
|
return e.type === B.tag;
|
|
265
283
|
}
|
|
266
284
|
function Zt(e) {
|
|
267
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
285
|
+
return !!(e && typeof e == "object" && e.type === te.number);
|
|
268
286
|
}
|
|
269
|
-
function
|
|
270
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
287
|
+
function qe(e) {
|
|
288
|
+
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
271
289
|
}
|
|
272
|
-
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
273
|
-
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) {
|
|
274
292
|
var t = {};
|
|
275
|
-
return e.replace(
|
|
293
|
+
return e.replace(gn, function(r) {
|
|
276
294
|
var n = r.length;
|
|
277
295
|
switch (r[0]) {
|
|
278
296
|
case "G":
|
|
@@ -361,18 +379,18 @@ function mn(e) {
|
|
|
361
379
|
return "";
|
|
362
380
|
}), t;
|
|
363
381
|
}
|
|
364
|
-
var
|
|
365
|
-
function
|
|
382
|
+
var fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
383
|
+
function _n(e) {
|
|
366
384
|
if (e.length === 0)
|
|
367
385
|
throw new Error("Number skeleton cannot be empty");
|
|
368
|
-
for (var t = e.split(
|
|
386
|
+
for (var t = e.split(fn).filter(function(m) {
|
|
369
387
|
return m.length > 0;
|
|
370
388
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
371
389
|
var o = i[n], a = o.split("/");
|
|
372
390
|
if (a.length === 0)
|
|
373
391
|
throw new Error("Invalid number skeleton");
|
|
374
|
-
for (var s = a[0], h = a.slice(1), u = 0,
|
|
375
|
-
var d =
|
|
392
|
+
for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
393
|
+
var d = l[u];
|
|
376
394
|
if (d.length === 0)
|
|
377
395
|
throw new Error("Invalid number skeleton");
|
|
378
396
|
}
|
|
@@ -380,10 +398,10 @@ function gn(e) {
|
|
|
380
398
|
}
|
|
381
399
|
return r;
|
|
382
400
|
}
|
|
383
|
-
function
|
|
401
|
+
function bn(e) {
|
|
384
402
|
return e.replace(/^(.*?)-/, "");
|
|
385
403
|
}
|
|
386
|
-
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
404
|
+
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, vn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
|
|
387
405
|
function ut(e) {
|
|
388
406
|
var t = {};
|
|
389
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) {
|
|
@@ -430,7 +448,7 @@ function Kt(e) {
|
|
|
430
448
|
};
|
|
431
449
|
}
|
|
432
450
|
}
|
|
433
|
-
function
|
|
451
|
+
function yn(e) {
|
|
434
452
|
var t;
|
|
435
453
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
436
454
|
notation: "engineering"
|
|
@@ -448,7 +466,7 @@ function ht(e) {
|
|
|
448
466
|
var t = {}, r = Kt(e);
|
|
449
467
|
return r || t;
|
|
450
468
|
}
|
|
451
|
-
function
|
|
469
|
+
function En(e) {
|
|
452
470
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
453
471
|
var i = n[r];
|
|
454
472
|
switch (i.stem) {
|
|
@@ -472,7 +490,7 @@ function bn(e) {
|
|
|
472
490
|
continue;
|
|
473
491
|
case "measure-unit":
|
|
474
492
|
case "unit":
|
|
475
|
-
t.style = "unit", t.unit =
|
|
493
|
+
t.style = "unit", t.unit = bn(i.options[0]);
|
|
476
494
|
continue;
|
|
477
495
|
case "compact-short":
|
|
478
496
|
case "K":
|
|
@@ -534,9 +552,9 @@ function bn(e) {
|
|
|
534
552
|
case "integer-width":
|
|
535
553
|
if (i.options.length > 1)
|
|
536
554
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
537
|
-
i.options[0].replace(
|
|
555
|
+
i.options[0].replace(vn, function(h, u, l, d, m, b) {
|
|
538
556
|
if (u)
|
|
539
|
-
t.minimumIntegerDigits =
|
|
557
|
+
t.minimumIntegerDigits = l.length;
|
|
540
558
|
else {
|
|
541
559
|
if (d && m)
|
|
542
560
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -554,8 +572,8 @@ function bn(e) {
|
|
|
554
572
|
if (ct.test(i.stem)) {
|
|
555
573
|
if (i.options.length > 1)
|
|
556
574
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
557
|
-
i.stem.replace(ct, function(h, u,
|
|
558
|
-
return
|
|
575
|
+
i.stem.replace(ct, function(h, u, l, d, m, b) {
|
|
576
|
+
return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && b ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
559
577
|
});
|
|
560
578
|
var o = i.options[0];
|
|
561
579
|
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), ut(o)));
|
|
@@ -567,12 +585,12 @@ function bn(e) {
|
|
|
567
585
|
}
|
|
568
586
|
var a = Kt(i.stem);
|
|
569
587
|
a && (t = H(H({}, t), a));
|
|
570
|
-
var s =
|
|
588
|
+
var s = yn(i.stem);
|
|
571
589
|
s && (t = H(H({}, t), s));
|
|
572
590
|
}
|
|
573
591
|
return t;
|
|
574
592
|
}
|
|
575
|
-
var
|
|
593
|
+
var Se = {
|
|
576
594
|
"001": [
|
|
577
595
|
"H",
|
|
578
596
|
"h"
|
|
@@ -1987,22 +2005,23 @@ var Ce = {
|
|
|
1987
2005
|
"h"
|
|
1988
2006
|
]
|
|
1989
2007
|
};
|
|
1990
|
-
function
|
|
2008
|
+
function kn(e, t) {
|
|
1991
2009
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
1992
2010
|
var i = e.charAt(n);
|
|
1993
2011
|
if (i === "j") {
|
|
1994
2012
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
1995
2013
|
o++, n++;
|
|
1996
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2014
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Cn(t);
|
|
1997
2015
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
1998
2016
|
r += h;
|
|
1999
2017
|
for (; a-- > 0; )
|
|
2000
2018
|
r = u + r;
|
|
2001
|
-
} else
|
|
2019
|
+
} else
|
|
2020
|
+
i === "J" ? r += "H" : r += i;
|
|
2002
2021
|
}
|
|
2003
2022
|
return r;
|
|
2004
2023
|
}
|
|
2005
|
-
function
|
|
2024
|
+
function Cn(e) {
|
|
2006
2025
|
var t = e.hourCycle;
|
|
2007
2026
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2008
2027
|
e.hourCycles && // @ts-ignore
|
|
@@ -2021,23 +2040,23 @@ function En(e) {
|
|
|
2021
2040
|
}
|
|
2022
2041
|
var r = e.language, n;
|
|
2023
2042
|
r !== "root" && (n = e.maximize().region);
|
|
2024
|
-
var i =
|
|
2043
|
+
var i = Se[n || ""] || Se[r || ""] || Se["".concat(r, "-001")] || Se["001"];
|
|
2025
2044
|
return i[0];
|
|
2026
2045
|
}
|
|
2027
|
-
var Le,
|
|
2046
|
+
var Le, Sn = new RegExp("^".concat(Jt.source, "*")), xn = new RegExp("".concat(Jt.source, "*$"));
|
|
2028
2047
|
function N(e, t) {
|
|
2029
2048
|
return { start: e, end: t };
|
|
2030
2049
|
}
|
|
2031
|
-
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) {
|
|
2032
2051
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2033
|
-
},
|
|
2052
|
+
}, Ge = !0;
|
|
2034
2053
|
try {
|
|
2035
|
-
var
|
|
2036
|
-
|
|
2054
|
+
var zn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2055
|
+
Ge = ((Le = zn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
2037
2056
|
} catch {
|
|
2038
|
-
|
|
2057
|
+
Ge = !1;
|
|
2039
2058
|
}
|
|
2040
|
-
var dt =
|
|
2059
|
+
var dt = Mn ? (
|
|
2041
2060
|
// Native
|
|
2042
2061
|
function(t, r, n) {
|
|
2043
2062
|
return t.startsWith(r, n);
|
|
@@ -2047,7 +2066,7 @@ var dt = Sn ? (
|
|
|
2047
2066
|
function(t, r, n) {
|
|
2048
2067
|
return t.slice(n, n + r.length) === r;
|
|
2049
2068
|
}
|
|
2050
|
-
),
|
|
2069
|
+
), Fe = Tn ? String.fromCodePoint : (
|
|
2051
2070
|
// IE11
|
|
2052
2071
|
function() {
|
|
2053
2072
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2061,7 +2080,7 @@ var dt = Sn ? (
|
|
|
2061
2080
|
}
|
|
2062
2081
|
), mt = (
|
|
2063
2082
|
// native
|
|
2064
|
-
|
|
2083
|
+
wn ? Object.fromEntries : (
|
|
2065
2084
|
// Ponyfill
|
|
2066
2085
|
function(t) {
|
|
2067
2086
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2071,7 +2090,7 @@ var dt = Sn ? (
|
|
|
2071
2090
|
return r;
|
|
2072
2091
|
}
|
|
2073
2092
|
)
|
|
2074
|
-
), $t =
|
|
2093
|
+
), $t = Nn ? (
|
|
2075
2094
|
// Native
|
|
2076
2095
|
function(t, r) {
|
|
2077
2096
|
return t.codePointAt(r);
|
|
@@ -2085,7 +2104,7 @@ var dt = Sn ? (
|
|
|
2085
2104
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2086
2105
|
}
|
|
2087
2106
|
}
|
|
2088
|
-
),
|
|
2107
|
+
), On = An ? (
|
|
2089
2108
|
// Native
|
|
2090
2109
|
function(t) {
|
|
2091
2110
|
return t.trimStart();
|
|
@@ -2093,9 +2112,9 @@ var dt = Sn ? (
|
|
|
2093
2112
|
) : (
|
|
2094
2113
|
// Ponyfill
|
|
2095
2114
|
function(t) {
|
|
2096
|
-
return t.replace(
|
|
2115
|
+
return t.replace(Sn, "");
|
|
2097
2116
|
}
|
|
2098
|
-
),
|
|
2117
|
+
), In = Hn ? (
|
|
2099
2118
|
// Native
|
|
2100
2119
|
function(t) {
|
|
2101
2120
|
return t.trimEnd();
|
|
@@ -2103,32 +2122,32 @@ var dt = Sn ? (
|
|
|
2103
2122
|
) : (
|
|
2104
2123
|
// Ponyfill
|
|
2105
2124
|
function(t) {
|
|
2106
|
-
return t.replace(
|
|
2125
|
+
return t.replace(xn, "");
|
|
2107
2126
|
}
|
|
2108
2127
|
);
|
|
2109
2128
|
function er(e, t) {
|
|
2110
2129
|
return new RegExp(e, t);
|
|
2111
2130
|
}
|
|
2112
|
-
var
|
|
2113
|
-
if (
|
|
2114
|
-
var
|
|
2115
|
-
|
|
2131
|
+
var Ve;
|
|
2132
|
+
if (Ge) {
|
|
2133
|
+
var gt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2134
|
+
Ve = function(t, r) {
|
|
2116
2135
|
var n;
|
|
2117
|
-
|
|
2118
|
-
var i =
|
|
2136
|
+
gt.lastIndex = r;
|
|
2137
|
+
var i = gt.exec(t);
|
|
2119
2138
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2120
2139
|
};
|
|
2121
2140
|
} else
|
|
2122
|
-
|
|
2141
|
+
Ve = function(t, r) {
|
|
2123
2142
|
for (var n = []; ; ) {
|
|
2124
2143
|
var i = $t(t, r);
|
|
2125
|
-
if (i === void 0 || tr(i) ||
|
|
2144
|
+
if (i === void 0 || tr(i) || Un(i))
|
|
2126
2145
|
break;
|
|
2127
2146
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2128
2147
|
}
|
|
2129
|
-
return
|
|
2148
|
+
return Fe.apply(void 0, n);
|
|
2130
2149
|
};
|
|
2131
|
-
var
|
|
2150
|
+
var jn = (
|
|
2132
2151
|
/** @class */
|
|
2133
2152
|
function() {
|
|
2134
2153
|
function e(t, r) {
|
|
@@ -2159,7 +2178,7 @@ var On = (
|
|
|
2159
2178
|
if (n)
|
|
2160
2179
|
break;
|
|
2161
2180
|
return this.error(w.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2162
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2181
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
2163
2182
|
var a = this.parseTag(t, r);
|
|
2164
2183
|
if (a.err)
|
|
2165
2184
|
return a;
|
|
@@ -2192,7 +2211,7 @@ var On = (
|
|
|
2192
2211
|
return o;
|
|
2193
2212
|
var a = o.val, s = this.clonePosition();
|
|
2194
2213
|
if (this.bumpIf("</")) {
|
|
2195
|
-
if (this.isEOF() || !
|
|
2214
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
2196
2215
|
return this.error(w.INVALID_TAG, N(s, this.clonePosition()));
|
|
2197
2216
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2198
2217
|
return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, N(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2210,7 +2229,7 @@ var On = (
|
|
|
2210
2229
|
return this.error(w.INVALID_TAG, N(n, this.clonePosition()));
|
|
2211
2230
|
}, e.prototype.parseTagName = function() {
|
|
2212
2231
|
var t = this.offset();
|
|
2213
|
-
for (this.bump(); !this.isEOF() &&
|
|
2232
|
+
for (this.bump(); !this.isEOF() && Rn(this.char()); )
|
|
2214
2233
|
this.bump();
|
|
2215
2234
|
return this.message.slice(t, this.offset());
|
|
2216
2235
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2239,7 +2258,7 @@ var On = (
|
|
|
2239
2258
|
};
|
|
2240
2259
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2241
2260
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2242
|
-
!
|
|
2261
|
+
!Ln(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2243
2262
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2244
2263
|
if (this.isEOF() || this.char() !== 39)
|
|
2245
2264
|
return null;
|
|
@@ -2273,12 +2292,12 @@ var On = (
|
|
|
2273
2292
|
r.push(n);
|
|
2274
2293
|
this.bump();
|
|
2275
2294
|
}
|
|
2276
|
-
return
|
|
2295
|
+
return Fe.apply(void 0, r);
|
|
2277
2296
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2278
2297
|
if (this.isEOF())
|
|
2279
2298
|
return null;
|
|
2280
2299
|
var n = this.char();
|
|
2281
|
-
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(), Fe(n));
|
|
2282
2301
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2283
2302
|
var n = this.clonePosition();
|
|
2284
2303
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2307,7 +2326,7 @@ var On = (
|
|
|
2307
2326
|
return this.error(w.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
2308
2327
|
}
|
|
2309
2328
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2310
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2329
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
2311
2330
|
this.bumpTo(i);
|
|
2312
2331
|
var o = this.clonePosition(), a = N(t, o);
|
|
2313
2332
|
return { value: n, location: a };
|
|
@@ -2323,37 +2342,37 @@ var On = (
|
|
|
2323
2342
|
var u = null;
|
|
2324
2343
|
if (this.bumpIf(",")) {
|
|
2325
2344
|
this.bumpSpace();
|
|
2326
|
-
var
|
|
2345
|
+
var l = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2327
2346
|
if (d.err)
|
|
2328
2347
|
return d;
|
|
2329
|
-
var m =
|
|
2348
|
+
var m = In(d.val);
|
|
2330
2349
|
if (m.length === 0)
|
|
2331
2350
|
return this.error(w.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
2332
|
-
var b = N(
|
|
2351
|
+
var b = N(l, this.clonePosition());
|
|
2333
2352
|
u = { style: m, styleLocation: b };
|
|
2334
2353
|
}
|
|
2335
|
-
var
|
|
2336
|
-
if (
|
|
2337
|
-
return
|
|
2354
|
+
var f = this.tryParseArgumentClose(i);
|
|
2355
|
+
if (f.err)
|
|
2356
|
+
return f;
|
|
2338
2357
|
var g = N(i, this.clonePosition());
|
|
2339
2358
|
if (u && dt(u?.style, "::", 0)) {
|
|
2340
|
-
var
|
|
2359
|
+
var S = On(u.style.slice(2));
|
|
2341
2360
|
if (s === "number") {
|
|
2342
|
-
var d = this.parseNumberSkeletonFromString(
|
|
2361
|
+
var d = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
2343
2362
|
return d.err ? d : {
|
|
2344
2363
|
val: { type: B.number, value: n, location: g, style: d.val },
|
|
2345
2364
|
err: null
|
|
2346
2365
|
};
|
|
2347
2366
|
} else {
|
|
2348
|
-
if (
|
|
2367
|
+
if (S.length === 0)
|
|
2349
2368
|
return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
|
|
2350
|
-
var
|
|
2351
|
-
this.locale && (
|
|
2369
|
+
var _ = S;
|
|
2370
|
+
this.locale && (_ = kn(S, this.locale));
|
|
2352
2371
|
var m = {
|
|
2353
|
-
type:
|
|
2354
|
-
pattern:
|
|
2372
|
+
type: te.dateTime,
|
|
2373
|
+
pattern: _,
|
|
2355
2374
|
location: u.styleLocation,
|
|
2356
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2375
|
+
parsedOptions: this.shouldParseSkeletons ? pn(_) : {}
|
|
2357
2376
|
}, v = s === "date" ? B.date : B.time;
|
|
2358
2377
|
return {
|
|
2359
2378
|
val: { type: v, value: n, location: g, style: m },
|
|
@@ -2374,9 +2393,9 @@ var On = (
|
|
|
2374
2393
|
case "plural":
|
|
2375
2394
|
case "selectordinal":
|
|
2376
2395
|
case "select": {
|
|
2377
|
-
var
|
|
2396
|
+
var C = this.clonePosition();
|
|
2378
2397
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2379
|
-
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(
|
|
2398
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(C, H({}, C)));
|
|
2380
2399
|
this.bumpSpace();
|
|
2381
2400
|
var P = this.parseIdentifierIfPossible(), k = 0;
|
|
2382
2401
|
if (s !== "select" && P.value === "offset") {
|
|
@@ -2391,16 +2410,16 @@ var On = (
|
|
|
2391
2410
|
var z = this.tryParsePluralOrSelectOptions(t, s, r, P);
|
|
2392
2411
|
if (z.err)
|
|
2393
2412
|
return z;
|
|
2394
|
-
var
|
|
2395
|
-
if (
|
|
2396
|
-
return
|
|
2397
|
-
var
|
|
2413
|
+
var f = this.tryParseArgumentClose(i);
|
|
2414
|
+
if (f.err)
|
|
2415
|
+
return f;
|
|
2416
|
+
var W = N(i, this.clonePosition());
|
|
2398
2417
|
return s === "select" ? {
|
|
2399
2418
|
val: {
|
|
2400
2419
|
type: B.select,
|
|
2401
2420
|
value: n,
|
|
2402
2421
|
options: mt(z.val),
|
|
2403
|
-
location:
|
|
2422
|
+
location: W
|
|
2404
2423
|
},
|
|
2405
2424
|
err: null
|
|
2406
2425
|
} : {
|
|
@@ -2410,7 +2429,7 @@ var On = (
|
|
|
2410
2429
|
options: mt(z.val),
|
|
2411
2430
|
offset: k,
|
|
2412
2431
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2413
|
-
location:
|
|
2432
|
+
location: W
|
|
2414
2433
|
},
|
|
2415
2434
|
err: null
|
|
2416
2435
|
};
|
|
@@ -2458,50 +2477,50 @@ var On = (
|
|
|
2458
2477
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2459
2478
|
var n = [];
|
|
2460
2479
|
try {
|
|
2461
|
-
n =
|
|
2480
|
+
n = _n(t);
|
|
2462
2481
|
} catch {
|
|
2463
2482
|
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
2464
2483
|
}
|
|
2465
2484
|
return {
|
|
2466
2485
|
val: {
|
|
2467
|
-
type:
|
|
2486
|
+
type: te.number,
|
|
2468
2487
|
tokens: n,
|
|
2469
2488
|
location: r,
|
|
2470
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2489
|
+
parsedOptions: this.shouldParseSkeletons ? En(n) : {}
|
|
2471
2490
|
},
|
|
2472
2491
|
err: null
|
|
2473
2492
|
};
|
|
2474
2493
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2475
|
-
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value,
|
|
2494
|
+
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
2476
2495
|
if (u.length === 0) {
|
|
2477
2496
|
var d = this.clonePosition();
|
|
2478
2497
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2479
2498
|
var m = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2480
2499
|
if (m.err)
|
|
2481
2500
|
return m;
|
|
2482
|
-
|
|
2501
|
+
l = N(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
|
|
2483
2502
|
} else
|
|
2484
2503
|
break;
|
|
2485
2504
|
}
|
|
2486
2505
|
if (h.has(u))
|
|
2487
|
-
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2506
|
+
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2488
2507
|
u === "other" && (a = !0), this.bumpSpace();
|
|
2489
2508
|
var b = this.clonePosition();
|
|
2490
2509
|
if (!this.bumpIf("{"))
|
|
2491
2510
|
return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
|
|
2492
|
-
var
|
|
2493
|
-
if (
|
|
2494
|
-
return
|
|
2511
|
+
var f = this.parseMessage(t + 1, r, n);
|
|
2512
|
+
if (f.err)
|
|
2513
|
+
return f;
|
|
2495
2514
|
var g = this.tryParseArgumentClose(b);
|
|
2496
2515
|
if (g.err)
|
|
2497
2516
|
return g;
|
|
2498
2517
|
s.push([
|
|
2499
2518
|
u,
|
|
2500
2519
|
{
|
|
2501
|
-
value:
|
|
2520
|
+
value: f.val,
|
|
2502
2521
|
location: N(b, this.clonePosition())
|
|
2503
2522
|
}
|
|
2504
|
-
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value,
|
|
2523
|
+
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
2505
2524
|
}
|
|
2506
2525
|
return s.length === 0 ? this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(w.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2507
2526
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -2515,7 +2534,7 @@ var On = (
|
|
|
2515
2534
|
break;
|
|
2516
2535
|
}
|
|
2517
2536
|
var h = N(i, this.clonePosition());
|
|
2518
|
-
return o ? (a *= n,
|
|
2537
|
+
return o ? (a *= n, Bn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2519
2538
|
}, e.prototype.offset = function() {
|
|
2520
2539
|
return this.position.offset;
|
|
2521
2540
|
}, e.prototype.isEOF = function() {
|
|
@@ -2581,46 +2600,47 @@ var On = (
|
|
|
2581
2600
|
}, e;
|
|
2582
2601
|
}()
|
|
2583
2602
|
);
|
|
2584
|
-
function
|
|
2603
|
+
function Xe(e) {
|
|
2585
2604
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2586
2605
|
}
|
|
2587
|
-
function In(e) {
|
|
2588
|
-
return Ve(e) || e === 47;
|
|
2589
|
-
}
|
|
2590
2606
|
function Ln(e) {
|
|
2607
|
+
return Xe(e) || e === 47;
|
|
2608
|
+
}
|
|
2609
|
+
function Rn(e) {
|
|
2591
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;
|
|
2592
2611
|
}
|
|
2593
2612
|
function tr(e) {
|
|
2594
2613
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2595
2614
|
}
|
|
2596
|
-
function
|
|
2615
|
+
function Un(e) {
|
|
2597
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;
|
|
2598
2617
|
}
|
|
2599
|
-
function
|
|
2618
|
+
function We(e) {
|
|
2600
2619
|
e.forEach(function(t) {
|
|
2601
2620
|
if (delete t.location, Vt(t) || Xt(t))
|
|
2602
2621
|
for (var r in t.options)
|
|
2603
|
-
delete t.options[r].location,
|
|
2604
|
-
else
|
|
2622
|
+
delete t.options[r].location, We(t.options[r].value);
|
|
2623
|
+
else
|
|
2624
|
+
qt(t) && Zt(t.style) || (Gt(t) || Ft(t)) && qe(t.style) ? delete t.style.location : Wt(t) && We(t.children);
|
|
2605
2625
|
});
|
|
2606
2626
|
}
|
|
2607
|
-
function
|
|
2627
|
+
function Dn(e, t) {
|
|
2608
2628
|
t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
2609
|
-
var r = new
|
|
2629
|
+
var r = new jn(e, t).parse();
|
|
2610
2630
|
if (r.err) {
|
|
2611
2631
|
var n = SyntaxError(w[r.err.kind]);
|
|
2612
2632
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
2613
2633
|
}
|
|
2614
|
-
return t?.captureLocation ||
|
|
2634
|
+
return t?.captureLocation || We(r.val), r.val;
|
|
2615
2635
|
}
|
|
2616
|
-
var
|
|
2636
|
+
var re;
|
|
2617
2637
|
(function(e) {
|
|
2618
2638
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
2619
|
-
})(
|
|
2620
|
-
var
|
|
2639
|
+
})(re || (re = {}));
|
|
2640
|
+
var He = (
|
|
2621
2641
|
/** @class */
|
|
2622
2642
|
function(e) {
|
|
2623
|
-
|
|
2643
|
+
Ae(t, e);
|
|
2624
2644
|
function t(r, n, i) {
|
|
2625
2645
|
var o = e.call(this, r) || this;
|
|
2626
2646
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -2629,47 +2649,47 @@ var Ae = (
|
|
|
2629
2649
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
2630
2650
|
}, t;
|
|
2631
2651
|
}(Error)
|
|
2632
|
-
),
|
|
2652
|
+
), pt = (
|
|
2633
2653
|
/** @class */
|
|
2634
2654
|
function(e) {
|
|
2635
|
-
|
|
2655
|
+
Ae(t, e);
|
|
2636
2656
|
function t(r, n, i, o) {
|
|
2637
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
2657
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
|
|
2638
2658
|
}
|
|
2639
2659
|
return t;
|
|
2640
|
-
}(
|
|
2641
|
-
),
|
|
2660
|
+
}(He)
|
|
2661
|
+
), qn = (
|
|
2642
2662
|
/** @class */
|
|
2643
2663
|
function(e) {
|
|
2644
|
-
|
|
2664
|
+
Ae(t, e);
|
|
2645
2665
|
function t(r, n, i) {
|
|
2646
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
2666
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
|
|
2647
2667
|
}
|
|
2648
2668
|
return t;
|
|
2649
|
-
}(
|
|
2650
|
-
),
|
|
2669
|
+
}(He)
|
|
2670
|
+
), Gn = (
|
|
2651
2671
|
/** @class */
|
|
2652
2672
|
function(e) {
|
|
2653
|
-
|
|
2673
|
+
Ae(t, e);
|
|
2654
2674
|
function t(r, n) {
|
|
2655
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
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;
|
|
2656
2676
|
}
|
|
2657
2677
|
return t;
|
|
2658
|
-
}(
|
|
2678
|
+
}(He)
|
|
2659
2679
|
), D;
|
|
2660
2680
|
(function(e) {
|
|
2661
2681
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
2662
2682
|
})(D || (D = {}));
|
|
2663
|
-
function
|
|
2683
|
+
function Fn(e) {
|
|
2664
2684
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
2665
2685
|
var n = t[t.length - 1];
|
|
2666
2686
|
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
2667
2687
|
}, []);
|
|
2668
2688
|
}
|
|
2669
|
-
function
|
|
2689
|
+
function Vn(e) {
|
|
2670
2690
|
return typeof e == "function";
|
|
2671
2691
|
}
|
|
2672
|
-
function
|
|
2692
|
+
function xe(e, t, r, n, i, o, a) {
|
|
2673
2693
|
if (e.length === 1 && lt(e[0]))
|
|
2674
2694
|
return [
|
|
2675
2695
|
{
|
|
@@ -2678,61 +2698,61 @@ function Se(e, t, r, n, i, o, a) {
|
|
|
2678
2698
|
}
|
|
2679
2699
|
];
|
|
2680
2700
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
2681
|
-
var
|
|
2682
|
-
if (lt(
|
|
2701
|
+
var l = u[h];
|
|
2702
|
+
if (lt(l)) {
|
|
2683
2703
|
s.push({
|
|
2684
2704
|
type: D.literal,
|
|
2685
|
-
value:
|
|
2705
|
+
value: l.value
|
|
2686
2706
|
});
|
|
2687
2707
|
continue;
|
|
2688
2708
|
}
|
|
2689
|
-
if (
|
|
2709
|
+
if (mn(l)) {
|
|
2690
2710
|
typeof o == "number" && s.push({
|
|
2691
2711
|
type: D.literal,
|
|
2692
2712
|
value: r.getNumberFormat(t).format(o)
|
|
2693
2713
|
});
|
|
2694
2714
|
continue;
|
|
2695
2715
|
}
|
|
2696
|
-
var d =
|
|
2716
|
+
var d = l.value;
|
|
2697
2717
|
if (!(i && d in i))
|
|
2698
|
-
throw new
|
|
2718
|
+
throw new Gn(d, a);
|
|
2699
2719
|
var m = i[d];
|
|
2700
|
-
if (
|
|
2720
|
+
if (dn(l)) {
|
|
2701
2721
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
2702
2722
|
type: typeof m == "string" ? D.literal : D.object,
|
|
2703
2723
|
value: m
|
|
2704
2724
|
});
|
|
2705
2725
|
continue;
|
|
2706
2726
|
}
|
|
2707
|
-
if (Gt(
|
|
2708
|
-
var b = typeof
|
|
2727
|
+
if (Gt(l)) {
|
|
2728
|
+
var b = typeof l.style == "string" ? n.date[l.style] : qe(l.style) ? l.style.parsedOptions : void 0;
|
|
2709
2729
|
s.push({
|
|
2710
2730
|
type: D.literal,
|
|
2711
2731
|
value: r.getDateTimeFormat(t, b).format(m)
|
|
2712
2732
|
});
|
|
2713
2733
|
continue;
|
|
2714
2734
|
}
|
|
2715
|
-
if (Ft(
|
|
2716
|
-
var b = typeof
|
|
2735
|
+
if (Ft(l)) {
|
|
2736
|
+
var b = typeof l.style == "string" ? n.time[l.style] : qe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
2717
2737
|
s.push({
|
|
2718
2738
|
type: D.literal,
|
|
2719
2739
|
value: r.getDateTimeFormat(t, b).format(m)
|
|
2720
2740
|
});
|
|
2721
2741
|
continue;
|
|
2722
2742
|
}
|
|
2723
|
-
if (qt(
|
|
2724
|
-
var b = typeof
|
|
2743
|
+
if (qt(l)) {
|
|
2744
|
+
var b = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
|
|
2725
2745
|
b && b.scale && (m = m * (b.scale || 1)), s.push({
|
|
2726
2746
|
type: D.literal,
|
|
2727
2747
|
value: r.getNumberFormat(t, b).format(m)
|
|
2728
2748
|
});
|
|
2729
2749
|
continue;
|
|
2730
2750
|
}
|
|
2731
|
-
if (Wt(
|
|
2732
|
-
var
|
|
2733
|
-
if (!
|
|
2734
|
-
throw new
|
|
2735
|
-
var
|
|
2751
|
+
if (Wt(l)) {
|
|
2752
|
+
var f = l.children, g = l.value, S = i[g];
|
|
2753
|
+
if (!Vn(S))
|
|
2754
|
+
throw new qn(g, "function", a);
|
|
2755
|
+
var _ = xe(f, t, r, n, i, o), v = S(_.map(function(k) {
|
|
2736
2756
|
return k.value;
|
|
2737
2757
|
}));
|
|
2738
2758
|
Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(k) {
|
|
@@ -2742,42 +2762,42 @@ function Se(e, t, r, n, i, o, a) {
|
|
|
2742
2762
|
};
|
|
2743
2763
|
}));
|
|
2744
2764
|
}
|
|
2745
|
-
if (Vt(
|
|
2746
|
-
var
|
|
2747
|
-
if (!
|
|
2748
|
-
throw new
|
|
2749
|
-
s.push.apply(s,
|
|
2765
|
+
if (Vt(l)) {
|
|
2766
|
+
var C = l.options[m] || l.options.other;
|
|
2767
|
+
if (!C)
|
|
2768
|
+
throw new pt(l.value, m, Object.keys(l.options), a);
|
|
2769
|
+
s.push.apply(s, xe(C.value, t, r, n, i));
|
|
2750
2770
|
continue;
|
|
2751
2771
|
}
|
|
2752
|
-
if (Xt(
|
|
2753
|
-
var
|
|
2754
|
-
if (!
|
|
2772
|
+
if (Xt(l)) {
|
|
2773
|
+
var C = l.options["=".concat(m)];
|
|
2774
|
+
if (!C) {
|
|
2755
2775
|
if (!Intl.PluralRules)
|
|
2756
|
-
throw new
|
|
2776
|
+
throw new He(`Intl.PluralRules is not available in this environment.
|
|
2757
2777
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2758
|
-
`,
|
|
2759
|
-
var P = r.getPluralRules(t, { type:
|
|
2760
|
-
|
|
2778
|
+
`, re.MISSING_INTL_API, a);
|
|
2779
|
+
var P = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
|
|
2780
|
+
C = l.options[P] || l.options.other;
|
|
2761
2781
|
}
|
|
2762
|
-
if (!
|
|
2763
|
-
throw new
|
|
2764
|
-
s.push.apply(s,
|
|
2782
|
+
if (!C)
|
|
2783
|
+
throw new pt(l.value, m, Object.keys(l.options), a);
|
|
2784
|
+
s.push.apply(s, xe(C.value, t, r, n, i, m - (l.offset || 0)));
|
|
2765
2785
|
continue;
|
|
2766
2786
|
}
|
|
2767
2787
|
}
|
|
2768
|
-
return
|
|
2788
|
+
return Fn(s);
|
|
2769
2789
|
}
|
|
2770
|
-
function
|
|
2790
|
+
function Xn(e, t) {
|
|
2771
2791
|
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
2772
2792
|
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
|
2773
2793
|
}, {})) : e;
|
|
2774
2794
|
}
|
|
2775
|
-
function
|
|
2795
|
+
function Wn(e, t) {
|
|
2776
2796
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
2777
|
-
return r[n] =
|
|
2797
|
+
return r[n] = Xn(e[n], t[n]), r;
|
|
2778
2798
|
}, H({}, e)) : e;
|
|
2779
2799
|
}
|
|
2780
|
-
function
|
|
2800
|
+
function Re(e) {
|
|
2781
2801
|
return {
|
|
2782
2802
|
create: function() {
|
|
2783
2803
|
return {
|
|
@@ -2791,39 +2811,39 @@ function je(e) {
|
|
|
2791
2811
|
}
|
|
2792
2812
|
};
|
|
2793
2813
|
}
|
|
2794
|
-
function
|
|
2814
|
+
function Zn(e) {
|
|
2795
2815
|
return e === void 0 && (e = {
|
|
2796
2816
|
number: {},
|
|
2797
2817
|
dateTime: {},
|
|
2798
2818
|
pluralRules: {}
|
|
2799
2819
|
}), {
|
|
2800
|
-
getNumberFormat:
|
|
2820
|
+
getNumberFormat: Ie(function() {
|
|
2801
2821
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2802
2822
|
r[n] = arguments[n];
|
|
2803
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
2823
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
2804
2824
|
}, {
|
|
2805
|
-
cache:
|
|
2806
|
-
strategy:
|
|
2825
|
+
cache: Re(e.number),
|
|
2826
|
+
strategy: je.variadic
|
|
2807
2827
|
}),
|
|
2808
|
-
getDateTimeFormat:
|
|
2828
|
+
getDateTimeFormat: Ie(function() {
|
|
2809
2829
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2810
2830
|
r[n] = arguments[n];
|
|
2811
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
2831
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
2812
2832
|
}, {
|
|
2813
|
-
cache:
|
|
2814
|
-
strategy:
|
|
2833
|
+
cache: Re(e.dateTime),
|
|
2834
|
+
strategy: je.variadic
|
|
2815
2835
|
}),
|
|
2816
|
-
getPluralRules:
|
|
2836
|
+
getPluralRules: Ie(function() {
|
|
2817
2837
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2818
2838
|
r[n] = arguments[n];
|
|
2819
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
2839
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
2820
2840
|
}, {
|
|
2821
|
-
cache:
|
|
2822
|
-
strategy:
|
|
2841
|
+
cache: Re(e.pluralRules),
|
|
2842
|
+
strategy: je.variadic
|
|
2823
2843
|
})
|
|
2824
2844
|
};
|
|
2825
2845
|
}
|
|
2826
|
-
var
|
|
2846
|
+
var Jn = (
|
|
2827
2847
|
/** @class */
|
|
2828
2848
|
function() {
|
|
2829
2849
|
function e(t, r, n, i) {
|
|
@@ -2837,12 +2857,12 @@ var Wn = (
|
|
|
2837
2857
|
var u = o.formatToParts(h);
|
|
2838
2858
|
if (u.length === 1)
|
|
2839
2859
|
return u[0].value;
|
|
2840
|
-
var
|
|
2860
|
+
var l = u.reduce(function(d, m) {
|
|
2841
2861
|
return !d.length || m.type !== D.literal || typeof d[d.length - 1] != "string" ? d.push(m.value) : d[d.length - 1] += m.value, d;
|
|
2842
2862
|
}, []);
|
|
2843
|
-
return
|
|
2863
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
2844
2864
|
}, this.formatToParts = function(h) {
|
|
2845
|
-
return
|
|
2865
|
+
return xe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
2846
2866
|
}, this.resolvedOptions = function() {
|
|
2847
2867
|
var h;
|
|
2848
2868
|
return {
|
|
@@ -2855,13 +2875,13 @@ var Wn = (
|
|
|
2855
2875
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
2856
2876
|
var a = i || {};
|
|
2857
2877
|
a.formatters;
|
|
2858
|
-
var s =
|
|
2878
|
+
var s = on(a, ["formatters"]);
|
|
2859
2879
|
this.ast = e.__parse(t, H(H({}, s), { locale: this.resolvedLocale }));
|
|
2860
2880
|
} else
|
|
2861
2881
|
this.ast = t;
|
|
2862
2882
|
if (!Array.isArray(this.ast))
|
|
2863
2883
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
2864
|
-
this.formats =
|
|
2884
|
+
this.formats = Wn(e.formats, n), this.formatters = i && i.formatters || Zn(this.formatterCache);
|
|
2865
2885
|
}
|
|
2866
2886
|
return Object.defineProperty(e, "defaultLocale", {
|
|
2867
2887
|
get: function() {
|
|
@@ -2874,7 +2894,7 @@ var Wn = (
|
|
|
2874
2894
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
2875
2895
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
2876
2896
|
}
|
|
2877
|
-
}, e.__parse =
|
|
2897
|
+
}, e.__parse = Dn, e.formats = {
|
|
2878
2898
|
number: {
|
|
2879
2899
|
integer: {
|
|
2880
2900
|
maximumFractionDigits: 0
|
|
@@ -2935,7 +2955,7 @@ var Wn = (
|
|
|
2935
2955
|
}, e;
|
|
2936
2956
|
}()
|
|
2937
2957
|
);
|
|
2938
|
-
function
|
|
2958
|
+
function Qn(e, t) {
|
|
2939
2959
|
if (t == null)
|
|
2940
2960
|
return;
|
|
2941
2961
|
if (t in e)
|
|
@@ -2956,36 +2976,36 @@ function Zn(e, t) {
|
|
|
2956
2976
|
n = void 0;
|
|
2957
2977
|
return n;
|
|
2958
2978
|
}
|
|
2959
|
-
const
|
|
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) => {
|
|
2960
2980
|
if (t == null)
|
|
2961
2981
|
return;
|
|
2962
|
-
if (t in
|
|
2963
|
-
return
|
|
2964
|
-
const r =
|
|
2982
|
+
if (t in J && e in J[t])
|
|
2983
|
+
return J[t][e];
|
|
2984
|
+
const r = Pe(t);
|
|
2965
2985
|
for (let n = 0; n < r.length; n++) {
|
|
2966
|
-
const i = r[n], o =
|
|
2986
|
+
const i = r[n], o = $n(i, e);
|
|
2967
2987
|
if (o)
|
|
2968
|
-
return
|
|
2988
|
+
return Yn(e, t, o);
|
|
2969
2989
|
}
|
|
2970
2990
|
};
|
|
2971
|
-
let
|
|
2972
|
-
const _e =
|
|
2973
|
-
function
|
|
2974
|
-
return
|
|
2991
|
+
let et;
|
|
2992
|
+
const _e = Ne({});
|
|
2993
|
+
function Kn(e) {
|
|
2994
|
+
return et[e] || null;
|
|
2975
2995
|
}
|
|
2976
2996
|
function nr(e) {
|
|
2977
|
-
return e in
|
|
2997
|
+
return e in et;
|
|
2978
2998
|
}
|
|
2979
|
-
function
|
|
2999
|
+
function $n(e, t) {
|
|
2980
3000
|
if (!nr(e))
|
|
2981
3001
|
return null;
|
|
2982
|
-
const r =
|
|
2983
|
-
return
|
|
3002
|
+
const r = Kn(e);
|
|
3003
|
+
return Qn(r, t);
|
|
2984
3004
|
}
|
|
2985
|
-
function
|
|
3005
|
+
function ei(e) {
|
|
2986
3006
|
if (e == null)
|
|
2987
3007
|
return;
|
|
2988
|
-
const t =
|
|
3008
|
+
const t = Pe(e);
|
|
2989
3009
|
for (let r = 0; r < t.length; r++) {
|
|
2990
3010
|
const n = t[r];
|
|
2991
3011
|
if (nr(n))
|
|
@@ -2993,55 +3013,55 @@ function Kn(e) {
|
|
|
2993
3013
|
}
|
|
2994
3014
|
}
|
|
2995
3015
|
function ir(e, ...t) {
|
|
2996
|
-
delete
|
|
3016
|
+
delete J[e], _e.update((r) => (r[e] = nn.all([r[e] || {}, ...t]), r));
|
|
2997
3017
|
}
|
|
2998
|
-
|
|
3018
|
+
ie(
|
|
2999
3019
|
[_e],
|
|
3000
3020
|
([e]) => Object.keys(e)
|
|
3001
3021
|
);
|
|
3002
|
-
_e.subscribe((e) =>
|
|
3003
|
-
const
|
|
3004
|
-
function
|
|
3005
|
-
|
|
3022
|
+
_e.subscribe((e) => et = e);
|
|
3023
|
+
const Me = {};
|
|
3024
|
+
function ti(e, t) {
|
|
3025
|
+
Me[e].delete(t), Me[e].size === 0 && delete Me[e];
|
|
3006
3026
|
}
|
|
3007
3027
|
function or(e) {
|
|
3008
|
-
return
|
|
3028
|
+
return Me[e];
|
|
3009
3029
|
}
|
|
3010
|
-
function
|
|
3011
|
-
return
|
|
3030
|
+
function ri(e) {
|
|
3031
|
+
return Pe(e).map((t) => {
|
|
3012
3032
|
const r = or(t);
|
|
3013
3033
|
return [t, r ? [...r] : []];
|
|
3014
3034
|
}).filter(([, t]) => t.length > 0);
|
|
3015
3035
|
}
|
|
3016
|
-
function
|
|
3017
|
-
return e == null ? !1 :
|
|
3036
|
+
function Ze(e) {
|
|
3037
|
+
return e == null ? !1 : Pe(e).some(
|
|
3018
3038
|
(t) => {
|
|
3019
3039
|
var r;
|
|
3020
3040
|
return (r = or(t)) == null ? void 0 : r.size;
|
|
3021
3041
|
}
|
|
3022
3042
|
);
|
|
3023
3043
|
}
|
|
3024
|
-
function
|
|
3044
|
+
function ni(e, t) {
|
|
3025
3045
|
return Promise.all(
|
|
3026
|
-
t.map((n) => (
|
|
3046
|
+
t.map((n) => (ti(e, n), n().then((i) => i.default || i)))
|
|
3027
3047
|
).then((n) => ir(e, ...n));
|
|
3028
3048
|
}
|
|
3029
|
-
const
|
|
3049
|
+
const he = {};
|
|
3030
3050
|
function ar(e) {
|
|
3031
|
-
if (!
|
|
3032
|
-
return e in
|
|
3033
|
-
const t =
|
|
3034
|
-
return
|
|
3051
|
+
if (!Ze(e))
|
|
3052
|
+
return e in he ? he[e] : Promise.resolve();
|
|
3053
|
+
const t = ri(e);
|
|
3054
|
+
return he[e] = Promise.all(
|
|
3035
3055
|
t.map(
|
|
3036
|
-
([r, n]) =>
|
|
3056
|
+
([r, n]) => ni(r, n)
|
|
3037
3057
|
)
|
|
3038
3058
|
).then(() => {
|
|
3039
|
-
if (
|
|
3059
|
+
if (Ze(e))
|
|
3040
3060
|
return ar(e);
|
|
3041
|
-
delete
|
|
3042
|
-
}),
|
|
3061
|
+
delete he[e];
|
|
3062
|
+
}), he[e];
|
|
3043
3063
|
}
|
|
3044
|
-
const
|
|
3064
|
+
const ii = {
|
|
3045
3065
|
number: {
|
|
3046
3066
|
scientific: { notation: "scientific" },
|
|
3047
3067
|
engineering: { notation: "engineering" },
|
|
@@ -3070,159 +3090,159 @@ const ri = {
|
|
|
3070
3090
|
timeZoneName: "short"
|
|
3071
3091
|
}
|
|
3072
3092
|
}
|
|
3073
|
-
},
|
|
3093
|
+
}, oi = {
|
|
3074
3094
|
fallbackLocale: null,
|
|
3075
3095
|
loadingDelay: 200,
|
|
3076
|
-
formats:
|
|
3096
|
+
formats: ii,
|
|
3077
3097
|
warnOnMissingMessages: !0,
|
|
3078
3098
|
handleMissingMessage: void 0,
|
|
3079
3099
|
ignoreTag: !0
|
|
3080
|
-
},
|
|
3081
|
-
function
|
|
3082
|
-
return
|
|
3100
|
+
}, ai = oi;
|
|
3101
|
+
function ne() {
|
|
3102
|
+
return ai;
|
|
3083
3103
|
}
|
|
3084
|
-
const
|
|
3085
|
-
var
|
|
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) => {
|
|
3086
3106
|
for (var r in t || (t = {}))
|
|
3087
|
-
|
|
3107
|
+
ui.call(t, r) && _t(e, r, t[r]);
|
|
3088
3108
|
if (ft)
|
|
3089
3109
|
for (var r of ft(t))
|
|
3090
|
-
|
|
3110
|
+
hi.call(t, r) && _t(e, r, t[r]);
|
|
3091
3111
|
return e;
|
|
3092
|
-
},
|
|
3093
|
-
let
|
|
3094
|
-
const Te =
|
|
3095
|
-
function
|
|
3112
|
+
}, mi = (e, t) => li(e, ci(t));
|
|
3113
|
+
let Je;
|
|
3114
|
+
const Te = Ne(null);
|
|
3115
|
+
function bt(e) {
|
|
3096
3116
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3097
3117
|
}
|
|
3098
|
-
function
|
|
3099
|
-
const r =
|
|
3100
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3118
|
+
function Pe(e, t = ne().fallbackLocale) {
|
|
3119
|
+
const r = bt(e);
|
|
3120
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3101
3121
|
}
|
|
3102
|
-
function
|
|
3103
|
-
return
|
|
3122
|
+
function Y() {
|
|
3123
|
+
return Je ?? void 0;
|
|
3104
3124
|
}
|
|
3105
3125
|
Te.subscribe((e) => {
|
|
3106
|
-
|
|
3126
|
+
Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3107
3127
|
});
|
|
3108
|
-
const
|
|
3109
|
-
if (e &&
|
|
3110
|
-
const { loadingDelay: t } =
|
|
3128
|
+
const gi = (e) => {
|
|
3129
|
+
if (e && ei(e) && Ze(e)) {
|
|
3130
|
+
const { loadingDelay: t } = ne();
|
|
3111
3131
|
let r;
|
|
3112
|
-
return typeof window < "u" &&
|
|
3113
|
-
() =>
|
|
3132
|
+
return typeof window < "u" && Y() != null && t ? r = window.setTimeout(
|
|
3133
|
+
() => Ue.set(!0),
|
|
3114
3134
|
t
|
|
3115
|
-
) :
|
|
3135
|
+
) : Ue.set(!0), ar(e).then(() => {
|
|
3116
3136
|
Te.set(e);
|
|
3117
3137
|
}).finally(() => {
|
|
3118
|
-
clearTimeout(r),
|
|
3138
|
+
clearTimeout(r), Ue.set(!1);
|
|
3119
3139
|
});
|
|
3120
3140
|
}
|
|
3121
3141
|
return Te.set(e);
|
|
3122
|
-
},
|
|
3123
|
-
set:
|
|
3124
|
-
}),
|
|
3142
|
+
}, oe = mi(di({}, Te), {
|
|
3143
|
+
set: gi
|
|
3144
|
+
}), Be = (e) => {
|
|
3125
3145
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3126
3146
|
return (n) => {
|
|
3127
3147
|
const i = JSON.stringify(n);
|
|
3128
3148
|
return i in t ? t[i] : t[i] = e(n);
|
|
3129
3149
|
};
|
|
3130
3150
|
};
|
|
3131
|
-
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) => {
|
|
3132
3152
|
for (var r in t || (t = {}))
|
|
3133
|
-
sr.call(t, r) &&
|
|
3134
|
-
if (
|
|
3135
|
-
for (var r of
|
|
3136
|
-
lr.call(t, r) &&
|
|
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]);
|
|
3137
3157
|
return e;
|
|
3138
|
-
},
|
|
3158
|
+
}, ae = (e, t) => {
|
|
3139
3159
|
var r = {};
|
|
3140
3160
|
for (var n in e)
|
|
3141
3161
|
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3142
|
-
if (e != null &&
|
|
3143
|
-
for (var n of
|
|
3162
|
+
if (e != null && we)
|
|
3163
|
+
for (var n of we(e))
|
|
3144
3164
|
t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
|
|
3145
3165
|
return r;
|
|
3146
3166
|
};
|
|
3147
|
-
const
|
|
3148
|
-
const { formats: r } =
|
|
3167
|
+
const ge = (e, t) => {
|
|
3168
|
+
const { formats: r } = ne();
|
|
3149
3169
|
if (e in r && t in r[e])
|
|
3150
3170
|
return r[e][t];
|
|
3151
3171
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3152
|
-
},
|
|
3172
|
+
}, fi = Be(
|
|
3153
3173
|
(e) => {
|
|
3154
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3174
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3155
3175
|
if (r == null)
|
|
3156
3176
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3157
|
-
return n && (i =
|
|
3177
|
+
return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
|
|
3158
3178
|
}
|
|
3159
|
-
),
|
|
3179
|
+
), _i = Be(
|
|
3160
3180
|
(e) => {
|
|
3161
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3181
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3162
3182
|
if (r == null)
|
|
3163
3183
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3164
|
-
return n ? i =
|
|
3184
|
+
return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3165
3185
|
}
|
|
3166
|
-
),
|
|
3186
|
+
), bi = Be(
|
|
3167
3187
|
(e) => {
|
|
3168
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3188
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3169
3189
|
if (r == null)
|
|
3170
3190
|
throw new Error(
|
|
3171
3191
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3172
3192
|
);
|
|
3173
|
-
return n ? i =
|
|
3193
|
+
return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3174
3194
|
}
|
|
3175
|
-
),
|
|
3195
|
+
), vi = (e = {}) => {
|
|
3176
3196
|
var t = e, {
|
|
3177
|
-
locale: r =
|
|
3178
|
-
} = t, n =
|
|
3197
|
+
locale: r = Y()
|
|
3198
|
+
} = t, n = ae(t, [
|
|
3179
3199
|
"locale"
|
|
3180
3200
|
]);
|
|
3181
|
-
return
|
|
3182
|
-
},
|
|
3201
|
+
return fi(tt({ locale: r }, n));
|
|
3202
|
+
}, yi = (e = {}) => {
|
|
3183
3203
|
var t = e, {
|
|
3184
|
-
locale: r =
|
|
3185
|
-
} = t, n =
|
|
3204
|
+
locale: r = Y()
|
|
3205
|
+
} = t, n = ae(t, [
|
|
3186
3206
|
"locale"
|
|
3187
3207
|
]);
|
|
3188
|
-
return
|
|
3189
|
-
},
|
|
3208
|
+
return _i(tt({ locale: r }, n));
|
|
3209
|
+
}, Ei = (e = {}) => {
|
|
3190
3210
|
var t = e, {
|
|
3191
|
-
locale: r =
|
|
3192
|
-
} = t, n =
|
|
3211
|
+
locale: r = Y()
|
|
3212
|
+
} = t, n = ae(t, [
|
|
3193
3213
|
"locale"
|
|
3194
3214
|
]);
|
|
3195
|
-
return
|
|
3196
|
-
},
|
|
3215
|
+
return bi(tt({ locale: r }, n));
|
|
3216
|
+
}, ki = Be(
|
|
3197
3217
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3198
|
-
(e, t =
|
|
3199
|
-
ignoreTag:
|
|
3218
|
+
(e, t = Y()) => new Jn(e, t, ne().formats, {
|
|
3219
|
+
ignoreTag: ne().ignoreTag
|
|
3200
3220
|
})
|
|
3201
|
-
),
|
|
3221
|
+
), Ci = (e, t = {}) => {
|
|
3202
3222
|
var r, n, i, o;
|
|
3203
3223
|
let a = t;
|
|
3204
3224
|
typeof e == "object" && (a = e, e = a.id);
|
|
3205
3225
|
const {
|
|
3206
3226
|
values: s,
|
|
3207
|
-
locale: h =
|
|
3227
|
+
locale: h = Y(),
|
|
3208
3228
|
default: u
|
|
3209
3229
|
} = a;
|
|
3210
3230
|
if (h == null)
|
|
3211
3231
|
throw new Error(
|
|
3212
3232
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3213
3233
|
);
|
|
3214
|
-
let
|
|
3215
|
-
if (!
|
|
3216
|
-
|
|
3217
|
-
else if (typeof
|
|
3234
|
+
let l = rr(e, h);
|
|
3235
|
+
if (!l)
|
|
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;
|
|
3237
|
+
else if (typeof l != "string")
|
|
3218
3238
|
return console.warn(
|
|
3219
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3220
|
-
),
|
|
3239
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3240
|
+
), l;
|
|
3221
3241
|
if (!s)
|
|
3222
|
-
return
|
|
3223
|
-
let d =
|
|
3242
|
+
return l;
|
|
3243
|
+
let d = l;
|
|
3224
3244
|
try {
|
|
3225
|
-
d =
|
|
3245
|
+
d = ki(l, h).format(s);
|
|
3226
3246
|
} catch (m) {
|
|
3227
3247
|
m instanceof Error && console.warn(
|
|
3228
3248
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3230,16 +3250,16 @@ const pe = (e, t) => {
|
|
|
3230
3250
|
);
|
|
3231
3251
|
}
|
|
3232
3252
|
return d;
|
|
3233
|
-
},
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3253
|
+
}, Si = (e, t) => Ei(t).format(e), xi = (e, t) => yi(t).format(e), Mi = (e, t) => vi(t).format(e), Ti = (e, t = Y()) => rr(e, t), wi = ie([oe, _e], () => Ci);
|
|
3254
|
+
ie([oe], () => Si);
|
|
3255
|
+
ie([oe], () => xi);
|
|
3256
|
+
ie([oe], () => Mi);
|
|
3257
|
+
ie([oe, _e], () => Ti);
|
|
3238
3258
|
function yt(e, t) {
|
|
3239
3259
|
ir(e, t);
|
|
3240
3260
|
}
|
|
3241
|
-
function
|
|
3242
|
-
|
|
3261
|
+
function Ni(e) {
|
|
3262
|
+
oe.set(e);
|
|
3243
3263
|
}
|
|
3244
3264
|
const Et = {
|
|
3245
3265
|
en: {
|
|
@@ -3813,50 +3833,50 @@ if (typeof window < "u") {
|
|
|
3813
3833
|
}
|
|
3814
3834
|
};
|
|
3815
3835
|
};
|
|
3816
|
-
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-
|
|
3836
|
+
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-BMZE178n.js").then((t) => t.G).then(({ default: t }) => {
|
|
3817
3837
|
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
|
|
3818
3838
|
});
|
|
3819
3839
|
}
|
|
3820
|
-
function
|
|
3840
|
+
function Ai(e) {
|
|
3821
3841
|
let t, r;
|
|
3822
3842
|
return {
|
|
3823
3843
|
c() {
|
|
3824
|
-
t =
|
|
3844
|
+
t = ot("svg"), r = ot("path"), E(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), E(t, "xmlns", "http://www.w3.org/2000/svg"), E(t, "viewBox", "0 0 512 512");
|
|
3825
3845
|
},
|
|
3826
3846
|
m(n, i) {
|
|
3827
|
-
|
|
3847
|
+
j(n, t, i), x(t, r);
|
|
3828
3848
|
},
|
|
3829
|
-
p:
|
|
3830
|
-
i:
|
|
3831
|
-
o:
|
|
3849
|
+
p: X,
|
|
3850
|
+
i: X,
|
|
3851
|
+
o: X,
|
|
3832
3852
|
d(n) {
|
|
3833
|
-
n &&
|
|
3853
|
+
n && L(t);
|
|
3834
3854
|
}
|
|
3835
3855
|
};
|
|
3836
3856
|
}
|
|
3837
|
-
class
|
|
3857
|
+
class Hi extends It {
|
|
3838
3858
|
constructor(t) {
|
|
3839
|
-
super(),
|
|
3859
|
+
super(), jt(this, t, null, Ai, Qe, {});
|
|
3840
3860
|
}
|
|
3841
3861
|
}
|
|
3842
|
-
customElements.define("circle-exclamation-icon", Ot(
|
|
3843
|
-
function
|
|
3844
|
-
|
|
3862
|
+
customElements.define("circle-exclamation-icon", Ot(Hi, {}, [], [], !0));
|
|
3863
|
+
function Pi(e) {
|
|
3864
|
+
Br(e, "svelte-ltb9q9", '.DisplayNone.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:none}.ContainerCenter.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{margin-bottom:30px}.AccordionHeader.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{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-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{margin-bottom:10px}.AccordionContent.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:block;padding:10px 0}.AccordionContent.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:last-of-type{padding-bottom:0}.ConsentItem.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:last-of-type{margin-bottom:0}.ConsentItem.svelte-ltb9q9 .ConsentName.svelte-ltb9q9.svelte-ltb9q9{margin:0}.ConsentItem.svelte-ltb9q9 .ConsentDescription.svelte-ltb9q9.svelte-ltb9q9{font-size:0.8rem}.ToggleSwitch.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{width:53px;height:30px}.ToggleSwitch.Big.svelte-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9.svelte-ltb9q9{opacity:0;width:0;height:0}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9{background-color:var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:disabled+.Slider.svelte-ltb9q9{opacity:0.1}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:focus+.Slider.svelte-ltb9q9{box-shadow:0 0 1px var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9{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-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9: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-ltb9q9 .Slider.Round.svelte-ltb9q9.svelte-ltb9q9{border-radius:34px}.ToggleSwitch.svelte-ltb9q9 .Slider.Round.svelte-ltb9q9.svelte-ltb9q9:before{border-radius:50%}.SaveConsentsButton.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{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, 50px);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-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:disabled{background:var(--emw--color-pale, var(--emw--color-gray-50, #707070))}.ConsentErrorContainer.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-ltb9q9 circle-exclamation-icon.svelte-ltb9q9.svelte-ltb9q9{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox.svelte-ltb9q9.svelte-ltb9q9{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__wrapper.svelte-ltb9q9.svelte-ltb9q9{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-ltb9q9.svelte-ltb9q9{position:relative}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__input.svelte-ltb9q9.svelte-ltb9q9{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__label.svelte-ltb9q9.svelte-ltb9q9{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-ltb9q9 .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-ltb9q9.svelte-ltb9q9{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__error-message.svelte-ltb9q9.svelte-ltb9q9{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-ltb9q9.svelte-ltb9q9{width:16px;height:auto}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip.svelte-ltb9q9.svelte-ltb9q9{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-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-ltb9q9.svelte-ltb9q9{opacity:1}');
|
|
3845
3865
|
}
|
|
3846
3866
|
function kt(e, t, r) {
|
|
3847
3867
|
const n = e.slice();
|
|
3848
|
-
return n[
|
|
3868
|
+
return n[64] = t[r], n;
|
|
3849
3869
|
}
|
|
3850
3870
|
function Ct(e, t, r) {
|
|
3851
3871
|
const n = e.slice();
|
|
3852
|
-
return n[
|
|
3872
|
+
return n[61] = t[r], n[62] = t, n[63] = r, n;
|
|
3853
3873
|
}
|
|
3854
3874
|
function St(e, t, r) {
|
|
3855
3875
|
const n = e.slice();
|
|
3856
|
-
return n[
|
|
3876
|
+
return n[64] = t[r], n;
|
|
3857
3877
|
}
|
|
3858
|
-
function
|
|
3859
|
-
let t, r, n =
|
|
3878
|
+
function Bi(e) {
|
|
3879
|
+
let t, r, n = $(
|
|
3860
3880
|
/*playerConsents*/
|
|
3861
3881
|
e[9]
|
|
3862
3882
|
), i = [];
|
|
@@ -3870,7 +3890,7 @@ function Hi(e) {
|
|
|
3870
3890
|
E(r, "class", "checkbox svelte-ltb9q9"), E(t, "class", "legacyStyle");
|
|
3871
3891
|
},
|
|
3872
3892
|
m(o, a) {
|
|
3873
|
-
|
|
3893
|
+
j(o, t, a), x(t, r);
|
|
3874
3894
|
for (let s = 0; s < i.length; s += 1)
|
|
3875
3895
|
i[s] && i[s].m(r, null);
|
|
3876
3896
|
e[31](r);
|
|
@@ -3878,7 +3898,7 @@ function Hi(e) {
|
|
|
3878
3898
|
p(o, a) {
|
|
3879
3899
|
if (a[0] & /*playerConsents, $_, handleInput*/
|
|
3880
3900
|
590336) {
|
|
3881
|
-
n =
|
|
3901
|
+
n = $(
|
|
3882
3902
|
/*playerConsents*/
|
|
3883
3903
|
o[9]
|
|
3884
3904
|
);
|
|
@@ -3893,11 +3913,11 @@ function Hi(e) {
|
|
|
3893
3913
|
}
|
|
3894
3914
|
},
|
|
3895
3915
|
d(o) {
|
|
3896
|
-
o &&
|
|
3916
|
+
o && L(t), Ye(i, o), e[31](null);
|
|
3897
3917
|
}
|
|
3898
3918
|
};
|
|
3899
3919
|
}
|
|
3900
|
-
function
|
|
3920
|
+
function zi(e) {
|
|
3901
3921
|
let t = (
|
|
3902
3922
|
/*$_*/
|
|
3903
3923
|
e[16]("title") || /*$_*/
|
|
@@ -3905,13 +3925,13 @@ function Pi(e) {
|
|
|
3905
3925
|
), r, n, i, o = (
|
|
3906
3926
|
/*$_*/
|
|
3907
3927
|
(e[16]("saveButtonContent") || "Save Consents") + ""
|
|
3908
|
-
), a, s, h, u,
|
|
3928
|
+
), a, s, h, u, l, d = t && Mt(e), m = $(
|
|
3909
3929
|
/*consentsCategories*/
|
|
3910
3930
|
e[8]
|
|
3911
3931
|
), b = [];
|
|
3912
3932
|
for (let g = 0; g < m.length; g += 1)
|
|
3913
3933
|
b[g] = Pt(Ct(e, m, g));
|
|
3914
|
-
let
|
|
3934
|
+
let f = (
|
|
3915
3935
|
/*errorMessage*/
|
|
3916
3936
|
e[6] && Bt(e)
|
|
3917
3937
|
);
|
|
@@ -3920,62 +3940,62 @@ function Pi(e) {
|
|
|
3920
3940
|
d && d.c(), r = q();
|
|
3921
3941
|
for (let g = 0; g < b.length; g += 1)
|
|
3922
3942
|
b[g].c();
|
|
3923
|
-
n = q(), i = A("button"), s = q(),
|
|
3943
|
+
n = q(), i = A("button"), s = q(), f && f.c(), h = Ur(), E(i, "class", "SaveConsentsButton svelte-ltb9q9"), i.disabled = a = !/*isValid*/
|
|
3924
3944
|
e[14];
|
|
3925
3945
|
},
|
|
3926
|
-
m(g,
|
|
3927
|
-
d && d.m(g,
|
|
3928
|
-
for (let
|
|
3929
|
-
b[
|
|
3930
|
-
|
|
3946
|
+
m(g, S) {
|
|
3947
|
+
d && d.m(g, S), j(g, r, S);
|
|
3948
|
+
for (let _ = 0; _ < b.length; _ += 1)
|
|
3949
|
+
b[_] && b[_].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(
|
|
3931
3951
|
i,
|
|
3932
3952
|
"click",
|
|
3933
3953
|
/*saveChanges*/
|
|
3934
3954
|
e[17]
|
|
3935
3955
|
), u = !0);
|
|
3936
3956
|
},
|
|
3937
|
-
p(g,
|
|
3938
|
-
if (
|
|
3957
|
+
p(g, S) {
|
|
3958
|
+
if (S[0] & /*$_*/
|
|
3939
3959
|
65536 && (t = /*$_*/
|
|
3940
3960
|
g[16]("title") || /*$_*/
|
|
3941
|
-
g[16]("description")), t ? d ? d.p(g,
|
|
3942
|
-
|
|
3943
|
-
m =
|
|
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*/
|
|
3962
|
+
867088) {
|
|
3963
|
+
m = $(
|
|
3944
3964
|
/*consentsCategories*/
|
|
3945
3965
|
g[8]
|
|
3946
3966
|
);
|
|
3947
|
-
let
|
|
3948
|
-
for (
|
|
3949
|
-
const v = Ct(g, m,
|
|
3950
|
-
b[
|
|
3967
|
+
let _;
|
|
3968
|
+
for (_ = 0; _ < m.length; _ += 1) {
|
|
3969
|
+
const v = Ct(g, m, _);
|
|
3970
|
+
b[_] ? b[_].p(v, S) : (b[_] = Pt(v), b[_].c(), b[_].m(n.parentNode, n));
|
|
3951
3971
|
}
|
|
3952
|
-
for (;
|
|
3953
|
-
b[
|
|
3972
|
+
for (; _ < b.length; _ += 1)
|
|
3973
|
+
b[_].d(1);
|
|
3954
3974
|
b.length = m.length;
|
|
3955
3975
|
}
|
|
3956
|
-
|
|
3976
|
+
S[0] & /*$_*/
|
|
3957
3977
|
65536 && o !== (o = /*$_*/
|
|
3958
|
-
(g[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o),
|
|
3978
|
+
(g[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
|
|
3959
3979
|
16384 && a !== (a = !/*isValid*/
|
|
3960
3980
|
g[14]) && (i.disabled = a), /*errorMessage*/
|
|
3961
|
-
g[6] ?
|
|
3981
|
+
g[6] ? f ? f.p(g, S) : (f = Bt(g), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
|
|
3962
3982
|
},
|
|
3963
3983
|
d(g) {
|
|
3964
|
-
g && (
|
|
3984
|
+
g && (L(r), L(n), L(i), L(s), L(h)), d && d.d(g), Ye(b, g), f && f.d(g), u = !1, l();
|
|
3965
3985
|
}
|
|
3966
3986
|
};
|
|
3967
3987
|
}
|
|
3968
|
-
function
|
|
3988
|
+
function Oi(e) {
|
|
3969
3989
|
let t, r, n;
|
|
3970
3990
|
return {
|
|
3971
3991
|
c() {
|
|
3972
|
-
t = A("div"), r = A("strong"), n =
|
|
3992
|
+
t = A("div"), r = A("strong"), n = pe(
|
|
3973
3993
|
/*fatalError*/
|
|
3974
3994
|
e[7]
|
|
3975
3995
|
), E(r, "class", "ErrorMessage svelte-ltb9q9"), E(t, "class", "ContainerCenter svelte-ltb9q9");
|
|
3976
3996
|
},
|
|
3977
3997
|
m(i, o) {
|
|
3978
|
-
|
|
3998
|
+
j(i, t, o), x(t, r), x(r, n);
|
|
3979
3999
|
},
|
|
3980
4000
|
p(i, o) {
|
|
3981
4001
|
o[0] & /*fatalError*/
|
|
@@ -3986,46 +4006,57 @@ function Bi(e) {
|
|
|
3986
4006
|
);
|
|
3987
4007
|
},
|
|
3988
4008
|
d(i) {
|
|
3989
|
-
i &&
|
|
4009
|
+
i && L(t);
|
|
3990
4010
|
}
|
|
3991
4011
|
};
|
|
3992
4012
|
}
|
|
3993
|
-
function
|
|
4013
|
+
function Ii(e) {
|
|
3994
4014
|
let t;
|
|
3995
4015
|
return {
|
|
3996
4016
|
c() {
|
|
3997
|
-
t = A("general-animation-loading"),
|
|
4017
|
+
t = A("general-animation-loading"), Q(
|
|
3998
4018
|
t,
|
|
3999
4019
|
"clientstyling",
|
|
4000
4020
|
/*clientstyling*/
|
|
4001
4021
|
e[1]
|
|
4002
|
-
),
|
|
4022
|
+
), Q(
|
|
4003
4023
|
t,
|
|
4004
4024
|
"clientstylingurl",
|
|
4005
4025
|
/*clientstylingurl*/
|
|
4006
4026
|
e[2]
|
|
4027
|
+
), Q(
|
|
4028
|
+
t,
|
|
4029
|
+
"mbsource",
|
|
4030
|
+
/*mbsource*/
|
|
4031
|
+
e[3]
|
|
4007
4032
|
);
|
|
4008
4033
|
},
|
|
4009
4034
|
m(r, n) {
|
|
4010
|
-
|
|
4035
|
+
j(r, t, n);
|
|
4011
4036
|
},
|
|
4012
4037
|
p(r, n) {
|
|
4013
4038
|
n[0] & /*clientstyling*/
|
|
4014
|
-
2 &&
|
|
4039
|
+
2 && Q(
|
|
4015
4040
|
t,
|
|
4016
4041
|
"clientstyling",
|
|
4017
4042
|
/*clientstyling*/
|
|
4018
4043
|
r[1]
|
|
4019
4044
|
), n[0] & /*clientstylingurl*/
|
|
4020
|
-
4 &&
|
|
4045
|
+
4 && Q(
|
|
4021
4046
|
t,
|
|
4022
4047
|
"clientstylingurl",
|
|
4023
4048
|
/*clientstylingurl*/
|
|
4024
4049
|
r[2]
|
|
4050
|
+
), n[0] & /*mbsource*/
|
|
4051
|
+
8 && Q(
|
|
4052
|
+
t,
|
|
4053
|
+
"mbsource",
|
|
4054
|
+
/*mbsource*/
|
|
4055
|
+
r[3]
|
|
4025
4056
|
);
|
|
4026
4057
|
},
|
|
4027
4058
|
d(r) {
|
|
4028
|
-
r &&
|
|
4059
|
+
r && L(t);
|
|
4029
4060
|
}
|
|
4030
4061
|
};
|
|
4031
4062
|
}
|
|
@@ -4033,96 +4064,96 @@ function xt(e) {
|
|
|
4033
4064
|
let t, r, n, i, o, a, s, h, u = (
|
|
4034
4065
|
/*$_*/
|
|
4035
4066
|
(e[16](`${/*consent*/
|
|
4036
|
-
e[
|
|
4037
|
-
e[
|
|
4038
|
-
),
|
|
4067
|
+
e[64].tagCode}__description`) || /*consent*/
|
|
4068
|
+
e[64].tagCode) + ""
|
|
4069
|
+
), l = (
|
|
4039
4070
|
/*consent*/
|
|
4040
|
-
e[
|
|
4041
|
-
), d, m, b,
|
|
4071
|
+
e[64].mustAccept ? " *" : ""
|
|
4072
|
+
), d, m, b, f, g, S, _, v, C;
|
|
4042
4073
|
function P(...k) {
|
|
4043
4074
|
return (
|
|
4044
4075
|
/*input_handler_1*/
|
|
4045
4076
|
e[30](
|
|
4046
4077
|
/*consent*/
|
|
4047
|
-
e[
|
|
4078
|
+
e[64],
|
|
4048
4079
|
...k
|
|
4049
4080
|
)
|
|
4050
4081
|
);
|
|
4051
4082
|
}
|
|
4052
4083
|
return {
|
|
4053
4084
|
c() {
|
|
4054
|
-
t = A("div"), r = A("input"), o = q(), a = A("label"), s = A("div"), h = new
|
|
4055
|
-
e[
|
|
4056
|
-
e[
|
|
4057
|
-
e[
|
|
4058
|
-
e[
|
|
4059
|
-
e[
|
|
4085
|
+
t = A("div"), r = A("input"), o = q(), a = A("label"), s = A("div"), h = new Lt(!1), d = pe(l), b = q(), f = A("small"), S = q(), E(r, "class", "checkbox__input svelte-ltb9q9"), E(r, "type", "checkbox"), r.checked = n = /*consent*/
|
|
4086
|
+
e[64].status === "1", E(r, "id", i = `${/*consent*/
|
|
4087
|
+
e[64].tagCode}__input`), h.a = d, E(s, "class", "checkbox__label-text svelte-ltb9q9"), E(a, "class", "checkbox__label svelte-ltb9q9"), E(a, "for", m = `${/*consent*/
|
|
4088
|
+
e[64].tagCode}__input`), E(f, "class", "checkbox__error-message svelte-ltb9q9"), E(f, "id", g = "checkBoxError__" + /*consent*/
|
|
4089
|
+
e[64].tagCode), E(t, "class", _ = "checkbox__wrapper " + /*consent*/
|
|
4090
|
+
e[64].tagCode + "__input svelte-ltb9q9");
|
|
4060
4091
|
},
|
|
4061
4092
|
m(k, z) {
|
|
4062
|
-
|
|
4093
|
+
j(k, t, z), x(t, r), x(t, o), x(t, a), x(a, s), h.m(u, s), x(s, d), x(t, b), x(t, f), x(t, S), v || (C = de(r, "input", P), v = !0);
|
|
4063
4094
|
},
|
|
4064
4095
|
p(k, z) {
|
|
4065
4096
|
e = k, z[0] & /*playerConsents*/
|
|
4066
4097
|
512 && n !== (n = /*consent*/
|
|
4067
|
-
e[
|
|
4098
|
+
e[64].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
|
|
4068
4099
|
512 && i !== (i = `${/*consent*/
|
|
4069
|
-
e[
|
|
4100
|
+
e[64].tagCode}__input`) && E(r, "id", i), z[0] & /*$_, playerConsents*/
|
|
4070
4101
|
66048 && u !== (u = /*$_*/
|
|
4071
4102
|
(e[16](`${/*consent*/
|
|
4072
|
-
e[
|
|
4073
|
-
e[
|
|
4074
|
-
512 &&
|
|
4075
|
-
e[
|
|
4103
|
+
e[64].tagCode}__description`) || /*consent*/
|
|
4104
|
+
e[64].tagCode) + "") && h.p(u), z[0] & /*playerConsents*/
|
|
4105
|
+
512 && l !== (l = /*consent*/
|
|
4106
|
+
e[64].mustAccept ? " *" : "") && fe(d, l), z[0] & /*playerConsents*/
|
|
4076
4107
|
512 && m !== (m = `${/*consent*/
|
|
4077
|
-
e[
|
|
4108
|
+
e[64].tagCode}__input`) && E(a, "for", m), z[0] & /*playerConsents*/
|
|
4078
4109
|
512 && g !== (g = "checkBoxError__" + /*consent*/
|
|
4079
|
-
e[
|
|
4080
|
-
512 &&
|
|
4081
|
-
e[
|
|
4110
|
+
e[64].tagCode) && E(f, "id", g), z[0] & /*playerConsents*/
|
|
4111
|
+
512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
|
|
4112
|
+
e[64].tagCode + "__input svelte-ltb9q9") && E(t, "class", _);
|
|
4082
4113
|
},
|
|
4083
4114
|
d(k) {
|
|
4084
|
-
k &&
|
|
4115
|
+
k && L(t), v = !1, C();
|
|
4085
4116
|
}
|
|
4086
4117
|
};
|
|
4087
4118
|
}
|
|
4088
|
-
function
|
|
4119
|
+
function Mt(e) {
|
|
4089
4120
|
let t, r = (
|
|
4090
4121
|
/*$_*/
|
|
4091
4122
|
e[16]("title")
|
|
4092
4123
|
), n, i = (
|
|
4093
4124
|
/*$_*/
|
|
4094
4125
|
e[16]("description")
|
|
4095
|
-
), o = r &&
|
|
4126
|
+
), o = r && Tt(e), a = i && wt(e);
|
|
4096
4127
|
return {
|
|
4097
4128
|
c() {
|
|
4098
4129
|
t = A("div"), o && o.c(), n = q(), a && a.c(), E(t, "class", "PlayerConsentsHeader svelte-ltb9q9");
|
|
4099
4130
|
},
|
|
4100
4131
|
m(s, h) {
|
|
4101
|
-
|
|
4132
|
+
j(s, t, h), o && o.m(t, null), x(t, n), a && a.m(t, null);
|
|
4102
4133
|
},
|
|
4103
4134
|
p(s, h) {
|
|
4104
4135
|
h[0] & /*$_*/
|
|
4105
4136
|
65536 && (r = /*$_*/
|
|
4106
|
-
s[16]("title")), r ? o ? o.p(s, h) : (o =
|
|
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] & /*$_*/
|
|
4107
4138
|
65536 && (i = /*$_*/
|
|
4108
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);
|
|
4109
4140
|
},
|
|
4110
4141
|
d(s) {
|
|
4111
|
-
s &&
|
|
4142
|
+
s && L(t), o && o.d(), a && a.d();
|
|
4112
4143
|
}
|
|
4113
4144
|
};
|
|
4114
4145
|
}
|
|
4115
|
-
function
|
|
4146
|
+
function Tt(e) {
|
|
4116
4147
|
let t, r = (
|
|
4117
4148
|
/*$_*/
|
|
4118
4149
|
e[16]("title") + ""
|
|
4119
4150
|
), n;
|
|
4120
4151
|
return {
|
|
4121
4152
|
c() {
|
|
4122
|
-
t = A("h2"), n =
|
|
4153
|
+
t = A("h2"), n = pe(r), E(t, "class", "PlayerConsentsTitle");
|
|
4123
4154
|
},
|
|
4124
4155
|
m(i, o) {
|
|
4125
|
-
|
|
4156
|
+
j(i, t, o), x(t, n);
|
|
4126
4157
|
},
|
|
4127
4158
|
p(i, o) {
|
|
4128
4159
|
o[0] & /*$_*/
|
|
@@ -4130,7 +4161,7 @@ function Mt(e) {
|
|
|
4130
4161
|
i[16]("title") + "") && fe(n, r);
|
|
4131
4162
|
},
|
|
4132
4163
|
d(i) {
|
|
4133
|
-
i &&
|
|
4164
|
+
i && L(t);
|
|
4134
4165
|
}
|
|
4135
4166
|
};
|
|
4136
4167
|
}
|
|
@@ -4141,10 +4172,10 @@ function wt(e) {
|
|
|
4141
4172
|
), n;
|
|
4142
4173
|
return {
|
|
4143
4174
|
c() {
|
|
4144
|
-
t = A("p"), n =
|
|
4175
|
+
t = A("p"), n = pe(r), E(t, "class", "PlayerConsentsDescription");
|
|
4145
4176
|
},
|
|
4146
4177
|
m(i, o) {
|
|
4147
|
-
|
|
4178
|
+
j(i, t, o), x(t, n);
|
|
4148
4179
|
},
|
|
4149
4180
|
p(i, o) {
|
|
4150
4181
|
o[0] & /*$_*/
|
|
@@ -4152,7 +4183,7 @@ function wt(e) {
|
|
|
4152
4183
|
i[16]("description") + "") && fe(n, r);
|
|
4153
4184
|
},
|
|
4154
4185
|
d(i) {
|
|
4155
|
-
i &&
|
|
4186
|
+
i && L(t);
|
|
4156
4187
|
}
|
|
4157
4188
|
};
|
|
4158
4189
|
}
|
|
@@ -4163,10 +4194,10 @@ function Nt(e) {
|
|
|
4163
4194
|
t = A("sup"), t.textContent = "*", E(t, "class", "ConsentRequired svelte-ltb9q9");
|
|
4164
4195
|
},
|
|
4165
4196
|
m(r, n) {
|
|
4166
|
-
|
|
4197
|
+
j(r, t, n);
|
|
4167
4198
|
},
|
|
4168
4199
|
d(r) {
|
|
4169
|
-
r &&
|
|
4200
|
+
r && L(t);
|
|
4170
4201
|
}
|
|
4171
4202
|
};
|
|
4172
4203
|
}
|
|
@@ -4174,25 +4205,25 @@ function At(e) {
|
|
|
4174
4205
|
let t, r = (
|
|
4175
4206
|
/*$_*/
|
|
4176
4207
|
(e[16](`${/*consent*/
|
|
4177
|
-
e[
|
|
4178
|
-
e[
|
|
4208
|
+
e[64].tagCode}__description`) || /*consent*/
|
|
4209
|
+
e[64].description) + ""
|
|
4179
4210
|
);
|
|
4180
4211
|
return {
|
|
4181
4212
|
c() {
|
|
4182
4213
|
t = A("p"), E(t, "class", "ConsentDescription svelte-ltb9q9");
|
|
4183
4214
|
},
|
|
4184
4215
|
m(n, i) {
|
|
4185
|
-
|
|
4216
|
+
j(n, t, i), t.innerHTML = r;
|
|
4186
4217
|
},
|
|
4187
4218
|
p(n, i) {
|
|
4188
4219
|
i[0] & /*$_, playerConsents, consentsCategories*/
|
|
4189
4220
|
66304 && r !== (r = /*$_*/
|
|
4190
4221
|
(n[16](`${/*consent*/
|
|
4191
|
-
n[
|
|
4192
|
-
n[
|
|
4222
|
+
n[64].tagCode}__description`) || /*consent*/
|
|
4223
|
+
n[64].description) + "") && (t.innerHTML = r);
|
|
4193
4224
|
},
|
|
4194
4225
|
d(n) {
|
|
4195
|
-
n &&
|
|
4226
|
+
n && L(t);
|
|
4196
4227
|
}
|
|
4197
4228
|
};
|
|
4198
4229
|
}
|
|
@@ -4200,63 +4231,63 @@ function Ht(e) {
|
|
|
4200
4231
|
let t, r, n, i, o = (
|
|
4201
4232
|
/*$_*/
|
|
4202
4233
|
(e[16](`${/*consent*/
|
|
4203
|
-
e[
|
|
4204
|
-
e[
|
|
4205
|
-
), a, s, h, u,
|
|
4234
|
+
e[64].tagCode}__name`) || /*consent*/
|
|
4235
|
+
e[64].friendlyName) + ""
|
|
4236
|
+
), a, s, h, u, l, d, m, b, f, g, S, _ = (
|
|
4206
4237
|
/*consent*/
|
|
4207
|
-
e[
|
|
4238
|
+
e[64].mustAccept === !0 && Nt()
|
|
4208
4239
|
), v = (
|
|
4209
4240
|
/*displayconsentdescription*/
|
|
4210
|
-
e[
|
|
4241
|
+
e[4] === "true" && At(e)
|
|
4211
4242
|
);
|
|
4212
|
-
function
|
|
4243
|
+
function C(...P) {
|
|
4213
4244
|
return (
|
|
4214
4245
|
/*input_handler*/
|
|
4215
4246
|
e[29](
|
|
4216
4247
|
/*consent*/
|
|
4217
|
-
e[
|
|
4248
|
+
e[64],
|
|
4218
4249
|
...P
|
|
4219
4250
|
)
|
|
4220
4251
|
);
|
|
4221
4252
|
}
|
|
4222
4253
|
return {
|
|
4223
4254
|
c() {
|
|
4224
|
-
t = A("div"), r = A("div"), n = A("h4"), i = new
|
|
4225
|
-
e[
|
|
4255
|
+
t = A("div"), r = A("div"), n = A("h4"), i = new Lt(!1), a = q(), _ && _.c(), s = q(), v && v.c(), h = q(), u = A("label"), l = A("input"), b = q(), f = A("span"), i.a = a, E(n, "class", "ConsentName svelte-ltb9q9"), E(r, "class", "ConsentContent"), E(l, "type", "checkbox"), l.disabled = d = /*consent*/
|
|
4256
|
+
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4226
4257
|
e[12][
|
|
4227
4258
|
/*consent*/
|
|
4228
|
-
e[
|
|
4229
|
-
] === !0,
|
|
4259
|
+
e[64].tagCode
|
|
4260
|
+
] === !0, l.checked = m = /*consentsState*/
|
|
4230
4261
|
e[13][
|
|
4231
4262
|
/*consent*/
|
|
4232
|
-
e[
|
|
4233
|
-
], E(
|
|
4263
|
+
e[64].tagCode
|
|
4264
|
+
], E(l, "class", "svelte-ltb9q9"), E(f, "class", "Slider Round svelte-ltb9q9"), E(u, "class", "ToggleSwitch svelte-ltb9q9"), E(t, "class", "ConsentItem svelte-ltb9q9");
|
|
4234
4265
|
},
|
|
4235
4266
|
m(P, k) {
|
|
4236
|
-
|
|
4267
|
+
j(P, t, k), 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, b), x(u, f), g || (S = de(l, "input", C), g = !0);
|
|
4237
4268
|
},
|
|
4238
4269
|
p(P, k) {
|
|
4239
4270
|
e = P, k[0] & /*$_, playerConsents, consentsCategories*/
|
|
4240
4271
|
66304 && o !== (o = /*$_*/
|
|
4241
4272
|
(e[16](`${/*consent*/
|
|
4242
|
-
e[
|
|
4243
|
-
e[
|
|
4244
|
-
e[
|
|
4245
|
-
e[
|
|
4273
|
+
e[64].tagCode}__name`) || /*consent*/
|
|
4274
|
+
e[64].friendlyName) + "") && i.p(o), /*consent*/
|
|
4275
|
+
e[64].mustAccept === !0 ? _ || (_ = Nt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
|
|
4276
|
+
e[4] === "true" ? v ? v.p(e, k) : (v = At(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), k[0] & /*playerConsents, consentsCategories, initialConsentsState*/
|
|
4246
4277
|
4864 && d !== (d = /*consent*/
|
|
4247
|
-
e[
|
|
4278
|
+
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4248
4279
|
e[12][
|
|
4249
4280
|
/*consent*/
|
|
4250
|
-
e[
|
|
4251
|
-
] === !0) && (
|
|
4281
|
+
e[64].tagCode
|
|
4282
|
+
] === !0) && (l.disabled = d), k[0] & /*consentsState, playerConsents, consentsCategories*/
|
|
4252
4283
|
8960 && m !== (m = /*consentsState*/
|
|
4253
4284
|
e[13][
|
|
4254
4285
|
/*consent*/
|
|
4255
|
-
e[
|
|
4256
|
-
]) && (
|
|
4286
|
+
e[64].tagCode
|
|
4287
|
+
]) && (l.checked = m);
|
|
4257
4288
|
},
|
|
4258
4289
|
d(P) {
|
|
4259
|
-
P &&
|
|
4290
|
+
P && L(t), _ && _.d(), v && v.d(), g = !1, S();
|
|
4260
4291
|
}
|
|
4261
4292
|
};
|
|
4262
4293
|
}
|
|
@@ -4264,14 +4295,14 @@ function Pt(e) {
|
|
|
4264
4295
|
let t, r, n, i = (
|
|
4265
4296
|
/*$_*/
|
|
4266
4297
|
(e[16](`${/*category*/
|
|
4267
|
-
e[
|
|
4268
|
-
e[
|
|
4269
|
-
), o, a, s, h, u,
|
|
4270
|
-
function
|
|
4298
|
+
e[61].categoryTagCode}__category`) || /*category*/
|
|
4299
|
+
e[61].friendlyName) + ""
|
|
4300
|
+
), o, a, s, h, u, l, d, m, b;
|
|
4301
|
+
function f() {
|
|
4271
4302
|
e[26].call(
|
|
4272
4303
|
s,
|
|
4273
4304
|
/*category*/
|
|
4274
|
-
e[
|
|
4305
|
+
e[61]
|
|
4275
4306
|
);
|
|
4276
4307
|
}
|
|
4277
4308
|
function g() {
|
|
@@ -4279,74 +4310,74 @@ function Pt(e) {
|
|
|
4279
4310
|
/*change_handler*/
|
|
4280
4311
|
e[27](
|
|
4281
4312
|
/*category*/
|
|
4282
|
-
e[
|
|
4313
|
+
e[61]
|
|
4283
4314
|
)
|
|
4284
4315
|
);
|
|
4285
4316
|
}
|
|
4286
|
-
function
|
|
4317
|
+
function S(...C) {
|
|
4287
4318
|
return (
|
|
4288
4319
|
/*func*/
|
|
4289
4320
|
e[28](
|
|
4290
4321
|
/*category*/
|
|
4291
|
-
e[
|
|
4292
|
-
...
|
|
4322
|
+
e[61],
|
|
4323
|
+
...C
|
|
4293
4324
|
)
|
|
4294
4325
|
);
|
|
4295
4326
|
}
|
|
4296
|
-
let
|
|
4327
|
+
let _ = $(
|
|
4297
4328
|
/*playerConsents*/
|
|
4298
|
-
e[9].filter(
|
|
4329
|
+
e[9].filter(S)
|
|
4299
4330
|
), v = [];
|
|
4300
|
-
for (let
|
|
4301
|
-
v[
|
|
4331
|
+
for (let C = 0; C < _.length; C += 1)
|
|
4332
|
+
v[C] = Ht(St(e, _, C));
|
|
4302
4333
|
return {
|
|
4303
4334
|
c() {
|
|
4304
|
-
t = A("div"), r = A("div"), n = A("h3"), o = q(), a = A("label"), s = A("input"), h = q(), u = A("span"),
|
|
4305
|
-
for (let
|
|
4306
|
-
v[
|
|
4335
|
+
t = A("div"), r = A("div"), n = A("h3"), o = q(), a = A("label"), s = A("input"), h = q(), u = A("span"), l = q(), d = A("div");
|
|
4336
|
+
for (let C = 0; C < v.length; C += 1)
|
|
4337
|
+
v[C].c();
|
|
4307
4338
|
E(s, "type", "checkbox"), E(s, "class", "svelte-ltb9q9"), E(u, "class", "Slider Round svelte-ltb9q9"), E(a, "class", "ToggleSwitch Big svelte-ltb9q9"), E(r, "class", "AccordionHeader svelte-ltb9q9"), E(d, "class", "AccordionContent svelte-ltb9q9"), E(t, "class", "AccordionItem svelte-ltb9q9");
|
|
4308
4339
|
},
|
|
4309
|
-
m(
|
|
4310
|
-
|
|
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*/
|
|
4311
4342
|
e[11][
|
|
4312
4343
|
/*category*/
|
|
4313
|
-
e[
|
|
4314
|
-
], x(a, h), x(a, u), x(t,
|
|
4344
|
+
e[61].categoryTagCode
|
|
4345
|
+
], x(a, h), x(a, u), x(t, l), x(t, d);
|
|
4315
4346
|
for (let k = 0; k < v.length; k += 1)
|
|
4316
4347
|
v[k] && v[k].m(d, null);
|
|
4317
4348
|
m || (b = [
|
|
4318
|
-
de(s, "change",
|
|
4349
|
+
de(s, "change", f),
|
|
4319
4350
|
de(s, "change", g)
|
|
4320
4351
|
], m = !0);
|
|
4321
4352
|
},
|
|
4322
|
-
p(
|
|
4323
|
-
if (e =
|
|
4353
|
+
p(C, P) {
|
|
4354
|
+
if (e = C, P[0] & /*$_, consentsCategories*/
|
|
4324
4355
|
65792 && i !== (i = /*$_*/
|
|
4325
4356
|
(e[16](`${/*category*/
|
|
4326
|
-
e[
|
|
4327
|
-
e[
|
|
4357
|
+
e[61].categoryTagCode}__category`) || /*category*/
|
|
4358
|
+
e[61].friendlyName) + "") && (n.innerHTML = i), P[0] & /*categoryToggle, consentsCategories*/
|
|
4328
4359
|
2304 && (s.checked = /*categoryToggle*/
|
|
4329
4360
|
e[11][
|
|
4330
4361
|
/*category*/
|
|
4331
|
-
e[
|
|
4362
|
+
e[61].categoryTagCode
|
|
4332
4363
|
]), P[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
|
|
4333
|
-
|
|
4334
|
-
|
|
4364
|
+
602896) {
|
|
4365
|
+
_ = $(
|
|
4335
4366
|
/*playerConsents*/
|
|
4336
|
-
e[9].filter(
|
|
4367
|
+
e[9].filter(S)
|
|
4337
4368
|
);
|
|
4338
4369
|
let k;
|
|
4339
|
-
for (k = 0; k <
|
|
4340
|
-
const z = St(e,
|
|
4370
|
+
for (k = 0; k < _.length; k += 1) {
|
|
4371
|
+
const z = St(e, _, k);
|
|
4341
4372
|
v[k] ? v[k].p(z, P) : (v[k] = Ht(z), v[k].c(), v[k].m(d, null));
|
|
4342
4373
|
}
|
|
4343
4374
|
for (; k < v.length; k += 1)
|
|
4344
4375
|
v[k].d(1);
|
|
4345
|
-
v.length =
|
|
4376
|
+
v.length = _.length;
|
|
4346
4377
|
}
|
|
4347
4378
|
},
|
|
4348
|
-
d(
|
|
4349
|
-
|
|
4379
|
+
d(C) {
|
|
4380
|
+
C && L(t), Ye(v, C), m = !1, zt(b);
|
|
4350
4381
|
}
|
|
4351
4382
|
};
|
|
4352
4383
|
}
|
|
@@ -4354,13 +4385,13 @@ function Bt(e) {
|
|
|
4354
4385
|
let t, r, n, i, o;
|
|
4355
4386
|
return {
|
|
4356
4387
|
c() {
|
|
4357
|
-
t = A("div"), r = A("circle-exclamation-icon"), n = q(), i = A("strong"), o =
|
|
4388
|
+
t = A("div"), r = A("circle-exclamation-icon"), n = q(), i = A("strong"), o = pe(
|
|
4358
4389
|
/*errorMessage*/
|
|
4359
4390
|
e[6]
|
|
4360
|
-
),
|
|
4391
|
+
), Q(r, "class", "svelte-ltb9q9"), E(i, "class", "ErrorMessage svelte-ltb9q9"), E(t, "class", "ConsentErrorContainer svelte-ltb9q9");
|
|
4361
4392
|
},
|
|
4362
4393
|
m(a, s) {
|
|
4363
|
-
|
|
4394
|
+
j(a, t, s), x(t, r), x(t, n), x(t, i), x(i, o);
|
|
4364
4395
|
},
|
|
4365
4396
|
p(a, s) {
|
|
4366
4397
|
s[0] & /*errorMessage*/
|
|
@@ -4371,170 +4402,144 @@ function Bt(e) {
|
|
|
4371
4402
|
);
|
|
4372
4403
|
},
|
|
4373
4404
|
d(a) {
|
|
4374
|
-
a &&
|
|
4405
|
+
a && L(t);
|
|
4375
4406
|
}
|
|
4376
4407
|
};
|
|
4377
4408
|
}
|
|
4378
|
-
function
|
|
4379
|
-
let t, r
|
|
4380
|
-
function
|
|
4409
|
+
function ji(e) {
|
|
4410
|
+
let t, r;
|
|
4411
|
+
function n(a, s) {
|
|
4381
4412
|
if (
|
|
4382
4413
|
/*isLoading*/
|
|
4383
|
-
|
|
4384
|
-
)
|
|
4414
|
+
a[10]
|
|
4415
|
+
)
|
|
4416
|
+
return Ii;
|
|
4385
4417
|
if (
|
|
4386
4418
|
/*fatalError*/
|
|
4387
|
-
|
|
4388
|
-
)
|
|
4419
|
+
a[7]
|
|
4420
|
+
)
|
|
4421
|
+
return Oi;
|
|
4389
4422
|
if (
|
|
4390
4423
|
/*session*/
|
|
4391
|
-
|
|
4392
|
-
)
|
|
4424
|
+
a[0]
|
|
4425
|
+
)
|
|
4426
|
+
return zi;
|
|
4393
4427
|
if (!/*session*/
|
|
4394
|
-
|
|
4428
|
+
a[0])
|
|
4429
|
+
return Bi;
|
|
4395
4430
|
}
|
|
4396
|
-
let
|
|
4431
|
+
let i = n(e), o = i && i(e);
|
|
4397
4432
|
return {
|
|
4398
4433
|
c() {
|
|
4399
|
-
t = A("div"), r = A("div"),
|
|
4400
|
-
/*displayNone*/
|
|
4401
|
-
e[5] ? "DisplayNone" : ""
|
|
4402
|
-
) + " svelte-ltb9q9");
|
|
4434
|
+
t = A("div"), r = A("div"), o && o.c(), E(r, "class", "ConsentsContainer svelte-ltb9q9"), E(t, "class", jr("") + " svelte-ltb9q9");
|
|
4403
4435
|
},
|
|
4404
|
-
m(
|
|
4405
|
-
|
|
4436
|
+
m(a, s) {
|
|
4437
|
+
j(a, t, s), x(t, r), o && o.m(r, null), e[32](r);
|
|
4406
4438
|
},
|
|
4407
|
-
p(
|
|
4408
|
-
|
|
4409
|
-
32 && n !== (n = ot(
|
|
4410
|
-
/*displayNone*/
|
|
4411
|
-
s[5] ? "DisplayNone" : ""
|
|
4412
|
-
) + " svelte-ltb9q9") && E(t, "class", n);
|
|
4439
|
+
p(a, s) {
|
|
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)));
|
|
4413
4441
|
},
|
|
4414
|
-
i:
|
|
4415
|
-
o:
|
|
4416
|
-
d(
|
|
4417
|
-
|
|
4442
|
+
i: X,
|
|
4443
|
+
o: X,
|
|
4444
|
+
d(a) {
|
|
4445
|
+
a && L(t), o && o.d(), e[32](null);
|
|
4418
4446
|
}
|
|
4419
4447
|
};
|
|
4420
4448
|
}
|
|
4421
|
-
function
|
|
4449
|
+
function Li(e, t, r) {
|
|
4422
4450
|
let n;
|
|
4423
|
-
|
|
4424
|
-
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, {
|
|
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: b = "false" } = t, f, g, S = !1, _ = !1, v = "", C = "", P = "", k = "", z = [], W = [], O = [], se = !0, be = !0, G = {}, ve = {}, Z = {}, U = {}, le, ye, R = {
|
|
4425
4453
|
none: { key: "0", value: "None" },
|
|
4426
4454
|
accepted: { key: "1", value: "Accepted" },
|
|
4427
4455
|
expired: { key: "2", value: "Expired" },
|
|
4428
4456
|
denied: { key: "3", value: "Denied" },
|
|
4429
4457
|
suspended: { key: "4", value: "Suspended" }
|
|
4430
4458
|
}, Ee = !1;
|
|
4431
|
-
Object.keys(Et).forEach((
|
|
4432
|
-
yt(
|
|
4459
|
+
Object.keys(Et).forEach((c) => {
|
|
4460
|
+
yt(c, Et[c]);
|
|
4433
4461
|
});
|
|
4434
4462
|
const cr = () => {
|
|
4435
|
-
|
|
4463
|
+
Ni(l);
|
|
4436
4464
|
}, ur = () => {
|
|
4437
|
-
let
|
|
4438
|
-
fetch(
|
|
4439
|
-
Object.keys(p).forEach((
|
|
4440
|
-
yt(
|
|
4465
|
+
let c = new URL(m);
|
|
4466
|
+
fetch(c.href).then((p) => p.json()).then((p) => {
|
|
4467
|
+
Object.keys(p).forEach((T) => {
|
|
4468
|
+
yt(T, p[T]);
|
|
4441
4469
|
});
|
|
4442
4470
|
}).catch((p) => {
|
|
4443
4471
|
console.log(p);
|
|
4444
4472
|
});
|
|
4445
4473
|
}, hr = () => {
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4474
|
+
i && (v = i, _ = !0), o && (C = o);
|
|
4475
|
+
}, ke = (c, p = !1) => {
|
|
4476
|
+
p ? r(7, k = c) : (_r(), r(6, P = c));
|
|
4477
|
+
}, ce = async (c, p, T, y = !1) => {
|
|
4449
4478
|
try {
|
|
4450
|
-
|
|
4451
|
-
let l = new URL(h), p = document.createElement("style");
|
|
4452
|
-
fetch(l.href).then((S) => S.text()).then((S) => {
|
|
4453
|
-
p.innerHTML = S, setTimeout(
|
|
4454
|
-
() => {
|
|
4455
|
-
_.appendChild(p);
|
|
4456
|
-
},
|
|
4457
|
-
1
|
|
4458
|
-
), setTimeout(
|
|
4459
|
-
() => {
|
|
4460
|
-
r(5, b = !1);
|
|
4461
|
-
},
|
|
4462
|
-
500
|
|
4463
|
-
);
|
|
4464
|
-
});
|
|
4465
|
-
} catch (l) {
|
|
4466
|
-
const p = l instanceof TypeError ? n("invalidUrl") : l.message;
|
|
4467
|
-
se(p);
|
|
4468
|
-
}
|
|
4469
|
-
}, mr = () => {
|
|
4470
|
-
i && (f = i, C = !0), o && (v = o);
|
|
4471
|
-
}, se = (l, p = !1) => {
|
|
4472
|
-
p ? r(7, P = l) : (br(), r(6, T = l));
|
|
4473
|
-
}, le = async (l, p, S, y = !1) => {
|
|
4474
|
-
try {
|
|
4475
|
-
const M = await fetch(l, S);
|
|
4479
|
+
const M = await fetch(c, T);
|
|
4476
4480
|
if (!M.ok)
|
|
4477
4481
|
throw new Error(n(p));
|
|
4478
4482
|
const I = await M.json();
|
|
4479
|
-
return
|
|
4483
|
+
return _ ? I : I.filter((F) => F.showOnRegister === !0);
|
|
4480
4484
|
} catch (M) {
|
|
4481
|
-
throw
|
|
4485
|
+
throw ke(
|
|
4482
4486
|
M instanceof TypeError ? n(p) : M.message,
|
|
4483
4487
|
y
|
|
4484
4488
|
), M;
|
|
4485
4489
|
}
|
|
4486
|
-
},
|
|
4490
|
+
}, dr = async () => {
|
|
4487
4491
|
try {
|
|
4488
|
-
let
|
|
4489
|
-
if (
|
|
4490
|
-
let y = O.find((M) => M.tagCode ===
|
|
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, y) => T.categoryTagCode.localeCompare(y.categoryTagCode))), r(11, G = pr(z)), ve = { ...G }, r(9, O = [...p]), W.forEach((T) => {
|
|
4494
|
+
let y = O.find((M) => M.tagCode === T.tagCode);
|
|
4491
4495
|
y || (y = {
|
|
4492
|
-
...
|
|
4496
|
+
...T,
|
|
4493
4497
|
status: R.denied.value
|
|
4494
|
-
}, O.push(y)), y.description =
|
|
4495
|
-
}),
|
|
4496
|
-
if (r(9, O = O.filter((
|
|
4497
|
-
|
|
4498
|
+
}, O.push(y)), y.description = T.description, y.orderNumber = T.orderNumber;
|
|
4499
|
+
}), b === "true") {
|
|
4500
|
+
if (r(9, O = O.filter((T) => T.status === R.expired.value)), O.length !== 0)
|
|
4501
|
+
return;
|
|
4502
|
+
ke(n("wrongModalConfig"), !0);
|
|
4498
4503
|
}
|
|
4499
|
-
|
|
4500
|
-
} catch (
|
|
4501
|
-
throw r(10,
|
|
4502
|
-
|
|
4504
|
+
fr();
|
|
4505
|
+
} catch (c) {
|
|
4506
|
+
throw r(10, se = !1), ke(
|
|
4507
|
+
c instanceof TypeError ? n("invalidUrl") : c.message,
|
|
4503
4508
|
!0
|
|
4504
|
-
),
|
|
4509
|
+
), c;
|
|
4505
4510
|
}
|
|
4506
|
-
},
|
|
4507
|
-
const
|
|
4508
|
-
if (
|
|
4509
|
-
return await
|
|
4510
|
-
const p = new URL(`${a}/api/v1/gm/user-consents/${
|
|
4511
|
+
}, rt = async () => {
|
|
4512
|
+
const c = new URL(`${a}/api/v1/gm/consents`);
|
|
4513
|
+
if (c.searchParams.append("Status", "Active"), !_)
|
|
4514
|
+
return await ce(c.href, "fetchConsentsError", { method: "GET" }, !0);
|
|
4515
|
+
const p = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
4511
4516
|
return await Promise.all([
|
|
4512
|
-
|
|
4513
|
-
|
|
4517
|
+
ce(c.href, "fetchConsentsError", { method: "GET" }, !0),
|
|
4518
|
+
ce(p.href, "fetchPlayerConsentsError", {
|
|
4514
4519
|
method: "GET",
|
|
4515
4520
|
headers: {
|
|
4516
|
-
"X-SessionId":
|
|
4521
|
+
"X-SessionId": v,
|
|
4517
4522
|
"Content-Type": "application/json"
|
|
4518
4523
|
}
|
|
4519
4524
|
})
|
|
4520
4525
|
]);
|
|
4521
|
-
},
|
|
4526
|
+
}, mr = () => {
|
|
4522
4527
|
Ee = !1;
|
|
4523
|
-
const
|
|
4528
|
+
const c = new URL(`${a}/api/v2/gm/legislation/consents`), p = {
|
|
4524
4529
|
"Content-Type": "application/json",
|
|
4525
4530
|
Accept: "application/json"
|
|
4526
|
-
},
|
|
4527
|
-
fetch(
|
|
4531
|
+
}, T = { method: "GET", headers: p };
|
|
4532
|
+
fetch(c.href, T).then((y) => y.ok ? y.json() : (Ee = !0, y.json().then((M) => (console.error(M), Ce(M))))).then((y) => {
|
|
4528
4533
|
if (!Ee) {
|
|
4529
|
-
if (
|
|
4534
|
+
if (W = y, localStorage.getItem("playerConsents")) {
|
|
4530
4535
|
try {
|
|
4531
4536
|
r(9, O = JSON.parse(localStorage.getItem("playerConsents")));
|
|
4532
4537
|
} catch (M) {
|
|
4533
|
-
return console.error(M),
|
|
4538
|
+
return console.error(M), Ce(M);
|
|
4534
4539
|
}
|
|
4535
4540
|
return;
|
|
4536
4541
|
}
|
|
4537
|
-
return r(9, O =
|
|
4542
|
+
return r(9, O = W.map((M) => ({
|
|
4538
4543
|
id: M.id,
|
|
4539
4544
|
status: R.denied.key,
|
|
4540
4545
|
friendlyName: M.friendlyName,
|
|
@@ -4543,88 +4548,88 @@ function Ii(e, t, r) {
|
|
|
4543
4548
|
mustAccept: M.mustAccept
|
|
4544
4549
|
}))), localStorage.setItem("playerConsents", JSON.stringify(O)), O;
|
|
4545
4550
|
}
|
|
4546
|
-
}).catch((y) => (console.error(y),
|
|
4547
|
-
r(10,
|
|
4551
|
+
}).catch((y) => (console.error(y), Ce(y))).finally(() => {
|
|
4552
|
+
r(10, se = !1);
|
|
4548
4553
|
});
|
|
4549
|
-
},
|
|
4554
|
+
}, gr = (c) => {
|
|
4550
4555
|
const p = /* @__PURE__ */ new Map();
|
|
4551
|
-
return
|
|
4552
|
-
p.has(
|
|
4556
|
+
return c.forEach((T) => {
|
|
4557
|
+
p.has(T.category.categoryTagCode) || p.set(T.category.categoryTagCode, T.category);
|
|
4553
4558
|
}), Array.from(p.values());
|
|
4554
|
-
},
|
|
4555
|
-
const p = localStorage.getItem("categoryToggle" +
|
|
4559
|
+
}, pr = (c) => {
|
|
4560
|
+
const p = localStorage.getItem("categoryToggle" + C);
|
|
4556
4561
|
if (p === null) {
|
|
4557
|
-
const
|
|
4562
|
+
const T = c.reduce(
|
|
4558
4563
|
(y, M) => (y[M.categoryTagCode] = !1, y),
|
|
4559
4564
|
{}
|
|
4560
4565
|
);
|
|
4561
|
-
return localStorage.setItem("categoryToggle" +
|
|
4566
|
+
return localStorage.setItem("categoryToggle" + C, JSON.stringify(T)), T;
|
|
4562
4567
|
} else
|
|
4563
4568
|
return JSON.parse(p);
|
|
4564
|
-
},
|
|
4565
|
-
O.forEach((
|
|
4566
|
-
r(12,
|
|
4567
|
-
}), r(13, U = { ...
|
|
4568
|
-
},
|
|
4569
|
-
r(13, U = { ...
|
|
4570
|
-
},
|
|
4571
|
-
if (!
|
|
4569
|
+
}, fr = () => {
|
|
4570
|
+
O.forEach((c) => {
|
|
4571
|
+
r(12, Z[c.tagCode] = c.status === R.accepted.value, Z);
|
|
4572
|
+
}), r(13, U = { ...Z });
|
|
4573
|
+
}, _r = () => {
|
|
4574
|
+
r(13, U = { ...Z }), r(11, G = { ...ve });
|
|
4575
|
+
}, br = async () => {
|
|
4576
|
+
if (!be)
|
|
4572
4577
|
return;
|
|
4573
|
-
|
|
4574
|
-
const
|
|
4578
|
+
be = !1;
|
|
4579
|
+
const c = [], p = [];
|
|
4575
4580
|
if (Object.keys(U).forEach((y) => {
|
|
4576
4581
|
const M = O.find((I) => I.tagCode === y);
|
|
4577
|
-
U[y] !==
|
|
4582
|
+
U[y] !== Z[y] && (M ? c.push({
|
|
4578
4583
|
tagCode: y,
|
|
4579
4584
|
status: U[y] ? R.accepted.value : R.denied.value
|
|
4580
4585
|
}) : p.push({
|
|
4581
4586
|
tagCode: y,
|
|
4582
4587
|
status: U[y] ? R.accepted.value : R.denied.value
|
|
4583
4588
|
}));
|
|
4584
|
-
}), !
|
|
4585
|
-
localStorage.setItem("categoryToggle" +
|
|
4589
|
+
}), !_) {
|
|
4590
|
+
localStorage.setItem("categoryToggle" + C, JSON.stringify(G)), ve = { ...G }, window.postMessage(
|
|
4586
4591
|
{
|
|
4587
4592
|
type: "NewPlayerConsentData",
|
|
4588
4593
|
data: JSON.stringify(p)
|
|
4589
4594
|
},
|
|
4590
4595
|
window.location.href
|
|
4591
|
-
),
|
|
4596
|
+
), be = !0;
|
|
4592
4597
|
return;
|
|
4593
4598
|
}
|
|
4594
|
-
const
|
|
4599
|
+
const T = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
4595
4600
|
try {
|
|
4596
4601
|
const y = await Promise.allSettled([
|
|
4597
|
-
p.length > 0 &&
|
|
4602
|
+
p.length > 0 && ce(T.href, "updateConsentsError", {
|
|
4598
4603
|
method: "POST",
|
|
4599
4604
|
headers: {
|
|
4600
|
-
"X-SessionId":
|
|
4605
|
+
"X-SessionId": v,
|
|
4601
4606
|
"Content-Type": "application/json"
|
|
4602
4607
|
},
|
|
4603
4608
|
body: JSON.stringify({ userConsents: p })
|
|
4604
4609
|
}),
|
|
4605
|
-
|
|
4610
|
+
c.length > 0 && ce(T.href, "updateConsentsError", {
|
|
4606
4611
|
method: "PATCH",
|
|
4607
4612
|
headers: {
|
|
4608
|
-
"X-SessionId":
|
|
4613
|
+
"X-SessionId": v,
|
|
4609
4614
|
"Content-Type": "application/json"
|
|
4610
4615
|
},
|
|
4611
|
-
body: JSON.stringify({ userConsents:
|
|
4616
|
+
body: JSON.stringify({ userConsents: c })
|
|
4612
4617
|
})
|
|
4613
4618
|
]);
|
|
4614
4619
|
y.forEach((M, I) => {
|
|
4615
4620
|
if (M.status === "rejected" || M.value.ok === !1) {
|
|
4616
|
-
const F = I < p.length ? p[I] :
|
|
4617
|
-
r(13, U[F.tagCode] =
|
|
4621
|
+
const F = I < p.length ? p[I] : c[I - p.length];
|
|
4622
|
+
r(13, U[F.tagCode] = Z[F.tagCode], U);
|
|
4618
4623
|
}
|
|
4619
|
-
}), y.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" +
|
|
4624
|
+
}), y.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify(G)), ve = { ...G }, window.postMessage(
|
|
4620
4625
|
{
|
|
4621
4626
|
type: "PlayerConsentUpdated",
|
|
4622
4627
|
success: !0
|
|
4623
4628
|
},
|
|
4624
4629
|
window.location.href
|
|
4625
|
-
), r(12,
|
|
4630
|
+
), r(12, Z = { ...U }));
|
|
4626
4631
|
} catch (y) {
|
|
4627
|
-
|
|
4632
|
+
ke(y instanceof TypeError ? n("saveChangesError") : y.message), window.postMessage(
|
|
4628
4633
|
{
|
|
4629
4634
|
type: "PlayerConsentUpdated",
|
|
4630
4635
|
success: !1
|
|
@@ -4632,158 +4637,162 @@ function Ii(e, t, r) {
|
|
|
4632
4637
|
window.location.href
|
|
4633
4638
|
);
|
|
4634
4639
|
} finally {
|
|
4635
|
-
|
|
4640
|
+
be = !0, r(14, le = !1);
|
|
4636
4641
|
}
|
|
4637
|
-
},
|
|
4638
|
-
const p = new URL(`${a}/api/v2/gm/legislation/consents`),
|
|
4642
|
+
}, vr = (c) => {
|
|
4643
|
+
const p = new URL(`${a}/api/v2/gm/legislation/consents`), T = {
|
|
4639
4644
|
"Content-Type": "application/json",
|
|
4640
4645
|
Accept: "application/json"
|
|
4641
4646
|
}, y = {
|
|
4642
4647
|
playerConsents: O,
|
|
4643
|
-
registrationId:
|
|
4648
|
+
registrationId: c
|
|
4644
4649
|
}, M = {
|
|
4645
4650
|
method: "POST",
|
|
4646
4651
|
body: JSON.stringify(y),
|
|
4647
|
-
headers:
|
|
4652
|
+
headers: T
|
|
4648
4653
|
};
|
|
4649
4654
|
fetch(p.href, M).then((I) => {
|
|
4650
4655
|
I.ok || (Ee = !0);
|
|
4651
|
-
}).catch((I) => (console.error(I),
|
|
4652
|
-
r(10,
|
|
4656
|
+
}).catch((I) => (console.error(I), Ce(I))).finally(() => {
|
|
4657
|
+
r(10, se = !1);
|
|
4653
4658
|
});
|
|
4654
|
-
},
|
|
4655
|
-
O.filter((p) => p.category.categoryTagCode ===
|
|
4656
|
-
p.status = p.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[p.tagCode] = G[
|
|
4657
|
-
}), r(14,
|
|
4658
|
-
},
|
|
4659
|
-
const y = O.find((F) => F.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] = G[c] || !1, U);
|
|
4662
|
+
}), r(14, le = it());
|
|
4663
|
+
}, ze = (c, p, T) => {
|
|
4664
|
+
const y = O.find((F) => F.id === T), M = p ? "value" : "key";
|
|
4660
4665
|
let I;
|
|
4661
4666
|
if (!p && y.mustAccept) {
|
|
4662
4667
|
const F = Array.from(ye.children);
|
|
4663
|
-
for (const
|
|
4664
|
-
if (I = Array.from(
|
|
4668
|
+
for (const ue of F)
|
|
4669
|
+
if (I = Array.from(ue.children).find((Ar) => Ar.getAttribute("id") === `checkBoxError__${y.tagCode}`), I)
|
|
4670
|
+
break;
|
|
4665
4671
|
}
|
|
4666
4672
|
if (y.status === R.accepted[M] ? (y.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (y.status = R.accepted[M], I && (I.innerHTML = "")), p) {
|
|
4667
4673
|
r(13, U[y.tagCode] = !U[y.tagCode], U);
|
|
4668
|
-
const F = O.filter((
|
|
4674
|
+
const F = O.filter((ue) => ue.category.categoryTagCode === p.categoryTagCode).every((ue) => ue.status !== R.denied.value);
|
|
4669
4675
|
r(11, G[p.categoryTagCode] = F, G);
|
|
4670
4676
|
}
|
|
4671
|
-
|
|
4672
|
-
},
|
|
4673
|
-
let
|
|
4677
|
+
yr();
|
|
4678
|
+
}, yr = ((c, p) => {
|
|
4679
|
+
let T;
|
|
4674
4680
|
return function(...y) {
|
|
4675
4681
|
const M = this;
|
|
4676
|
-
clearTimeout(
|
|
4682
|
+
clearTimeout(T), T = setTimeout(
|
|
4677
4683
|
() => {
|
|
4678
|
-
|
|
4684
|
+
c.apply(M, y);
|
|
4679
4685
|
},
|
|
4680
4686
|
p
|
|
4681
4687
|
);
|
|
4682
4688
|
};
|
|
4683
|
-
})(() =>
|
|
4684
|
-
r(14,
|
|
4685
|
-
},
|
|
4689
|
+
})(() => Er(), 500), Er = () => {
|
|
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) => {
|
|
4686
4692
|
window.postMessage(
|
|
4687
4693
|
{
|
|
4688
4694
|
type: "WidgetNotification",
|
|
4689
|
-
data: { type: "error", message:
|
|
4695
|
+
data: { type: "error", message: c }
|
|
4690
4696
|
},
|
|
4691
4697
|
window.location.href
|
|
4692
4698
|
);
|
|
4693
|
-
},
|
|
4694
|
-
|
|
4699
|
+
}, kr = (c) => {
|
|
4700
|
+
c.data && c.data.type !== "setUpPlayerConsents" || vr(c.data.registerid);
|
|
4695
4701
|
};
|
|
4696
|
-
|
|
4702
|
+
Or(() => {
|
|
4697
4703
|
setTimeout(
|
|
4698
4704
|
() => {
|
|
4699
|
-
r(25,
|
|
4705
|
+
r(25, S = !0);
|
|
4700
4706
|
},
|
|
4701
4707
|
50
|
|
4702
4708
|
);
|
|
4703
|
-
const
|
|
4704
|
-
return window.addEventListener("message",
|
|
4705
|
-
window.removeEventListener("message",
|
|
4709
|
+
const c = (p) => kr(p);
|
|
4710
|
+
return window.addEventListener("message", c), () => {
|
|
4711
|
+
window.emMessageBus && g && g.unsubscribe(), window.removeEventListener("message", c);
|
|
4706
4712
|
};
|
|
4707
4713
|
});
|
|
4708
|
-
function
|
|
4709
|
-
G[
|
|
4714
|
+
function Cr(c) {
|
|
4715
|
+
G[c.categoryTagCode] = this.checked, r(11, G);
|
|
4710
4716
|
}
|
|
4711
|
-
const
|
|
4712
|
-
function
|
|
4713
|
-
at[
|
|
4714
|
-
ye =
|
|
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"](() => {
|
|
4720
|
+
ye = c, r(15, ye);
|
|
4715
4721
|
});
|
|
4716
4722
|
}
|
|
4717
|
-
function
|
|
4718
|
-
at[
|
|
4719
|
-
|
|
4723
|
+
function Nr(c) {
|
|
4724
|
+
at[c ? "unshift" : "push"](() => {
|
|
4725
|
+
f = c, r(5, f);
|
|
4720
4726
|
});
|
|
4721
4727
|
}
|
|
4722
|
-
return e.$$set = (
|
|
4723
|
-
"session" in
|
|
4728
|
+
return e.$$set = (c) => {
|
|
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, b = c.modalconsents);
|
|
4724
4730
|
}, e.$$.update = () => {
|
|
4725
4731
|
e.$$.dirty[0] & /*isMounted, session*/
|
|
4726
|
-
33554433 &&
|
|
4727
|
-
1 && (i ||
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4732
|
+
33554433 && S && i && (hr(), dr()), e.$$.dirty[0] & /*session*/
|
|
4733
|
+
1 && (i || mr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4734
|
+
34 && s && f && Lr(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4735
|
+
36 && h && f && Ir(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4736
|
+
40 && f && Rr(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
|
|
4737
|
+
4194304 && l && cr(), e.$$.dirty[0] & /*translationurl*/
|
|
4738
|
+
8388608 && m && ur();
|
|
4731
4739
|
}, [
|
|
4732
4740
|
i,
|
|
4733
4741
|
s,
|
|
4734
4742
|
h,
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
T,
|
|
4743
|
+
u,
|
|
4744
|
+
d,
|
|
4745
|
+
f,
|
|
4739
4746
|
P,
|
|
4740
4747
|
k,
|
|
4748
|
+
z,
|
|
4741
4749
|
O,
|
|
4742
|
-
|
|
4750
|
+
se,
|
|
4743
4751
|
G,
|
|
4744
|
-
|
|
4752
|
+
Z,
|
|
4745
4753
|
U,
|
|
4746
|
-
|
|
4754
|
+
le,
|
|
4747
4755
|
ye,
|
|
4748
4756
|
n,
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4757
|
+
br,
|
|
4758
|
+
nt,
|
|
4759
|
+
ze,
|
|
4752
4760
|
o,
|
|
4753
4761
|
a,
|
|
4754
|
-
|
|
4755
|
-
d,
|
|
4762
|
+
l,
|
|
4756
4763
|
m,
|
|
4757
|
-
|
|
4764
|
+
b,
|
|
4765
|
+
S,
|
|
4766
|
+
Cr,
|
|
4767
|
+
Sr,
|
|
4758
4768
|
xr,
|
|
4759
|
-
Tr,
|
|
4760
4769
|
Mr,
|
|
4770
|
+
Tr,
|
|
4761
4771
|
wr,
|
|
4762
|
-
Nr
|
|
4763
|
-
Ar,
|
|
4764
|
-
Hr
|
|
4772
|
+
Nr
|
|
4765
4773
|
];
|
|
4766
4774
|
}
|
|
4767
|
-
class
|
|
4775
|
+
class Ri extends It {
|
|
4768
4776
|
constructor(t) {
|
|
4769
|
-
super(),
|
|
4777
|
+
super(), jt(
|
|
4770
4778
|
this,
|
|
4771
4779
|
t,
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4780
|
+
Li,
|
|
4781
|
+
ji,
|
|
4782
|
+
Qe,
|
|
4775
4783
|
{
|
|
4776
4784
|
session: 0,
|
|
4777
4785
|
userid: 20,
|
|
4778
4786
|
endpoint: 21,
|
|
4779
4787
|
clientstyling: 1,
|
|
4780
4788
|
clientstylingurl: 2,
|
|
4789
|
+
mbsource: 3,
|
|
4781
4790
|
lang: 22,
|
|
4782
|
-
displayconsentdescription:
|
|
4791
|
+
displayconsentdescription: 4,
|
|
4783
4792
|
translationurl: 23,
|
|
4784
4793
|
modalconsents: 24
|
|
4785
4794
|
},
|
|
4786
|
-
|
|
4795
|
+
Pi,
|
|
4787
4796
|
[-1, -1, -1]
|
|
4788
4797
|
);
|
|
4789
4798
|
}
|
|
@@ -4791,58 +4800,64 @@ class Li extends It {
|
|
|
4791
4800
|
return this.$$.ctx[0];
|
|
4792
4801
|
}
|
|
4793
4802
|
set session(t) {
|
|
4794
|
-
this.$$set({ session: t }),
|
|
4803
|
+
this.$$set({ session: t }), V();
|
|
4795
4804
|
}
|
|
4796
4805
|
get userid() {
|
|
4797
4806
|
return this.$$.ctx[20];
|
|
4798
4807
|
}
|
|
4799
4808
|
set userid(t) {
|
|
4800
|
-
this.$$set({ userid: t }),
|
|
4809
|
+
this.$$set({ userid: t }), V();
|
|
4801
4810
|
}
|
|
4802
4811
|
get endpoint() {
|
|
4803
4812
|
return this.$$.ctx[21];
|
|
4804
4813
|
}
|
|
4805
4814
|
set endpoint(t) {
|
|
4806
|
-
this.$$set({ endpoint: t }),
|
|
4815
|
+
this.$$set({ endpoint: t }), V();
|
|
4807
4816
|
}
|
|
4808
4817
|
get clientstyling() {
|
|
4809
4818
|
return this.$$.ctx[1];
|
|
4810
4819
|
}
|
|
4811
4820
|
set clientstyling(t) {
|
|
4812
|
-
this.$$set({ clientstyling: t }),
|
|
4821
|
+
this.$$set({ clientstyling: t }), V();
|
|
4813
4822
|
}
|
|
4814
4823
|
get clientstylingurl() {
|
|
4815
4824
|
return this.$$.ctx[2];
|
|
4816
4825
|
}
|
|
4817
4826
|
set clientstylingurl(t) {
|
|
4818
|
-
this.$$set({ clientstylingurl: t }),
|
|
4827
|
+
this.$$set({ clientstylingurl: t }), V();
|
|
4828
|
+
}
|
|
4829
|
+
get mbsource() {
|
|
4830
|
+
return this.$$.ctx[3];
|
|
4831
|
+
}
|
|
4832
|
+
set mbsource(t) {
|
|
4833
|
+
this.$$set({ mbsource: t }), V();
|
|
4819
4834
|
}
|
|
4820
4835
|
get lang() {
|
|
4821
4836
|
return this.$$.ctx[22];
|
|
4822
4837
|
}
|
|
4823
4838
|
set lang(t) {
|
|
4824
|
-
this.$$set({ lang: t }),
|
|
4839
|
+
this.$$set({ lang: t }), V();
|
|
4825
4840
|
}
|
|
4826
4841
|
get displayconsentdescription() {
|
|
4827
|
-
return this.$$.ctx[
|
|
4842
|
+
return this.$$.ctx[4];
|
|
4828
4843
|
}
|
|
4829
4844
|
set displayconsentdescription(t) {
|
|
4830
|
-
this.$$set({ displayconsentdescription: t }),
|
|
4845
|
+
this.$$set({ displayconsentdescription: t }), V();
|
|
4831
4846
|
}
|
|
4832
4847
|
get translationurl() {
|
|
4833
4848
|
return this.$$.ctx[23];
|
|
4834
4849
|
}
|
|
4835
4850
|
set translationurl(t) {
|
|
4836
|
-
this.$$set({ translationurl: t }),
|
|
4851
|
+
this.$$set({ translationurl: t }), V();
|
|
4837
4852
|
}
|
|
4838
4853
|
get modalconsents() {
|
|
4839
4854
|
return this.$$.ctx[24];
|
|
4840
4855
|
}
|
|
4841
4856
|
set modalconsents(t) {
|
|
4842
|
-
this.$$set({ modalconsents: t }),
|
|
4857
|
+
this.$$set({ modalconsents: t }), V();
|
|
4843
4858
|
}
|
|
4844
4859
|
}
|
|
4845
|
-
Ot(
|
|
4860
|
+
Ot(Ri, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
|
|
4846
4861
|
export {
|
|
4847
|
-
|
|
4862
|
+
Ri as P
|
|
4848
4863
|
};
|