@everymatrix/player-consents 1.87.26 → 1.87.27
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-BEgo5n3Q.cjs +1 -0
- package/components/GeneralAnimationLoading-BWiHzg3I.js +84 -0
- package/components/GeneralAnimationLoading-Hz3DrXmV.js +84 -0
- package/components/PlayerConsents-BOZrluYI.cjs +3 -0
- package/components/{PlayerConsents-D_MmyzKF.js → PlayerConsents-Cng_xhf4.js} +1588 -985
- package/components/{PlayerConsents-C4AKEATH.js → PlayerConsents-DAxvvCg7.js} +1533 -944
- package/es2015/player-consents.cjs +1 -1
- package/es2015/player-consents.js +7 -7
- package/esnext/player-consents.js +1 -1
- package/package.json +1 -1
- package/components/GeneralAnimationLoading-Bl4q3liU.js +0 -669
- package/components/GeneralAnimationLoading-CnE7clu4.js +0 -706
- package/components/GeneralAnimationLoading-CvjpSnS0.cjs +0 -1
- package/components/PlayerConsents-BpocBWYo.cjs +0 -3
|
@@ -1,197 +1,781 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var en = Object.defineProperty, tn = Object.defineProperties;
|
|
2
|
+
var rn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var St = Object.getOwnPropertySymbols;
|
|
4
|
+
var nn = Object.prototype.hasOwnProperty, on = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ze = (e, t, r) => t in e ? en(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, W = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
nn.call(t, r) && Ze(e, r, t[r]);
|
|
8
|
+
if (St)
|
|
9
|
+
for (var r of St(t))
|
|
10
|
+
on.call(t, r) && Ze(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
|
|
12
|
+
}, Je = (e, t) => tn(e, rn(t));
|
|
13
|
+
var U = (e, t, r) => (Ze(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var re = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var o = (c) => {
|
|
15
16
|
try {
|
|
16
|
-
s(r.next(
|
|
17
|
-
} catch (
|
|
18
|
-
i(
|
|
17
|
+
s(r.next(c));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
i(l);
|
|
19
20
|
}
|
|
20
|
-
}, a = (
|
|
21
|
+
}, a = (c) => {
|
|
21
22
|
try {
|
|
22
|
-
s(r.throw(
|
|
23
|
-
} catch (
|
|
24
|
-
i(
|
|
23
|
+
s(r.throw(c));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
i(l);
|
|
25
26
|
}
|
|
26
|
-
}, s = (
|
|
27
|
+
}, s = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(o, a);
|
|
27
28
|
s((r = r.apply(e, t)).next());
|
|
28
29
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function
|
|
30
|
+
function $() {
|
|
31
|
+
}
|
|
32
|
+
function er(e) {
|
|
33
|
+
return e();
|
|
34
|
+
}
|
|
35
|
+
function xt() {
|
|
36
|
+
return /* @__PURE__ */ Object.create(null);
|
|
37
|
+
}
|
|
38
|
+
function me(e) {
|
|
39
|
+
e.forEach(er);
|
|
40
|
+
}
|
|
41
|
+
function gt(e) {
|
|
42
|
+
return typeof e == "function";
|
|
43
|
+
}
|
|
44
|
+
function _t(e, t) {
|
|
45
|
+
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
|
+
}
|
|
47
|
+
function an(e) {
|
|
48
|
+
return Object.keys(e).length === 0;
|
|
49
|
+
}
|
|
50
|
+
function tr(e, ...t) {
|
|
51
|
+
if (e == null) {
|
|
52
|
+
for (const n of t)
|
|
53
|
+
n(void 0);
|
|
54
|
+
return $;
|
|
55
|
+
}
|
|
56
|
+
const r = e.subscribe(...t);
|
|
57
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
|
+
}
|
|
59
|
+
function sn(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(tr(t, r));
|
|
61
|
+
}
|
|
62
|
+
function x(e, t) {
|
|
63
|
+
e.appendChild(t);
|
|
64
|
+
}
|
|
65
|
+
function ln(e, t, r) {
|
|
66
|
+
const n = cn(e);
|
|
67
|
+
if (!n.getElementById(t)) {
|
|
68
|
+
const i = w("style");
|
|
69
|
+
i.id = t, i.textContent = r, un(n, i);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function cn(e) {
|
|
73
|
+
if (!e)
|
|
74
|
+
return document;
|
|
75
|
+
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
76
|
+
return t && /** @type {ShadowRoot} */
|
|
77
|
+
t.host ? (
|
|
78
|
+
/** @type {ShadowRoot} */
|
|
79
|
+
t
|
|
80
|
+
) : e.ownerDocument;
|
|
81
|
+
}
|
|
82
|
+
function un(e, t) {
|
|
83
|
+
return x(
|
|
84
|
+
/** @type {Document} */
|
|
85
|
+
e.head || e,
|
|
86
|
+
t
|
|
87
|
+
), t.sheet;
|
|
88
|
+
}
|
|
89
|
+
function L(e, t, r) {
|
|
90
|
+
e.insertBefore(t, r || null);
|
|
91
|
+
}
|
|
92
|
+
function O(e) {
|
|
93
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
94
|
+
}
|
|
95
|
+
function yt(e, t) {
|
|
96
|
+
for (let r = 0; r < e.length; r += 1)
|
|
97
|
+
e[r] && e[r].d(t);
|
|
98
|
+
}
|
|
99
|
+
function w(e) {
|
|
100
|
+
return document.createElement(e);
|
|
101
|
+
}
|
|
102
|
+
function it(e) {
|
|
103
|
+
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
|
+
}
|
|
105
|
+
function ee(e) {
|
|
106
|
+
return document.createTextNode(e);
|
|
107
|
+
}
|
|
108
|
+
function F() {
|
|
109
|
+
return ee(" ");
|
|
110
|
+
}
|
|
111
|
+
function hn() {
|
|
112
|
+
return ee("");
|
|
113
|
+
}
|
|
114
|
+
function Ce(e, t, r, n) {
|
|
115
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
|
+
}
|
|
117
|
+
function k(e, t, r) {
|
|
118
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
|
+
}
|
|
120
|
+
function K(e, t, r) {
|
|
121
|
+
const n = t.toLowerCase();
|
|
122
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : k(e, t, r);
|
|
123
|
+
}
|
|
124
|
+
function dn(e) {
|
|
125
|
+
return Array.from(e.childNodes);
|
|
126
|
+
}
|
|
127
|
+
function Te(e, t) {
|
|
128
|
+
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
129
|
+
t);
|
|
130
|
+
}
|
|
131
|
+
class rr {
|
|
132
|
+
constructor(t = !1) {
|
|
133
|
+
/**
|
|
134
|
+
* @private
|
|
135
|
+
* @default false
|
|
136
|
+
*/
|
|
137
|
+
U(this, "is_svg", !1);
|
|
138
|
+
/** parent for creating node */
|
|
139
|
+
U(this, "e");
|
|
140
|
+
/** html tag nodes */
|
|
141
|
+
U(this, "n");
|
|
142
|
+
/** target */
|
|
143
|
+
U(this, "t");
|
|
144
|
+
/** anchor */
|
|
145
|
+
U(this, "a");
|
|
146
|
+
this.is_svg = t, this.e = this.n = null;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @param {string} html
|
|
150
|
+
* @returns {void}
|
|
151
|
+
*/
|
|
152
|
+
c(t) {
|
|
153
|
+
this.h(t);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* @param {string} html
|
|
157
|
+
* @param {HTMLElement | SVGElement} target
|
|
158
|
+
* @param {HTMLElement | SVGElement} anchor
|
|
159
|
+
* @returns {void}
|
|
160
|
+
*/
|
|
161
|
+
m(t, r, n = null) {
|
|
162
|
+
this.e || (this.is_svg ? this.e = it(
|
|
163
|
+
/** @type {keyof SVGElementTagNameMap} */
|
|
164
|
+
r.nodeName
|
|
165
|
+
) : this.e = w(
|
|
166
|
+
/** @type {keyof HTMLElementTagNameMap} */
|
|
167
|
+
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
168
|
+
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
169
|
+
/** @type {HTMLTemplateElement} */
|
|
170
|
+
r.content
|
|
171
|
+
), this.c(t)), this.i(n);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* @param {string} html
|
|
175
|
+
* @returns {void}
|
|
176
|
+
*/
|
|
177
|
+
h(t) {
|
|
178
|
+
this.e.innerHTML = t, this.n = Array.from(
|
|
179
|
+
this.e.nodeName === "TEMPLATE" ? this.e.content.childNodes : this.e.childNodes
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* @returns {void} */
|
|
184
|
+
i(t) {
|
|
185
|
+
for (let r = 0; r < this.n.length; r += 1)
|
|
186
|
+
L(this.t, this.n[r], t);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @param {string} html
|
|
190
|
+
* @returns {void}
|
|
191
|
+
*/
|
|
192
|
+
p(t) {
|
|
193
|
+
this.d(), this.h(t), this.i(this.a);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* @returns {void} */
|
|
197
|
+
d() {
|
|
198
|
+
this.n.forEach(O);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function mn(e) {
|
|
202
|
+
const t = {};
|
|
203
|
+
return e.childNodes.forEach(
|
|
204
|
+
/** @param {Element} node */
|
|
205
|
+
(r) => {
|
|
206
|
+
t[r.slot || "default"] = !0;
|
|
207
|
+
}
|
|
208
|
+
), t;
|
|
209
|
+
}
|
|
210
|
+
let Se;
|
|
211
|
+
function Ee(e) {
|
|
212
|
+
Se = e;
|
|
213
|
+
}
|
|
214
|
+
function fn() {
|
|
215
|
+
if (!Se)
|
|
216
|
+
throw new Error("Function called outside component initialization");
|
|
217
|
+
return Se;
|
|
218
|
+
}
|
|
219
|
+
function pn(e) {
|
|
220
|
+
fn().$$.on_mount.push(e);
|
|
221
|
+
}
|
|
222
|
+
const oe = [], Re = [];
|
|
223
|
+
let se = [];
|
|
224
|
+
const wt = [], gn = /* @__PURE__ */ Promise.resolve();
|
|
225
|
+
let ot = !1;
|
|
226
|
+
function _n() {
|
|
227
|
+
ot || (ot = !0, gn.then(X));
|
|
228
|
+
}
|
|
229
|
+
function at(e) {
|
|
230
|
+
se.push(e);
|
|
231
|
+
}
|
|
232
|
+
const Qe = /* @__PURE__ */ new Set();
|
|
233
|
+
let ne = 0;
|
|
234
|
+
function X() {
|
|
235
|
+
if (ne !== 0)
|
|
236
|
+
return;
|
|
237
|
+
const e = Se;
|
|
238
|
+
do {
|
|
239
|
+
try {
|
|
240
|
+
for (; ne < oe.length; ) {
|
|
241
|
+
const t = oe[ne];
|
|
242
|
+
ne++, Ee(t), yn(t.$$);
|
|
243
|
+
}
|
|
244
|
+
} catch (t) {
|
|
245
|
+
throw oe.length = 0, ne = 0, t;
|
|
246
|
+
}
|
|
247
|
+
for (Ee(null), oe.length = 0, ne = 0; Re.length; )
|
|
248
|
+
Re.pop()();
|
|
249
|
+
for (let t = 0; t < se.length; t += 1) {
|
|
250
|
+
const r = se[t];
|
|
251
|
+
Qe.has(r) || (Qe.add(r), r());
|
|
252
|
+
}
|
|
253
|
+
se.length = 0;
|
|
254
|
+
} while (oe.length);
|
|
255
|
+
for (; wt.length; )
|
|
256
|
+
wt.pop()();
|
|
257
|
+
ot = !1, Qe.clear(), Ee(e);
|
|
258
|
+
}
|
|
259
|
+
function yn(e) {
|
|
260
|
+
if (e.fragment !== null) {
|
|
261
|
+
e.update(), me(e.before_update);
|
|
262
|
+
const t = e.dirty;
|
|
263
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(at);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
function vn(e) {
|
|
267
|
+
const t = [], r = [];
|
|
268
|
+
se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
|
|
269
|
+
}
|
|
270
|
+
const bn = /* @__PURE__ */ new Set();
|
|
271
|
+
function kn(e, t) {
|
|
272
|
+
e && e.i && (bn.delete(e), e.i(t));
|
|
273
|
+
}
|
|
274
|
+
function le(e) {
|
|
275
|
+
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
276
|
+
}
|
|
277
|
+
function En(e, t, r) {
|
|
278
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
279
|
+
n && n.m(t, r), at(() => {
|
|
280
|
+
const o = e.$$.on_mount.map(er).filter(gt);
|
|
281
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : me(o), e.$$.on_mount = [];
|
|
282
|
+
}), i.forEach(at);
|
|
283
|
+
}
|
|
284
|
+
function Cn(e, t) {
|
|
285
|
+
const r = e.$$;
|
|
286
|
+
r.fragment !== null && (vn(r.after_update), me(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
287
|
+
}
|
|
288
|
+
function Sn(e, t) {
|
|
289
|
+
e.$$.dirty[0] === -1 && (oe.push(e), _n(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
290
|
+
}
|
|
291
|
+
function nr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
292
|
+
const c = Se;
|
|
293
|
+
Ee(e);
|
|
294
|
+
const l = e.$$ = {
|
|
295
|
+
fragment: null,
|
|
296
|
+
ctx: [],
|
|
297
|
+
// state
|
|
298
|
+
props: o,
|
|
299
|
+
update: $,
|
|
300
|
+
not_equal: i,
|
|
301
|
+
bound: xt(),
|
|
302
|
+
// lifecycle
|
|
303
|
+
on_mount: [],
|
|
304
|
+
on_destroy: [],
|
|
305
|
+
on_disconnect: [],
|
|
306
|
+
before_update: [],
|
|
307
|
+
after_update: [],
|
|
308
|
+
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
309
|
+
// everything else
|
|
310
|
+
callbacks: xt(),
|
|
311
|
+
dirty: s,
|
|
312
|
+
skip_bound: !1,
|
|
313
|
+
root: t.target || c.$$.root
|
|
314
|
+
};
|
|
315
|
+
a && a(l.root);
|
|
316
|
+
let u = !1;
|
|
317
|
+
if (l.ctx = r ? r(e, t.props || {}, (d, m, ...y) => {
|
|
318
|
+
const g = y.length ? y[0] : m;
|
|
319
|
+
return l.ctx && i(l.ctx[d], l.ctx[d] = g) && (!l.skip_bound && l.bound[d] && l.bound[d](g), u && Sn(e, d)), m;
|
|
320
|
+
}) : [], l.update(), u = !0, me(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
321
|
+
if (t.hydrate) {
|
|
322
|
+
const d = dn(t.target);
|
|
323
|
+
l.fragment && l.fragment.l(d), d.forEach(O);
|
|
324
|
+
} else
|
|
325
|
+
l.fragment && l.fragment.c();
|
|
326
|
+
t.intro && kn(e.$$.fragment), En(e, t.target, t.anchor), X();
|
|
327
|
+
}
|
|
328
|
+
Ee(c);
|
|
329
|
+
}
|
|
330
|
+
let ir;
|
|
331
|
+
typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
332
|
+
constructor(t, r, n) {
|
|
333
|
+
super();
|
|
334
|
+
/** The Svelte component constructor */
|
|
335
|
+
U(this, "$$ctor");
|
|
336
|
+
/** Slots */
|
|
337
|
+
U(this, "$$s");
|
|
338
|
+
/** The Svelte component instance */
|
|
339
|
+
U(this, "$$c");
|
|
340
|
+
/** Whether or not the custom element is connected */
|
|
341
|
+
U(this, "$$cn", !1);
|
|
342
|
+
/** Component props data */
|
|
343
|
+
U(this, "$$d", {});
|
|
344
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
345
|
+
U(this, "$$r", !1);
|
|
346
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
347
|
+
U(this, "$$p_d", {});
|
|
348
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
349
|
+
U(this, "$$l", {});
|
|
350
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
351
|
+
U(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
352
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
353
|
+
}
|
|
354
|
+
addEventListener(t, r, n) {
|
|
355
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
356
|
+
const i = this.$$c.$on(t, r);
|
|
357
|
+
this.$$l_u.set(r, i);
|
|
358
|
+
}
|
|
359
|
+
super.addEventListener(t, r, n);
|
|
360
|
+
}
|
|
361
|
+
removeEventListener(t, r, n) {
|
|
362
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
363
|
+
const i = this.$$l_u.get(r);
|
|
364
|
+
i && (i(), this.$$l_u.delete(r));
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
connectedCallback() {
|
|
368
|
+
return re(this, null, function* () {
|
|
369
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
370
|
+
let t = function(o) {
|
|
371
|
+
return () => {
|
|
372
|
+
let a;
|
|
373
|
+
return {
|
|
374
|
+
c: function() {
|
|
375
|
+
a = w("slot"), o !== "default" && k(a, "name", o);
|
|
376
|
+
},
|
|
377
|
+
/**
|
|
378
|
+
* @param {HTMLElement} target
|
|
379
|
+
* @param {HTMLElement} [anchor]
|
|
380
|
+
*/
|
|
381
|
+
m: function(l, u) {
|
|
382
|
+
L(l, a, u);
|
|
383
|
+
},
|
|
384
|
+
d: function(l) {
|
|
385
|
+
l && O(a);
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
391
|
+
return;
|
|
392
|
+
const r = {}, n = mn(this);
|
|
393
|
+
for (const o of this.$$s)
|
|
394
|
+
o in n && (r[o] = [t(o)]);
|
|
395
|
+
for (const o of this.attributes) {
|
|
396
|
+
const a = this.$$g_p(o.name);
|
|
397
|
+
a in this.$$d || (this.$$d[a] = Le(a, o.value, this.$$p_d, "toProp"));
|
|
398
|
+
}
|
|
399
|
+
for (const o in this.$$p_d)
|
|
400
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
401
|
+
this.$$c = new this.$$ctor({
|
|
402
|
+
target: this.shadowRoot || this,
|
|
403
|
+
props: Je(W({}, this.$$d), {
|
|
404
|
+
$$slots: r,
|
|
405
|
+
$$scope: {
|
|
406
|
+
ctx: []
|
|
407
|
+
}
|
|
408
|
+
})
|
|
409
|
+
});
|
|
410
|
+
const i = () => {
|
|
411
|
+
this.$$r = !0;
|
|
412
|
+
for (const o in this.$$p_d)
|
|
413
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
414
|
+
const a = Le(
|
|
415
|
+
o,
|
|
416
|
+
this.$$d[o],
|
|
417
|
+
this.$$p_d,
|
|
418
|
+
"toAttribute"
|
|
419
|
+
);
|
|
420
|
+
a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
|
|
421
|
+
}
|
|
422
|
+
this.$$r = !1;
|
|
423
|
+
};
|
|
424
|
+
this.$$c.$$.after_update.push(i), i();
|
|
425
|
+
for (const o in this.$$l)
|
|
426
|
+
for (const a of this.$$l[o]) {
|
|
427
|
+
const s = this.$$c.$on(o, a);
|
|
428
|
+
this.$$l_u.set(a, s);
|
|
429
|
+
}
|
|
430
|
+
this.$$l = {};
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
435
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
436
|
+
attributeChangedCallback(t, r, n) {
|
|
437
|
+
var i;
|
|
438
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
439
|
+
}
|
|
440
|
+
disconnectedCallback() {
|
|
441
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
442
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
$$g_p(t) {
|
|
446
|
+
return Object.keys(this.$$p_d).find(
|
|
447
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
448
|
+
) || t;
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
function Le(e, t, r, n) {
|
|
452
|
+
var o;
|
|
453
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
454
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
455
|
+
return t;
|
|
456
|
+
if (n === "toAttribute")
|
|
457
|
+
switch (i) {
|
|
458
|
+
case "Object":
|
|
459
|
+
case "Array":
|
|
460
|
+
return t == null ? null : JSON.stringify(t);
|
|
461
|
+
case "Boolean":
|
|
462
|
+
return t ? "" : null;
|
|
463
|
+
case "Number":
|
|
464
|
+
return t == null ? null : t;
|
|
465
|
+
default:
|
|
466
|
+
return t;
|
|
467
|
+
}
|
|
468
|
+
else
|
|
469
|
+
switch (i) {
|
|
470
|
+
case "Object":
|
|
471
|
+
case "Array":
|
|
472
|
+
return t && JSON.parse(t);
|
|
473
|
+
case "Boolean":
|
|
474
|
+
return t;
|
|
475
|
+
case "Number":
|
|
476
|
+
return t != null ? +t : t;
|
|
477
|
+
default:
|
|
478
|
+
return t;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
function or(e, t, r, n, i, o) {
|
|
482
|
+
let a = class extends ir {
|
|
483
|
+
constructor() {
|
|
484
|
+
super(e, r, i), this.$$p_d = t;
|
|
485
|
+
}
|
|
486
|
+
static get observedAttributes() {
|
|
487
|
+
return Object.keys(t).map(
|
|
488
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
489
|
+
);
|
|
490
|
+
}
|
|
491
|
+
};
|
|
492
|
+
return Object.keys(t).forEach((s) => {
|
|
493
|
+
Object.defineProperty(a.prototype, s, {
|
|
494
|
+
get() {
|
|
495
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
496
|
+
},
|
|
497
|
+
set(c) {
|
|
498
|
+
var l;
|
|
499
|
+
c = Le(s, c, t), this.$$d[s] = c, (l = this.$$c) == null || l.$set({ [s]: c });
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
}), n.forEach((s) => {
|
|
503
|
+
Object.defineProperty(a.prototype, s, {
|
|
504
|
+
get() {
|
|
505
|
+
var c;
|
|
506
|
+
return (c = this.$$c) == null ? void 0 : c[s];
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
}), e.element = /** @type {any} */
|
|
510
|
+
a, a;
|
|
511
|
+
}
|
|
512
|
+
class ar {
|
|
513
|
+
constructor() {
|
|
514
|
+
/**
|
|
515
|
+
* ### PRIVATE API
|
|
516
|
+
*
|
|
517
|
+
* Do not use, may change at any time
|
|
518
|
+
*
|
|
519
|
+
* @type {any}
|
|
520
|
+
*/
|
|
521
|
+
U(this, "$$");
|
|
522
|
+
/**
|
|
523
|
+
* ### PRIVATE API
|
|
524
|
+
*
|
|
525
|
+
* Do not use, may change at any time
|
|
526
|
+
*
|
|
527
|
+
* @type {any}
|
|
528
|
+
*/
|
|
529
|
+
U(this, "$$set");
|
|
530
|
+
}
|
|
531
|
+
/** @returns {void} */
|
|
532
|
+
$destroy() {
|
|
533
|
+
Cn(this, 1), this.$destroy = $;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* @template {Extract<keyof Events, string>} K
|
|
537
|
+
* @param {K} type
|
|
538
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
539
|
+
* @returns {() => void}
|
|
540
|
+
*/
|
|
541
|
+
$on(t, r) {
|
|
542
|
+
if (!gt(r))
|
|
543
|
+
return $;
|
|
544
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
545
|
+
return n.push(r), () => {
|
|
546
|
+
const i = n.indexOf(r);
|
|
547
|
+
i !== -1 && n.splice(i, 1);
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* @param {Partial<Props>} props
|
|
552
|
+
* @returns {void}
|
|
553
|
+
*/
|
|
554
|
+
$set(t) {
|
|
555
|
+
this.$$set && !an(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
const xn = "4";
|
|
559
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xn);
|
|
560
|
+
const ae = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
561
|
+
function wn(e, t) {
|
|
562
|
+
if (e) {
|
|
563
|
+
const r = document.createElement("style");
|
|
564
|
+
r.innerHTML = t, e.appendChild(r);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
function Tn(e, t) {
|
|
568
|
+
if (!e || !t)
|
|
569
|
+
return;
|
|
570
|
+
const r = new URL(t);
|
|
571
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
572
|
+
const i = document.createElement("style");
|
|
573
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
574
|
+
}).catch((n) => {
|
|
575
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
function Mn(e, t, r, n = !1) {
|
|
579
|
+
if (!window.emMessageBus)
|
|
580
|
+
return;
|
|
581
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
582
|
+
return r = Nn(e, t), r;
|
|
583
|
+
window[ae] || (window[ae] = {}), r = An(e, t);
|
|
584
|
+
const o = r.unsubscribe.bind(r), a = () => {
|
|
585
|
+
if (window[ae][t]) {
|
|
586
|
+
const s = window[ae][t];
|
|
587
|
+
s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[ae][t];
|
|
588
|
+
}
|
|
589
|
+
o();
|
|
590
|
+
};
|
|
591
|
+
return r.unsubscribe = a, r;
|
|
592
|
+
}
|
|
593
|
+
function Nn(e, t) {
|
|
594
|
+
const r = document.createElement("style");
|
|
595
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
596
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
function An(e, t) {
|
|
600
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
601
|
+
var s;
|
|
602
|
+
if (!e)
|
|
603
|
+
return;
|
|
604
|
+
const n = e.getRootNode(), i = window[ae];
|
|
605
|
+
let o = (s = i[t]) == null ? void 0 : s.sheet;
|
|
606
|
+
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
607
|
+
sheet: o,
|
|
608
|
+
refCount: 1
|
|
609
|
+
});
|
|
610
|
+
const a = n.adoptedStyleSheets || [];
|
|
611
|
+
a.includes(o) || (n.adoptedStyleSheets = [...a, o]);
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
const ie = [];
|
|
615
|
+
function Hn(e, t) {
|
|
32
616
|
return {
|
|
33
|
-
subscribe:
|
|
617
|
+
subscribe: Fe(e, t).subscribe
|
|
34
618
|
};
|
|
35
619
|
}
|
|
36
|
-
function
|
|
620
|
+
function Fe(e, t = $) {
|
|
37
621
|
let r;
|
|
38
622
|
const n = /* @__PURE__ */ new Set();
|
|
39
623
|
function i(s) {
|
|
40
|
-
if (
|
|
41
|
-
const
|
|
42
|
-
for (const
|
|
43
|
-
|
|
44
|
-
if (
|
|
45
|
-
for (let
|
|
46
|
-
|
|
47
|
-
|
|
624
|
+
if (_t(e, s) && (e = s, r)) {
|
|
625
|
+
const c = !ie.length;
|
|
626
|
+
for (const l of n)
|
|
627
|
+
l[1](), ie.push(l, e);
|
|
628
|
+
if (c) {
|
|
629
|
+
for (let l = 0; l < ie.length; l += 2)
|
|
630
|
+
ie[l][0](ie[l + 1]);
|
|
631
|
+
ie.length = 0;
|
|
48
632
|
}
|
|
49
633
|
}
|
|
50
634
|
}
|
|
51
635
|
function o(s) {
|
|
52
636
|
i(s(e));
|
|
53
637
|
}
|
|
54
|
-
function a(s,
|
|
55
|
-
const
|
|
56
|
-
return n.add(
|
|
57
|
-
n.delete(
|
|
638
|
+
function a(s, c = $) {
|
|
639
|
+
const l = [s, c];
|
|
640
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || $), s(e), () => {
|
|
641
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
58
642
|
};
|
|
59
643
|
}
|
|
60
644
|
return { set: i, update: o, subscribe: a };
|
|
61
645
|
}
|
|
62
|
-
function
|
|
646
|
+
function fe(e, t, r) {
|
|
63
647
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
64
648
|
if (!i.every(Boolean))
|
|
65
649
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
66
650
|
const o = t.length < 2;
|
|
67
|
-
return
|
|
68
|
-
let
|
|
69
|
-
const
|
|
70
|
-
let
|
|
651
|
+
return Hn(r, (a, s) => {
|
|
652
|
+
let c = !1;
|
|
653
|
+
const l = [];
|
|
654
|
+
let u = 0, d = $;
|
|
71
655
|
const m = () => {
|
|
72
|
-
if (
|
|
656
|
+
if (u)
|
|
73
657
|
return;
|
|
74
658
|
d();
|
|
75
|
-
const
|
|
76
|
-
o ? a(
|
|
77
|
-
},
|
|
78
|
-
(
|
|
79
|
-
|
|
80
|
-
(
|
|
81
|
-
|
|
659
|
+
const g = t(n ? l[0] : l, a, s);
|
|
660
|
+
o ? a(g) : d = gt(g) ? g : $;
|
|
661
|
+
}, y = i.map(
|
|
662
|
+
(g, f) => tr(
|
|
663
|
+
g,
|
|
664
|
+
(S) => {
|
|
665
|
+
l[f] = S, u &= ~(1 << f), c && m();
|
|
82
666
|
},
|
|
83
667
|
() => {
|
|
84
|
-
|
|
668
|
+
u |= 1 << f;
|
|
85
669
|
}
|
|
86
670
|
)
|
|
87
671
|
);
|
|
88
|
-
return
|
|
89
|
-
|
|
672
|
+
return c = !0, m(), function() {
|
|
673
|
+
me(y), d(), c = !1;
|
|
90
674
|
};
|
|
91
675
|
});
|
|
92
676
|
}
|
|
93
|
-
function
|
|
677
|
+
function Pn(e) {
|
|
94
678
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
95
679
|
}
|
|
96
|
-
var
|
|
97
|
-
return
|
|
680
|
+
var Bn = function(t) {
|
|
681
|
+
return On(t) && !zn(t);
|
|
98
682
|
};
|
|
99
|
-
function
|
|
683
|
+
function On(e) {
|
|
100
684
|
return !!e && typeof e == "object";
|
|
101
685
|
}
|
|
102
|
-
function
|
|
686
|
+
function zn(e) {
|
|
103
687
|
var t = Object.prototype.toString.call(e);
|
|
104
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
688
|
+
return t === "[object RegExp]" || t === "[object Date]" || In(e);
|
|
105
689
|
}
|
|
106
|
-
var
|
|
107
|
-
function
|
|
108
|
-
return e.$$typeof ===
|
|
690
|
+
var Ln = typeof Symbol == "function" && Symbol.for, jn = Ln ? Symbol.for("react.element") : 60103;
|
|
691
|
+
function In(e) {
|
|
692
|
+
return e.$$typeof === jn;
|
|
109
693
|
}
|
|
110
|
-
function
|
|
694
|
+
function Rn(e) {
|
|
111
695
|
return Array.isArray(e) ? [] : {};
|
|
112
696
|
}
|
|
113
|
-
function
|
|
114
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
697
|
+
function xe(e, t) {
|
|
698
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ce(Rn(e), e, t) : e;
|
|
115
699
|
}
|
|
116
|
-
function
|
|
700
|
+
function Un(e, t, r) {
|
|
117
701
|
return e.concat(t).map(function(n) {
|
|
118
|
-
return
|
|
702
|
+
return xe(n, r);
|
|
119
703
|
});
|
|
120
704
|
}
|
|
121
|
-
function
|
|
705
|
+
function Dn(e, t) {
|
|
122
706
|
if (!t.customMerge)
|
|
123
|
-
return
|
|
707
|
+
return ce;
|
|
124
708
|
var r = t.customMerge(e);
|
|
125
|
-
return typeof r == "function" ? r :
|
|
709
|
+
return typeof r == "function" ? r : ce;
|
|
126
710
|
}
|
|
127
|
-
function
|
|
711
|
+
function Gn(e) {
|
|
128
712
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
129
713
|
return Object.propertyIsEnumerable.call(e, t);
|
|
130
714
|
}) : [];
|
|
131
715
|
}
|
|
132
|
-
function
|
|
133
|
-
return Object.keys(e).concat(
|
|
716
|
+
function Tt(e) {
|
|
717
|
+
return Object.keys(e).concat(Gn(e));
|
|
134
718
|
}
|
|
135
|
-
function
|
|
719
|
+
function sr(e, t) {
|
|
136
720
|
try {
|
|
137
721
|
return t in e;
|
|
138
722
|
} catch (r) {
|
|
139
723
|
return !1;
|
|
140
724
|
}
|
|
141
725
|
}
|
|
142
|
-
function
|
|
143
|
-
return
|
|
726
|
+
function Fn(e, t) {
|
|
727
|
+
return sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
144
728
|
}
|
|
145
|
-
function
|
|
729
|
+
function $n(e, t, r) {
|
|
146
730
|
var n = {};
|
|
147
|
-
return r.isMergeableObject(e) &&
|
|
148
|
-
n[i] =
|
|
149
|
-
}),
|
|
150
|
-
|
|
731
|
+
return r.isMergeableObject(e) && Tt(e).forEach(function(i) {
|
|
732
|
+
n[i] = xe(e[i], r);
|
|
733
|
+
}), Tt(t).forEach(function(i) {
|
|
734
|
+
Fn(e, i) || (sr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dn(i, r)(e[i], t[i], r) : n[i] = xe(t[i], r));
|
|
151
735
|
}), n;
|
|
152
736
|
}
|
|
153
|
-
function
|
|
154
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
737
|
+
function ce(e, t, r) {
|
|
738
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Un, r.isMergeableObject = r.isMergeableObject || Bn, r.cloneUnlessOtherwiseSpecified = xe;
|
|
155
739
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
156
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
740
|
+
return o ? n ? r.arrayMerge(e, t, r) : $n(e, t, r) : xe(t, r);
|
|
157
741
|
}
|
|
158
|
-
|
|
742
|
+
ce.all = function(t, r) {
|
|
159
743
|
if (!Array.isArray(t))
|
|
160
744
|
throw new Error("first argument should be an array");
|
|
161
745
|
return t.reduce(function(n, i) {
|
|
162
|
-
return
|
|
746
|
+
return ce(n, i, r);
|
|
163
747
|
}, {});
|
|
164
748
|
};
|
|
165
|
-
var
|
|
166
|
-
const
|
|
167
|
-
var
|
|
168
|
-
return
|
|
749
|
+
var Vn = ce, Xn = Vn;
|
|
750
|
+
const qn = /* @__PURE__ */ Pn(Xn);
|
|
751
|
+
var st = function(e, t) {
|
|
752
|
+
return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
169
753
|
r.__proto__ = n;
|
|
170
754
|
} || function(r, n) {
|
|
171
755
|
for (var i in n)
|
|
172
756
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
173
|
-
},
|
|
757
|
+
}, st(e, t);
|
|
174
758
|
};
|
|
175
|
-
function
|
|
759
|
+
function $e(e, t) {
|
|
176
760
|
if (typeof t != "function" && t !== null)
|
|
177
761
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
178
|
-
|
|
762
|
+
st(e, t);
|
|
179
763
|
function r() {
|
|
180
764
|
this.constructor = e;
|
|
181
765
|
}
|
|
182
766
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
183
767
|
}
|
|
184
|
-
var
|
|
185
|
-
return
|
|
768
|
+
var Z = function() {
|
|
769
|
+
return Z = Object.assign || function(t) {
|
|
186
770
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
187
771
|
r = arguments[n];
|
|
188
772
|
for (var o in r)
|
|
189
773
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
190
774
|
}
|
|
191
775
|
return t;
|
|
192
|
-
},
|
|
776
|
+
}, Z.apply(this, arguments);
|
|
193
777
|
};
|
|
194
|
-
function
|
|
778
|
+
function Wn(e, t) {
|
|
195
779
|
var r = {};
|
|
196
780
|
for (var n in e)
|
|
197
781
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -200,43 +784,43 @@ function pn(e, t) {
|
|
|
200
784
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
201
785
|
return r;
|
|
202
786
|
}
|
|
203
|
-
function
|
|
787
|
+
function Ye(e, t, r) {
|
|
204
788
|
if (r || arguments.length === 2)
|
|
205
789
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
206
790
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
207
791
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
208
792
|
}
|
|
209
|
-
function
|
|
210
|
-
var r = t && t.cache ? t.cache :
|
|
793
|
+
function Ke(e, t) {
|
|
794
|
+
var r = t && t.cache ? t.cache : ti, n = t && t.serializer ? t.serializer : Kn, i = t && t.strategy ? t.strategy : Qn;
|
|
211
795
|
return i(e, {
|
|
212
796
|
cache: r,
|
|
213
797
|
serializer: n
|
|
214
798
|
});
|
|
215
799
|
}
|
|
216
|
-
function
|
|
800
|
+
function Zn(e) {
|
|
217
801
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
218
802
|
}
|
|
219
|
-
function
|
|
220
|
-
var i =
|
|
803
|
+
function Jn(e, t, r, n) {
|
|
804
|
+
var i = Zn(n) ? n : r(n), o = t.get(i);
|
|
221
805
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
222
806
|
}
|
|
223
|
-
function
|
|
807
|
+
function lr(e, t, r) {
|
|
224
808
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
225
809
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
226
810
|
}
|
|
227
|
-
function
|
|
811
|
+
function cr(e, t, r, n, i) {
|
|
228
812
|
return r.bind(t, e, n, i);
|
|
229
813
|
}
|
|
230
|
-
function
|
|
231
|
-
var r = e.length === 1 ?
|
|
232
|
-
return
|
|
814
|
+
function Qn(e, t) {
|
|
815
|
+
var r = e.length === 1 ? Jn : lr;
|
|
816
|
+
return cr(e, this, r, t.cache.create(), t.serializer);
|
|
233
817
|
}
|
|
234
|
-
function
|
|
235
|
-
return
|
|
818
|
+
function Yn(e, t) {
|
|
819
|
+
return cr(e, this, lr, t.cache.create(), t.serializer);
|
|
236
820
|
}
|
|
237
|
-
var
|
|
821
|
+
var Kn = function() {
|
|
238
822
|
return JSON.stringify(arguments);
|
|
239
|
-
},
|
|
823
|
+
}, ei = (
|
|
240
824
|
/** @class */
|
|
241
825
|
function() {
|
|
242
826
|
function e() {
|
|
@@ -248,71 +832,71 @@ var vn = function() {
|
|
|
248
832
|
this.cache[t] = r;
|
|
249
833
|
}, e;
|
|
250
834
|
}()
|
|
251
|
-
),
|
|
835
|
+
), ti = {
|
|
252
836
|
create: function() {
|
|
253
|
-
return new
|
|
837
|
+
return new ei();
|
|
254
838
|
}
|
|
255
|
-
},
|
|
256
|
-
variadic:
|
|
257
|
-
},
|
|
258
|
-
return
|
|
839
|
+
}, et = {
|
|
840
|
+
variadic: Yn
|
|
841
|
+
}, Ue = function() {
|
|
842
|
+
return Ue = Object.assign || function(t) {
|
|
259
843
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
260
844
|
r = arguments[n];
|
|
261
845
|
for (var o in r)
|
|
262
846
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
263
847
|
}
|
|
264
848
|
return t;
|
|
265
|
-
},
|
|
849
|
+
}, Ue.apply(this, arguments);
|
|
266
850
|
};
|
|
267
|
-
var
|
|
851
|
+
var N;
|
|
268
852
|
(function(e) {
|
|
269
853
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
270
|
-
})(
|
|
854
|
+
})(N || (N = {}));
|
|
271
855
|
var P;
|
|
272
856
|
(function(e) {
|
|
273
857
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
274
858
|
})(P || (P = {}));
|
|
275
|
-
var
|
|
859
|
+
var ue;
|
|
276
860
|
(function(e) {
|
|
277
861
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
278
|
-
})(
|
|
279
|
-
function
|
|
862
|
+
})(ue || (ue = {}));
|
|
863
|
+
function Mt(e) {
|
|
280
864
|
return e.type === P.literal;
|
|
281
865
|
}
|
|
282
|
-
function
|
|
866
|
+
function ri(e) {
|
|
283
867
|
return e.type === P.argument;
|
|
284
868
|
}
|
|
285
|
-
function
|
|
869
|
+
function ur(e) {
|
|
286
870
|
return e.type === P.number;
|
|
287
871
|
}
|
|
288
|
-
function
|
|
872
|
+
function hr(e) {
|
|
289
873
|
return e.type === P.date;
|
|
290
874
|
}
|
|
291
|
-
function
|
|
875
|
+
function dr(e) {
|
|
292
876
|
return e.type === P.time;
|
|
293
877
|
}
|
|
294
|
-
function
|
|
878
|
+
function mr(e) {
|
|
295
879
|
return e.type === P.select;
|
|
296
880
|
}
|
|
297
|
-
function
|
|
881
|
+
function fr(e) {
|
|
298
882
|
return e.type === P.plural;
|
|
299
883
|
}
|
|
300
|
-
function
|
|
884
|
+
function ni(e) {
|
|
301
885
|
return e.type === P.pound;
|
|
302
886
|
}
|
|
303
|
-
function
|
|
887
|
+
function pr(e) {
|
|
304
888
|
return e.type === P.tag;
|
|
305
889
|
}
|
|
306
|
-
function
|
|
307
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
890
|
+
function gr(e) {
|
|
891
|
+
return !!(e && typeof e == "object" && e.type === ue.number);
|
|
308
892
|
}
|
|
309
|
-
function
|
|
310
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
893
|
+
function lt(e) {
|
|
894
|
+
return !!(e && typeof e == "object" && e.type === ue.dateTime);
|
|
311
895
|
}
|
|
312
|
-
var
|
|
313
|
-
function
|
|
896
|
+
var _r = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
|
|
897
|
+
function oi(e) {
|
|
314
898
|
var t = {};
|
|
315
|
-
return e.replace(
|
|
899
|
+
return e.replace(ii, function(r) {
|
|
316
900
|
var n = r.length;
|
|
317
901
|
switch (r[0]) {
|
|
318
902
|
case "G":
|
|
@@ -401,46 +985,46 @@ function xn(e) {
|
|
|
401
985
|
return "";
|
|
402
986
|
}), t;
|
|
403
987
|
}
|
|
404
|
-
var
|
|
405
|
-
return
|
|
988
|
+
var B = function() {
|
|
989
|
+
return B = Object.assign || function(t) {
|
|
406
990
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
407
991
|
r = arguments[n];
|
|
408
992
|
for (var o in r)
|
|
409
993
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
410
994
|
}
|
|
411
995
|
return t;
|
|
412
|
-
},
|
|
996
|
+
}, B.apply(this, arguments);
|
|
413
997
|
};
|
|
414
|
-
var
|
|
415
|
-
function
|
|
998
|
+
var ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
999
|
+
function si(e) {
|
|
416
1000
|
if (e.length === 0)
|
|
417
1001
|
throw new Error("Number skeleton cannot be empty");
|
|
418
|
-
for (var t = e.split(
|
|
1002
|
+
for (var t = e.split(ai).filter(function(m) {
|
|
419
1003
|
return m.length > 0;
|
|
420
1004
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
421
1005
|
var o = i[n], a = o.split("/");
|
|
422
1006
|
if (a.length === 0)
|
|
423
1007
|
throw new Error("Invalid number skeleton");
|
|
424
|
-
for (var s = a[0],
|
|
425
|
-
var d = l
|
|
1008
|
+
for (var s = a[0], c = a.slice(1), l = 0, u = c; l < u.length; l++) {
|
|
1009
|
+
var d = u[l];
|
|
426
1010
|
if (d.length === 0)
|
|
427
1011
|
throw new Error("Invalid number skeleton");
|
|
428
1012
|
}
|
|
429
|
-
r.push({ stem: s, options:
|
|
1013
|
+
r.push({ stem: s, options: c });
|
|
430
1014
|
}
|
|
431
1015
|
return r;
|
|
432
1016
|
}
|
|
433
|
-
function
|
|
1017
|
+
function li(e) {
|
|
434
1018
|
return e.replace(/^(.*?)-/, "");
|
|
435
1019
|
}
|
|
436
|
-
var
|
|
437
|
-
function
|
|
1020
|
+
var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yr = /^(@+)?(\+|#+)?[rs]?$/g, ci = /(\*)(0+)|(#+)(0+)|(0+)/g, vr = /^(0+)$/;
|
|
1021
|
+
function At(e) {
|
|
438
1022
|
var t = {};
|
|
439
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1023
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yr, function(r, n, i) {
|
|
440
1024
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
441
1025
|
}), t;
|
|
442
1026
|
}
|
|
443
|
-
function
|
|
1027
|
+
function br(e) {
|
|
444
1028
|
switch (e) {
|
|
445
1029
|
case "sign-auto":
|
|
446
1030
|
return {
|
|
@@ -480,7 +1064,7 @@ function rr(e) {
|
|
|
480
1064
|
};
|
|
481
1065
|
}
|
|
482
1066
|
}
|
|
483
|
-
function
|
|
1067
|
+
function ui(e) {
|
|
484
1068
|
var t;
|
|
485
1069
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
486
1070
|
notation: "engineering"
|
|
@@ -488,17 +1072,17 @@ function An(e) {
|
|
|
488
1072
|
notation: "scientific"
|
|
489
1073
|
}, e = e.slice(1)), t) {
|
|
490
1074
|
var r = e.slice(0, 2);
|
|
491
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1075
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vr.test(e))
|
|
492
1076
|
throw new Error("Malformed concise eng/scientific notation");
|
|
493
1077
|
t.minimumIntegerDigits = e.length;
|
|
494
1078
|
}
|
|
495
1079
|
return t;
|
|
496
1080
|
}
|
|
497
|
-
function
|
|
498
|
-
var t = {}, r =
|
|
1081
|
+
function Ht(e) {
|
|
1082
|
+
var t = {}, r = br(e);
|
|
499
1083
|
return r || t;
|
|
500
1084
|
}
|
|
501
|
-
function
|
|
1085
|
+
function hi(e) {
|
|
502
1086
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
503
1087
|
var i = n[r];
|
|
504
1088
|
switch (i.stem) {
|
|
@@ -522,7 +1106,7 @@ function Hn(e) {
|
|
|
522
1106
|
continue;
|
|
523
1107
|
case "measure-unit":
|
|
524
1108
|
case "unit":
|
|
525
|
-
t.style = "unit", t.unit =
|
|
1109
|
+
t.style = "unit", t.unit = li(i.options[0]);
|
|
526
1110
|
continue;
|
|
527
1111
|
case "compact-short":
|
|
528
1112
|
case "K":
|
|
@@ -533,13 +1117,13 @@ function Hn(e) {
|
|
|
533
1117
|
t.notation = "compact", t.compactDisplay = "long";
|
|
534
1118
|
continue;
|
|
535
1119
|
case "scientific":
|
|
536
|
-
t =
|
|
537
|
-
return
|
|
1120
|
+
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1121
|
+
return B(B({}, c), Ht(l));
|
|
538
1122
|
}, {}));
|
|
539
1123
|
continue;
|
|
540
1124
|
case "engineering":
|
|
541
|
-
t =
|
|
542
|
-
return
|
|
1125
|
+
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1126
|
+
return B(B({}, c), Ht(l));
|
|
543
1127
|
}, {}));
|
|
544
1128
|
continue;
|
|
545
1129
|
case "notation-simple":
|
|
@@ -584,45 +1168,45 @@ function Hn(e) {
|
|
|
584
1168
|
case "integer-width":
|
|
585
1169
|
if (i.options.length > 1)
|
|
586
1170
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
587
|
-
i.options[0].replace(
|
|
588
|
-
if (
|
|
589
|
-
t.minimumIntegerDigits =
|
|
1171
|
+
i.options[0].replace(ci, function(c, l, u, d, m, y) {
|
|
1172
|
+
if (l)
|
|
1173
|
+
t.minimumIntegerDigits = u.length;
|
|
590
1174
|
else {
|
|
591
1175
|
if (d && m)
|
|
592
1176
|
throw new Error("We currently do not support maximum integer digits");
|
|
593
|
-
if (
|
|
1177
|
+
if (y)
|
|
594
1178
|
throw new Error("We currently do not support exact integer digits");
|
|
595
1179
|
}
|
|
596
1180
|
return "";
|
|
597
1181
|
});
|
|
598
1182
|
continue;
|
|
599
1183
|
}
|
|
600
|
-
if (
|
|
1184
|
+
if (vr.test(i.stem)) {
|
|
601
1185
|
t.minimumIntegerDigits = i.stem.length;
|
|
602
1186
|
continue;
|
|
603
1187
|
}
|
|
604
|
-
if (
|
|
1188
|
+
if (Nt.test(i.stem)) {
|
|
605
1189
|
if (i.options.length > 1)
|
|
606
1190
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
607
|
-
i.stem.replace(
|
|
608
|
-
return
|
|
1191
|
+
i.stem.replace(Nt, function(c, l, u, d, m, y) {
|
|
1192
|
+
return u === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
609
1193
|
});
|
|
610
1194
|
var o = i.options[0];
|
|
611
|
-
o === "w" ? t =
|
|
1195
|
+
o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), At(o)));
|
|
612
1196
|
continue;
|
|
613
1197
|
}
|
|
614
|
-
if (
|
|
615
|
-
t =
|
|
1198
|
+
if (yr.test(i.stem)) {
|
|
1199
|
+
t = B(B({}, t), At(i.stem));
|
|
616
1200
|
continue;
|
|
617
1201
|
}
|
|
618
|
-
var a =
|
|
619
|
-
a && (t =
|
|
620
|
-
var s =
|
|
621
|
-
s && (t =
|
|
1202
|
+
var a = br(i.stem);
|
|
1203
|
+
a && (t = B(B({}, t), a));
|
|
1204
|
+
var s = ui(i.stem);
|
|
1205
|
+
s && (t = B(B({}, t), s));
|
|
622
1206
|
}
|
|
623
1207
|
return t;
|
|
624
1208
|
}
|
|
625
|
-
var
|
|
1209
|
+
var ze = {
|
|
626
1210
|
"001": [
|
|
627
1211
|
"H",
|
|
628
1212
|
"h"
|
|
@@ -2037,23 +2621,23 @@ var Te = {
|
|
|
2037
2621
|
"h"
|
|
2038
2622
|
]
|
|
2039
2623
|
};
|
|
2040
|
-
function
|
|
2624
|
+
function di(e, t) {
|
|
2041
2625
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2042
2626
|
var i = e.charAt(n);
|
|
2043
2627
|
if (i === "j") {
|
|
2044
2628
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2045
2629
|
o++, n++;
|
|
2046
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
2047
|
-
for ((
|
|
2048
|
-
r +=
|
|
2630
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = mi(t);
|
|
2631
|
+
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2632
|
+
r += c;
|
|
2049
2633
|
for (; a-- > 0; )
|
|
2050
|
-
r =
|
|
2634
|
+
r = l + r;
|
|
2051
2635
|
} else
|
|
2052
2636
|
i === "J" ? r += "H" : r += i;
|
|
2053
2637
|
}
|
|
2054
2638
|
return r;
|
|
2055
2639
|
}
|
|
2056
|
-
function
|
|
2640
|
+
function mi(e) {
|
|
2057
2641
|
var t = e.hourCycle;
|
|
2058
2642
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2059
2643
|
e.hourCycles && // @ts-ignore
|
|
@@ -2072,23 +2656,23 @@ function Bn(e) {
|
|
|
2072
2656
|
}
|
|
2073
2657
|
var r = e.language, n;
|
|
2074
2658
|
r !== "root" && (n = e.maximize().region);
|
|
2075
|
-
var i =
|
|
2659
|
+
var i = ze[n || ""] || ze[r || ""] || ze["".concat(r, "-001")] || ze["001"];
|
|
2076
2660
|
return i[0];
|
|
2077
2661
|
}
|
|
2078
|
-
var
|
|
2079
|
-
function
|
|
2662
|
+
var tt, fi = new RegExp("^".concat(_r.source, "*")), pi = new RegExp("".concat(_r.source, "*$"));
|
|
2663
|
+
function A(e, t) {
|
|
2080
2664
|
return { start: e, end: t };
|
|
2081
2665
|
}
|
|
2082
|
-
var
|
|
2666
|
+
var gi = !!String.prototype.startsWith && "_a".startsWith("a", 1), _i = !!String.fromCodePoint, yi = !!Object.fromEntries, vi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, ki = !!String.prototype.trimEnd, Ei = !!Number.isSafeInteger, Ci = Ei ? Number.isSafeInteger : function(e) {
|
|
2083
2667
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2084
|
-
},
|
|
2668
|
+
}, ct = !0;
|
|
2085
2669
|
try {
|
|
2086
|
-
var
|
|
2087
|
-
|
|
2670
|
+
var Si = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2671
|
+
ct = ((tt = Si.exec("a")) === null || tt === void 0 ? void 0 : tt[0]) === "a";
|
|
2088
2672
|
} catch (e) {
|
|
2089
|
-
|
|
2673
|
+
ct = !1;
|
|
2090
2674
|
}
|
|
2091
|
-
var
|
|
2675
|
+
var Pt = gi ? (
|
|
2092
2676
|
// Native
|
|
2093
2677
|
function(t, r, n) {
|
|
2094
2678
|
return t.startsWith(r, n);
|
|
@@ -2098,7 +2682,7 @@ var ft = In ? (
|
|
|
2098
2682
|
function(t, r, n) {
|
|
2099
2683
|
return t.slice(n, n + r.length) === r;
|
|
2100
2684
|
}
|
|
2101
|
-
),
|
|
2685
|
+
), ut = _i ? String.fromCodePoint : (
|
|
2102
2686
|
// IE11
|
|
2103
2687
|
function() {
|
|
2104
2688
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2110,9 +2694,9 @@ var ft = In ? (
|
|
|
2110
2694
|
}
|
|
2111
2695
|
return n;
|
|
2112
2696
|
}
|
|
2113
|
-
),
|
|
2697
|
+
), Bt = (
|
|
2114
2698
|
// native
|
|
2115
|
-
|
|
2699
|
+
yi ? Object.fromEntries : (
|
|
2116
2700
|
// Ponyfill
|
|
2117
2701
|
function(t) {
|
|
2118
2702
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2122,7 +2706,7 @@ var ft = In ? (
|
|
|
2122
2706
|
return r;
|
|
2123
2707
|
}
|
|
2124
2708
|
)
|
|
2125
|
-
),
|
|
2709
|
+
), kr = vi ? (
|
|
2126
2710
|
// Native
|
|
2127
2711
|
function(t, r) {
|
|
2128
2712
|
return t.codePointAt(r);
|
|
@@ -2136,7 +2720,7 @@ var ft = In ? (
|
|
|
2136
2720
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2137
2721
|
}
|
|
2138
2722
|
}
|
|
2139
|
-
),
|
|
2723
|
+
), xi = bi ? (
|
|
2140
2724
|
// Native
|
|
2141
2725
|
function(t) {
|
|
2142
2726
|
return t.trimStart();
|
|
@@ -2144,9 +2728,9 @@ var ft = In ? (
|
|
|
2144
2728
|
) : (
|
|
2145
2729
|
// Ponyfill
|
|
2146
2730
|
function(t) {
|
|
2147
|
-
return t.replace(
|
|
2731
|
+
return t.replace(fi, "");
|
|
2148
2732
|
}
|
|
2149
|
-
),
|
|
2733
|
+
), wi = ki ? (
|
|
2150
2734
|
// Native
|
|
2151
2735
|
function(t) {
|
|
2152
2736
|
return t.trimEnd();
|
|
@@ -2154,32 +2738,32 @@ var ft = In ? (
|
|
|
2154
2738
|
) : (
|
|
2155
2739
|
// Ponyfill
|
|
2156
2740
|
function(t) {
|
|
2157
|
-
return t.replace(
|
|
2741
|
+
return t.replace(pi, "");
|
|
2158
2742
|
}
|
|
2159
2743
|
);
|
|
2160
|
-
function
|
|
2744
|
+
function Er(e, t) {
|
|
2161
2745
|
return new RegExp(e, t);
|
|
2162
2746
|
}
|
|
2163
|
-
var
|
|
2164
|
-
if (
|
|
2165
|
-
var
|
|
2166
|
-
|
|
2747
|
+
var ht;
|
|
2748
|
+
if (ct) {
|
|
2749
|
+
var Ot = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2750
|
+
ht = function(t, r) {
|
|
2167
2751
|
var n;
|
|
2168
|
-
|
|
2169
|
-
var i =
|
|
2752
|
+
Ot.lastIndex = r;
|
|
2753
|
+
var i = Ot.exec(t);
|
|
2170
2754
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2171
2755
|
};
|
|
2172
2756
|
} else
|
|
2173
|
-
|
|
2757
|
+
ht = function(t, r) {
|
|
2174
2758
|
for (var n = []; ; ) {
|
|
2175
|
-
var i =
|
|
2176
|
-
if (i === void 0 ||
|
|
2759
|
+
var i = kr(t, r);
|
|
2760
|
+
if (i === void 0 || Cr(i) || Ai(i))
|
|
2177
2761
|
break;
|
|
2178
2762
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2179
2763
|
}
|
|
2180
|
-
return
|
|
2764
|
+
return ut.apply(void 0, n);
|
|
2181
2765
|
};
|
|
2182
|
-
var
|
|
2766
|
+
var Ti = (
|
|
2183
2767
|
/** @class */
|
|
2184
2768
|
function() {
|
|
2185
2769
|
function e(t, r) {
|
|
@@ -2204,13 +2788,13 @@ var Wn = (
|
|
|
2204
2788
|
var s = this.clonePosition();
|
|
2205
2789
|
this.bump(), i.push({
|
|
2206
2790
|
type: P.pound,
|
|
2207
|
-
location:
|
|
2791
|
+
location: A(s, this.clonePosition())
|
|
2208
2792
|
});
|
|
2209
2793
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2210
2794
|
if (n)
|
|
2211
2795
|
break;
|
|
2212
|
-
return this.error(
|
|
2213
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2796
|
+
return this.error(N.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
|
|
2797
|
+
} else if (o === 60 && !this.ignoreTag && dt(this.peek() || 0)) {
|
|
2214
2798
|
var a = this.parseTag(t, r);
|
|
2215
2799
|
if (a.err)
|
|
2216
2800
|
return a;
|
|
@@ -2233,7 +2817,7 @@ var Wn = (
|
|
|
2233
2817
|
val: {
|
|
2234
2818
|
type: P.literal,
|
|
2235
2819
|
value: "<".concat(i, "/>"),
|
|
2236
|
-
location:
|
|
2820
|
+
location: A(n, this.clonePosition())
|
|
2237
2821
|
},
|
|
2238
2822
|
err: null
|
|
2239
2823
|
};
|
|
@@ -2243,25 +2827,25 @@ var Wn = (
|
|
|
2243
2827
|
return o;
|
|
2244
2828
|
var a = o.val, s = this.clonePosition();
|
|
2245
2829
|
if (this.bumpIf("</")) {
|
|
2246
|
-
if (this.isEOF() || !
|
|
2247
|
-
return this.error(
|
|
2248
|
-
var
|
|
2249
|
-
return i !==
|
|
2830
|
+
if (this.isEOF() || !dt(this.char()))
|
|
2831
|
+
return this.error(N.INVALID_TAG, A(s, this.clonePosition()));
|
|
2832
|
+
var c = this.clonePosition(), l = this.parseTagName();
|
|
2833
|
+
return i !== l ? this.error(N.UNMATCHED_CLOSING_TAG, A(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2250
2834
|
val: {
|
|
2251
2835
|
type: P.tag,
|
|
2252
2836
|
value: i,
|
|
2253
2837
|
children: a,
|
|
2254
|
-
location:
|
|
2838
|
+
location: A(n, this.clonePosition())
|
|
2255
2839
|
},
|
|
2256
2840
|
err: null
|
|
2257
|
-
} : this.error(
|
|
2841
|
+
} : this.error(N.INVALID_TAG, A(s, this.clonePosition())));
|
|
2258
2842
|
} else
|
|
2259
|
-
return this.error(
|
|
2843
|
+
return this.error(N.UNCLOSED_TAG, A(n, this.clonePosition()));
|
|
2260
2844
|
} else
|
|
2261
|
-
return this.error(
|
|
2845
|
+
return this.error(N.INVALID_TAG, A(n, this.clonePosition()));
|
|
2262
2846
|
}, e.prototype.parseTagName = function() {
|
|
2263
2847
|
var t = this.offset();
|
|
2264
|
-
for (this.bump(); !this.isEOF() &&
|
|
2848
|
+
for (this.bump(); !this.isEOF() && Ni(this.char()); )
|
|
2265
2849
|
this.bump();
|
|
2266
2850
|
return this.message.slice(t, this.offset());
|
|
2267
2851
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2283,14 +2867,14 @@ var Wn = (
|
|
|
2283
2867
|
}
|
|
2284
2868
|
break;
|
|
2285
2869
|
}
|
|
2286
|
-
var
|
|
2870
|
+
var c = A(n, this.clonePosition());
|
|
2287
2871
|
return {
|
|
2288
|
-
val: { type: P.literal, value: i, location:
|
|
2872
|
+
val: { type: P.literal, value: i, location: c },
|
|
2289
2873
|
err: null
|
|
2290
2874
|
};
|
|
2291
2875
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2292
2876
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2293
|
-
!
|
|
2877
|
+
!Mi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2294
2878
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2295
2879
|
if (this.isEOF() || this.char() !== 39)
|
|
2296
2880
|
return null;
|
|
@@ -2324,23 +2908,23 @@ var Wn = (
|
|
|
2324
2908
|
r.push(n);
|
|
2325
2909
|
this.bump();
|
|
2326
2910
|
}
|
|
2327
|
-
return
|
|
2911
|
+
return ut.apply(void 0, r);
|
|
2328
2912
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2329
2913
|
if (this.isEOF())
|
|
2330
2914
|
return null;
|
|
2331
2915
|
var n = this.char();
|
|
2332
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2916
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ut(n));
|
|
2333
2917
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2334
2918
|
var n = this.clonePosition();
|
|
2335
2919
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2336
|
-
return this.error(
|
|
2920
|
+
return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
|
|
2337
2921
|
if (this.char() === 125)
|
|
2338
|
-
return this.bump(), this.error(
|
|
2922
|
+
return this.bump(), this.error(N.EMPTY_ARGUMENT, A(n, this.clonePosition()));
|
|
2339
2923
|
var i = this.parseIdentifierIfPossible().value;
|
|
2340
2924
|
if (!i)
|
|
2341
|
-
return this.error(
|
|
2925
|
+
return this.error(N.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
|
|
2342
2926
|
if (this.bumpSpace(), this.isEOF())
|
|
2343
|
-
return this.error(
|
|
2927
|
+
return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
|
|
2344
2928
|
switch (this.char()) {
|
|
2345
2929
|
case 125:
|
|
2346
2930
|
return this.bump(), {
|
|
@@ -2348,66 +2932,66 @@ var Wn = (
|
|
|
2348
2932
|
type: P.argument,
|
|
2349
2933
|
// value does not include the opening and closing braces.
|
|
2350
2934
|
value: i,
|
|
2351
|
-
location:
|
|
2935
|
+
location: A(n, this.clonePosition())
|
|
2352
2936
|
},
|
|
2353
2937
|
err: null
|
|
2354
2938
|
};
|
|
2355
2939
|
case 44:
|
|
2356
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2940
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2357
2941
|
default:
|
|
2358
|
-
return this.error(
|
|
2942
|
+
return this.error(N.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
|
|
2359
2943
|
}
|
|
2360
2944
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2361
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2945
|
+
var t = this.clonePosition(), r = this.offset(), n = ht(this.message, r), i = r + n.length;
|
|
2362
2946
|
this.bumpTo(i);
|
|
2363
|
-
var o = this.clonePosition(), a =
|
|
2947
|
+
var o = this.clonePosition(), a = A(t, o);
|
|
2364
2948
|
return { value: n, location: a };
|
|
2365
2949
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2366
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
2950
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2367
2951
|
switch (s) {
|
|
2368
2952
|
case "":
|
|
2369
|
-
return this.error(
|
|
2953
|
+
return this.error(N.EXPECT_ARGUMENT_TYPE, A(a, c));
|
|
2370
2954
|
case "number":
|
|
2371
2955
|
case "date":
|
|
2372
2956
|
case "time": {
|
|
2373
2957
|
this.bumpSpace();
|
|
2374
|
-
var
|
|
2958
|
+
var l = null;
|
|
2375
2959
|
if (this.bumpIf(",")) {
|
|
2376
2960
|
this.bumpSpace();
|
|
2377
|
-
var
|
|
2961
|
+
var u = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2378
2962
|
if (d.err)
|
|
2379
2963
|
return d;
|
|
2380
|
-
var m =
|
|
2964
|
+
var m = wi(d.val);
|
|
2381
2965
|
if (m.length === 0)
|
|
2382
|
-
return this.error(
|
|
2383
|
-
var
|
|
2384
|
-
|
|
2966
|
+
return this.error(N.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
|
|
2967
|
+
var y = A(u, this.clonePosition());
|
|
2968
|
+
l = { style: m, styleLocation: y };
|
|
2385
2969
|
}
|
|
2386
|
-
var
|
|
2387
|
-
if (
|
|
2388
|
-
return
|
|
2389
|
-
var
|
|
2390
|
-
if (
|
|
2391
|
-
var
|
|
2970
|
+
var g = this.tryParseArgumentClose(i);
|
|
2971
|
+
if (g.err)
|
|
2972
|
+
return g;
|
|
2973
|
+
var f = A(i, this.clonePosition());
|
|
2974
|
+
if (l && Pt(l == null ? void 0 : l.style, "::", 0)) {
|
|
2975
|
+
var S = xi(l.style.slice(2));
|
|
2392
2976
|
if (s === "number") {
|
|
2393
|
-
var d = this.parseNumberSkeletonFromString(
|
|
2977
|
+
var d = this.parseNumberSkeletonFromString(S, l.styleLocation);
|
|
2394
2978
|
return d.err ? d : {
|
|
2395
|
-
val: { type: P.number, value: n, location:
|
|
2979
|
+
val: { type: P.number, value: n, location: f, style: d.val },
|
|
2396
2980
|
err: null
|
|
2397
2981
|
};
|
|
2398
2982
|
} else {
|
|
2399
|
-
if (
|
|
2400
|
-
return this.error(
|
|
2401
|
-
var _ =
|
|
2402
|
-
this.locale && (_ =
|
|
2983
|
+
if (S.length === 0)
|
|
2984
|
+
return this.error(N.EXPECT_DATE_TIME_SKELETON, f);
|
|
2985
|
+
var _ = S;
|
|
2986
|
+
this.locale && (_ = di(S, this.locale));
|
|
2403
2987
|
var m = {
|
|
2404
|
-
type:
|
|
2988
|
+
type: ue.dateTime,
|
|
2405
2989
|
pattern: _,
|
|
2406
|
-
location:
|
|
2407
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2408
|
-
},
|
|
2990
|
+
location: l.styleLocation,
|
|
2991
|
+
parsedOptions: this.shouldParseSkeletons ? oi(_) : {}
|
|
2992
|
+
}, v = s === "date" ? P.date : P.time;
|
|
2409
2993
|
return {
|
|
2410
|
-
val: { type:
|
|
2994
|
+
val: { type: v, value: n, location: f, style: m },
|
|
2411
2995
|
err: null
|
|
2412
2996
|
};
|
|
2413
2997
|
}
|
|
@@ -2416,8 +3000,8 @@ var Wn = (
|
|
|
2416
3000
|
val: {
|
|
2417
3001
|
type: s === "number" ? P.number : s === "date" ? P.date : P.time,
|
|
2418
3002
|
value: n,
|
|
2419
|
-
location:
|
|
2420
|
-
style: (o =
|
|
3003
|
+
location: f,
|
|
3004
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
2421
3005
|
},
|
|
2422
3006
|
err: null
|
|
2423
3007
|
};
|
|
@@ -2425,52 +3009,52 @@ var Wn = (
|
|
|
2425
3009
|
case "plural":
|
|
2426
3010
|
case "selectordinal":
|
|
2427
3011
|
case "select": {
|
|
2428
|
-
var
|
|
3012
|
+
var C = this.clonePosition();
|
|
2429
3013
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2430
|
-
return this.error(
|
|
3014
|
+
return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS, A(C, Ue({}, C)));
|
|
2431
3015
|
this.bumpSpace();
|
|
2432
|
-
var H = this.parseIdentifierIfPossible(),
|
|
3016
|
+
var H = this.parseIdentifierIfPossible(), E = 0;
|
|
2433
3017
|
if (s !== "select" && H.value === "offset") {
|
|
2434
3018
|
if (!this.bumpIf(":"))
|
|
2435
|
-
return this.error(
|
|
3019
|
+
return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
|
|
2436
3020
|
this.bumpSpace();
|
|
2437
|
-
var d = this.tryParseDecimalInteger(
|
|
3021
|
+
var d = this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2438
3022
|
if (d.err)
|
|
2439
3023
|
return d;
|
|
2440
|
-
this.bumpSpace(), H = this.parseIdentifierIfPossible(),
|
|
3024
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), E = d.val;
|
|
2441
3025
|
}
|
|
2442
|
-
var
|
|
2443
|
-
if (
|
|
2444
|
-
return
|
|
2445
|
-
var
|
|
2446
|
-
if (
|
|
2447
|
-
return
|
|
2448
|
-
var
|
|
3026
|
+
var z = this.tryParsePluralOrSelectOptions(t, s, r, H);
|
|
3027
|
+
if (z.err)
|
|
3028
|
+
return z;
|
|
3029
|
+
var g = this.tryParseArgumentClose(i);
|
|
3030
|
+
if (g.err)
|
|
3031
|
+
return g;
|
|
3032
|
+
var J = A(i, this.clonePosition());
|
|
2449
3033
|
return s === "select" ? {
|
|
2450
3034
|
val: {
|
|
2451
3035
|
type: P.select,
|
|
2452
3036
|
value: n,
|
|
2453
|
-
options:
|
|
2454
|
-
location:
|
|
3037
|
+
options: Bt(z.val),
|
|
3038
|
+
location: J
|
|
2455
3039
|
},
|
|
2456
3040
|
err: null
|
|
2457
3041
|
} : {
|
|
2458
3042
|
val: {
|
|
2459
3043
|
type: P.plural,
|
|
2460
3044
|
value: n,
|
|
2461
|
-
options:
|
|
2462
|
-
offset:
|
|
3045
|
+
options: Bt(z.val),
|
|
3046
|
+
offset: E,
|
|
2463
3047
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2464
|
-
location:
|
|
3048
|
+
location: J
|
|
2465
3049
|
},
|
|
2466
3050
|
err: null
|
|
2467
3051
|
};
|
|
2468
3052
|
}
|
|
2469
3053
|
default:
|
|
2470
|
-
return this.error(
|
|
3054
|
+
return this.error(N.INVALID_ARGUMENT_TYPE, A(a, c));
|
|
2471
3055
|
}
|
|
2472
3056
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2473
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3057
|
+
return this.isEOF() || this.char() !== 125 ? this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2474
3058
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2475
3059
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2476
3060
|
var n = this.char();
|
|
@@ -2479,7 +3063,7 @@ var Wn = (
|
|
|
2479
3063
|
this.bump();
|
|
2480
3064
|
var i = this.clonePosition();
|
|
2481
3065
|
if (!this.bumpUntil("'"))
|
|
2482
|
-
return this.error(
|
|
3066
|
+
return this.error(N.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, A(i, this.clonePosition()));
|
|
2483
3067
|
this.bump();
|
|
2484
3068
|
break;
|
|
2485
3069
|
}
|
|
@@ -2509,52 +3093,52 @@ var Wn = (
|
|
|
2509
3093
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2510
3094
|
var n = [];
|
|
2511
3095
|
try {
|
|
2512
|
-
n =
|
|
3096
|
+
n = si(t);
|
|
2513
3097
|
} catch (i) {
|
|
2514
|
-
return this.error(
|
|
3098
|
+
return this.error(N.INVALID_NUMBER_SKELETON, r);
|
|
2515
3099
|
}
|
|
2516
3100
|
return {
|
|
2517
3101
|
val: {
|
|
2518
|
-
type:
|
|
3102
|
+
type: ue.number,
|
|
2519
3103
|
tokens: n,
|
|
2520
3104
|
location: r,
|
|
2521
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3105
|
+
parsedOptions: this.shouldParseSkeletons ? hi(n) : {}
|
|
2522
3106
|
},
|
|
2523
3107
|
err: null
|
|
2524
3108
|
};
|
|
2525
3109
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2526
|
-
for (var o, a = !1, s = [],
|
|
2527
|
-
if (
|
|
3110
|
+
for (var o, a = !1, s = [], c = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
|
3111
|
+
if (l.length === 0) {
|
|
2528
3112
|
var d = this.clonePosition();
|
|
2529
3113
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2530
|
-
var m = this.tryParseDecimalInteger(
|
|
3114
|
+
var m = this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_SELECTOR, N.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2531
3115
|
if (m.err)
|
|
2532
3116
|
return m;
|
|
2533
|
-
|
|
3117
|
+
u = A(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
|
|
2534
3118
|
} else
|
|
2535
3119
|
break;
|
|
2536
3120
|
}
|
|
2537
|
-
if (
|
|
2538
|
-
return this.error(r === "select" ?
|
|
2539
|
-
|
|
2540
|
-
var
|
|
3121
|
+
if (c.has(l))
|
|
3122
|
+
return this.error(r === "select" ? N.DUPLICATE_SELECT_ARGUMENT_SELECTOR : N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3123
|
+
l === "other" && (a = !0), this.bumpSpace();
|
|
3124
|
+
var y = this.clonePosition();
|
|
2541
3125
|
if (!this.bumpIf("{"))
|
|
2542
|
-
return this.error(r === "select" ?
|
|
2543
|
-
var
|
|
3126
|
+
return this.error(r === "select" ? N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : N.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
|
|
3127
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3128
|
+
if (g.err)
|
|
3129
|
+
return g;
|
|
3130
|
+
var f = this.tryParseArgumentClose(y);
|
|
2544
3131
|
if (f.err)
|
|
2545
3132
|
return f;
|
|
2546
|
-
var p = this.tryParseArgumentClose(v);
|
|
2547
|
-
if (p.err)
|
|
2548
|
-
return p;
|
|
2549
3133
|
s.push([
|
|
2550
|
-
|
|
3134
|
+
l,
|
|
2551
3135
|
{
|
|
2552
|
-
value:
|
|
2553
|
-
location:
|
|
3136
|
+
value: g.val,
|
|
3137
|
+
location: A(y, this.clonePosition())
|
|
2554
3138
|
}
|
|
2555
|
-
]),
|
|
3139
|
+
]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
2556
3140
|
}
|
|
2557
|
-
return s.length === 0 ? this.error(r === "select" ?
|
|
3141
|
+
return s.length === 0 ? this.error(r === "select" ? N.EXPECT_SELECT_ARGUMENT_SELECTOR : N.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(N.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2558
3142
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2559
3143
|
var n = 1, i = this.clonePosition();
|
|
2560
3144
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2565,8 +3149,8 @@ var Wn = (
|
|
|
2565
3149
|
else
|
|
2566
3150
|
break;
|
|
2567
3151
|
}
|
|
2568
|
-
var
|
|
2569
|
-
return o ? (a *= n,
|
|
3152
|
+
var c = A(i, this.clonePosition());
|
|
3153
|
+
return o ? (a *= n, Ci(a) ? { val: a, err: null } : this.error(r, c)) : this.error(t, c);
|
|
2570
3154
|
}, e.prototype.offset = function() {
|
|
2571
3155
|
return this.position.offset;
|
|
2572
3156
|
}, e.prototype.isEOF = function() {
|
|
@@ -2581,7 +3165,7 @@ var Wn = (
|
|
|
2581
3165
|
var t = this.position.offset;
|
|
2582
3166
|
if (t >= this.message.length)
|
|
2583
3167
|
throw Error("out of bound");
|
|
2584
|
-
var r =
|
|
3168
|
+
var r = kr(this.message, t);
|
|
2585
3169
|
if (r === void 0)
|
|
2586
3170
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2587
3171
|
return r;
|
|
@@ -2600,7 +3184,7 @@ var Wn = (
|
|
|
2600
3184
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
2601
3185
|
}
|
|
2602
3186
|
}, e.prototype.bumpIf = function(t) {
|
|
2603
|
-
if (
|
|
3187
|
+
if (Pt(this.message, t, this.offset())) {
|
|
2604
3188
|
for (var r = 0; r < t.length; r++)
|
|
2605
3189
|
this.bump();
|
|
2606
3190
|
return !0;
|
|
@@ -2622,7 +3206,7 @@ var Wn = (
|
|
|
2622
3206
|
break;
|
|
2623
3207
|
}
|
|
2624
3208
|
}, e.prototype.bumpSpace = function() {
|
|
2625
|
-
for (; !this.isEOF() &&
|
|
3209
|
+
for (; !this.isEOF() && Cr(this.char()); )
|
|
2626
3210
|
this.bump();
|
|
2627
3211
|
}, e.prototype.peek = function() {
|
|
2628
3212
|
if (this.isEOF())
|
|
@@ -2632,47 +3216,47 @@ var Wn = (
|
|
|
2632
3216
|
}, e;
|
|
2633
3217
|
}()
|
|
2634
3218
|
);
|
|
2635
|
-
function
|
|
3219
|
+
function dt(e) {
|
|
2636
3220
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2637
3221
|
}
|
|
2638
|
-
function
|
|
2639
|
-
return
|
|
3222
|
+
function Mi(e) {
|
|
3223
|
+
return dt(e) || e === 47;
|
|
2640
3224
|
}
|
|
2641
|
-
function
|
|
3225
|
+
function Ni(e) {
|
|
2642
3226
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
2643
3227
|
}
|
|
2644
|
-
function
|
|
3228
|
+
function Cr(e) {
|
|
2645
3229
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2646
3230
|
}
|
|
2647
|
-
function
|
|
3231
|
+
function Ai(e) {
|
|
2648
3232
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
2649
3233
|
}
|
|
2650
|
-
function
|
|
3234
|
+
function mt(e) {
|
|
2651
3235
|
e.forEach(function(t) {
|
|
2652
|
-
if (delete t.location,
|
|
3236
|
+
if (delete t.location, mr(t) || fr(t))
|
|
2653
3237
|
for (var r in t.options)
|
|
2654
|
-
delete t.options[r].location,
|
|
3238
|
+
delete t.options[r].location, mt(t.options[r].value);
|
|
2655
3239
|
else
|
|
2656
|
-
|
|
3240
|
+
ur(t) && gr(t.style) || (hr(t) || dr(t)) && lt(t.style) ? delete t.style.location : pr(t) && mt(t.children);
|
|
2657
3241
|
});
|
|
2658
3242
|
}
|
|
2659
|
-
function
|
|
2660
|
-
t === void 0 && (t = {}), t =
|
|
2661
|
-
var r = new
|
|
3243
|
+
function Hi(e, t) {
|
|
3244
|
+
t === void 0 && (t = {}), t = Ue({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3245
|
+
var r = new Ti(e, t).parse();
|
|
2662
3246
|
if (r.err) {
|
|
2663
|
-
var n = SyntaxError(
|
|
3247
|
+
var n = SyntaxError(N[r.err.kind]);
|
|
2664
3248
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
2665
3249
|
}
|
|
2666
|
-
return t != null && t.captureLocation ||
|
|
3250
|
+
return t != null && t.captureLocation || mt(r.val), r.val;
|
|
2667
3251
|
}
|
|
2668
|
-
var
|
|
3252
|
+
var he;
|
|
2669
3253
|
(function(e) {
|
|
2670
3254
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
2671
|
-
})(
|
|
2672
|
-
var
|
|
3255
|
+
})(he || (he = {}));
|
|
3256
|
+
var Ve = (
|
|
2673
3257
|
/** @class */
|
|
2674
3258
|
function(e) {
|
|
2675
|
-
|
|
3259
|
+
$e(t, e);
|
|
2676
3260
|
function t(r, n, i) {
|
|
2677
3261
|
var o = e.call(this, r) || this;
|
|
2678
3262
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -2681,155 +3265,155 @@ var Oe = (
|
|
|
2681
3265
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
2682
3266
|
}, t;
|
|
2683
3267
|
}(Error)
|
|
2684
|
-
),
|
|
3268
|
+
), zt = (
|
|
2685
3269
|
/** @class */
|
|
2686
3270
|
function(e) {
|
|
2687
|
-
|
|
3271
|
+
$e(t, e);
|
|
2688
3272
|
function t(r, n, i, o) {
|
|
2689
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3273
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), he.INVALID_VALUE, o) || this;
|
|
2690
3274
|
}
|
|
2691
3275
|
return t;
|
|
2692
|
-
}(
|
|
2693
|
-
),
|
|
3276
|
+
}(Ve)
|
|
3277
|
+
), Pi = (
|
|
2694
3278
|
/** @class */
|
|
2695
3279
|
function(e) {
|
|
2696
|
-
|
|
3280
|
+
$e(t, e);
|
|
2697
3281
|
function t(r, n, i) {
|
|
2698
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3282
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), he.INVALID_VALUE, i) || this;
|
|
2699
3283
|
}
|
|
2700
3284
|
return t;
|
|
2701
|
-
}(
|
|
2702
|
-
),
|
|
3285
|
+
}(Ve)
|
|
3286
|
+
), Bi = (
|
|
2703
3287
|
/** @class */
|
|
2704
3288
|
function(e) {
|
|
2705
|
-
|
|
3289
|
+
$e(t, e);
|
|
2706
3290
|
function t(r, n) {
|
|
2707
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3291
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), he.MISSING_VALUE, n) || this;
|
|
2708
3292
|
}
|
|
2709
3293
|
return t;
|
|
2710
|
-
}(
|
|
2711
|
-
),
|
|
3294
|
+
}(Ve)
|
|
3295
|
+
), G;
|
|
2712
3296
|
(function(e) {
|
|
2713
3297
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
2714
|
-
})(
|
|
2715
|
-
function
|
|
3298
|
+
})(G || (G = {}));
|
|
3299
|
+
function Oi(e) {
|
|
2716
3300
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
2717
3301
|
var n = t[t.length - 1];
|
|
2718
|
-
return !n || n.type !==
|
|
3302
|
+
return !n || n.type !== G.literal || r.type !== G.literal ? t.push(r) : n.value += r.value, t;
|
|
2719
3303
|
}, []);
|
|
2720
3304
|
}
|
|
2721
|
-
function
|
|
3305
|
+
function zi(e) {
|
|
2722
3306
|
return typeof e == "function";
|
|
2723
3307
|
}
|
|
2724
|
-
function
|
|
2725
|
-
if (e.length === 1 &&
|
|
3308
|
+
function je(e, t, r, n, i, o, a) {
|
|
3309
|
+
if (e.length === 1 && Mt(e[0]))
|
|
2726
3310
|
return [
|
|
2727
3311
|
{
|
|
2728
|
-
type:
|
|
3312
|
+
type: G.literal,
|
|
2729
3313
|
value: e[0].value
|
|
2730
3314
|
}
|
|
2731
3315
|
];
|
|
2732
|
-
for (var s = [],
|
|
2733
|
-
var
|
|
2734
|
-
if (
|
|
3316
|
+
for (var s = [], c = 0, l = e; c < l.length; c++) {
|
|
3317
|
+
var u = l[c];
|
|
3318
|
+
if (Mt(u)) {
|
|
2735
3319
|
s.push({
|
|
2736
|
-
type:
|
|
2737
|
-
value:
|
|
3320
|
+
type: G.literal,
|
|
3321
|
+
value: u.value
|
|
2738
3322
|
});
|
|
2739
3323
|
continue;
|
|
2740
3324
|
}
|
|
2741
|
-
if (
|
|
3325
|
+
if (ni(u)) {
|
|
2742
3326
|
typeof o == "number" && s.push({
|
|
2743
|
-
type:
|
|
3327
|
+
type: G.literal,
|
|
2744
3328
|
value: r.getNumberFormat(t).format(o)
|
|
2745
3329
|
});
|
|
2746
3330
|
continue;
|
|
2747
3331
|
}
|
|
2748
|
-
var d =
|
|
3332
|
+
var d = u.value;
|
|
2749
3333
|
if (!(i && d in i))
|
|
2750
|
-
throw new
|
|
3334
|
+
throw new Bi(d, a);
|
|
2751
3335
|
var m = i[d];
|
|
2752
|
-
if (
|
|
3336
|
+
if (ri(u)) {
|
|
2753
3337
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
2754
|
-
type: typeof m == "string" ?
|
|
3338
|
+
type: typeof m == "string" ? G.literal : G.object,
|
|
2755
3339
|
value: m
|
|
2756
3340
|
});
|
|
2757
3341
|
continue;
|
|
2758
3342
|
}
|
|
2759
|
-
if (
|
|
2760
|
-
var
|
|
3343
|
+
if (hr(u)) {
|
|
3344
|
+
var y = typeof u.style == "string" ? n.date[u.style] : lt(u.style) ? u.style.parsedOptions : void 0;
|
|
2761
3345
|
s.push({
|
|
2762
|
-
type:
|
|
2763
|
-
value: r.getDateTimeFormat(t,
|
|
3346
|
+
type: G.literal,
|
|
3347
|
+
value: r.getDateTimeFormat(t, y).format(m)
|
|
2764
3348
|
});
|
|
2765
3349
|
continue;
|
|
2766
3350
|
}
|
|
2767
|
-
if (
|
|
2768
|
-
var
|
|
3351
|
+
if (dr(u)) {
|
|
3352
|
+
var y = typeof u.style == "string" ? n.time[u.style] : lt(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
2769
3353
|
s.push({
|
|
2770
|
-
type:
|
|
2771
|
-
value: r.getDateTimeFormat(t,
|
|
3354
|
+
type: G.literal,
|
|
3355
|
+
value: r.getDateTimeFormat(t, y).format(m)
|
|
2772
3356
|
});
|
|
2773
3357
|
continue;
|
|
2774
3358
|
}
|
|
2775
|
-
if (
|
|
2776
|
-
var
|
|
2777
|
-
|
|
2778
|
-
type:
|
|
2779
|
-
value: r.getNumberFormat(t,
|
|
3359
|
+
if (ur(u)) {
|
|
3360
|
+
var y = typeof u.style == "string" ? n.number[u.style] : gr(u.style) ? u.style.parsedOptions : void 0;
|
|
3361
|
+
y && y.scale && (m = m * (y.scale || 1)), s.push({
|
|
3362
|
+
type: G.literal,
|
|
3363
|
+
value: r.getNumberFormat(t, y).format(m)
|
|
2780
3364
|
});
|
|
2781
3365
|
continue;
|
|
2782
3366
|
}
|
|
2783
|
-
if (
|
|
2784
|
-
var
|
|
2785
|
-
if (!
|
|
2786
|
-
throw new
|
|
2787
|
-
var _ =
|
|
2788
|
-
return
|
|
3367
|
+
if (pr(u)) {
|
|
3368
|
+
var g = u.children, f = u.value, S = i[f];
|
|
3369
|
+
if (!zi(S))
|
|
3370
|
+
throw new Pi(f, "function", a);
|
|
3371
|
+
var _ = je(g, t, r, n, i, o), v = S(_.map(function(E) {
|
|
3372
|
+
return E.value;
|
|
2789
3373
|
}));
|
|
2790
|
-
Array.isArray(
|
|
3374
|
+
Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(E) {
|
|
2791
3375
|
return {
|
|
2792
|
-
type: typeof
|
|
2793
|
-
value:
|
|
3376
|
+
type: typeof E == "string" ? G.literal : G.object,
|
|
3377
|
+
value: E
|
|
2794
3378
|
};
|
|
2795
3379
|
}));
|
|
2796
3380
|
}
|
|
2797
|
-
if (
|
|
2798
|
-
var
|
|
2799
|
-
if (!
|
|
2800
|
-
throw new
|
|
2801
|
-
s.push.apply(s,
|
|
3381
|
+
if (mr(u)) {
|
|
3382
|
+
var C = u.options[m] || u.options.other;
|
|
3383
|
+
if (!C)
|
|
3384
|
+
throw new zt(u.value, m, Object.keys(u.options), a);
|
|
3385
|
+
s.push.apply(s, je(C.value, t, r, n, i));
|
|
2802
3386
|
continue;
|
|
2803
3387
|
}
|
|
2804
|
-
if (
|
|
2805
|
-
var
|
|
2806
|
-
if (!
|
|
3388
|
+
if (fr(u)) {
|
|
3389
|
+
var C = u.options["=".concat(m)];
|
|
3390
|
+
if (!C) {
|
|
2807
3391
|
if (!Intl.PluralRules)
|
|
2808
|
-
throw new
|
|
3392
|
+
throw new Ve(`Intl.PluralRules is not available in this environment.
|
|
2809
3393
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2810
|
-
`,
|
|
2811
|
-
var H = r.getPluralRules(t, { type:
|
|
2812
|
-
|
|
3394
|
+
`, he.MISSING_INTL_API, a);
|
|
3395
|
+
var H = r.getPluralRules(t, { type: u.pluralType }).select(m - (u.offset || 0));
|
|
3396
|
+
C = u.options[H] || u.options.other;
|
|
2813
3397
|
}
|
|
2814
|
-
if (!
|
|
2815
|
-
throw new
|
|
2816
|
-
s.push.apply(s,
|
|
3398
|
+
if (!C)
|
|
3399
|
+
throw new zt(u.value, m, Object.keys(u.options), a);
|
|
3400
|
+
s.push.apply(s, je(C.value, t, r, n, i, m - (u.offset || 0)));
|
|
2817
3401
|
continue;
|
|
2818
3402
|
}
|
|
2819
3403
|
}
|
|
2820
|
-
return
|
|
3404
|
+
return Oi(s);
|
|
2821
3405
|
}
|
|
2822
|
-
function
|
|
2823
|
-
return t ?
|
|
2824
|
-
return r[n] =
|
|
3406
|
+
function Li(e, t) {
|
|
3407
|
+
return t ? Z(Z(Z({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3408
|
+
return r[n] = Z(Z({}, e[n]), t[n] || {}), r;
|
|
2825
3409
|
}, {})) : e;
|
|
2826
3410
|
}
|
|
2827
|
-
function
|
|
3411
|
+
function ji(e, t) {
|
|
2828
3412
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
2829
|
-
return r[n] =
|
|
2830
|
-
},
|
|
3413
|
+
return r[n] = Li(e[n], t[n]), r;
|
|
3414
|
+
}, Z({}, e)) : e;
|
|
2831
3415
|
}
|
|
2832
|
-
function
|
|
3416
|
+
function rt(e) {
|
|
2833
3417
|
return {
|
|
2834
3418
|
create: function() {
|
|
2835
3419
|
return {
|
|
@@ -2843,39 +3427,39 @@ function Ge(e) {
|
|
|
2843
3427
|
}
|
|
2844
3428
|
};
|
|
2845
3429
|
}
|
|
2846
|
-
function
|
|
3430
|
+
function Ii(e) {
|
|
2847
3431
|
return e === void 0 && (e = {
|
|
2848
3432
|
number: {},
|
|
2849
3433
|
dateTime: {},
|
|
2850
3434
|
pluralRules: {}
|
|
2851
3435
|
}), {
|
|
2852
|
-
getNumberFormat:
|
|
3436
|
+
getNumberFormat: Ke(function() {
|
|
2853
3437
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2854
3438
|
r[n] = arguments[n];
|
|
2855
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3439
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ye([void 0], r, !1)))();
|
|
2856
3440
|
}, {
|
|
2857
|
-
cache:
|
|
2858
|
-
strategy:
|
|
3441
|
+
cache: rt(e.number),
|
|
3442
|
+
strategy: et.variadic
|
|
2859
3443
|
}),
|
|
2860
|
-
getDateTimeFormat:
|
|
3444
|
+
getDateTimeFormat: Ke(function() {
|
|
2861
3445
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2862
3446
|
r[n] = arguments[n];
|
|
2863
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3447
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ye([void 0], r, !1)))();
|
|
2864
3448
|
}, {
|
|
2865
|
-
cache:
|
|
2866
|
-
strategy:
|
|
3449
|
+
cache: rt(e.dateTime),
|
|
3450
|
+
strategy: et.variadic
|
|
2867
3451
|
}),
|
|
2868
|
-
getPluralRules:
|
|
3452
|
+
getPluralRules: Ke(function() {
|
|
2869
3453
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2870
3454
|
r[n] = arguments[n];
|
|
2871
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3455
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ye([void 0], r, !1)))();
|
|
2872
3456
|
}, {
|
|
2873
|
-
cache:
|
|
2874
|
-
strategy:
|
|
3457
|
+
cache: rt(e.pluralRules),
|
|
3458
|
+
strategy: et.variadic
|
|
2875
3459
|
})
|
|
2876
3460
|
};
|
|
2877
3461
|
}
|
|
2878
|
-
var
|
|
3462
|
+
var Ri = (
|
|
2879
3463
|
/** @class */
|
|
2880
3464
|
function() {
|
|
2881
3465
|
function e(t, r, n, i) {
|
|
@@ -2885,20 +3469,20 @@ var oi = (
|
|
|
2885
3469
|
number: {},
|
|
2886
3470
|
dateTime: {},
|
|
2887
3471
|
pluralRules: {}
|
|
2888
|
-
}, this.format = function(
|
|
2889
|
-
var
|
|
2890
|
-
if (
|
|
2891
|
-
return
|
|
2892
|
-
var
|
|
2893
|
-
return !d.length || m.type !==
|
|
3472
|
+
}, this.format = function(c) {
|
|
3473
|
+
var l = o.formatToParts(c);
|
|
3474
|
+
if (l.length === 1)
|
|
3475
|
+
return l[0].value;
|
|
3476
|
+
var u = l.reduce(function(d, m) {
|
|
3477
|
+
return !d.length || m.type !== G.literal || typeof d[d.length - 1] != "string" ? d.push(m.value) : d[d.length - 1] += m.value, d;
|
|
2894
3478
|
}, []);
|
|
2895
|
-
return
|
|
2896
|
-
}, this.formatToParts = function(
|
|
2897
|
-
return
|
|
3479
|
+
return u.length <= 1 ? u[0] || "" : u;
|
|
3480
|
+
}, this.formatToParts = function(c) {
|
|
3481
|
+
return je(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
2898
3482
|
}, this.resolvedOptions = function() {
|
|
2899
|
-
var
|
|
3483
|
+
var c;
|
|
2900
3484
|
return {
|
|
2901
|
-
locale: ((
|
|
3485
|
+
locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
2902
3486
|
};
|
|
2903
3487
|
}, this.getAst = function() {
|
|
2904
3488
|
return o.ast;
|
|
@@ -2907,13 +3491,13 @@ var oi = (
|
|
|
2907
3491
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
2908
3492
|
var a = i || {};
|
|
2909
3493
|
a.formatters;
|
|
2910
|
-
var s =
|
|
2911
|
-
this.ast = e.__parse(t,
|
|
3494
|
+
var s = Wn(a, ["formatters"]);
|
|
3495
|
+
this.ast = e.__parse(t, Z(Z({}, s), { locale: this.resolvedLocale }));
|
|
2912
3496
|
} else
|
|
2913
3497
|
this.ast = t;
|
|
2914
3498
|
if (!Array.isArray(this.ast))
|
|
2915
3499
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
2916
|
-
this.formats =
|
|
3500
|
+
this.formats = ji(e.formats, n), this.formatters = i && i.formatters || Ii(this.formatterCache);
|
|
2917
3501
|
}
|
|
2918
3502
|
return Object.defineProperty(e, "defaultLocale", {
|
|
2919
3503
|
get: function() {
|
|
@@ -2926,7 +3510,7 @@ var oi = (
|
|
|
2926
3510
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
2927
3511
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
2928
3512
|
}
|
|
2929
|
-
}, e.__parse =
|
|
3513
|
+
}, e.__parse = Hi, e.formats = {
|
|
2930
3514
|
number: {
|
|
2931
3515
|
integer: {
|
|
2932
3516
|
maximumFractionDigits: 0
|
|
@@ -2987,7 +3571,7 @@ var oi = (
|
|
|
2987
3571
|
}, e;
|
|
2988
3572
|
}()
|
|
2989
3573
|
);
|
|
2990
|
-
function
|
|
3574
|
+
function Ui(e, t) {
|
|
2991
3575
|
if (t == null)
|
|
2992
3576
|
return;
|
|
2993
3577
|
if (t in e)
|
|
@@ -3008,92 +3592,92 @@ function ai(e, t) {
|
|
|
3008
3592
|
n = void 0;
|
|
3009
3593
|
return n;
|
|
3010
3594
|
}
|
|
3011
|
-
const
|
|
3595
|
+
const Y = {}, Di = (e, t, r) => r && (t in Y || (Y[t] = {}), e in Y[t] || (Y[t][e] = r), r), Sr = (e, t) => {
|
|
3012
3596
|
if (t == null)
|
|
3013
3597
|
return;
|
|
3014
|
-
if (t in
|
|
3015
|
-
return
|
|
3016
|
-
const r =
|
|
3598
|
+
if (t in Y && e in Y[t])
|
|
3599
|
+
return Y[t][e];
|
|
3600
|
+
const r = Xe(t);
|
|
3017
3601
|
for (let n = 0; n < r.length; n++) {
|
|
3018
|
-
const i = r[n], o =
|
|
3602
|
+
const i = r[n], o = Fi(i, e);
|
|
3019
3603
|
if (o)
|
|
3020
|
-
return
|
|
3604
|
+
return Di(e, t, o);
|
|
3021
3605
|
}
|
|
3022
3606
|
};
|
|
3023
|
-
let
|
|
3024
|
-
const
|
|
3025
|
-
function
|
|
3026
|
-
return
|
|
3607
|
+
let vt;
|
|
3608
|
+
const Me = Fe({});
|
|
3609
|
+
function Gi(e) {
|
|
3610
|
+
return vt[e] || null;
|
|
3027
3611
|
}
|
|
3028
|
-
function
|
|
3029
|
-
return e in
|
|
3612
|
+
function xr(e) {
|
|
3613
|
+
return e in vt;
|
|
3030
3614
|
}
|
|
3031
|
-
function
|
|
3032
|
-
if (!
|
|
3615
|
+
function Fi(e, t) {
|
|
3616
|
+
if (!xr(e))
|
|
3033
3617
|
return null;
|
|
3034
|
-
const r =
|
|
3035
|
-
return
|
|
3618
|
+
const r = Gi(e);
|
|
3619
|
+
return Ui(r, t);
|
|
3036
3620
|
}
|
|
3037
|
-
function
|
|
3621
|
+
function $i(e) {
|
|
3038
3622
|
if (e == null)
|
|
3039
3623
|
return;
|
|
3040
|
-
const t =
|
|
3624
|
+
const t = Xe(e);
|
|
3041
3625
|
for (let r = 0; r < t.length; r++) {
|
|
3042
3626
|
const n = t[r];
|
|
3043
|
-
if (
|
|
3627
|
+
if (xr(n))
|
|
3044
3628
|
return n;
|
|
3045
3629
|
}
|
|
3046
3630
|
}
|
|
3047
|
-
function
|
|
3048
|
-
delete
|
|
3631
|
+
function wr(e, ...t) {
|
|
3632
|
+
delete Y[e], Me.update((r) => (r[e] = qn.all([r[e] || {}, ...t]), r));
|
|
3049
3633
|
}
|
|
3050
|
-
|
|
3051
|
-
[
|
|
3634
|
+
fe(
|
|
3635
|
+
[Me],
|
|
3052
3636
|
([e]) => Object.keys(e)
|
|
3053
3637
|
);
|
|
3054
|
-
|
|
3055
|
-
const
|
|
3056
|
-
function
|
|
3057
|
-
|
|
3638
|
+
Me.subscribe((e) => vt = e);
|
|
3639
|
+
const Ie = {};
|
|
3640
|
+
function Vi(e, t) {
|
|
3641
|
+
Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
|
|
3058
3642
|
}
|
|
3059
|
-
function
|
|
3060
|
-
return
|
|
3643
|
+
function Tr(e) {
|
|
3644
|
+
return Ie[e];
|
|
3061
3645
|
}
|
|
3062
|
-
function
|
|
3063
|
-
return
|
|
3064
|
-
const r =
|
|
3646
|
+
function Xi(e) {
|
|
3647
|
+
return Xe(e).map((t) => {
|
|
3648
|
+
const r = Tr(t);
|
|
3065
3649
|
return [t, r ? [...r] : []];
|
|
3066
3650
|
}).filter(([, t]) => t.length > 0);
|
|
3067
3651
|
}
|
|
3068
|
-
function
|
|
3069
|
-
return e == null ? !1 :
|
|
3652
|
+
function ft(e) {
|
|
3653
|
+
return e == null ? !1 : Xe(e).some(
|
|
3070
3654
|
(t) => {
|
|
3071
3655
|
var r;
|
|
3072
|
-
return (r =
|
|
3656
|
+
return (r = Tr(t)) == null ? void 0 : r.size;
|
|
3073
3657
|
}
|
|
3074
3658
|
);
|
|
3075
3659
|
}
|
|
3076
|
-
function
|
|
3660
|
+
function qi(e, t) {
|
|
3077
3661
|
return Promise.all(
|
|
3078
|
-
t.map((n) => (
|
|
3079
|
-
).then((n) =>
|
|
3662
|
+
t.map((n) => (Vi(e, n), n().then((i) => i.default || i)))
|
|
3663
|
+
).then((n) => wr(e, ...n));
|
|
3080
3664
|
}
|
|
3081
|
-
const
|
|
3082
|
-
function
|
|
3083
|
-
if (!
|
|
3084
|
-
return e in
|
|
3085
|
-
const t =
|
|
3086
|
-
return
|
|
3665
|
+
const ke = {};
|
|
3666
|
+
function Mr(e) {
|
|
3667
|
+
if (!ft(e))
|
|
3668
|
+
return e in ke ? ke[e] : Promise.resolve();
|
|
3669
|
+
const t = Xi(e);
|
|
3670
|
+
return ke[e] = Promise.all(
|
|
3087
3671
|
t.map(
|
|
3088
|
-
([r, n]) =>
|
|
3672
|
+
([r, n]) => qi(r, n)
|
|
3089
3673
|
)
|
|
3090
3674
|
).then(() => {
|
|
3091
|
-
if (
|
|
3092
|
-
return
|
|
3093
|
-
delete
|
|
3094
|
-
}),
|
|
3675
|
+
if (ft(e))
|
|
3676
|
+
return Mr(e);
|
|
3677
|
+
delete ke[e];
|
|
3678
|
+
}), ke[e];
|
|
3095
3679
|
}
|
|
3096
|
-
const
|
|
3680
|
+
const Wi = {
|
|
3097
3681
|
number: {
|
|
3098
3682
|
scientific: { notation: "scientific" },
|
|
3099
3683
|
engineering: { notation: "engineering" },
|
|
@@ -3122,159 +3706,159 @@ const pi = {
|
|
|
3122
3706
|
timeZoneName: "short"
|
|
3123
3707
|
}
|
|
3124
3708
|
}
|
|
3125
|
-
},
|
|
3709
|
+
}, Zi = {
|
|
3126
3710
|
fallbackLocale: null,
|
|
3127
3711
|
loadingDelay: 200,
|
|
3128
|
-
formats:
|
|
3712
|
+
formats: Wi,
|
|
3129
3713
|
warnOnMissingMessages: !0,
|
|
3130
3714
|
handleMissingMessage: void 0,
|
|
3131
3715
|
ignoreTag: !0
|
|
3132
|
-
},
|
|
3133
|
-
function
|
|
3134
|
-
return
|
|
3716
|
+
}, Ji = Zi;
|
|
3717
|
+
function de() {
|
|
3718
|
+
return Ji;
|
|
3135
3719
|
}
|
|
3136
|
-
const
|
|
3137
|
-
var
|
|
3720
|
+
const nt = Fe(!1);
|
|
3721
|
+
var Qi = Object.defineProperty, Yi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? Qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ro = (e, t) => {
|
|
3138
3722
|
for (var r in t || (t = {}))
|
|
3139
|
-
|
|
3140
|
-
if (
|
|
3141
|
-
for (var r of
|
|
3142
|
-
|
|
3723
|
+
eo.call(t, r) && jt(e, r, t[r]);
|
|
3724
|
+
if (Lt)
|
|
3725
|
+
for (var r of Lt(t))
|
|
3726
|
+
to.call(t, r) && jt(e, r, t[r]);
|
|
3143
3727
|
return e;
|
|
3144
|
-
},
|
|
3145
|
-
let
|
|
3146
|
-
const
|
|
3147
|
-
function
|
|
3728
|
+
}, no = (e, t) => Yi(e, Ki(t));
|
|
3729
|
+
let pt;
|
|
3730
|
+
const De = Fe(null);
|
|
3731
|
+
function It(e) {
|
|
3148
3732
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3149
3733
|
}
|
|
3150
|
-
function
|
|
3151
|
-
const r =
|
|
3152
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3734
|
+
function Xe(e, t = de().fallbackLocale) {
|
|
3735
|
+
const r = It(e);
|
|
3736
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
|
|
3153
3737
|
}
|
|
3154
|
-
function
|
|
3155
|
-
return
|
|
3738
|
+
function te() {
|
|
3739
|
+
return pt != null ? pt : void 0;
|
|
3156
3740
|
}
|
|
3157
|
-
|
|
3158
|
-
|
|
3741
|
+
De.subscribe((e) => {
|
|
3742
|
+
pt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3159
3743
|
});
|
|
3160
|
-
const
|
|
3161
|
-
if (e &&
|
|
3162
|
-
const { loadingDelay: t } =
|
|
3744
|
+
const io = (e) => {
|
|
3745
|
+
if (e && $i(e) && ft(e)) {
|
|
3746
|
+
const { loadingDelay: t } = de();
|
|
3163
3747
|
let r;
|
|
3164
|
-
return typeof window != "undefined" &&
|
|
3165
|
-
() =>
|
|
3748
|
+
return typeof window != "undefined" && te() != null && t ? r = window.setTimeout(
|
|
3749
|
+
() => nt.set(!0),
|
|
3166
3750
|
t
|
|
3167
|
-
) :
|
|
3168
|
-
|
|
3751
|
+
) : nt.set(!0), Mr(e).then(() => {
|
|
3752
|
+
De.set(e);
|
|
3169
3753
|
}).finally(() => {
|
|
3170
|
-
clearTimeout(r),
|
|
3754
|
+
clearTimeout(r), nt.set(!1);
|
|
3171
3755
|
});
|
|
3172
3756
|
}
|
|
3173
|
-
return
|
|
3174
|
-
},
|
|
3175
|
-
set:
|
|
3176
|
-
}),
|
|
3757
|
+
return De.set(e);
|
|
3758
|
+
}, pe = no(ro({}, De), {
|
|
3759
|
+
set: io
|
|
3760
|
+
}), qe = (e) => {
|
|
3177
3761
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3178
3762
|
return (n) => {
|
|
3179
3763
|
const i = JSON.stringify(n);
|
|
3180
3764
|
return i in t ? t[i] : t[i] = e(n);
|
|
3181
3765
|
};
|
|
3182
3766
|
};
|
|
3183
|
-
var
|
|
3767
|
+
var oo = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Nr = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
|
|
3184
3768
|
for (var r in t || (t = {}))
|
|
3185
|
-
|
|
3186
|
-
if (
|
|
3187
|
-
for (var r of
|
|
3188
|
-
|
|
3769
|
+
Nr.call(t, r) && Rt(e, r, t[r]);
|
|
3770
|
+
if (Ge)
|
|
3771
|
+
for (var r of Ge(t))
|
|
3772
|
+
Ar.call(t, r) && Rt(e, r, t[r]);
|
|
3189
3773
|
return e;
|
|
3190
|
-
},
|
|
3774
|
+
}, ge = (e, t) => {
|
|
3191
3775
|
var r = {};
|
|
3192
3776
|
for (var n in e)
|
|
3193
|
-
|
|
3194
|
-
if (e != null &&
|
|
3195
|
-
for (var n of
|
|
3196
|
-
t.indexOf(n) < 0 &&
|
|
3777
|
+
Nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3778
|
+
if (e != null && Ge)
|
|
3779
|
+
for (var n of Ge(e))
|
|
3780
|
+
t.indexOf(n) < 0 && Ar.call(e, n) && (r[n] = e[n]);
|
|
3197
3781
|
return r;
|
|
3198
3782
|
};
|
|
3199
|
-
const
|
|
3200
|
-
const { formats: r } =
|
|
3783
|
+
const we = (e, t) => {
|
|
3784
|
+
const { formats: r } = de();
|
|
3201
3785
|
if (e in r && t in r[e])
|
|
3202
3786
|
return r[e][t];
|
|
3203
3787
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3204
|
-
},
|
|
3788
|
+
}, ao = qe(
|
|
3205
3789
|
(e) => {
|
|
3206
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3790
|
+
var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
|
|
3207
3791
|
if (r == null)
|
|
3208
3792
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3209
|
-
return n && (i =
|
|
3793
|
+
return n && (i = we("number", n)), new Intl.NumberFormat(r, i);
|
|
3210
3794
|
}
|
|
3211
|
-
),
|
|
3795
|
+
), so = qe(
|
|
3212
3796
|
(e) => {
|
|
3213
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3797
|
+
var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
|
|
3214
3798
|
if (r == null)
|
|
3215
3799
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3216
|
-
return n ? i =
|
|
3800
|
+
return n ? i = we("date", n) : Object.keys(i).length === 0 && (i = we("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3217
3801
|
}
|
|
3218
|
-
),
|
|
3802
|
+
), lo = qe(
|
|
3219
3803
|
(e) => {
|
|
3220
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3804
|
+
var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
|
|
3221
3805
|
if (r == null)
|
|
3222
3806
|
throw new Error(
|
|
3223
3807
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3224
3808
|
);
|
|
3225
|
-
return n ? i =
|
|
3809
|
+
return n ? i = we("time", n) : Object.keys(i).length === 0 && (i = we("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3226
3810
|
}
|
|
3227
|
-
),
|
|
3811
|
+
), co = (e = {}) => {
|
|
3228
3812
|
var t = e, {
|
|
3229
|
-
locale: r =
|
|
3230
|
-
} = t, n =
|
|
3813
|
+
locale: r = te()
|
|
3814
|
+
} = t, n = ge(t, [
|
|
3231
3815
|
"locale"
|
|
3232
3816
|
]);
|
|
3233
|
-
return
|
|
3234
|
-
},
|
|
3817
|
+
return ao(bt({ locale: r }, n));
|
|
3818
|
+
}, uo = (e = {}) => {
|
|
3235
3819
|
var t = e, {
|
|
3236
|
-
locale: r =
|
|
3237
|
-
} = t, n =
|
|
3820
|
+
locale: r = te()
|
|
3821
|
+
} = t, n = ge(t, [
|
|
3238
3822
|
"locale"
|
|
3239
3823
|
]);
|
|
3240
|
-
return
|
|
3241
|
-
},
|
|
3824
|
+
return so(bt({ locale: r }, n));
|
|
3825
|
+
}, ho = (e = {}) => {
|
|
3242
3826
|
var t = e, {
|
|
3243
|
-
locale: r =
|
|
3244
|
-
} = t, n =
|
|
3827
|
+
locale: r = te()
|
|
3828
|
+
} = t, n = ge(t, [
|
|
3245
3829
|
"locale"
|
|
3246
3830
|
]);
|
|
3247
|
-
return
|
|
3248
|
-
},
|
|
3831
|
+
return lo(bt({ locale: r }, n));
|
|
3832
|
+
}, mo = qe(
|
|
3249
3833
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3250
|
-
(e, t =
|
|
3251
|
-
ignoreTag:
|
|
3834
|
+
(e, t = te()) => new Ri(e, t, de().formats, {
|
|
3835
|
+
ignoreTag: de().ignoreTag
|
|
3252
3836
|
})
|
|
3253
|
-
),
|
|
3837
|
+
), fo = (e, t = {}) => {
|
|
3254
3838
|
var r, n, i, o;
|
|
3255
3839
|
let a = t;
|
|
3256
3840
|
typeof e == "object" && (a = e, e = a.id);
|
|
3257
3841
|
const {
|
|
3258
3842
|
values: s,
|
|
3259
|
-
locale:
|
|
3260
|
-
default:
|
|
3843
|
+
locale: c = te(),
|
|
3844
|
+
default: l
|
|
3261
3845
|
} = a;
|
|
3262
|
-
if (
|
|
3846
|
+
if (c == null)
|
|
3263
3847
|
throw new Error(
|
|
3264
3848
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3265
3849
|
);
|
|
3266
|
-
let
|
|
3267
|
-
if (!
|
|
3268
|
-
|
|
3269
|
-
else if (typeof
|
|
3850
|
+
let u = Sr(e, c);
|
|
3851
|
+
if (!u)
|
|
3852
|
+
u = (o = (i = (n = (r = de()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3853
|
+
else if (typeof u != "string")
|
|
3270
3854
|
return console.warn(
|
|
3271
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3272
|
-
),
|
|
3855
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3856
|
+
), u;
|
|
3273
3857
|
if (!s)
|
|
3274
|
-
return
|
|
3275
|
-
let d =
|
|
3858
|
+
return u;
|
|
3859
|
+
let d = u;
|
|
3276
3860
|
try {
|
|
3277
|
-
d =
|
|
3861
|
+
d = mo(u, c).format(s);
|
|
3278
3862
|
} catch (m) {
|
|
3279
3863
|
m instanceof Error && console.warn(
|
|
3280
3864
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3282,18 +3866,18 @@ const fe = (e, t) => {
|
|
|
3282
3866
|
);
|
|
3283
3867
|
}
|
|
3284
3868
|
return d;
|
|
3285
|
-
},
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
function
|
|
3291
|
-
|
|
3292
|
-
}
|
|
3293
|
-
function
|
|
3294
|
-
|
|
3295
|
-
}
|
|
3296
|
-
const
|
|
3869
|
+
}, po = (e, t) => ho(t).format(e), go = (e, t) => uo(t).format(e), _o = (e, t) => co(t).format(e), yo = (e, t = te()) => Sr(e, t), vo = fe([pe, Me], () => fo);
|
|
3870
|
+
fe([pe], () => po);
|
|
3871
|
+
fe([pe], () => go);
|
|
3872
|
+
fe([pe], () => _o);
|
|
3873
|
+
fe([pe, Me], () => yo);
|
|
3874
|
+
function Ut(e, t) {
|
|
3875
|
+
wr(e, t);
|
|
3876
|
+
}
|
|
3877
|
+
function bo(e) {
|
|
3878
|
+
pe.set(e);
|
|
3879
|
+
}
|
|
3880
|
+
const Dt = {
|
|
3297
3881
|
en: {
|
|
3298
3882
|
invalidUrl: "Failed to construct 'URL': Invalid URL",
|
|
3299
3883
|
fetchConsentsError: "Error: Could not fetch consents.",
|
|
@@ -3865,64 +4449,64 @@ if (typeof window != "undefined") {
|
|
|
3865
4449
|
}
|
|
3866
4450
|
};
|
|
3867
4451
|
};
|
|
3868
|
-
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-
|
|
4452
|
+
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-BWiHzg3I.js").then(({ default: t }) => {
|
|
3869
4453
|
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
|
|
3870
4454
|
});
|
|
3871
4455
|
}
|
|
3872
|
-
function
|
|
4456
|
+
function ko(e) {
|
|
3873
4457
|
let t, r;
|
|
3874
4458
|
return {
|
|
3875
4459
|
c() {
|
|
3876
|
-
t =
|
|
4460
|
+
t = it("svg"), r = it("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");
|
|
3877
4461
|
},
|
|
3878
4462
|
m(n, i) {
|
|
3879
|
-
L(n, t, i),
|
|
4463
|
+
L(n, t, i), x(t, r);
|
|
3880
4464
|
},
|
|
3881
|
-
p:
|
|
3882
|
-
i:
|
|
3883
|
-
o:
|
|
4465
|
+
p: $,
|
|
4466
|
+
i: $,
|
|
4467
|
+
o: $,
|
|
3884
4468
|
d(n) {
|
|
3885
|
-
n &&
|
|
4469
|
+
n && O(t);
|
|
3886
4470
|
}
|
|
3887
4471
|
};
|
|
3888
4472
|
}
|
|
3889
|
-
class
|
|
4473
|
+
class Eo extends ar {
|
|
3890
4474
|
constructor(t) {
|
|
3891
|
-
super(),
|
|
4475
|
+
super(), nr(this, t, null, ko, _t, {});
|
|
3892
4476
|
}
|
|
3893
4477
|
}
|
|
3894
|
-
customElements.define("circle-exclamation-icon",
|
|
3895
|
-
function
|
|
3896
|
-
|
|
4478
|
+
customElements.define("circle-exclamation-icon", or(Eo, {}, [], [], !0));
|
|
4479
|
+
function Co(e) {
|
|
4480
|
+
ln(e, "svelte-etk3ty", '.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');
|
|
3897
4481
|
}
|
|
3898
|
-
function
|
|
4482
|
+
function Gt(e, t, r) {
|
|
3899
4483
|
const n = e.slice();
|
|
3900
4484
|
return n[64] = t[r], n;
|
|
3901
4485
|
}
|
|
3902
|
-
function
|
|
4486
|
+
function Ft(e, t, r) {
|
|
3903
4487
|
const n = e.slice();
|
|
3904
4488
|
return n[61] = t[r], n[62] = t, n[63] = r, n;
|
|
3905
4489
|
}
|
|
3906
|
-
function
|
|
4490
|
+
function $t(e, t, r) {
|
|
3907
4491
|
const n = e.slice();
|
|
3908
4492
|
return n[64] = t[r], n;
|
|
3909
4493
|
}
|
|
3910
|
-
function
|
|
3911
|
-
let t, r, n =
|
|
4494
|
+
function So(e) {
|
|
4495
|
+
let t, r, n = le(
|
|
3912
4496
|
/*playerConsents*/
|
|
3913
4497
|
e[9]
|
|
3914
4498
|
), i = [];
|
|
3915
4499
|
for (let o = 0; o < n.length; o += 1)
|
|
3916
|
-
i[o] =
|
|
4500
|
+
i[o] = Vt(Gt(e, n, o));
|
|
3917
4501
|
return {
|
|
3918
4502
|
c() {
|
|
3919
|
-
t =
|
|
4503
|
+
t = w("div"), r = w("form");
|
|
3920
4504
|
for (let o = 0; o < i.length; o += 1)
|
|
3921
4505
|
i[o].c();
|
|
3922
|
-
|
|
4506
|
+
k(r, "class", "checkbox svelte-etk3ty"), k(t, "class", "legacyStyle");
|
|
3923
4507
|
},
|
|
3924
4508
|
m(o, a) {
|
|
3925
|
-
L(o, t, a),
|
|
4509
|
+
L(o, t, a), x(t, r);
|
|
3926
4510
|
for (let s = 0; s < i.length; s += 1)
|
|
3927
4511
|
i[s] && i[s].m(r, null);
|
|
3928
4512
|
e[31](r);
|
|
@@ -3930,14 +4514,14 @@ function Fi(e) {
|
|
|
3930
4514
|
p(o, a) {
|
|
3931
4515
|
if (a[0] & /*playerConsents, $_, handleInput*/
|
|
3932
4516
|
590336) {
|
|
3933
|
-
n =
|
|
4517
|
+
n = le(
|
|
3934
4518
|
/*playerConsents*/
|
|
3935
4519
|
o[9]
|
|
3936
4520
|
);
|
|
3937
4521
|
let s;
|
|
3938
4522
|
for (s = 0; s < n.length; s += 1) {
|
|
3939
|
-
const
|
|
3940
|
-
i[s] ? i[s].p(
|
|
4523
|
+
const c = Gt(o, n, s);
|
|
4524
|
+
i[s] ? i[s].p(c, a) : (i[s] = Vt(c), i[s].c(), i[s].m(r, null));
|
|
3941
4525
|
}
|
|
3942
4526
|
for (; s < i.length; s += 1)
|
|
3943
4527
|
i[s].d(1);
|
|
@@ -3945,11 +4529,11 @@ function Fi(e) {
|
|
|
3945
4529
|
}
|
|
3946
4530
|
},
|
|
3947
4531
|
d(o) {
|
|
3948
|
-
o &&
|
|
4532
|
+
o && O(t), yt(i, o), e[31](null);
|
|
3949
4533
|
}
|
|
3950
4534
|
};
|
|
3951
4535
|
}
|
|
3952
|
-
function
|
|
4536
|
+
function xo(e) {
|
|
3953
4537
|
let t = (
|
|
3954
4538
|
/*$_*/
|
|
3955
4539
|
e[16]("title") || /*$_*/
|
|
@@ -3957,106 +4541,106 @@ function Vi(e) {
|
|
|
3957
4541
|
), r, n, i, o = (
|
|
3958
4542
|
/*$_*/
|
|
3959
4543
|
(e[16]("saveButtonContent") || "Save Consents") + ""
|
|
3960
|
-
), a, s,
|
|
4544
|
+
), a, s, c, l, u, d = t && Xt(e), m = le(
|
|
3961
4545
|
/*consentsCategories*/
|
|
3962
4546
|
e[8]
|
|
3963
|
-
),
|
|
3964
|
-
for (let
|
|
3965
|
-
|
|
3966
|
-
let
|
|
4547
|
+
), y = [];
|
|
4548
|
+
for (let f = 0; f < m.length; f += 1)
|
|
4549
|
+
y[f] = Yt(Ft(e, m, f));
|
|
4550
|
+
let g = (
|
|
3967
4551
|
/*errorMessage*/
|
|
3968
|
-
e[6] &&
|
|
4552
|
+
e[6] && Kt(e)
|
|
3969
4553
|
);
|
|
3970
4554
|
return {
|
|
3971
4555
|
c() {
|
|
3972
|
-
d && d.c(), r =
|
|
3973
|
-
for (let
|
|
3974
|
-
|
|
3975
|
-
n =
|
|
4556
|
+
d && d.c(), r = F();
|
|
4557
|
+
for (let f = 0; f < y.length; f += 1)
|
|
4558
|
+
y[f].c();
|
|
4559
|
+
n = F(), i = w("button"), s = F(), g && g.c(), c = hn(), k(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
|
|
3976
4560
|
e[14];
|
|
3977
4561
|
},
|
|
3978
|
-
m(
|
|
3979
|
-
d && d.m(
|
|
3980
|
-
for (let _ = 0; _ <
|
|
3981
|
-
|
|
3982
|
-
L(
|
|
4562
|
+
m(f, S) {
|
|
4563
|
+
d && d.m(f, S), L(f, r, S);
|
|
4564
|
+
for (let _ = 0; _ < y.length; _ += 1)
|
|
4565
|
+
y[_] && y[_].m(f, S);
|
|
4566
|
+
L(f, n, S), L(f, i, S), i.innerHTML = o, L(f, s, S), g && g.m(f, S), L(f, c, S), l || (u = Ce(
|
|
3983
4567
|
i,
|
|
3984
4568
|
"click",
|
|
3985
4569
|
/*saveChanges*/
|
|
3986
4570
|
e[17]
|
|
3987
|
-
),
|
|
4571
|
+
), l = !0);
|
|
3988
4572
|
},
|
|
3989
|
-
p(
|
|
3990
|
-
if (
|
|
4573
|
+
p(f, S) {
|
|
4574
|
+
if (S[0] & /*$_*/
|
|
3991
4575
|
65536 && (t = /*$_*/
|
|
3992
|
-
|
|
3993
|
-
|
|
4576
|
+
f[16]("title") || /*$_*/
|
|
4577
|
+
f[16]("description")), t ? d ? d.p(f, S) : (d = Xt(f), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), S[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
|
|
3994
4578
|
867088) {
|
|
3995
|
-
m =
|
|
4579
|
+
m = le(
|
|
3996
4580
|
/*consentsCategories*/
|
|
3997
|
-
|
|
4581
|
+
f[8]
|
|
3998
4582
|
);
|
|
3999
4583
|
let _;
|
|
4000
4584
|
for (_ = 0; _ < m.length; _ += 1) {
|
|
4001
|
-
const
|
|
4002
|
-
|
|
4585
|
+
const v = Ft(f, m, _);
|
|
4586
|
+
y[_] ? y[_].p(v, S) : (y[_] = Yt(v), y[_].c(), y[_].m(n.parentNode, n));
|
|
4003
4587
|
}
|
|
4004
|
-
for (; _ <
|
|
4005
|
-
|
|
4006
|
-
|
|
4588
|
+
for (; _ < y.length; _ += 1)
|
|
4589
|
+
y[_].d(1);
|
|
4590
|
+
y.length = m.length;
|
|
4007
4591
|
}
|
|
4008
|
-
|
|
4592
|
+
S[0] & /*$_*/
|
|
4009
4593
|
65536 && o !== (o = /*$_*/
|
|
4010
|
-
(
|
|
4594
|
+
(f[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
|
|
4011
4595
|
16384 && a !== (a = !/*isValid*/
|
|
4012
|
-
|
|
4013
|
-
|
|
4596
|
+
f[14]) && (i.disabled = a), /*errorMessage*/
|
|
4597
|
+
f[6] ? g ? g.p(f, S) : (g = Kt(f), g.c(), g.m(c.parentNode, c)) : g && (g.d(1), g = null);
|
|
4014
4598
|
},
|
|
4015
|
-
d(
|
|
4016
|
-
|
|
4599
|
+
d(f) {
|
|
4600
|
+
f && (O(r), O(n), O(i), O(s), O(c)), d && d.d(f), yt(y, f), g && g.d(f), l = !1, u();
|
|
4017
4601
|
}
|
|
4018
4602
|
};
|
|
4019
4603
|
}
|
|
4020
|
-
function
|
|
4604
|
+
function wo(e) {
|
|
4021
4605
|
let t, r, n;
|
|
4022
4606
|
return {
|
|
4023
4607
|
c() {
|
|
4024
|
-
t =
|
|
4608
|
+
t = w("div"), r = w("strong"), n = ee(
|
|
4025
4609
|
/*fatalError*/
|
|
4026
4610
|
e[7]
|
|
4027
|
-
),
|
|
4611
|
+
), k(r, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ContainerCenter svelte-etk3ty");
|
|
4028
4612
|
},
|
|
4029
4613
|
m(i, o) {
|
|
4030
|
-
L(i, t, o),
|
|
4614
|
+
L(i, t, o), x(t, r), x(r, n);
|
|
4031
4615
|
},
|
|
4032
4616
|
p(i, o) {
|
|
4033
4617
|
o[0] & /*fatalError*/
|
|
4034
|
-
128 &&
|
|
4618
|
+
128 && Te(
|
|
4035
4619
|
n,
|
|
4036
4620
|
/*fatalError*/
|
|
4037
4621
|
i[7]
|
|
4038
4622
|
);
|
|
4039
4623
|
},
|
|
4040
4624
|
d(i) {
|
|
4041
|
-
i &&
|
|
4625
|
+
i && O(t);
|
|
4042
4626
|
}
|
|
4043
4627
|
};
|
|
4044
4628
|
}
|
|
4045
|
-
function
|
|
4629
|
+
function To(e) {
|
|
4046
4630
|
let t;
|
|
4047
4631
|
return {
|
|
4048
4632
|
c() {
|
|
4049
|
-
t =
|
|
4633
|
+
t = w("general-animation-loading"), K(
|
|
4050
4634
|
t,
|
|
4051
4635
|
"clientstyling",
|
|
4052
4636
|
/*clientstyling*/
|
|
4053
4637
|
e[1]
|
|
4054
|
-
),
|
|
4638
|
+
), K(
|
|
4055
4639
|
t,
|
|
4056
4640
|
"clientstylingurl",
|
|
4057
4641
|
/*clientstylingurl*/
|
|
4058
4642
|
e[2]
|
|
4059
|
-
),
|
|
4643
|
+
), K(
|
|
4060
4644
|
t,
|
|
4061
4645
|
"mbsource",
|
|
4062
4646
|
/*mbsource*/
|
|
@@ -4068,19 +4652,19 @@ function qi(e) {
|
|
|
4068
4652
|
},
|
|
4069
4653
|
p(r, n) {
|
|
4070
4654
|
n[0] & /*clientstyling*/
|
|
4071
|
-
2 &&
|
|
4655
|
+
2 && K(
|
|
4072
4656
|
t,
|
|
4073
4657
|
"clientstyling",
|
|
4074
4658
|
/*clientstyling*/
|
|
4075
4659
|
r[1]
|
|
4076
4660
|
), n[0] & /*clientstylingurl*/
|
|
4077
|
-
4 &&
|
|
4661
|
+
4 && K(
|
|
4078
4662
|
t,
|
|
4079
4663
|
"clientstylingurl",
|
|
4080
4664
|
/*clientstylingurl*/
|
|
4081
4665
|
r[2]
|
|
4082
4666
|
), n[0] & /*mbsource*/
|
|
4083
|
-
8 &&
|
|
4667
|
+
8 && K(
|
|
4084
4668
|
t,
|
|
4085
4669
|
"mbsource",
|
|
4086
4670
|
/*mbsource*/
|
|
@@ -4088,152 +4672,152 @@ function qi(e) {
|
|
|
4088
4672
|
);
|
|
4089
4673
|
},
|
|
4090
4674
|
d(r) {
|
|
4091
|
-
r &&
|
|
4675
|
+
r && O(t);
|
|
4092
4676
|
}
|
|
4093
4677
|
};
|
|
4094
4678
|
}
|
|
4095
|
-
function
|
|
4096
|
-
let t, r, n, i, o, a, s,
|
|
4679
|
+
function Vt(e) {
|
|
4680
|
+
let t, r, n, i, o, a, s, c, l = (
|
|
4097
4681
|
/*$_*/
|
|
4098
4682
|
(e[16](`${/*consent*/
|
|
4099
4683
|
e[64].tagCode}__description`) || /*consent*/
|
|
4100
4684
|
e[64].tagCode) + ""
|
|
4101
|
-
),
|
|
4685
|
+
), u = (
|
|
4102
4686
|
/*consent*/
|
|
4103
4687
|
e[64].mustAccept ? " *" : ""
|
|
4104
|
-
), d, m,
|
|
4105
|
-
function H(...
|
|
4688
|
+
), d, m, y, g, f, S, _, v, C;
|
|
4689
|
+
function H(...E) {
|
|
4106
4690
|
return (
|
|
4107
4691
|
/*input_handler_1*/
|
|
4108
4692
|
e[30](
|
|
4109
4693
|
/*consent*/
|
|
4110
4694
|
e[64],
|
|
4111
|
-
...
|
|
4695
|
+
...E
|
|
4112
4696
|
)
|
|
4113
4697
|
);
|
|
4114
4698
|
}
|
|
4115
4699
|
return {
|
|
4116
4700
|
c() {
|
|
4117
|
-
t =
|
|
4118
|
-
e[64].status === "1",
|
|
4119
|
-
e[64].tagCode}__input`),
|
|
4120
|
-
e[64].tagCode}__input`),
|
|
4121
|
-
e[64].tagCode),
|
|
4701
|
+
t = w("div"), r = w("input"), o = F(), a = w("label"), s = w("div"), c = new rr(!1), d = ee(u), y = F(), g = w("small"), S = F(), k(r, "class", "checkbox__input svelte-etk3ty"), k(r, "type", "checkbox"), r.checked = n = /*consent*/
|
|
4702
|
+
e[64].status === "1", k(r, "id", i = `${/*consent*/
|
|
4703
|
+
e[64].tagCode}__input`), c.a = d, k(s, "class", "checkbox__label-text svelte-etk3ty"), k(a, "class", "checkbox__label svelte-etk3ty"), k(a, "for", m = `${/*consent*/
|
|
4704
|
+
e[64].tagCode}__input`), k(g, "class", "checkbox__error-message svelte-etk3ty"), k(g, "id", f = "checkBoxError__" + /*consent*/
|
|
4705
|
+
e[64].tagCode), k(t, "class", _ = "checkbox__wrapper " + /*consent*/
|
|
4122
4706
|
e[64].tagCode + "__input svelte-etk3ty");
|
|
4123
4707
|
},
|
|
4124
|
-
m(
|
|
4125
|
-
L(
|
|
4708
|
+
m(E, z) {
|
|
4709
|
+
L(E, t, z), x(t, r), x(t, o), x(t, a), x(a, s), c.m(l, s), x(s, d), x(t, y), x(t, g), x(t, S), v || (C = Ce(r, "input", H), v = !0);
|
|
4126
4710
|
},
|
|
4127
|
-
p(
|
|
4128
|
-
e =
|
|
4711
|
+
p(E, z) {
|
|
4712
|
+
e = E, z[0] & /*playerConsents*/
|
|
4129
4713
|
512 && n !== (n = /*consent*/
|
|
4130
|
-
e[64].status === "1") && (r.checked = n),
|
|
4714
|
+
e[64].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
|
|
4131
4715
|
512 && i !== (i = `${/*consent*/
|
|
4132
|
-
e[64].tagCode}__input`) &&
|
|
4133
|
-
66048 &&
|
|
4716
|
+
e[64].tagCode}__input`) && k(r, "id", i), z[0] & /*$_, playerConsents*/
|
|
4717
|
+
66048 && l !== (l = /*$_*/
|
|
4134
4718
|
(e[16](`${/*consent*/
|
|
4135
4719
|
e[64].tagCode}__description`) || /*consent*/
|
|
4136
|
-
e[64].tagCode) + "") &&
|
|
4137
|
-
512 &&
|
|
4138
|
-
e[64].mustAccept ? " *" : "") &&
|
|
4720
|
+
e[64].tagCode) + "") && c.p(l), z[0] & /*playerConsents*/
|
|
4721
|
+
512 && u !== (u = /*consent*/
|
|
4722
|
+
e[64].mustAccept ? " *" : "") && Te(d, u), z[0] & /*playerConsents*/
|
|
4139
4723
|
512 && m !== (m = `${/*consent*/
|
|
4140
|
-
e[64].tagCode}__input`) &&
|
|
4141
|
-
512 &&
|
|
4142
|
-
e[64].tagCode) &&
|
|
4724
|
+
e[64].tagCode}__input`) && k(a, "for", m), z[0] & /*playerConsents*/
|
|
4725
|
+
512 && f !== (f = "checkBoxError__" + /*consent*/
|
|
4726
|
+
e[64].tagCode) && k(g, "id", f), z[0] & /*playerConsents*/
|
|
4143
4727
|
512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
|
|
4144
|
-
e[64].tagCode + "__input svelte-etk3ty") &&
|
|
4728
|
+
e[64].tagCode + "__input svelte-etk3ty") && k(t, "class", _);
|
|
4145
4729
|
},
|
|
4146
|
-
d(
|
|
4147
|
-
|
|
4730
|
+
d(E) {
|
|
4731
|
+
E && O(t), v = !1, C();
|
|
4148
4732
|
}
|
|
4149
4733
|
};
|
|
4150
4734
|
}
|
|
4151
|
-
function
|
|
4735
|
+
function Xt(e) {
|
|
4152
4736
|
let t, r = (
|
|
4153
4737
|
/*$_*/
|
|
4154
4738
|
e[16]("title")
|
|
4155
4739
|
), n, i = (
|
|
4156
4740
|
/*$_*/
|
|
4157
4741
|
e[16]("description")
|
|
4158
|
-
), o = r &&
|
|
4742
|
+
), o = r && qt(e), a = i && Wt(e);
|
|
4159
4743
|
return {
|
|
4160
4744
|
c() {
|
|
4161
|
-
t =
|
|
4745
|
+
t = w("div"), o && o.c(), n = F(), a && a.c(), k(t, "class", "PlayerConsentsHeader svelte-etk3ty");
|
|
4162
4746
|
},
|
|
4163
|
-
m(s,
|
|
4164
|
-
L(s, t,
|
|
4747
|
+
m(s, c) {
|
|
4748
|
+
L(s, t, c), o && o.m(t, null), x(t, n), a && a.m(t, null);
|
|
4165
4749
|
},
|
|
4166
|
-
p(s,
|
|
4167
|
-
|
|
4750
|
+
p(s, c) {
|
|
4751
|
+
c[0] & /*$_*/
|
|
4168
4752
|
65536 && (r = /*$_*/
|
|
4169
|
-
s[16]("title")), r ? o ? o.p(s,
|
|
4753
|
+
s[16]("title")), r ? o ? o.p(s, c) : (o = qt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), c[0] & /*$_*/
|
|
4170
4754
|
65536 && (i = /*$_*/
|
|
4171
|
-
s[16]("description")), i ? a ? a.p(s,
|
|
4755
|
+
s[16]("description")), i ? a ? a.p(s, c) : (a = Wt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4172
4756
|
},
|
|
4173
4757
|
d(s) {
|
|
4174
|
-
s &&
|
|
4758
|
+
s && O(t), o && o.d(), a && a.d();
|
|
4175
4759
|
}
|
|
4176
4760
|
};
|
|
4177
4761
|
}
|
|
4178
|
-
function
|
|
4762
|
+
function qt(e) {
|
|
4179
4763
|
let t, r = (
|
|
4180
4764
|
/*$_*/
|
|
4181
4765
|
e[16]("title") + ""
|
|
4182
4766
|
), n;
|
|
4183
4767
|
return {
|
|
4184
4768
|
c() {
|
|
4185
|
-
t =
|
|
4769
|
+
t = w("h2"), n = ee(r), k(t, "class", "PlayerConsentsTitle");
|
|
4186
4770
|
},
|
|
4187
4771
|
m(i, o) {
|
|
4188
|
-
L(i, t, o),
|
|
4772
|
+
L(i, t, o), x(t, n);
|
|
4189
4773
|
},
|
|
4190
4774
|
p(i, o) {
|
|
4191
4775
|
o[0] & /*$_*/
|
|
4192
4776
|
65536 && r !== (r = /*$_*/
|
|
4193
|
-
i[16]("title") + "") &&
|
|
4777
|
+
i[16]("title") + "") && Te(n, r);
|
|
4194
4778
|
},
|
|
4195
4779
|
d(i) {
|
|
4196
|
-
i &&
|
|
4780
|
+
i && O(t);
|
|
4197
4781
|
}
|
|
4198
4782
|
};
|
|
4199
4783
|
}
|
|
4200
|
-
function
|
|
4784
|
+
function Wt(e) {
|
|
4201
4785
|
let t, r = (
|
|
4202
4786
|
/*$_*/
|
|
4203
4787
|
e[16]("description") + ""
|
|
4204
4788
|
), n;
|
|
4205
4789
|
return {
|
|
4206
4790
|
c() {
|
|
4207
|
-
t =
|
|
4791
|
+
t = w("p"), n = ee(r), k(t, "class", "PlayerConsentsDescription");
|
|
4208
4792
|
},
|
|
4209
4793
|
m(i, o) {
|
|
4210
|
-
L(i, t, o),
|
|
4794
|
+
L(i, t, o), x(t, n);
|
|
4211
4795
|
},
|
|
4212
4796
|
p(i, o) {
|
|
4213
4797
|
o[0] & /*$_*/
|
|
4214
4798
|
65536 && r !== (r = /*$_*/
|
|
4215
|
-
i[16]("description") + "") &&
|
|
4799
|
+
i[16]("description") + "") && Te(n, r);
|
|
4216
4800
|
},
|
|
4217
4801
|
d(i) {
|
|
4218
|
-
i &&
|
|
4802
|
+
i && O(t);
|
|
4219
4803
|
}
|
|
4220
4804
|
};
|
|
4221
4805
|
}
|
|
4222
|
-
function
|
|
4806
|
+
function Zt(e) {
|
|
4223
4807
|
let t;
|
|
4224
4808
|
return {
|
|
4225
4809
|
c() {
|
|
4226
|
-
t =
|
|
4810
|
+
t = w("sup"), t.textContent = "*", k(t, "class", "ConsentRequired svelte-etk3ty");
|
|
4227
4811
|
},
|
|
4228
4812
|
m(r, n) {
|
|
4229
4813
|
L(r, t, n);
|
|
4230
4814
|
},
|
|
4231
4815
|
d(r) {
|
|
4232
|
-
r &&
|
|
4816
|
+
r && O(t);
|
|
4233
4817
|
}
|
|
4234
4818
|
};
|
|
4235
4819
|
}
|
|
4236
|
-
function
|
|
4820
|
+
function Jt(e) {
|
|
4237
4821
|
let t, r = (
|
|
4238
4822
|
/*$_*/
|
|
4239
4823
|
(e[16](`${/*consent*/
|
|
@@ -4242,7 +4826,7 @@ function Ot(e) {
|
|
|
4242
4826
|
);
|
|
4243
4827
|
return {
|
|
4244
4828
|
c() {
|
|
4245
|
-
t =
|
|
4829
|
+
t = w("p"), k(t, "class", "ConsentDescription svelte-etk3ty");
|
|
4246
4830
|
},
|
|
4247
4831
|
m(n, i) {
|
|
4248
4832
|
L(n, t, i), t.innerHTML = r;
|
|
@@ -4255,24 +4839,24 @@ function Ot(e) {
|
|
|
4255
4839
|
n[64].description) + "") && (t.innerHTML = r);
|
|
4256
4840
|
},
|
|
4257
4841
|
d(n) {
|
|
4258
|
-
n &&
|
|
4842
|
+
n && O(t);
|
|
4259
4843
|
}
|
|
4260
4844
|
};
|
|
4261
4845
|
}
|
|
4262
|
-
function
|
|
4846
|
+
function Qt(e) {
|
|
4263
4847
|
let t, r, n, i, o = (
|
|
4264
4848
|
/*$_*/
|
|
4265
4849
|
(e[16](`${/*consent*/
|
|
4266
4850
|
e[64].tagCode}__name`) || /*consent*/
|
|
4267
4851
|
e[64].friendlyName) + ""
|
|
4268
|
-
), a, s,
|
|
4852
|
+
), a, s, c, l, u, d, m, y, g, f, S, _ = (
|
|
4269
4853
|
/*consent*/
|
|
4270
|
-
e[64].mustAccept === !0 &&
|
|
4271
|
-
),
|
|
4854
|
+
e[64].mustAccept === !0 && Zt()
|
|
4855
|
+
), v = (
|
|
4272
4856
|
/*displayconsentdescription*/
|
|
4273
|
-
e[4] === "true" &&
|
|
4857
|
+
e[4] === "true" && Jt(e)
|
|
4274
4858
|
);
|
|
4275
|
-
function
|
|
4859
|
+
function C(...H) {
|
|
4276
4860
|
return (
|
|
4277
4861
|
/*input_handler*/
|
|
4278
4862
|
e[29](
|
|
@@ -4284,60 +4868,60 @@ function zt(e) {
|
|
|
4284
4868
|
}
|
|
4285
4869
|
return {
|
|
4286
4870
|
c() {
|
|
4287
|
-
t =
|
|
4871
|
+
t = w("div"), r = w("div"), n = w("h4"), i = new rr(!1), a = F(), _ && _.c(), s = F(), v && v.c(), c = F(), l = w("label"), u = w("input"), y = F(), g = w("span"), i.a = a, k(n, "class", "ConsentName svelte-etk3ty"), k(r, "class", "ConsentContent"), k(u, "type", "checkbox"), u.disabled = d = /*consent*/
|
|
4288
4872
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4289
4873
|
e[12][
|
|
4290
4874
|
/*consent*/
|
|
4291
4875
|
e[64].tagCode
|
|
4292
|
-
] === !0,
|
|
4876
|
+
] === !0, u.checked = m = /*consentsState*/
|
|
4293
4877
|
e[13][
|
|
4294
4878
|
/*consent*/
|
|
4295
4879
|
e[64].tagCode
|
|
4296
|
-
],
|
|
4880
|
+
], k(u, "class", "svelte-etk3ty"), k(g, "class", "Slider Round svelte-etk3ty"), k(l, "class", "ToggleSwitch svelte-etk3ty"), k(t, "class", "ConsentItem svelte-etk3ty");
|
|
4297
4881
|
},
|
|
4298
|
-
m(H,
|
|
4299
|
-
L(H, t,
|
|
4882
|
+
m(H, E) {
|
|
4883
|
+
L(H, t, E), x(t, r), x(r, n), i.m(o, n), x(n, a), _ && _.m(n, null), x(r, s), v && v.m(r, null), x(t, c), x(t, l), x(l, u), x(l, y), x(l, g), f || (S = Ce(u, "input", C), f = !0);
|
|
4300
4884
|
},
|
|
4301
|
-
p(H,
|
|
4302
|
-
e = H,
|
|
4885
|
+
p(H, E) {
|
|
4886
|
+
e = H, E[0] & /*$_, playerConsents, consentsCategories*/
|
|
4303
4887
|
66304 && o !== (o = /*$_*/
|
|
4304
4888
|
(e[16](`${/*consent*/
|
|
4305
4889
|
e[64].tagCode}__name`) || /*consent*/
|
|
4306
4890
|
e[64].friendlyName) + "") && i.p(o), /*consent*/
|
|
4307
|
-
e[64].mustAccept === !0 ? _ || (_ =
|
|
4308
|
-
e[4] === "true" ?
|
|
4891
|
+
e[64].mustAccept === !0 ? _ || (_ = Zt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
|
|
4892
|
+
e[4] === "true" ? v ? v.p(e, E) : (v = Jt(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
|
|
4309
4893
|
4864 && d !== (d = /*consent*/
|
|
4310
4894
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4311
4895
|
e[12][
|
|
4312
4896
|
/*consent*/
|
|
4313
4897
|
e[64].tagCode
|
|
4314
|
-
] === !0) && (
|
|
4898
|
+
] === !0) && (u.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
|
|
4315
4899
|
8960 && m !== (m = /*consentsState*/
|
|
4316
4900
|
e[13][
|
|
4317
4901
|
/*consent*/
|
|
4318
4902
|
e[64].tagCode
|
|
4319
|
-
]) && (
|
|
4903
|
+
]) && (u.checked = m);
|
|
4320
4904
|
},
|
|
4321
4905
|
d(H) {
|
|
4322
|
-
H &&
|
|
4906
|
+
H && O(t), _ && _.d(), v && v.d(), f = !1, S();
|
|
4323
4907
|
}
|
|
4324
4908
|
};
|
|
4325
4909
|
}
|
|
4326
|
-
function
|
|
4910
|
+
function Yt(e) {
|
|
4327
4911
|
let t, r, n, i = (
|
|
4328
4912
|
/*$_*/
|
|
4329
4913
|
(e[16](`${/*category*/
|
|
4330
4914
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
4331
4915
|
e[61].friendlyName) + ""
|
|
4332
|
-
), o, a, s,
|
|
4333
|
-
function
|
|
4916
|
+
), o, a, s, c, l, u, d, m, y;
|
|
4917
|
+
function g() {
|
|
4334
4918
|
e[26].call(
|
|
4335
4919
|
s,
|
|
4336
4920
|
/*category*/
|
|
4337
4921
|
e[61]
|
|
4338
4922
|
);
|
|
4339
4923
|
}
|
|
4340
|
-
function
|
|
4924
|
+
function f() {
|
|
4341
4925
|
return (
|
|
4342
4926
|
/*change_handler*/
|
|
4343
4927
|
e[27](
|
|
@@ -4346,44 +4930,44 @@ function It(e) {
|
|
|
4346
4930
|
)
|
|
4347
4931
|
);
|
|
4348
4932
|
}
|
|
4349
|
-
function
|
|
4933
|
+
function S(...C) {
|
|
4350
4934
|
return (
|
|
4351
4935
|
/*func*/
|
|
4352
4936
|
e[28](
|
|
4353
4937
|
/*category*/
|
|
4354
4938
|
e[61],
|
|
4355
|
-
...
|
|
4939
|
+
...C
|
|
4356
4940
|
)
|
|
4357
4941
|
);
|
|
4358
4942
|
}
|
|
4359
|
-
let _ =
|
|
4943
|
+
let _ = le(
|
|
4360
4944
|
/*playerConsents*/
|
|
4361
|
-
e[9].filter(
|
|
4362
|
-
),
|
|
4363
|
-
for (let
|
|
4364
|
-
|
|
4945
|
+
e[9].filter(S)
|
|
4946
|
+
), v = [];
|
|
4947
|
+
for (let C = 0; C < _.length; C += 1)
|
|
4948
|
+
v[C] = Qt($t(e, _, C));
|
|
4365
4949
|
return {
|
|
4366
4950
|
c() {
|
|
4367
|
-
t =
|
|
4368
|
-
for (let
|
|
4369
|
-
|
|
4370
|
-
|
|
4951
|
+
t = w("div"), r = w("div"), n = w("h3"), o = F(), a = w("label"), s = w("input"), c = F(), l = w("span"), u = F(), d = w("div");
|
|
4952
|
+
for (let C = 0; C < v.length; C += 1)
|
|
4953
|
+
v[C].c();
|
|
4954
|
+
k(s, "type", "checkbox"), k(s, "class", "svelte-etk3ty"), k(l, "class", "Slider Round svelte-etk3ty"), k(a, "class", "ToggleSwitch Big svelte-etk3ty"), k(r, "class", "AccordionHeader svelte-etk3ty"), k(d, "class", "AccordionContent svelte-etk3ty"), k(t, "class", "AccordionItem svelte-etk3ty");
|
|
4371
4955
|
},
|
|
4372
|
-
m(
|
|
4373
|
-
L(
|
|
4956
|
+
m(C, H) {
|
|
4957
|
+
L(C, t, H), x(t, r), x(r, n), n.innerHTML = i, x(r, o), x(r, a), x(a, s), s.checked = /*categoryToggle*/
|
|
4374
4958
|
e[11][
|
|
4375
4959
|
/*category*/
|
|
4376
4960
|
e[61].categoryTagCode
|
|
4377
|
-
],
|
|
4378
|
-
for (let
|
|
4379
|
-
|
|
4380
|
-
m || (
|
|
4381
|
-
|
|
4382
|
-
|
|
4961
|
+
], x(a, c), x(a, l), x(t, u), x(t, d);
|
|
4962
|
+
for (let E = 0; E < v.length; E += 1)
|
|
4963
|
+
v[E] && v[E].m(d, null);
|
|
4964
|
+
m || (y = [
|
|
4965
|
+
Ce(s, "change", g),
|
|
4966
|
+
Ce(s, "change", f)
|
|
4383
4967
|
], m = !0);
|
|
4384
4968
|
},
|
|
4385
|
-
p(
|
|
4386
|
-
if (e =
|
|
4969
|
+
p(C, H) {
|
|
4970
|
+
if (e = C, H[0] & /*$_, consentsCategories*/
|
|
4387
4971
|
65792 && i !== (i = /*$_*/
|
|
4388
4972
|
(e[16](`${/*category*/
|
|
4389
4973
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
@@ -4394,273 +4978,273 @@ function It(e) {
|
|
|
4394
4978
|
e[61].categoryTagCode
|
|
4395
4979
|
]), H[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
|
|
4396
4980
|
602896) {
|
|
4397
|
-
_ =
|
|
4981
|
+
_ = le(
|
|
4398
4982
|
/*playerConsents*/
|
|
4399
|
-
e[9].filter(
|
|
4983
|
+
e[9].filter(S)
|
|
4400
4984
|
);
|
|
4401
|
-
let
|
|
4402
|
-
for (
|
|
4403
|
-
const
|
|
4404
|
-
|
|
4985
|
+
let E;
|
|
4986
|
+
for (E = 0; E < _.length; E += 1) {
|
|
4987
|
+
const z = $t(e, _, E);
|
|
4988
|
+
v[E] ? v[E].p(z, H) : (v[E] = Qt(z), v[E].c(), v[E].m(d, null));
|
|
4405
4989
|
}
|
|
4406
|
-
for (;
|
|
4407
|
-
|
|
4408
|
-
|
|
4990
|
+
for (; E < v.length; E += 1)
|
|
4991
|
+
v[E].d(1);
|
|
4992
|
+
v.length = _.length;
|
|
4409
4993
|
}
|
|
4410
4994
|
},
|
|
4411
|
-
d(
|
|
4412
|
-
|
|
4995
|
+
d(C) {
|
|
4996
|
+
C && O(t), yt(v, C), m = !1, me(y);
|
|
4413
4997
|
}
|
|
4414
4998
|
};
|
|
4415
4999
|
}
|
|
4416
|
-
function
|
|
5000
|
+
function Kt(e) {
|
|
4417
5001
|
let t, r, n, i, o;
|
|
4418
5002
|
return {
|
|
4419
5003
|
c() {
|
|
4420
|
-
t =
|
|
5004
|
+
t = w("div"), r = w("circle-exclamation-icon"), n = F(), i = w("strong"), o = ee(
|
|
4421
5005
|
/*errorMessage*/
|
|
4422
5006
|
e[6]
|
|
4423
|
-
),
|
|
5007
|
+
), K(r, "class", "svelte-etk3ty"), k(i, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ConsentErrorContainer svelte-etk3ty");
|
|
4424
5008
|
},
|
|
4425
5009
|
m(a, s) {
|
|
4426
|
-
L(a, t, s),
|
|
5010
|
+
L(a, t, s), x(t, r), x(t, n), x(t, i), x(i, o);
|
|
4427
5011
|
},
|
|
4428
5012
|
p(a, s) {
|
|
4429
5013
|
s[0] & /*errorMessage*/
|
|
4430
|
-
64 &&
|
|
5014
|
+
64 && Te(
|
|
4431
5015
|
o,
|
|
4432
5016
|
/*errorMessage*/
|
|
4433
5017
|
a[6]
|
|
4434
5018
|
);
|
|
4435
5019
|
},
|
|
4436
5020
|
d(a) {
|
|
4437
|
-
a &&
|
|
5021
|
+
a && O(t);
|
|
4438
5022
|
}
|
|
4439
5023
|
};
|
|
4440
5024
|
}
|
|
4441
|
-
function
|
|
5025
|
+
function Mo(e) {
|
|
4442
5026
|
let t, r;
|
|
4443
5027
|
function n(a, s) {
|
|
4444
5028
|
if (
|
|
4445
5029
|
/*isLoading*/
|
|
4446
5030
|
a[10]
|
|
4447
5031
|
)
|
|
4448
|
-
return
|
|
5032
|
+
return To;
|
|
4449
5033
|
if (
|
|
4450
5034
|
/*fatalError*/
|
|
4451
5035
|
a[7]
|
|
4452
5036
|
)
|
|
4453
|
-
return
|
|
5037
|
+
return wo;
|
|
4454
5038
|
if (
|
|
4455
5039
|
/*session*/
|
|
4456
5040
|
a[0]
|
|
4457
5041
|
)
|
|
4458
|
-
return
|
|
5042
|
+
return xo;
|
|
4459
5043
|
if (!/*session*/
|
|
4460
5044
|
a[0])
|
|
4461
|
-
return
|
|
5045
|
+
return So;
|
|
4462
5046
|
}
|
|
4463
5047
|
let i = n(e), o = i && i(e);
|
|
4464
5048
|
return {
|
|
4465
5049
|
c() {
|
|
4466
|
-
t =
|
|
5050
|
+
t = w("div"), r = w("div"), o && o.c(), k(r, "class", "ConsentsContainer svelte-etk3ty"), k(t, "class", "" + " svelte-etk3ty");
|
|
4467
5051
|
},
|
|
4468
5052
|
m(a, s) {
|
|
4469
|
-
L(a, t, s),
|
|
5053
|
+
L(a, t, s), x(t, r), o && o.m(r, null), e[32](r);
|
|
4470
5054
|
},
|
|
4471
5055
|
p(a, s) {
|
|
4472
5056
|
i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
|
|
4473
5057
|
},
|
|
4474
|
-
i:
|
|
4475
|
-
o:
|
|
5058
|
+
i: $,
|
|
5059
|
+
o: $,
|
|
4476
5060
|
d(a) {
|
|
4477
|
-
a &&
|
|
5061
|
+
a && O(t), o && o.d(), e[32](null);
|
|
4478
5062
|
}
|
|
4479
5063
|
};
|
|
4480
5064
|
}
|
|
4481
|
-
function
|
|
5065
|
+
function No(e, t, r) {
|
|
4482
5066
|
let n;
|
|
4483
|
-
|
|
4484
|
-
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl:
|
|
5067
|
+
sn(e, vo, (h) => r(16, n = h));
|
|
5068
|
+
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: l } = t, { lang: u = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: y = "false" } = t, g, f, S = !1, _ = !1, v = "", C = "", H = "", E = "", z = [], J = [], j = [], _e = !0, Ne = !0, V = {}, Ae = {}, Q = {}, D = {}, ye, He, R = {
|
|
4485
5069
|
none: { key: "0", value: "None" },
|
|
4486
5070
|
accepted: { key: "1", value: "Accepted" },
|
|
4487
5071
|
expired: { key: "2", value: "Expired" },
|
|
4488
5072
|
denied: { key: "3", value: "Denied" },
|
|
4489
5073
|
suspended: { key: "4", value: "Suspended" }
|
|
4490
|
-
},
|
|
4491
|
-
Object.keys(
|
|
4492
|
-
|
|
5074
|
+
}, Pe = !1;
|
|
5075
|
+
Object.keys(Dt).forEach((h) => {
|
|
5076
|
+
Ut(h, Dt[h]);
|
|
4493
5077
|
});
|
|
4494
|
-
const
|
|
4495
|
-
|
|
4496
|
-
},
|
|
4497
|
-
let
|
|
4498
|
-
fetch(
|
|
4499
|
-
Object.keys(
|
|
4500
|
-
|
|
5078
|
+
const Pr = () => {
|
|
5079
|
+
bo(u);
|
|
5080
|
+
}, Br = () => {
|
|
5081
|
+
let h = new URL(m);
|
|
5082
|
+
fetch(h.href).then((p) => p.json()).then((p) => {
|
|
5083
|
+
Object.keys(p).forEach((M) => {
|
|
5084
|
+
Ut(M, p[M]);
|
|
4501
5085
|
});
|
|
4502
|
-
}).catch((
|
|
4503
|
-
console.log(
|
|
5086
|
+
}).catch((p) => {
|
|
5087
|
+
console.log(p);
|
|
4504
5088
|
});
|
|
4505
|
-
},
|
|
4506
|
-
i && (
|
|
4507
|
-
},
|
|
4508
|
-
|
|
4509
|
-
},
|
|
5089
|
+
}, Or = () => {
|
|
5090
|
+
i && (v = i, _ = !0), o && (C = o);
|
|
5091
|
+
}, Be = (h, p = !1) => {
|
|
5092
|
+
p ? r(7, E = h) : (Ur(), r(6, H = h));
|
|
5093
|
+
}, ve = (h, p, M, b = !1) => re(this, null, function* () {
|
|
4510
5094
|
try {
|
|
4511
|
-
const T = yield fetch(
|
|
5095
|
+
const T = yield fetch(h, M);
|
|
4512
5096
|
if (!T.ok)
|
|
4513
|
-
throw new Error(n(
|
|
5097
|
+
throw new Error(n(p));
|
|
4514
5098
|
const I = yield T.json();
|
|
4515
|
-
return
|
|
5099
|
+
return _ ? I : I.filter((q) => q.showOnRegister === !0);
|
|
4516
5100
|
} catch (T) {
|
|
4517
|
-
throw
|
|
4518
|
-
T instanceof TypeError ? n(
|
|
4519
|
-
|
|
5101
|
+
throw Be(
|
|
5102
|
+
T instanceof TypeError ? n(p) : T.message,
|
|
5103
|
+
b
|
|
4520
5104
|
), T;
|
|
4521
5105
|
}
|
|
4522
|
-
}),
|
|
5106
|
+
}), zr = () => re(this, null, function* () {
|
|
4523
5107
|
try {
|
|
4524
|
-
let
|
|
4525
|
-
if (
|
|
4526
|
-
let
|
|
4527
|
-
|
|
5108
|
+
let h = [], p = [];
|
|
5109
|
+
if (_ ? [h, p] = yield kt() : h = yield kt(), r(10, _e = !1), J = [...h], r(8, z = jr(J).sort((M, b) => M.categoryTagCode.localeCompare(b.categoryTagCode))), r(11, V = Ir(z)), Ae = W({}, V), r(9, j = [...p]), J.forEach((M) => {
|
|
5110
|
+
let b = j.find((T) => T.tagCode === M.tagCode);
|
|
5111
|
+
b || (b = Je(W({}, M), {
|
|
4528
5112
|
status: R.denied.value
|
|
4529
|
-
}),
|
|
4530
|
-
}),
|
|
4531
|
-
if (r(9,
|
|
5113
|
+
}), j.push(b)), b.description = M.description, b.orderNumber = M.orderNumber;
|
|
5114
|
+
}), y === "true") {
|
|
5115
|
+
if (r(9, j = j.filter((M) => M.status === R.expired.value)), j.length !== 0)
|
|
4532
5116
|
return;
|
|
4533
|
-
|
|
5117
|
+
Be(n("wrongModalConfig"), !0);
|
|
4534
5118
|
}
|
|
4535
|
-
|
|
4536
|
-
} catch (
|
|
4537
|
-
throw r(10,
|
|
4538
|
-
|
|
5119
|
+
Rr();
|
|
5120
|
+
} catch (h) {
|
|
5121
|
+
throw r(10, _e = !1), Be(
|
|
5122
|
+
h instanceof TypeError ? n("invalidUrl") : h.message,
|
|
4539
5123
|
!0
|
|
4540
|
-
),
|
|
5124
|
+
), h;
|
|
4541
5125
|
}
|
|
4542
|
-
}),
|
|
4543
|
-
const
|
|
4544
|
-
if (
|
|
4545
|
-
return yield
|
|
4546
|
-
const
|
|
5126
|
+
}), kt = () => re(this, null, function* () {
|
|
5127
|
+
const h = new URL(`${a}/api/v1/gm/consents`);
|
|
5128
|
+
if (h.searchParams.append("Status", "Active"), !_)
|
|
5129
|
+
return yield ve(h.href, "fetchConsentsError", { method: "GET" }, !0);
|
|
5130
|
+
const p = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
4547
5131
|
return yield Promise.all([
|
|
4548
|
-
|
|
4549
|
-
|
|
5132
|
+
ve(h.href, "fetchConsentsError", { method: "GET" }, !0),
|
|
5133
|
+
ve(p.href, "fetchPlayerConsentsError", {
|
|
4550
5134
|
method: "GET",
|
|
4551
5135
|
headers: {
|
|
4552
|
-
"X-SessionId":
|
|
5136
|
+
"X-SessionId": v,
|
|
4553
5137
|
"Content-Type": "application/json"
|
|
4554
5138
|
}
|
|
4555
5139
|
})
|
|
4556
5140
|
]);
|
|
4557
|
-
}),
|
|
4558
|
-
|
|
4559
|
-
const
|
|
5141
|
+
}), Lr = () => {
|
|
5142
|
+
Pe = !1;
|
|
5143
|
+
const h = new URL(`${a}/api/v2/gm/legislation/consents`), p = {
|
|
4560
5144
|
"Content-Type": "application/json",
|
|
4561
5145
|
Accept: "application/json"
|
|
4562
|
-
}, M = { method: "GET", headers:
|
|
4563
|
-
fetch(
|
|
4564
|
-
if (!
|
|
4565
|
-
if (
|
|
5146
|
+
}, M = { method: "GET", headers: p };
|
|
5147
|
+
fetch(h.href, M).then((b) => b.ok ? b.json() : (Pe = !0, b.json().then((T) => (console.error(T), Oe(T))))).then((b) => {
|
|
5148
|
+
if (!Pe) {
|
|
5149
|
+
if (J = b, localStorage.getItem("playerConsents")) {
|
|
4566
5150
|
try {
|
|
4567
|
-
r(9,
|
|
5151
|
+
r(9, j = JSON.parse(localStorage.getItem("playerConsents")));
|
|
4568
5152
|
} catch (T) {
|
|
4569
|
-
return console.error(T),
|
|
5153
|
+
return console.error(T), Oe(T);
|
|
4570
5154
|
}
|
|
4571
5155
|
return;
|
|
4572
5156
|
}
|
|
4573
|
-
return r(9,
|
|
5157
|
+
return r(9, j = J.map((T) => ({
|
|
4574
5158
|
id: T.id,
|
|
4575
5159
|
status: R.denied.key,
|
|
4576
5160
|
friendlyName: T.friendlyName,
|
|
4577
5161
|
tagCode: T.tagCode,
|
|
4578
5162
|
selected: null,
|
|
4579
5163
|
mustAccept: T.mustAccept
|
|
4580
|
-
}))), localStorage.setItem("playerConsents", JSON.stringify(
|
|
5164
|
+
}))), localStorage.setItem("playerConsents", JSON.stringify(j)), j;
|
|
4581
5165
|
}
|
|
4582
|
-
}).catch((
|
|
4583
|
-
r(10,
|
|
5166
|
+
}).catch((b) => (console.error(b), Oe(b))).finally(() => {
|
|
5167
|
+
r(10, _e = !1);
|
|
4584
5168
|
});
|
|
4585
|
-
},
|
|
4586
|
-
const
|
|
4587
|
-
return
|
|
4588
|
-
|
|
4589
|
-
}), Array.from(
|
|
4590
|
-
},
|
|
4591
|
-
const
|
|
4592
|
-
if (
|
|
4593
|
-
const M =
|
|
4594
|
-
(
|
|
5169
|
+
}, jr = (h) => {
|
|
5170
|
+
const p = /* @__PURE__ */ new Map();
|
|
5171
|
+
return h.forEach((M) => {
|
|
5172
|
+
p.has(M.category.categoryTagCode) || p.set(M.category.categoryTagCode, M.category);
|
|
5173
|
+
}), Array.from(p.values());
|
|
5174
|
+
}, Ir = (h) => {
|
|
5175
|
+
const p = localStorage.getItem("categoryToggle" + C);
|
|
5176
|
+
if (p === null) {
|
|
5177
|
+
const M = h.reduce(
|
|
5178
|
+
(b, T) => (b[T.categoryTagCode] = !1, b),
|
|
4595
5179
|
{}
|
|
4596
5180
|
);
|
|
4597
|
-
return localStorage.setItem("categoryToggle" +
|
|
5181
|
+
return localStorage.setItem("categoryToggle" + C, JSON.stringify(M)), M;
|
|
4598
5182
|
} else
|
|
4599
|
-
return JSON.parse(
|
|
4600
|
-
},
|
|
4601
|
-
|
|
4602
|
-
r(12,
|
|
4603
|
-
}), r(13,
|
|
4604
|
-
},
|
|
4605
|
-
r(13,
|
|
4606
|
-
},
|
|
4607
|
-
if (!
|
|
5183
|
+
return JSON.parse(p);
|
|
5184
|
+
}, Rr = () => {
|
|
5185
|
+
j.forEach((h) => {
|
|
5186
|
+
r(12, Q[h.tagCode] = h.status === R.accepted.value, Q);
|
|
5187
|
+
}), r(13, D = W({}, Q));
|
|
5188
|
+
}, Ur = () => {
|
|
5189
|
+
r(13, D = W({}, Q)), r(11, V = W({}, Ae));
|
|
5190
|
+
}, Dr = () => re(this, null, function* () {
|
|
5191
|
+
if (!Ne)
|
|
4608
5192
|
return;
|
|
4609
|
-
|
|
4610
|
-
const
|
|
4611
|
-
if (Object.keys(
|
|
4612
|
-
const T =
|
|
4613
|
-
|
|
4614
|
-
tagCode:
|
|
4615
|
-
status:
|
|
4616
|
-
}) :
|
|
4617
|
-
tagCode:
|
|
4618
|
-
status:
|
|
5193
|
+
Ne = !1;
|
|
5194
|
+
const h = [], p = [];
|
|
5195
|
+
if (Object.keys(D).forEach((b) => {
|
|
5196
|
+
const T = j.find((I) => I.tagCode === b);
|
|
5197
|
+
D[b] !== Q[b] && (T ? h.push({
|
|
5198
|
+
tagCode: b,
|
|
5199
|
+
status: D[b] ? R.accepted.value : R.denied.value
|
|
5200
|
+
}) : p.push({
|
|
5201
|
+
tagCode: b,
|
|
5202
|
+
status: D[b] ? R.accepted.value : R.denied.value
|
|
4619
5203
|
}));
|
|
4620
|
-
}), !
|
|
4621
|
-
localStorage.setItem("categoryToggle" +
|
|
5204
|
+
}), !_) {
|
|
5205
|
+
localStorage.setItem("categoryToggle" + C, JSON.stringify(V)), Ae = W({}, V), window.postMessage(
|
|
4622
5206
|
{
|
|
4623
5207
|
type: "NewPlayerConsentData",
|
|
4624
|
-
data: JSON.stringify(
|
|
5208
|
+
data: JSON.stringify(p)
|
|
4625
5209
|
},
|
|
4626
5210
|
window.location.href
|
|
4627
|
-
),
|
|
5211
|
+
), Ne = !0;
|
|
4628
5212
|
return;
|
|
4629
5213
|
}
|
|
4630
|
-
const M = new URL(`${a}/api/v1/gm/user-consents/${
|
|
5214
|
+
const M = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
4631
5215
|
try {
|
|
4632
|
-
const
|
|
4633
|
-
|
|
5216
|
+
const b = yield Promise.allSettled([
|
|
5217
|
+
p.length > 0 && ve(M.href, "updateConsentsError", {
|
|
4634
5218
|
method: "POST",
|
|
4635
5219
|
headers: {
|
|
4636
|
-
"X-SessionId":
|
|
5220
|
+
"X-SessionId": v,
|
|
4637
5221
|
"Content-Type": "application/json"
|
|
4638
5222
|
},
|
|
4639
|
-
body: JSON.stringify({ userConsents:
|
|
5223
|
+
body: JSON.stringify({ userConsents: p })
|
|
4640
5224
|
}),
|
|
4641
|
-
|
|
5225
|
+
h.length > 0 && ve(M.href, "updateConsentsError", {
|
|
4642
5226
|
method: "PATCH",
|
|
4643
5227
|
headers: {
|
|
4644
|
-
"X-SessionId":
|
|
5228
|
+
"X-SessionId": v,
|
|
4645
5229
|
"Content-Type": "application/json"
|
|
4646
5230
|
},
|
|
4647
|
-
body: JSON.stringify({ userConsents:
|
|
5231
|
+
body: JSON.stringify({ userConsents: h })
|
|
4648
5232
|
})
|
|
4649
5233
|
]);
|
|
4650
|
-
|
|
5234
|
+
b.forEach((T, I) => {
|
|
4651
5235
|
if (T.status === "rejected" || T.value.ok === !1) {
|
|
4652
|
-
const
|
|
4653
|
-
r(13,
|
|
5236
|
+
const q = I < p.length ? p[I] : h[I - p.length];
|
|
5237
|
+
r(13, D[q.tagCode] = Q[q.tagCode], D);
|
|
4654
5238
|
}
|
|
4655
|
-
}),
|
|
5239
|
+
}), b.every((T) => T.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify(V)), Ae = W({}, V), window.postMessage(
|
|
4656
5240
|
{
|
|
4657
5241
|
type: "PlayerConsentUpdated",
|
|
4658
5242
|
success: !0
|
|
4659
5243
|
},
|
|
4660
5244
|
window.location.href
|
|
4661
|
-
), r(12,
|
|
4662
|
-
} catch (
|
|
4663
|
-
|
|
5245
|
+
), r(12, Q = W({}, D)));
|
|
5246
|
+
} catch (b) {
|
|
5247
|
+
Be(b instanceof TypeError ? n("saveChangesError") : b.message), window.postMessage(
|
|
4664
5248
|
{
|
|
4665
5249
|
type: "PlayerConsentUpdated",
|
|
4666
5250
|
success: !1
|
|
@@ -4668,149 +5252,149 @@ function Zi(e, t, r) {
|
|
|
4668
5252
|
window.location.href
|
|
4669
5253
|
);
|
|
4670
5254
|
} finally {
|
|
4671
|
-
|
|
5255
|
+
Ne = !0, r(14, ye = !1);
|
|
4672
5256
|
}
|
|
4673
|
-
}),
|
|
4674
|
-
const
|
|
5257
|
+
}), Gr = (h) => {
|
|
5258
|
+
const p = new URL(`${a}/api/v2/gm/legislation/consents`), M = {
|
|
4675
5259
|
"Content-Type": "application/json",
|
|
4676
5260
|
Accept: "application/json"
|
|
4677
|
-
},
|
|
4678
|
-
playerConsents:
|
|
4679
|
-
registrationId:
|
|
5261
|
+
}, b = {
|
|
5262
|
+
playerConsents: j,
|
|
5263
|
+
registrationId: h
|
|
4680
5264
|
}, T = {
|
|
4681
5265
|
method: "POST",
|
|
4682
|
-
body: JSON.stringify(
|
|
5266
|
+
body: JSON.stringify(b),
|
|
4683
5267
|
headers: M
|
|
4684
5268
|
};
|
|
4685
|
-
fetch(
|
|
4686
|
-
I.ok || (
|
|
4687
|
-
}).catch((I) => (console.error(I),
|
|
4688
|
-
r(10,
|
|
5269
|
+
fetch(p.href, T).then((I) => {
|
|
5270
|
+
I.ok || (Pe = !0);
|
|
5271
|
+
}).catch((I) => (console.error(I), Oe(I))).finally(() => {
|
|
5272
|
+
r(10, _e = !1);
|
|
4689
5273
|
});
|
|
4690
|
-
},
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
}), r(14,
|
|
4694
|
-
},
|
|
4695
|
-
const
|
|
5274
|
+
}, Et = (h) => {
|
|
5275
|
+
j.filter((p) => p.category.categoryTagCode === h).forEach((p) => {
|
|
5276
|
+
p.status = p.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, D[p.tagCode] = V[h] || !1, D);
|
|
5277
|
+
}), r(14, ye = Ct());
|
|
5278
|
+
}, We = (h, p, M) => {
|
|
5279
|
+
const b = j.find((q) => q.id === M), T = p ? "value" : "key";
|
|
4696
5280
|
let I;
|
|
4697
|
-
if (!
|
|
4698
|
-
const
|
|
4699
|
-
for (const
|
|
4700
|
-
if (I = Array.from(
|
|
5281
|
+
if (!p && b.mustAccept) {
|
|
5282
|
+
const q = Array.from(He.children);
|
|
5283
|
+
for (const be of q)
|
|
5284
|
+
if (I = Array.from(be.children).find((Kr) => Kr.getAttribute("id") === `checkBoxError__${b.tagCode}`), I)
|
|
4701
5285
|
break;
|
|
4702
5286
|
}
|
|
4703
|
-
if (
|
|
4704
|
-
r(13,
|
|
4705
|
-
const
|
|
4706
|
-
r(11,
|
|
5287
|
+
if (b.status === R.accepted[T] ? (b.status = R.denied[T], I && (I.innerHTML = n("requiredError"))) : (b.status = R.accepted[T], I && (I.innerHTML = "")), p) {
|
|
5288
|
+
r(13, D[b.tagCode] = !D[b.tagCode], D);
|
|
5289
|
+
const q = j.filter((be) => be.category.categoryTagCode === p.categoryTagCode).every((be) => be.status !== R.denied.value);
|
|
5290
|
+
r(11, V[p.categoryTagCode] = q, V);
|
|
4707
5291
|
}
|
|
4708
|
-
|
|
4709
|
-
},
|
|
5292
|
+
Fr();
|
|
5293
|
+
}, Fr = ((h, p) => {
|
|
4710
5294
|
let M;
|
|
4711
|
-
return function(...
|
|
5295
|
+
return function(...b) {
|
|
4712
5296
|
const T = this;
|
|
4713
5297
|
clearTimeout(M), M = setTimeout(
|
|
4714
5298
|
() => {
|
|
4715
|
-
|
|
5299
|
+
h.apply(T, b);
|
|
4716
5300
|
},
|
|
4717
|
-
|
|
5301
|
+
p
|
|
4718
5302
|
);
|
|
4719
5303
|
};
|
|
4720
|
-
})(() =>
|
|
4721
|
-
r(14,
|
|
4722
|
-
},
|
|
5304
|
+
})(() => $r(), 500), $r = () => {
|
|
5305
|
+
r(14, ye = Ct()), i || (window.postMessage({ type: "isConsentsValid", isValid: ye }), localStorage.setItem("playerConsents", JSON.stringify(j)));
|
|
5306
|
+
}, Ct = () => j.filter((p) => j.some((M) => p.tagCode === M.tagCode && M.mustAccept && (p.status === R.denied.key || p.status === R.denied.value))).length === 0, Oe = (h) => {
|
|
4723
5307
|
window.postMessage(
|
|
4724
5308
|
{
|
|
4725
5309
|
type: "WidgetNotification",
|
|
4726
|
-
data: { type: "error", message:
|
|
5310
|
+
data: { type: "error", message: h }
|
|
4727
5311
|
},
|
|
4728
5312
|
window.location.href
|
|
4729
5313
|
);
|
|
4730
|
-
},
|
|
4731
|
-
|
|
5314
|
+
}, Vr = (h) => {
|
|
5315
|
+
h.data && h.data.type !== "setUpPlayerConsents" || Gr(h.data.registerid);
|
|
4732
5316
|
};
|
|
4733
|
-
|
|
5317
|
+
pn(() => {
|
|
4734
5318
|
setTimeout(
|
|
4735
5319
|
() => {
|
|
4736
|
-
r(25,
|
|
5320
|
+
r(25, S = !0);
|
|
4737
5321
|
},
|
|
4738
5322
|
50
|
|
4739
5323
|
);
|
|
4740
|
-
const
|
|
4741
|
-
return window.addEventListener("message",
|
|
4742
|
-
window.removeEventListener("message",
|
|
5324
|
+
const h = (p) => Vr(p);
|
|
5325
|
+
return window.addEventListener("message", h), () => {
|
|
5326
|
+
window.removeEventListener("message", h);
|
|
4743
5327
|
};
|
|
4744
5328
|
});
|
|
4745
|
-
function
|
|
4746
|
-
|
|
5329
|
+
function Xr(h) {
|
|
5330
|
+
V[h.categoryTagCode] = this.checked, r(11, V);
|
|
4747
5331
|
}
|
|
4748
|
-
const
|
|
4749
|
-
function
|
|
4750
|
-
|
|
4751
|
-
|
|
5332
|
+
const qr = (h) => Et(h.categoryTagCode), Wr = (h, p) => p.category.categoryTagCode === h.categoryTagCode, Zr = (h, p) => We(p, h.category, h.id), Jr = (h, p) => We(p, null, h.id);
|
|
5333
|
+
function Qr(h) {
|
|
5334
|
+
Re[h ? "unshift" : "push"](() => {
|
|
5335
|
+
He = h, r(15, He);
|
|
4752
5336
|
});
|
|
4753
5337
|
}
|
|
4754
|
-
function
|
|
4755
|
-
|
|
4756
|
-
|
|
5338
|
+
function Yr(h) {
|
|
5339
|
+
Re[h ? "unshift" : "push"](() => {
|
|
5340
|
+
g = h, r(5, g);
|
|
4757
5341
|
});
|
|
4758
5342
|
}
|
|
4759
|
-
return e.$$set = (
|
|
4760
|
-
"session" in
|
|
5343
|
+
return e.$$set = (h) => {
|
|
5344
|
+
"session" in h && r(0, i = h.session), "userid" in h && r(20, o = h.userid), "endpoint" in h && r(21, a = h.endpoint), "clientstyling" in h && r(1, s = h.clientstyling), "clientstylingurl" in h && r(2, c = h.clientstylingurl), "mbsource" in h && r(3, l = h.mbsource), "lang" in h && r(22, u = h.lang), "displayconsentdescription" in h && r(4, d = h.displayconsentdescription), "translationurl" in h && r(23, m = h.translationurl), "modalconsents" in h && r(24, y = h.modalconsents);
|
|
4761
5345
|
}, e.$$.update = () => {
|
|
4762
5346
|
e.$$.dirty[0] & /*isMounted, session*/
|
|
4763
|
-
33554433 &&
|
|
4764
|
-
1 && (i ||
|
|
4765
|
-
34 && s &&
|
|
4766
|
-
36 &&
|
|
4767
|
-
40 &&
|
|
4768
|
-
4194304 &&
|
|
4769
|
-
8388608 && m &&
|
|
5347
|
+
33554433 && S && i && (Or(), zr()), e.$$.dirty[0] & /*session*/
|
|
5348
|
+
1 && (i || Lr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5349
|
+
34 && s && g && wn(g, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5350
|
+
36 && c && g && Tn(g, c), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
5351
|
+
40 && g && Mn(g, `${l}.Style`, f), e.$$.dirty[0] & /*lang*/
|
|
5352
|
+
4194304 && u && Pr(), e.$$.dirty[0] & /*translationurl*/
|
|
5353
|
+
8388608 && m && Br();
|
|
4770
5354
|
}, [
|
|
4771
5355
|
i,
|
|
4772
5356
|
s,
|
|
4773
|
-
|
|
4774
|
-
|
|
5357
|
+
c,
|
|
5358
|
+
l,
|
|
4775
5359
|
d,
|
|
4776
|
-
|
|
4777
|
-
x,
|
|
5360
|
+
g,
|
|
4778
5361
|
H,
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
5362
|
+
E,
|
|
5363
|
+
z,
|
|
5364
|
+
j,
|
|
5365
|
+
_e,
|
|
5366
|
+
V,
|
|
5367
|
+
Q,
|
|
5368
|
+
D,
|
|
5369
|
+
ye,
|
|
5370
|
+
He,
|
|
4787
5371
|
n,
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
5372
|
+
Dr,
|
|
5373
|
+
Et,
|
|
5374
|
+
We,
|
|
4791
5375
|
o,
|
|
4792
5376
|
a,
|
|
4793
|
-
|
|
5377
|
+
u,
|
|
4794
5378
|
m,
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
5379
|
+
y,
|
|
5380
|
+
S,
|
|
5381
|
+
Xr,
|
|
5382
|
+
qr,
|
|
5383
|
+
Wr,
|
|
5384
|
+
Zr,
|
|
5385
|
+
Jr,
|
|
5386
|
+
Qr,
|
|
5387
|
+
Yr
|
|
4804
5388
|
];
|
|
4805
5389
|
}
|
|
4806
|
-
class
|
|
5390
|
+
class Hr extends ar {
|
|
4807
5391
|
constructor(t) {
|
|
4808
|
-
super(),
|
|
5392
|
+
super(), nr(
|
|
4809
5393
|
this,
|
|
4810
5394
|
t,
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
5395
|
+
No,
|
|
5396
|
+
Mo,
|
|
5397
|
+
_t,
|
|
4814
5398
|
{
|
|
4815
5399
|
session: 0,
|
|
4816
5400
|
userid: 20,
|
|
@@ -4823,7 +5407,7 @@ class Ji extends Ut {
|
|
|
4823
5407
|
translationurl: 23,
|
|
4824
5408
|
modalconsents: 24
|
|
4825
5409
|
},
|
|
4826
|
-
|
|
5410
|
+
Co,
|
|
4827
5411
|
[-1, -1, -1]
|
|
4828
5412
|
);
|
|
4829
5413
|
}
|
|
@@ -4888,7 +5472,26 @@ class Ji extends Ut {
|
|
|
4888
5472
|
this.$$set({ modalconsents: t }), X();
|
|
4889
5473
|
}
|
|
4890
5474
|
}
|
|
4891
|
-
|
|
5475
|
+
or(Hr, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
|
|
5476
|
+
const Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5477
|
+
__proto__: null,
|
|
5478
|
+
default: Hr
|
|
5479
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
4892
5480
|
export {
|
|
4893
|
-
|
|
5481
|
+
Bo as P,
|
|
5482
|
+
ar as S,
|
|
5483
|
+
ln as a,
|
|
5484
|
+
L as b,
|
|
5485
|
+
Re as c,
|
|
5486
|
+
O as d,
|
|
5487
|
+
w as e,
|
|
5488
|
+
X as f,
|
|
5489
|
+
wn as g,
|
|
5490
|
+
Tn as h,
|
|
5491
|
+
nr as i,
|
|
5492
|
+
Mn as j,
|
|
5493
|
+
or as k,
|
|
5494
|
+
$ as n,
|
|
5495
|
+
pn as o,
|
|
5496
|
+
_t as s
|
|
4894
5497
|
};
|