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