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