@telia-ace/widget-side-menu 1.1.76-rc.2 → 1.1.76-rc.20
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.
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var Bt = function(
|
|
2
|
-
return Bt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e,
|
|
3
|
-
e.__proto__ =
|
|
4
|
-
} || function(e,
|
|
5
|
-
for (var n in
|
|
6
|
-
Object.prototype.hasOwnProperty.call(
|
|
7
|
-
}, Bt(
|
|
1
|
+
var Bt = function(i, t) {
|
|
2
|
+
return Bt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, s) {
|
|
3
|
+
e.__proto__ = s;
|
|
4
|
+
} || function(e, s) {
|
|
5
|
+
for (var n in s)
|
|
6
|
+
Object.prototype.hasOwnProperty.call(s, n) && (e[n] = s[n]);
|
|
7
|
+
}, Bt(i, t);
|
|
8
8
|
};
|
|
9
|
-
function K(
|
|
9
|
+
function K(i, t) {
|
|
10
10
|
if (typeof t != "function" && t !== null)
|
|
11
11
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
12
|
-
Bt(
|
|
12
|
+
Bt(i, t);
|
|
13
13
|
function e() {
|
|
14
|
-
this.constructor =
|
|
14
|
+
this.constructor = i;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Gi(i, t, e, s) {
|
|
19
19
|
function n(r) {
|
|
20
20
|
return r instanceof e ? r : new e(function(o) {
|
|
21
21
|
o(r);
|
|
@@ -24,14 +24,14 @@ function Gs(s, t, e, i) {
|
|
|
24
24
|
return new (e || (e = Promise))(function(r, o) {
|
|
25
25
|
function a(u) {
|
|
26
26
|
try {
|
|
27
|
-
c(
|
|
27
|
+
c(s.next(u));
|
|
28
28
|
} catch (h) {
|
|
29
29
|
o(h);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
function l(u) {
|
|
33
33
|
try {
|
|
34
|
-
c(
|
|
34
|
+
c(s.throw(u));
|
|
35
35
|
} catch (h) {
|
|
36
36
|
o(h);
|
|
37
37
|
}
|
|
@@ -39,15 +39,15 @@ function Gs(s, t, e, i) {
|
|
|
39
39
|
function c(u) {
|
|
40
40
|
u.done ? r(u.value) : n(u.value).then(a, l);
|
|
41
41
|
}
|
|
42
|
-
c((
|
|
42
|
+
c((s = s.apply(i, t || [])).next());
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function Ge(
|
|
45
|
+
function Ge(i, t) {
|
|
46
46
|
var e = { label: 0, sent: function() {
|
|
47
47
|
if (r[0] & 1)
|
|
48
48
|
throw r[1];
|
|
49
49
|
return r[1];
|
|
50
|
-
}, trys: [], ops: [] },
|
|
50
|
+
}, trys: [], ops: [] }, s, n, r, o;
|
|
51
51
|
return o = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
52
52
|
return this;
|
|
53
53
|
}), o;
|
|
@@ -57,11 +57,11 @@ function Ge(s, t) {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function l(c) {
|
|
60
|
-
if (
|
|
60
|
+
if (s)
|
|
61
61
|
throw new TypeError("Generator is already executing.");
|
|
62
62
|
for (; o && (o = 0, c[0] && (e = 0)), e; )
|
|
63
63
|
try {
|
|
64
|
-
if (
|
|
64
|
+
if (s = 1, n && (r = c[0] & 2 ? n.return : c[0] ? n.throw || ((r = n.return) && r.call(n), 0) : n.next) && !(r = r.call(n, c[1])).done)
|
|
65
65
|
return r;
|
|
66
66
|
switch (n = 0, r && (c = [c[0] & 2, r.value]), c[0]) {
|
|
67
67
|
case 0:
|
|
@@ -96,42 +96,42 @@ function Ge(s, t) {
|
|
|
96
96
|
r[2] && e.ops.pop(), e.trys.pop();
|
|
97
97
|
continue;
|
|
98
98
|
}
|
|
99
|
-
c = t.call(
|
|
99
|
+
c = t.call(i, e);
|
|
100
100
|
} catch (u) {
|
|
101
101
|
c = [6, u], n = 0;
|
|
102
102
|
} finally {
|
|
103
|
-
|
|
103
|
+
s = r = 0;
|
|
104
104
|
}
|
|
105
105
|
if (c[0] & 5)
|
|
106
106
|
throw c[1];
|
|
107
107
|
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function q(
|
|
111
|
-
var t = typeof Symbol == "function" && Symbol.iterator, e = t &&
|
|
110
|
+
function q(i) {
|
|
111
|
+
var t = typeof Symbol == "function" && Symbol.iterator, e = t && i[t], s = 0;
|
|
112
112
|
if (e)
|
|
113
|
-
return e.call(
|
|
114
|
-
if (
|
|
113
|
+
return e.call(i);
|
|
114
|
+
if (i && typeof i.length == "number")
|
|
115
115
|
return {
|
|
116
116
|
next: function() {
|
|
117
|
-
return
|
|
117
|
+
return i && s >= i.length && (i = void 0), { value: i && i[s++], done: !i };
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
121
121
|
}
|
|
122
|
-
function pt(
|
|
123
|
-
var e = typeof Symbol == "function" &&
|
|
122
|
+
function pt(i, t) {
|
|
123
|
+
var e = typeof Symbol == "function" && i[Symbol.iterator];
|
|
124
124
|
if (!e)
|
|
125
|
-
return
|
|
126
|
-
var
|
|
125
|
+
return i;
|
|
126
|
+
var s = e.call(i), n, r = [], o;
|
|
127
127
|
try {
|
|
128
|
-
for (; (t === void 0 || t-- > 0) && !(n =
|
|
128
|
+
for (; (t === void 0 || t-- > 0) && !(n = s.next()).done; )
|
|
129
129
|
r.push(n.value);
|
|
130
130
|
} catch (a) {
|
|
131
131
|
o = { error: a };
|
|
132
132
|
} finally {
|
|
133
133
|
try {
|
|
134
|
-
n && !n.done && (e =
|
|
134
|
+
n && !n.done && (e = s.return) && e.call(s);
|
|
135
135
|
} finally {
|
|
136
136
|
if (o)
|
|
137
137
|
throw o.error;
|
|
@@ -139,24 +139,24 @@ function pt(s, t) {
|
|
|
139
139
|
}
|
|
140
140
|
return r;
|
|
141
141
|
}
|
|
142
|
-
function gt(
|
|
142
|
+
function gt(i, t, e) {
|
|
143
143
|
if (e || arguments.length === 2)
|
|
144
|
-
for (var
|
|
145
|
-
(r || !(
|
|
146
|
-
return
|
|
144
|
+
for (var s = 0, n = t.length, r; s < n; s++)
|
|
145
|
+
(r || !(s in t)) && (r || (r = Array.prototype.slice.call(t, 0, s)), r[s] = t[s]);
|
|
146
|
+
return i.concat(r || Array.prototype.slice.call(t));
|
|
147
147
|
}
|
|
148
|
-
function F(
|
|
149
|
-
return this instanceof F ? (this.v =
|
|
148
|
+
function F(i) {
|
|
149
|
+
return this instanceof F ? (this.v = i, this) : new F(i);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ki(i, t, e) {
|
|
152
152
|
if (!Symbol.asyncIterator)
|
|
153
153
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
154
|
-
var
|
|
154
|
+
var s = e.apply(i, t || []), n, r = [];
|
|
155
155
|
return n = {}, o("next"), o("throw"), o("return"), n[Symbol.asyncIterator] = function() {
|
|
156
156
|
return this;
|
|
157
157
|
}, n;
|
|
158
158
|
function o(d) {
|
|
159
|
-
|
|
159
|
+
s[d] && (n[d] = function(f) {
|
|
160
160
|
return new Promise(function($, g) {
|
|
161
161
|
r.push([d, f, $, g]) > 1 || a(d, f);
|
|
162
162
|
});
|
|
@@ -164,7 +164,7 @@ function Ks(s, t, e) {
|
|
|
164
164
|
}
|
|
165
165
|
function a(d, f) {
|
|
166
166
|
try {
|
|
167
|
-
l(
|
|
167
|
+
l(s[d](f));
|
|
168
168
|
} catch ($) {
|
|
169
169
|
h(r[0][3], $);
|
|
170
170
|
}
|
|
@@ -182,17 +182,17 @@ function Ks(s, t, e) {
|
|
|
182
182
|
d(f), r.shift(), r.length && a(r[0][0], r[0][1]);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Xi(i) {
|
|
186
186
|
if (!Symbol.asyncIterator)
|
|
187
187
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
188
|
-
var t =
|
|
189
|
-
return t ? t.call(
|
|
188
|
+
var t = i[Symbol.asyncIterator], e;
|
|
189
|
+
return t ? t.call(i) : (i = typeof q == "function" ? q(i) : i[Symbol.iterator](), e = {}, s("next"), s("throw"), s("return"), e[Symbol.asyncIterator] = function() {
|
|
190
190
|
return this;
|
|
191
191
|
}, e);
|
|
192
|
-
function
|
|
193
|
-
e[r] =
|
|
192
|
+
function s(r) {
|
|
193
|
+
e[r] = i[r] && function(o) {
|
|
194
194
|
return new Promise(function(a, l) {
|
|
195
|
-
o =
|
|
195
|
+
o = i[r](o), n(a, l, o.done, o.value);
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
198
|
}
|
|
@@ -202,36 +202,36 @@ function Xs(s) {
|
|
|
202
202
|
}, o);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
function v(
|
|
206
|
-
return typeof
|
|
205
|
+
function v(i) {
|
|
206
|
+
return typeof i == "function";
|
|
207
207
|
}
|
|
208
|
-
function Ke(
|
|
209
|
-
var t = function(
|
|
210
|
-
Error.call(
|
|
211
|
-
}, e =
|
|
208
|
+
function Ke(i) {
|
|
209
|
+
var t = function(s) {
|
|
210
|
+
Error.call(s), s.stack = new Error().stack;
|
|
211
|
+
}, e = i(t);
|
|
212
212
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
213
213
|
}
|
|
214
|
-
var
|
|
214
|
+
var It = Ke(function(i) {
|
|
215
215
|
return function(e) {
|
|
216
|
-
|
|
217
|
-
` + e.map(function(
|
|
218
|
-
return n + 1 + ") " +
|
|
216
|
+
i(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
217
|
+
` + e.map(function(s, n) {
|
|
218
|
+
return n + 1 + ") " + s.toString();
|
|
219
219
|
}).join(`
|
|
220
220
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
221
221
|
};
|
|
222
222
|
});
|
|
223
|
-
function zt(
|
|
224
|
-
if (
|
|
225
|
-
var e =
|
|
226
|
-
0 <= e &&
|
|
223
|
+
function zt(i, t) {
|
|
224
|
+
if (i) {
|
|
225
|
+
var e = i.indexOf(t);
|
|
226
|
+
0 <= e && i.splice(e, 1);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
var At = function() {
|
|
230
|
-
function
|
|
230
|
+
function i(t) {
|
|
231
231
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
232
232
|
}
|
|
233
|
-
return
|
|
234
|
-
var t, e,
|
|
233
|
+
return i.prototype.unsubscribe = function() {
|
|
234
|
+
var t, e, s, n, r;
|
|
235
235
|
if (!this.closed) {
|
|
236
236
|
this.closed = !0;
|
|
237
237
|
var o = this._parentage;
|
|
@@ -259,7 +259,7 @@ var At = function() {
|
|
|
259
259
|
try {
|
|
260
260
|
u();
|
|
261
261
|
} catch (g) {
|
|
262
|
-
r = g instanceof
|
|
262
|
+
r = g instanceof It ? g.errors : [g];
|
|
263
263
|
}
|
|
264
264
|
var h = this._finalizers;
|
|
265
265
|
if (h) {
|
|
@@ -270,58 +270,58 @@ var At = function() {
|
|
|
270
270
|
try {
|
|
271
271
|
he($);
|
|
272
272
|
} catch (g) {
|
|
273
|
-
r = r ?? [], g instanceof
|
|
273
|
+
r = r ?? [], g instanceof It ? r = gt(gt([], pt(r)), pt(g.errors)) : r.push(g);
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} catch (g) {
|
|
277
|
-
|
|
277
|
+
s = { error: g };
|
|
278
278
|
} finally {
|
|
279
279
|
try {
|
|
280
280
|
f && !f.done && (n = d.return) && n.call(d);
|
|
281
281
|
} finally {
|
|
282
|
-
if (
|
|
283
|
-
throw
|
|
282
|
+
if (s)
|
|
283
|
+
throw s.error;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
if (r)
|
|
288
|
-
throw new
|
|
288
|
+
throw new It(r);
|
|
289
289
|
}
|
|
290
|
-
},
|
|
290
|
+
}, i.prototype.add = function(t) {
|
|
291
291
|
var e;
|
|
292
292
|
if (t && t !== this)
|
|
293
293
|
if (this.closed)
|
|
294
294
|
he(t);
|
|
295
295
|
else {
|
|
296
|
-
if (t instanceof
|
|
296
|
+
if (t instanceof i) {
|
|
297
297
|
if (t.closed || t._hasParent(this))
|
|
298
298
|
return;
|
|
299
299
|
t._addParent(this);
|
|
300
300
|
}
|
|
301
301
|
(this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
|
|
302
302
|
}
|
|
303
|
-
},
|
|
303
|
+
}, i.prototype._hasParent = function(t) {
|
|
304
304
|
var e = this._parentage;
|
|
305
305
|
return e === t || Array.isArray(e) && e.includes(t);
|
|
306
|
-
},
|
|
306
|
+
}, i.prototype._addParent = function(t) {
|
|
307
307
|
var e = this._parentage;
|
|
308
308
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
309
|
-
},
|
|
309
|
+
}, i.prototype._removeParent = function(t) {
|
|
310
310
|
var e = this._parentage;
|
|
311
311
|
e === t ? this._parentage = null : Array.isArray(e) && zt(e, t);
|
|
312
|
-
},
|
|
312
|
+
}, i.prototype.remove = function(t) {
|
|
313
313
|
var e = this._finalizers;
|
|
314
|
-
e && zt(e, t), t instanceof
|
|
315
|
-
},
|
|
316
|
-
var t = new
|
|
314
|
+
e && zt(e, t), t instanceof i && t._removeParent(this);
|
|
315
|
+
}, i.EMPTY = function() {
|
|
316
|
+
var t = new i();
|
|
317
317
|
return t.closed = !0, t;
|
|
318
|
-
}(),
|
|
318
|
+
}(), i;
|
|
319
319
|
}(), Xe = At.EMPTY;
|
|
320
|
-
function Ze(
|
|
321
|
-
return
|
|
320
|
+
function Ze(i) {
|
|
321
|
+
return i instanceof At || i && "closed" in i && v(i.remove) && v(i.add) && v(i.unsubscribe);
|
|
322
322
|
}
|
|
323
|
-
function he(
|
|
324
|
-
v(
|
|
323
|
+
function he(i) {
|
|
324
|
+
v(i) ? i() : i.unsubscribe();
|
|
325
325
|
}
|
|
326
326
|
var Qe = {
|
|
327
327
|
onUnhandledError: null,
|
|
@@ -330,36 +330,36 @@ var Qe = {
|
|
|
330
330
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
331
331
|
useDeprecatedNextContext: !1
|
|
332
332
|
}, Ft = {
|
|
333
|
-
setTimeout: function(
|
|
334
|
-
for (var e = [],
|
|
335
|
-
e[
|
|
333
|
+
setTimeout: function(i, t) {
|
|
334
|
+
for (var e = [], s = 2; s < arguments.length; s++)
|
|
335
|
+
e[s - 2] = arguments[s];
|
|
336
336
|
var n = Ft.delegate;
|
|
337
|
-
return n != null && n.setTimeout ? n.setTimeout.apply(n, gt([
|
|
337
|
+
return n != null && n.setTimeout ? n.setTimeout.apply(n, gt([i, t], pt(e))) : setTimeout.apply(void 0, gt([i, t], pt(e)));
|
|
338
338
|
},
|
|
339
|
-
clearTimeout: function(
|
|
339
|
+
clearTimeout: function(i) {
|
|
340
340
|
var t = Ft.delegate;
|
|
341
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(
|
|
341
|
+
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(i);
|
|
342
342
|
},
|
|
343
343
|
delegate: void 0
|
|
344
344
|
};
|
|
345
|
-
function Je(
|
|
345
|
+
function Je(i) {
|
|
346
346
|
Ft.setTimeout(function() {
|
|
347
|
-
throw
|
|
347
|
+
throw i;
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
350
|
function de() {
|
|
351
351
|
}
|
|
352
|
-
function dt(
|
|
353
|
-
|
|
352
|
+
function dt(i) {
|
|
353
|
+
i();
|
|
354
354
|
}
|
|
355
|
-
var Kt = function(
|
|
356
|
-
K(t,
|
|
355
|
+
var Kt = function(i) {
|
|
356
|
+
K(t, i);
|
|
357
357
|
function t(e) {
|
|
358
|
-
var
|
|
359
|
-
return
|
|
358
|
+
var s = i.call(this) || this;
|
|
359
|
+
return s.isStopped = !1, e ? (s.destination = e, Ze(e) && e.add(s)) : s.destination = Vi, s;
|
|
360
360
|
}
|
|
361
|
-
return t.create = function(e,
|
|
362
|
-
return new Wt(e,
|
|
361
|
+
return t.create = function(e, s, n) {
|
|
362
|
+
return new Wt(e, s, n);
|
|
363
363
|
}, t.prototype.next = function(e) {
|
|
364
364
|
this.isStopped || this._next(e);
|
|
365
365
|
}, t.prototype.error = function(e) {
|
|
@@ -367,7 +367,7 @@ var Kt = function(s) {
|
|
|
367
367
|
}, t.prototype.complete = function() {
|
|
368
368
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
369
369
|
}, t.prototype.unsubscribe = function() {
|
|
370
|
-
this.closed || (this.isStopped = !0,
|
|
370
|
+
this.closed || (this.isStopped = !0, i.prototype.unsubscribe.call(this), this.destination = null);
|
|
371
371
|
}, t.prototype._next = function(e) {
|
|
372
372
|
this.destination.next(e);
|
|
373
373
|
}, t.prototype._error = function(e) {
|
|
@@ -383,33 +383,33 @@ var Kt = function(s) {
|
|
|
383
383
|
this.unsubscribe();
|
|
384
384
|
}
|
|
385
385
|
}, t;
|
|
386
|
-
}(At),
|
|
387
|
-
function
|
|
388
|
-
return
|
|
386
|
+
}(At), Zi = Function.prototype.bind;
|
|
387
|
+
function Lt(i, t) {
|
|
388
|
+
return Zi.call(i, t);
|
|
389
389
|
}
|
|
390
|
-
var
|
|
391
|
-
function
|
|
390
|
+
var Qi = function() {
|
|
391
|
+
function i(t) {
|
|
392
392
|
this.partialObserver = t;
|
|
393
393
|
}
|
|
394
|
-
return
|
|
394
|
+
return i.prototype.next = function(t) {
|
|
395
395
|
var e = this.partialObserver;
|
|
396
396
|
if (e.next)
|
|
397
397
|
try {
|
|
398
398
|
e.next(t);
|
|
399
|
-
} catch (
|
|
400
|
-
ut(
|
|
399
|
+
} catch (s) {
|
|
400
|
+
ut(s);
|
|
401
401
|
}
|
|
402
|
-
},
|
|
402
|
+
}, i.prototype.error = function(t) {
|
|
403
403
|
var e = this.partialObserver;
|
|
404
404
|
if (e.error)
|
|
405
405
|
try {
|
|
406
406
|
e.error(t);
|
|
407
|
-
} catch (
|
|
408
|
-
ut(
|
|
407
|
+
} catch (s) {
|
|
408
|
+
ut(s);
|
|
409
409
|
}
|
|
410
410
|
else
|
|
411
411
|
ut(t);
|
|
412
|
-
},
|
|
412
|
+
}, i.prototype.complete = function() {
|
|
413
413
|
var t = this.partialObserver;
|
|
414
414
|
if (t.complete)
|
|
415
415
|
try {
|
|
@@ -417,15 +417,15 @@ var Qs = function() {
|
|
|
417
417
|
} catch (e) {
|
|
418
418
|
ut(e);
|
|
419
419
|
}
|
|
420
|
-
},
|
|
421
|
-
}(), Wt = function(
|
|
422
|
-
K(t,
|
|
423
|
-
function t(e,
|
|
424
|
-
var r =
|
|
420
|
+
}, i;
|
|
421
|
+
}(), Wt = function(i) {
|
|
422
|
+
K(t, i);
|
|
423
|
+
function t(e, s, n) {
|
|
424
|
+
var r = i.call(this) || this, o;
|
|
425
425
|
if (v(e) || !e)
|
|
426
426
|
o = {
|
|
427
427
|
next: e ?? void 0,
|
|
428
|
-
error:
|
|
428
|
+
error: s ?? void 0,
|
|
429
429
|
complete: n ?? void 0
|
|
430
430
|
};
|
|
431
431
|
else {
|
|
@@ -433,60 +433,60 @@ var Qs = function() {
|
|
|
433
433
|
r && Qe.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
|
434
434
|
return r.unsubscribe();
|
|
435
435
|
}, o = {
|
|
436
|
-
next: e.next &&
|
|
437
|
-
error: e.error &&
|
|
438
|
-
complete: e.complete &&
|
|
436
|
+
next: e.next && Lt(e.next, a),
|
|
437
|
+
error: e.error && Lt(e.error, a),
|
|
438
|
+
complete: e.complete && Lt(e.complete, a)
|
|
439
439
|
}) : o = e;
|
|
440
440
|
}
|
|
441
|
-
return r.destination = new
|
|
441
|
+
return r.destination = new Qi(o), r;
|
|
442
442
|
}
|
|
443
443
|
return t;
|
|
444
444
|
}(Kt);
|
|
445
|
-
function ut(
|
|
446
|
-
Je(
|
|
445
|
+
function ut(i) {
|
|
446
|
+
Je(i);
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
throw
|
|
448
|
+
function Ji(i) {
|
|
449
|
+
throw i;
|
|
450
450
|
}
|
|
451
|
-
var
|
|
451
|
+
var Vi = {
|
|
452
452
|
closed: !0,
|
|
453
453
|
next: de,
|
|
454
|
-
error:
|
|
454
|
+
error: Ji,
|
|
455
455
|
complete: de
|
|
456
456
|
}, Xt = function() {
|
|
457
457
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
458
458
|
}();
|
|
459
|
-
function Ve(
|
|
460
|
-
return
|
|
459
|
+
function Ve(i) {
|
|
460
|
+
return i;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
return
|
|
464
|
-
return
|
|
465
|
-
return n(
|
|
462
|
+
function ts(i) {
|
|
463
|
+
return i.length === 0 ? Ve : i.length === 1 ? i[0] : function(e) {
|
|
464
|
+
return i.reduce(function(s, n) {
|
|
465
|
+
return n(s);
|
|
466
466
|
}, e);
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
469
|
var _ = function() {
|
|
470
|
-
function
|
|
470
|
+
function i(t) {
|
|
471
471
|
t && (this._subscribe = t);
|
|
472
472
|
}
|
|
473
|
-
return
|
|
474
|
-
var e = new
|
|
473
|
+
return i.prototype.lift = function(t) {
|
|
474
|
+
var e = new i();
|
|
475
475
|
return e.source = this, e.operator = t, e;
|
|
476
|
-
},
|
|
477
|
-
var n = this, r =
|
|
476
|
+
}, i.prototype.subscribe = function(t, e, s) {
|
|
477
|
+
var n = this, r = is(t) ? t : new Wt(t, e, s);
|
|
478
478
|
return dt(function() {
|
|
479
479
|
var o = n, a = o.operator, l = o.source;
|
|
480
480
|
r.add(a ? a.call(r, l) : l ? n._subscribe(r) : n._trySubscribe(r));
|
|
481
481
|
}), r;
|
|
482
|
-
},
|
|
482
|
+
}, i.prototype._trySubscribe = function(t) {
|
|
483
483
|
try {
|
|
484
484
|
return this._subscribe(t);
|
|
485
485
|
} catch (e) {
|
|
486
486
|
t.error(e);
|
|
487
487
|
}
|
|
488
|
-
},
|
|
489
|
-
var
|
|
488
|
+
}, i.prototype.forEach = function(t, e) {
|
|
489
|
+
var s = this;
|
|
490
490
|
return e = fe(e), new e(function(n, r) {
|
|
491
491
|
var o = new Wt({
|
|
492
492
|
next: function(a) {
|
|
@@ -499,73 +499,73 @@ var _ = function() {
|
|
|
499
499
|
error: r,
|
|
500
500
|
complete: n
|
|
501
501
|
});
|
|
502
|
-
|
|
502
|
+
s.subscribe(o);
|
|
503
503
|
});
|
|
504
|
-
},
|
|
504
|
+
}, i.prototype._subscribe = function(t) {
|
|
505
505
|
var e;
|
|
506
506
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
507
|
-
},
|
|
507
|
+
}, i.prototype[Xt] = function() {
|
|
508
508
|
return this;
|
|
509
|
-
},
|
|
509
|
+
}, i.prototype.pipe = function() {
|
|
510
510
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
511
511
|
t[e] = arguments[e];
|
|
512
|
-
return
|
|
513
|
-
},
|
|
512
|
+
return ts(t)(this);
|
|
513
|
+
}, i.prototype.toPromise = function(t) {
|
|
514
514
|
var e = this;
|
|
515
|
-
return t = fe(t), new t(function(
|
|
515
|
+
return t = fe(t), new t(function(s, n) {
|
|
516
516
|
var r;
|
|
517
517
|
e.subscribe(function(o) {
|
|
518
518
|
return r = o;
|
|
519
519
|
}, function(o) {
|
|
520
520
|
return n(o);
|
|
521
521
|
}, function() {
|
|
522
|
-
return
|
|
522
|
+
return s(r);
|
|
523
523
|
});
|
|
524
524
|
});
|
|
525
|
-
},
|
|
526
|
-
return new
|
|
527
|
-
},
|
|
525
|
+
}, i.create = function(t) {
|
|
526
|
+
return new i(t);
|
|
527
|
+
}, i;
|
|
528
528
|
}();
|
|
529
|
-
function fe(
|
|
529
|
+
function fe(i) {
|
|
530
530
|
var t;
|
|
531
|
-
return (t =
|
|
531
|
+
return (t = i ?? Qe.Promise) !== null && t !== void 0 ? t : Promise;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
534
|
-
return
|
|
533
|
+
function es(i) {
|
|
534
|
+
return i && v(i.next) && v(i.error) && v(i.complete);
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
return
|
|
536
|
+
function is(i) {
|
|
537
|
+
return i && i instanceof Kt || es(i) && Ze(i);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
return v(
|
|
539
|
+
function ss(i) {
|
|
540
|
+
return v(i == null ? void 0 : i.lift);
|
|
541
541
|
}
|
|
542
|
-
function Et(
|
|
542
|
+
function Et(i) {
|
|
543
543
|
return function(t) {
|
|
544
|
-
if (
|
|
544
|
+
if (ss(t))
|
|
545
545
|
return t.lift(function(e) {
|
|
546
546
|
try {
|
|
547
|
-
return
|
|
548
|
-
} catch (
|
|
549
|
-
this.error(
|
|
547
|
+
return i(e, this);
|
|
548
|
+
} catch (s) {
|
|
549
|
+
this.error(s);
|
|
550
550
|
}
|
|
551
551
|
});
|
|
552
552
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
|
-
function $t(
|
|
556
|
-
return new
|
|
555
|
+
function $t(i, t, e, s, n) {
|
|
556
|
+
return new ns(i, t, e, s, n);
|
|
557
557
|
}
|
|
558
|
-
var
|
|
559
|
-
K(t,
|
|
560
|
-
function t(e,
|
|
561
|
-
var l =
|
|
562
|
-
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next =
|
|
558
|
+
var ns = function(i) {
|
|
559
|
+
K(t, i);
|
|
560
|
+
function t(e, s, n, r, o, a) {
|
|
561
|
+
var l = i.call(this, e) || this;
|
|
562
|
+
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = s ? function(c) {
|
|
563
563
|
try {
|
|
564
|
-
|
|
564
|
+
s(c);
|
|
565
565
|
} catch (u) {
|
|
566
566
|
e.error(u);
|
|
567
567
|
}
|
|
568
|
-
} :
|
|
568
|
+
} : i.prototype._next, l._error = r ? function(c) {
|
|
569
569
|
try {
|
|
570
570
|
r(c);
|
|
571
571
|
} catch (u) {
|
|
@@ -573,7 +573,7 @@ var ni = function(s) {
|
|
|
573
573
|
} finally {
|
|
574
574
|
this.unsubscribe();
|
|
575
575
|
}
|
|
576
|
-
} :
|
|
576
|
+
} : i.prototype._error, l._complete = n ? function() {
|
|
577
577
|
try {
|
|
578
578
|
n();
|
|
579
579
|
} catch (c) {
|
|
@@ -581,39 +581,39 @@ var ni = function(s) {
|
|
|
581
581
|
} finally {
|
|
582
582
|
this.unsubscribe();
|
|
583
583
|
}
|
|
584
|
-
} :
|
|
584
|
+
} : i.prototype._complete, l;
|
|
585
585
|
}
|
|
586
586
|
return t.prototype.unsubscribe = function() {
|
|
587
587
|
var e;
|
|
588
588
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
589
|
-
var
|
|
590
|
-
|
|
589
|
+
var s = this.closed;
|
|
590
|
+
i.prototype.unsubscribe.call(this), !s && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
|
591
591
|
}
|
|
592
592
|
}, t;
|
|
593
|
-
}(Kt),
|
|
593
|
+
}(Kt), rs = Ke(function(i) {
|
|
594
594
|
return function() {
|
|
595
|
-
|
|
595
|
+
i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
596
596
|
};
|
|
597
|
-
}), Ct = function(
|
|
598
|
-
K(t,
|
|
597
|
+
}), Ct = function(i) {
|
|
598
|
+
K(t, i);
|
|
599
599
|
function t() {
|
|
600
|
-
var e =
|
|
600
|
+
var e = i.call(this) || this;
|
|
601
601
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
602
602
|
}
|
|
603
603
|
return t.prototype.lift = function(e) {
|
|
604
|
-
var
|
|
605
|
-
return
|
|
604
|
+
var s = new pe(this, this);
|
|
605
|
+
return s.operator = e, s;
|
|
606
606
|
}, t.prototype._throwIfClosed = function() {
|
|
607
607
|
if (this.closed)
|
|
608
|
-
throw new
|
|
608
|
+
throw new rs();
|
|
609
609
|
}, t.prototype.next = function(e) {
|
|
610
|
-
var
|
|
610
|
+
var s = this;
|
|
611
611
|
dt(function() {
|
|
612
612
|
var n, r;
|
|
613
|
-
if (
|
|
614
|
-
|
|
613
|
+
if (s._throwIfClosed(), !s.isStopped) {
|
|
614
|
+
s.currentObservers || (s.currentObservers = Array.from(s.observers));
|
|
615
615
|
try {
|
|
616
|
-
for (var o = q(
|
|
616
|
+
for (var o = q(s.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
617
617
|
var l = a.value;
|
|
618
618
|
l.next(e);
|
|
619
619
|
}
|
|
@@ -630,11 +630,11 @@ var ni = function(s) {
|
|
|
630
630
|
}
|
|
631
631
|
});
|
|
632
632
|
}, t.prototype.error = function(e) {
|
|
633
|
-
var
|
|
633
|
+
var s = this;
|
|
634
634
|
dt(function() {
|
|
635
|
-
if (
|
|
636
|
-
|
|
637
|
-
for (var n =
|
|
635
|
+
if (s._throwIfClosed(), !s.isStopped) {
|
|
636
|
+
s.hasError = s.isStopped = !0, s.thrownError = e;
|
|
637
|
+
for (var n = s.observers; n.length; )
|
|
638
638
|
n.shift().error(e);
|
|
639
639
|
}
|
|
640
640
|
});
|
|
@@ -643,8 +643,8 @@ var ni = function(s) {
|
|
|
643
643
|
dt(function() {
|
|
644
644
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
645
645
|
e.isStopped = !0;
|
|
646
|
-
for (var
|
|
647
|
-
|
|
646
|
+
for (var s = e.observers; s.length; )
|
|
647
|
+
s.shift().complete();
|
|
648
648
|
}
|
|
649
649
|
});
|
|
650
650
|
}, t.prototype.unsubscribe = function() {
|
|
@@ -657,47 +657,47 @@ var ni = function(s) {
|
|
|
657
657
|
enumerable: !1,
|
|
658
658
|
configurable: !0
|
|
659
659
|
}), t.prototype._trySubscribe = function(e) {
|
|
660
|
-
return this._throwIfClosed(),
|
|
660
|
+
return this._throwIfClosed(), i.prototype._trySubscribe.call(this, e);
|
|
661
661
|
}, t.prototype._subscribe = function(e) {
|
|
662
662
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
663
663
|
}, t.prototype._innerSubscribe = function(e) {
|
|
664
|
-
var
|
|
664
|
+
var s = this, n = this, r = n.hasError, o = n.isStopped, a = n.observers;
|
|
665
665
|
return r || o ? Xe : (this.currentObservers = null, a.push(e), new At(function() {
|
|
666
|
-
|
|
666
|
+
s.currentObservers = null, zt(a, e);
|
|
667
667
|
}));
|
|
668
668
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
669
|
-
var
|
|
669
|
+
var s = this, n = s.hasError, r = s.thrownError, o = s.isStopped;
|
|
670
670
|
n ? e.error(r) : o && e.complete();
|
|
671
671
|
}, t.prototype.asObservable = function() {
|
|
672
672
|
var e = new _();
|
|
673
673
|
return e.source = this, e;
|
|
674
|
-
}, t.create = function(e,
|
|
675
|
-
return new pe(e,
|
|
674
|
+
}, t.create = function(e, s) {
|
|
675
|
+
return new pe(e, s);
|
|
676
676
|
}, t;
|
|
677
|
-
}(_), pe = function(
|
|
678
|
-
K(t,
|
|
679
|
-
function t(e,
|
|
680
|
-
var n =
|
|
681
|
-
return n.destination = e, n.source =
|
|
677
|
+
}(_), pe = function(i) {
|
|
678
|
+
K(t, i);
|
|
679
|
+
function t(e, s) {
|
|
680
|
+
var n = i.call(this) || this;
|
|
681
|
+
return n.destination = e, n.source = s, n;
|
|
682
682
|
}
|
|
683
683
|
return t.prototype.next = function(e) {
|
|
684
|
-
var
|
|
685
|
-
(n = (
|
|
684
|
+
var s, n;
|
|
685
|
+
(n = (s = this.destination) === null || s === void 0 ? void 0 : s.next) === null || n === void 0 || n.call(s, e);
|
|
686
686
|
}, t.prototype.error = function(e) {
|
|
687
|
-
var
|
|
688
|
-
(n = (
|
|
687
|
+
var s, n;
|
|
688
|
+
(n = (s = this.destination) === null || s === void 0 ? void 0 : s.error) === null || n === void 0 || n.call(s, e);
|
|
689
689
|
}, t.prototype.complete = function() {
|
|
690
|
-
var e,
|
|
691
|
-
(
|
|
690
|
+
var e, s;
|
|
691
|
+
(s = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || s === void 0 || s.call(e);
|
|
692
692
|
}, t.prototype._subscribe = function(e) {
|
|
693
|
-
var
|
|
694
|
-
return (n = (
|
|
693
|
+
var s, n;
|
|
694
|
+
return (n = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(e)) !== null && n !== void 0 ? n : Xe;
|
|
695
695
|
}, t;
|
|
696
|
-
}(Ct),
|
|
697
|
-
K(t,
|
|
696
|
+
}(Ct), os = function(i) {
|
|
697
|
+
K(t, i);
|
|
698
698
|
function t(e) {
|
|
699
|
-
var
|
|
700
|
-
return
|
|
699
|
+
var s = i.call(this) || this;
|
|
700
|
+
return s._value = e, s;
|
|
701
701
|
}
|
|
702
702
|
return Object.defineProperty(t.prototype, "value", {
|
|
703
703
|
get: function() {
|
|
@@ -706,66 +706,66 @@ var ni = function(s) {
|
|
|
706
706
|
enumerable: !1,
|
|
707
707
|
configurable: !0
|
|
708
708
|
}), t.prototype._subscribe = function(e) {
|
|
709
|
-
var
|
|
710
|
-
return !
|
|
709
|
+
var s = i.prototype._subscribe.call(this, e);
|
|
710
|
+
return !s.closed && e.next(this._value), s;
|
|
711
711
|
}, t.prototype.getValue = function() {
|
|
712
|
-
var e = this,
|
|
713
|
-
if (
|
|
712
|
+
var e = this, s = e.hasError, n = e.thrownError, r = e._value;
|
|
713
|
+
if (s)
|
|
714
714
|
throw n;
|
|
715
715
|
return this._throwIfClosed(), r;
|
|
716
716
|
}, t.prototype.next = function(e) {
|
|
717
|
-
|
|
717
|
+
i.prototype.next.call(this, this._value = e);
|
|
718
718
|
}, t;
|
|
719
|
-
}(Ct),
|
|
720
|
-
return
|
|
719
|
+
}(Ct), as = new _(function(i) {
|
|
720
|
+
return i.complete();
|
|
721
721
|
});
|
|
722
|
-
function
|
|
723
|
-
return
|
|
722
|
+
function ls(i) {
|
|
723
|
+
return i && v(i.schedule);
|
|
724
724
|
}
|
|
725
|
-
function
|
|
726
|
-
return
|
|
725
|
+
function ti(i) {
|
|
726
|
+
return i[i.length - 1];
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
return
|
|
728
|
+
function cs(i) {
|
|
729
|
+
return ls(ti(i)) ? i.pop() : void 0;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
732
|
-
return typeof
|
|
731
|
+
function us(i, t) {
|
|
732
|
+
return typeof ti(i) == "number" ? i.pop() : t;
|
|
733
733
|
}
|
|
734
|
-
var
|
|
735
|
-
return
|
|
734
|
+
var ei = function(i) {
|
|
735
|
+
return i && typeof i.length == "number" && typeof i != "function";
|
|
736
736
|
};
|
|
737
|
-
function
|
|
738
|
-
return v(
|
|
737
|
+
function ii(i) {
|
|
738
|
+
return v(i == null ? void 0 : i.then);
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
return v(
|
|
740
|
+
function si(i) {
|
|
741
|
+
return v(i[Xt]);
|
|
742
742
|
}
|
|
743
|
-
function
|
|
744
|
-
return Symbol.asyncIterator && v(
|
|
743
|
+
function ni(i) {
|
|
744
|
+
return Symbol.asyncIterator && v(i == null ? void 0 : i[Symbol.asyncIterator]);
|
|
745
745
|
}
|
|
746
|
-
function
|
|
747
|
-
return new TypeError("You provided " + (
|
|
746
|
+
function ri(i) {
|
|
747
|
+
return new TypeError("You provided " + (i !== null && typeof i == "object" ? "an invalid object" : "'" + i + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function hs() {
|
|
750
750
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
751
751
|
}
|
|
752
|
-
var
|
|
753
|
-
function
|
|
754
|
-
return v(
|
|
752
|
+
var oi = hs();
|
|
753
|
+
function ai(i) {
|
|
754
|
+
return v(i == null ? void 0 : i[oi]);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
return
|
|
758
|
-
var e,
|
|
756
|
+
function li(i) {
|
|
757
|
+
return Ki(this, arguments, function() {
|
|
758
|
+
var e, s, n, r;
|
|
759
759
|
return Ge(this, function(o) {
|
|
760
760
|
switch (o.label) {
|
|
761
761
|
case 0:
|
|
762
|
-
e =
|
|
762
|
+
e = i.getReader(), o.label = 1;
|
|
763
763
|
case 1:
|
|
764
764
|
o.trys.push([1, , 9, 10]), o.label = 2;
|
|
765
765
|
case 2:
|
|
766
766
|
return [4, F(e.read())];
|
|
767
767
|
case 3:
|
|
768
|
-
return
|
|
768
|
+
return s = o.sent(), n = s.value, r = s.done, r ? [4, F(void 0)] : [3, 5];
|
|
769
769
|
case 4:
|
|
770
770
|
return [2, o.sent()];
|
|
771
771
|
case 5:
|
|
@@ -784,57 +784,57 @@ function ls(s) {
|
|
|
784
784
|
});
|
|
785
785
|
});
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
return v(
|
|
789
|
-
}
|
|
790
|
-
function X(
|
|
791
|
-
if (
|
|
792
|
-
return
|
|
793
|
-
if (
|
|
794
|
-
if (
|
|
795
|
-
return
|
|
796
|
-
if (
|
|
797
|
-
return
|
|
798
|
-
if (
|
|
799
|
-
return
|
|
800
|
-
if (
|
|
801
|
-
return
|
|
802
|
-
if (
|
|
803
|
-
return
|
|
804
|
-
if (
|
|
805
|
-
return $i
|
|
806
|
-
}
|
|
807
|
-
throw
|
|
808
|
-
}
|
|
809
|
-
function
|
|
787
|
+
function ci(i) {
|
|
788
|
+
return v(i == null ? void 0 : i.getReader);
|
|
789
|
+
}
|
|
790
|
+
function X(i) {
|
|
791
|
+
if (i instanceof _)
|
|
792
|
+
return i;
|
|
793
|
+
if (i != null) {
|
|
794
|
+
if (si(i))
|
|
795
|
+
return ds(i);
|
|
796
|
+
if (ei(i))
|
|
797
|
+
return fs(i);
|
|
798
|
+
if (ii(i))
|
|
799
|
+
return ps(i);
|
|
800
|
+
if (ni(i))
|
|
801
|
+
return ui(i);
|
|
802
|
+
if (ai(i))
|
|
803
|
+
return gs(i);
|
|
804
|
+
if (ci(i))
|
|
805
|
+
return $s(i);
|
|
806
|
+
}
|
|
807
|
+
throw ri(i);
|
|
808
|
+
}
|
|
809
|
+
function ds(i) {
|
|
810
810
|
return new _(function(t) {
|
|
811
|
-
var e =
|
|
811
|
+
var e = i[Xt]();
|
|
812
812
|
if (v(e.subscribe))
|
|
813
813
|
return e.subscribe(t);
|
|
814
814
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function fs(i) {
|
|
818
818
|
return new _(function(t) {
|
|
819
|
-
for (var e = 0; e <
|
|
820
|
-
t.next(
|
|
819
|
+
for (var e = 0; e < i.length && !t.closed; e++)
|
|
820
|
+
t.next(i[e]);
|
|
821
821
|
t.complete();
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function ps(i) {
|
|
825
825
|
return new _(function(t) {
|
|
826
|
-
|
|
826
|
+
i.then(function(e) {
|
|
827
827
|
t.closed || (t.next(e), t.complete());
|
|
828
828
|
}, function(e) {
|
|
829
829
|
return t.error(e);
|
|
830
830
|
}).then(null, Je);
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function gs(i) {
|
|
834
834
|
return new _(function(t) {
|
|
835
|
-
var e,
|
|
835
|
+
var e, s;
|
|
836
836
|
try {
|
|
837
|
-
for (var n = q(
|
|
837
|
+
for (var n = q(i), r = n.next(); !r.done; r = n.next()) {
|
|
838
838
|
var o = r.value;
|
|
839
839
|
if (t.next(o), t.closed)
|
|
840
840
|
return;
|
|
@@ -843,7 +843,7 @@ function gi(s) {
|
|
|
843
843
|
e = { error: a };
|
|
844
844
|
} finally {
|
|
845
845
|
try {
|
|
846
|
-
r && !r.done && (
|
|
846
|
+
r && !r.done && (s = n.return) && s.call(n);
|
|
847
847
|
} finally {
|
|
848
848
|
if (e)
|
|
849
849
|
throw e.error;
|
|
@@ -852,30 +852,30 @@ function gi(s) {
|
|
|
852
852
|
t.complete();
|
|
853
853
|
});
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function ui(i) {
|
|
856
856
|
return new _(function(t) {
|
|
857
|
-
|
|
857
|
+
vs(i, t).catch(function(e) {
|
|
858
858
|
return t.error(e);
|
|
859
859
|
});
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
|
-
function $i
|
|
863
|
-
return
|
|
862
|
+
function $s(i) {
|
|
863
|
+
return ui(li(i));
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
var e,
|
|
867
|
-
return
|
|
865
|
+
function vs(i, t) {
|
|
866
|
+
var e, s, n, r;
|
|
867
|
+
return Gi(this, void 0, void 0, function() {
|
|
868
868
|
var o, a;
|
|
869
869
|
return Ge(this, function(l) {
|
|
870
870
|
switch (l.label) {
|
|
871
871
|
case 0:
|
|
872
|
-
l.trys.push([0, 5, 6, 11]), e =
|
|
872
|
+
l.trys.push([0, 5, 6, 11]), e = Xi(i), l.label = 1;
|
|
873
873
|
case 1:
|
|
874
874
|
return [4, e.next()];
|
|
875
875
|
case 2:
|
|
876
|
-
if (
|
|
876
|
+
if (s = l.sent(), !!s.done)
|
|
877
877
|
return [3, 4];
|
|
878
|
-
if (o =
|
|
878
|
+
if (o = s.value, t.next(o), t.closed)
|
|
879
879
|
return [2];
|
|
880
880
|
l.label = 3;
|
|
881
881
|
case 3:
|
|
@@ -885,7 +885,7 @@ function vi(s, t) {
|
|
|
885
885
|
case 5:
|
|
886
886
|
return a = l.sent(), n = { error: a }, [3, 11];
|
|
887
887
|
case 6:
|
|
888
|
-
return l.trys.push([6, , 9, 10]),
|
|
888
|
+
return l.trys.push([6, , 9, 10]), s && !s.done && (r = e.return) ? [4, r.call(e)] : [3, 8];
|
|
889
889
|
case 7:
|
|
890
890
|
l.sent(), l.label = 8;
|
|
891
891
|
case 8:
|
|
@@ -902,60 +902,60 @@ function vi(s, t) {
|
|
|
902
902
|
});
|
|
903
903
|
});
|
|
904
904
|
}
|
|
905
|
-
function k(
|
|
906
|
-
|
|
905
|
+
function k(i, t, e, s, n) {
|
|
906
|
+
s === void 0 && (s = 0), n === void 0 && (n = !1);
|
|
907
907
|
var r = t.schedule(function() {
|
|
908
|
-
e(), n ?
|
|
909
|
-
},
|
|
910
|
-
if (
|
|
908
|
+
e(), n ? i.add(this.schedule(null, s)) : this.unsubscribe();
|
|
909
|
+
}, s);
|
|
910
|
+
if (i.add(r), !n)
|
|
911
911
|
return r;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
914
|
-
return t === void 0 && (t = 0), Et(function(e,
|
|
915
|
-
e.subscribe($t(
|
|
916
|
-
return k(
|
|
917
|
-
return
|
|
913
|
+
function hi(i, t) {
|
|
914
|
+
return t === void 0 && (t = 0), Et(function(e, s) {
|
|
915
|
+
e.subscribe($t(s, function(n) {
|
|
916
|
+
return k(s, i, function() {
|
|
917
|
+
return s.next(n);
|
|
918
918
|
}, t);
|
|
919
919
|
}, function() {
|
|
920
|
-
return k(
|
|
921
|
-
return
|
|
920
|
+
return k(s, i, function() {
|
|
921
|
+
return s.complete();
|
|
922
922
|
}, t);
|
|
923
923
|
}, function(n) {
|
|
924
|
-
return k(
|
|
925
|
-
return
|
|
924
|
+
return k(s, i, function() {
|
|
925
|
+
return s.error(n);
|
|
926
926
|
}, t);
|
|
927
927
|
}));
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
|
-
function
|
|
931
|
-
return t === void 0 && (t = 0), Et(function(e,
|
|
932
|
-
|
|
933
|
-
return e.subscribe(
|
|
930
|
+
function di(i, t) {
|
|
931
|
+
return t === void 0 && (t = 0), Et(function(e, s) {
|
|
932
|
+
s.add(i.schedule(function() {
|
|
933
|
+
return e.subscribe(s);
|
|
934
934
|
}, t));
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
|
-
function
|
|
938
|
-
return X(
|
|
937
|
+
function ms(i, t) {
|
|
938
|
+
return X(i).pipe(di(t), hi(t));
|
|
939
939
|
}
|
|
940
|
-
function
|
|
941
|
-
return X(
|
|
940
|
+
function ys(i, t) {
|
|
941
|
+
return X(i).pipe(di(t), hi(t));
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function bs(i, t) {
|
|
944
944
|
return new _(function(e) {
|
|
945
|
-
var
|
|
945
|
+
var s = 0;
|
|
946
946
|
return t.schedule(function() {
|
|
947
|
-
|
|
947
|
+
s === i.length ? e.complete() : (e.next(i[s++]), e.closed || this.schedule());
|
|
948
948
|
});
|
|
949
949
|
});
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function _s(i, t) {
|
|
952
952
|
return new _(function(e) {
|
|
953
|
-
var
|
|
953
|
+
var s;
|
|
954
954
|
return k(e, t, function() {
|
|
955
|
-
|
|
955
|
+
s = i[oi](), k(e, t, function() {
|
|
956
956
|
var n, r, o;
|
|
957
957
|
try {
|
|
958
|
-
n =
|
|
958
|
+
n = s.next(), r = n.value, o = n.done;
|
|
959
959
|
} catch (a) {
|
|
960
960
|
e.error(a);
|
|
961
961
|
return;
|
|
@@ -963,60 +963,60 @@ function _i(s, t) {
|
|
|
963
963
|
o ? e.complete() : e.next(r);
|
|
964
964
|
}, 0, !0);
|
|
965
965
|
}), function() {
|
|
966
|
-
return v(
|
|
966
|
+
return v(s == null ? void 0 : s.return) && s.return();
|
|
967
967
|
};
|
|
968
968
|
});
|
|
969
969
|
}
|
|
970
|
-
function
|
|
971
|
-
if (!
|
|
970
|
+
function fi(i, t) {
|
|
971
|
+
if (!i)
|
|
972
972
|
throw new Error("Iterable cannot be null");
|
|
973
973
|
return new _(function(e) {
|
|
974
974
|
k(e, t, function() {
|
|
975
|
-
var
|
|
975
|
+
var s = i[Symbol.asyncIterator]();
|
|
976
976
|
k(e, t, function() {
|
|
977
|
-
|
|
977
|
+
s.next().then(function(n) {
|
|
978
978
|
n.done ? e.complete() : e.next(n.value);
|
|
979
979
|
});
|
|
980
980
|
}, 0, !0);
|
|
981
981
|
});
|
|
982
982
|
});
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
return
|
|
986
|
-
}
|
|
987
|
-
function
|
|
988
|
-
if (
|
|
989
|
-
if (
|
|
990
|
-
return
|
|
991
|
-
if (
|
|
992
|
-
return
|
|
993
|
-
if (
|
|
994
|
-
return
|
|
995
|
-
if (
|
|
996
|
-
return
|
|
997
|
-
if (
|
|
998
|
-
return
|
|
999
|
-
if (
|
|
1000
|
-
return
|
|
1001
|
-
}
|
|
1002
|
-
throw
|
|
1003
|
-
}
|
|
1004
|
-
function
|
|
1005
|
-
return t ?
|
|
1006
|
-
}
|
|
1007
|
-
function
|
|
1008
|
-
return Et(function(e,
|
|
984
|
+
function ws(i, t) {
|
|
985
|
+
return fi(li(i), t);
|
|
986
|
+
}
|
|
987
|
+
function xs(i, t) {
|
|
988
|
+
if (i != null) {
|
|
989
|
+
if (si(i))
|
|
990
|
+
return ms(i, t);
|
|
991
|
+
if (ei(i))
|
|
992
|
+
return bs(i, t);
|
|
993
|
+
if (ii(i))
|
|
994
|
+
return ys(i, t);
|
|
995
|
+
if (ni(i))
|
|
996
|
+
return fi(i, t);
|
|
997
|
+
if (ai(i))
|
|
998
|
+
return _s(i, t);
|
|
999
|
+
if (ci(i))
|
|
1000
|
+
return ws(i, t);
|
|
1001
|
+
}
|
|
1002
|
+
throw ri(i);
|
|
1003
|
+
}
|
|
1004
|
+
function Ss(i, t) {
|
|
1005
|
+
return t ? xs(i, t) : X(i);
|
|
1006
|
+
}
|
|
1007
|
+
function As(i, t) {
|
|
1008
|
+
return Et(function(e, s) {
|
|
1009
1009
|
var n = 0;
|
|
1010
|
-
e.subscribe($t(
|
|
1011
|
-
|
|
1010
|
+
e.subscribe($t(s, function(r) {
|
|
1011
|
+
s.next(i.call(t, r, n++));
|
|
1012
1012
|
}));
|
|
1013
1013
|
});
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function Es(i, t, e, s, n, r, o, a) {
|
|
1016
1016
|
var l = [], c = 0, u = 0, h = !1, d = function() {
|
|
1017
1017
|
h && !l.length && !c && t.complete();
|
|
1018
1018
|
}, f = function(g) {
|
|
1019
|
-
return c <
|
|
1019
|
+
return c < s ? $(g) : l.push(g);
|
|
1020
1020
|
}, $ = function(g) {
|
|
1021
1021
|
r && t.next(g), c++;
|
|
1022
1022
|
var ue = !1;
|
|
@@ -1033,7 +1033,7 @@ function Ei(s, t, e, i, n, r, o, a) {
|
|
|
1033
1033
|
o ? k(t, o, function() {
|
|
1034
1034
|
return $(ct);
|
|
1035
1035
|
}) : $(ct);
|
|
1036
|
-
}; l.length && c <
|
|
1036
|
+
}; l.length && c < s; )
|
|
1037
1037
|
Z();
|
|
1038
1038
|
d();
|
|
1039
1039
|
} catch (ct) {
|
|
@@ -1041,29 +1041,29 @@ function Ei(s, t, e, i, n, r, o, a) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
}));
|
|
1043
1043
|
};
|
|
1044
|
-
return
|
|
1044
|
+
return i.subscribe($t(t, f, function() {
|
|
1045
1045
|
h = !0, d();
|
|
1046
1046
|
})), function() {
|
|
1047
1047
|
a == null || a();
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1051
|
-
return e === void 0 && (e = 1 / 0), v(t) ?
|
|
1052
|
-
return
|
|
1053
|
-
return t(
|
|
1054
|
-
})(X(s
|
|
1055
|
-
}, e) : (typeof t == "number" && (e = t), Et(function(
|
|
1056
|
-
return
|
|
1050
|
+
function pi(i, t, e) {
|
|
1051
|
+
return e === void 0 && (e = 1 / 0), v(t) ? pi(function(s, n) {
|
|
1052
|
+
return As(function(r, o) {
|
|
1053
|
+
return t(s, r, n, o);
|
|
1054
|
+
})(X(i(s, n)));
|
|
1055
|
+
}, e) : (typeof t == "number" && (e = t), Et(function(s, n) {
|
|
1056
|
+
return Es(s, n, i, e);
|
|
1057
1057
|
}));
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return
|
|
1059
|
+
function Cs(i) {
|
|
1060
|
+
return i === void 0 && (i = 1 / 0), pi(Ve, i);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1063
|
-
for (var
|
|
1064
|
-
|
|
1065
|
-
var e =
|
|
1066
|
-
return n.length ? n.length === 1 ? X(n[0]) :
|
|
1062
|
+
function ks() {
|
|
1063
|
+
for (var i = [], t = 0; t < arguments.length; t++)
|
|
1064
|
+
i[t] = arguments[t];
|
|
1065
|
+
var e = cs(i), s = us(i, 1 / 0), n = i;
|
|
1066
|
+
return n.length ? n.length === 1 ? X(n[0]) : Cs(s)(Ss(n, e)) : as;
|
|
1067
1067
|
}
|
|
1068
1068
|
/**
|
|
1069
1069
|
* @license
|
|
@@ -1071,9 +1071,9 @@ function ki() {
|
|
|
1071
1071
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1072
1072
|
*/
|
|
1073
1073
|
const ft = globalThis, Zt = ft.ShadowRoot && (ft.ShadyCSS === void 0 || ft.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Qt = Symbol(), ge = /* @__PURE__ */ new WeakMap();
|
|
1074
|
-
let
|
|
1075
|
-
constructor(t, e,
|
|
1076
|
-
if (this._$cssResult$ = !0,
|
|
1074
|
+
let gi = class {
|
|
1075
|
+
constructor(t, e, s) {
|
|
1076
|
+
if (this._$cssResult$ = !0, s !== Qt)
|
|
1077
1077
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1078
1078
|
this.cssText = t, this.t = e;
|
|
1079
1079
|
}
|
|
@@ -1081,8 +1081,8 @@ let gs = class {
|
|
|
1081
1081
|
let t = this.o;
|
|
1082
1082
|
const e = this.t;
|
|
1083
1083
|
if (Zt && t === void 0) {
|
|
1084
|
-
const
|
|
1085
|
-
|
|
1084
|
+
const s = e !== void 0 && e.length === 1;
|
|
1085
|
+
s && (t = ge.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ge.set(e, t));
|
|
1086
1086
|
}
|
|
1087
1087
|
return t;
|
|
1088
1088
|
}
|
|
@@ -1090,63 +1090,63 @@ let gs = class {
|
|
|
1090
1090
|
return this.cssText;
|
|
1091
1091
|
}
|
|
1092
1092
|
};
|
|
1093
|
-
const
|
|
1094
|
-
const e =
|
|
1093
|
+
const Os = (i) => new gi(typeof i == "string" ? i : i + "", void 0, Qt), M = (i, ...t) => {
|
|
1094
|
+
const e = i.length === 1 ? i[0] : t.reduce((s, n, r) => s + ((o) => {
|
|
1095
1095
|
if (o._$cssResult$ === !0)
|
|
1096
1096
|
return o.cssText;
|
|
1097
1097
|
if (typeof o == "number")
|
|
1098
1098
|
return o;
|
|
1099
1099
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
1100
|
-
})(n) +
|
|
1101
|
-
return new
|
|
1102
|
-
},
|
|
1100
|
+
})(n) + i[r + 1], i[0]);
|
|
1101
|
+
return new gi(e, i, Qt);
|
|
1102
|
+
}, Ts = (i, t) => {
|
|
1103
1103
|
if (Zt)
|
|
1104
|
-
|
|
1104
|
+
i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1105
1105
|
else
|
|
1106
1106
|
for (const e of t) {
|
|
1107
|
-
const
|
|
1108
|
-
n !== void 0 &&
|
|
1107
|
+
const s = document.createElement("style"), n = ft.litNonce;
|
|
1108
|
+
n !== void 0 && s.setAttribute("nonce", n), s.textContent = e.cssText, i.appendChild(s);
|
|
1109
1109
|
}
|
|
1110
|
-
}, $e = Zt ? (
|
|
1110
|
+
}, $e = Zt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
1111
1111
|
let e = "";
|
|
1112
|
-
for (const
|
|
1113
|
-
e +=
|
|
1114
|
-
return
|
|
1115
|
-
})(
|
|
1112
|
+
for (const s of t.cssRules)
|
|
1113
|
+
e += s.cssText;
|
|
1114
|
+
return Os(e);
|
|
1115
|
+
})(i) : i;
|
|
1116
1116
|
/**
|
|
1117
1117
|
* @license
|
|
1118
1118
|
* Copyright 2017 Google LLC
|
|
1119
1119
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1120
1120
|
*/
|
|
1121
|
-
const { is:
|
|
1121
|
+
const { is: Ps, defineProperty: Is, getOwnPropertyDescriptor: Ls, getOwnPropertyNames: Rs, getOwnPropertySymbols: Us, getPrototypeOf: js } = Object, O = globalThis, ve = O.trustedTypes, Ms = ve ? ve.emptyScript : "", Rt = O.reactiveElementPolyfillSupport, J = (i, t) => i, vt = { toAttribute(i, t) {
|
|
1122
1122
|
switch (t) {
|
|
1123
1123
|
case Boolean:
|
|
1124
|
-
|
|
1124
|
+
i = i ? Ms : null;
|
|
1125
1125
|
break;
|
|
1126
1126
|
case Object:
|
|
1127
1127
|
case Array:
|
|
1128
|
-
|
|
1128
|
+
i = i == null ? i : JSON.stringify(i);
|
|
1129
1129
|
}
|
|
1130
|
-
return
|
|
1131
|
-
}, fromAttribute(
|
|
1132
|
-
let e =
|
|
1130
|
+
return i;
|
|
1131
|
+
}, fromAttribute(i, t) {
|
|
1132
|
+
let e = i;
|
|
1133
1133
|
switch (t) {
|
|
1134
1134
|
case Boolean:
|
|
1135
|
-
e =
|
|
1135
|
+
e = i !== null;
|
|
1136
1136
|
break;
|
|
1137
1137
|
case Number:
|
|
1138
|
-
e =
|
|
1138
|
+
e = i === null ? null : Number(i);
|
|
1139
1139
|
break;
|
|
1140
1140
|
case Object:
|
|
1141
1141
|
case Array:
|
|
1142
1142
|
try {
|
|
1143
|
-
e = JSON.parse(
|
|
1143
|
+
e = JSON.parse(i);
|
|
1144
1144
|
} catch {
|
|
1145
1145
|
e = null;
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
1148
|
return e;
|
|
1149
|
-
} }, Jt = (
|
|
1149
|
+
} }, Jt = (i, t) => !Ps(i, t), me = { attribute: !0, type: String, converter: vt, reflect: !1, hasChanged: Jt };
|
|
1150
1150
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), O.litPropertyMetadata ?? (O.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1151
1151
|
let D = class extends HTMLElement {
|
|
1152
1152
|
static addInitializer(t) {
|
|
@@ -1157,12 +1157,12 @@ let D = class extends HTMLElement {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
static createProperty(t, e = me) {
|
|
1159
1159
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
1160
|
-
const
|
|
1161
|
-
n !== void 0 &&
|
|
1160
|
+
const s = Symbol(), n = this.getPropertyDescriptor(t, s, e);
|
|
1161
|
+
n !== void 0 && Is(this.prototype, t, n);
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
|
-
static getPropertyDescriptor(t, e,
|
|
1165
|
-
const { get: n, set: r } =
|
|
1164
|
+
static getPropertyDescriptor(t, e, s) {
|
|
1165
|
+
const { get: n, set: r } = Ls(this.prototype, t) ?? { get() {
|
|
1166
1166
|
return this[e];
|
|
1167
1167
|
}, set(o) {
|
|
1168
1168
|
this[e] = o;
|
|
@@ -1171,7 +1171,7 @@ let D = class extends HTMLElement {
|
|
|
1171
1171
|
return n == null ? void 0 : n.call(this);
|
|
1172
1172
|
}, set(o) {
|
|
1173
1173
|
const a = n == null ? void 0 : n.call(this);
|
|
1174
|
-
r.call(this, o), this.requestUpdate(t, a,
|
|
1174
|
+
r.call(this, o), this.requestUpdate(t, a, s);
|
|
1175
1175
|
}, configurable: !0, enumerable: !0 };
|
|
1176
1176
|
}
|
|
1177
1177
|
static getPropertyOptions(t) {
|
|
@@ -1180,27 +1180,27 @@ let D = class extends HTMLElement {
|
|
|
1180
1180
|
static _$Ei() {
|
|
1181
1181
|
if (this.hasOwnProperty(J("elementProperties")))
|
|
1182
1182
|
return;
|
|
1183
|
-
const t =
|
|
1183
|
+
const t = js(this);
|
|
1184
1184
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
1185
1185
|
}
|
|
1186
1186
|
static finalize() {
|
|
1187
1187
|
if (this.hasOwnProperty(J("finalized")))
|
|
1188
1188
|
return;
|
|
1189
1189
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(J("properties"))) {
|
|
1190
|
-
const e = this.properties,
|
|
1191
|
-
for (const n of
|
|
1190
|
+
const e = this.properties, s = [...Rs(e), ...Us(e)];
|
|
1191
|
+
for (const n of s)
|
|
1192
1192
|
this.createProperty(n, e[n]);
|
|
1193
1193
|
}
|
|
1194
1194
|
const t = this[Symbol.metadata];
|
|
1195
1195
|
if (t !== null) {
|
|
1196
1196
|
const e = litPropertyMetadata.get(t);
|
|
1197
1197
|
if (e !== void 0)
|
|
1198
|
-
for (const [
|
|
1199
|
-
this.elementProperties.set(
|
|
1198
|
+
for (const [s, n] of e)
|
|
1199
|
+
this.elementProperties.set(s, n);
|
|
1200
1200
|
}
|
|
1201
1201
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
1202
|
-
for (const [e,
|
|
1203
|
-
const n = this._$Eu(e,
|
|
1202
|
+
for (const [e, s] of this.elementProperties) {
|
|
1203
|
+
const n = this._$Eu(e, s);
|
|
1204
1204
|
n !== void 0 && this._$Eh.set(n, e);
|
|
1205
1205
|
}
|
|
1206
1206
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
@@ -1208,16 +1208,16 @@ let D = class extends HTMLElement {
|
|
|
1208
1208
|
static finalizeStyles(t) {
|
|
1209
1209
|
const e = [];
|
|
1210
1210
|
if (Array.isArray(t)) {
|
|
1211
|
-
const
|
|
1212
|
-
for (const n of
|
|
1211
|
+
const s = new Set(t.flat(1 / 0).reverse());
|
|
1212
|
+
for (const n of s)
|
|
1213
1213
|
e.unshift($e(n));
|
|
1214
1214
|
} else
|
|
1215
1215
|
t !== void 0 && e.push($e(t));
|
|
1216
1216
|
return e;
|
|
1217
1217
|
}
|
|
1218
1218
|
static _$Eu(t, e) {
|
|
1219
|
-
const
|
|
1220
|
-
return
|
|
1219
|
+
const s = e.attribute;
|
|
1220
|
+
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
1221
1221
|
}
|
|
1222
1222
|
constructor() {
|
|
1223
1223
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
@@ -1236,19 +1236,19 @@ let D = class extends HTMLElement {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
_$E_() {
|
|
1238
1238
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
1239
|
-
for (const
|
|
1240
|
-
this.hasOwnProperty(
|
|
1239
|
+
for (const s of e.keys())
|
|
1240
|
+
this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
1241
1241
|
t.size > 0 && (this._$Ep = t);
|
|
1242
1242
|
}
|
|
1243
1243
|
createRenderRoot() {
|
|
1244
1244
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1245
|
-
return
|
|
1245
|
+
return Ts(t, this.constructor.elementStyles), t;
|
|
1246
1246
|
}
|
|
1247
1247
|
connectedCallback() {
|
|
1248
1248
|
var t;
|
|
1249
1249
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
1250
|
-
var
|
|
1251
|
-
return (
|
|
1250
|
+
var s;
|
|
1251
|
+
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
|
1252
1252
|
});
|
|
1253
1253
|
}
|
|
1254
1254
|
enableUpdating(t) {
|
|
@@ -1256,39 +1256,39 @@ let D = class extends HTMLElement {
|
|
|
1256
1256
|
disconnectedCallback() {
|
|
1257
1257
|
var t;
|
|
1258
1258
|
(t = this._$EO) == null || t.forEach((e) => {
|
|
1259
|
-
var
|
|
1260
|
-
return (
|
|
1259
|
+
var s;
|
|
1260
|
+
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
|
1261
1261
|
});
|
|
1262
1262
|
}
|
|
1263
|
-
attributeChangedCallback(t, e,
|
|
1264
|
-
this._$AK(t,
|
|
1263
|
+
attributeChangedCallback(t, e, s) {
|
|
1264
|
+
this._$AK(t, s);
|
|
1265
1265
|
}
|
|
1266
1266
|
_$EC(t, e) {
|
|
1267
1267
|
var r;
|
|
1268
|
-
const
|
|
1269
|
-
if (n !== void 0 &&
|
|
1270
|
-
const o = (((r =
|
|
1268
|
+
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
1269
|
+
if (n !== void 0 && s.reflect === !0) {
|
|
1270
|
+
const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : vt).toAttribute(e, s.type);
|
|
1271
1271
|
this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
_$AK(t, e) {
|
|
1275
1275
|
var r;
|
|
1276
|
-
const
|
|
1276
|
+
const s = this.constructor, n = s._$Eh.get(t);
|
|
1277
1277
|
if (n !== void 0 && this._$Em !== n) {
|
|
1278
|
-
const o =
|
|
1278
|
+
const o = s.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : vt;
|
|
1279
1279
|
this._$Em = n, this[n] = a.fromAttribute(e, o.type), this._$Em = null;
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
|
-
requestUpdate(t, e,
|
|
1282
|
+
requestUpdate(t, e, s) {
|
|
1283
1283
|
if (t !== void 0) {
|
|
1284
|
-
if (
|
|
1284
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? Jt)(this[t], e))
|
|
1285
1285
|
return;
|
|
1286
|
-
this.P(t, e,
|
|
1286
|
+
this.P(t, e, s);
|
|
1287
1287
|
}
|
|
1288
1288
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
1289
1289
|
}
|
|
1290
|
-
P(t, e,
|
|
1291
|
-
this._$AL.has(t) || this._$AL.set(t, e),
|
|
1290
|
+
P(t, e, s) {
|
|
1291
|
+
this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
|
1292
1292
|
}
|
|
1293
1293
|
async _$ET() {
|
|
1294
1294
|
this.isUpdatePending = !0;
|
|
@@ -1304,7 +1304,7 @@ let D = class extends HTMLElement {
|
|
|
1304
1304
|
return this.performUpdate();
|
|
1305
1305
|
}
|
|
1306
1306
|
performUpdate() {
|
|
1307
|
-
var
|
|
1307
|
+
var s;
|
|
1308
1308
|
if (!this.isUpdatePending)
|
|
1309
1309
|
return;
|
|
1310
1310
|
if (!this.hasUpdated) {
|
|
@@ -1321,7 +1321,7 @@ let D = class extends HTMLElement {
|
|
|
1321
1321
|
let t = !1;
|
|
1322
1322
|
const e = this._$AL;
|
|
1323
1323
|
try {
|
|
1324
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (
|
|
1324
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((n) => {
|
|
1325
1325
|
var r;
|
|
1326
1326
|
return (r = n.hostUpdate) == null ? void 0 : r.call(n);
|
|
1327
1327
|
}), this.update(e)) : this._$EU();
|
|
@@ -1334,9 +1334,9 @@ let D = class extends HTMLElement {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
_$AE(t) {
|
|
1336
1336
|
var e;
|
|
1337
|
-
(e = this._$EO) == null || e.forEach((
|
|
1337
|
+
(e = this._$EO) == null || e.forEach((s) => {
|
|
1338
1338
|
var n;
|
|
1339
|
-
return (n =
|
|
1339
|
+
return (n = s.hostUpdated) == null ? void 0 : n.call(s);
|
|
1340
1340
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
1341
1341
|
}
|
|
1342
1342
|
_$EU() {
|
|
@@ -1365,57 +1365,57 @@ D.elementStyles = [], D.shadowRootOptions = { mode: "open" }, D[J("elementProper
|
|
|
1365
1365
|
* Copyright 2017 Google LLC
|
|
1366
1366
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1367
1367
|
*/
|
|
1368
|
-
const V = globalThis, mt = V.trustedTypes, ye = mt ? mt.createPolicy("lit-html", { createHTML: (
|
|
1368
|
+
const V = globalThis, mt = V.trustedTypes, ye = mt ? mt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, $i = "$lit$", C = `lit$${(Math.random() + "").slice(9)}$`, vi = "?" + C, Ns = `<${vi}>`, R = document, et = () => R.createComment(""), it = (i) => i === null || typeof i != "object" && typeof i != "function", mi = Array.isArray, Ds = (i) => mi(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Ut = `[
|
|
1369
1369
|
\f\r]`, Q = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, be = /-->/g, _e = />/g, P = RegExp(`>|${Ut}(?:([^\\s"'>=/]+)(${Ut}*=${Ut}*(?:[^
|
|
1370
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), we = /'/g, xe = /"/g,
|
|
1371
|
-
function
|
|
1372
|
-
if (!Array.isArray(
|
|
1370
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), we = /'/g, xe = /"/g, yi = /^(?:script|style|textarea|title)$/i, Hs = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), E = Hs(1), U = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Se = /* @__PURE__ */ new WeakMap(), L = R.createTreeWalker(R, 129);
|
|
1371
|
+
function bi(i, t) {
|
|
1372
|
+
if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
|
|
1373
1373
|
throw Error("invalid template strings array");
|
|
1374
1374
|
return ye !== void 0 ? ye.createHTML(t) : t;
|
|
1375
1375
|
}
|
|
1376
|
-
const
|
|
1377
|
-
const e =
|
|
1376
|
+
const Bs = (i, t) => {
|
|
1377
|
+
const e = i.length - 1, s = [];
|
|
1378
1378
|
let n, r = t === 2 ? "<svg>" : "", o = Q;
|
|
1379
1379
|
for (let a = 0; a < e; a++) {
|
|
1380
|
-
const l =
|
|
1380
|
+
const l = i[a];
|
|
1381
1381
|
let c, u, h = -1, d = 0;
|
|
1382
1382
|
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); )
|
|
1383
|
-
d = o.lastIndex, o === Q ? u[1] === "!--" ? o = be : u[1] !== void 0 ? o = _e : u[2] !== void 0 ? (
|
|
1384
|
-
const f = o === P &&
|
|
1385
|
-
r += o === Q ? l +
|
|
1383
|
+
d = o.lastIndex, o === Q ? u[1] === "!--" ? o = be : u[1] !== void 0 ? o = _e : u[2] !== void 0 ? (yi.test(u[2]) && (n = RegExp("</" + u[2], "g")), o = P) : u[3] !== void 0 && (o = P) : o === P ? u[0] === ">" ? (o = n ?? Q, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? P : u[3] === '"' ? xe : we) : o === xe || o === we ? o = P : o === be || o === _e ? o = Q : (o = P, n = void 0);
|
|
1384
|
+
const f = o === P && i[a + 1].startsWith("/>") ? " " : "";
|
|
1385
|
+
r += o === Q ? l + Ns : h >= 0 ? (s.push(c), l.slice(0, h) + $i + l.slice(h) + C + f) : l + C + (h === -2 ? a : f);
|
|
1386
1386
|
}
|
|
1387
|
-
return [
|
|
1387
|
+
return [bi(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
|
1388
1388
|
};
|
|
1389
|
-
class
|
|
1390
|
-
constructor({ strings: t, _$litType$: e },
|
|
1389
|
+
class st {
|
|
1390
|
+
constructor({ strings: t, _$litType$: e }, s) {
|
|
1391
1391
|
let n;
|
|
1392
1392
|
this.parts = [];
|
|
1393
1393
|
let r = 0, o = 0;
|
|
1394
|
-
const a = t.length - 1, l = this.parts, [c, u] =
|
|
1395
|
-
if (this.el =
|
|
1394
|
+
const a = t.length - 1, l = this.parts, [c, u] = Bs(t, e);
|
|
1395
|
+
if (this.el = st.createElement(c, s), L.currentNode = this.el.content, e === 2) {
|
|
1396
1396
|
const h = this.el.content.firstChild;
|
|
1397
1397
|
h.replaceWith(...h.childNodes);
|
|
1398
1398
|
}
|
|
1399
|
-
for (; (n =
|
|
1399
|
+
for (; (n = L.nextNode()) !== null && l.length < a; ) {
|
|
1400
1400
|
if (n.nodeType === 1) {
|
|
1401
1401
|
if (n.hasAttributes())
|
|
1402
1402
|
for (const h of n.getAttributeNames())
|
|
1403
|
-
if (h.endsWith($
|
|
1403
|
+
if (h.endsWith($i)) {
|
|
1404
1404
|
const d = u[o++], f = n.getAttribute(h).split(C), $ = /([.?@])?(.*)/.exec(d);
|
|
1405
|
-
l.push({ type: 1, index: r, name: $[2], strings: f, ctor: $[1] === "." ?
|
|
1405
|
+
l.push({ type: 1, index: r, name: $[2], strings: f, ctor: $[1] === "." ? Fs : $[1] === "?" ? Ws : $[1] === "@" ? Ys : kt }), n.removeAttribute(h);
|
|
1406
1406
|
} else
|
|
1407
1407
|
h.startsWith(C) && (l.push({ type: 6, index: r }), n.removeAttribute(h));
|
|
1408
|
-
if (
|
|
1408
|
+
if (yi.test(n.tagName)) {
|
|
1409
1409
|
const h = n.textContent.split(C), d = h.length - 1;
|
|
1410
1410
|
if (d > 0) {
|
|
1411
1411
|
n.textContent = mt ? mt.emptyScript : "";
|
|
1412
1412
|
for (let f = 0; f < d; f++)
|
|
1413
|
-
n.append(h[f], et()),
|
|
1413
|
+
n.append(h[f], et()), L.nextNode(), l.push({ type: 2, index: ++r });
|
|
1414
1414
|
n.append(h[d], et());
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
1417
|
} else if (n.nodeType === 8)
|
|
1418
|
-
if (n.data ===
|
|
1418
|
+
if (n.data === vi)
|
|
1419
1419
|
l.push({ type: 2, index: r });
|
|
1420
1420
|
else {
|
|
1421
1421
|
let h = -1;
|
|
@@ -1426,19 +1426,19 @@ class it {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
1428
|
static createElement(t, e) {
|
|
1429
|
-
const
|
|
1430
|
-
return
|
|
1429
|
+
const s = R.createElement("template");
|
|
1430
|
+
return s.innerHTML = t, s;
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
function G(
|
|
1433
|
+
function G(i, t, e = i, s) {
|
|
1434
1434
|
var o, a;
|
|
1435
1435
|
if (t === U)
|
|
1436
1436
|
return t;
|
|
1437
|
-
let n =
|
|
1438
|
-
const r =
|
|
1439
|
-
return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(
|
|
1437
|
+
let n = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
|
1438
|
+
const r = it(t) ? void 0 : t._$litDirective$;
|
|
1439
|
+
return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(i), n._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = n : e._$Cl = n), n !== void 0 && (t = G(i, n._$AS(i, t.values), n, s)), t;
|
|
1440
1440
|
}
|
|
1441
|
-
class
|
|
1441
|
+
class zs {
|
|
1442
1442
|
constructor(t, e) {
|
|
1443
1443
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
1444
1444
|
}
|
|
@@ -1449,22 +1449,22 @@ class zi {
|
|
|
1449
1449
|
return this._$AM._$AU;
|
|
1450
1450
|
}
|
|
1451
1451
|
u(t) {
|
|
1452
|
-
const { el: { content: e }, parts:
|
|
1453
|
-
|
|
1454
|
-
let r =
|
|
1452
|
+
const { el: { content: e }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? R).importNode(e, !0);
|
|
1453
|
+
L.currentNode = n;
|
|
1454
|
+
let r = L.nextNode(), o = 0, a = 0, l = s[0];
|
|
1455
1455
|
for (; l !== void 0; ) {
|
|
1456
1456
|
if (o === l.index) {
|
|
1457
1457
|
let c;
|
|
1458
|
-
l.type === 2 ? c = new rt(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new
|
|
1458
|
+
l.type === 2 ? c = new rt(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new qs(r, this, t)), this._$AV.push(c), l = s[++a];
|
|
1459
1459
|
}
|
|
1460
|
-
o !== (l == null ? void 0 : l.index) && (r =
|
|
1460
|
+
o !== (l == null ? void 0 : l.index) && (r = L.nextNode(), o++);
|
|
1461
1461
|
}
|
|
1462
|
-
return
|
|
1462
|
+
return L.currentNode = R, n;
|
|
1463
1463
|
}
|
|
1464
1464
|
p(t) {
|
|
1465
1465
|
let e = 0;
|
|
1466
|
-
for (const
|
|
1467
|
-
|
|
1466
|
+
for (const s of this._$AV)
|
|
1467
|
+
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
1470
|
class rt {
|
|
@@ -1472,8 +1472,8 @@ class rt {
|
|
|
1472
1472
|
var t;
|
|
1473
1473
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
1474
1474
|
}
|
|
1475
|
-
constructor(t, e,
|
|
1476
|
-
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM =
|
|
1475
|
+
constructor(t, e, s, n) {
|
|
1476
|
+
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
|
|
1477
1477
|
}
|
|
1478
1478
|
get parentNode() {
|
|
1479
1479
|
let t = this._$AA.parentNode;
|
|
@@ -1487,7 +1487,7 @@ class rt {
|
|
|
1487
1487
|
return this._$AB;
|
|
1488
1488
|
}
|
|
1489
1489
|
_$AI(t, e = this) {
|
|
1490
|
-
t = G(this, t, e),
|
|
1490
|
+
t = G(this, t, e), it(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== U && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ds(t) ? this.k(t) : this._(t);
|
|
1491
1491
|
}
|
|
1492
1492
|
S(t) {
|
|
1493
1493
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -1496,33 +1496,33 @@ class rt {
|
|
|
1496
1496
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
|
1497
1497
|
}
|
|
1498
1498
|
_(t) {
|
|
1499
|
-
this._$AH !== p &&
|
|
1499
|
+
this._$AH !== p && it(this._$AH) ? this._$AA.nextSibling.data = t : this.T(R.createTextNode(t)), this._$AH = t;
|
|
1500
1500
|
}
|
|
1501
1501
|
$(t) {
|
|
1502
1502
|
var r;
|
|
1503
|
-
const { values: e, _$litType$:
|
|
1503
|
+
const { values: e, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = st.createElement(bi(s.h, s.h[0]), this.options)), s);
|
|
1504
1504
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === n)
|
|
1505
1505
|
this._$AH.p(e);
|
|
1506
1506
|
else {
|
|
1507
|
-
const o = new
|
|
1507
|
+
const o = new zs(n, this), a = o.u(this.options);
|
|
1508
1508
|
o.p(e), this.T(a), this._$AH = o;
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
1511
|
_$AC(t) {
|
|
1512
1512
|
let e = Se.get(t.strings);
|
|
1513
|
-
return e === void 0 && Se.set(t.strings, e = new
|
|
1513
|
+
return e === void 0 && Se.set(t.strings, e = new st(t)), e;
|
|
1514
1514
|
}
|
|
1515
1515
|
k(t) {
|
|
1516
|
-
|
|
1516
|
+
mi(this._$AH) || (this._$AH = [], this._$AR());
|
|
1517
1517
|
const e = this._$AH;
|
|
1518
|
-
let
|
|
1518
|
+
let s, n = 0;
|
|
1519
1519
|
for (const r of t)
|
|
1520
|
-
n === e.length ? e.push(
|
|
1521
|
-
n < e.length && (this._$AR(
|
|
1520
|
+
n === e.length ? e.push(s = new rt(this.S(et()), this.S(et()), this, this.options)) : s = e[n], s._$AI(r), n++;
|
|
1521
|
+
n < e.length && (this._$AR(s && s._$AB.nextSibling, n), e.length = n);
|
|
1522
1522
|
}
|
|
1523
1523
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
1524
|
-
var
|
|
1525
|
-
for ((
|
|
1524
|
+
var s;
|
|
1525
|
+
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
1526
1526
|
const n = t.nextSibling;
|
|
1527
1527
|
t.remove(), t = n;
|
|
1528
1528
|
}
|
|
@@ -1539,19 +1539,19 @@ class kt {
|
|
|
1539
1539
|
get _$AU() {
|
|
1540
1540
|
return this._$AM._$AU;
|
|
1541
1541
|
}
|
|
1542
|
-
constructor(t, e,
|
|
1543
|
-
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = r,
|
|
1542
|
+
constructor(t, e, s, n, r) {
|
|
1543
|
+
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = p;
|
|
1544
1544
|
}
|
|
1545
|
-
_$AI(t, e = this,
|
|
1545
|
+
_$AI(t, e = this, s, n) {
|
|
1546
1546
|
const r = this.strings;
|
|
1547
1547
|
let o = !1;
|
|
1548
1548
|
if (r === void 0)
|
|
1549
|
-
t = G(this, t, e, 0), o = !
|
|
1549
|
+
t = G(this, t, e, 0), o = !it(t) || t !== this._$AH && t !== U, o && (this._$AH = t);
|
|
1550
1550
|
else {
|
|
1551
1551
|
const a = t;
|
|
1552
1552
|
let l, c;
|
|
1553
1553
|
for (t = r[0], l = 0; l < r.length - 1; l++)
|
|
1554
|
-
c = G(this, a[
|
|
1554
|
+
c = G(this, a[s + l], e, l), c === U && (c = this._$AH[l]), o || (o = !it(c) || c !== this._$AH[l]), c === p ? t = p : t !== p && (t += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
|
1555
1555
|
}
|
|
1556
1556
|
o && !n && this.j(t);
|
|
1557
1557
|
}
|
|
@@ -1559,7 +1559,7 @@ class kt {
|
|
|
1559
1559
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
1560
1560
|
}
|
|
1561
1561
|
}
|
|
1562
|
-
class
|
|
1562
|
+
class Fs extends kt {
|
|
1563
1563
|
constructor() {
|
|
1564
1564
|
super(...arguments), this.type = 3;
|
|
1565
1565
|
}
|
|
@@ -1567,7 +1567,7 @@ class Fi extends kt {
|
|
|
1567
1567
|
this.element[this.name] = t === p ? void 0 : t;
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
|
-
let
|
|
1570
|
+
let Ws = class extends kt {
|
|
1571
1571
|
constructor() {
|
|
1572
1572
|
super(...arguments), this.type = 4;
|
|
1573
1573
|
}
|
|
@@ -1575,24 +1575,24 @@ let Wi = class extends kt {
|
|
|
1575
1575
|
this.element.toggleAttribute(this.name, !!t && t !== p);
|
|
1576
1576
|
}
|
|
1577
1577
|
};
|
|
1578
|
-
class
|
|
1579
|
-
constructor(t, e,
|
|
1580
|
-
super(t, e,
|
|
1578
|
+
class Ys extends kt {
|
|
1579
|
+
constructor(t, e, s, n, r) {
|
|
1580
|
+
super(t, e, s, n, r), this.type = 5;
|
|
1581
1581
|
}
|
|
1582
1582
|
_$AI(t, e = this) {
|
|
1583
1583
|
if ((t = G(this, t, e, 0) ?? p) === U)
|
|
1584
1584
|
return;
|
|
1585
|
-
const
|
|
1586
|
-
n && this.element.removeEventListener(this.name, this,
|
|
1585
|
+
const s = this._$AH, n = t === p && s !== p || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== p && (s === p || n);
|
|
1586
|
+
n && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1587
1587
|
}
|
|
1588
1588
|
handleEvent(t) {
|
|
1589
1589
|
var e;
|
|
1590
1590
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
|
-
class
|
|
1594
|
-
constructor(t, e,
|
|
1595
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
|
1593
|
+
class qs {
|
|
1594
|
+
constructor(t, e, s) {
|
|
1595
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
1596
1596
|
}
|
|
1597
1597
|
get _$AU() {
|
|
1598
1598
|
return this._$AM._$AU;
|
|
@@ -1602,15 +1602,15 @@ class qi {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
1604
|
const jt = V.litHtmlPolyfillSupport;
|
|
1605
|
-
jt == null || jt(
|
|
1606
|
-
const
|
|
1607
|
-
const
|
|
1608
|
-
let n =
|
|
1605
|
+
jt == null || jt(st, rt), (V.litHtmlVersions ?? (V.litHtmlVersions = [])).push("3.1.2");
|
|
1606
|
+
const Gs = (i, t, e) => {
|
|
1607
|
+
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
1608
|
+
let n = s._$litPart$;
|
|
1609
1609
|
if (n === void 0) {
|
|
1610
1610
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
1611
|
-
|
|
1611
|
+
s._$litPart$ = n = new rt(t.insertBefore(et(), r), r, void 0, e ?? {});
|
|
1612
1612
|
}
|
|
1613
|
-
return n._$AI(
|
|
1613
|
+
return n._$AI(i), n;
|
|
1614
1614
|
};
|
|
1615
1615
|
/**
|
|
1616
1616
|
* @license
|
|
@@ -1628,7 +1628,7 @@ let x = class extends D {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
update(t) {
|
|
1630
1630
|
const e = this.render();
|
|
1631
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
1631
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Gs(e, this.renderRoot, this.renderOptions);
|
|
1632
1632
|
}
|
|
1633
1633
|
connectedCallback() {
|
|
1634
1634
|
var t;
|
|
@@ -1652,45 +1652,45 @@ Mt == null || Mt({ LitElement: x });
|
|
|
1652
1652
|
* Copyright 2017 Google LLC
|
|
1653
1653
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1654
1654
|
*/
|
|
1655
|
-
const
|
|
1656
|
-
const { kind:
|
|
1655
|
+
const Ks = { attribute: !0, type: String, converter: vt, reflect: !1, hasChanged: Jt }, Xs = (i = Ks, t, e) => {
|
|
1656
|
+
const { kind: s, metadata: n } = e;
|
|
1657
1657
|
let r = globalThis.litPropertyMetadata.get(n);
|
|
1658
|
-
if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), r.set(e.name,
|
|
1658
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), r.set(e.name, i), s === "accessor") {
|
|
1659
1659
|
const { name: o } = e;
|
|
1660
1660
|
return { set(a) {
|
|
1661
1661
|
const l = t.get.call(this);
|
|
1662
|
-
t.set.call(this, a), this.requestUpdate(o, l,
|
|
1662
|
+
t.set.call(this, a), this.requestUpdate(o, l, i);
|
|
1663
1663
|
}, init(a) {
|
|
1664
|
-
return a !== void 0 && this.P(o, void 0,
|
|
1664
|
+
return a !== void 0 && this.P(o, void 0, i), a;
|
|
1665
1665
|
} };
|
|
1666
1666
|
}
|
|
1667
|
-
if (
|
|
1667
|
+
if (s === "setter") {
|
|
1668
1668
|
const { name: o } = e;
|
|
1669
1669
|
return function(a) {
|
|
1670
1670
|
const l = this[o];
|
|
1671
|
-
t.call(this, a), this.requestUpdate(o, l,
|
|
1671
|
+
t.call(this, a), this.requestUpdate(o, l, i);
|
|
1672
1672
|
};
|
|
1673
1673
|
}
|
|
1674
|
-
throw Error("Unsupported decorator location: " +
|
|
1674
|
+
throw Error("Unsupported decorator location: " + s);
|
|
1675
1675
|
};
|
|
1676
|
-
function b(
|
|
1677
|
-
return (t, e) => typeof e == "object" ?
|
|
1676
|
+
function b(i) {
|
|
1677
|
+
return (t, e) => typeof e == "object" ? Xs(i, t, e) : ((s, n, r) => {
|
|
1678
1678
|
const o = n.hasOwnProperty(r);
|
|
1679
|
-
return n.constructor.createProperty(r, o ? { ...
|
|
1680
|
-
})(
|
|
1679
|
+
return n.constructor.createProperty(r, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(n, r) : void 0;
|
|
1680
|
+
})(i, t, e);
|
|
1681
1681
|
}
|
|
1682
1682
|
/**
|
|
1683
1683
|
* @license
|
|
1684
1684
|
* Copyright 2017 Google LLC
|
|
1685
1685
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1686
1686
|
*/
|
|
1687
|
-
function N(
|
|
1688
|
-
return b({ ...
|
|
1687
|
+
function N(i) {
|
|
1688
|
+
return b({ ...i, state: !0, attribute: !1 });
|
|
1689
1689
|
}
|
|
1690
|
-
var
|
|
1691
|
-
for (var n =
|
|
1692
|
-
(o =
|
|
1693
|
-
return
|
|
1690
|
+
var Zs = Object.defineProperty, Qs = Object.getOwnPropertyDescriptor, Js = (i, t, e, s) => {
|
|
1691
|
+
for (var n = s > 1 ? void 0 : s ? Qs(t, e) : t, r = i.length - 1, o; r >= 0; r--)
|
|
1692
|
+
(o = i[r]) && (n = (s ? o(t, e, n) : o(n)) || n);
|
|
1693
|
+
return s && n && Zs(t, e, n), n;
|
|
1694
1694
|
};
|
|
1695
1695
|
class Vt extends x {
|
|
1696
1696
|
constructor() {
|
|
@@ -1723,7 +1723,7 @@ Vt.styles = [
|
|
|
1723
1723
|
}
|
|
1724
1724
|
`
|
|
1725
1725
|
];
|
|
1726
|
-
|
|
1726
|
+
Js([
|
|
1727
1727
|
b({ attribute: !0 })
|
|
1728
1728
|
], Vt.prototype, "anchor", 2);
|
|
1729
1729
|
/**
|
|
@@ -1731,15 +1731,15 @@ Ji([
|
|
|
1731
1731
|
* Copyright 2017 Google LLC
|
|
1732
1732
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1733
1733
|
*/
|
|
1734
|
-
const te = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ee = (
|
|
1735
|
-
let
|
|
1734
|
+
const te = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ee = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
1735
|
+
let _i = class {
|
|
1736
1736
|
constructor(t) {
|
|
1737
1737
|
}
|
|
1738
1738
|
get _$AU() {
|
|
1739
1739
|
return this._$AM._$AU;
|
|
1740
1740
|
}
|
|
1741
|
-
_$AT(t, e,
|
|
1742
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
1741
|
+
_$AT(t, e, s) {
|
|
1742
|
+
this._$Ct = t, this._$AM = e, this._$Ci = s;
|
|
1743
1743
|
}
|
|
1744
1744
|
_$AS(t, e) {
|
|
1745
1745
|
return this.update(t, e);
|
|
@@ -1753,68 +1753,68 @@ let _s = class {
|
|
|
1753
1753
|
* Copyright 2020 Google LLC
|
|
1754
1754
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1755
1755
|
*/
|
|
1756
|
-
const
|
|
1756
|
+
const Vs = (i) => i.strings === void 0;
|
|
1757
1757
|
/**
|
|
1758
1758
|
* @license
|
|
1759
1759
|
* Copyright 2017 Google LLC
|
|
1760
1760
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1761
1761
|
*/
|
|
1762
|
-
const tt = (
|
|
1763
|
-
var
|
|
1764
|
-
const e =
|
|
1762
|
+
const tt = (i, t) => {
|
|
1763
|
+
var s;
|
|
1764
|
+
const e = i._$AN;
|
|
1765
1765
|
if (e === void 0)
|
|
1766
1766
|
return !1;
|
|
1767
1767
|
for (const n of e)
|
|
1768
|
-
(
|
|
1768
|
+
(s = n._$AO) == null || s.call(n, t, !1), tt(n, t);
|
|
1769
1769
|
return !0;
|
|
1770
|
-
}, yt = (
|
|
1770
|
+
}, yt = (i) => {
|
|
1771
1771
|
let t, e;
|
|
1772
1772
|
do {
|
|
1773
|
-
if ((t =
|
|
1773
|
+
if ((t = i._$AM) === void 0)
|
|
1774
1774
|
break;
|
|
1775
|
-
e = t._$AN, e.delete(
|
|
1775
|
+
e = t._$AN, e.delete(i), i = t;
|
|
1776
1776
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
1777
|
-
},
|
|
1778
|
-
for (let t; t =
|
|
1777
|
+
}, wi = (i) => {
|
|
1778
|
+
for (let t; t = i._$AM; i = t) {
|
|
1779
1779
|
let e = t._$AN;
|
|
1780
1780
|
if (e === void 0)
|
|
1781
1781
|
t._$AN = e = /* @__PURE__ */ new Set();
|
|
1782
|
-
else if (e.has(
|
|
1782
|
+
else if (e.has(i))
|
|
1783
1783
|
break;
|
|
1784
|
-
e.add(
|
|
1784
|
+
e.add(i), sn(t);
|
|
1785
1785
|
}
|
|
1786
1786
|
};
|
|
1787
|
-
function tn(
|
|
1788
|
-
this._$AN !== void 0 ? (yt(this), this._$AM =
|
|
1787
|
+
function tn(i) {
|
|
1788
|
+
this._$AN !== void 0 ? (yt(this), this._$AM = i, wi(this)) : this._$AM = i;
|
|
1789
1789
|
}
|
|
1790
|
-
function en(
|
|
1791
|
-
const
|
|
1790
|
+
function en(i, t = !1, e = 0) {
|
|
1791
|
+
const s = this._$AH, n = this._$AN;
|
|
1792
1792
|
if (n !== void 0 && n.size !== 0)
|
|
1793
1793
|
if (t)
|
|
1794
|
-
if (Array.isArray(
|
|
1795
|
-
for (let r = e; r <
|
|
1796
|
-
tt(
|
|
1794
|
+
if (Array.isArray(s))
|
|
1795
|
+
for (let r = e; r < s.length; r++)
|
|
1796
|
+
tt(s[r], !1), yt(s[r]);
|
|
1797
1797
|
else
|
|
1798
|
-
|
|
1798
|
+
s != null && (tt(s, !1), yt(s));
|
|
1799
1799
|
else
|
|
1800
|
-
tt(this,
|
|
1800
|
+
tt(this, i);
|
|
1801
1801
|
}
|
|
1802
|
-
const sn = (
|
|
1803
|
-
|
|
1802
|
+
const sn = (i) => {
|
|
1803
|
+
i.type == te.CHILD && (i._$AP ?? (i._$AP = en), i._$AQ ?? (i._$AQ = tn));
|
|
1804
1804
|
};
|
|
1805
|
-
class
|
|
1805
|
+
class xi extends _i {
|
|
1806
1806
|
constructor() {
|
|
1807
1807
|
super(...arguments), this._$AN = void 0;
|
|
1808
1808
|
}
|
|
1809
|
-
_$AT(t, e,
|
|
1810
|
-
super._$AT(t, e,
|
|
1809
|
+
_$AT(t, e, s) {
|
|
1810
|
+
super._$AT(t, e, s), wi(this), this.isConnected = t._$AU;
|
|
1811
1811
|
}
|
|
1812
1812
|
_$AO(t, e = !0) {
|
|
1813
|
-
var
|
|
1814
|
-
t !== this.isConnected && (this.isConnected = t, t ? (
|
|
1813
|
+
var s, n;
|
|
1814
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (n = this.disconnected) == null || n.call(this)), e && (tt(this, t), yt(this));
|
|
1815
1815
|
}
|
|
1816
1816
|
setValue(t) {
|
|
1817
|
-
if (
|
|
1817
|
+
if (Vs(this._$Ct))
|
|
1818
1818
|
this._$Ct._$AI(t, this);
|
|
1819
1819
|
else {
|
|
1820
1820
|
const e = [...this._$Ct._$AH];
|
|
@@ -1828,30 +1828,30 @@ class xs extends _s {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
const nn = /* @__PURE__ */ new WeakMap();
|
|
1830
1830
|
let Ae = 0;
|
|
1831
|
-
const Nt = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new WeakSet(), Ce = () => new Promise((
|
|
1832
|
-
const e =
|
|
1831
|
+
const Nt = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new WeakSet(), Ce = () => new Promise((i) => requestAnimationFrame(i)), ke = [{ transform: "translateY(-100%) scale(0)", opacity: 0 }], rn = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Oe = (i, t) => {
|
|
1832
|
+
const e = i - t;
|
|
1833
1833
|
return e === 0 ? void 0 : e;
|
|
1834
|
-
}, Te = (
|
|
1835
|
-
const e =
|
|
1834
|
+
}, Te = (i, t) => {
|
|
1835
|
+
const e = i / t;
|
|
1836
1836
|
return e === 1 ? void 0 : e;
|
|
1837
|
-
}, Dt = { left: (
|
|
1838
|
-
const e = Oe(
|
|
1837
|
+
}, Dt = { left: (i, t) => {
|
|
1838
|
+
const e = Oe(i, t);
|
|
1839
1839
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
1840
|
-
}, top: (
|
|
1841
|
-
const e = Oe(
|
|
1840
|
+
}, top: (i, t) => {
|
|
1841
|
+
const e = Oe(i, t);
|
|
1842
1842
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
|
1843
|
-
}, width: (
|
|
1843
|
+
}, width: (i, t) => {
|
|
1844
1844
|
let e;
|
|
1845
1845
|
t === 0 && (t = 1, e = { width: "1px" });
|
|
1846
|
-
const
|
|
1847
|
-
return { value:
|
|
1848
|
-
}, height: (
|
|
1846
|
+
const s = Te(i, t);
|
|
1847
|
+
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleX(${s})` };
|
|
1848
|
+
}, height: (i, t) => {
|
|
1849
1849
|
let e;
|
|
1850
1850
|
t === 0 && (t = 1, e = { height: "1px" });
|
|
1851
|
-
const
|
|
1852
|
-
return { value:
|
|
1851
|
+
const s = Te(i, t);
|
|
1852
|
+
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
|
1853
1853
|
} }, on = { duration: 333, easing: "ease-in-out" }, an = ["left", "top", "width", "height", "opacity", "color", "background"], Pe = /* @__PURE__ */ new WeakMap();
|
|
1854
|
-
class ln extends
|
|
1854
|
+
class ln extends xi {
|
|
1855
1855
|
constructor(t) {
|
|
1856
1856
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === te.CHILD)
|
|
1857
1857
|
throw Error("The `animate` directive must be used in attribute position.");
|
|
@@ -1879,8 +1879,8 @@ class ln extends xs {
|
|
|
1879
1879
|
}
|
|
1880
1880
|
update(t, [e]) {
|
|
1881
1881
|
var n;
|
|
1882
|
-
const
|
|
1883
|
-
return
|
|
1882
|
+
const s = this.u === void 0;
|
|
1883
|
+
return s && (this.u = (n = t.options) == null ? void 0 : n.host, this.u.addController(this), this.u.updateComplete.then((r) => this.t = !0), this.element = t.element, Pe.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.p(e), this.render(e);
|
|
1884
1884
|
}
|
|
1885
1885
|
p(t) {
|
|
1886
1886
|
t = t ?? {};
|
|
@@ -1888,19 +1888,19 @@ class ln extends xs {
|
|
|
1888
1888
|
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = an), this.options = t;
|
|
1889
1889
|
}
|
|
1890
1890
|
m() {
|
|
1891
|
-
const t = {}, e = this.element.getBoundingClientRect(),
|
|
1891
|
+
const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
|
1892
1892
|
return this.options.properties.forEach((n) => {
|
|
1893
|
-
const r = e[n] ?? (Dt[n] ? void 0 :
|
|
1893
|
+
const r = e[n] ?? (Dt[n] ? void 0 : s[n]), o = Number(r);
|
|
1894
1894
|
t[n] = isNaN(o) ? r + "" : o;
|
|
1895
1895
|
}), t;
|
|
1896
1896
|
}
|
|
1897
1897
|
v() {
|
|
1898
1898
|
let t, e = !0;
|
|
1899
|
-
return this.options.guard && (t = this.options.guard(), e = ((
|
|
1900
|
-
if (Array.isArray(
|
|
1901
|
-
if (Array.isArray(n) && n.length ===
|
|
1899
|
+
return this.options.guard && (t = this.options.guard(), e = ((s, n) => {
|
|
1900
|
+
if (Array.isArray(s)) {
|
|
1901
|
+
if (Array.isArray(n) && n.length === s.length && s.every((r, o) => r === n[o]))
|
|
1902
1902
|
return !1;
|
|
1903
|
-
} else if (n ===
|
|
1903
|
+
} else if (n === s)
|
|
1904
1904
|
return !1;
|
|
1905
1905
|
return !0;
|
|
1906
1906
|
})(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
|
|
@@ -1913,7 +1913,7 @@ class ln extends xs {
|
|
|
1913
1913
|
return;
|
|
1914
1914
|
let t;
|
|
1915
1915
|
this.prepare(), await Ce;
|
|
1916
|
-
const e = this.O(),
|
|
1916
|
+
const e = this.O(), s = this.j(this.options.keyframeOptions, e), n = this.m();
|
|
1917
1917
|
if (this.A !== void 0) {
|
|
1918
1918
|
const { from: r, to: o } = this.N(this.A, n, e);
|
|
1919
1919
|
this.log("measured", [this.A, n, r, o]), t = this.calculateKeyframes(r, o);
|
|
@@ -1926,7 +1926,7 @@ class ln extends xs {
|
|
|
1926
1926
|
} else
|
|
1927
1927
|
this.options.in && (t = [...this.options.in, {}]);
|
|
1928
1928
|
}
|
|
1929
|
-
this.animate(t,
|
|
1929
|
+
this.animate(t, s);
|
|
1930
1930
|
}
|
|
1931
1931
|
resetStyles() {
|
|
1932
1932
|
this.P !== void 0 && (this.element.setAttribute("style", this.P ?? ""), this.P = void 0);
|
|
@@ -1942,8 +1942,8 @@ class ln extends xs {
|
|
|
1942
1942
|
if (!this.h || (this.options.id !== void 0 && Nt.set(this.options.id, this.A), this.options.out === void 0))
|
|
1943
1943
|
return;
|
|
1944
1944
|
if (this.prepare(), await Ce(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
1945
|
-
const
|
|
1946
|
-
if (this.i.insertBefore(this.element,
|
|
1945
|
+
const s = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
1946
|
+
if (this.i.insertBefore(this.element, s), this.options.stabilizeOut) {
|
|
1947
1947
|
const n = this.m();
|
|
1948
1948
|
this.log("stabilizing out");
|
|
1949
1949
|
const r = this.A.left - n.left, o = this.A.top - n.top;
|
|
@@ -1961,14 +1961,14 @@ class ln extends xs {
|
|
|
1961
1961
|
(e = (t = this.options).onStart) == null || e.call(t, this);
|
|
1962
1962
|
}
|
|
1963
1963
|
didFinish(t) {
|
|
1964
|
-
var e,
|
|
1965
|
-
t && ((
|
|
1964
|
+
var e, s;
|
|
1965
|
+
t && ((s = (e = this.options).onComplete) == null || s.call(e, this)), this.A = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
|
|
1966
1966
|
}
|
|
1967
1967
|
O() {
|
|
1968
1968
|
const t = [];
|
|
1969
1969
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
|
1970
|
-
const
|
|
1971
|
-
|
|
1970
|
+
const s = Pe.get(e);
|
|
1971
|
+
s && !s.isDisabled() && s && t.push(s);
|
|
1972
1972
|
}
|
|
1973
1973
|
return t;
|
|
1974
1974
|
}
|
|
@@ -1979,18 +1979,18 @@ class ln extends xs {
|
|
|
1979
1979
|
}), t;
|
|
1980
1980
|
}
|
|
1981
1981
|
j(t, e = this.O()) {
|
|
1982
|
-
const
|
|
1983
|
-
return e.forEach((n) => Object.assign(
|
|
1982
|
+
const s = { ...on };
|
|
1983
|
+
return e.forEach((n) => Object.assign(s, n.options.keyframeOptions)), Object.assign(s, t), s;
|
|
1984
1984
|
}
|
|
1985
|
-
N(t, e,
|
|
1985
|
+
N(t, e, s) {
|
|
1986
1986
|
t = { ...t }, e = { ...e };
|
|
1987
|
-
const n =
|
|
1987
|
+
const n = s.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
|
1988
1988
|
let r = 1, o = 1;
|
|
1989
1989
|
return n.length > 0 && (n.forEach((a) => {
|
|
1990
1990
|
a.width && (r /= a.width), a.height && (o /= a.height);
|
|
1991
1991
|
}), t.left !== void 0 && e.left !== void 0 && (t.left = r * t.left, e.left = r * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
|
1992
1992
|
}
|
|
1993
|
-
calculateKeyframes(t, e,
|
|
1993
|
+
calculateKeyframes(t, e, s = !1) {
|
|
1994
1994
|
const n = {}, r = {};
|
|
1995
1995
|
let o = !1;
|
|
1996
1996
|
const a = {};
|
|
@@ -2005,13 +2005,13 @@ class ln extends xs {
|
|
|
2005
2005
|
} else
|
|
2006
2006
|
c !== u && c !== void 0 && u !== void 0 && (o = !0, n[l] = c, r[l] = u);
|
|
2007
2007
|
}
|
|
2008
|
-
return n.transformOrigin = r.transformOrigin =
|
|
2008
|
+
return n.transformOrigin = r.transformOrigin = s ? "center center" : "top left", this.animatingProperties = a, o ? [n, r] : void 0;
|
|
2009
2009
|
}
|
|
2010
2010
|
async animate(t, e = this.options.keyframeOptions) {
|
|
2011
2011
|
this.start(), this.frames = t;
|
|
2012
|
-
let
|
|
2012
|
+
let s = !1;
|
|
2013
2013
|
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
|
2014
|
-
this.log("animate", [t, e]),
|
|
2014
|
+
this.log("animate", [t, e]), s = !0, this.webAnimation = this.element.animate(t, e);
|
|
2015
2015
|
const n = this.getController();
|
|
2016
2016
|
n == null || n.add(this);
|
|
2017
2017
|
try {
|
|
@@ -2020,7 +2020,7 @@ class ln extends xs {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
n == null || n.remove(this);
|
|
2022
2022
|
}
|
|
2023
|
-
return this.didFinish(
|
|
2023
|
+
return this.didFinish(s), s;
|
|
2024
2024
|
}
|
|
2025
2025
|
isAnimating() {
|
|
2026
2026
|
var t, e;
|
|
@@ -2030,30 +2030,30 @@ class ln extends xs {
|
|
|
2030
2030
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
|
2031
2031
|
}
|
|
2032
2032
|
}
|
|
2033
|
-
const
|
|
2033
|
+
const Si = ee(ln), cn = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
|
|
2034
2034
|
/**
|
|
2035
2035
|
* @license
|
|
2036
2036
|
* Copyright 2018 Google LLC
|
|
2037
2037
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2038
2038
|
*/
|
|
2039
|
-
const
|
|
2040
|
-
constructor(
|
|
2039
|
+
const Ie = ee(class extends _i {
|
|
2040
|
+
constructor(i) {
|
|
2041
2041
|
var t;
|
|
2042
|
-
if (super(
|
|
2042
|
+
if (super(i), i.type !== te.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2)
|
|
2043
2043
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
2044
2044
|
}
|
|
2045
|
-
render(
|
|
2046
|
-
return " " + Object.keys(
|
|
2045
|
+
render(i) {
|
|
2046
|
+
return " " + Object.keys(i).filter((t) => i[t]).join(" ") + " ";
|
|
2047
2047
|
}
|
|
2048
|
-
update(
|
|
2049
|
-
var
|
|
2048
|
+
update(i, [t]) {
|
|
2049
|
+
var s, n;
|
|
2050
2050
|
if (this.st === void 0) {
|
|
2051
|
-
this.st = /* @__PURE__ */ new Set(),
|
|
2051
|
+
this.st = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.nt = new Set(i.strings.join(" ").split(/\s/).filter((r) => r !== "")));
|
|
2052
2052
|
for (const r in t)
|
|
2053
|
-
t[r] && !((
|
|
2053
|
+
t[r] && !((s = this.nt) != null && s.has(r)) && this.st.add(r);
|
|
2054
2054
|
return this.render(t);
|
|
2055
2055
|
}
|
|
2056
|
-
const e =
|
|
2056
|
+
const e = i.element.classList;
|
|
2057
2057
|
for (const r of this.st)
|
|
2058
2058
|
r in t || (e.remove(r), this.st.delete(r));
|
|
2059
2059
|
for (const r in t) {
|
|
@@ -2062,39 +2062,39 @@ const Le = ee(class extends _s {
|
|
|
2062
2062
|
}
|
|
2063
2063
|
return U;
|
|
2064
2064
|
}
|
|
2065
|
-
}), A = (
|
|
2066
|
-
|
|
2067
|
-
},
|
|
2068
|
-
var e,
|
|
2069
|
-
A((e =
|
|
2070
|
-
(
|
|
2065
|
+
}), A = (i, t, e) => {
|
|
2066
|
+
i && e.style.setProperty(t, i);
|
|
2067
|
+
}, Ai = (i, t) => {
|
|
2068
|
+
var e, s, n, r, o, a, l, c, u;
|
|
2069
|
+
A((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), A(
|
|
2070
|
+
(s = i.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
|
2071
2071
|
"--text-on-primary-background",
|
|
2072
2072
|
t
|
|
2073
2073
|
), A(
|
|
2074
|
-
(n =
|
|
2074
|
+
(n = i.colors) == null ? void 0 : n.secondaryBackground,
|
|
2075
2075
|
"--secondary-background",
|
|
2076
2076
|
t
|
|
2077
2077
|
), A(
|
|
2078
|
-
(r =
|
|
2078
|
+
(r = i.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
|
2079
2079
|
"--text-on-secondary-background",
|
|
2080
2080
|
t
|
|
2081
2081
|
), A(
|
|
2082
|
-
(o =
|
|
2082
|
+
(o = i.colors) == null ? void 0 : o.interactiveDestructiveBackground,
|
|
2083
2083
|
"--destructive-color",
|
|
2084
2084
|
t
|
|
2085
2085
|
), A(
|
|
2086
|
-
(a =
|
|
2086
|
+
(a = i.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
|
2087
2087
|
"--text-on-destructive-color",
|
|
2088
2088
|
t
|
|
2089
2089
|
), A(
|
|
2090
|
-
(l =
|
|
2090
|
+
(l = i.colors) == null ? void 0 : l.interactivePrimaryBackground,
|
|
2091
2091
|
"--interactive-primary-background",
|
|
2092
2092
|
t
|
|
2093
2093
|
), A(
|
|
2094
|
-
(c =
|
|
2094
|
+
(c = i.colors) == null ? void 0 : c.interactiveTextOnPrimaryBackground,
|
|
2095
2095
|
"--interactive-text-on-primary-background",
|
|
2096
2096
|
t
|
|
2097
|
-
), A((u =
|
|
2097
|
+
), A((u = i.colors) == null ? void 0 : u.focusColor, "--focus-color", t);
|
|
2098
2098
|
};
|
|
2099
2099
|
/**
|
|
2100
2100
|
* @license
|
|
@@ -2104,26 +2104,26 @@ const Le = ee(class extends _s {
|
|
|
2104
2104
|
const bt = () => new un();
|
|
2105
2105
|
let un = class {
|
|
2106
2106
|
};
|
|
2107
|
-
const Ht = /* @__PURE__ */ new WeakMap(),
|
|
2108
|
-
render(
|
|
2107
|
+
const Ht = /* @__PURE__ */ new WeakMap(), ie = ee(class extends xi {
|
|
2108
|
+
render(i) {
|
|
2109
2109
|
return p;
|
|
2110
2110
|
}
|
|
2111
|
-
update(
|
|
2112
|
-
var
|
|
2111
|
+
update(i, [t]) {
|
|
2112
|
+
var s;
|
|
2113
2113
|
const e = t !== this.Y;
|
|
2114
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (
|
|
2114
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (s = i.options) == null ? void 0 : s.host, this.rt(this.ct = i.element)), p;
|
|
2115
2115
|
}
|
|
2116
|
-
rt(
|
|
2116
|
+
rt(i) {
|
|
2117
2117
|
if (typeof this.Y == "function") {
|
|
2118
2118
|
const t = this.ht ?? globalThis;
|
|
2119
2119
|
let e = Ht.get(t);
|
|
2120
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Ht.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y,
|
|
2120
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Ht.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, i), i !== void 0 && this.Y.call(this.ht, i);
|
|
2121
2121
|
} else
|
|
2122
|
-
this.Y.value =
|
|
2122
|
+
this.Y.value = i;
|
|
2123
2123
|
}
|
|
2124
2124
|
get lt() {
|
|
2125
|
-
var
|
|
2126
|
-
return typeof this.Y == "function" ? (
|
|
2125
|
+
var i, t;
|
|
2126
|
+
return typeof this.Y == "function" ? (i = Ht.get(this.ht ?? globalThis)) == null ? void 0 : i.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
|
2127
2127
|
}
|
|
2128
2128
|
disconnected() {
|
|
2129
2129
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -2132,14 +2132,14 @@ const Ht = /* @__PURE__ */ new WeakMap(), se = ee(class extends xs {
|
|
|
2132
2132
|
this.rt(this.ct);
|
|
2133
2133
|
}
|
|
2134
2134
|
});
|
|
2135
|
-
var hn = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, ot = (
|
|
2136
|
-
for (var n =
|
|
2137
|
-
(o =
|
|
2138
|
-
return
|
|
2135
|
+
var hn = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, ot = (i, t, e, s) => {
|
|
2136
|
+
for (var n = s > 1 ? void 0 : s ? dn(t, e) : t, r = i.length - 1, o; r >= 0; r--)
|
|
2137
|
+
(o = i[r]) && (n = (s ? o(t, e, n) : o(n)) || n);
|
|
2138
|
+
return s && n && hn(t, e, n), n;
|
|
2139
2139
|
};
|
|
2140
2140
|
class T extends x {
|
|
2141
2141
|
constructor() {
|
|
2142
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = bt(), this.widgetActive$ = new
|
|
2142
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = bt(), this.widgetActive$ = new os(!1), this.componentIsDestroyed$ = new Ct();
|
|
2143
2143
|
}
|
|
2144
2144
|
async connectedCallback() {
|
|
2145
2145
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
|
@@ -2155,21 +2155,36 @@ class T extends x {
|
|
|
2155
2155
|
);
|
|
2156
2156
|
return;
|
|
2157
2157
|
}
|
|
2158
|
-
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.
|
|
2158
|
+
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.notify("widget-set-active", {
|
|
2159
|
+
widgetId: this.application.id,
|
|
2160
|
+
active: !0
|
|
2161
|
+
}), this.widgetActive$.next(!0), this.hideTrigger()) : (this.application.hide(), this.notify("widget-set-active", {
|
|
2162
|
+
widgetId: this.application.id,
|
|
2163
|
+
active: !1
|
|
2164
|
+
}), this.widgetActive$.next(!1), this.showTrigger());
|
|
2165
|
+
}
|
|
2166
|
+
notify(t, e = {}) {
|
|
2167
|
+
window != null && window.parent && window.parent.postMessage(
|
|
2168
|
+
{
|
|
2169
|
+
type: t,
|
|
2170
|
+
data: e
|
|
2171
|
+
},
|
|
2172
|
+
"*"
|
|
2173
|
+
);
|
|
2159
2174
|
}
|
|
2160
2175
|
_applyBranding() {
|
|
2161
2176
|
var t;
|
|
2162
|
-
(t = this.application) != null && t.settings &&
|
|
2177
|
+
(t = this.application) != null && t.settings && Ai(this.application.settings.branding, this);
|
|
2163
2178
|
}
|
|
2164
2179
|
async _renderSymbol() {
|
|
2165
2180
|
var a, l, c;
|
|
2166
2181
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (l = t == null ? void 0 : t.graphics) == null ? void 0 : l.trigger;
|
|
2167
2182
|
if (e)
|
|
2168
2183
|
return E` <img src=${e} class="trigger-icon" alt="" /> `;
|
|
2169
|
-
const
|
|
2170
|
-
if (!
|
|
2184
|
+
const s = (c = this.application) == null ? void 0 : c.triggerIcon;
|
|
2185
|
+
if (!s)
|
|
2171
2186
|
return p;
|
|
2172
|
-
const n = async (u) => cn, { type: r, content: o } =
|
|
2187
|
+
const n = async (u) => cn, { type: r, content: o } = s;
|
|
2173
2188
|
switch (r) {
|
|
2174
2189
|
case "Telia": {
|
|
2175
2190
|
const u = await n();
|
|
@@ -2190,20 +2205,20 @@ class T extends x {
|
|
|
2190
2205
|
this.triggerVisible = !0;
|
|
2191
2206
|
}
|
|
2192
2207
|
render() {
|
|
2193
|
-
var t, e,
|
|
2208
|
+
var t, e, s, n;
|
|
2194
2209
|
return E`<div
|
|
2195
|
-
class=${
|
|
2210
|
+
class=${Ie({
|
|
2196
2211
|
"trigger-container": !0,
|
|
2197
2212
|
hidden: !this.triggerVisible
|
|
2198
2213
|
})}
|
|
2199
|
-
${
|
|
2214
|
+
${ie(this.containerRef)}
|
|
2200
2215
|
>
|
|
2201
|
-
${!this.active && ((n = (
|
|
2216
|
+
${!this.active && ((n = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && n.showButtonLabel) ? E`
|
|
2202
2217
|
<button
|
|
2203
2218
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
|
2204
2219
|
class="trigger-label"
|
|
2205
2220
|
@click=${this.toggleActive}
|
|
2206
|
-
${
|
|
2221
|
+
${Si({
|
|
2207
2222
|
keyframeOptions: {},
|
|
2208
2223
|
in: rn,
|
|
2209
2224
|
stabilizeOut: !0,
|
|
@@ -2216,7 +2231,7 @@ class T extends x {
|
|
|
2216
2231
|
|
|
2217
2232
|
<button
|
|
2218
2233
|
label="Widget trigger"
|
|
2219
|
-
class=${
|
|
2234
|
+
class=${Ie({
|
|
2220
2235
|
trigger: !0,
|
|
2221
2236
|
active: this.active,
|
|
2222
2237
|
rendered: this.loaded
|
|
@@ -2402,27 +2417,27 @@ ot([
|
|
|
2402
2417
|
ot([
|
|
2403
2418
|
N()
|
|
2404
2419
|
], T.prototype, "icon", 2);
|
|
2405
|
-
var fn = Object.defineProperty, pn = Object.getOwnPropertyDescriptor,
|
|
2406
|
-
for (var n =
|
|
2407
|
-
(o =
|
|
2408
|
-
return
|
|
2420
|
+
var fn = Object.defineProperty, pn = Object.getOwnPropertyDescriptor, I = (i, t, e, s) => {
|
|
2421
|
+
for (var n = s > 1 ? void 0 : s ? pn(t, e) : t, r = i.length - 1, o; r >= 0; r--)
|
|
2422
|
+
(o = i[r]) && (n = (s ? o(t, e, n) : o(n)) || n);
|
|
2423
|
+
return s && n && fn(t, e, n), n;
|
|
2409
2424
|
};
|
|
2410
|
-
const
|
|
2411
|
-
class t extends
|
|
2425
|
+
const Ei = (i) => {
|
|
2426
|
+
class t extends i {
|
|
2412
2427
|
constructor() {
|
|
2413
2428
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
|
2414
2429
|
}
|
|
2415
|
-
writeProperties(
|
|
2416
|
-
this.properties =
|
|
2430
|
+
writeProperties(s) {
|
|
2431
|
+
this.properties = s;
|
|
2417
2432
|
}
|
|
2418
|
-
writeLayout(
|
|
2419
|
-
this.layout =
|
|
2433
|
+
writeLayout(s) {
|
|
2434
|
+
this.layout = s;
|
|
2420
2435
|
}
|
|
2421
|
-
writeContext(
|
|
2422
|
-
this.context =
|
|
2436
|
+
writeContext(s) {
|
|
2437
|
+
this.context = s;
|
|
2423
2438
|
}
|
|
2424
|
-
addChild(
|
|
2425
|
-
|
|
2439
|
+
addChild(s) {
|
|
2440
|
+
s.parent = this, this.nodes.push(s);
|
|
2426
2441
|
}
|
|
2427
2442
|
connectedCallback() {
|
|
2428
2443
|
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
|
@@ -2446,28 +2461,28 @@ const Es = (s) => {
|
|
|
2446
2461
|
box-sizing: border-box;
|
|
2447
2462
|
}
|
|
2448
2463
|
`
|
|
2449
|
-
],
|
|
2464
|
+
], I([
|
|
2450
2465
|
b()
|
|
2451
|
-
], t.prototype, "properties", 2),
|
|
2466
|
+
], t.prototype, "properties", 2), I([
|
|
2452
2467
|
b()
|
|
2453
|
-
], t.prototype, "context", 2),
|
|
2468
|
+
], t.prototype, "context", 2), I([
|
|
2454
2469
|
b()
|
|
2455
|
-
], t.prototype, "layout", 2),
|
|
2470
|
+
], t.prototype, "layout", 2), I([
|
|
2456
2471
|
b()
|
|
2457
|
-
], t.prototype, "name", 2),
|
|
2472
|
+
], t.prototype, "name", 2), I([
|
|
2458
2473
|
b()
|
|
2459
|
-
], t.prototype, "type", 2),
|
|
2474
|
+
], t.prototype, "type", 2), I([
|
|
2460
2475
|
b({ attribute: !1 })
|
|
2461
|
-
], t.prototype, "application", 2),
|
|
2476
|
+
], t.prototype, "application", 2), I([
|
|
2462
2477
|
b({ attribute: !1 })
|
|
2463
2478
|
], t.prototype, "parent", 2), t;
|
|
2464
2479
|
};
|
|
2465
|
-
class
|
|
2480
|
+
class Ci extends Ei(x) {
|
|
2466
2481
|
render() {
|
|
2467
2482
|
return E`Non resolved component`;
|
|
2468
2483
|
}
|
|
2469
2484
|
}
|
|
2470
|
-
|
|
2485
|
+
Ci.styles = [
|
|
2471
2486
|
M`
|
|
2472
2487
|
:host {
|
|
2473
2488
|
display: block;
|
|
@@ -2479,22 +2494,22 @@ Cs.styles = [
|
|
|
2479
2494
|
* Copyright 2021 Google LLC
|
|
2480
2495
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2481
2496
|
*/
|
|
2482
|
-
function* gn(
|
|
2483
|
-
if (
|
|
2497
|
+
function* gn(i, t) {
|
|
2498
|
+
if (i !== void 0) {
|
|
2484
2499
|
let e = 0;
|
|
2485
|
-
for (const
|
|
2486
|
-
yield t(
|
|
2500
|
+
for (const s of i)
|
|
2501
|
+
yield t(s, e++);
|
|
2487
2502
|
}
|
|
2488
2503
|
}
|
|
2489
|
-
var
|
|
2504
|
+
var se = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(se || {});
|
|
2490
2505
|
/**
|
|
2491
2506
|
* @license
|
|
2492
2507
|
* Copyright 2021 Google LLC
|
|
2493
2508
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2494
2509
|
*/
|
|
2495
2510
|
let $n = class extends Event {
|
|
2496
|
-
constructor(t, e,
|
|
2497
|
-
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe =
|
|
2511
|
+
constructor(t, e, s) {
|
|
2512
|
+
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = s ?? !1;
|
|
2498
2513
|
}
|
|
2499
2514
|
};
|
|
2500
2515
|
/**
|
|
@@ -2515,17 +2530,17 @@ class vn {
|
|
|
2515
2530
|
this.setValue(t);
|
|
2516
2531
|
}
|
|
2517
2532
|
setValue(t, e = !1) {
|
|
2518
|
-
const
|
|
2519
|
-
this.o = t,
|
|
2533
|
+
const s = e || !Object.is(t, this.o);
|
|
2534
|
+
this.o = t, s && this.updateObservers();
|
|
2520
2535
|
}
|
|
2521
2536
|
constructor(t) {
|
|
2522
2537
|
this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
|
|
2523
|
-
for (const [e, { disposer:
|
|
2524
|
-
e(this.o,
|
|
2538
|
+
for (const [e, { disposer: s }] of this.subscriptions)
|
|
2539
|
+
e(this.o, s);
|
|
2525
2540
|
}, t !== void 0 && (this.value = t);
|
|
2526
2541
|
}
|
|
2527
|
-
addCallback(t, e,
|
|
2528
|
-
if (!
|
|
2542
|
+
addCallback(t, e, s) {
|
|
2543
|
+
if (!s)
|
|
2529
2544
|
return void t(this.value);
|
|
2530
2545
|
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
|
2531
2546
|
this.subscriptions.delete(t);
|
|
@@ -2547,10 +2562,10 @@ let mn = class extends Event {
|
|
|
2547
2562
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
|
2548
2563
|
}
|
|
2549
2564
|
};
|
|
2550
|
-
class
|
|
2551
|
-
constructor(t, e,
|
|
2565
|
+
class Le extends vn {
|
|
2566
|
+
constructor(t, e, s) {
|
|
2552
2567
|
var n, r;
|
|
2553
|
-
super(e.context !== void 0 ? e.initialValue :
|
|
2568
|
+
super(e.context !== void 0 ? e.initialValue : s), this.onContextRequest = (o) => {
|
|
2554
2569
|
const a = o.composedPath()[0];
|
|
2555
2570
|
o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
|
2556
2571
|
}, this.onProviderRequest = (o) => {
|
|
@@ -2575,24 +2590,24 @@ class Ie extends vn {
|
|
|
2575
2590
|
* Copyright 2017 Google LLC
|
|
2576
2591
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2577
2592
|
*/
|
|
2578
|
-
function yn({ context:
|
|
2593
|
+
function yn({ context: i }) {
|
|
2579
2594
|
return (t, e) => {
|
|
2580
|
-
const
|
|
2595
|
+
const s = /* @__PURE__ */ new WeakMap();
|
|
2581
2596
|
if (typeof e == "object")
|
|
2582
2597
|
return e.addInitializer(function() {
|
|
2583
|
-
|
|
2598
|
+
s.set(this, new Le(this, { context: i }));
|
|
2584
2599
|
}), { get() {
|
|
2585
2600
|
return t.get.call(this);
|
|
2586
2601
|
}, set(n) {
|
|
2587
2602
|
var r;
|
|
2588
|
-
return (r =
|
|
2603
|
+
return (r = s.get(this)) == null || r.setValue(n), t.set.call(this, n);
|
|
2589
2604
|
}, init(n) {
|
|
2590
2605
|
var r;
|
|
2591
|
-
return (r =
|
|
2606
|
+
return (r = s.get(this)) == null || r.setValue(n), n;
|
|
2592
2607
|
} };
|
|
2593
2608
|
{
|
|
2594
2609
|
t.constructor.addInitializer((o) => {
|
|
2595
|
-
|
|
2610
|
+
s.set(o, new Le(o, { context: i }));
|
|
2596
2611
|
});
|
|
2597
2612
|
const n = Object.getOwnPropertyDescriptor(t, e);
|
|
2598
2613
|
let r;
|
|
@@ -2601,22 +2616,22 @@ function yn({ context: s }) {
|
|
|
2601
2616
|
r = { get: function() {
|
|
2602
2617
|
return o.get(this);
|
|
2603
2618
|
}, set: function(a) {
|
|
2604
|
-
|
|
2619
|
+
s.get(this).setValue(a), o.set(this, a);
|
|
2605
2620
|
}, configurable: !0, enumerable: !0 };
|
|
2606
2621
|
} else {
|
|
2607
2622
|
const o = n.set;
|
|
2608
2623
|
r = { ...n, set: function(a) {
|
|
2609
|
-
|
|
2624
|
+
s.get(this).setValue(a), o == null || o.call(this, a);
|
|
2610
2625
|
} };
|
|
2611
2626
|
}
|
|
2612
2627
|
return void Object.defineProperty(t, e, r);
|
|
2613
2628
|
}
|
|
2614
2629
|
};
|
|
2615
2630
|
}
|
|
2616
|
-
var bn = Object.defineProperty, _n = Object.getOwnPropertyDescriptor, wn = (
|
|
2617
|
-
for (var n =
|
|
2618
|
-
(o =
|
|
2619
|
-
return
|
|
2631
|
+
var bn = Object.defineProperty, _n = Object.getOwnPropertyDescriptor, wn = (i, t, e, s) => {
|
|
2632
|
+
for (var n = s > 1 ? void 0 : s ? _n(t, e) : t, r = i.length - 1, o; r >= 0; r--)
|
|
2633
|
+
(o = i[r]) && (n = (s ? o(t, e, n) : o(n)) || n);
|
|
2634
|
+
return s && n && bn(t, e, n), n;
|
|
2620
2635
|
};
|
|
2621
2636
|
const xn = "application";
|
|
2622
2637
|
class ne extends x {
|
|
@@ -2630,23 +2645,23 @@ class ne extends x {
|
|
|
2630
2645
|
if (!this.wrapperRef.value)
|
|
2631
2646
|
return;
|
|
2632
2647
|
const t = this.application.settings;
|
|
2633
|
-
t != null && t.branding &&
|
|
2648
|
+
t != null && t.branding && Ai(t.branding, this.wrapperRef.value);
|
|
2634
2649
|
}
|
|
2635
2650
|
applyStyles() {
|
|
2636
2651
|
if (!this.wrapperRef.value)
|
|
2637
2652
|
return;
|
|
2638
2653
|
const t = this.application.styles(), e = this.wrapperRef.value;
|
|
2639
|
-
Object.entries(t).forEach(([
|
|
2640
|
-
e.style.setProperty(`--${
|
|
2654
|
+
Object.entries(t).forEach(([s, n]) => {
|
|
2655
|
+
e.style.setProperty(`--${s}`, n);
|
|
2641
2656
|
});
|
|
2642
2657
|
}
|
|
2643
2658
|
firstUpdated(t) {
|
|
2644
2659
|
this.applyBranding(), this.applyStyles();
|
|
2645
2660
|
}
|
|
2646
2661
|
render() {
|
|
2647
|
-
var
|
|
2662
|
+
var s, n;
|
|
2648
2663
|
const t = this.application.settings.components.conversation;
|
|
2649
|
-
return ((n = (
|
|
2664
|
+
return ((n = (s = t == null ? void 0 : t.properties) == null ? void 0 : s.chat) == null ? void 0 : n.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === se.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top ? (console.log("This page is embedded in an iframe."), this.renderRoot.host.classList.add("embedded")) : console.log("This page is not embedded in an iframe."), E`<div class="widget-container" ${ie(this.wrapperRef)}>
|
|
2650
2665
|
${gn(this.nodes, (r) => r)}
|
|
2651
2666
|
</div>`;
|
|
2652
2667
|
}
|
|
@@ -2696,6 +2711,23 @@ ne.styles = M`
|
|
|
2696
2711
|
position: fixed;
|
|
2697
2712
|
}
|
|
2698
2713
|
|
|
2714
|
+
:host(.embedded) {
|
|
2715
|
+
padding: 40px !important;
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2718
|
+
@media screen and (max-device-width: 800px) {
|
|
2719
|
+
:host(.embedded) {
|
|
2720
|
+
padding: 0 !important;
|
|
2721
|
+
}
|
|
2722
|
+
:host(.embedded) .widget-container {
|
|
2723
|
+
border-radius: none !important;
|
|
2724
|
+
}
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
:host(.embedded) .widget-container {
|
|
2728
|
+
border-radius: var(--border-radius) !important;
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2699
2731
|
@media screen and (max-width: 800px) {
|
|
2700
2732
|
:host(.floating) {
|
|
2701
2733
|
inset: 0;
|
|
@@ -2791,10 +2823,10 @@ wn([
|
|
|
2791
2823
|
b({ attribute: !1 }),
|
|
2792
2824
|
yn({ context: xn })
|
|
2793
2825
|
], ne.prototype, "application", 2);
|
|
2794
|
-
var Sn = Object.defineProperty, An = Object.getOwnPropertyDescriptor, re = (
|
|
2795
|
-
for (var n =
|
|
2796
|
-
(o =
|
|
2797
|
-
return
|
|
2826
|
+
var Sn = Object.defineProperty, An = Object.getOwnPropertyDescriptor, re = (i, t, e, s) => {
|
|
2827
|
+
for (var n = s > 1 ? void 0 : s ? An(t, e) : t, r = i.length - 1, o; r >= 0; r--)
|
|
2828
|
+
(o = i[r]) && (n = (s ? o(t, e, n) : o(n)) || n);
|
|
2829
|
+
return s && n && Sn(t, e, n), n;
|
|
2798
2830
|
};
|
|
2799
2831
|
class at extends x {
|
|
2800
2832
|
constructor() {
|
|
@@ -2821,7 +2853,7 @@ class at extends x {
|
|
|
2821
2853
|
render() {
|
|
2822
2854
|
if (!this.widget || this.status !== "activated")
|
|
2823
2855
|
return p;
|
|
2824
|
-
if (this.widget.renderStrategy ===
|
|
2856
|
+
if (this.widget.renderStrategy === se.Trigger) {
|
|
2825
2857
|
const t = new T();
|
|
2826
2858
|
return t.application = this.widget, t;
|
|
2827
2859
|
}
|
|
@@ -2846,13 +2878,13 @@ re([
|
|
|
2846
2878
|
], at.prototype, "status", 2);
|
|
2847
2879
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Vt);
|
|
2848
2880
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", T);
|
|
2849
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
|
2881
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Ci);
|
|
2850
2882
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", ne);
|
|
2851
2883
|
customElements.get("ace-widget") || customElements.define("ace-widget", at);
|
|
2852
2884
|
const En = () => crypto.randomUUID();
|
|
2853
2885
|
class Cn {
|
|
2854
|
-
constructor(t, e,
|
|
2855
|
-
this.label = t, this.icon = e, this.onClick =
|
|
2886
|
+
constructor(t, e, s, n, r, o, a = !0) {
|
|
2887
|
+
this.label = t, this.icon = e, this.onClick = s, this.closeOnClick = n, this.key = r, this.update = new Ct(), this.id = En(), this._controller = o, this.enabled = a;
|
|
2856
2888
|
}
|
|
2857
2889
|
updateLabel(t) {
|
|
2858
2890
|
this.label = t, this.update.next();
|
|
@@ -2893,7 +2925,7 @@ class kn {
|
|
|
2893
2925
|
handleUpdate() {
|
|
2894
2926
|
this._subscription && this._subscription.unsubscribe();
|
|
2895
2927
|
const t = this._options.map((e) => e.subscribe());
|
|
2896
|
-
this._subscription =
|
|
2928
|
+
this._subscription = ks(t).subscribe(() => {
|
|
2897
2929
|
this._host.requestUpdate();
|
|
2898
2930
|
});
|
|
2899
2931
|
}
|
|
@@ -2991,69 +3023,69 @@ const H = {
|
|
|
2991
3023
|
transformTagName: !1,
|
|
2992
3024
|
attachStyles: !0
|
|
2993
3025
|
};
|
|
2994
|
-
let B,
|
|
2995
|
-
const Tt = typeof window < "u" ? window : {}, S = Tt.document || { head: {} },
|
|
3026
|
+
let B, ki, Ot, Oi = !1, _t = !1, oe = !1, y = !1, Re = null, Yt = !1;
|
|
3027
|
+
const Tt = typeof window < "u" ? window : {}, S = Tt.document || { head: {} }, Ti = Tt.HTMLElement || class {
|
|
2996
3028
|
}, m = {
|
|
2997
3029
|
$flags$: 0,
|
|
2998
3030
|
$resourcesUrl$: "",
|
|
2999
|
-
jmp: (
|
|
3000
|
-
raf: (
|
|
3001
|
-
ael: (
|
|
3002
|
-
rel: (
|
|
3003
|
-
ce: (
|
|
3031
|
+
jmp: (i) => i(),
|
|
3032
|
+
raf: (i) => requestAnimationFrame(i),
|
|
3033
|
+
ael: (i, t, e, s) => i.addEventListener(t, e, s),
|
|
3034
|
+
rel: (i, t, e, s) => i.removeEventListener(t, e, s),
|
|
3035
|
+
ce: (i, t) => new CustomEvent(i, t)
|
|
3004
3036
|
}, On = /* @__PURE__ */ (() => {
|
|
3005
|
-
let
|
|
3037
|
+
let i = !1;
|
|
3006
3038
|
try {
|
|
3007
3039
|
S.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
|
3008
3040
|
get() {
|
|
3009
|
-
|
|
3041
|
+
i = !0;
|
|
3010
3042
|
}
|
|
3011
3043
|
}));
|
|
3012
3044
|
} catch {
|
|
3013
3045
|
}
|
|
3014
|
-
return
|
|
3015
|
-
})(), Tn = (
|
|
3046
|
+
return i;
|
|
3047
|
+
})(), Tn = (i) => Promise.resolve(i), Pn = /* @__PURE__ */ (() => {
|
|
3016
3048
|
try {
|
|
3017
3049
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
|
3018
3050
|
} catch {
|
|
3019
3051
|
}
|
|
3020
3052
|
return !1;
|
|
3021
|
-
})(),
|
|
3053
|
+
})(), Pi = (i, t, e, s) => {
|
|
3022
3054
|
e && e.map(([n, r, o]) => {
|
|
3023
|
-
const a =
|
|
3055
|
+
const a = Ln(i, n), l = In(t, o), c = Rn(n);
|
|
3024
3056
|
m.ael(a, r, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => m.rel(a, r, l, c));
|
|
3025
3057
|
});
|
|
3026
|
-
},
|
|
3058
|
+
}, In = (i, t) => (e) => {
|
|
3027
3059
|
try {
|
|
3028
|
-
H.lazyLoad ||
|
|
3029
|
-
} catch (
|
|
3030
|
-
lt(
|
|
3031
|
-
}
|
|
3032
|
-
},
|
|
3033
|
-
passive: (
|
|
3034
|
-
capture: (
|
|
3035
|
-
} : (
|
|
3036
|
-
}, je = /* @__PURE__ */ new WeakMap(), Un = (
|
|
3037
|
-
let
|
|
3038
|
-
Pn && e ? (
|
|
3039
|
-
}, jn = (
|
|
3040
|
-
let n =
|
|
3041
|
-
if (
|
|
3060
|
+
H.lazyLoad || i.$hostElement$[t](e);
|
|
3061
|
+
} catch (s) {
|
|
3062
|
+
lt(s);
|
|
3063
|
+
}
|
|
3064
|
+
}, Ln = (i, t) => t & 4 ? S : t & 8 ? Tt : t & 16 ? S.body : i, Rn = (i) => On ? {
|
|
3065
|
+
passive: (i & 1) !== 0,
|
|
3066
|
+
capture: (i & 2) !== 0
|
|
3067
|
+
} : (i & 2) !== 0, Ue = "http://www.w3.org/1999/xlink", j = (i, t = "") => () => {
|
|
3068
|
+
}, je = /* @__PURE__ */ new WeakMap(), Un = (i, t, e) => {
|
|
3069
|
+
let s = St.get(i);
|
|
3070
|
+
Pn && e ? (s = s || new CSSStyleSheet(), s.replace(t)) : s = t, St.set(i, s);
|
|
3071
|
+
}, jn = (i, t, e, s) => {
|
|
3072
|
+
let n = Ii(t, e), r = St.get(n);
|
|
3073
|
+
if (i = i.nodeType === 11 ? i : S, r)
|
|
3042
3074
|
if (typeof r == "string") {
|
|
3043
|
-
|
|
3044
|
-
let o = je.get(
|
|
3045
|
-
o || je.set(
|
|
3075
|
+
i = i.head || i;
|
|
3076
|
+
let o = je.get(i), a;
|
|
3077
|
+
o || je.set(i, o = /* @__PURE__ */ new Set()), o.has(n) || (a = S.createElement("style"), a.innerHTML = r, i.insertBefore(a, i.querySelector("link")), o && o.add(n));
|
|
3046
3078
|
} else
|
|
3047
|
-
|
|
3079
|
+
i.adoptedStyleSheets.includes(r) || (i.adoptedStyleSheets = [...i.adoptedStyleSheets, r]);
|
|
3048
3080
|
return n;
|
|
3049
|
-
}, Mn = (
|
|
3050
|
-
const t =
|
|
3051
|
-
|
|
3052
|
-
},
|
|
3053
|
-
let
|
|
3081
|
+
}, Mn = (i) => {
|
|
3082
|
+
const t = i.$cmpMeta$, e = i.$hostElement$, s = t.$flags$, n = j("attachStyles", t.$tagName$), r = jn(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, i.$modeName$);
|
|
3083
|
+
s & 10 && (e["s-sc"] = r, e.classList.add(r + "-h"), s & 2 && e.classList.add(r + "-s")), n();
|
|
3084
|
+
}, Ii = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$), Nn = (i) => dr.map((t) => t(i)).find((t) => !!t), Me = {}, Dn = "http://www.w3.org/2000/svg", Hn = "http://www.w3.org/1999/xhtml", Bn = (i) => i != null, ae = (i) => (i = typeof i, i === "object" || i === "function"), W = (i, t, ...e) => {
|
|
3085
|
+
let s = null, n = null, r = null, o = !1, a = !1, l = [];
|
|
3054
3086
|
const c = (h) => {
|
|
3055
3087
|
for (let d = 0; d < h.length; d++)
|
|
3056
|
-
|
|
3088
|
+
s = h[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof i != "function" && !ae(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? wt(null, s) : s), a = o);
|
|
3057
3089
|
};
|
|
3058
3090
|
if (c(e), t) {
|
|
3059
3091
|
t.key && (n = t.key), t.name && (r = t.name);
|
|
@@ -3062,77 +3094,77 @@ const Tt = typeof window < "u" ? window : {}, S = Tt.document || { head: {} }, T
|
|
|
3062
3094
|
h && (t.class = typeof h != "object" ? h : Object.keys(h).filter((d) => h[d]).join(" "));
|
|
3063
3095
|
}
|
|
3064
3096
|
}
|
|
3065
|
-
if (typeof
|
|
3066
|
-
return
|
|
3067
|
-
const u = wt(
|
|
3097
|
+
if (typeof i == "function")
|
|
3098
|
+
return i(t === null ? {} : t, l, Fn);
|
|
3099
|
+
const u = wt(i, null);
|
|
3068
3100
|
return u.$attrs$ = t, l.length > 0 && (u.$children$ = l), u.$key$ = n, u.$name$ = r, u;
|
|
3069
|
-
}, wt = (
|
|
3101
|
+
}, wt = (i, t) => {
|
|
3070
3102
|
const e = {
|
|
3071
3103
|
$flags$: 0,
|
|
3072
|
-
$tag$:
|
|
3104
|
+
$tag$: i,
|
|
3073
3105
|
$text$: t,
|
|
3074
3106
|
$elm$: null,
|
|
3075
3107
|
$children$: null
|
|
3076
3108
|
};
|
|
3077
3109
|
return e.$attrs$ = null, e.$key$ = null, e.$name$ = null, e;
|
|
3078
|
-
}, le = {}, zn = (
|
|
3079
|
-
forEach: (
|
|
3080
|
-
map: (
|
|
3081
|
-
}, Ne = (
|
|
3082
|
-
vattrs:
|
|
3083
|
-
vchildren:
|
|
3084
|
-
vkey:
|
|
3085
|
-
vname:
|
|
3086
|
-
vtag:
|
|
3087
|
-
vtext:
|
|
3088
|
-
}), Wn = (
|
|
3089
|
-
if (typeof
|
|
3090
|
-
const e = Object.assign({},
|
|
3091
|
-
return
|
|
3092
|
-
}
|
|
3093
|
-
const t = wt(
|
|
3094
|
-
return t.$attrs$ =
|
|
3095
|
-
}, De = (
|
|
3096
|
-
if (e !==
|
|
3097
|
-
let o = Fe(
|
|
3110
|
+
}, le = {}, zn = (i) => i && i.$tag$ === le, Fn = {
|
|
3111
|
+
forEach: (i, t) => i.map(Ne).forEach(t),
|
|
3112
|
+
map: (i, t) => i.map(Ne).map(t).map(Wn)
|
|
3113
|
+
}, Ne = (i) => ({
|
|
3114
|
+
vattrs: i.$attrs$,
|
|
3115
|
+
vchildren: i.$children$,
|
|
3116
|
+
vkey: i.$key$,
|
|
3117
|
+
vname: i.$name$,
|
|
3118
|
+
vtag: i.$tag$,
|
|
3119
|
+
vtext: i.$text$
|
|
3120
|
+
}), Wn = (i) => {
|
|
3121
|
+
if (typeof i.vtag == "function") {
|
|
3122
|
+
const e = Object.assign({}, i.vattrs);
|
|
3123
|
+
return i.vkey && (e.key = i.vkey), i.vname && (e.name = i.vname), W(i.vtag, e, ...i.vchildren || []);
|
|
3124
|
+
}
|
|
3125
|
+
const t = wt(i.vtag, i.vtext);
|
|
3126
|
+
return t.$attrs$ = i.vattrs, t.$children$ = i.vchildren, t.$key$ = i.vkey, t.$name$ = i.vname, t;
|
|
3127
|
+
}, De = (i, t, e, s, n, r) => {
|
|
3128
|
+
if (e !== s) {
|
|
3129
|
+
let o = Fe(i, t), a = t.toLowerCase();
|
|
3098
3130
|
if (t === "class") {
|
|
3099
|
-
const l =
|
|
3131
|
+
const l = i.classList, c = He(e), u = He(s);
|
|
3100
3132
|
l.remove(...c.filter((h) => h && !u.includes(h))), l.add(...u.filter((h) => h && !c.includes(h)));
|
|
3101
3133
|
} else if (t === "style") {
|
|
3102
3134
|
for (const l in e)
|
|
3103
|
-
(!
|
|
3104
|
-
for (const l in
|
|
3105
|
-
(!e ||
|
|
3135
|
+
(!s || s[l] == null) && (l.includes("-") ? i.style.removeProperty(l) : i.style[l] = "");
|
|
3136
|
+
for (const l in s)
|
|
3137
|
+
(!e || s[l] !== e[l]) && (l.includes("-") ? i.style.setProperty(l, s[l]) : i.style[l] = s[l]);
|
|
3106
3138
|
} else if (t !== "key")
|
|
3107
3139
|
if (t === "ref")
|
|
3108
|
-
|
|
3109
|
-
else if (!
|
|
3110
|
-
t[2] === "-" ? t = t.slice(3) : Fe(Tt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && m.rel(
|
|
3140
|
+
s && s(i);
|
|
3141
|
+
else if (!i.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
|
|
3142
|
+
t[2] === "-" ? t = t.slice(3) : Fe(Tt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && m.rel(i, t, e, !1), s && m.ael(i, t, s, !1);
|
|
3111
3143
|
else {
|
|
3112
|
-
const l = ae(
|
|
3113
|
-
if ((o || l &&
|
|
3144
|
+
const l = ae(s);
|
|
3145
|
+
if ((o || l && s !== null) && !n)
|
|
3114
3146
|
try {
|
|
3115
|
-
if (
|
|
3116
|
-
|
|
3147
|
+
if (i.tagName.includes("-"))
|
|
3148
|
+
i[t] = s;
|
|
3117
3149
|
else {
|
|
3118
|
-
let u =
|
|
3119
|
-
t === "list" ? o = !1 : (e == null ||
|
|
3150
|
+
let u = s ?? "";
|
|
3151
|
+
t === "list" ? o = !1 : (e == null || i[t] != u) && (i[t] = u);
|
|
3120
3152
|
}
|
|
3121
3153
|
} catch {
|
|
3122
3154
|
}
|
|
3123
3155
|
let c = !1;
|
|
3124
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0),
|
|
3156
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), s == null || s === !1 ? (s !== !1 || i.getAttribute(t) === "") && (c ? i.removeAttributeNS(Ue, t) : i.removeAttribute(t)) : (!o || r & 4 || n) && !l && (s = s === !0 ? "" : s, c ? i.setAttributeNS(Ue, t, s) : i.setAttribute(t, s));
|
|
3125
3157
|
}
|
|
3126
3158
|
}
|
|
3127
|
-
}, Yn = /\s/, He = (
|
|
3128
|
-
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r =
|
|
3129
|
-
for (
|
|
3130
|
-
|
|
3131
|
-
for (
|
|
3132
|
-
De(n,
|
|
3133
|
-
}, xt = (
|
|
3159
|
+
}, Yn = /\s/, He = (i) => i ? i.split(Yn) : [], Li = (i, t, e, s) => {
|
|
3160
|
+
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = i && i.$attrs$ || Me, o = t.$attrs$ || Me;
|
|
3161
|
+
for (s in r)
|
|
3162
|
+
s in o || De(n, s, r[s], void 0, e, t.$flags$);
|
|
3163
|
+
for (s in o)
|
|
3164
|
+
De(n, s, r[s], o[s], e, t.$flags$);
|
|
3165
|
+
}, xt = (i, t, e, s) => {
|
|
3134
3166
|
let n = t.$children$[e], r = 0, o, a, l;
|
|
3135
|
-
if (
|
|
3167
|
+
if (Oi || (oe = !0, n.$tag$ === "slot" && (B && s.classList.add(B + "-s"), n.$flags$ |= n.$children$ ? (
|
|
3136
3168
|
// slot element has fallback content
|
|
3137
3169
|
2
|
|
3138
3170
|
) : (
|
|
@@ -3143,63 +3175,63 @@ const Tt = typeof window < "u" ? window : {}, S = Tt.document || { head: {} }, T
|
|
|
3143
3175
|
else if (n.$flags$ & 1)
|
|
3144
3176
|
o = n.$elm$ = S.createTextNode("");
|
|
3145
3177
|
else {
|
|
3146
|
-
if (y || (y = n.$tag$ === "svg"), o = n.$elm$ = S.createElementNS(y ? Dn : Hn, n.$flags$ & 2 ? "slot-fb" : n.$tag$), y && n.$tag$ === "foreignObject" && (y = !1),
|
|
3178
|
+
if (y || (y = n.$tag$ === "svg"), o = n.$elm$ = S.createElementNS(y ? Dn : Hn, n.$flags$ & 2 ? "slot-fb" : n.$tag$), y && n.$tag$ === "foreignObject" && (y = !1), Li(null, n, y), Bn(B) && o["s-si"] !== B && o.classList.add(o["s-si"] = B), n.$children$)
|
|
3147
3179
|
for (r = 0; r < n.$children$.length; ++r)
|
|
3148
|
-
a = xt(
|
|
3180
|
+
a = xt(i, n, r, o), a && o.appendChild(a);
|
|
3149
3181
|
n.$tag$ === "svg" ? y = !1 : o.tagName === "foreignObject" && (y = !0);
|
|
3150
3182
|
}
|
|
3151
|
-
return o["s-hn"] = Ot, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] =
|
|
3152
|
-
}, nt = (
|
|
3183
|
+
return o["s-hn"] = Ot, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = ki, o["s-sn"] = n.$name$ || "", l = i && i.$children$ && i.$children$[e], l && l.$tag$ === n.$tag$ && i.$elm$ && nt(i.$elm$, !1)), o;
|
|
3184
|
+
}, nt = (i, t) => {
|
|
3153
3185
|
m.$flags$ |= 1;
|
|
3154
|
-
const e =
|
|
3155
|
-
for (let
|
|
3156
|
-
const n = e[
|
|
3157
|
-
n["s-hn"] !== Ot && n["s-ol"] && (
|
|
3186
|
+
const e = i.childNodes;
|
|
3187
|
+
for (let s = e.length - 1; s >= 0; s--) {
|
|
3188
|
+
const n = e[s];
|
|
3189
|
+
n["s-hn"] !== Ot && n["s-ol"] && (ji(n).insertBefore(n, ce(n)), n["s-ol"].remove(), n["s-ol"] = void 0, oe = !0), t && nt(n, t);
|
|
3158
3190
|
}
|
|
3159
3191
|
m.$flags$ &= -2;
|
|
3160
|
-
},
|
|
3161
|
-
let o =
|
|
3192
|
+
}, Ri = (i, t, e, s, n, r) => {
|
|
3193
|
+
let o = i["s-cr"] && i["s-cr"].parentNode || i, a;
|
|
3162
3194
|
for (o.shadowRoot && o.tagName === Ot && (o = o.shadowRoot); n <= r; ++n)
|
|
3163
|
-
|
|
3164
|
-
},
|
|
3195
|
+
s[n] && (a = xt(null, e, n, i), a && (s[n].$elm$ = a, o.insertBefore(a, ce(t))));
|
|
3196
|
+
}, Ui = (i, t, e, s, n) => {
|
|
3165
3197
|
for (; t <= e; ++t)
|
|
3166
|
-
(
|
|
3167
|
-
}, qn = (
|
|
3168
|
-
let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], u = t[l], h =
|
|
3198
|
+
(s = i[t]) && (n = s.$elm$, Di(s), _t = !0, n["s-ol"] ? n["s-ol"].remove() : nt(n, !0), n.remove());
|
|
3199
|
+
}, qn = (i, t, e, s) => {
|
|
3200
|
+
let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], u = t[l], h = s.length - 1, d = s[0], f = s[h], $, g;
|
|
3169
3201
|
for (; n <= l && r <= h; )
|
|
3170
3202
|
if (c == null)
|
|
3171
3203
|
c = t[++n];
|
|
3172
3204
|
else if (u == null)
|
|
3173
3205
|
u = t[--l];
|
|
3174
3206
|
else if (d == null)
|
|
3175
|
-
d =
|
|
3207
|
+
d = s[++r];
|
|
3176
3208
|
else if (f == null)
|
|
3177
|
-
f =
|
|
3209
|
+
f = s[--h];
|
|
3178
3210
|
else if (ht(c, d))
|
|
3179
|
-
z(c, d), c = t[++n], d =
|
|
3211
|
+
z(c, d), c = t[++n], d = s[++r];
|
|
3180
3212
|
else if (ht(u, f))
|
|
3181
|
-
z(u, f), u = t[--l], f =
|
|
3213
|
+
z(u, f), u = t[--l], f = s[--h];
|
|
3182
3214
|
else if (ht(c, f))
|
|
3183
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && nt(c.$elm$.parentNode, !1), z(c, f),
|
|
3215
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && nt(c.$elm$.parentNode, !1), z(c, f), i.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++n], f = s[--h];
|
|
3184
3216
|
else if (ht(u, d))
|
|
3185
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && nt(u.$elm$.parentNode, !1), z(u, d),
|
|
3217
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && nt(u.$elm$.parentNode, !1), z(u, d), i.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = s[++r];
|
|
3186
3218
|
else {
|
|
3187
3219
|
for (o = -1, a = n; a <= l; ++a)
|
|
3188
3220
|
if (t[a] && t[a].$key$ !== null && t[a].$key$ === d.$key$) {
|
|
3189
3221
|
o = a;
|
|
3190
3222
|
break;
|
|
3191
3223
|
}
|
|
3192
|
-
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? $ = xt(t && t[r], e, o,
|
|
3224
|
+
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? $ = xt(t && t[r], e, o, i) : (z(g, d), t[o] = void 0, $ = g.$elm$), d = s[++r]) : ($ = xt(t && t[r], e, r, i), d = s[++r]), $ && ji(c.$elm$).insertBefore($, ce(c.$elm$));
|
|
3193
3225
|
}
|
|
3194
|
-
n > l ?
|
|
3195
|
-
}, ht = (
|
|
3196
|
-
const e = t.$elm$ =
|
|
3226
|
+
n > l ? Ri(i, s[h + 1] == null ? null : s[h + 1].$elm$, e, s, r, h) : r > h && Ui(t, n, l);
|
|
3227
|
+
}, ht = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, ce = (i) => i && i["s-ol"] || i, ji = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode, z = (i, t) => {
|
|
3228
|
+
const e = t.$elm$ = i.$elm$, s = i.$children$, n = t.$children$, r = t.$tag$, o = t.$text$;
|
|
3197
3229
|
let a;
|
|
3198
|
-
o === null ? (y = r === "svg" ? !0 : r === "foreignObject" ? !1 : y, r === "slot" ||
|
|
3199
|
-
},
|
|
3200
|
-
let t =
|
|
3201
|
-
for (
|
|
3202
|
-
if (e = t[
|
|
3230
|
+
o === null ? (y = r === "svg" ? !0 : r === "foreignObject" ? !1 : y, r === "slot" || Li(i, t, y), s !== null && n !== null ? qn(e, s, t, n) : n !== null ? (i.$text$ !== null && (e.textContent = ""), Ri(e, null, t, n, 0, n.length - 1)) : s !== null && Ui(s, 0, s.length - 1), y && r === "svg" && (y = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : i.$text$ !== o && (e.data = o);
|
|
3231
|
+
}, Mi = (i) => {
|
|
3232
|
+
let t = i.childNodes, e, s, n, r, o, a;
|
|
3233
|
+
for (s = 0, n = t.length; s < n; s++)
|
|
3234
|
+
if (e = t[s], e.nodeType === 1) {
|
|
3203
3235
|
if (e["s-sr"]) {
|
|
3204
3236
|
for (o = e["s-sn"], e.hidden = !1, r = 0; r < n; r++)
|
|
3205
3237
|
if (a = t[r].nodeType, t[r]["s-hn"] !== e["s-hn"] || o !== "") {
|
|
@@ -3212,14 +3244,14 @@ const Tt = typeof window < "u" ? window : {}, S = Tt.document || { head: {} }, T
|
|
|
3212
3244
|
break;
|
|
3213
3245
|
}
|
|
3214
3246
|
}
|
|
3215
|
-
|
|
3247
|
+
Mi(e);
|
|
3216
3248
|
}
|
|
3217
|
-
}, w = [],
|
|
3218
|
-
let t, e,
|
|
3249
|
+
}, w = [], Ni = (i) => {
|
|
3250
|
+
let t, e, s, n, r, o, a = 0, l = i.childNodes, c = l.length;
|
|
3219
3251
|
for (; a < c; a++) {
|
|
3220
3252
|
if (t = l[a], t["s-sr"] && (e = t["s-cr"]) && e.parentNode)
|
|
3221
|
-
for (
|
|
3222
|
-
e =
|
|
3253
|
+
for (s = e.parentNode.childNodes, n = t["s-sn"], o = s.length - 1; o >= 0; o--)
|
|
3254
|
+
e = s[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (Be(e, n) ? (r = w.find((u) => u.$nodeToRelocate$ === e), _t = !0, e["s-sn"] = e["s-sn"] || n, r ? r.$slotRefNode$ = t : w.push({
|
|
3223
3255
|
$slotRefNode$: t,
|
|
3224
3256
|
$nodeToRelocate$: e
|
|
3225
3257
|
}), e["s-sr"] && w.map((u) => {
|
|
@@ -3227,16 +3259,16 @@ const Tt = typeof window < "u" ? window : {}, S = Tt.document || { head: {} }, T
|
|
|
3227
3259
|
})) : w.some((u) => u.$nodeToRelocate$ === e) || w.push({
|
|
3228
3260
|
$nodeToRelocate$: e
|
|
3229
3261
|
}));
|
|
3230
|
-
t.nodeType === 1 &&
|
|
3262
|
+
t.nodeType === 1 && Ni(t);
|
|
3231
3263
|
}
|
|
3232
|
-
}, Be = (
|
|
3233
|
-
|
|
3234
|
-
}, Gn = (
|
|
3235
|
-
const e =
|
|
3236
|
-
Ot = e.tagName,
|
|
3264
|
+
}, Be = (i, t) => i.nodeType === 1 ? i.getAttribute("slot") === null && t === "" || i.getAttribute("slot") === t : i["s-sn"] === t ? !0 : t === "", Di = (i) => {
|
|
3265
|
+
i.$attrs$ && i.$attrs$.ref && i.$attrs$.ref(null), i.$children$ && i.$children$.map(Di);
|
|
3266
|
+
}, Gn = (i, t) => {
|
|
3267
|
+
const e = i.$hostElement$, s = i.$cmpMeta$, n = i.$vnode$ || wt(null, null), r = zn(t) ? t : W(null, null, t);
|
|
3268
|
+
Ot = e.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = e[o])), r.$tag$ = null, r.$flags$ |= 4, i.$vnode$ = r, r.$elm$ = n.$elm$ = e.shadowRoot || e, B = e["s-sc"], ki = e["s-cr"], Oi = (s.$flags$ & 1) !== 0, _t = !1, z(n, r);
|
|
3237
3269
|
{
|
|
3238
3270
|
if (m.$flags$ |= 1, oe) {
|
|
3239
|
-
|
|
3271
|
+
Ni(r.$elm$);
|
|
3240
3272
|
let o, a, l, c, u, h, d = 0;
|
|
3241
3273
|
for (; d < w.length; d++)
|
|
3242
3274
|
o = w[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = S.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
|
@@ -3251,57 +3283,57 @@ const Tt = typeof window < "u" ? window : {}, S = Tt.document || { head: {} }, T
|
|
|
3251
3283
|
} else
|
|
3252
3284
|
a.nodeType === 1 && (a.hidden = !0);
|
|
3253
3285
|
}
|
|
3254
|
-
_t &&
|
|
3286
|
+
_t && Mi(r.$elm$), m.$flags$ &= -2, w.length = 0;
|
|
3255
3287
|
}
|
|
3256
|
-
}, Kn = (
|
|
3257
|
-
const
|
|
3288
|
+
}, Kn = (i) => i, Xn = (i, t, e) => {
|
|
3289
|
+
const s = Kn(i);
|
|
3258
3290
|
return {
|
|
3259
|
-
emit: (n) => Zn(
|
|
3291
|
+
emit: (n) => Zn(s, t, {
|
|
3260
3292
|
bubbles: !!(e & 4),
|
|
3261
3293
|
composed: !!(e & 2),
|
|
3262
3294
|
cancelable: !!(e & 1),
|
|
3263
3295
|
detail: n
|
|
3264
3296
|
})
|
|
3265
3297
|
};
|
|
3266
|
-
}, Zn = (
|
|
3267
|
-
const
|
|
3268
|
-
return
|
|
3269
|
-
}, Qn = (
|
|
3270
|
-
},
|
|
3271
|
-
const e =
|
|
3298
|
+
}, Zn = (i, t, e) => {
|
|
3299
|
+
const s = m.ce(t, e);
|
|
3300
|
+
return i.dispatchEvent(s), s;
|
|
3301
|
+
}, Qn = (i, t) => {
|
|
3302
|
+
}, Hi = (i, t) => (i.$flags$ |= 16, Qn(i, i.$ancestorComponent$), gr(() => Jn(i, t))), Jn = (i, t) => {
|
|
3303
|
+
const e = i.$hostElement$, s = j("scheduleUpdate", i.$cmpMeta$.$tagName$), n = e;
|
|
3272
3304
|
let r;
|
|
3273
|
-
return t ? r = Y(n, "componentWillLoad") : r = Y(n, "componentWillUpdate"), r = ze(r, () => Y(n, "componentWillRender")),
|
|
3274
|
-
}, Vn = async (
|
|
3275
|
-
const
|
|
3276
|
-
|
|
3277
|
-
const r = j("render",
|
|
3278
|
-
tr(
|
|
3279
|
-
}, tr = (
|
|
3305
|
+
return t ? r = Y(n, "componentWillLoad") : r = Y(n, "componentWillUpdate"), r = ze(r, () => Y(n, "componentWillRender")), s(), ze(r, () => Vn(i, n, t));
|
|
3306
|
+
}, Vn = async (i, t, e) => {
|
|
3307
|
+
const s = i.$hostElement$, n = j("update", i.$cmpMeta$.$tagName$);
|
|
3308
|
+
s["s-rc"], e && Mn(i);
|
|
3309
|
+
const r = j("render", i.$cmpMeta$.$tagName$);
|
|
3310
|
+
tr(i, t, s), r(), n(), er(i);
|
|
3311
|
+
}, tr = (i, t, e) => {
|
|
3280
3312
|
try {
|
|
3281
|
-
Re = t, t = t.render && t.render(),
|
|
3313
|
+
Re = t, t = t.render && t.render(), i.$flags$ &= -17, i.$flags$ |= 2, (H.hasRenderFn || H.reflect) && (H.vdomRender || H.reflect) && (H.hydrateServerSide || Gn(i, t));
|
|
3282
3314
|
} catch (a) {
|
|
3283
|
-
lt(a,
|
|
3315
|
+
lt(a, i.$hostElement$);
|
|
3284
3316
|
}
|
|
3285
3317
|
return Re = null, null;
|
|
3286
|
-
}, er = (
|
|
3287
|
-
const t =
|
|
3288
|
-
|
|
3289
|
-
}, Y = (
|
|
3290
|
-
if (
|
|
3318
|
+
}, er = (i) => {
|
|
3319
|
+
const t = i.$cmpMeta$.$tagName$, e = i.$hostElement$, s = j("postUpdate", t), n = e;
|
|
3320
|
+
i.$ancestorComponent$, Y(n, "componentDidRender"), i.$flags$ & 64 ? (Y(n, "componentDidUpdate"), s()) : (i.$flags$ |= 64, Y(n, "componentDidLoad"), s());
|
|
3321
|
+
}, Y = (i, t, e) => {
|
|
3322
|
+
if (i && i[t])
|
|
3291
3323
|
try {
|
|
3292
|
-
return
|
|
3293
|
-
} catch (
|
|
3294
|
-
lt(
|
|
3324
|
+
return i[t](e);
|
|
3325
|
+
} catch (s) {
|
|
3326
|
+
lt(s);
|
|
3295
3327
|
}
|
|
3296
|
-
}, ze = (
|
|
3297
|
-
const n = Pt(
|
|
3298
|
-
e =
|
|
3328
|
+
}, ze = (i, t) => i && i.then ? i.then(t) : t(), ir = (i, t) => i != null && !ae(i) ? t & 4 ? i === "false" ? !1 : i === "" || !!i : t & 2 ? parseFloat(i) : t & 1 ? String(i) : i : i, sr = (i, t) => Pt(i).$instanceValues$.get(t), nr = (i, t, e, s) => {
|
|
3329
|
+
const n = Pt(i), r = i, o = n.$instanceValues$.get(t), a = n.$flags$, l = r;
|
|
3330
|
+
e = ir(e, s.$members$[t][0]);
|
|
3299
3331
|
const c = Number.isNaN(o) && Number.isNaN(e);
|
|
3300
3332
|
if (e !== o && !c) {
|
|
3301
3333
|
n.$instanceValues$.set(t, e);
|
|
3302
3334
|
{
|
|
3303
|
-
if (
|
|
3304
|
-
const h =
|
|
3335
|
+
if (s.$watchers$ && a & 128) {
|
|
3336
|
+
const h = s.$watchers$[t];
|
|
3305
3337
|
h && h.map((d) => {
|
|
3306
3338
|
try {
|
|
3307
3339
|
l[d](e, o, t);
|
|
@@ -3313,18 +3345,18 @@ const Tt = typeof window < "u" ? window : {}, S = Tt.document || { head: {} }, T
|
|
|
3313
3345
|
if ((a & 18) === 2) {
|
|
3314
3346
|
if (l.componentShouldUpdate && l.componentShouldUpdate(e, o, t) === !1)
|
|
3315
3347
|
return;
|
|
3316
|
-
|
|
3348
|
+
Hi(n, !1);
|
|
3317
3349
|
}
|
|
3318
3350
|
}
|
|
3319
3351
|
}
|
|
3320
|
-
}, rr = (
|
|
3352
|
+
}, rr = (i, t, e) => {
|
|
3321
3353
|
if (t.$members$) {
|
|
3322
|
-
|
|
3323
|
-
const
|
|
3324
|
-
|
|
3354
|
+
i.watchers && (t.$watchers$ = i.watchers);
|
|
3355
|
+
const s = Object.entries(t.$members$), n = i.prototype;
|
|
3356
|
+
s.map(([r, [o]]) => {
|
|
3325
3357
|
(o & 31 || o & 32) && Object.defineProperty(n, r, {
|
|
3326
3358
|
get() {
|
|
3327
|
-
return
|
|
3359
|
+
return sr(this, r);
|
|
3328
3360
|
},
|
|
3329
3361
|
set(a) {
|
|
3330
3362
|
nr(this, r, a, t);
|
|
@@ -3344,7 +3376,7 @@ const Tt = typeof window < "u" ? window : {}, S = Tt.document || { head: {} }, T
|
|
|
3344
3376
|
return;
|
|
3345
3377
|
this[c] = l === null && typeof this[c] == "boolean" ? !1 : l;
|
|
3346
3378
|
});
|
|
3347
|
-
},
|
|
3379
|
+
}, i.observedAttributes = s.filter(
|
|
3348
3380
|
([o, a]) => a[0] & 15
|
|
3349
3381
|
/* HasAttribute */
|
|
3350
3382
|
).map(([o, a]) => {
|
|
@@ -3353,50 +3385,50 @@ const Tt = typeof window < "u" ? window : {}, S = Tt.document || { head: {} }, T
|
|
|
3353
3385
|
});
|
|
3354
3386
|
}
|
|
3355
3387
|
}
|
|
3356
|
-
return
|
|
3357
|
-
}, or = async (
|
|
3358
|
-
if (!(t.$flags$ & 32) && (n =
|
|
3388
|
+
return i;
|
|
3389
|
+
}, or = async (i, t, e, s, n) => {
|
|
3390
|
+
if (!(t.$flags$ & 32) && (n = i.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), n.style)) {
|
|
3359
3391
|
let o = n.style;
|
|
3360
|
-
typeof o != "string" && (o = o[t.$modeName$ = Nn(
|
|
3361
|
-
const a =
|
|
3392
|
+
typeof o != "string" && (o = o[t.$modeName$ = Nn(i)]);
|
|
3393
|
+
const a = Ii(e, t.$modeName$);
|
|
3362
3394
|
if (!St.has(a)) {
|
|
3363
3395
|
const l = j("registerStyles", e.$tagName$);
|
|
3364
3396
|
Un(a, o, !!(e.$flags$ & 1)), l();
|
|
3365
3397
|
}
|
|
3366
3398
|
}
|
|
3367
|
-
t.$ancestorComponent$, (() =>
|
|
3368
|
-
}, ar = (
|
|
3369
|
-
}, lr = (
|
|
3399
|
+
t.$ancestorComponent$, (() => Hi(t, !0))();
|
|
3400
|
+
}, ar = (i) => {
|
|
3401
|
+
}, lr = (i) => {
|
|
3370
3402
|
if (!(m.$flags$ & 1)) {
|
|
3371
|
-
const t = Pt(
|
|
3372
|
-
t.$flags$ & 1 ? (
|
|
3373
|
-
if (r & 31 &&
|
|
3374
|
-
const o =
|
|
3375
|
-
delete
|
|
3376
|
-
}
|
|
3377
|
-
}), or(
|
|
3378
|
-
}
|
|
3379
|
-
}, cr = (
|
|
3380
|
-
const t =
|
|
3381
|
-
t["s-cn"] = !0,
|
|
3382
|
-
}, ur = (
|
|
3403
|
+
const t = Pt(i), e = t.$cmpMeta$, s = j("connectedCallback", e.$tagName$);
|
|
3404
|
+
t.$flags$ & 1 ? (Pi(i, t, e.$listeners$), ar(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && cr(i), e.$members$ && Object.entries(e.$members$).map(([n, [r]]) => {
|
|
3405
|
+
if (r & 31 && i.hasOwnProperty(n)) {
|
|
3406
|
+
const o = i[n];
|
|
3407
|
+
delete i[n], i[n] = o;
|
|
3408
|
+
}
|
|
3409
|
+
}), or(i, t, e)), s();
|
|
3410
|
+
}
|
|
3411
|
+
}, cr = (i) => {
|
|
3412
|
+
const t = i["s-cr"] = S.createComment("");
|
|
3413
|
+
t["s-cn"] = !0, i.insertBefore(t, i.firstChild);
|
|
3414
|
+
}, ur = (i) => {
|
|
3383
3415
|
if (!(m.$flags$ & 1)) {
|
|
3384
|
-
const t = Pt(
|
|
3416
|
+
const t = Pt(i);
|
|
3385
3417
|
t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
|
|
3386
3418
|
}
|
|
3387
|
-
},
|
|
3419
|
+
}, Bi = (i, t) => {
|
|
3388
3420
|
const e = {
|
|
3389
3421
|
$flags$: t[0],
|
|
3390
3422
|
$tagName$: t[1]
|
|
3391
3423
|
};
|
|
3392
|
-
e.$members$ = t[2], e.$listeners$ = t[3], e.$watchers$ =
|
|
3393
|
-
const
|
|
3394
|
-
return Object.assign(
|
|
3424
|
+
e.$members$ = t[2], e.$listeners$ = t[3], e.$watchers$ = i.$watchers$, e.$attrsToReflect$ = [];
|
|
3425
|
+
const s = i.prototype.connectedCallback, n = i.prototype.disconnectedCallback;
|
|
3426
|
+
return Object.assign(i.prototype, {
|
|
3395
3427
|
__registerHost() {
|
|
3396
3428
|
hr(this, e);
|
|
3397
3429
|
},
|
|
3398
3430
|
connectedCallback() {
|
|
3399
|
-
lr(this),
|
|
3431
|
+
lr(this), s && s.call(this);
|
|
3400
3432
|
},
|
|
3401
3433
|
disconnectedCallback() {
|
|
3402
3434
|
ur(this), n && n.call(this);
|
|
@@ -3407,45 +3439,45 @@ const Tt = typeof window < "u" ? window : {}, S = Tt.document || { head: {} }, T
|
|
|
3407
3439
|
delegatesFocus: !!(e.$flags$ & 16)
|
|
3408
3440
|
});
|
|
3409
3441
|
}
|
|
3410
|
-
}),
|
|
3411
|
-
},
|
|
3442
|
+
}), i.is = e.$tagName$, rr(i, e);
|
|
3443
|
+
}, zi = /* @__PURE__ */ new WeakMap(), Pt = (i) => zi.get(i), hr = (i, t) => {
|
|
3412
3444
|
const e = {
|
|
3413
3445
|
$flags$: 0,
|
|
3414
|
-
$hostElement$:
|
|
3446
|
+
$hostElement$: i,
|
|
3415
3447
|
$cmpMeta$: t,
|
|
3416
3448
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
3417
3449
|
};
|
|
3418
|
-
return
|
|
3419
|
-
}, Fe = (
|
|
3420
|
-
|
|
3421
|
-
}, Ye = (
|
|
3422
|
-
for (let t = 0; t <
|
|
3450
|
+
return Pi(i, e, t.$listeners$), zi.set(i, e);
|
|
3451
|
+
}, Fe = (i, t) => t in i, lt = (i, t) => (0, console.error)(i, t), St = /* @__PURE__ */ new Map(), dr = [], We = [], Fi = [], fr = (i, t) => (e) => {
|
|
3452
|
+
i.push(e), Yt || (Yt = !0, t && m.$flags$ & 4 ? pr(qt) : m.raf(qt));
|
|
3453
|
+
}, Ye = (i) => {
|
|
3454
|
+
for (let t = 0; t < i.length; t++)
|
|
3423
3455
|
try {
|
|
3424
|
-
|
|
3456
|
+
i[t](performance.now());
|
|
3425
3457
|
} catch (e) {
|
|
3426
3458
|
lt(e);
|
|
3427
3459
|
}
|
|
3428
|
-
|
|
3460
|
+
i.length = 0;
|
|
3429
3461
|
}, qt = () => {
|
|
3430
|
-
Ye(We), Ye(
|
|
3431
|
-
}, pr = (
|
|
3432
|
-
const { content: t = "", title: e, attributes:
|
|
3462
|
+
Ye(We), Ye(Fi), (Yt = We.length > 0) && m.raf(qt);
|
|
3463
|
+
}, pr = (i) => Tn().then(i), gr = /* @__PURE__ */ fr(Fi, !0), $r = (i = {}) => {
|
|
3464
|
+
const { content: t = "", title: e, attributes: s = [] } = i;
|
|
3433
3465
|
let n = "", r = [
|
|
3434
3466
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
3435
3467
|
{ name: "fill", value: "currentColor" },
|
|
3436
|
-
...
|
|
3468
|
+
...s
|
|
3437
3469
|
];
|
|
3438
3470
|
return e && (n = `<title>${e}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`;
|
|
3439
|
-
}, vr = (
|
|
3440
|
-
function mr(
|
|
3441
|
-
return `${
|
|
3471
|
+
}, vr = (i) => i.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
|
3472
|
+
function mr(i) {
|
|
3473
|
+
return `${i.getFullYear()}.${i.getMonth() + 1}`;
|
|
3442
3474
|
}
|
|
3443
3475
|
class yr {
|
|
3444
3476
|
constructor(t) {
|
|
3445
3477
|
this.voca_component = t, this.voca_added = mr(/* @__PURE__ */ new Date());
|
|
3446
3478
|
}
|
|
3447
3479
|
}
|
|
3448
|
-
const br = "telia-vst{display:none}", _r = /* @__PURE__ */
|
|
3480
|
+
const br = "telia-vst{display:none}", _r = /* @__PURE__ */ Bi(class extends Ti {
|
|
3449
3481
|
constructor() {
|
|
3450
3482
|
super(), this.__registerHost(), this.vocaInternalUStats = Xn(this, "vocaInternalUStats", 7);
|
|
3451
3483
|
}
|
|
@@ -3461,7 +3493,7 @@ const br = "telia-vst{display:none}", _r = /* @__PURE__ */ Bs(class extends Ts {
|
|
|
3461
3493
|
}, [0, "telia-vst", {
|
|
3462
3494
|
dataTrackingId: [1, "data-tracking-id"]
|
|
3463
3495
|
}]);
|
|
3464
|
-
function
|
|
3496
|
+
function Wi() {
|
|
3465
3497
|
if (typeof customElements > "u")
|
|
3466
3498
|
return;
|
|
3467
3499
|
["telia-vst"].forEach((t) => {
|
|
@@ -3472,7 +3504,7 @@ function Ws() {
|
|
|
3472
3504
|
}
|
|
3473
3505
|
});
|
|
3474
3506
|
}
|
|
3475
|
-
|
|
3507
|
+
Wi();
|
|
3476
3508
|
function Gt() {
|
|
3477
3509
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
|
3478
3510
|
}
|
|
@@ -3483,7 +3515,7 @@ function wr() {
|
|
|
3483
3515
|
function xr() {
|
|
3484
3516
|
return Gt().vocadsIconsRegistered;
|
|
3485
3517
|
}
|
|
3486
|
-
const Sr = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Ar = /* @__PURE__ */
|
|
3518
|
+
const Sr = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Ar = /* @__PURE__ */ Bi(class extends Ti {
|
|
3487
3519
|
constructor() {
|
|
3488
3520
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
|
3489
3521
|
}
|
|
@@ -3496,19 +3528,19 @@ const Sr = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
3496
3528
|
if (this.svg)
|
|
3497
3529
|
return this.svg;
|
|
3498
3530
|
if (xr() && this.name) {
|
|
3499
|
-
const
|
|
3500
|
-
return
|
|
3531
|
+
const i = wr();
|
|
3532
|
+
return i[this.name] ? i[this.name].svg : "";
|
|
3501
3533
|
}
|
|
3502
3534
|
return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
|
|
3503
3535
|
}
|
|
3504
3536
|
render() {
|
|
3505
|
-
let
|
|
3537
|
+
let i = this.getSvgString(), t = [{ name: "viewBox", value: "0 0 64 64" }];
|
|
3506
3538
|
this.allyTitle ? t = [...t, { name: "role", value: "img" }] : t = [
|
|
3507
3539
|
...t,
|
|
3508
3540
|
{ name: "aria-hidden", value: "true" }
|
|
3509
3541
|
];
|
|
3510
3542
|
const e = $r({
|
|
3511
|
-
content: vr(
|
|
3543
|
+
content: vr(i),
|
|
3512
3544
|
attributes: t,
|
|
3513
3545
|
title: this.allyTitle
|
|
3514
3546
|
});
|
|
@@ -3533,19 +3565,19 @@ function Er() {
|
|
|
3533
3565
|
customElements.get(t) || customElements.define(t, Ar);
|
|
3534
3566
|
break;
|
|
3535
3567
|
case "telia-vst":
|
|
3536
|
-
customElements.get(t) ||
|
|
3568
|
+
customElements.get(t) || Wi();
|
|
3537
3569
|
break;
|
|
3538
3570
|
}
|
|
3539
3571
|
});
|
|
3540
3572
|
}
|
|
3541
3573
|
Er();
|
|
3542
|
-
var Cr = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, Or = (
|
|
3543
|
-
for (var n =
|
|
3544
|
-
(o =
|
|
3545
|
-
return
|
|
3574
|
+
var Cr = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, Or = (i, t, e, s) => {
|
|
3575
|
+
for (var n = s > 1 ? void 0 : s ? kr(t, e) : t, r = i.length - 1, o; r >= 0; r--)
|
|
3576
|
+
(o = i[r]) && (n = (s ? o(t, e, n) : o(n)) || n);
|
|
3577
|
+
return s && n && Cr(t, e, n), n;
|
|
3546
3578
|
};
|
|
3547
|
-
const
|
|
3548
|
-
class
|
|
3579
|
+
const Yi = Ei(x);
|
|
3580
|
+
class qi extends Yi {
|
|
3549
3581
|
constructor() {
|
|
3550
3582
|
super(...arguments), this.optionsIsVisible = !1, this.options = new kn(this), this.optionsRef = bt(), this.optionsTriggerRef = bt(), this._onClickOutside = (t) => {
|
|
3551
3583
|
!this.optionsTriggerRef.value || !this.optionsRef.value || t.composedPath().includes(this.optionsTriggerRef.value) || t.composedPath().includes(this.optionsRef.value) || (this.optionsIsVisible = !1);
|
|
@@ -3571,8 +3603,8 @@ class qs extends Ys {
|
|
|
3571
3603
|
return this.options.options.length ? E` <div class="side-menu">
|
|
3572
3604
|
<div
|
|
3573
3605
|
class="options-menu"
|
|
3574
|
-
${
|
|
3575
|
-
${
|
|
3606
|
+
${ie(this.optionsRef)}
|
|
3607
|
+
${Si({
|
|
3576
3608
|
keyframeOptions: { duration: 120 },
|
|
3577
3609
|
in: ke,
|
|
3578
3610
|
out: ke,
|
|
@@ -3598,8 +3630,8 @@ class qs extends Ys {
|
|
|
3598
3630
|
</div>` : p;
|
|
3599
3631
|
}
|
|
3600
3632
|
}
|
|
3601
|
-
|
|
3602
|
-
|
|
3633
|
+
qi.styles = [
|
|
3634
|
+
Yi.styles || [],
|
|
3603
3635
|
M`
|
|
3604
3636
|
:host {
|
|
3605
3637
|
--header-text-color: var(--text-on-primary-background);
|
|
@@ -3691,8 +3723,8 @@ qs.styles = [
|
|
|
3691
3723
|
];
|
|
3692
3724
|
Or([
|
|
3693
3725
|
N()
|
|
3694
|
-
],
|
|
3726
|
+
], qi.prototype, "optionsIsVisible", 2);
|
|
3695
3727
|
export {
|
|
3696
|
-
|
|
3697
|
-
|
|
3728
|
+
qi as SideMenu,
|
|
3729
|
+
qi as default
|
|
3698
3730
|
};
|