@everymatrix/player-account-gaming-limits-confirmation-modal 1.53.0 → 1.53.10
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/{PlayerAccountGamingLimitsConfirmationModal-CM1-wjxy.js → PlayerAccountGamingLimitsConfirmationModal-B5geW8rM.js} +928 -979
- package/esnext/player-account-gaming-limits-confirmation-modal.js +14 -0
- package/package.json +8 -9
- package/components/PlayerAccountGamingLimitsConfirmationModal-D9jSAWk7.cjs +0 -5
- package/es2015/player-account-gaming-limits-confirmation-modal.cjs +0 -1
- package/es2015/player-account-gaming-limits-confirmation-modal.js +0 -21
|
@@ -1,81 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
var _r = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var nt = Object.getOwnPropertySymbols;
|
|
4
|
-
var Er = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Se = (e, t, r) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
Er.call(t, r) && Se(e, r, t[r]);
|
|
8
|
-
if (nt)
|
|
9
|
-
for (var r of nt(t))
|
|
10
|
-
Sr.call(t, r) && Se(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, ot = (e, t) => xr(e, _r(t));
|
|
13
|
-
var L = (e, t, r) => Se(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var st = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var o = (h) => {
|
|
16
|
-
try {
|
|
17
|
-
a(r.next(h));
|
|
18
|
-
} catch (u) {
|
|
19
|
-
i(u);
|
|
20
|
-
}
|
|
21
|
-
}, s = (h) => {
|
|
22
|
-
try {
|
|
23
|
-
a(r.throw(h));
|
|
24
|
-
} catch (u) {
|
|
25
|
-
i(u);
|
|
26
|
-
}
|
|
27
|
-
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
|
28
|
-
a((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function I() {
|
|
1
|
+
function O() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function lr(e, t) {
|
|
33
4
|
for (const r in t) e[r] = t[r];
|
|
34
5
|
return (
|
|
35
6
|
/** @type {T & S} */
|
|
36
7
|
e
|
|
37
8
|
);
|
|
38
9
|
}
|
|
39
|
-
function
|
|
10
|
+
function Tt(e) {
|
|
40
11
|
return e();
|
|
41
12
|
}
|
|
42
|
-
function
|
|
13
|
+
function Ke() {
|
|
43
14
|
return /* @__PURE__ */ Object.create(null);
|
|
44
15
|
}
|
|
45
|
-
function
|
|
46
|
-
e.forEach(
|
|
16
|
+
function J(e) {
|
|
17
|
+
e.forEach(Tt);
|
|
47
18
|
}
|
|
48
|
-
function
|
|
19
|
+
function Ze(e) {
|
|
49
20
|
return typeof e == "function";
|
|
50
21
|
}
|
|
51
|
-
function
|
|
22
|
+
function Ht(e, t) {
|
|
52
23
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
53
24
|
}
|
|
54
|
-
function
|
|
25
|
+
function fr(e) {
|
|
55
26
|
return Object.keys(e).length === 0;
|
|
56
27
|
}
|
|
57
|
-
function
|
|
28
|
+
function Ct(e, ...t) {
|
|
58
29
|
if (e == null) {
|
|
59
30
|
for (const n of t)
|
|
60
31
|
n(void 0);
|
|
61
|
-
return
|
|
32
|
+
return O;
|
|
62
33
|
}
|
|
63
34
|
const r = e.subscribe(...t);
|
|
64
35
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
65
36
|
}
|
|
66
|
-
function
|
|
67
|
-
e.$$.on_destroy.push(
|
|
37
|
+
function cr(e, t, r) {
|
|
38
|
+
e.$$.on_destroy.push(Ct(t, r));
|
|
68
39
|
}
|
|
69
|
-
function
|
|
40
|
+
function mr(e, t, r, n) {
|
|
70
41
|
if (e) {
|
|
71
|
-
const i =
|
|
42
|
+
const i = Bt(e, t, r, n);
|
|
72
43
|
return e[0](i);
|
|
73
44
|
}
|
|
74
45
|
}
|
|
75
|
-
function
|
|
76
|
-
return e[1] && n ?
|
|
46
|
+
function Bt(e, t, r, n) {
|
|
47
|
+
return e[1] && n ? lr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
77
48
|
}
|
|
78
|
-
function
|
|
49
|
+
function dr(e, t, r, n) {
|
|
79
50
|
if (e[2] && n) {
|
|
80
51
|
const i = e[2](n(r));
|
|
81
52
|
if (t.dirty === void 0)
|
|
@@ -90,13 +61,13 @@ function Br(e, t, r, n) {
|
|
|
90
61
|
}
|
|
91
62
|
return t.dirty;
|
|
92
63
|
}
|
|
93
|
-
function
|
|
64
|
+
function pr(e, t, r, n, i, o) {
|
|
94
65
|
if (i) {
|
|
95
|
-
const s =
|
|
66
|
+
const s = Bt(t, r, n, o);
|
|
96
67
|
e.p(s, i);
|
|
97
68
|
}
|
|
98
69
|
}
|
|
99
|
-
function
|
|
70
|
+
function br(e) {
|
|
100
71
|
if (e.ctx.length > 32) {
|
|
101
72
|
const t = [], r = e.ctx.length / 32;
|
|
102
73
|
for (let n = 0; n < r; n++)
|
|
@@ -108,14 +79,14 @@ function Pr(e) {
|
|
|
108
79
|
function C(e, t) {
|
|
109
80
|
e.appendChild(t);
|
|
110
81
|
}
|
|
111
|
-
function
|
|
112
|
-
const n =
|
|
82
|
+
function gr(e, t, r) {
|
|
83
|
+
const n = yr(e);
|
|
113
84
|
if (!n.getElementById(t)) {
|
|
114
85
|
const i = N("style");
|
|
115
|
-
i.id = t, i.textContent = r,
|
|
86
|
+
i.id = t, i.textContent = r, vr(n, i);
|
|
116
87
|
}
|
|
117
88
|
}
|
|
118
|
-
function
|
|
89
|
+
function yr(e) {
|
|
119
90
|
if (!e) return document;
|
|
120
91
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
121
92
|
return t && /** @type {ShadowRoot} */
|
|
@@ -124,45 +95,45 @@ function Or(e) {
|
|
|
124
95
|
t
|
|
125
96
|
) : e.ownerDocument;
|
|
126
97
|
}
|
|
127
|
-
function
|
|
98
|
+
function vr(e, t) {
|
|
128
99
|
return C(
|
|
129
100
|
/** @type {Document} */
|
|
130
101
|
e.head || e,
|
|
131
102
|
t
|
|
132
103
|
), t.sheet;
|
|
133
104
|
}
|
|
134
|
-
function
|
|
105
|
+
function Qe(e, t, r) {
|
|
135
106
|
e.insertBefore(t, r || null);
|
|
136
107
|
}
|
|
137
|
-
function
|
|
108
|
+
function be(e) {
|
|
138
109
|
e.parentNode && e.parentNode.removeChild(e);
|
|
139
110
|
}
|
|
140
111
|
function N(e) {
|
|
141
112
|
return document.createElement(e);
|
|
142
113
|
}
|
|
143
|
-
function
|
|
114
|
+
function et(e) {
|
|
144
115
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
145
116
|
}
|
|
146
|
-
function
|
|
117
|
+
function ue(e) {
|
|
147
118
|
return document.createTextNode(e);
|
|
148
119
|
}
|
|
149
|
-
function
|
|
150
|
-
return
|
|
120
|
+
function Ee() {
|
|
121
|
+
return ue(" ");
|
|
151
122
|
}
|
|
152
|
-
function
|
|
123
|
+
function Se(e, t, r, n) {
|
|
153
124
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
154
125
|
}
|
|
155
|
-
function
|
|
126
|
+
function S(e, t, r) {
|
|
156
127
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
157
128
|
}
|
|
158
|
-
function
|
|
129
|
+
function xr(e) {
|
|
159
130
|
return Array.from(e.childNodes);
|
|
160
131
|
}
|
|
161
|
-
function
|
|
132
|
+
function we(e, t) {
|
|
162
133
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
163
134
|
t);
|
|
164
135
|
}
|
|
165
|
-
function
|
|
136
|
+
function _r(e) {
|
|
166
137
|
const t = {};
|
|
167
138
|
return e.childNodes.forEach(
|
|
168
139
|
/** @param {Element} node */
|
|
@@ -171,102 +142,102 @@ function Nr(e) {
|
|
|
171
142
|
}
|
|
172
143
|
), t;
|
|
173
144
|
}
|
|
174
|
-
let
|
|
175
|
-
function
|
|
176
|
-
|
|
145
|
+
let re;
|
|
146
|
+
function te(e) {
|
|
147
|
+
re = e;
|
|
177
148
|
}
|
|
178
|
-
function
|
|
179
|
-
if (!
|
|
180
|
-
return
|
|
149
|
+
function Er() {
|
|
150
|
+
if (!re) throw new Error("Function called outside component initialization");
|
|
151
|
+
return re;
|
|
181
152
|
}
|
|
182
|
-
function
|
|
183
|
-
|
|
153
|
+
function Sr(e) {
|
|
154
|
+
Er().$$.on_mount.push(e);
|
|
184
155
|
}
|
|
185
|
-
const
|
|
186
|
-
let
|
|
187
|
-
const
|
|
188
|
-
let
|
|
189
|
-
function
|
|
190
|
-
|
|
156
|
+
const k = [], Oe = [];
|
|
157
|
+
let V = [];
|
|
158
|
+
const tt = [], wr = /* @__PURE__ */ Promise.resolve();
|
|
159
|
+
let Ie = !1;
|
|
160
|
+
function Tr() {
|
|
161
|
+
Ie || (Ie = !0, wr.then(R));
|
|
191
162
|
}
|
|
192
|
-
function
|
|
193
|
-
|
|
163
|
+
function Ne(e) {
|
|
164
|
+
V.push(e);
|
|
194
165
|
}
|
|
195
|
-
const
|
|
196
|
-
let
|
|
197
|
-
function
|
|
198
|
-
if (
|
|
166
|
+
const Te = /* @__PURE__ */ new Set();
|
|
167
|
+
let F = 0;
|
|
168
|
+
function R() {
|
|
169
|
+
if (F !== 0)
|
|
199
170
|
return;
|
|
200
|
-
const e =
|
|
171
|
+
const e = re;
|
|
201
172
|
do {
|
|
202
173
|
try {
|
|
203
|
-
for (;
|
|
204
|
-
const t =
|
|
205
|
-
|
|
174
|
+
for (; F < k.length; ) {
|
|
175
|
+
const t = k[F];
|
|
176
|
+
F++, te(t), Hr(t.$$);
|
|
206
177
|
}
|
|
207
178
|
} catch (t) {
|
|
208
|
-
throw
|
|
179
|
+
throw k.length = 0, F = 0, t;
|
|
209
180
|
}
|
|
210
|
-
for (
|
|
211
|
-
for (let t = 0; t <
|
|
212
|
-
const r =
|
|
213
|
-
|
|
181
|
+
for (te(null), k.length = 0, F = 0; Oe.length; ) Oe.pop()();
|
|
182
|
+
for (let t = 0; t < V.length; t += 1) {
|
|
183
|
+
const r = V[t];
|
|
184
|
+
Te.has(r) || (Te.add(r), r());
|
|
214
185
|
}
|
|
215
|
-
|
|
216
|
-
} while (
|
|
217
|
-
for (;
|
|
218
|
-
|
|
219
|
-
|
|
186
|
+
V.length = 0;
|
|
187
|
+
} while (k.length);
|
|
188
|
+
for (; tt.length; )
|
|
189
|
+
tt.pop()();
|
|
190
|
+
Ie = !1, Te.clear(), te(e);
|
|
220
191
|
}
|
|
221
|
-
function
|
|
192
|
+
function Hr(e) {
|
|
222
193
|
if (e.fragment !== null) {
|
|
223
|
-
e.update(),
|
|
194
|
+
e.update(), J(e.before_update);
|
|
224
195
|
const t = e.dirty;
|
|
225
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
196
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
226
197
|
}
|
|
227
198
|
}
|
|
228
|
-
function
|
|
199
|
+
function Cr(e) {
|
|
229
200
|
const t = [], r = [];
|
|
230
|
-
|
|
231
|
-
}
|
|
232
|
-
const
|
|
233
|
-
let
|
|
234
|
-
function
|
|
235
|
-
e && e.i && (
|
|
236
|
-
}
|
|
237
|
-
function
|
|
238
|
-
if (e
|
|
239
|
-
if (
|
|
240
|
-
|
|
241
|
-
|
|
201
|
+
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
202
|
+
}
|
|
203
|
+
const he = /* @__PURE__ */ new Set();
|
|
204
|
+
let Br;
|
|
205
|
+
function At(e, t) {
|
|
206
|
+
e && e.i && (he.delete(e), e.i(t));
|
|
207
|
+
}
|
|
208
|
+
function Ar(e, t, r, n) {
|
|
209
|
+
if (e.o) {
|
|
210
|
+
if (he.has(e)) return;
|
|
211
|
+
he.add(e), Br.c.push(() => {
|
|
212
|
+
he.delete(e);
|
|
242
213
|
}), e.o(t);
|
|
243
214
|
}
|
|
244
215
|
}
|
|
245
|
-
function
|
|
216
|
+
function Pr(e, t, r) {
|
|
246
217
|
const { fragment: n, after_update: i } = e.$$;
|
|
247
|
-
n && n.m(t, r),
|
|
248
|
-
const o = e.$$.on_mount.map(
|
|
249
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
250
|
-
}), i.forEach(
|
|
218
|
+
n && n.m(t, r), Ne(() => {
|
|
219
|
+
const o = e.$$.on_mount.map(Tt).filter(Ze);
|
|
220
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
221
|
+
}), i.forEach(Ne);
|
|
251
222
|
}
|
|
252
|
-
function
|
|
223
|
+
function Lr(e, t) {
|
|
253
224
|
const r = e.$$;
|
|
254
|
-
r.fragment !== null && (
|
|
225
|
+
r.fragment !== null && (Cr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
255
226
|
}
|
|
256
|
-
function
|
|
257
|
-
e.$$.dirty[0] === -1 && (
|
|
227
|
+
function Or(e, t) {
|
|
228
|
+
e.$$.dirty[0] === -1 && (k.push(e), Tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
258
229
|
}
|
|
259
|
-
function
|
|
260
|
-
const h =
|
|
261
|
-
|
|
230
|
+
function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
231
|
+
const h = re;
|
|
232
|
+
te(e);
|
|
262
233
|
const u = e.$$ = {
|
|
263
234
|
fragment: null,
|
|
264
235
|
ctx: [],
|
|
265
236
|
// state
|
|
266
237
|
props: o,
|
|
267
|
-
update:
|
|
238
|
+
update: O,
|
|
268
239
|
not_equal: i,
|
|
269
|
-
bound:
|
|
240
|
+
bound: Ke(),
|
|
270
241
|
// lifecycle
|
|
271
242
|
on_mount: [],
|
|
272
243
|
on_destroy: [],
|
|
@@ -275,150 +246,146 @@ function zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
275
246
|
after_update: [],
|
|
276
247
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
277
248
|
// everything else
|
|
278
|
-
callbacks:
|
|
249
|
+
callbacks: Ke(),
|
|
279
250
|
dirty: a,
|
|
280
251
|
skip_bound: !1,
|
|
281
252
|
root: t.target || h.$$.root
|
|
282
253
|
};
|
|
283
254
|
s && s(u.root);
|
|
284
255
|
let l = !1;
|
|
285
|
-
if (u.ctx = r
|
|
286
|
-
const v = m.length ? m[0] :
|
|
287
|
-
return u.ctx && i(u.ctx[
|
|
288
|
-
})
|
|
256
|
+
if (u.ctx = r(e, t.props || {}, (f, c, ...m) => {
|
|
257
|
+
const v = m.length ? m[0] : c;
|
|
258
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && Or(e, f)), c;
|
|
259
|
+
}), u.update(), l = !0, J(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
289
260
|
if (t.hydrate) {
|
|
290
|
-
const
|
|
291
|
-
u.fragment && u.fragment.l(
|
|
261
|
+
const f = xr(t.target);
|
|
262
|
+
u.fragment && u.fragment.l(f), f.forEach(be);
|
|
292
263
|
} else
|
|
293
264
|
u.fragment && u.fragment.c();
|
|
294
|
-
t.intro &&
|
|
265
|
+
t.intro && At(e.$$.fragment), Pr(e, t.target, t.anchor), R();
|
|
295
266
|
}
|
|
296
|
-
|
|
297
|
-
}
|
|
298
|
-
let
|
|
299
|
-
typeof HTMLElement == "function" && (
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
267
|
+
te(h);
|
|
268
|
+
}
|
|
269
|
+
let Pt;
|
|
270
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
271
|
+
/** The Svelte component constructor */
|
|
272
|
+
$$ctor;
|
|
273
|
+
/** Slots */
|
|
274
|
+
$$s;
|
|
275
|
+
/** The Svelte component instance */
|
|
276
|
+
$$c;
|
|
277
|
+
/** Whether or not the custom element is connected */
|
|
278
|
+
$$cn = !1;
|
|
279
|
+
/** Component props data */
|
|
280
|
+
$$d = {};
|
|
281
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
282
|
+
$$r = !1;
|
|
283
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
284
|
+
$$p_d = {};
|
|
285
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
286
|
+
$$l = {};
|
|
287
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
288
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
289
|
+
constructor(e, t, r) {
|
|
290
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
321
291
|
}
|
|
322
|
-
addEventListener(t, r
|
|
323
|
-
if (this.$$l[
|
|
324
|
-
const
|
|
325
|
-
this.$$l_u.set(
|
|
292
|
+
addEventListener(e, t, r) {
|
|
293
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
294
|
+
const n = this.$$c.$on(e, t);
|
|
295
|
+
this.$$l_u.set(t, n);
|
|
326
296
|
}
|
|
327
|
-
super.addEventListener(t, r
|
|
297
|
+
super.addEventListener(e, t, r);
|
|
328
298
|
}
|
|
329
|
-
removeEventListener(t, r
|
|
330
|
-
if (super.removeEventListener(t, r
|
|
331
|
-
const
|
|
332
|
-
|
|
299
|
+
removeEventListener(e, t, r) {
|
|
300
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
301
|
+
const n = this.$$l_u.get(t);
|
|
302
|
+
n && (n(), this.$$l_u.delete(t));
|
|
333
303
|
}
|
|
334
304
|
}
|
|
335
|
-
connectedCallback() {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}
|
|
355
|
-
};
|
|
305
|
+
async connectedCallback() {
|
|
306
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
307
|
+
let e = function(i) {
|
|
308
|
+
return () => {
|
|
309
|
+
let o;
|
|
310
|
+
return {
|
|
311
|
+
c: function() {
|
|
312
|
+
o = N("slot"), i !== "default" && S(o, "name", i);
|
|
313
|
+
},
|
|
314
|
+
/**
|
|
315
|
+
* @param {HTMLElement} target
|
|
316
|
+
* @param {HTMLElement} [anchor]
|
|
317
|
+
*/
|
|
318
|
+
m: function(h, u) {
|
|
319
|
+
Qe(h, o, u);
|
|
320
|
+
},
|
|
321
|
+
d: function(h) {
|
|
322
|
+
h && be(o);
|
|
323
|
+
}
|
|
356
324
|
};
|
|
357
325
|
};
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
326
|
+
};
|
|
327
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
328
|
+
return;
|
|
329
|
+
const t = {}, r = _r(this);
|
|
330
|
+
for (const i of this.$$s)
|
|
331
|
+
i in r && (t[i] = [e(i)]);
|
|
332
|
+
for (const i of this.attributes) {
|
|
333
|
+
const o = this.$$g_p(i.name);
|
|
334
|
+
o in this.$$d || (this.$$d[o] = le(o, i.value, this.$$p_d, "toProp"));
|
|
335
|
+
}
|
|
336
|
+
for (const i in this.$$p_d)
|
|
337
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
338
|
+
this.$$c = new this.$$ctor({
|
|
339
|
+
target: this.shadowRoot || this,
|
|
340
|
+
props: {
|
|
341
|
+
...this.$$d,
|
|
342
|
+
$$slots: t,
|
|
343
|
+
$$scope: {
|
|
344
|
+
ctx: []
|
|
345
|
+
}
|
|
366
346
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
this.$$
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
this.$$r = !0;
|
|
380
|
-
for (const o in this.$$p_d)
|
|
381
|
-
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
382
|
-
const s = ce(
|
|
383
|
-
o,
|
|
384
|
-
this.$$d[o],
|
|
385
|
-
this.$$p_d,
|
|
386
|
-
"toAttribute"
|
|
387
|
-
);
|
|
388
|
-
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
389
|
-
}
|
|
390
|
-
this.$$r = !1;
|
|
391
|
-
};
|
|
392
|
-
this.$$c.$$.after_update.push(i), i();
|
|
393
|
-
for (const o in this.$$l)
|
|
394
|
-
for (const s of this.$$l[o]) {
|
|
395
|
-
const a = this.$$c.$on(o, s);
|
|
396
|
-
this.$$l_u.set(s, a);
|
|
347
|
+
});
|
|
348
|
+
const n = () => {
|
|
349
|
+
this.$$r = !0;
|
|
350
|
+
for (const i in this.$$p_d)
|
|
351
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
352
|
+
const o = le(
|
|
353
|
+
i,
|
|
354
|
+
this.$$d[i],
|
|
355
|
+
this.$$p_d,
|
|
356
|
+
"toAttribute"
|
|
357
|
+
);
|
|
358
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
397
359
|
}
|
|
398
|
-
this.$$
|
|
399
|
-
}
|
|
400
|
-
|
|
360
|
+
this.$$r = !1;
|
|
361
|
+
};
|
|
362
|
+
this.$$c.$$.after_update.push(n), n();
|
|
363
|
+
for (const i in this.$$l)
|
|
364
|
+
for (const o of this.$$l[i]) {
|
|
365
|
+
const s = this.$$c.$on(i, o);
|
|
366
|
+
this.$$l_u.set(o, s);
|
|
367
|
+
}
|
|
368
|
+
this.$$l = {};
|
|
369
|
+
}
|
|
401
370
|
}
|
|
402
371
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
403
372
|
// and setting attributes through setAttribute etc, this is helpful
|
|
404
|
-
attributeChangedCallback(t, r
|
|
405
|
-
|
|
406
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ce(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
373
|
+
attributeChangedCallback(e, t, r) {
|
|
374
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = le(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
407
375
|
}
|
|
408
376
|
disconnectedCallback() {
|
|
409
377
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
410
378
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
411
379
|
});
|
|
412
380
|
}
|
|
413
|
-
$$g_p(
|
|
381
|
+
$$g_p(e) {
|
|
414
382
|
return Object.keys(this.$$p_d).find(
|
|
415
|
-
(
|
|
416
|
-
) ||
|
|
383
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
384
|
+
) || e;
|
|
417
385
|
}
|
|
418
386
|
});
|
|
419
|
-
function
|
|
420
|
-
|
|
421
|
-
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
387
|
+
function le(e, t, r, n) {
|
|
388
|
+
const i = r[e]?.type;
|
|
422
389
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
423
390
|
return t;
|
|
424
391
|
if (n === "toAttribute")
|
|
@@ -429,7 +396,7 @@ function ce(e, t, r, n) {
|
|
|
429
396
|
case "Boolean":
|
|
430
397
|
return t ? "" : null;
|
|
431
398
|
case "Number":
|
|
432
|
-
return t
|
|
399
|
+
return t ?? null;
|
|
433
400
|
default:
|
|
434
401
|
return t;
|
|
435
402
|
}
|
|
@@ -446,8 +413,8 @@ function ce(e, t, r, n) {
|
|
|
446
413
|
return t;
|
|
447
414
|
}
|
|
448
415
|
}
|
|
449
|
-
function
|
|
450
|
-
let s = class extends
|
|
416
|
+
function Nr(e, t, r, n, i, o) {
|
|
417
|
+
let s = class extends Pt {
|
|
451
418
|
constructor() {
|
|
452
419
|
super(e, r, i), this.$$p_d = t;
|
|
453
420
|
}
|
|
@@ -463,42 +430,38 @@ function Zr(e, t, r, n, i, o) {
|
|
|
463
430
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
464
431
|
},
|
|
465
432
|
set(h) {
|
|
466
|
-
|
|
467
|
-
h = ce(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
433
|
+
h = le(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
468
434
|
}
|
|
469
435
|
});
|
|
470
436
|
}), n.forEach((a) => {
|
|
471
437
|
Object.defineProperty(s.prototype, a, {
|
|
472
438
|
get() {
|
|
473
|
-
|
|
474
|
-
return (h = this.$$c) == null ? void 0 : h[a];
|
|
439
|
+
return this.$$c?.[a];
|
|
475
440
|
}
|
|
476
441
|
});
|
|
477
442
|
}), e.element = /** @type {any} */
|
|
478
443
|
s, s;
|
|
479
444
|
}
|
|
480
|
-
class
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
L(this, "$$set");
|
|
498
|
-
}
|
|
445
|
+
class Mr {
|
|
446
|
+
/**
|
|
447
|
+
* ### PRIVATE API
|
|
448
|
+
*
|
|
449
|
+
* Do not use, may change at any time
|
|
450
|
+
*
|
|
451
|
+
* @type {any}
|
|
452
|
+
*/
|
|
453
|
+
$$ = void 0;
|
|
454
|
+
/**
|
|
455
|
+
* ### PRIVATE API
|
|
456
|
+
*
|
|
457
|
+
* Do not use, may change at any time
|
|
458
|
+
*
|
|
459
|
+
* @type {any}
|
|
460
|
+
*/
|
|
461
|
+
$$set = void 0;
|
|
499
462
|
/** @returns {void} */
|
|
500
463
|
$destroy() {
|
|
501
|
-
|
|
464
|
+
Lr(this, 1), this.$destroy = O;
|
|
502
465
|
}
|
|
503
466
|
/**
|
|
504
467
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -507,8 +470,8 @@ class Qr {
|
|
|
507
470
|
* @returns {() => void}
|
|
508
471
|
*/
|
|
509
472
|
$on(t, r) {
|
|
510
|
-
if (!
|
|
511
|
-
return
|
|
473
|
+
if (!Ze(r))
|
|
474
|
+
return O;
|
|
512
475
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
513
476
|
return n.push(r), () => {
|
|
514
477
|
const i = n.indexOf(r);
|
|
@@ -520,22 +483,22 @@ class Qr {
|
|
|
520
483
|
* @returns {void}
|
|
521
484
|
*/
|
|
522
485
|
$set(t) {
|
|
523
|
-
this.$$set && !
|
|
486
|
+
this.$$set && !fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
524
487
|
}
|
|
525
488
|
}
|
|
526
|
-
const
|
|
527
|
-
typeof window
|
|
528
|
-
var
|
|
529
|
-
return
|
|
489
|
+
const $r = "4";
|
|
490
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add($r);
|
|
491
|
+
var Me = function(e, t) {
|
|
492
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
530
493
|
r.__proto__ = n;
|
|
531
494
|
} || function(r, n) {
|
|
532
495
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
533
|
-
},
|
|
496
|
+
}, Me(e, t);
|
|
534
497
|
};
|
|
535
|
-
function
|
|
498
|
+
function $(e, t) {
|
|
536
499
|
if (typeof t != "function" && t !== null)
|
|
537
500
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
538
|
-
|
|
501
|
+
Me(e, t);
|
|
539
502
|
function r() {
|
|
540
503
|
this.constructor = e;
|
|
541
504
|
}
|
|
@@ -550,7 +513,7 @@ var y = function() {
|
|
|
550
513
|
return t;
|
|
551
514
|
}, y.apply(this, arguments);
|
|
552
515
|
};
|
|
553
|
-
function
|
|
516
|
+
function Rr(e, t) {
|
|
554
517
|
var r = {};
|
|
555
518
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
556
519
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -558,7 +521,7 @@ function Yr(e, t) {
|
|
|
558
521
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
559
522
|
return r;
|
|
560
523
|
}
|
|
561
|
-
function
|
|
524
|
+
function $e(e) {
|
|
562
525
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
563
526
|
if (r) return r.call(e);
|
|
564
527
|
if (e && typeof e.length == "number") return {
|
|
@@ -568,7 +531,7 @@ function Ue(e) {
|
|
|
568
531
|
};
|
|
569
532
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
570
533
|
}
|
|
571
|
-
function
|
|
534
|
+
function Re(e, t) {
|
|
572
535
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
573
536
|
if (!r) return e;
|
|
574
537
|
var n = r.call(e), i, o = [], s;
|
|
@@ -585,21 +548,21 @@ function De(e, t) {
|
|
|
585
548
|
}
|
|
586
549
|
return o;
|
|
587
550
|
}
|
|
588
|
-
function
|
|
551
|
+
function X(e, t, r) {
|
|
589
552
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
590
553
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
591
554
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
592
555
|
}
|
|
593
|
-
function
|
|
556
|
+
function M(e) {
|
|
594
557
|
return typeof e == "function";
|
|
595
558
|
}
|
|
596
|
-
function
|
|
559
|
+
function Lt(e) {
|
|
597
560
|
var t = function(n) {
|
|
598
561
|
Error.call(n), n.stack = new Error().stack;
|
|
599
562
|
}, r = e(t);
|
|
600
563
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
601
564
|
}
|
|
602
|
-
var
|
|
565
|
+
var He = Lt(function(e) {
|
|
603
566
|
return function(r) {
|
|
604
567
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
605
568
|
` + r.map(function(n, i) {
|
|
@@ -608,13 +571,13 @@ var Be = Ut(function(e) {
|
|
|
608
571
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
609
572
|
};
|
|
610
573
|
});
|
|
611
|
-
function
|
|
574
|
+
function Ge(e, t) {
|
|
612
575
|
if (e) {
|
|
613
576
|
var r = e.indexOf(t);
|
|
614
577
|
0 <= r && e.splice(r, 1);
|
|
615
578
|
}
|
|
616
579
|
}
|
|
617
|
-
var
|
|
580
|
+
var ge = function() {
|
|
618
581
|
function e(t) {
|
|
619
582
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
620
583
|
}
|
|
@@ -626,7 +589,7 @@ var ye = function() {
|
|
|
626
589
|
if (s)
|
|
627
590
|
if (this._parentage = null, Array.isArray(s))
|
|
628
591
|
try {
|
|
629
|
-
for (var a =
|
|
592
|
+
for (var a = $e(s), h = a.next(); !h.done; h = a.next()) {
|
|
630
593
|
var u = h.value;
|
|
631
594
|
u.remove(this);
|
|
632
595
|
}
|
|
@@ -642,42 +605,42 @@ var ye = function() {
|
|
|
642
605
|
else
|
|
643
606
|
s.remove(this);
|
|
644
607
|
var l = this.initialTeardown;
|
|
645
|
-
if (
|
|
608
|
+
if (M(l))
|
|
646
609
|
try {
|
|
647
610
|
l();
|
|
648
611
|
} catch (g) {
|
|
649
|
-
o = g instanceof
|
|
612
|
+
o = g instanceof He ? g.errors : [g];
|
|
650
613
|
}
|
|
651
|
-
var
|
|
652
|
-
if (
|
|
614
|
+
var f = this._finalizers;
|
|
615
|
+
if (f) {
|
|
653
616
|
this._finalizers = null;
|
|
654
617
|
try {
|
|
655
|
-
for (var
|
|
618
|
+
for (var c = $e(f), m = c.next(); !m.done; m = c.next()) {
|
|
656
619
|
var v = m.value;
|
|
657
620
|
try {
|
|
658
|
-
|
|
621
|
+
rt(v);
|
|
659
622
|
} catch (g) {
|
|
660
|
-
o = o
|
|
623
|
+
o = o ?? [], g instanceof He ? o = X(X([], Re(o)), Re(g.errors)) : o.push(g);
|
|
661
624
|
}
|
|
662
625
|
}
|
|
663
626
|
} catch (g) {
|
|
664
627
|
n = { error: g };
|
|
665
628
|
} finally {
|
|
666
629
|
try {
|
|
667
|
-
m && !m.done && (i =
|
|
630
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
668
631
|
} finally {
|
|
669
632
|
if (n) throw n.error;
|
|
670
633
|
}
|
|
671
634
|
}
|
|
672
635
|
}
|
|
673
636
|
if (o)
|
|
674
|
-
throw new
|
|
637
|
+
throw new He(o);
|
|
675
638
|
}
|
|
676
639
|
}, e.prototype.add = function(t) {
|
|
677
640
|
var r;
|
|
678
641
|
if (t && t !== this)
|
|
679
642
|
if (this.closed)
|
|
680
|
-
|
|
643
|
+
rt(t);
|
|
681
644
|
else {
|
|
682
645
|
if (t instanceof e) {
|
|
683
646
|
if (t.closed || t._hasParent(this))
|
|
@@ -694,56 +657,56 @@ var ye = function() {
|
|
|
694
657
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
695
658
|
}, e.prototype._removeParent = function(t) {
|
|
696
659
|
var r = this._parentage;
|
|
697
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
660
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ge(r, t);
|
|
698
661
|
}, e.prototype.remove = function(t) {
|
|
699
662
|
var r = this._finalizers;
|
|
700
|
-
r &&
|
|
663
|
+
r && Ge(r, t), t instanceof e && t._removeParent(this);
|
|
701
664
|
}, e.EMPTY = function() {
|
|
702
665
|
var t = new e();
|
|
703
666
|
return t.closed = !0, t;
|
|
704
667
|
}(), e;
|
|
705
|
-
}(),
|
|
706
|
-
function
|
|
707
|
-
return e instanceof
|
|
668
|
+
}(), Ot = ge.EMPTY;
|
|
669
|
+
function It(e) {
|
|
670
|
+
return e instanceof ge || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
708
671
|
}
|
|
709
|
-
function
|
|
710
|
-
|
|
672
|
+
function rt(e) {
|
|
673
|
+
M(e) ? e() : e.unsubscribe();
|
|
711
674
|
}
|
|
712
|
-
var
|
|
675
|
+
var Gr = {
|
|
713
676
|
onUnhandledError: null,
|
|
714
677
|
onStoppedNotification: null,
|
|
715
678
|
Promise: void 0,
|
|
716
679
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
717
680
|
useDeprecatedNextContext: !1
|
|
718
|
-
},
|
|
681
|
+
}, Ur = {
|
|
719
682
|
setTimeout: function(e, t) {
|
|
720
683
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
721
684
|
r[n - 2] = arguments[n];
|
|
722
|
-
return setTimeout.apply(void 0,
|
|
685
|
+
return setTimeout.apply(void 0, X([e, t], Re(r)));
|
|
723
686
|
},
|
|
724
687
|
clearTimeout: function(e) {
|
|
725
688
|
return clearTimeout(e);
|
|
726
689
|
},
|
|
727
690
|
delegate: void 0
|
|
728
691
|
};
|
|
729
|
-
function
|
|
730
|
-
|
|
692
|
+
function Dr(e) {
|
|
693
|
+
Ur.setTimeout(function() {
|
|
731
694
|
throw e;
|
|
732
695
|
});
|
|
733
696
|
}
|
|
734
|
-
function
|
|
697
|
+
function nt() {
|
|
735
698
|
}
|
|
736
699
|
function fe(e) {
|
|
737
700
|
e();
|
|
738
701
|
}
|
|
739
|
-
var
|
|
740
|
-
|
|
702
|
+
var Nt = function(e) {
|
|
703
|
+
$(t, e);
|
|
741
704
|
function t(r) {
|
|
742
705
|
var n = e.call(this) || this;
|
|
743
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
706
|
+
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = kr, n;
|
|
744
707
|
}
|
|
745
708
|
return t.create = function(r, n, i) {
|
|
746
|
-
return new
|
|
709
|
+
return new Ue(r, n, i);
|
|
747
710
|
}, t.prototype.next = function(r) {
|
|
748
711
|
this.isStopped || this._next(r);
|
|
749
712
|
}, t.prototype.error = function(r) {
|
|
@@ -767,11 +730,7 @@ var kt = function(e) {
|
|
|
767
730
|
this.unsubscribe();
|
|
768
731
|
}
|
|
769
732
|
}, t;
|
|
770
|
-
}(
|
|
771
|
-
function Ae(e, t) {
|
|
772
|
-
return en.call(e, t);
|
|
773
|
-
}
|
|
774
|
-
var tn = function() {
|
|
733
|
+
}(ge), Fr = function() {
|
|
775
734
|
function e(t) {
|
|
776
735
|
this.partialObserver = t;
|
|
777
736
|
}
|
|
@@ -781,7 +740,7 @@ var tn = function() {
|
|
|
781
740
|
try {
|
|
782
741
|
r.next(t);
|
|
783
742
|
} catch (n) {
|
|
784
|
-
|
|
743
|
+
se(n);
|
|
785
744
|
}
|
|
786
745
|
}, e.prototype.error = function(t) {
|
|
787
746
|
var r = this.partialObserver;
|
|
@@ -789,68 +748,56 @@ var tn = function() {
|
|
|
789
748
|
try {
|
|
790
749
|
r.error(t);
|
|
791
750
|
} catch (n) {
|
|
792
|
-
|
|
751
|
+
se(n);
|
|
793
752
|
}
|
|
794
753
|
else
|
|
795
|
-
|
|
754
|
+
se(t);
|
|
796
755
|
}, e.prototype.complete = function() {
|
|
797
756
|
var t = this.partialObserver;
|
|
798
757
|
if (t.complete)
|
|
799
758
|
try {
|
|
800
759
|
t.complete();
|
|
801
760
|
} catch (r) {
|
|
802
|
-
|
|
761
|
+
se(r);
|
|
803
762
|
}
|
|
804
763
|
}, e;
|
|
805
|
-
}(),
|
|
806
|
-
|
|
764
|
+
}(), Ue = function(e) {
|
|
765
|
+
$(t, e);
|
|
807
766
|
function t(r, n, i) {
|
|
808
767
|
var o = e.call(this) || this, s;
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
};
|
|
815
|
-
else {
|
|
816
|
-
var a;
|
|
817
|
-
o && jt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
818
|
-
return o.unsubscribe();
|
|
819
|
-
}, s = {
|
|
820
|
-
next: r.next && Ae(r.next, a),
|
|
821
|
-
error: r.error && Ae(r.error, a),
|
|
822
|
-
complete: r.complete && Ae(r.complete, a)
|
|
823
|
-
}) : s = r;
|
|
824
|
-
}
|
|
825
|
-
return o.destination = new tn(s), o;
|
|
768
|
+
return M(r) || !r ? s = {
|
|
769
|
+
next: r ?? void 0,
|
|
770
|
+
error: n ?? void 0,
|
|
771
|
+
complete: i ?? void 0
|
|
772
|
+
} : s = r, o.destination = new Fr(s), o;
|
|
826
773
|
}
|
|
827
774
|
return t;
|
|
828
|
-
}(
|
|
829
|
-
function
|
|
830
|
-
|
|
775
|
+
}(Nt);
|
|
776
|
+
function se(e) {
|
|
777
|
+
Dr(e);
|
|
831
778
|
}
|
|
832
|
-
function
|
|
779
|
+
function jr(e) {
|
|
833
780
|
throw e;
|
|
834
781
|
}
|
|
835
|
-
var
|
|
782
|
+
var kr = {
|
|
836
783
|
closed: !0,
|
|
837
|
-
next:
|
|
838
|
-
error:
|
|
839
|
-
complete:
|
|
840
|
-
},
|
|
784
|
+
next: nt,
|
|
785
|
+
error: jr,
|
|
786
|
+
complete: nt
|
|
787
|
+
}, Vr = function() {
|
|
841
788
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
842
789
|
}();
|
|
843
|
-
function
|
|
790
|
+
function Xr(e) {
|
|
844
791
|
return e;
|
|
845
792
|
}
|
|
846
|
-
function
|
|
847
|
-
return e.length === 0 ?
|
|
793
|
+
function Wr(e) {
|
|
794
|
+
return e.length === 0 ? Xr : e.length === 1 ? e[0] : function(r) {
|
|
848
795
|
return e.reduce(function(n, i) {
|
|
849
796
|
return i(n);
|
|
850
797
|
}, r);
|
|
851
798
|
};
|
|
852
799
|
}
|
|
853
|
-
var
|
|
800
|
+
var it = function() {
|
|
854
801
|
function e(t) {
|
|
855
802
|
t && (this._subscribe = t);
|
|
856
803
|
}
|
|
@@ -858,7 +805,7 @@ var ft = function() {
|
|
|
858
805
|
var r = new e();
|
|
859
806
|
return r.source = this, r.operator = t, r;
|
|
860
807
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
861
|
-
var i = this, o =
|
|
808
|
+
var i = this, o = Zr(t) ? t : new Ue(t, r, n);
|
|
862
809
|
return fe(function() {
|
|
863
810
|
var s = i, a = s.operator, h = s.source;
|
|
864
811
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -871,8 +818,8 @@ var ft = function() {
|
|
|
871
818
|
}
|
|
872
819
|
}, e.prototype.forEach = function(t, r) {
|
|
873
820
|
var n = this;
|
|
874
|
-
return r =
|
|
875
|
-
var s = new
|
|
821
|
+
return r = ot(r), new r(function(i, o) {
|
|
822
|
+
var s = new Ue({
|
|
876
823
|
next: function(a) {
|
|
877
824
|
try {
|
|
878
825
|
t(a);
|
|
@@ -888,15 +835,15 @@ var ft = function() {
|
|
|
888
835
|
}, e.prototype._subscribe = function(t) {
|
|
889
836
|
var r;
|
|
890
837
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
891
|
-
}, e.prototype[
|
|
838
|
+
}, e.prototype[Vr] = function() {
|
|
892
839
|
return this;
|
|
893
840
|
}, e.prototype.pipe = function() {
|
|
894
841
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
895
842
|
t[r] = arguments[r];
|
|
896
|
-
return
|
|
843
|
+
return Wr(t)(this);
|
|
897
844
|
}, e.prototype.toPromise = function(t) {
|
|
898
845
|
var r = this;
|
|
899
|
-
return t =
|
|
846
|
+
return t = ot(t), new t(function(n, i) {
|
|
900
847
|
var o;
|
|
901
848
|
r.subscribe(function(s) {
|
|
902
849
|
return o = s;
|
|
@@ -910,32 +857,32 @@ var ft = function() {
|
|
|
910
857
|
return new e(t);
|
|
911
858
|
}, e;
|
|
912
859
|
}();
|
|
913
|
-
function
|
|
860
|
+
function ot(e) {
|
|
914
861
|
var t;
|
|
915
|
-
return (t = e
|
|
862
|
+
return (t = e ?? Gr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
916
863
|
}
|
|
917
|
-
function
|
|
918
|
-
return e &&
|
|
864
|
+
function zr(e) {
|
|
865
|
+
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
919
866
|
}
|
|
920
|
-
function
|
|
921
|
-
return e && e instanceof
|
|
867
|
+
function Zr(e) {
|
|
868
|
+
return e && e instanceof Nt || zr(e) && It(e);
|
|
922
869
|
}
|
|
923
|
-
var
|
|
870
|
+
var Qr = Lt(function(e) {
|
|
924
871
|
return function() {
|
|
925
872
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
926
873
|
};
|
|
927
|
-
}),
|
|
928
|
-
|
|
874
|
+
}), Mt = function(e) {
|
|
875
|
+
$(t, e);
|
|
929
876
|
function t() {
|
|
930
877
|
var r = e.call(this) || this;
|
|
931
878
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
932
879
|
}
|
|
933
880
|
return t.prototype.lift = function(r) {
|
|
934
|
-
var n = new
|
|
881
|
+
var n = new st(this, this);
|
|
935
882
|
return n.operator = r, n;
|
|
936
883
|
}, t.prototype._throwIfClosed = function() {
|
|
937
884
|
if (this.closed)
|
|
938
|
-
throw new
|
|
885
|
+
throw new Qr();
|
|
939
886
|
}, t.prototype.next = function(r) {
|
|
940
887
|
var n = this;
|
|
941
888
|
fe(function() {
|
|
@@ -943,7 +890,7 @@ var ln = Ut(function(e) {
|
|
|
943
890
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
944
891
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
945
892
|
try {
|
|
946
|
-
for (var s =
|
|
893
|
+
for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
947
894
|
var h = a.value;
|
|
948
895
|
h.next(r);
|
|
949
896
|
}
|
|
@@ -991,20 +938,20 @@ var ln = Ut(function(e) {
|
|
|
991
938
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
992
939
|
}, t.prototype._innerSubscribe = function(r) {
|
|
993
940
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
994
|
-
return o || s ?
|
|
995
|
-
n.currentObservers = null,
|
|
941
|
+
return o || s ? Ot : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
942
|
+
n.currentObservers = null, Ge(a, r);
|
|
996
943
|
}));
|
|
997
944
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
998
945
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
999
946
|
i ? r.error(o) : s && r.complete();
|
|
1000
947
|
}, t.prototype.asObservable = function() {
|
|
1001
|
-
var r = new
|
|
948
|
+
var r = new it();
|
|
1002
949
|
return r.source = this, r;
|
|
1003
950
|
}, t.create = function(r, n) {
|
|
1004
|
-
return new
|
|
951
|
+
return new st(r, n);
|
|
1005
952
|
}, t;
|
|
1006
|
-
}(
|
|
1007
|
-
|
|
953
|
+
}(it), st = function(e) {
|
|
954
|
+
$(t, e);
|
|
1008
955
|
function t(r, n) {
|
|
1009
956
|
var i = e.call(this) || this;
|
|
1010
957
|
return i.destination = r, i.source = n, i;
|
|
@@ -1020,17 +967,17 @@ var ln = Ut(function(e) {
|
|
|
1020
967
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1021
968
|
}, t.prototype._subscribe = function(r) {
|
|
1022
969
|
var n, i;
|
|
1023
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
970
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ot;
|
|
1024
971
|
}, t;
|
|
1025
|
-
}(
|
|
972
|
+
}(Mt), $t = {
|
|
1026
973
|
now: function() {
|
|
1027
|
-
return (
|
|
974
|
+
return ($t.delegate || Date).now();
|
|
1028
975
|
},
|
|
1029
976
|
delegate: void 0
|
|
1030
|
-
},
|
|
1031
|
-
|
|
977
|
+
}, Jr = function(e) {
|
|
978
|
+
$(t, e);
|
|
1032
979
|
function t(r, n, i) {
|
|
1033
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
980
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
1034
981
|
var o = e.call(this) || this;
|
|
1035
982
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1036
983
|
}
|
|
@@ -1050,249 +997,251 @@ var ln = Ut(function(e) {
|
|
|
1050
997
|
u && o.splice(0, u + 1);
|
|
1051
998
|
}
|
|
1052
999
|
}, t;
|
|
1053
|
-
}(
|
|
1054
|
-
const
|
|
1055
|
-
if (
|
|
1056
|
-
const r = new
|
|
1057
|
-
|
|
1000
|
+
}(Mt);
|
|
1001
|
+
const at = [], ut = {}, Yr = (e, t = 0) => {
|
|
1002
|
+
if (at.indexOf(e) == -1) {
|
|
1003
|
+
const r = new Jr(t);
|
|
1004
|
+
ut[e] = r, at.push(e);
|
|
1058
1005
|
}
|
|
1059
|
-
return
|
|
1060
|
-
},
|
|
1061
|
-
function
|
|
1006
|
+
return ut[e];
|
|
1007
|
+
}, j = [];
|
|
1008
|
+
function qr(e, t) {
|
|
1062
1009
|
return {
|
|
1063
|
-
subscribe:
|
|
1010
|
+
subscribe: ye(e, t).subscribe
|
|
1064
1011
|
};
|
|
1065
1012
|
}
|
|
1066
|
-
function
|
|
1013
|
+
function ye(e, t = O) {
|
|
1067
1014
|
let r;
|
|
1068
1015
|
const n = /* @__PURE__ */ new Set();
|
|
1069
1016
|
function i(a) {
|
|
1070
|
-
if (
|
|
1071
|
-
const h = !
|
|
1017
|
+
if (Ht(e, a) && (e = a, r)) {
|
|
1018
|
+
const h = !j.length;
|
|
1072
1019
|
for (const u of n)
|
|
1073
|
-
u[1](),
|
|
1020
|
+
u[1](), j.push(u, e);
|
|
1074
1021
|
if (h) {
|
|
1075
|
-
for (let u = 0; u <
|
|
1076
|
-
|
|
1077
|
-
|
|
1022
|
+
for (let u = 0; u < j.length; u += 2)
|
|
1023
|
+
j[u][0](j[u + 1]);
|
|
1024
|
+
j.length = 0;
|
|
1078
1025
|
}
|
|
1079
1026
|
}
|
|
1080
1027
|
}
|
|
1081
1028
|
function o(a) {
|
|
1082
1029
|
i(a(e));
|
|
1083
1030
|
}
|
|
1084
|
-
function s(a, h =
|
|
1031
|
+
function s(a, h = O) {
|
|
1085
1032
|
const u = [a, h];
|
|
1086
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1033
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || O), a(e), () => {
|
|
1087
1034
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1088
1035
|
};
|
|
1089
1036
|
}
|
|
1090
1037
|
return { set: i, update: o, subscribe: s };
|
|
1091
1038
|
}
|
|
1092
|
-
function
|
|
1039
|
+
function Y(e, t, r) {
|
|
1093
1040
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1094
1041
|
if (!i.every(Boolean))
|
|
1095
1042
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1096
1043
|
const o = t.length < 2;
|
|
1097
|
-
return
|
|
1044
|
+
return qr(r, (s, a) => {
|
|
1098
1045
|
let h = !1;
|
|
1099
1046
|
const u = [];
|
|
1100
|
-
let l = 0,
|
|
1101
|
-
const
|
|
1047
|
+
let l = 0, f = O;
|
|
1048
|
+
const c = () => {
|
|
1102
1049
|
if (l)
|
|
1103
1050
|
return;
|
|
1104
|
-
|
|
1051
|
+
f();
|
|
1105
1052
|
const v = t(n ? u[0] : u, s, a);
|
|
1106
|
-
o ? s(v) :
|
|
1053
|
+
o ? s(v) : f = Ze(v) ? v : O;
|
|
1107
1054
|
}, m = i.map(
|
|
1108
|
-
(v, g) =>
|
|
1055
|
+
(v, g) => Ct(
|
|
1109
1056
|
v,
|
|
1110
1057
|
(E) => {
|
|
1111
|
-
u[g] = E, l &= ~(1 << g), h &&
|
|
1058
|
+
u[g] = E, l &= ~(1 << g), h && c();
|
|
1112
1059
|
},
|
|
1113
1060
|
() => {
|
|
1114
1061
|
l |= 1 << g;
|
|
1115
1062
|
}
|
|
1116
1063
|
)
|
|
1117
1064
|
);
|
|
1118
|
-
return h = !0,
|
|
1119
|
-
|
|
1065
|
+
return h = !0, c(), function() {
|
|
1066
|
+
J(m), f(), h = !1;
|
|
1120
1067
|
};
|
|
1121
1068
|
});
|
|
1122
1069
|
}
|
|
1123
|
-
function
|
|
1124
|
-
return e
|
|
1070
|
+
function Kr(e) {
|
|
1071
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1125
1072
|
}
|
|
1126
|
-
var
|
|
1127
|
-
return
|
|
1073
|
+
var en = function(t) {
|
|
1074
|
+
return tn(t) && !rn(t);
|
|
1128
1075
|
};
|
|
1129
|
-
function
|
|
1076
|
+
function tn(e) {
|
|
1130
1077
|
return !!e && typeof e == "object";
|
|
1131
1078
|
}
|
|
1132
|
-
function
|
|
1079
|
+
function rn(e) {
|
|
1133
1080
|
var t = Object.prototype.toString.call(e);
|
|
1134
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1081
|
+
return t === "[object RegExp]" || t === "[object Date]" || sn(e);
|
|
1135
1082
|
}
|
|
1136
|
-
var
|
|
1137
|
-
function
|
|
1138
|
-
return e.$$typeof ===
|
|
1083
|
+
var nn = typeof Symbol == "function" && Symbol.for, on = nn ? Symbol.for("react.element") : 60103;
|
|
1084
|
+
function sn(e) {
|
|
1085
|
+
return e.$$typeof === on;
|
|
1139
1086
|
}
|
|
1140
|
-
function
|
|
1087
|
+
function an(e) {
|
|
1141
1088
|
return Array.isArray(e) ? [] : {};
|
|
1142
1089
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1090
|
+
function ne(e, t) {
|
|
1091
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(an(e), e, t) : e;
|
|
1145
1092
|
}
|
|
1146
|
-
function
|
|
1093
|
+
function un(e, t, r) {
|
|
1147
1094
|
return e.concat(t).map(function(n) {
|
|
1148
|
-
return
|
|
1095
|
+
return ne(n, r);
|
|
1149
1096
|
});
|
|
1150
1097
|
}
|
|
1151
|
-
function
|
|
1098
|
+
function hn(e, t) {
|
|
1152
1099
|
if (!t.customMerge)
|
|
1153
|
-
return
|
|
1100
|
+
return W;
|
|
1154
1101
|
var r = t.customMerge(e);
|
|
1155
|
-
return typeof r == "function" ? r :
|
|
1102
|
+
return typeof r == "function" ? r : W;
|
|
1156
1103
|
}
|
|
1157
|
-
function
|
|
1104
|
+
function ln(e) {
|
|
1158
1105
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1159
1106
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1160
1107
|
}) : [];
|
|
1161
1108
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return Object.keys(e).concat(
|
|
1109
|
+
function ht(e) {
|
|
1110
|
+
return Object.keys(e).concat(ln(e));
|
|
1164
1111
|
}
|
|
1165
|
-
function
|
|
1112
|
+
function Rt(e, t) {
|
|
1166
1113
|
try {
|
|
1167
1114
|
return t in e;
|
|
1168
|
-
} catch
|
|
1115
|
+
} catch {
|
|
1169
1116
|
return !1;
|
|
1170
1117
|
}
|
|
1171
1118
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return
|
|
1119
|
+
function fn(e, t) {
|
|
1120
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1174
1121
|
}
|
|
1175
|
-
function
|
|
1122
|
+
function cn(e, t, r) {
|
|
1176
1123
|
var n = {};
|
|
1177
|
-
return r.isMergeableObject(e) &&
|
|
1178
|
-
n[i] =
|
|
1179
|
-
}),
|
|
1180
|
-
|
|
1124
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1125
|
+
n[i] = ne(e[i], r);
|
|
1126
|
+
}), ht(t).forEach(function(i) {
|
|
1127
|
+
fn(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
1181
1128
|
}), n;
|
|
1182
1129
|
}
|
|
1183
|
-
function
|
|
1184
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1130
|
+
function W(e, t, r) {
|
|
1131
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = ne;
|
|
1185
1132
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1186
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1133
|
+
return o ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : ne(t, r);
|
|
1187
1134
|
}
|
|
1188
|
-
|
|
1135
|
+
W.all = function(t, r) {
|
|
1189
1136
|
if (!Array.isArray(t))
|
|
1190
1137
|
throw new Error("first argument should be an array");
|
|
1191
1138
|
return t.reduce(function(n, i) {
|
|
1192
|
-
return
|
|
1139
|
+
return W(n, i, r);
|
|
1193
1140
|
}, {});
|
|
1194
1141
|
};
|
|
1195
|
-
var
|
|
1196
|
-
const
|
|
1197
|
-
function
|
|
1198
|
-
var r = t && t.cache ? t.cache :
|
|
1142
|
+
var mn = W, dn = mn;
|
|
1143
|
+
const pn = /* @__PURE__ */ Kr(dn);
|
|
1144
|
+
function Ce(e, t) {
|
|
1145
|
+
var r = t && t.cache ? t.cache : En, n = t && t.serializer ? t.serializer : xn, i = t && t.strategy ? t.strategy : gn;
|
|
1199
1146
|
return i(e, {
|
|
1200
1147
|
cache: r,
|
|
1201
1148
|
serializer: n
|
|
1202
1149
|
});
|
|
1203
1150
|
}
|
|
1204
|
-
function
|
|
1151
|
+
function bn(e) {
|
|
1205
1152
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1206
1153
|
}
|
|
1207
|
-
function
|
|
1208
|
-
var i =
|
|
1209
|
-
return typeof o
|
|
1154
|
+
function Gt(e, t, r, n) {
|
|
1155
|
+
var i = bn(n) ? n : r(n), o = t.get(i);
|
|
1156
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1210
1157
|
}
|
|
1211
|
-
function
|
|
1158
|
+
function Ut(e, t, r) {
|
|
1212
1159
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1213
|
-
return typeof o
|
|
1160
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1214
1161
|
}
|
|
1215
|
-
function
|
|
1162
|
+
function Je(e, t, r, n, i) {
|
|
1216
1163
|
return r.bind(t, e, n, i);
|
|
1217
1164
|
}
|
|
1218
|
-
function
|
|
1219
|
-
var r = e.length === 1 ?
|
|
1220
|
-
return
|
|
1165
|
+
function gn(e, t) {
|
|
1166
|
+
var r = e.length === 1 ? Gt : Ut;
|
|
1167
|
+
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1221
1168
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1169
|
+
function yn(e, t) {
|
|
1170
|
+
return Je(e, this, Ut, t.cache.create(), t.serializer);
|
|
1224
1171
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return
|
|
1172
|
+
function vn(e, t) {
|
|
1173
|
+
return Je(e, this, Gt, t.cache.create(), t.serializer);
|
|
1227
1174
|
}
|
|
1228
|
-
var
|
|
1175
|
+
var xn = function() {
|
|
1229
1176
|
return JSON.stringify(arguments);
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1177
|
+
}, _n = (
|
|
1178
|
+
/** @class */
|
|
1179
|
+
function() {
|
|
1180
|
+
function e() {
|
|
1181
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1182
|
+
}
|
|
1183
|
+
return e.prototype.get = function(t) {
|
|
1184
|
+
return this.cache[t];
|
|
1185
|
+
}, e.prototype.set = function(t, r) {
|
|
1186
|
+
this.cache[t] = r;
|
|
1187
|
+
}, e;
|
|
1188
|
+
}()
|
|
1189
|
+
), En = {
|
|
1241
1190
|
create: function() {
|
|
1242
|
-
return new
|
|
1191
|
+
return new _n();
|
|
1243
1192
|
}
|
|
1244
|
-
},
|
|
1245
|
-
variadic:
|
|
1246
|
-
monadic:
|
|
1247
|
-
},
|
|
1193
|
+
}, Be = {
|
|
1194
|
+
variadic: yn,
|
|
1195
|
+
monadic: vn
|
|
1196
|
+
}, p;
|
|
1248
1197
|
(function(e) {
|
|
1249
1198
|
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";
|
|
1250
|
-
})(
|
|
1199
|
+
})(p || (p = {}));
|
|
1251
1200
|
var _;
|
|
1252
1201
|
(function(e) {
|
|
1253
1202
|
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";
|
|
1254
1203
|
})(_ || (_ = {}));
|
|
1255
|
-
var
|
|
1204
|
+
var z;
|
|
1256
1205
|
(function(e) {
|
|
1257
1206
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1258
|
-
})(
|
|
1259
|
-
function
|
|
1207
|
+
})(z || (z = {}));
|
|
1208
|
+
function lt(e) {
|
|
1260
1209
|
return e.type === _.literal;
|
|
1261
1210
|
}
|
|
1262
|
-
function
|
|
1211
|
+
function Sn(e) {
|
|
1263
1212
|
return e.type === _.argument;
|
|
1264
1213
|
}
|
|
1265
|
-
function
|
|
1214
|
+
function Dt(e) {
|
|
1266
1215
|
return e.type === _.number;
|
|
1267
1216
|
}
|
|
1268
|
-
function
|
|
1217
|
+
function Ft(e) {
|
|
1269
1218
|
return e.type === _.date;
|
|
1270
1219
|
}
|
|
1271
|
-
function
|
|
1220
|
+
function jt(e) {
|
|
1272
1221
|
return e.type === _.time;
|
|
1273
1222
|
}
|
|
1274
|
-
function
|
|
1223
|
+
function kt(e) {
|
|
1275
1224
|
return e.type === _.select;
|
|
1276
1225
|
}
|
|
1277
|
-
function
|
|
1226
|
+
function Vt(e) {
|
|
1278
1227
|
return e.type === _.plural;
|
|
1279
1228
|
}
|
|
1280
|
-
function
|
|
1229
|
+
function wn(e) {
|
|
1281
1230
|
return e.type === _.pound;
|
|
1282
1231
|
}
|
|
1283
|
-
function
|
|
1232
|
+
function Xt(e) {
|
|
1284
1233
|
return e.type === _.tag;
|
|
1285
1234
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1235
|
+
function Wt(e) {
|
|
1236
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1288
1237
|
}
|
|
1289
|
-
function
|
|
1290
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1238
|
+
function De(e) {
|
|
1239
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1291
1240
|
}
|
|
1292
|
-
var
|
|
1293
|
-
function
|
|
1241
|
+
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Tn = /(?:[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;
|
|
1242
|
+
function Hn(e) {
|
|
1294
1243
|
var t = {};
|
|
1295
|
-
return e.replace(
|
|
1244
|
+
return e.replace(Tn, function(r) {
|
|
1296
1245
|
var n = r.length;
|
|
1297
1246
|
switch (r[0]) {
|
|
1298
1247
|
case "G":
|
|
@@ -1381,36 +1330,36 @@ function Un(e) {
|
|
|
1381
1330
|
return "";
|
|
1382
1331
|
}), t;
|
|
1383
1332
|
}
|
|
1384
|
-
var
|
|
1385
|
-
function
|
|
1333
|
+
var Cn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1334
|
+
function Bn(e) {
|
|
1386
1335
|
if (e.length === 0)
|
|
1387
1336
|
throw new Error("Number skeleton cannot be empty");
|
|
1388
|
-
for (var t = e.split(
|
|
1389
|
-
return
|
|
1337
|
+
for (var t = e.split(Cn).filter(function(c) {
|
|
1338
|
+
return c.length > 0;
|
|
1390
1339
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1391
1340
|
var o = i[n], s = o.split("/");
|
|
1392
1341
|
if (s.length === 0)
|
|
1393
1342
|
throw new Error("Invalid number skeleton");
|
|
1394
1343
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1395
|
-
var
|
|
1396
|
-
if (
|
|
1344
|
+
var f = l[u];
|
|
1345
|
+
if (f.length === 0)
|
|
1397
1346
|
throw new Error("Invalid number skeleton");
|
|
1398
1347
|
}
|
|
1399
1348
|
r.push({ stem: a, options: h });
|
|
1400
1349
|
}
|
|
1401
1350
|
return r;
|
|
1402
1351
|
}
|
|
1403
|
-
function
|
|
1352
|
+
function An(e) {
|
|
1404
1353
|
return e.replace(/^(.*?)-/, "");
|
|
1405
1354
|
}
|
|
1406
|
-
var
|
|
1407
|
-
function
|
|
1355
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Pn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1356
|
+
function ct(e) {
|
|
1408
1357
|
var t = {};
|
|
1409
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1358
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1410
1359
|
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)), "";
|
|
1411
1360
|
}), t;
|
|
1412
1361
|
}
|
|
1413
|
-
function
|
|
1362
|
+
function Jt(e) {
|
|
1414
1363
|
switch (e) {
|
|
1415
1364
|
case "sign-auto":
|
|
1416
1365
|
return {
|
|
@@ -1450,7 +1399,7 @@ function or(e) {
|
|
|
1450
1399
|
};
|
|
1451
1400
|
}
|
|
1452
1401
|
}
|
|
1453
|
-
function
|
|
1402
|
+
function Ln(e) {
|
|
1454
1403
|
var t;
|
|
1455
1404
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1456
1405
|
notation: "engineering"
|
|
@@ -1458,17 +1407,17 @@ function Vn(e) {
|
|
|
1458
1407
|
notation: "scientific"
|
|
1459
1408
|
}, e = e.slice(1)), t) {
|
|
1460
1409
|
var r = e.slice(0, 2);
|
|
1461
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1410
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1462
1411
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1463
1412
|
t.minimumIntegerDigits = e.length;
|
|
1464
1413
|
}
|
|
1465
1414
|
return t;
|
|
1466
1415
|
}
|
|
1467
|
-
function
|
|
1468
|
-
var t = {}, r =
|
|
1416
|
+
function mt(e) {
|
|
1417
|
+
var t = {}, r = Jt(e);
|
|
1469
1418
|
return r || t;
|
|
1470
1419
|
}
|
|
1471
|
-
function
|
|
1420
|
+
function On(e) {
|
|
1472
1421
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1473
1422
|
var i = n[r];
|
|
1474
1423
|
switch (i.stem) {
|
|
@@ -1492,7 +1441,7 @@ function Xn(e) {
|
|
|
1492
1441
|
continue;
|
|
1493
1442
|
case "measure-unit":
|
|
1494
1443
|
case "unit":
|
|
1495
|
-
t.style = "unit", t.unit =
|
|
1444
|
+
t.style = "unit", t.unit = An(i.options[0]);
|
|
1496
1445
|
continue;
|
|
1497
1446
|
case "compact-short":
|
|
1498
1447
|
case "K":
|
|
@@ -1504,12 +1453,12 @@ function Xn(e) {
|
|
|
1504
1453
|
continue;
|
|
1505
1454
|
case "scientific":
|
|
1506
1455
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1507
|
-
return y(y({}, h),
|
|
1456
|
+
return y(y({}, h), mt(u));
|
|
1508
1457
|
}, {}));
|
|
1509
1458
|
continue;
|
|
1510
1459
|
case "engineering":
|
|
1511
1460
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1512
|
-
return y(y({}, h),
|
|
1461
|
+
return y(y({}, h), mt(u));
|
|
1513
1462
|
}, {}));
|
|
1514
1463
|
continue;
|
|
1515
1464
|
case "notation-simple":
|
|
@@ -1554,11 +1503,11 @@ function Xn(e) {
|
|
|
1554
1503
|
case "integer-width":
|
|
1555
1504
|
if (i.options.length > 1)
|
|
1556
1505
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1557
|
-
i.options[0].replace(
|
|
1506
|
+
i.options[0].replace(Pn, function(h, u, l, f, c, m) {
|
|
1558
1507
|
if (u)
|
|
1559
1508
|
t.minimumIntegerDigits = l.length;
|
|
1560
1509
|
else {
|
|
1561
|
-
if (
|
|
1510
|
+
if (f && c)
|
|
1562
1511
|
throw new Error("We currently do not support maximum integer digits");
|
|
1563
1512
|
if (m)
|
|
1564
1513
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1567,32 +1516,32 @@ function Xn(e) {
|
|
|
1567
1516
|
});
|
|
1568
1517
|
continue;
|
|
1569
1518
|
}
|
|
1570
|
-
if (
|
|
1519
|
+
if (Qt.test(i.stem)) {
|
|
1571
1520
|
t.minimumIntegerDigits = i.stem.length;
|
|
1572
1521
|
continue;
|
|
1573
1522
|
}
|
|
1574
|
-
if (
|
|
1523
|
+
if (ft.test(i.stem)) {
|
|
1575
1524
|
if (i.options.length > 1)
|
|
1576
1525
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1577
|
-
i.stem.replace(
|
|
1578
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1526
|
+
i.stem.replace(ft, function(h, u, l, f, c, m) {
|
|
1527
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1579
1528
|
});
|
|
1580
1529
|
var o = i.options[0];
|
|
1581
|
-
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t),
|
|
1530
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ct(o)));
|
|
1582
1531
|
continue;
|
|
1583
1532
|
}
|
|
1584
|
-
if (
|
|
1585
|
-
t = y(y({}, t),
|
|
1533
|
+
if (Zt.test(i.stem)) {
|
|
1534
|
+
t = y(y({}, t), ct(i.stem));
|
|
1586
1535
|
continue;
|
|
1587
1536
|
}
|
|
1588
|
-
var s =
|
|
1537
|
+
var s = Jt(i.stem);
|
|
1589
1538
|
s && (t = y(y({}, t), s));
|
|
1590
|
-
var a =
|
|
1539
|
+
var a = Ln(i.stem);
|
|
1591
1540
|
a && (t = y(y({}, t), a));
|
|
1592
1541
|
}
|
|
1593
1542
|
return t;
|
|
1594
1543
|
}
|
|
1595
|
-
var
|
|
1544
|
+
var ae = {
|
|
1596
1545
|
"001": [
|
|
1597
1546
|
"H",
|
|
1598
1547
|
"h"
|
|
@@ -3007,13 +2956,13 @@ var ue = {
|
|
|
3007
2956
|
"h"
|
|
3008
2957
|
]
|
|
3009
2958
|
};
|
|
3010
|
-
function
|
|
2959
|
+
function In(e, t) {
|
|
3011
2960
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3012
2961
|
var i = e.charAt(n);
|
|
3013
2962
|
if (i === "j") {
|
|
3014
2963
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3015
2964
|
o++, n++;
|
|
3016
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2965
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Nn(t);
|
|
3017
2966
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3018
2967
|
r += h;
|
|
3019
2968
|
for (; s-- > 0; )
|
|
@@ -3022,7 +2971,7 @@ function Wn(e, t) {
|
|
|
3022
2971
|
}
|
|
3023
2972
|
return r;
|
|
3024
2973
|
}
|
|
3025
|
-
function
|
|
2974
|
+
function Nn(e) {
|
|
3026
2975
|
var t = e.hourCycle;
|
|
3027
2976
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3028
2977
|
e.hourCycles && // @ts-ignore
|
|
@@ -3041,23 +2990,23 @@ function zn(e) {
|
|
|
3041
2990
|
}
|
|
3042
2991
|
var r = e.language, n;
|
|
3043
2992
|
r !== "root" && (n = e.maximize().region);
|
|
3044
|
-
var i =
|
|
2993
|
+
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
3045
2994
|
return i[0];
|
|
3046
2995
|
}
|
|
3047
|
-
var
|
|
2996
|
+
var Ae, Mn = new RegExp("^".concat(zt.source, "*")), $n = new RegExp("".concat(zt.source, "*$"));
|
|
3048
2997
|
function b(e, t) {
|
|
3049
2998
|
return { start: e, end: t };
|
|
3050
2999
|
}
|
|
3051
|
-
var
|
|
3000
|
+
var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gn = !!String.fromCodePoint, Un = !!Object.fromEntries, Dn = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, kn = !!Number.isSafeInteger, Vn = kn ? Number.isSafeInteger : function(e) {
|
|
3052
3001
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3053
|
-
},
|
|
3002
|
+
}, Fe = !0;
|
|
3054
3003
|
try {
|
|
3055
|
-
var
|
|
3056
|
-
|
|
3057
|
-
} catch
|
|
3058
|
-
|
|
3004
|
+
var Xn = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3005
|
+
Fe = ((Ae = Xn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
3006
|
+
} catch {
|
|
3007
|
+
Fe = !1;
|
|
3059
3008
|
}
|
|
3060
|
-
var
|
|
3009
|
+
var dt = Rn ? (
|
|
3061
3010
|
// Native
|
|
3062
3011
|
function(t, r, n) {
|
|
3063
3012
|
return t.startsWith(r, n);
|
|
@@ -3067,7 +3016,7 @@ var Et = Jn ? (
|
|
|
3067
3016
|
function(t, r, n) {
|
|
3068
3017
|
return t.slice(n, n + r.length) === r;
|
|
3069
3018
|
}
|
|
3070
|
-
),
|
|
3019
|
+
), je = Gn ? String.fromCodePoint : (
|
|
3071
3020
|
// IE11
|
|
3072
3021
|
function() {
|
|
3073
3022
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3079,9 +3028,9 @@ var Et = Jn ? (
|
|
|
3079
3028
|
}
|
|
3080
3029
|
return n;
|
|
3081
3030
|
}
|
|
3082
|
-
),
|
|
3031
|
+
), pt = (
|
|
3083
3032
|
// native
|
|
3084
|
-
|
|
3033
|
+
Un ? Object.fromEntries : (
|
|
3085
3034
|
// Ponyfill
|
|
3086
3035
|
function(t) {
|
|
3087
3036
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3091,7 +3040,7 @@ var Et = Jn ? (
|
|
|
3091
3040
|
return r;
|
|
3092
3041
|
}
|
|
3093
3042
|
)
|
|
3094
|
-
),
|
|
3043
|
+
), Yt = Dn ? (
|
|
3095
3044
|
// Native
|
|
3096
3045
|
function(t, r) {
|
|
3097
3046
|
return t.codePointAt(r);
|
|
@@ -3105,7 +3054,7 @@ var Et = Jn ? (
|
|
|
3105
3054
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3106
3055
|
}
|
|
3107
3056
|
}
|
|
3108
|
-
),
|
|
3057
|
+
), Wn = Fn ? (
|
|
3109
3058
|
// Native
|
|
3110
3059
|
function(t) {
|
|
3111
3060
|
return t.trimStart();
|
|
@@ -3113,9 +3062,9 @@ var Et = Jn ? (
|
|
|
3113
3062
|
) : (
|
|
3114
3063
|
// Ponyfill
|
|
3115
3064
|
function(t) {
|
|
3116
|
-
return t.replace(
|
|
3065
|
+
return t.replace(Mn, "");
|
|
3117
3066
|
}
|
|
3118
|
-
),
|
|
3067
|
+
), zn = jn ? (
|
|
3119
3068
|
// Native
|
|
3120
3069
|
function(t) {
|
|
3121
3070
|
return t.trimEnd();
|
|
@@ -3123,32 +3072,32 @@ var Et = Jn ? (
|
|
|
3123
3072
|
) : (
|
|
3124
3073
|
// Ponyfill
|
|
3125
3074
|
function(t) {
|
|
3126
|
-
return t.replace(
|
|
3075
|
+
return t.replace($n, "");
|
|
3127
3076
|
}
|
|
3128
3077
|
);
|
|
3129
|
-
function
|
|
3078
|
+
function qt(e, t) {
|
|
3130
3079
|
return new RegExp(e, t);
|
|
3131
3080
|
}
|
|
3132
|
-
var
|
|
3133
|
-
if (
|
|
3134
|
-
var
|
|
3135
|
-
|
|
3081
|
+
var ke;
|
|
3082
|
+
if (Fe) {
|
|
3083
|
+
var bt = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3084
|
+
ke = function(t, r) {
|
|
3136
3085
|
var n;
|
|
3137
|
-
|
|
3138
|
-
var i =
|
|
3086
|
+
bt.lastIndex = r;
|
|
3087
|
+
var i = bt.exec(t);
|
|
3139
3088
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3140
3089
|
};
|
|
3141
3090
|
} else
|
|
3142
|
-
|
|
3091
|
+
ke = function(t, r) {
|
|
3143
3092
|
for (var n = []; ; ) {
|
|
3144
|
-
var i =
|
|
3145
|
-
if (i === void 0 ||
|
|
3093
|
+
var i = Yt(t, r);
|
|
3094
|
+
if (i === void 0 || Kt(i) || Yn(i))
|
|
3146
3095
|
break;
|
|
3147
3096
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3148
3097
|
}
|
|
3149
|
-
return
|
|
3098
|
+
return je.apply(void 0, n);
|
|
3150
3099
|
};
|
|
3151
|
-
var
|
|
3100
|
+
var Zn = (
|
|
3152
3101
|
/** @class */
|
|
3153
3102
|
function() {
|
|
3154
3103
|
function e(t, r) {
|
|
@@ -3178,8 +3127,8 @@ var ai = (
|
|
|
3178
3127
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3179
3128
|
if (n)
|
|
3180
3129
|
break;
|
|
3181
|
-
return this.error(
|
|
3182
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3130
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3131
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3183
3132
|
var s = this.parseTag(t, r);
|
|
3184
3133
|
if (s.err)
|
|
3185
3134
|
return s;
|
|
@@ -3212,10 +3161,10 @@ var ai = (
|
|
|
3212
3161
|
return o;
|
|
3213
3162
|
var s = o.val, a = this.clonePosition();
|
|
3214
3163
|
if (this.bumpIf("</")) {
|
|
3215
|
-
if (this.isEOF() || !
|
|
3216
|
-
return this.error(
|
|
3164
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3165
|
+
return this.error(p.INVALID_TAG, b(a, this.clonePosition()));
|
|
3217
3166
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3218
|
-
return i !== u ? this.error(
|
|
3167
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3219
3168
|
val: {
|
|
3220
3169
|
type: _.tag,
|
|
3221
3170
|
value: i,
|
|
@@ -3223,14 +3172,14 @@ var ai = (
|
|
|
3223
3172
|
location: b(n, this.clonePosition())
|
|
3224
3173
|
},
|
|
3225
3174
|
err: null
|
|
3226
|
-
} : this.error(
|
|
3175
|
+
} : this.error(p.INVALID_TAG, b(a, this.clonePosition())));
|
|
3227
3176
|
} else
|
|
3228
|
-
return this.error(
|
|
3177
|
+
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3229
3178
|
} else
|
|
3230
|
-
return this.error(
|
|
3179
|
+
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
3231
3180
|
}, e.prototype.parseTagName = function() {
|
|
3232
3181
|
var t = this.offset();
|
|
3233
|
-
for (this.bump(); !this.isEOF() &&
|
|
3182
|
+
for (this.bump(); !this.isEOF() && Jn(this.char()); )
|
|
3234
3183
|
this.bump();
|
|
3235
3184
|
return this.message.slice(t, this.offset());
|
|
3236
3185
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3259,7 +3208,7 @@ var ai = (
|
|
|
3259
3208
|
};
|
|
3260
3209
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3261
3210
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3262
|
-
!
|
|
3211
|
+
!Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3263
3212
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3264
3213
|
if (this.isEOF() || this.char() !== 39)
|
|
3265
3214
|
return null;
|
|
@@ -3293,23 +3242,23 @@ var ai = (
|
|
|
3293
3242
|
r.push(n);
|
|
3294
3243
|
this.bump();
|
|
3295
3244
|
}
|
|
3296
|
-
return
|
|
3245
|
+
return je.apply(void 0, r);
|
|
3297
3246
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3298
3247
|
if (this.isEOF())
|
|
3299
3248
|
return null;
|
|
3300
3249
|
var n = this.char();
|
|
3301
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3250
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3302
3251
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3303
3252
|
var n = this.clonePosition();
|
|
3304
3253
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3305
|
-
return this.error(
|
|
3254
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3306
3255
|
if (this.char() === 125)
|
|
3307
|
-
return this.bump(), this.error(
|
|
3256
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3308
3257
|
var i = this.parseIdentifierIfPossible().value;
|
|
3309
3258
|
if (!i)
|
|
3310
|
-
return this.error(
|
|
3259
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3311
3260
|
if (this.bumpSpace(), this.isEOF())
|
|
3312
|
-
return this.error(
|
|
3261
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3313
3262
|
switch (this.char()) {
|
|
3314
3263
|
case 125:
|
|
3315
3264
|
return this.bump(), {
|
|
@@ -3322,12 +3271,12 @@ var ai = (
|
|
|
3322
3271
|
err: null
|
|
3323
3272
|
};
|
|
3324
3273
|
case 44:
|
|
3325
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3274
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3326
3275
|
default:
|
|
3327
|
-
return this.error(
|
|
3276
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3328
3277
|
}
|
|
3329
3278
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3330
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3279
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3331
3280
|
this.bumpTo(i);
|
|
3332
3281
|
var o = this.clonePosition(), s = b(t, o);
|
|
3333
3282
|
return { value: n, location: s };
|
|
@@ -3335,7 +3284,7 @@ var ai = (
|
|
|
3335
3284
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3336
3285
|
switch (a) {
|
|
3337
3286
|
case "":
|
|
3338
|
-
return this.error(
|
|
3287
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(s, h));
|
|
3339
3288
|
case "number":
|
|
3340
3289
|
case "date":
|
|
3341
3290
|
case "time": {
|
|
@@ -3343,40 +3292,40 @@ var ai = (
|
|
|
3343
3292
|
var u = null;
|
|
3344
3293
|
if (this.bumpIf(",")) {
|
|
3345
3294
|
this.bumpSpace();
|
|
3346
|
-
var l = this.clonePosition(),
|
|
3347
|
-
if (
|
|
3348
|
-
return
|
|
3349
|
-
var
|
|
3350
|
-
if (
|
|
3351
|
-
return this.error(
|
|
3295
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3296
|
+
if (f.err)
|
|
3297
|
+
return f;
|
|
3298
|
+
var c = zn(f.val);
|
|
3299
|
+
if (c.length === 0)
|
|
3300
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3352
3301
|
var m = b(l, this.clonePosition());
|
|
3353
|
-
u = { style:
|
|
3302
|
+
u = { style: c, styleLocation: m };
|
|
3354
3303
|
}
|
|
3355
3304
|
var v = this.tryParseArgumentClose(i);
|
|
3356
3305
|
if (v.err)
|
|
3357
3306
|
return v;
|
|
3358
3307
|
var g = b(i, this.clonePosition());
|
|
3359
|
-
if (u &&
|
|
3360
|
-
var E =
|
|
3308
|
+
if (u && dt(u?.style, "::", 0)) {
|
|
3309
|
+
var E = Wn(u.style.slice(2));
|
|
3361
3310
|
if (a === "number") {
|
|
3362
|
-
var
|
|
3363
|
-
return
|
|
3364
|
-
val: { type: _.number, value: n, location: g, style:
|
|
3311
|
+
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3312
|
+
return f.err ? f : {
|
|
3313
|
+
val: { type: _.number, value: n, location: g, style: f.val },
|
|
3365
3314
|
err: null
|
|
3366
3315
|
};
|
|
3367
3316
|
} else {
|
|
3368
3317
|
if (E.length === 0)
|
|
3369
|
-
return this.error(
|
|
3318
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
3370
3319
|
var B = E;
|
|
3371
|
-
this.locale && (B =
|
|
3372
|
-
var
|
|
3373
|
-
type:
|
|
3320
|
+
this.locale && (B = In(E, this.locale));
|
|
3321
|
+
var c = {
|
|
3322
|
+
type: z.dateTime,
|
|
3374
3323
|
pattern: B,
|
|
3375
3324
|
location: u.styleLocation,
|
|
3376
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3377
|
-
},
|
|
3325
|
+
parsedOptions: this.shouldParseSkeletons ? Hn(B) : {}
|
|
3326
|
+
}, L = a === "date" ? _.date : _.time;
|
|
3378
3327
|
return {
|
|
3379
|
-
val: { type:
|
|
3328
|
+
val: { type: L, value: n, location: g, style: c },
|
|
3380
3329
|
err: null
|
|
3381
3330
|
};
|
|
3382
3331
|
}
|
|
@@ -3386,7 +3335,7 @@ var ai = (
|
|
|
3386
3335
|
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3387
3336
|
value: n,
|
|
3388
3337
|
location: g,
|
|
3389
|
-
style: (o = u
|
|
3338
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3390
3339
|
},
|
|
3391
3340
|
err: null
|
|
3392
3341
|
};
|
|
@@ -3394,19 +3343,19 @@ var ai = (
|
|
|
3394
3343
|
case "plural":
|
|
3395
3344
|
case "selectordinal":
|
|
3396
3345
|
case "select": {
|
|
3397
|
-
var
|
|
3346
|
+
var w = this.clonePosition();
|
|
3398
3347
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3399
|
-
return this.error(
|
|
3348
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(w, y({}, w)));
|
|
3400
3349
|
this.bumpSpace();
|
|
3401
|
-
var A = this.parseIdentifierIfPossible(),
|
|
3350
|
+
var A = this.parseIdentifierIfPossible(), T = 0;
|
|
3402
3351
|
if (a !== "select" && A.value === "offset") {
|
|
3403
3352
|
if (!this.bumpIf(":"))
|
|
3404
|
-
return this.error(
|
|
3353
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3405
3354
|
this.bumpSpace();
|
|
3406
|
-
var
|
|
3407
|
-
if (
|
|
3408
|
-
return
|
|
3409
|
-
this.bumpSpace(), A = this.parseIdentifierIfPossible(),
|
|
3355
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3356
|
+
if (f.err)
|
|
3357
|
+
return f;
|
|
3358
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), T = f.val;
|
|
3410
3359
|
}
|
|
3411
3360
|
var x = this.tryParsePluralOrSelectOptions(t, a, r, A);
|
|
3412
3361
|
if (x.err)
|
|
@@ -3419,7 +3368,7 @@ var ai = (
|
|
|
3419
3368
|
val: {
|
|
3420
3369
|
type: _.select,
|
|
3421
3370
|
value: n,
|
|
3422
|
-
options:
|
|
3371
|
+
options: pt(x.val),
|
|
3423
3372
|
location: P
|
|
3424
3373
|
},
|
|
3425
3374
|
err: null
|
|
@@ -3427,8 +3376,8 @@ var ai = (
|
|
|
3427
3376
|
val: {
|
|
3428
3377
|
type: _.plural,
|
|
3429
3378
|
value: n,
|
|
3430
|
-
options:
|
|
3431
|
-
offset:
|
|
3379
|
+
options: pt(x.val),
|
|
3380
|
+
offset: T,
|
|
3432
3381
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3433
3382
|
location: P
|
|
3434
3383
|
},
|
|
@@ -3436,10 +3385,10 @@ var ai = (
|
|
|
3436
3385
|
};
|
|
3437
3386
|
}
|
|
3438
3387
|
default:
|
|
3439
|
-
return this.error(
|
|
3388
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(s, h));
|
|
3440
3389
|
}
|
|
3441
3390
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3442
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3391
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3443
3392
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3444
3393
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3445
3394
|
var n = this.char();
|
|
@@ -3448,7 +3397,7 @@ var ai = (
|
|
|
3448
3397
|
this.bump();
|
|
3449
3398
|
var i = this.clonePosition();
|
|
3450
3399
|
if (!this.bumpUntil("'"))
|
|
3451
|
-
return this.error(
|
|
3400
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3452
3401
|
this.bump();
|
|
3453
3402
|
break;
|
|
3454
3403
|
}
|
|
@@ -3478,37 +3427,37 @@ var ai = (
|
|
|
3478
3427
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3479
3428
|
var n = [];
|
|
3480
3429
|
try {
|
|
3481
|
-
n =
|
|
3482
|
-
} catch
|
|
3483
|
-
return this.error(
|
|
3430
|
+
n = Bn(t);
|
|
3431
|
+
} catch {
|
|
3432
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3484
3433
|
}
|
|
3485
3434
|
return {
|
|
3486
3435
|
val: {
|
|
3487
|
-
type:
|
|
3436
|
+
type: z.number,
|
|
3488
3437
|
tokens: n,
|
|
3489
3438
|
location: r,
|
|
3490
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3439
|
+
parsedOptions: this.shouldParseSkeletons ? On(n) : {}
|
|
3491
3440
|
},
|
|
3492
3441
|
err: null
|
|
3493
3442
|
};
|
|
3494
3443
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3495
3444
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3496
3445
|
if (u.length === 0) {
|
|
3497
|
-
var
|
|
3446
|
+
var f = this.clonePosition();
|
|
3498
3447
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3499
|
-
var
|
|
3500
|
-
if (
|
|
3501
|
-
return
|
|
3502
|
-
l = b(
|
|
3448
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3449
|
+
if (c.err)
|
|
3450
|
+
return c;
|
|
3451
|
+
l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3503
3452
|
} else
|
|
3504
3453
|
break;
|
|
3505
3454
|
}
|
|
3506
3455
|
if (h.has(u))
|
|
3507
|
-
return this.error(r === "select" ?
|
|
3456
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3508
3457
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3509
3458
|
var m = this.clonePosition();
|
|
3510
3459
|
if (!this.bumpIf("{"))
|
|
3511
|
-
return this.error(r === "select" ?
|
|
3460
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3512
3461
|
var v = this.parseMessage(t + 1, r, n);
|
|
3513
3462
|
if (v.err)
|
|
3514
3463
|
return v;
|
|
@@ -3523,7 +3472,7 @@ var ai = (
|
|
|
3523
3472
|
}
|
|
3524
3473
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3525
3474
|
}
|
|
3526
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3475
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3527
3476
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3528
3477
|
var n = 1, i = this.clonePosition();
|
|
3529
3478
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3535,7 +3484,7 @@ var ai = (
|
|
|
3535
3484
|
break;
|
|
3536
3485
|
}
|
|
3537
3486
|
var h = b(i, this.clonePosition());
|
|
3538
|
-
return o ? (s *= n,
|
|
3487
|
+
return o ? (s *= n, Vn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3539
3488
|
}, e.prototype.offset = function() {
|
|
3540
3489
|
return this.position.offset;
|
|
3541
3490
|
}, e.prototype.isEOF = function() {
|
|
@@ -3550,7 +3499,7 @@ var ai = (
|
|
|
3550
3499
|
var t = this.position.offset;
|
|
3551
3500
|
if (t >= this.message.length)
|
|
3552
3501
|
throw Error("out of bound");
|
|
3553
|
-
var r =
|
|
3502
|
+
var r = Yt(this.message, t);
|
|
3554
3503
|
if (r === void 0)
|
|
3555
3504
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3556
3505
|
return r;
|
|
@@ -3569,7 +3518,7 @@ var ai = (
|
|
|
3569
3518
|
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);
|
|
3570
3519
|
}
|
|
3571
3520
|
}, e.prototype.bumpIf = function(t) {
|
|
3572
|
-
if (
|
|
3521
|
+
if (dt(this.message, t, this.offset())) {
|
|
3573
3522
|
for (var r = 0; r < t.length; r++)
|
|
3574
3523
|
this.bump();
|
|
3575
3524
|
return !0;
|
|
@@ -3591,56 +3540,56 @@ var ai = (
|
|
|
3591
3540
|
break;
|
|
3592
3541
|
}
|
|
3593
3542
|
}, e.prototype.bumpSpace = function() {
|
|
3594
|
-
for (; !this.isEOF() &&
|
|
3543
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3595
3544
|
this.bump();
|
|
3596
3545
|
}, e.prototype.peek = function() {
|
|
3597
3546
|
if (this.isEOF())
|
|
3598
3547
|
return null;
|
|
3599
3548
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3600
|
-
return n
|
|
3549
|
+
return n ?? null;
|
|
3601
3550
|
}, e;
|
|
3602
3551
|
}()
|
|
3603
3552
|
);
|
|
3604
|
-
function
|
|
3553
|
+
function Ve(e) {
|
|
3605
3554
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3606
3555
|
}
|
|
3607
|
-
function
|
|
3608
|
-
return
|
|
3556
|
+
function Qn(e) {
|
|
3557
|
+
return Ve(e) || e === 47;
|
|
3609
3558
|
}
|
|
3610
|
-
function
|
|
3559
|
+
function Jn(e) {
|
|
3611
3560
|
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;
|
|
3612
3561
|
}
|
|
3613
|
-
function
|
|
3562
|
+
function Kt(e) {
|
|
3614
3563
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3615
3564
|
}
|
|
3616
|
-
function
|
|
3565
|
+
function Yn(e) {
|
|
3617
3566
|
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;
|
|
3618
3567
|
}
|
|
3619
|
-
function
|
|
3568
|
+
function Xe(e) {
|
|
3620
3569
|
e.forEach(function(t) {
|
|
3621
|
-
if (delete t.location,
|
|
3570
|
+
if (delete t.location, kt(t) || Vt(t))
|
|
3622
3571
|
for (var r in t.options)
|
|
3623
|
-
delete t.options[r].location,
|
|
3624
|
-
else
|
|
3572
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3573
|
+
else Dt(t) && Wt(t.style) || (Ft(t) || jt(t)) && De(t.style) ? delete t.style.location : Xt(t) && Xe(t.children);
|
|
3625
3574
|
});
|
|
3626
3575
|
}
|
|
3627
|
-
function
|
|
3576
|
+
function qn(e, t) {
|
|
3628
3577
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3629
|
-
var r = new
|
|
3578
|
+
var r = new Zn(e, t).parse();
|
|
3630
3579
|
if (r.err) {
|
|
3631
|
-
var n = SyntaxError(
|
|
3580
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3632
3581
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3633
3582
|
}
|
|
3634
|
-
return t
|
|
3583
|
+
return t?.captureLocation || Xe(r.val), r.val;
|
|
3635
3584
|
}
|
|
3636
|
-
var
|
|
3585
|
+
var Z;
|
|
3637
3586
|
(function(e) {
|
|
3638
3587
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3639
|
-
})(
|
|
3640
|
-
var
|
|
3588
|
+
})(Z || (Z = {}));
|
|
3589
|
+
var ve = (
|
|
3641
3590
|
/** @class */
|
|
3642
3591
|
function(e) {
|
|
3643
|
-
|
|
3592
|
+
$(t, e);
|
|
3644
3593
|
function t(r, n, i) {
|
|
3645
3594
|
var o = e.call(this, r) || this;
|
|
3646
3595
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3649,48 +3598,48 @@ var xe = (
|
|
|
3649
3598
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3650
3599
|
}, t;
|
|
3651
3600
|
}(Error)
|
|
3652
|
-
),
|
|
3601
|
+
), gt = (
|
|
3653
3602
|
/** @class */
|
|
3654
3603
|
function(e) {
|
|
3655
|
-
|
|
3604
|
+
$(t, e);
|
|
3656
3605
|
function t(r, n, i, o) {
|
|
3657
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3606
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
|
3658
3607
|
}
|
|
3659
3608
|
return t;
|
|
3660
|
-
}(
|
|
3661
|
-
),
|
|
3609
|
+
}(ve)
|
|
3610
|
+
), Kn = (
|
|
3662
3611
|
/** @class */
|
|
3663
3612
|
function(e) {
|
|
3664
|
-
|
|
3613
|
+
$(t, e);
|
|
3665
3614
|
function t(r, n, i) {
|
|
3666
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3615
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3667
3616
|
}
|
|
3668
3617
|
return t;
|
|
3669
|
-
}(
|
|
3670
|
-
),
|
|
3618
|
+
}(ve)
|
|
3619
|
+
), ei = (
|
|
3671
3620
|
/** @class */
|
|
3672
3621
|
function(e) {
|
|
3673
|
-
|
|
3622
|
+
$(t, e);
|
|
3674
3623
|
function t(r, n) {
|
|
3675
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3624
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
|
3676
3625
|
}
|
|
3677
3626
|
return t;
|
|
3678
|
-
}(
|
|
3627
|
+
}(ve)
|
|
3679
3628
|
), H;
|
|
3680
3629
|
(function(e) {
|
|
3681
3630
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3682
3631
|
})(H || (H = {}));
|
|
3683
|
-
function
|
|
3632
|
+
function ti(e) {
|
|
3684
3633
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3685
3634
|
var n = t[t.length - 1];
|
|
3686
3635
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3687
3636
|
}, []);
|
|
3688
3637
|
}
|
|
3689
|
-
function
|
|
3638
|
+
function ri(e) {
|
|
3690
3639
|
return typeof e == "function";
|
|
3691
3640
|
}
|
|
3692
|
-
function
|
|
3693
|
-
if (e.length === 1 &&
|
|
3641
|
+
function ce(e, t, r, n, i, o, s) {
|
|
3642
|
+
if (e.length === 1 && lt(e[0]))
|
|
3694
3643
|
return [
|
|
3695
3644
|
{
|
|
3696
3645
|
type: H.literal,
|
|
@@ -3699,105 +3648,105 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3699
3648
|
];
|
|
3700
3649
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3701
3650
|
var l = u[h];
|
|
3702
|
-
if (
|
|
3651
|
+
if (lt(l)) {
|
|
3703
3652
|
a.push({
|
|
3704
3653
|
type: H.literal,
|
|
3705
3654
|
value: l.value
|
|
3706
3655
|
});
|
|
3707
3656
|
continue;
|
|
3708
3657
|
}
|
|
3709
|
-
if (
|
|
3658
|
+
if (wn(l)) {
|
|
3710
3659
|
typeof o == "number" && a.push({
|
|
3711
3660
|
type: H.literal,
|
|
3712
3661
|
value: r.getNumberFormat(t).format(o)
|
|
3713
3662
|
});
|
|
3714
3663
|
continue;
|
|
3715
3664
|
}
|
|
3716
|
-
var
|
|
3717
|
-
if (!(i &&
|
|
3718
|
-
throw new
|
|
3719
|
-
var
|
|
3720
|
-
if (
|
|
3721
|
-
(!
|
|
3722
|
-
type: typeof
|
|
3723
|
-
value:
|
|
3665
|
+
var f = l.value;
|
|
3666
|
+
if (!(i && f in i))
|
|
3667
|
+
throw new ei(f, s);
|
|
3668
|
+
var c = i[f];
|
|
3669
|
+
if (Sn(l)) {
|
|
3670
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3671
|
+
type: typeof c == "string" ? H.literal : H.object,
|
|
3672
|
+
value: c
|
|
3724
3673
|
});
|
|
3725
3674
|
continue;
|
|
3726
3675
|
}
|
|
3727
|
-
if (
|
|
3728
|
-
var m = typeof l.style == "string" ? n.date[l.style] :
|
|
3676
|
+
if (Ft(l)) {
|
|
3677
|
+
var m = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3729
3678
|
a.push({
|
|
3730
3679
|
type: H.literal,
|
|
3731
|
-
value: r.getDateTimeFormat(t, m).format(
|
|
3680
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3732
3681
|
});
|
|
3733
3682
|
continue;
|
|
3734
3683
|
}
|
|
3735
|
-
if (
|
|
3736
|
-
var m = typeof l.style == "string" ? n.time[l.style] :
|
|
3684
|
+
if (jt(l)) {
|
|
3685
|
+
var m = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3737
3686
|
a.push({
|
|
3738
3687
|
type: H.literal,
|
|
3739
|
-
value: r.getDateTimeFormat(t, m).format(
|
|
3688
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3740
3689
|
});
|
|
3741
3690
|
continue;
|
|
3742
3691
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var m = typeof l.style == "string" ? n.number[l.style] :
|
|
3745
|
-
m && m.scale && (
|
|
3692
|
+
if (Dt(l)) {
|
|
3693
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Wt(l.style) ? l.style.parsedOptions : void 0;
|
|
3694
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3746
3695
|
type: H.literal,
|
|
3747
|
-
value: r.getNumberFormat(t, m).format(
|
|
3696
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3748
3697
|
});
|
|
3749
3698
|
continue;
|
|
3750
3699
|
}
|
|
3751
|
-
if (
|
|
3700
|
+
if (Xt(l)) {
|
|
3752
3701
|
var v = l.children, g = l.value, E = i[g];
|
|
3753
|
-
if (!
|
|
3754
|
-
throw new
|
|
3755
|
-
var B =
|
|
3756
|
-
return
|
|
3702
|
+
if (!ri(E))
|
|
3703
|
+
throw new Kn(g, "function", s);
|
|
3704
|
+
var B = ce(v, t, r, n, i, o), L = E(B.map(function(T) {
|
|
3705
|
+
return T.value;
|
|
3757
3706
|
}));
|
|
3758
|
-
Array.isArray(
|
|
3707
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(T) {
|
|
3759
3708
|
return {
|
|
3760
|
-
type: typeof
|
|
3761
|
-
value:
|
|
3709
|
+
type: typeof T == "string" ? H.literal : H.object,
|
|
3710
|
+
value: T
|
|
3762
3711
|
};
|
|
3763
3712
|
}));
|
|
3764
3713
|
}
|
|
3765
|
-
if (
|
|
3766
|
-
var
|
|
3767
|
-
if (!
|
|
3768
|
-
throw new
|
|
3769
|
-
a.push.apply(a,
|
|
3714
|
+
if (kt(l)) {
|
|
3715
|
+
var w = l.options[c] || l.options.other;
|
|
3716
|
+
if (!w)
|
|
3717
|
+
throw new gt(l.value, c, Object.keys(l.options), s);
|
|
3718
|
+
a.push.apply(a, ce(w.value, t, r, n, i));
|
|
3770
3719
|
continue;
|
|
3771
3720
|
}
|
|
3772
|
-
if (
|
|
3773
|
-
var
|
|
3774
|
-
if (!
|
|
3721
|
+
if (Vt(l)) {
|
|
3722
|
+
var w = l.options["=".concat(c)];
|
|
3723
|
+
if (!w) {
|
|
3775
3724
|
if (!Intl.PluralRules)
|
|
3776
|
-
throw new
|
|
3725
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3777
3726
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3778
|
-
`,
|
|
3779
|
-
var A = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3780
|
-
|
|
3727
|
+
`, Z.MISSING_INTL_API, s);
|
|
3728
|
+
var A = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3729
|
+
w = l.options[A] || l.options.other;
|
|
3781
3730
|
}
|
|
3782
|
-
if (!
|
|
3783
|
-
throw new
|
|
3784
|
-
a.push.apply(a,
|
|
3731
|
+
if (!w)
|
|
3732
|
+
throw new gt(l.value, c, Object.keys(l.options), s);
|
|
3733
|
+
a.push.apply(a, ce(w.value, t, r, n, i, c - (l.offset || 0)));
|
|
3785
3734
|
continue;
|
|
3786
3735
|
}
|
|
3787
3736
|
}
|
|
3788
|
-
return
|
|
3737
|
+
return ti(a);
|
|
3789
3738
|
}
|
|
3790
|
-
function
|
|
3739
|
+
function ni(e, t) {
|
|
3791
3740
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3792
3741
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3793
3742
|
}, {})) : e;
|
|
3794
3743
|
}
|
|
3795
|
-
function
|
|
3744
|
+
function ii(e, t) {
|
|
3796
3745
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3797
|
-
return r[n] =
|
|
3746
|
+
return r[n] = ni(e[n], t[n]), r;
|
|
3798
3747
|
}, y({}, e)) : e;
|
|
3799
3748
|
}
|
|
3800
|
-
function
|
|
3749
|
+
function Pe(e) {
|
|
3801
3750
|
return {
|
|
3802
3751
|
create: function() {
|
|
3803
3752
|
return {
|
|
@@ -3811,39 +3760,39 @@ function Ie(e) {
|
|
|
3811
3760
|
}
|
|
3812
3761
|
};
|
|
3813
3762
|
}
|
|
3814
|
-
function
|
|
3763
|
+
function oi(e) {
|
|
3815
3764
|
return e === void 0 && (e = {
|
|
3816
3765
|
number: {},
|
|
3817
3766
|
dateTime: {},
|
|
3818
3767
|
pluralRules: {}
|
|
3819
3768
|
}), {
|
|
3820
|
-
getNumberFormat:
|
|
3769
|
+
getNumberFormat: Ce(function() {
|
|
3821
3770
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3822
3771
|
r[n] = arguments[n];
|
|
3823
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3772
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3824
3773
|
}, {
|
|
3825
|
-
cache:
|
|
3826
|
-
strategy:
|
|
3774
|
+
cache: Pe(e.number),
|
|
3775
|
+
strategy: Be.variadic
|
|
3827
3776
|
}),
|
|
3828
|
-
getDateTimeFormat:
|
|
3777
|
+
getDateTimeFormat: Ce(function() {
|
|
3829
3778
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3830
3779
|
r[n] = arguments[n];
|
|
3831
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3780
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3832
3781
|
}, {
|
|
3833
|
-
cache:
|
|
3834
|
-
strategy:
|
|
3782
|
+
cache: Pe(e.dateTime),
|
|
3783
|
+
strategy: Be.variadic
|
|
3835
3784
|
}),
|
|
3836
|
-
getPluralRules:
|
|
3785
|
+
getPluralRules: Ce(function() {
|
|
3837
3786
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3838
3787
|
r[n] = arguments[n];
|
|
3839
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3788
|
+
return new ((t = Intl.PluralRules).bind.apply(t, X([void 0], r, !1)))();
|
|
3840
3789
|
}, {
|
|
3841
|
-
cache:
|
|
3842
|
-
strategy:
|
|
3790
|
+
cache: Pe(e.pluralRules),
|
|
3791
|
+
strategy: Be.variadic
|
|
3843
3792
|
})
|
|
3844
3793
|
};
|
|
3845
3794
|
}
|
|
3846
|
-
var
|
|
3795
|
+
var si = (
|
|
3847
3796
|
/** @class */
|
|
3848
3797
|
function() {
|
|
3849
3798
|
function e(t, r, n, i) {
|
|
@@ -3857,12 +3806,12 @@ var vi = (
|
|
|
3857
3806
|
var u = o.formatToParts(h);
|
|
3858
3807
|
if (u.length === 1)
|
|
3859
3808
|
return u[0].value;
|
|
3860
|
-
var l = u.reduce(function(
|
|
3861
|
-
return !
|
|
3809
|
+
var l = u.reduce(function(f, c) {
|
|
3810
|
+
return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3862
3811
|
}, []);
|
|
3863
3812
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3864
3813
|
}, this.formatToParts = function(h) {
|
|
3865
|
-
return
|
|
3814
|
+
return ce(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3866
3815
|
}, this.resolvedOptions = function() {
|
|
3867
3816
|
var h;
|
|
3868
3817
|
return {
|
|
@@ -3875,13 +3824,13 @@ var vi = (
|
|
|
3875
3824
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3876
3825
|
var s = i || {};
|
|
3877
3826
|
s.formatters;
|
|
3878
|
-
var a =
|
|
3827
|
+
var a = Rr(s, ["formatters"]);
|
|
3879
3828
|
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3880
3829
|
} else
|
|
3881
3830
|
this.ast = t;
|
|
3882
3831
|
if (!Array.isArray(this.ast))
|
|
3883
3832
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3884
|
-
this.formats =
|
|
3833
|
+
this.formats = ii(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
|
|
3885
3834
|
}
|
|
3886
3835
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3887
3836
|
get: function() {
|
|
@@ -3890,11 +3839,11 @@ var vi = (
|
|
|
3890
3839
|
enumerable: !1,
|
|
3891
3840
|
configurable: !0
|
|
3892
3841
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3893
|
-
if (typeof Intl.Locale
|
|
3842
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3894
3843
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3895
3844
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3896
3845
|
}
|
|
3897
|
-
}, e.__parse =
|
|
3846
|
+
}, e.__parse = qn, e.formats = {
|
|
3898
3847
|
number: {
|
|
3899
3848
|
integer: {
|
|
3900
3849
|
maximumFractionDigits: 0
|
|
@@ -3955,7 +3904,7 @@ var vi = (
|
|
|
3955
3904
|
}, e;
|
|
3956
3905
|
}()
|
|
3957
3906
|
);
|
|
3958
|
-
function
|
|
3907
|
+
function ai(e, t) {
|
|
3959
3908
|
if (t == null)
|
|
3960
3909
|
return;
|
|
3961
3910
|
if (t in e)
|
|
@@ -3976,92 +3925,92 @@ function xi(e, t) {
|
|
|
3976
3925
|
n = void 0;
|
|
3977
3926
|
return n;
|
|
3978
3927
|
}
|
|
3979
|
-
const
|
|
3928
|
+
const G = {}, ui = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), er = (e, t) => {
|
|
3980
3929
|
if (t == null)
|
|
3981
3930
|
return;
|
|
3982
|
-
if (t in
|
|
3983
|
-
return
|
|
3984
|
-
const r =
|
|
3931
|
+
if (t in G && e in G[t])
|
|
3932
|
+
return G[t][e];
|
|
3933
|
+
const r = xe(t);
|
|
3985
3934
|
for (let n = 0; n < r.length; n++) {
|
|
3986
|
-
const i = r[n], o =
|
|
3935
|
+
const i = r[n], o = li(i, e);
|
|
3987
3936
|
if (o)
|
|
3988
|
-
return
|
|
3937
|
+
return ui(e, t, o);
|
|
3989
3938
|
}
|
|
3990
3939
|
};
|
|
3991
|
-
let
|
|
3992
|
-
const
|
|
3993
|
-
function
|
|
3994
|
-
return
|
|
3940
|
+
let Ye;
|
|
3941
|
+
const oe = ye({});
|
|
3942
|
+
function hi(e) {
|
|
3943
|
+
return Ye[e] || null;
|
|
3995
3944
|
}
|
|
3996
|
-
function
|
|
3997
|
-
return e in
|
|
3945
|
+
function tr(e) {
|
|
3946
|
+
return e in Ye;
|
|
3998
3947
|
}
|
|
3999
|
-
function
|
|
4000
|
-
if (!
|
|
3948
|
+
function li(e, t) {
|
|
3949
|
+
if (!tr(e))
|
|
4001
3950
|
return null;
|
|
4002
|
-
const r =
|
|
4003
|
-
return
|
|
3951
|
+
const r = hi(e);
|
|
3952
|
+
return ai(r, t);
|
|
4004
3953
|
}
|
|
4005
|
-
function
|
|
3954
|
+
function fi(e) {
|
|
4006
3955
|
if (e == null)
|
|
4007
3956
|
return;
|
|
4008
|
-
const t =
|
|
3957
|
+
const t = xe(e);
|
|
4009
3958
|
for (let r = 0; r < t.length; r++) {
|
|
4010
3959
|
const n = t[r];
|
|
4011
|
-
if (
|
|
3960
|
+
if (tr(n))
|
|
4012
3961
|
return n;
|
|
4013
3962
|
}
|
|
4014
3963
|
}
|
|
4015
|
-
function
|
|
4016
|
-
delete
|
|
3964
|
+
function rr(e, ...t) {
|
|
3965
|
+
delete G[e], oe.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
|
|
4017
3966
|
}
|
|
4018
|
-
|
|
4019
|
-
[
|
|
3967
|
+
Y(
|
|
3968
|
+
[oe],
|
|
4020
3969
|
([e]) => Object.keys(e)
|
|
4021
3970
|
);
|
|
4022
|
-
|
|
4023
|
-
const
|
|
4024
|
-
function
|
|
4025
|
-
|
|
3971
|
+
oe.subscribe((e) => Ye = e);
|
|
3972
|
+
const me = {};
|
|
3973
|
+
function ci(e, t) {
|
|
3974
|
+
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
4026
3975
|
}
|
|
4027
|
-
function
|
|
4028
|
-
return
|
|
3976
|
+
function nr(e) {
|
|
3977
|
+
return me[e];
|
|
4029
3978
|
}
|
|
4030
|
-
function
|
|
4031
|
-
return
|
|
4032
|
-
const r =
|
|
3979
|
+
function mi(e) {
|
|
3980
|
+
return xe(e).map((t) => {
|
|
3981
|
+
const r = nr(t);
|
|
4033
3982
|
return [t, r ? [...r] : []];
|
|
4034
3983
|
}).filter(([, t]) => t.length > 0);
|
|
4035
3984
|
}
|
|
4036
|
-
function
|
|
4037
|
-
return e == null ? !1 :
|
|
3985
|
+
function We(e) {
|
|
3986
|
+
return e == null ? !1 : xe(e).some(
|
|
4038
3987
|
(t) => {
|
|
4039
3988
|
var r;
|
|
4040
|
-
return (r =
|
|
3989
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
4041
3990
|
}
|
|
4042
3991
|
);
|
|
4043
3992
|
}
|
|
4044
|
-
function
|
|
3993
|
+
function di(e, t) {
|
|
4045
3994
|
return Promise.all(
|
|
4046
|
-
t.map((n) => (
|
|
4047
|
-
).then((n) =>
|
|
4048
|
-
}
|
|
4049
|
-
const
|
|
4050
|
-
function
|
|
4051
|
-
if (!
|
|
4052
|
-
return e in
|
|
4053
|
-
const t =
|
|
4054
|
-
return
|
|
3995
|
+
t.map((n) => (ci(e, n), n().then((i) => i.default || i)))
|
|
3996
|
+
).then((n) => rr(e, ...n));
|
|
3997
|
+
}
|
|
3998
|
+
const ee = {};
|
|
3999
|
+
function ir(e) {
|
|
4000
|
+
if (!We(e))
|
|
4001
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
4002
|
+
const t = mi(e);
|
|
4003
|
+
return ee[e] = Promise.all(
|
|
4055
4004
|
t.map(
|
|
4056
|
-
([r, n]) =>
|
|
4005
|
+
([r, n]) => di(r, n)
|
|
4057
4006
|
)
|
|
4058
4007
|
).then(() => {
|
|
4059
|
-
if (
|
|
4060
|
-
return
|
|
4061
|
-
delete
|
|
4062
|
-
}),
|
|
4008
|
+
if (We(e))
|
|
4009
|
+
return ir(e);
|
|
4010
|
+
delete ee[e];
|
|
4011
|
+
}), ee[e];
|
|
4063
4012
|
}
|
|
4064
|
-
const
|
|
4013
|
+
const pi = {
|
|
4065
4014
|
number: {
|
|
4066
4015
|
scientific: { notation: "scientific" },
|
|
4067
4016
|
engineering: { notation: "engineering" },
|
|
@@ -4090,180 +4039,180 @@ const Bi = {
|
|
|
4090
4039
|
timeZoneName: "short"
|
|
4091
4040
|
}
|
|
4092
4041
|
}
|
|
4093
|
-
},
|
|
4042
|
+
}, bi = {
|
|
4094
4043
|
fallbackLocale: null,
|
|
4095
4044
|
loadingDelay: 200,
|
|
4096
|
-
formats:
|
|
4045
|
+
formats: pi,
|
|
4097
4046
|
warnOnMissingMessages: !0,
|
|
4098
4047
|
handleMissingMessage: void 0,
|
|
4099
4048
|
ignoreTag: !0
|
|
4100
|
-
},
|
|
4101
|
-
function
|
|
4102
|
-
return
|
|
4103
|
-
}
|
|
4104
|
-
const
|
|
4105
|
-
var
|
|
4106
|
-
for (var r in t
|
|
4107
|
-
|
|
4108
|
-
if (
|
|
4109
|
-
for (var r of
|
|
4110
|
-
|
|
4049
|
+
}, gi = bi;
|
|
4050
|
+
function Q() {
|
|
4051
|
+
return gi;
|
|
4052
|
+
}
|
|
4053
|
+
const Le = ye(!1);
|
|
4054
|
+
var yi = Object.defineProperty, vi = Object.defineProperties, xi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, Ei = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Si = (e, t) => {
|
|
4055
|
+
for (var r in t)
|
|
4056
|
+
_i.call(t, r) && vt(e, r, t[r]);
|
|
4057
|
+
if (yt)
|
|
4058
|
+
for (var r of yt(t))
|
|
4059
|
+
Ei.call(t, r) && vt(e, r, t[r]);
|
|
4111
4060
|
return e;
|
|
4112
|
-
},
|
|
4113
|
-
let
|
|
4114
|
-
const de =
|
|
4115
|
-
function
|
|
4061
|
+
}, wi = (e, t) => vi(e, xi(t));
|
|
4062
|
+
let ze;
|
|
4063
|
+
const de = ye(null);
|
|
4064
|
+
function xt(e) {
|
|
4116
4065
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4117
4066
|
}
|
|
4118
|
-
function
|
|
4119
|
-
const r =
|
|
4120
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4067
|
+
function xe(e, t = Q().fallbackLocale) {
|
|
4068
|
+
const r = xt(e);
|
|
4069
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
|
|
4121
4070
|
}
|
|
4122
|
-
function
|
|
4123
|
-
return
|
|
4071
|
+
function U() {
|
|
4072
|
+
return ze ?? void 0;
|
|
4124
4073
|
}
|
|
4125
4074
|
de.subscribe((e) => {
|
|
4126
|
-
|
|
4075
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4127
4076
|
});
|
|
4128
|
-
const
|
|
4129
|
-
if (e &&
|
|
4130
|
-
const { loadingDelay: t } =
|
|
4077
|
+
const Ti = (e) => {
|
|
4078
|
+
if (e && fi(e) && We(e)) {
|
|
4079
|
+
const { loadingDelay: t } = Q();
|
|
4131
4080
|
let r;
|
|
4132
|
-
return typeof window
|
|
4133
|
-
() =>
|
|
4081
|
+
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4082
|
+
() => Le.set(!0),
|
|
4134
4083
|
t
|
|
4135
|
-
) :
|
|
4084
|
+
) : Le.set(!0), ir(e).then(() => {
|
|
4136
4085
|
de.set(e);
|
|
4137
4086
|
}).finally(() => {
|
|
4138
|
-
clearTimeout(r),
|
|
4087
|
+
clearTimeout(r), Le.set(!1);
|
|
4139
4088
|
});
|
|
4140
4089
|
}
|
|
4141
4090
|
return de.set(e);
|
|
4142
|
-
},
|
|
4143
|
-
set:
|
|
4144
|
-
}),
|
|
4091
|
+
}, q = wi(Si({}, de), {
|
|
4092
|
+
set: Ti
|
|
4093
|
+
}), _e = (e) => {
|
|
4145
4094
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4146
4095
|
return (n) => {
|
|
4147
4096
|
const i = JSON.stringify(n);
|
|
4148
4097
|
return i in t ? t[i] : t[i] = e(n);
|
|
4149
4098
|
};
|
|
4150
4099
|
};
|
|
4151
|
-
var
|
|
4100
|
+
var Hi = Object.defineProperty, pe = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4152
4101
|
for (var r in t || (t = {}))
|
|
4153
|
-
|
|
4154
|
-
if (
|
|
4155
|
-
for (var r of
|
|
4156
|
-
|
|
4102
|
+
or.call(t, r) && _t(e, r, t[r]);
|
|
4103
|
+
if (pe)
|
|
4104
|
+
for (var r of pe(t))
|
|
4105
|
+
sr.call(t, r) && _t(e, r, t[r]);
|
|
4157
4106
|
return e;
|
|
4158
|
-
},
|
|
4107
|
+
}, K = (e, t) => {
|
|
4159
4108
|
var r = {};
|
|
4160
4109
|
for (var n in e)
|
|
4161
|
-
|
|
4162
|
-
if (e != null &&
|
|
4163
|
-
for (var n of
|
|
4164
|
-
t.indexOf(n) < 0 &&
|
|
4110
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4111
|
+
if (e != null && pe)
|
|
4112
|
+
for (var n of pe(e))
|
|
4113
|
+
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
4165
4114
|
return r;
|
|
4166
4115
|
};
|
|
4167
|
-
const
|
|
4168
|
-
const { formats: r } =
|
|
4116
|
+
const ie = (e, t) => {
|
|
4117
|
+
const { formats: r } = Q();
|
|
4169
4118
|
if (e in r && t in r[e])
|
|
4170
4119
|
return r[e][t];
|
|
4171
4120
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4172
|
-
},
|
|
4121
|
+
}, Ci = _e(
|
|
4173
4122
|
(e) => {
|
|
4174
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4123
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4175
4124
|
if (r == null)
|
|
4176
4125
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4177
|
-
return n && (i =
|
|
4126
|
+
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
4178
4127
|
}
|
|
4179
|
-
),
|
|
4128
|
+
), Bi = _e(
|
|
4180
4129
|
(e) => {
|
|
4181
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4130
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4182
4131
|
if (r == null)
|
|
4183
4132
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4184
|
-
return n ? i =
|
|
4133
|
+
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4185
4134
|
}
|
|
4186
|
-
),
|
|
4135
|
+
), Ai = _e(
|
|
4187
4136
|
(e) => {
|
|
4188
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4137
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4189
4138
|
if (r == null)
|
|
4190
4139
|
throw new Error(
|
|
4191
4140
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4192
4141
|
);
|
|
4193
|
-
return n ? i =
|
|
4142
|
+
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4194
4143
|
}
|
|
4195
|
-
),
|
|
4144
|
+
), Pi = (e = {}) => {
|
|
4196
4145
|
var t = e, {
|
|
4197
|
-
locale: r =
|
|
4198
|
-
} = t, n =
|
|
4146
|
+
locale: r = U()
|
|
4147
|
+
} = t, n = K(t, [
|
|
4199
4148
|
"locale"
|
|
4200
4149
|
]);
|
|
4201
|
-
return
|
|
4202
|
-
},
|
|
4150
|
+
return Ci(qe({ locale: r }, n));
|
|
4151
|
+
}, Li = (e = {}) => {
|
|
4203
4152
|
var t = e, {
|
|
4204
|
-
locale: r =
|
|
4205
|
-
} = t, n =
|
|
4153
|
+
locale: r = U()
|
|
4154
|
+
} = t, n = K(t, [
|
|
4206
4155
|
"locale"
|
|
4207
4156
|
]);
|
|
4208
|
-
return
|
|
4209
|
-
},
|
|
4157
|
+
return Bi(qe({ locale: r }, n));
|
|
4158
|
+
}, Oi = (e = {}) => {
|
|
4210
4159
|
var t = e, {
|
|
4211
|
-
locale: r =
|
|
4212
|
-
} = t, n =
|
|
4160
|
+
locale: r = U()
|
|
4161
|
+
} = t, n = K(t, [
|
|
4213
4162
|
"locale"
|
|
4214
4163
|
]);
|
|
4215
|
-
return
|
|
4216
|
-
},
|
|
4164
|
+
return Ai(qe({ locale: r }, n));
|
|
4165
|
+
}, Ii = _e(
|
|
4217
4166
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4218
|
-
(e, t =
|
|
4219
|
-
ignoreTag:
|
|
4167
|
+
(e, t = U()) => new si(e, t, Q().formats, {
|
|
4168
|
+
ignoreTag: Q().ignoreTag
|
|
4220
4169
|
})
|
|
4221
|
-
),
|
|
4170
|
+
), Ni = (e, t = {}) => {
|
|
4222
4171
|
var r, n, i, o;
|
|
4223
4172
|
let s = t;
|
|
4224
4173
|
typeof e == "object" && (s = e, e = s.id);
|
|
4225
4174
|
const {
|
|
4226
4175
|
values: a,
|
|
4227
|
-
locale: h =
|
|
4176
|
+
locale: h = U(),
|
|
4228
4177
|
default: u
|
|
4229
4178
|
} = s;
|
|
4230
4179
|
if (h == null)
|
|
4231
4180
|
throw new Error(
|
|
4232
4181
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4233
4182
|
);
|
|
4234
|
-
let l =
|
|
4183
|
+
let l = er(e, h);
|
|
4235
4184
|
if (!l)
|
|
4236
|
-
l = (o = (i = (n = (r =
|
|
4185
|
+
l = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4237
4186
|
else if (typeof l != "string")
|
|
4238
4187
|
return console.warn(
|
|
4239
4188
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4240
4189
|
), l;
|
|
4241
4190
|
if (!a)
|
|
4242
4191
|
return l;
|
|
4243
|
-
let
|
|
4192
|
+
let f = l;
|
|
4244
4193
|
try {
|
|
4245
|
-
|
|
4246
|
-
} catch (
|
|
4247
|
-
|
|
4194
|
+
f = Ii(l, h).format(a);
|
|
4195
|
+
} catch (c) {
|
|
4196
|
+
c instanceof Error && console.warn(
|
|
4248
4197
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4249
|
-
|
|
4198
|
+
c.message
|
|
4250
4199
|
);
|
|
4251
4200
|
}
|
|
4252
|
-
return
|
|
4253
|
-
},
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
window.emWidgets = { topic:
|
|
4259
|
-
const
|
|
4260
|
-
function
|
|
4261
|
-
|
|
4262
|
-
}
|
|
4263
|
-
function
|
|
4264
|
-
|
|
4265
|
-
}
|
|
4266
|
-
const
|
|
4201
|
+
return f;
|
|
4202
|
+
}, Mi = (e, t) => Oi(t).format(e), $i = (e, t) => Li(t).format(e), Ri = (e, t) => Pi(t).format(e), Gi = (e, t = U()) => er(e, t), Ui = Y([q, oe], () => Ni);
|
|
4203
|
+
Y([q], () => Mi);
|
|
4204
|
+
Y([q], () => $i);
|
|
4205
|
+
Y([q], () => Ri);
|
|
4206
|
+
Y([q, oe], () => Gi);
|
|
4207
|
+
window.emWidgets = { topic: Yr };
|
|
4208
|
+
const Di = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4209
|
+
function Et(e, t) {
|
|
4210
|
+
rr(e, t);
|
|
4211
|
+
}
|
|
4212
|
+
function Fi(e) {
|
|
4213
|
+
q.set(e);
|
|
4214
|
+
}
|
|
4215
|
+
const St = {
|
|
4267
4216
|
en: {
|
|
4268
4217
|
cancel: "Cancel",
|
|
4269
4218
|
confirm: "Confirm"
|
|
@@ -4309,68 +4258,68 @@ const Lt = {
|
|
|
4309
4258
|
confirm: "Confirm"
|
|
4310
4259
|
}
|
|
4311
4260
|
};
|
|
4312
|
-
function
|
|
4313
|
-
|
|
4261
|
+
function ji(e) {
|
|
4262
|
+
gr(e, "svelte-1pkvhrt", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
4314
4263
|
}
|
|
4315
|
-
const
|
|
4316
|
-
function
|
|
4264
|
+
const ki = (e) => ({}), wt = (e) => ({});
|
|
4265
|
+
function Vi(e) {
|
|
4317
4266
|
let t, r;
|
|
4318
4267
|
return {
|
|
4319
4268
|
c() {
|
|
4320
|
-
t =
|
|
4269
|
+
t = et("svg"), r = et("path"), S(r, "stroke-linecap", "round"), S(r, "stroke-linejoin", "round"), S(r, "stroke-width", "2"), S(r, "d", "M6 18L18 6M6 6l12 12"), S(t, "class", "w-6 h-6"), S(t, "fill", "none"), S(t, "stroke", "currentColor"), S(t, "viewBox", "0 0 24 24"), S(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4321
4270
|
},
|
|
4322
4271
|
m(n, i) {
|
|
4323
|
-
|
|
4272
|
+
Qe(n, t, i), C(t, r);
|
|
4324
4273
|
},
|
|
4325
|
-
p:
|
|
4274
|
+
p: O,
|
|
4326
4275
|
d(n) {
|
|
4327
|
-
n &&
|
|
4276
|
+
n && be(t);
|
|
4328
4277
|
}
|
|
4329
4278
|
};
|
|
4330
4279
|
}
|
|
4331
|
-
function
|
|
4280
|
+
function Xi(e) {
|
|
4332
4281
|
let t, r, n, i, o, s, a, h, u, l = (
|
|
4333
4282
|
/*$_*/
|
|
4334
4283
|
e[2]("cancel") + ""
|
|
4335
|
-
),
|
|
4284
|
+
), f, c, m, v = (
|
|
4336
4285
|
/*$_*/
|
|
4337
4286
|
e[2]("confirm") + ""
|
|
4338
|
-
), g, E, B,
|
|
4339
|
-
const
|
|
4287
|
+
), g, E, B, L;
|
|
4288
|
+
const w = (
|
|
4340
4289
|
/*#slots*/
|
|
4341
4290
|
e[13].close
|
|
4342
|
-
), A =
|
|
4343
|
-
|
|
4291
|
+
), A = mr(
|
|
4292
|
+
w,
|
|
4344
4293
|
e,
|
|
4345
4294
|
/*$$scope*/
|
|
4346
4295
|
e[12],
|
|
4347
|
-
|
|
4348
|
-
),
|
|
4296
|
+
wt
|
|
4297
|
+
), T = A || Vi();
|
|
4349
4298
|
return {
|
|
4350
4299
|
c() {
|
|
4351
|
-
t = N("div"), r = N("div"), n = N("span"),
|
|
4300
|
+
t = N("div"), r = N("div"), n = N("span"), T.c(), i = Ee(), o = N("div"), s = ue(
|
|
4352
4301
|
/*modaltext*/
|
|
4353
4302
|
e[0]
|
|
4354
|
-
), a =
|
|
4355
|
-
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")),
|
|
4356
|
-
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")),
|
|
4303
|
+
), a = Ee(), h = N("div"), u = N("button"), f = ue(l), c = Ee(), m = N("button"), g = ue(v), S(n, "class", "ModalCloseBtn"), S(n, "role", "button"), S(o, "class", "GamingLimitsConfirmationContent"), S(u, "class", "GamingLimitsCancelButton"), S(m, "class", "GamingLimitsConfirmButton"), S(h, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
|
|
4304
|
+
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), S(r, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
|
|
4305
|
+
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), S(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
|
|
4357
4306
|
(e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
|
|
4358
4307
|
},
|
|
4359
4308
|
m(x, P) {
|
|
4360
|
-
|
|
4361
|
-
|
|
4309
|
+
Qe(x, t, P), C(t, r), C(r, n), T.m(n, null), C(r, i), C(r, o), C(o, s), C(r, a), C(r, h), C(h, u), C(u, f), C(h, c), C(h, m), C(m, g), e[14](t), E = !0, B || (L = [
|
|
4310
|
+
Se(
|
|
4362
4311
|
n,
|
|
4363
4312
|
"click",
|
|
4364
4313
|
/*close*/
|
|
4365
4314
|
e[4]
|
|
4366
4315
|
),
|
|
4367
|
-
|
|
4316
|
+
Se(
|
|
4368
4317
|
u,
|
|
4369
4318
|
"click",
|
|
4370
4319
|
/*cancelChanges*/
|
|
4371
4320
|
e[6]
|
|
4372
4321
|
),
|
|
4373
|
-
|
|
4322
|
+
Se(
|
|
4374
4323
|
m,
|
|
4375
4324
|
"click",
|
|
4376
4325
|
/*confirmChanges*/
|
|
@@ -4380,65 +4329,65 @@ function io(e) {
|
|
|
4380
4329
|
},
|
|
4381
4330
|
p(x, [P]) {
|
|
4382
4331
|
A && A.p && (!E || P & /*$$scope*/
|
|
4383
|
-
4096) &&
|
|
4332
|
+
4096) && pr(
|
|
4384
4333
|
A,
|
|
4385
|
-
|
|
4334
|
+
w,
|
|
4386
4335
|
x,
|
|
4387
4336
|
/*$$scope*/
|
|
4388
4337
|
x[12],
|
|
4389
|
-
E ?
|
|
4390
|
-
|
|
4338
|
+
E ? dr(
|
|
4339
|
+
w,
|
|
4391
4340
|
/*$$scope*/
|
|
4392
4341
|
x[12],
|
|
4393
4342
|
P,
|
|
4394
|
-
|
|
4395
|
-
) :
|
|
4343
|
+
ki
|
|
4344
|
+
) : br(
|
|
4396
4345
|
/*$$scope*/
|
|
4397
4346
|
x[12]
|
|
4398
4347
|
),
|
|
4399
|
-
|
|
4348
|
+
wt
|
|
4400
4349
|
), (!E || P & /*modaltext*/
|
|
4401
|
-
1) &&
|
|
4350
|
+
1) && we(
|
|
4402
4351
|
s,
|
|
4403
4352
|
/*modaltext*/
|
|
4404
4353
|
x[0]
|
|
4405
4354
|
), (!E || P & /*$_*/
|
|
4406
4355
|
4) && l !== (l = /*$_*/
|
|
4407
|
-
x[2]("cancel") + "") &&
|
|
4356
|
+
x[2]("cancel") + "") && we(f, l), (!E || P & /*$_*/
|
|
4408
4357
|
4) && v !== (v = /*$_*/
|
|
4409
|
-
x[2]("confirm") + "") &&
|
|
4358
|
+
x[2]("confirm") + "") && we(g, v);
|
|
4410
4359
|
},
|
|
4411
4360
|
i(x) {
|
|
4412
|
-
E || (
|
|
4361
|
+
E || (At(T, x), E = !0);
|
|
4413
4362
|
},
|
|
4414
4363
|
o(x) {
|
|
4415
|
-
|
|
4364
|
+
Ar(T, x), E = !1;
|
|
4416
4365
|
},
|
|
4417
4366
|
d(x) {
|
|
4418
|
-
x &&
|
|
4367
|
+
x && be(t), T.d(x), e[14](null), B = !1, J(L);
|
|
4419
4368
|
}
|
|
4420
4369
|
};
|
|
4421
4370
|
}
|
|
4422
|
-
function
|
|
4371
|
+
function Wi(e, t, r) {
|
|
4423
4372
|
let n;
|
|
4424
|
-
|
|
4425
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modalsource: a = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl:
|
|
4426
|
-
const
|
|
4427
|
-
fetch(
|
|
4428
|
-
Object.keys(
|
|
4429
|
-
|
|
4373
|
+
cr(e, Ui, (d) => r(2, n = d));
|
|
4374
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modalsource: a = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t;
|
|
4375
|
+
const c = () => {
|
|
4376
|
+
fetch(f).then((I) => I.json()).then((I) => {
|
|
4377
|
+
Object.keys(I).forEach((D) => {
|
|
4378
|
+
Et(D, I[D]);
|
|
4430
4379
|
});
|
|
4431
|
-
}).catch((
|
|
4432
|
-
console.log(
|
|
4380
|
+
}).catch((I) => {
|
|
4381
|
+
console.log(I);
|
|
4433
4382
|
});
|
|
4434
4383
|
};
|
|
4435
|
-
Object.keys(
|
|
4436
|
-
|
|
4384
|
+
Object.keys(St).forEach((d) => {
|
|
4385
|
+
Et(d, St[d]);
|
|
4437
4386
|
});
|
|
4438
|
-
let m, v = window.navigator.userAgent, g =
|
|
4439
|
-
const
|
|
4387
|
+
let m, v = window.navigator.userAgent, g = Di(v) !== "PC", E = {}, B = "";
|
|
4388
|
+
const L = () => {
|
|
4440
4389
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4441
|
-
},
|
|
4390
|
+
}, w = () => {
|
|
4442
4391
|
a === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : a === "infoCard" && window.postMessage(
|
|
4443
4392
|
{
|
|
4444
4393
|
type: "PlayerAccountGamingLimitDelete",
|
|
@@ -4449,71 +4398,71 @@ function oo(e, t, r) {
|
|
|
4449
4398
|
), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4450
4399
|
}, A = () => {
|
|
4451
4400
|
a === "groupEdit" ? window.postMessage({ type: "CancelGamingLimitsChanges" }, window.location.href) : a === "infoCard" && window.postMessage({ type: "CancelGamingLimitsRemove" }, window.location.href), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4452
|
-
},
|
|
4453
|
-
if (
|
|
4454
|
-
switch (
|
|
4401
|
+
}, T = (d) => d === "Time Limit" ? "cumulativeSessionLimits" : d === "Deposit Limit" ? "depositLimits" : d === "Wagering Limit" ? "wageringLimit" : "lossLimit", x = (d) => {
|
|
4402
|
+
if (d.data)
|
|
4403
|
+
switch (d.data.type) {
|
|
4455
4404
|
case "DeleteLimitsItem":
|
|
4456
|
-
E =
|
|
4405
|
+
E = d.data.removeData, B = T(d.data.removeName);
|
|
4457
4406
|
break;
|
|
4458
4407
|
}
|
|
4459
4408
|
}, P = () => {
|
|
4460
|
-
|
|
4461
|
-
},
|
|
4462
|
-
let
|
|
4463
|
-
|
|
4464
|
-
},
|
|
4465
|
-
let
|
|
4466
|
-
fetch(
|
|
4467
|
-
|
|
4409
|
+
Fi(h);
|
|
4410
|
+
}, ar = () => {
|
|
4411
|
+
let d = document.createElement("style");
|
|
4412
|
+
d.innerHTML = u, m.appendChild(d);
|
|
4413
|
+
}, ur = () => {
|
|
4414
|
+
let d = new URL(l), I = document.createElement("style");
|
|
4415
|
+
fetch(d.href).then((D) => D.text()).then((D) => {
|
|
4416
|
+
I.innerHTML = D, setTimeout(
|
|
4468
4417
|
() => {
|
|
4469
|
-
m.appendChild(
|
|
4418
|
+
m.appendChild(I);
|
|
4470
4419
|
},
|
|
4471
4420
|
1
|
|
4472
4421
|
);
|
|
4473
4422
|
});
|
|
4474
4423
|
};
|
|
4475
|
-
|
|
4424
|
+
Sr(() => (window.addEventListener("message", x, !1), () => {
|
|
4476
4425
|
window.removeEventListener("message", x);
|
|
4477
4426
|
}));
|
|
4478
|
-
function
|
|
4479
|
-
|
|
4480
|
-
m =
|
|
4427
|
+
function hr(d) {
|
|
4428
|
+
Oe[d ? "unshift" : "push"](() => {
|
|
4429
|
+
m = d, r(1, m);
|
|
4481
4430
|
});
|
|
4482
4431
|
}
|
|
4483
|
-
return e.$$set = (
|
|
4484
|
-
"modaltext" in
|
|
4432
|
+
return e.$$set = (d) => {
|
|
4433
|
+
"modaltext" in d && r(0, s = d.modaltext), "modalsource" in d && r(7, a = d.modalsource), "lang" in d && r(8, h = d.lang), "clientstyling" in d && r(9, u = d.clientstyling), "clientstylingurl" in d && r(10, l = d.clientstylingurl), "translationurl" in d && r(11, f = d.translationurl), "$$scope" in d && r(12, o = d.$$scope);
|
|
4485
4434
|
}, e.$$.update = () => {
|
|
4486
4435
|
e.$$.dirty & /*modaltext, modalsource, lang*/
|
|
4487
4436
|
385 && s && a && h && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4488
|
-
514 && u && m &&
|
|
4489
|
-
1026 && l && m &&
|
|
4490
|
-
2048 &&
|
|
4437
|
+
514 && u && m && ar(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4438
|
+
1026 && l && m && ur(), e.$$.dirty & /*translationurl*/
|
|
4439
|
+
2048 && f && c();
|
|
4491
4440
|
}, [
|
|
4492
4441
|
s,
|
|
4493
4442
|
m,
|
|
4494
4443
|
n,
|
|
4495
4444
|
g,
|
|
4496
|
-
|
|
4497
|
-
|
|
4445
|
+
L,
|
|
4446
|
+
w,
|
|
4498
4447
|
A,
|
|
4499
4448
|
a,
|
|
4500
4449
|
h,
|
|
4501
4450
|
u,
|
|
4502
4451
|
l,
|
|
4503
|
-
|
|
4452
|
+
f,
|
|
4504
4453
|
o,
|
|
4505
4454
|
i,
|
|
4506
|
-
|
|
4455
|
+
hr
|
|
4507
4456
|
];
|
|
4508
4457
|
}
|
|
4509
|
-
class
|
|
4458
|
+
class zi extends Mr {
|
|
4510
4459
|
constructor(t) {
|
|
4511
|
-
super(),
|
|
4460
|
+
super(), Ir(
|
|
4512
4461
|
this,
|
|
4513
4462
|
t,
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4463
|
+
Wi,
|
|
4464
|
+
Xi,
|
|
4465
|
+
Ht,
|
|
4517
4466
|
{
|
|
4518
4467
|
modaltext: 0,
|
|
4519
4468
|
modalsource: 7,
|
|
@@ -4522,47 +4471,47 @@ class so extends Qr {
|
|
|
4522
4471
|
clientstylingurl: 10,
|
|
4523
4472
|
translationurl: 11
|
|
4524
4473
|
},
|
|
4525
|
-
|
|
4474
|
+
ji
|
|
4526
4475
|
);
|
|
4527
4476
|
}
|
|
4528
4477
|
get modaltext() {
|
|
4529
4478
|
return this.$$.ctx[0];
|
|
4530
4479
|
}
|
|
4531
4480
|
set modaltext(t) {
|
|
4532
|
-
this.$$set({ modaltext: t }),
|
|
4481
|
+
this.$$set({ modaltext: t }), R();
|
|
4533
4482
|
}
|
|
4534
4483
|
get modalsource() {
|
|
4535
4484
|
return this.$$.ctx[7];
|
|
4536
4485
|
}
|
|
4537
4486
|
set modalsource(t) {
|
|
4538
|
-
this.$$set({ modalsource: t }),
|
|
4487
|
+
this.$$set({ modalsource: t }), R();
|
|
4539
4488
|
}
|
|
4540
4489
|
get lang() {
|
|
4541
4490
|
return this.$$.ctx[8];
|
|
4542
4491
|
}
|
|
4543
4492
|
set lang(t) {
|
|
4544
|
-
this.$$set({ lang: t }),
|
|
4493
|
+
this.$$set({ lang: t }), R();
|
|
4545
4494
|
}
|
|
4546
4495
|
get clientstyling() {
|
|
4547
4496
|
return this.$$.ctx[9];
|
|
4548
4497
|
}
|
|
4549
4498
|
set clientstyling(t) {
|
|
4550
|
-
this.$$set({ clientstyling: t }),
|
|
4499
|
+
this.$$set({ clientstyling: t }), R();
|
|
4551
4500
|
}
|
|
4552
4501
|
get clientstylingurl() {
|
|
4553
4502
|
return this.$$.ctx[10];
|
|
4554
4503
|
}
|
|
4555
4504
|
set clientstylingurl(t) {
|
|
4556
|
-
this.$$set({ clientstylingurl: t }),
|
|
4505
|
+
this.$$set({ clientstylingurl: t }), R();
|
|
4557
4506
|
}
|
|
4558
4507
|
get translationurl() {
|
|
4559
4508
|
return this.$$.ctx[11];
|
|
4560
4509
|
}
|
|
4561
4510
|
set translationurl(t) {
|
|
4562
|
-
this.$$set({ translationurl: t }),
|
|
4511
|
+
this.$$set({ translationurl: t }), R();
|
|
4563
4512
|
}
|
|
4564
4513
|
}
|
|
4565
|
-
|
|
4514
|
+
Nr(zi, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, ["close"], [], !0);
|
|
4566
4515
|
export {
|
|
4567
|
-
|
|
4516
|
+
zi as P
|
|
4568
4517
|
};
|