@telia-ace/widget-conversation-flamingo 1.1.65-rc.0 → 1.1.65
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation.d.ts +1 -0
- package/index.js +94 -49
- package/index.mjs +1364 -1308
- package/models/conversation-provider.d.ts +2 -1
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
const
|
2
|
-
|
1
|
+
const Ro = async (s) => {
|
2
|
+
s.registerComponent("conversation", Promise.resolve().then(() => Uo));
|
3
3
|
};
|
4
|
-
class
|
4
|
+
class xs {
|
5
5
|
constructor() {
|
6
6
|
this.registeredProviders = /* @__PURE__ */ new Map();
|
7
7
|
}
|
8
8
|
static async getInstance(t) {
|
9
9
|
let e = await t.get("conversation");
|
10
|
-
return e || (e = new
|
10
|
+
return e || (e = new xs(), await t.register("conversation", e), e);
|
11
11
|
}
|
12
12
|
registerProvider(t, e) {
|
13
13
|
this.registeredProviders.set(t, e);
|
@@ -25,24 +25,24 @@ class Sn {
|
|
25
25
|
// return this.registeredProviders.get(providerKey);
|
26
26
|
// }
|
27
27
|
}
|
28
|
-
var re = function(
|
29
|
-
return re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e,
|
30
|
-
e.__proto__ =
|
31
|
-
} || function(e,
|
32
|
-
for (var r in
|
33
|
-
Object.prototype.hasOwnProperty.call(
|
34
|
-
}, re(
|
28
|
+
var re = function(s, t) {
|
29
|
+
return re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
30
|
+
e.__proto__ = n;
|
31
|
+
} || function(e, n) {
|
32
|
+
for (var r in n)
|
33
|
+
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
34
|
+
}, re(s, t);
|
35
35
|
};
|
36
|
-
function
|
36
|
+
function nt(s, t) {
|
37
37
|
if (typeof t != "function" && t !== null)
|
38
38
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
39
|
-
re(
|
39
|
+
re(s, t);
|
40
40
|
function e() {
|
41
|
-
this.constructor =
|
41
|
+
this.constructor = s;
|
42
42
|
}
|
43
|
-
|
43
|
+
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
44
44
|
}
|
45
|
-
function
|
45
|
+
function xn(s, t, e, n) {
|
46
46
|
function r(i) {
|
47
47
|
return i instanceof e ? i : new e(function(o) {
|
48
48
|
o(i);
|
@@ -51,14 +51,14 @@ function Ss(n, t, e, s) {
|
|
51
51
|
return new (e || (e = Promise))(function(i, o) {
|
52
52
|
function a(u) {
|
53
53
|
try {
|
54
|
-
c(
|
54
|
+
c(n.next(u));
|
55
55
|
} catch (h) {
|
56
56
|
o(h);
|
57
57
|
}
|
58
58
|
}
|
59
59
|
function l(u) {
|
60
60
|
try {
|
61
|
-
c(
|
61
|
+
c(n.throw(u));
|
62
62
|
} catch (h) {
|
63
63
|
o(h);
|
64
64
|
}
|
@@ -66,15 +66,15 @@ function Ss(n, t, e, s) {
|
|
66
66
|
function c(u) {
|
67
67
|
u.done ? i(u.value) : r(u.value).then(a, l);
|
68
68
|
}
|
69
|
-
c((
|
69
|
+
c((n = n.apply(s, t || [])).next());
|
70
70
|
});
|
71
71
|
}
|
72
|
-
function
|
72
|
+
function Ss(s, t) {
|
73
73
|
var e = { label: 0, sent: function() {
|
74
74
|
if (i[0] & 1)
|
75
75
|
throw i[1];
|
76
76
|
return i[1];
|
77
|
-
}, trys: [], ops: [] },
|
77
|
+
}, trys: [], ops: [] }, n, r, i, o;
|
78
78
|
return o = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
79
79
|
return this;
|
80
80
|
}), o;
|
@@ -84,11 +84,11 @@ function xn(n, t) {
|
|
84
84
|
};
|
85
85
|
}
|
86
86
|
function l(c) {
|
87
|
-
if (
|
87
|
+
if (n)
|
88
88
|
throw new TypeError("Generator is already executing.");
|
89
89
|
for (; o && (o = 0, c[0] && (e = 0)), e; )
|
90
90
|
try {
|
91
|
-
if (
|
91
|
+
if (n = 1, r && (i = c[0] & 2 ? r.return : c[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, c[1])).done)
|
92
92
|
return i;
|
93
93
|
switch (r = 0, i && (c = [c[0] & 2, i.value]), c[0]) {
|
94
94
|
case 0:
|
@@ -123,42 +123,42 @@ function xn(n, t) {
|
|
123
123
|
i[2] && e.ops.pop(), e.trys.pop();
|
124
124
|
continue;
|
125
125
|
}
|
126
|
-
c = t.call(
|
126
|
+
c = t.call(s, e);
|
127
127
|
} catch (u) {
|
128
128
|
c = [6, u], r = 0;
|
129
129
|
} finally {
|
130
|
-
|
130
|
+
n = i = 0;
|
131
131
|
}
|
132
132
|
if (c[0] & 5)
|
133
133
|
throw c[1];
|
134
134
|
return { value: c[0] ? c[1] : void 0, done: !0 };
|
135
135
|
}
|
136
136
|
}
|
137
|
-
function et(
|
138
|
-
var t = typeof Symbol == "function" && Symbol.iterator, e = t &&
|
137
|
+
function et(s) {
|
138
|
+
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], n = 0;
|
139
139
|
if (e)
|
140
|
-
return e.call(
|
141
|
-
if (
|
140
|
+
return e.call(s);
|
141
|
+
if (s && typeof s.length == "number")
|
142
142
|
return {
|
143
143
|
next: function() {
|
144
|
-
return
|
144
|
+
return s && n >= s.length && (s = void 0), { value: s && s[n++], done: !s };
|
145
145
|
}
|
146
146
|
};
|
147
147
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
148
148
|
}
|
149
|
-
function
|
150
|
-
var e = typeof Symbol == "function" &&
|
149
|
+
function j(s, t) {
|
150
|
+
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
151
151
|
if (!e)
|
152
|
-
return
|
153
|
-
var
|
152
|
+
return s;
|
153
|
+
var n = e.call(s), r, i = [], o;
|
154
154
|
try {
|
155
|
-
for (; (t === void 0 || t-- > 0) && !(r =
|
155
|
+
for (; (t === void 0 || t-- > 0) && !(r = n.next()).done; )
|
156
156
|
i.push(r.value);
|
157
157
|
} catch (a) {
|
158
158
|
o = { error: a };
|
159
159
|
} finally {
|
160
160
|
try {
|
161
|
-
r && !r.done && (e =
|
161
|
+
r && !r.done && (e = n.return) && e.call(n);
|
162
162
|
} finally {
|
163
163
|
if (o)
|
164
164
|
throw o.error;
|
@@ -166,24 +166,24 @@ function R(n, t) {
|
|
166
166
|
}
|
167
167
|
return i;
|
168
168
|
}
|
169
|
-
function F(
|
169
|
+
function F(s, t, e) {
|
170
170
|
if (e || arguments.length === 2)
|
171
|
-
for (var
|
172
|
-
(i || !(
|
173
|
-
return
|
171
|
+
for (var n = 0, r = t.length, i; n < r; n++)
|
172
|
+
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
173
|
+
return s.concat(i || Array.prototype.slice.call(t));
|
174
174
|
}
|
175
|
-
function J(
|
176
|
-
return this instanceof J ? (this.v =
|
175
|
+
function J(s) {
|
176
|
+
return this instanceof J ? (this.v = s, this) : new J(s);
|
177
177
|
}
|
178
|
-
function
|
178
|
+
function Sn(s, t, e) {
|
179
179
|
if (!Symbol.asyncIterator)
|
180
180
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
181
|
-
var
|
181
|
+
var n = e.apply(s, t || []), r, i = [];
|
182
182
|
return r = {}, o("next"), o("throw"), o("return"), r[Symbol.asyncIterator] = function() {
|
183
183
|
return this;
|
184
184
|
}, r;
|
185
185
|
function o(d) {
|
186
|
-
|
186
|
+
n[d] && (r[d] = function(p) {
|
187
187
|
return new Promise(function($, m) {
|
188
188
|
i.push([d, p, $, m]) > 1 || a(d, p);
|
189
189
|
});
|
@@ -191,7 +191,7 @@ function xs(n, t, e) {
|
|
191
191
|
}
|
192
192
|
function a(d, p) {
|
193
193
|
try {
|
194
|
-
l(
|
194
|
+
l(n[d](p));
|
195
195
|
} catch ($) {
|
196
196
|
h(i[0][3], $);
|
197
197
|
}
|
@@ -209,17 +209,17 @@ function xs(n, t, e) {
|
|
209
209
|
d(p), i.shift(), i.length && a(i[0][0], i[0][1]);
|
210
210
|
}
|
211
211
|
}
|
212
|
-
function
|
212
|
+
function Cn(s) {
|
213
213
|
if (!Symbol.asyncIterator)
|
214
214
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
215
|
-
var t =
|
216
|
-
return t ? t.call(
|
215
|
+
var t = s[Symbol.asyncIterator], e;
|
216
|
+
return t ? t.call(s) : (s = typeof et == "function" ? et(s) : s[Symbol.iterator](), e = {}, n("next"), n("throw"), n("return"), e[Symbol.asyncIterator] = function() {
|
217
217
|
return this;
|
218
218
|
}, e);
|
219
|
-
function
|
220
|
-
e[i] =
|
219
|
+
function n(i) {
|
220
|
+
e[i] = s[i] && function(o) {
|
221
221
|
return new Promise(function(a, l) {
|
222
|
-
o =
|
222
|
+
o = s[i](o), r(a, l, o.done, o.value);
|
223
223
|
});
|
224
224
|
};
|
225
225
|
}
|
@@ -229,36 +229,36 @@ function Cs(n) {
|
|
229
229
|
}, o);
|
230
230
|
}
|
231
231
|
}
|
232
|
-
function g(
|
233
|
-
return typeof
|
232
|
+
function g(s) {
|
233
|
+
return typeof s == "function";
|
234
234
|
}
|
235
|
-
function
|
236
|
-
var t = function(
|
237
|
-
Error.call(
|
238
|
-
}, e =
|
235
|
+
function Cs(s) {
|
236
|
+
var t = function(n) {
|
237
|
+
Error.call(n), n.stack = new Error().stack;
|
238
|
+
}, e = s(t);
|
239
239
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
240
240
|
}
|
241
|
-
var Gt =
|
241
|
+
var Gt = Cs(function(s) {
|
242
242
|
return function(e) {
|
243
|
-
|
244
|
-
` + e.map(function(
|
245
|
-
return r + 1 + ") " +
|
243
|
+
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
244
|
+
` + e.map(function(n, r) {
|
245
|
+
return r + 1 + ") " + n.toString();
|
246
246
|
}).join(`
|
247
247
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
248
248
|
};
|
249
249
|
});
|
250
|
-
function ie(
|
251
|
-
if (
|
252
|
-
var e =
|
253
|
-
0 <= e &&
|
250
|
+
function ie(s, t) {
|
251
|
+
if (s) {
|
252
|
+
var e = s.indexOf(t);
|
253
|
+
0 <= e && s.splice(e, 1);
|
254
254
|
}
|
255
255
|
}
|
256
256
|
var Ht = function() {
|
257
|
-
function
|
257
|
+
function s(t) {
|
258
258
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
259
259
|
}
|
260
|
-
return
|
261
|
-
var t, e,
|
260
|
+
return s.prototype.unsubscribe = function() {
|
261
|
+
var t, e, n, r, i;
|
262
262
|
if (!this.closed) {
|
263
263
|
this.closed = !0;
|
264
264
|
var o = this._parentage;
|
@@ -295,98 +295,98 @@ var Ht = function() {
|
|
295
295
|
for (var d = et(h), p = d.next(); !p.done; p = d.next()) {
|
296
296
|
var $ = p.value;
|
297
297
|
try {
|
298
|
-
|
298
|
+
He($);
|
299
299
|
} catch (m) {
|
300
|
-
i = i ?? [], m instanceof Gt ? i = F(F([],
|
300
|
+
i = i ?? [], m instanceof Gt ? i = F(F([], j(i)), j(m.errors)) : i.push(m);
|
301
301
|
}
|
302
302
|
}
|
303
303
|
} catch (m) {
|
304
|
-
|
304
|
+
n = { error: m };
|
305
305
|
} finally {
|
306
306
|
try {
|
307
307
|
p && !p.done && (r = d.return) && r.call(d);
|
308
308
|
} finally {
|
309
|
-
if (
|
310
|
-
throw
|
309
|
+
if (n)
|
310
|
+
throw n.error;
|
311
311
|
}
|
312
312
|
}
|
313
313
|
}
|
314
314
|
if (i)
|
315
315
|
throw new Gt(i);
|
316
316
|
}
|
317
|
-
},
|
317
|
+
}, s.prototype.add = function(t) {
|
318
318
|
var e;
|
319
319
|
if (t && t !== this)
|
320
320
|
if (this.closed)
|
321
|
-
|
321
|
+
He(t);
|
322
322
|
else {
|
323
|
-
if (t instanceof
|
323
|
+
if (t instanceof s) {
|
324
324
|
if (t.closed || t._hasParent(this))
|
325
325
|
return;
|
326
326
|
t._addParent(this);
|
327
327
|
}
|
328
328
|
(this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
|
329
329
|
}
|
330
|
-
},
|
330
|
+
}, s.prototype._hasParent = function(t) {
|
331
331
|
var e = this._parentage;
|
332
332
|
return e === t || Array.isArray(e) && e.includes(t);
|
333
|
-
},
|
333
|
+
}, s.prototype._addParent = function(t) {
|
334
334
|
var e = this._parentage;
|
335
335
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
336
|
-
},
|
336
|
+
}, s.prototype._removeParent = function(t) {
|
337
337
|
var e = this._parentage;
|
338
338
|
e === t ? this._parentage = null : Array.isArray(e) && ie(e, t);
|
339
|
-
},
|
339
|
+
}, s.prototype.remove = function(t) {
|
340
340
|
var e = this._finalizers;
|
341
|
-
e && ie(e, t), t instanceof
|
342
|
-
},
|
343
|
-
var t = new
|
341
|
+
e && ie(e, t), t instanceof s && t._removeParent(this);
|
342
|
+
}, s.EMPTY = function() {
|
343
|
+
var t = new s();
|
344
344
|
return t.closed = !0, t;
|
345
|
-
}(),
|
346
|
-
}(),
|
347
|
-
function
|
348
|
-
return
|
345
|
+
}(), s;
|
346
|
+
}(), As = Ht.EMPTY;
|
347
|
+
function Es(s) {
|
348
|
+
return s instanceof Ht || s && "closed" in s && g(s.remove) && g(s.add) && g(s.unsubscribe);
|
349
349
|
}
|
350
|
-
function
|
351
|
-
g(
|
350
|
+
function He(s) {
|
351
|
+
g(s) ? s() : s.unsubscribe();
|
352
352
|
}
|
353
|
-
var
|
353
|
+
var Os = {
|
354
354
|
onUnhandledError: null,
|
355
355
|
onStoppedNotification: null,
|
356
356
|
Promise: void 0,
|
357
357
|
useDeprecatedSynchronousErrorHandling: !1,
|
358
358
|
useDeprecatedNextContext: !1
|
359
359
|
}, oe = {
|
360
|
-
setTimeout: function(
|
361
|
-
for (var e = [],
|
362
|
-
e[
|
360
|
+
setTimeout: function(s, t) {
|
361
|
+
for (var e = [], n = 2; n < arguments.length; n++)
|
362
|
+
e[n - 2] = arguments[n];
|
363
363
|
var r = oe.delegate;
|
364
|
-
return r != null && r.setTimeout ? r.setTimeout.apply(r, F([
|
364
|
+
return r != null && r.setTimeout ? r.setTimeout.apply(r, F([s, t], j(e))) : setTimeout.apply(void 0, F([s, t], j(e)));
|
365
365
|
},
|
366
|
-
clearTimeout: function(
|
366
|
+
clearTimeout: function(s) {
|
367
367
|
var t = oe.delegate;
|
368
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(
|
368
|
+
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(s);
|
369
369
|
},
|
370
370
|
delegate: void 0
|
371
371
|
};
|
372
|
-
function
|
372
|
+
function ks(s) {
|
373
373
|
oe.setTimeout(function() {
|
374
|
-
throw
|
374
|
+
throw s;
|
375
375
|
});
|
376
376
|
}
|
377
|
-
function
|
377
|
+
function At() {
|
378
378
|
}
|
379
|
-
function St(
|
380
|
-
|
379
|
+
function St(s) {
|
380
|
+
s();
|
381
381
|
}
|
382
|
-
var
|
383
|
-
|
382
|
+
var ge = function(s) {
|
383
|
+
nt(t, s);
|
384
384
|
function t(e) {
|
385
|
-
var
|
386
|
-
return
|
385
|
+
var n = s.call(this) || this;
|
386
|
+
return n.isStopped = !1, e ? (n.destination = e, Es(e) && e.add(n)) : n.destination = kn, n;
|
387
387
|
}
|
388
|
-
return t.create = function(e,
|
389
|
-
return new ae(e,
|
388
|
+
return t.create = function(e, n, r) {
|
389
|
+
return new ae(e, n, r);
|
390
390
|
}, t.prototype.next = function(e) {
|
391
391
|
this.isStopped || this._next(e);
|
392
392
|
}, t.prototype.error = function(e) {
|
@@ -394,7 +394,7 @@ var ve = function(n) {
|
|
394
394
|
}, t.prototype.complete = function() {
|
395
395
|
this.isStopped || (this.isStopped = !0, this._complete());
|
396
396
|
}, t.prototype.unsubscribe = function() {
|
397
|
-
this.closed || (this.isStopped = !0,
|
397
|
+
this.closed || (this.isStopped = !0, s.prototype.unsubscribe.call(this), this.destination = null);
|
398
398
|
}, t.prototype._next = function(e) {
|
399
399
|
this.destination.next(e);
|
400
400
|
}, t.prototype._error = function(e) {
|
@@ -410,54 +410,54 @@ var ve = function(n) {
|
|
410
410
|
this.unsubscribe();
|
411
411
|
}
|
412
412
|
}, t;
|
413
|
-
}(Ht),
|
414
|
-
function Xt(
|
415
|
-
return
|
413
|
+
}(Ht), An = Function.prototype.bind;
|
414
|
+
function Xt(s, t) {
|
415
|
+
return An.call(s, t);
|
416
416
|
}
|
417
|
-
var
|
418
|
-
function
|
417
|
+
var En = function() {
|
418
|
+
function s(t) {
|
419
419
|
this.partialObserver = t;
|
420
420
|
}
|
421
|
-
return
|
421
|
+
return s.prototype.next = function(t) {
|
422
422
|
var e = this.partialObserver;
|
423
423
|
if (e.next)
|
424
424
|
try {
|
425
425
|
e.next(t);
|
426
|
-
} catch (
|
427
|
-
|
426
|
+
} catch (n) {
|
427
|
+
wt(n);
|
428
428
|
}
|
429
|
-
},
|
429
|
+
}, s.prototype.error = function(t) {
|
430
430
|
var e = this.partialObserver;
|
431
431
|
if (e.error)
|
432
432
|
try {
|
433
433
|
e.error(t);
|
434
|
-
} catch (
|
435
|
-
|
434
|
+
} catch (n) {
|
435
|
+
wt(n);
|
436
436
|
}
|
437
437
|
else
|
438
|
-
|
439
|
-
},
|
438
|
+
wt(t);
|
439
|
+
}, s.prototype.complete = function() {
|
440
440
|
var t = this.partialObserver;
|
441
441
|
if (t.complete)
|
442
442
|
try {
|
443
443
|
t.complete();
|
444
444
|
} catch (e) {
|
445
|
-
|
445
|
+
wt(e);
|
446
446
|
}
|
447
|
-
},
|
448
|
-
}(), ae = function(
|
449
|
-
|
450
|
-
function t(e,
|
451
|
-
var i =
|
447
|
+
}, s;
|
448
|
+
}(), ae = function(s) {
|
449
|
+
nt(t, s);
|
450
|
+
function t(e, n, r) {
|
451
|
+
var i = s.call(this) || this, o;
|
452
452
|
if (g(e) || !e)
|
453
453
|
o = {
|
454
454
|
next: e ?? void 0,
|
455
|
-
error:
|
455
|
+
error: n ?? void 0,
|
456
456
|
complete: r ?? void 0
|
457
457
|
};
|
458
458
|
else {
|
459
459
|
var a;
|
460
|
-
i &&
|
460
|
+
i && Os.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
461
461
|
return i.unsubscribe();
|
462
462
|
}, o = {
|
463
463
|
next: e.next && Xt(e.next, a),
|
@@ -465,56 +465,56 @@ var Es = function() {
|
|
465
465
|
complete: e.complete && Xt(e.complete, a)
|
466
466
|
}) : o = e;
|
467
467
|
}
|
468
|
-
return i.destination = new
|
468
|
+
return i.destination = new En(o), i;
|
469
469
|
}
|
470
470
|
return t;
|
471
|
-
}(
|
472
|
-
function
|
473
|
-
|
471
|
+
}(ge);
|
472
|
+
function wt(s) {
|
473
|
+
ks(s);
|
474
474
|
}
|
475
|
-
function
|
476
|
-
throw
|
475
|
+
function On(s) {
|
476
|
+
throw s;
|
477
477
|
}
|
478
|
-
var
|
478
|
+
var kn = {
|
479
479
|
closed: !0,
|
480
|
-
next:
|
481
|
-
error:
|
482
|
-
complete:
|
483
|
-
},
|
480
|
+
next: At,
|
481
|
+
error: On,
|
482
|
+
complete: At
|
483
|
+
}, me = function() {
|
484
484
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
485
485
|
}();
|
486
|
-
function
|
487
|
-
return
|
486
|
+
function vt(s) {
|
487
|
+
return s;
|
488
488
|
}
|
489
|
-
function
|
490
|
-
return
|
491
|
-
return
|
492
|
-
return r(
|
489
|
+
function Tn(s) {
|
490
|
+
return s.length === 0 ? vt : s.length === 1 ? s[0] : function(e) {
|
491
|
+
return s.reduce(function(n, r) {
|
492
|
+
return r(n);
|
493
493
|
}, e);
|
494
494
|
};
|
495
495
|
}
|
496
|
-
var
|
497
|
-
function
|
496
|
+
var x = function() {
|
497
|
+
function s(t) {
|
498
498
|
t && (this._subscribe = t);
|
499
499
|
}
|
500
|
-
return
|
501
|
-
var e = new
|
500
|
+
return s.prototype.lift = function(t) {
|
501
|
+
var e = new s();
|
502
502
|
return e.source = this, e.operator = t, e;
|
503
|
-
},
|
504
|
-
var r = this, i =
|
503
|
+
}, s.prototype.subscribe = function(t, e, n) {
|
504
|
+
var r = this, i = Ln(t) ? t : new ae(t, e, n);
|
505
505
|
return St(function() {
|
506
506
|
var o = r, a = o.operator, l = o.source;
|
507
507
|
i.add(a ? a.call(i, l) : l ? r._subscribe(i) : r._trySubscribe(i));
|
508
508
|
}), i;
|
509
|
-
},
|
509
|
+
}, s.prototype._trySubscribe = function(t) {
|
510
510
|
try {
|
511
511
|
return this._subscribe(t);
|
512
512
|
} catch (e) {
|
513
513
|
t.error(e);
|
514
514
|
}
|
515
|
-
},
|
516
|
-
var
|
517
|
-
return e =
|
515
|
+
}, s.prototype.forEach = function(t, e) {
|
516
|
+
var n = this;
|
517
|
+
return e = Ne(e), new e(function(r, i) {
|
518
518
|
var o = new ae({
|
519
519
|
next: function(a) {
|
520
520
|
try {
|
@@ -526,73 +526,73 @@ var S = function() {
|
|
526
526
|
error: i,
|
527
527
|
complete: r
|
528
528
|
});
|
529
|
-
|
529
|
+
n.subscribe(o);
|
530
530
|
});
|
531
|
-
},
|
531
|
+
}, s.prototype._subscribe = function(t) {
|
532
532
|
var e;
|
533
533
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
534
|
-
},
|
534
|
+
}, s.prototype[me] = function() {
|
535
535
|
return this;
|
536
|
-
},
|
536
|
+
}, s.prototype.pipe = function() {
|
537
537
|
for (var t = [], e = 0; e < arguments.length; e++)
|
538
538
|
t[e] = arguments[e];
|
539
|
-
return
|
540
|
-
},
|
539
|
+
return Tn(t)(this);
|
540
|
+
}, s.prototype.toPromise = function(t) {
|
541
541
|
var e = this;
|
542
|
-
return t =
|
542
|
+
return t = Ne(t), new t(function(n, r) {
|
543
543
|
var i;
|
544
544
|
e.subscribe(function(o) {
|
545
545
|
return i = o;
|
546
546
|
}, function(o) {
|
547
547
|
return r(o);
|
548
548
|
}, function() {
|
549
|
-
return
|
549
|
+
return n(i);
|
550
550
|
});
|
551
551
|
});
|
552
|
-
},
|
553
|
-
return new
|
554
|
-
},
|
552
|
+
}, s.create = function(t) {
|
553
|
+
return new s(t);
|
554
|
+
}, s;
|
555
555
|
}();
|
556
|
-
function
|
556
|
+
function Ne(s) {
|
557
557
|
var t;
|
558
|
-
return (t =
|
558
|
+
return (t = s ?? Os.Promise) !== null && t !== void 0 ? t : Promise;
|
559
559
|
}
|
560
|
-
function
|
561
|
-
return
|
560
|
+
function Pn(s) {
|
561
|
+
return s && g(s.next) && g(s.error) && g(s.complete);
|
562
562
|
}
|
563
|
-
function
|
564
|
-
return
|
563
|
+
function Ln(s) {
|
564
|
+
return s && s instanceof ge || Pn(s) && Es(s);
|
565
565
|
}
|
566
|
-
function
|
567
|
-
return g(
|
566
|
+
function Mn(s) {
|
567
|
+
return g(s == null ? void 0 : s.lift);
|
568
568
|
}
|
569
|
-
function N(
|
569
|
+
function N(s) {
|
570
570
|
return function(t) {
|
571
|
-
if (
|
571
|
+
if (Mn(t))
|
572
572
|
return t.lift(function(e) {
|
573
573
|
try {
|
574
|
-
return
|
575
|
-
} catch (
|
576
|
-
this.error(
|
574
|
+
return s(e, this);
|
575
|
+
} catch (n) {
|
576
|
+
this.error(n);
|
577
577
|
}
|
578
578
|
});
|
579
579
|
throw new TypeError("Unable to lift unknown Observable type");
|
580
580
|
};
|
581
581
|
}
|
582
|
-
function E(
|
583
|
-
return new
|
582
|
+
function E(s, t, e, n, r) {
|
583
|
+
return new In(s, t, e, n, r);
|
584
584
|
}
|
585
|
-
var
|
586
|
-
|
587
|
-
function t(e,
|
588
|
-
var l =
|
589
|
-
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next =
|
585
|
+
var In = function(s) {
|
586
|
+
nt(t, s);
|
587
|
+
function t(e, n, r, i, o, a) {
|
588
|
+
var l = s.call(this, e) || this;
|
589
|
+
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = n ? function(c) {
|
590
590
|
try {
|
591
|
-
|
591
|
+
n(c);
|
592
592
|
} catch (u) {
|
593
593
|
e.error(u);
|
594
594
|
}
|
595
|
-
} :
|
595
|
+
} : s.prototype._next, l._error = i ? function(c) {
|
596
596
|
try {
|
597
597
|
i(c);
|
598
598
|
} catch (u) {
|
@@ -600,7 +600,7 @@ var Is = function(n) {
|
|
600
600
|
} finally {
|
601
601
|
this.unsubscribe();
|
602
602
|
}
|
603
|
-
} :
|
603
|
+
} : s.prototype._error, l._complete = r ? function() {
|
604
604
|
try {
|
605
605
|
r();
|
606
606
|
} catch (c) {
|
@@ -608,39 +608,39 @@ var Is = function(n) {
|
|
608
608
|
} finally {
|
609
609
|
this.unsubscribe();
|
610
610
|
}
|
611
|
-
} :
|
611
|
+
} : s.prototype._complete, l;
|
612
612
|
}
|
613
613
|
return t.prototype.unsubscribe = function() {
|
614
614
|
var e;
|
615
615
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
616
|
-
var
|
617
|
-
|
616
|
+
var n = this.closed;
|
617
|
+
s.prototype.unsubscribe.call(this), !n && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
618
618
|
}
|
619
619
|
}, t;
|
620
|
-
}(
|
620
|
+
}(ge), Un = Cs(function(s) {
|
621
621
|
return function() {
|
622
|
-
|
622
|
+
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
623
623
|
};
|
624
|
-
}), _ = function(
|
625
|
-
|
624
|
+
}), _ = function(s) {
|
625
|
+
nt(t, s);
|
626
626
|
function t() {
|
627
|
-
var e =
|
627
|
+
var e = s.call(this) || this;
|
628
628
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
629
629
|
}
|
630
630
|
return t.prototype.lift = function(e) {
|
631
|
-
var
|
632
|
-
return
|
631
|
+
var n = new De(this, this);
|
632
|
+
return n.operator = e, n;
|
633
633
|
}, t.prototype._throwIfClosed = function() {
|
634
634
|
if (this.closed)
|
635
|
-
throw new
|
635
|
+
throw new Un();
|
636
636
|
}, t.prototype.next = function(e) {
|
637
|
-
var
|
637
|
+
var n = this;
|
638
638
|
St(function() {
|
639
639
|
var r, i;
|
640
|
-
if (
|
641
|
-
|
640
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
641
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
642
642
|
try {
|
643
|
-
for (var o = et(
|
643
|
+
for (var o = et(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
644
644
|
var l = a.value;
|
645
645
|
l.next(e);
|
646
646
|
}
|
@@ -657,11 +657,11 @@ var Is = function(n) {
|
|
657
657
|
}
|
658
658
|
});
|
659
659
|
}, t.prototype.error = function(e) {
|
660
|
-
var
|
660
|
+
var n = this;
|
661
661
|
St(function() {
|
662
|
-
if (
|
663
|
-
|
664
|
-
for (var r =
|
662
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
663
|
+
n.hasError = n.isStopped = !0, n.thrownError = e;
|
664
|
+
for (var r = n.observers; r.length; )
|
665
665
|
r.shift().error(e);
|
666
666
|
}
|
667
667
|
});
|
@@ -670,8 +670,8 @@ var Is = function(n) {
|
|
670
670
|
St(function() {
|
671
671
|
if (e._throwIfClosed(), !e.isStopped) {
|
672
672
|
e.isStopped = !0;
|
673
|
-
for (var
|
674
|
-
|
673
|
+
for (var n = e.observers; n.length; )
|
674
|
+
n.shift().complete();
|
675
675
|
}
|
676
676
|
});
|
677
677
|
}, t.prototype.unsubscribe = function() {
|
@@ -684,47 +684,47 @@ var Is = function(n) {
|
|
684
684
|
enumerable: !1,
|
685
685
|
configurable: !0
|
686
686
|
}), t.prototype._trySubscribe = function(e) {
|
687
|
-
return this._throwIfClosed(),
|
687
|
+
return this._throwIfClosed(), s.prototype._trySubscribe.call(this, e);
|
688
688
|
}, t.prototype._subscribe = function(e) {
|
689
689
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
690
690
|
}, t.prototype._innerSubscribe = function(e) {
|
691
|
-
var
|
692
|
-
return i || o ?
|
693
|
-
|
691
|
+
var n = this, r = this, i = r.hasError, o = r.isStopped, a = r.observers;
|
692
|
+
return i || o ? As : (this.currentObservers = null, a.push(e), new Ht(function() {
|
693
|
+
n.currentObservers = null, ie(a, e);
|
694
694
|
}));
|
695
695
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
696
|
-
var
|
696
|
+
var n = this, r = n.hasError, i = n.thrownError, o = n.isStopped;
|
697
697
|
r ? e.error(i) : o && e.complete();
|
698
698
|
}, t.prototype.asObservable = function() {
|
699
|
-
var e = new
|
699
|
+
var e = new x();
|
700
700
|
return e.source = this, e;
|
701
|
-
}, t.create = function(e,
|
702
|
-
return new
|
701
|
+
}, t.create = function(e, n) {
|
702
|
+
return new De(e, n);
|
703
703
|
}, t;
|
704
|
-
}(
|
705
|
-
|
706
|
-
function t(e,
|
707
|
-
var r =
|
708
|
-
return r.destination = e, r.source =
|
704
|
+
}(x), De = function(s) {
|
705
|
+
nt(t, s);
|
706
|
+
function t(e, n) {
|
707
|
+
var r = s.call(this) || this;
|
708
|
+
return r.destination = e, r.source = n, r;
|
709
709
|
}
|
710
710
|
return t.prototype.next = function(e) {
|
711
|
-
var
|
712
|
-
(r = (
|
711
|
+
var n, r;
|
712
|
+
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || r === void 0 || r.call(n, e);
|
713
713
|
}, t.prototype.error = function(e) {
|
714
|
-
var
|
715
|
-
(r = (
|
714
|
+
var n, r;
|
715
|
+
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || r === void 0 || r.call(n, e);
|
716
716
|
}, t.prototype.complete = function() {
|
717
|
-
var e,
|
718
|
-
(
|
717
|
+
var e, n;
|
718
|
+
(n = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || n === void 0 || n.call(e);
|
719
719
|
}, t.prototype._subscribe = function(e) {
|
720
|
-
var
|
721
|
-
return (r = (
|
720
|
+
var n, r;
|
721
|
+
return (r = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && r !== void 0 ? r : As;
|
722
722
|
}, t;
|
723
|
-
}(_),
|
724
|
-
|
723
|
+
}(_), P = function(s) {
|
724
|
+
nt(t, s);
|
725
725
|
function t(e) {
|
726
|
-
var
|
727
|
-
return
|
726
|
+
var n = s.call(this) || this;
|
727
|
+
return n._value = e, n;
|
728
728
|
}
|
729
729
|
return Object.defineProperty(t.prototype, "value", {
|
730
730
|
get: function() {
|
@@ -733,69 +733,69 @@ var Is = function(n) {
|
|
733
733
|
enumerable: !1,
|
734
734
|
configurable: !0
|
735
735
|
}), t.prototype._subscribe = function(e) {
|
736
|
-
var
|
737
|
-
return !
|
736
|
+
var n = s.prototype._subscribe.call(this, e);
|
737
|
+
return !n.closed && e.next(this._value), n;
|
738
738
|
}, t.prototype.getValue = function() {
|
739
|
-
var e = this,
|
740
|
-
if (
|
739
|
+
var e = this, n = e.hasError, r = e.thrownError, i = e._value;
|
740
|
+
if (n)
|
741
741
|
throw r;
|
742
742
|
return this._throwIfClosed(), i;
|
743
743
|
}, t.prototype.next = function(e) {
|
744
|
-
|
744
|
+
s.prototype.next.call(this, this._value = e);
|
745
745
|
}, t;
|
746
|
-
}(_),
|
747
|
-
return
|
746
|
+
}(_), gt = new x(function(s) {
|
747
|
+
return s.complete();
|
748
748
|
});
|
749
|
-
function
|
750
|
-
return
|
749
|
+
function Rn(s) {
|
750
|
+
return s && g(s.schedule);
|
751
751
|
}
|
752
|
-
function
|
753
|
-
return
|
752
|
+
function $e(s) {
|
753
|
+
return s[s.length - 1];
|
754
754
|
}
|
755
|
-
function
|
756
|
-
return g(
|
755
|
+
function Ts(s) {
|
756
|
+
return g($e(s)) ? s.pop() : void 0;
|
757
757
|
}
|
758
|
-
function
|
759
|
-
return
|
758
|
+
function ye(s) {
|
759
|
+
return Rn($e(s)) ? s.pop() : void 0;
|
760
760
|
}
|
761
|
-
function
|
762
|
-
return typeof
|
761
|
+
function jn(s, t) {
|
762
|
+
return typeof $e(s) == "number" ? s.pop() : t;
|
763
763
|
}
|
764
|
-
var
|
765
|
-
return
|
764
|
+
var be = function(s) {
|
765
|
+
return s && typeof s.length == "number" && typeof s != "function";
|
766
766
|
};
|
767
|
-
function
|
768
|
-
return g(
|
767
|
+
function Ps(s) {
|
768
|
+
return g(s == null ? void 0 : s.then);
|
769
769
|
}
|
770
|
-
function
|
771
|
-
return g(
|
770
|
+
function Ls(s) {
|
771
|
+
return g(s[me]);
|
772
772
|
}
|
773
|
-
function
|
774
|
-
return Symbol.asyncIterator && g(
|
773
|
+
function Ms(s) {
|
774
|
+
return Symbol.asyncIterator && g(s == null ? void 0 : s[Symbol.asyncIterator]);
|
775
775
|
}
|
776
|
-
function
|
777
|
-
return new TypeError("You provided " + (
|
776
|
+
function Is(s) {
|
777
|
+
return new TypeError("You provided " + (s !== null && typeof s == "object" ? "an invalid object" : "'" + s + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
778
778
|
}
|
779
|
-
function
|
779
|
+
function Hn() {
|
780
780
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
781
781
|
}
|
782
|
-
var
|
783
|
-
function
|
784
|
-
return g(
|
782
|
+
var Us = Hn();
|
783
|
+
function Rs(s) {
|
784
|
+
return g(s == null ? void 0 : s[Us]);
|
785
785
|
}
|
786
|
-
function
|
787
|
-
return
|
788
|
-
var e,
|
789
|
-
return
|
786
|
+
function js(s) {
|
787
|
+
return Sn(this, arguments, function() {
|
788
|
+
var e, n, r, i;
|
789
|
+
return Ss(this, function(o) {
|
790
790
|
switch (o.label) {
|
791
791
|
case 0:
|
792
|
-
e =
|
792
|
+
e = s.getReader(), o.label = 1;
|
793
793
|
case 1:
|
794
794
|
o.trys.push([1, , 9, 10]), o.label = 2;
|
795
795
|
case 2:
|
796
796
|
return [4, J(e.read())];
|
797
797
|
case 3:
|
798
|
-
return
|
798
|
+
return n = o.sent(), r = n.value, i = n.done, i ? [4, J(void 0)] : [3, 5];
|
799
799
|
case 4:
|
800
800
|
return [2, o.sent()];
|
801
801
|
case 5:
|
@@ -814,57 +814,57 @@ function jn(n) {
|
|
814
814
|
});
|
815
815
|
});
|
816
816
|
}
|
817
|
-
function
|
818
|
-
return g(
|
819
|
-
}
|
820
|
-
function
|
821
|
-
if (
|
822
|
-
return
|
823
|
-
if (
|
824
|
-
if (
|
825
|
-
return
|
826
|
-
if (
|
827
|
-
return
|
828
|
-
if (
|
829
|
-
return
|
830
|
-
if (
|
831
|
-
return
|
832
|
-
if (
|
833
|
-
return
|
834
|
-
if (
|
835
|
-
return
|
836
|
-
}
|
837
|
-
throw
|
838
|
-
}
|
839
|
-
function
|
840
|
-
return new
|
841
|
-
var e =
|
817
|
+
function Hs(s) {
|
818
|
+
return g(s == null ? void 0 : s.getReader);
|
819
|
+
}
|
820
|
+
function T(s) {
|
821
|
+
if (s instanceof x)
|
822
|
+
return s;
|
823
|
+
if (s != null) {
|
824
|
+
if (Ls(s))
|
825
|
+
return Nn(s);
|
826
|
+
if (be(s))
|
827
|
+
return Dn(s);
|
828
|
+
if (Ps(s))
|
829
|
+
return Bn(s);
|
830
|
+
if (Ms(s))
|
831
|
+
return Ns(s);
|
832
|
+
if (Rs(s))
|
833
|
+
return zn(s);
|
834
|
+
if (Hs(s))
|
835
|
+
return Fn(s);
|
836
|
+
}
|
837
|
+
throw Is(s);
|
838
|
+
}
|
839
|
+
function Nn(s) {
|
840
|
+
return new x(function(t) {
|
841
|
+
var e = s[me]();
|
842
842
|
if (g(e.subscribe))
|
843
843
|
return e.subscribe(t);
|
844
844
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
845
845
|
});
|
846
846
|
}
|
847
|
-
function
|
848
|
-
return new
|
849
|
-
for (var e = 0; e <
|
850
|
-
t.next(
|
847
|
+
function Dn(s) {
|
848
|
+
return new x(function(t) {
|
849
|
+
for (var e = 0; e < s.length && !t.closed; e++)
|
850
|
+
t.next(s[e]);
|
851
851
|
t.complete();
|
852
852
|
});
|
853
853
|
}
|
854
|
-
function
|
855
|
-
return new
|
856
|
-
|
854
|
+
function Bn(s) {
|
855
|
+
return new x(function(t) {
|
856
|
+
s.then(function(e) {
|
857
857
|
t.closed || (t.next(e), t.complete());
|
858
858
|
}, function(e) {
|
859
859
|
return t.error(e);
|
860
|
-
}).then(null,
|
860
|
+
}).then(null, ks);
|
861
861
|
});
|
862
862
|
}
|
863
|
-
function
|
864
|
-
return new
|
865
|
-
var e,
|
863
|
+
function zn(s) {
|
864
|
+
return new x(function(t) {
|
865
|
+
var e, n;
|
866
866
|
try {
|
867
|
-
for (var r = et(
|
867
|
+
for (var r = et(s), i = r.next(); !i.done; i = r.next()) {
|
868
868
|
var o = i.value;
|
869
869
|
if (t.next(o), t.closed)
|
870
870
|
return;
|
@@ -873,7 +873,7 @@ function zs(n) {
|
|
873
873
|
e = { error: a };
|
874
874
|
} finally {
|
875
875
|
try {
|
876
|
-
i && !i.done && (
|
876
|
+
i && !i.done && (n = r.return) && n.call(r);
|
877
877
|
} finally {
|
878
878
|
if (e)
|
879
879
|
throw e.error;
|
@@ -882,30 +882,30 @@ function zs(n) {
|
|
882
882
|
t.complete();
|
883
883
|
});
|
884
884
|
}
|
885
|
-
function
|
886
|
-
return new
|
887
|
-
|
885
|
+
function Ns(s) {
|
886
|
+
return new x(function(t) {
|
887
|
+
Wn(s, t).catch(function(e) {
|
888
888
|
return t.error(e);
|
889
889
|
});
|
890
890
|
});
|
891
891
|
}
|
892
|
-
function
|
893
|
-
return
|
892
|
+
function Fn(s) {
|
893
|
+
return Ns(js(s));
|
894
894
|
}
|
895
|
-
function
|
896
|
-
var e,
|
897
|
-
return
|
895
|
+
function Wn(s, t) {
|
896
|
+
var e, n, r, i;
|
897
|
+
return xn(this, void 0, void 0, function() {
|
898
898
|
var o, a;
|
899
|
-
return
|
899
|
+
return Ss(this, function(l) {
|
900
900
|
switch (l.label) {
|
901
901
|
case 0:
|
902
|
-
l.trys.push([0, 5, 6, 11]), e =
|
902
|
+
l.trys.push([0, 5, 6, 11]), e = Cn(s), l.label = 1;
|
903
903
|
case 1:
|
904
904
|
return [4, e.next()];
|
905
905
|
case 2:
|
906
|
-
if (
|
906
|
+
if (n = l.sent(), !!n.done)
|
907
907
|
return [3, 4];
|
908
|
-
if (o =
|
908
|
+
if (o = n.value, t.next(o), t.closed)
|
909
909
|
return [2];
|
910
910
|
l.label = 3;
|
911
911
|
case 3:
|
@@ -915,7 +915,7 @@ function Ws(n, t) {
|
|
915
915
|
case 5:
|
916
916
|
return a = l.sent(), r = { error: a }, [3, 11];
|
917
917
|
case 6:
|
918
|
-
return l.trys.push([6, , 9, 10]),
|
918
|
+
return l.trys.push([6, , 9, 10]), n && !n.done && (i = e.return) ? [4, i.call(e)] : [3, 8];
|
919
919
|
case 7:
|
920
920
|
l.sent(), l.label = 8;
|
921
921
|
case 8:
|
@@ -932,60 +932,60 @@ function Ws(n, t) {
|
|
932
932
|
});
|
933
933
|
});
|
934
934
|
}
|
935
|
-
function
|
936
|
-
|
935
|
+
function L(s, t, e, n, r) {
|
936
|
+
n === void 0 && (n = 0), r === void 0 && (r = !1);
|
937
937
|
var i = t.schedule(function() {
|
938
|
-
e(), r ?
|
939
|
-
},
|
940
|
-
if (
|
938
|
+
e(), r ? s.add(this.schedule(null, n)) : this.unsubscribe();
|
939
|
+
}, n);
|
940
|
+
if (s.add(i), !r)
|
941
941
|
return i;
|
942
942
|
}
|
943
|
-
function
|
944
|
-
return t === void 0 && (t = 0), N(function(e,
|
945
|
-
e.subscribe(E(
|
946
|
-
return
|
947
|
-
return
|
943
|
+
function Ds(s, t) {
|
944
|
+
return t === void 0 && (t = 0), N(function(e, n) {
|
945
|
+
e.subscribe(E(n, function(r) {
|
946
|
+
return L(n, s, function() {
|
947
|
+
return n.next(r);
|
948
948
|
}, t);
|
949
949
|
}, function() {
|
950
|
-
return
|
951
|
-
return
|
950
|
+
return L(n, s, function() {
|
951
|
+
return n.complete();
|
952
952
|
}, t);
|
953
953
|
}, function(r) {
|
954
|
-
return
|
955
|
-
return
|
954
|
+
return L(n, s, function() {
|
955
|
+
return n.error(r);
|
956
956
|
}, t);
|
957
957
|
}));
|
958
958
|
});
|
959
959
|
}
|
960
|
-
function
|
961
|
-
return t === void 0 && (t = 0), N(function(e,
|
962
|
-
|
963
|
-
return e.subscribe(
|
960
|
+
function Bs(s, t) {
|
961
|
+
return t === void 0 && (t = 0), N(function(e, n) {
|
962
|
+
n.add(s.schedule(function() {
|
963
|
+
return e.subscribe(n);
|
964
964
|
}, t));
|
965
965
|
});
|
966
966
|
}
|
967
|
-
function
|
968
|
-
return
|
967
|
+
function Yn(s, t) {
|
968
|
+
return T(s).pipe(Bs(t), Ds(t));
|
969
969
|
}
|
970
|
-
function
|
971
|
-
return
|
970
|
+
function Zn(s, t) {
|
971
|
+
return T(s).pipe(Bs(t), Ds(t));
|
972
972
|
}
|
973
|
-
function
|
974
|
-
return new
|
975
|
-
var
|
973
|
+
function qn(s, t) {
|
974
|
+
return new x(function(e) {
|
975
|
+
var n = 0;
|
976
976
|
return t.schedule(function() {
|
977
|
-
|
977
|
+
n === s.length ? e.complete() : (e.next(s[n++]), e.closed || this.schedule());
|
978
978
|
});
|
979
979
|
});
|
980
980
|
}
|
981
|
-
function
|
982
|
-
return new
|
983
|
-
var
|
984
|
-
return
|
985
|
-
|
981
|
+
function Kn(s, t) {
|
982
|
+
return new x(function(e) {
|
983
|
+
var n;
|
984
|
+
return L(e, t, function() {
|
985
|
+
n = s[Us](), L(e, t, function() {
|
986
986
|
var r, i, o;
|
987
987
|
try {
|
988
|
-
r =
|
988
|
+
r = n.next(), i = r.value, o = r.done;
|
989
989
|
} catch (a) {
|
990
990
|
e.error(a);
|
991
991
|
return;
|
@@ -993,190 +993,190 @@ function Ks(n, t) {
|
|
993
993
|
o ? e.complete() : e.next(i);
|
994
994
|
}, 0, !0);
|
995
995
|
}), function() {
|
996
|
-
return g(
|
996
|
+
return g(n == null ? void 0 : n.return) && n.return();
|
997
997
|
};
|
998
998
|
});
|
999
999
|
}
|
1000
|
-
function
|
1001
|
-
if (!
|
1000
|
+
function zs(s, t) {
|
1001
|
+
if (!s)
|
1002
1002
|
throw new Error("Iterable cannot be null");
|
1003
|
-
return new
|
1004
|
-
|
1005
|
-
var
|
1006
|
-
|
1007
|
-
|
1003
|
+
return new x(function(e) {
|
1004
|
+
L(e, t, function() {
|
1005
|
+
var n = s[Symbol.asyncIterator]();
|
1006
|
+
L(e, t, function() {
|
1007
|
+
n.next().then(function(r) {
|
1008
1008
|
r.done ? e.complete() : e.next(r.value);
|
1009
1009
|
});
|
1010
1010
|
}, 0, !0);
|
1011
1011
|
});
|
1012
1012
|
});
|
1013
1013
|
}
|
1014
|
-
function
|
1015
|
-
return
|
1016
|
-
}
|
1017
|
-
function
|
1018
|
-
if (
|
1019
|
-
if (
|
1020
|
-
return
|
1021
|
-
if (
|
1022
|
-
return
|
1023
|
-
if (
|
1024
|
-
return
|
1025
|
-
if (
|
1026
|
-
return
|
1027
|
-
if (
|
1028
|
-
return
|
1029
|
-
if (
|
1030
|
-
return
|
1031
|
-
}
|
1032
|
-
throw
|
1033
|
-
}
|
1034
|
-
function Nt(
|
1035
|
-
return t ?
|
1014
|
+
function Gn(s, t) {
|
1015
|
+
return zs(js(s), t);
|
1016
|
+
}
|
1017
|
+
function Xn(s, t) {
|
1018
|
+
if (s != null) {
|
1019
|
+
if (Ls(s))
|
1020
|
+
return Yn(s, t);
|
1021
|
+
if (be(s))
|
1022
|
+
return qn(s, t);
|
1023
|
+
if (Ps(s))
|
1024
|
+
return Zn(s, t);
|
1025
|
+
if (Ms(s))
|
1026
|
+
return zs(s, t);
|
1027
|
+
if (Rs(s))
|
1028
|
+
return Kn(s, t);
|
1029
|
+
if (Hs(s))
|
1030
|
+
return Gn(s, t);
|
1031
|
+
}
|
1032
|
+
throw Is(s);
|
1033
|
+
}
|
1034
|
+
function Nt(s, t) {
|
1035
|
+
return t ? Xn(s, t) : T(s);
|
1036
1036
|
}
|
1037
1037
|
function le() {
|
1038
|
-
for (var
|
1039
|
-
|
1040
|
-
var e =
|
1041
|
-
return Nt(
|
1038
|
+
for (var s = [], t = 0; t < arguments.length; t++)
|
1039
|
+
s[t] = arguments[t];
|
1040
|
+
var e = ye(s);
|
1041
|
+
return Nt(s, e);
|
1042
1042
|
}
|
1043
|
-
function
|
1044
|
-
return N(function(e,
|
1043
|
+
function Et(s, t) {
|
1044
|
+
return N(function(e, n) {
|
1045
1045
|
var r = 0;
|
1046
|
-
e.subscribe(E(
|
1047
|
-
|
1046
|
+
e.subscribe(E(n, function(i) {
|
1047
|
+
n.next(s.call(t, i, r++));
|
1048
1048
|
}));
|
1049
1049
|
});
|
1050
1050
|
}
|
1051
|
-
var
|
1052
|
-
function
|
1053
|
-
return
|
1051
|
+
var Jn = Array.isArray;
|
1052
|
+
function Qn(s, t) {
|
1053
|
+
return Jn(t) ? s.apply(void 0, F([], j(t))) : s(t);
|
1054
1054
|
}
|
1055
|
-
function
|
1056
|
-
return
|
1057
|
-
return
|
1055
|
+
function Fs(s) {
|
1056
|
+
return Et(function(t) {
|
1057
|
+
return Qn(s, t);
|
1058
1058
|
});
|
1059
1059
|
}
|
1060
|
-
var
|
1061
|
-
function
|
1062
|
-
if (
|
1063
|
-
var t =
|
1064
|
-
if (
|
1060
|
+
var Vn = Array.isArray, tr = Object.getPrototypeOf, er = Object.prototype, sr = Object.keys;
|
1061
|
+
function nr(s) {
|
1062
|
+
if (s.length === 1) {
|
1063
|
+
var t = s[0];
|
1064
|
+
if (Vn(t))
|
1065
1065
|
return { args: t, keys: null };
|
1066
1066
|
if (rr(t)) {
|
1067
|
-
var e =
|
1067
|
+
var e = sr(t);
|
1068
1068
|
return {
|
1069
|
-
args: e.map(function(
|
1070
|
-
return t[
|
1069
|
+
args: e.map(function(n) {
|
1070
|
+
return t[n];
|
1071
1071
|
}),
|
1072
1072
|
keys: e
|
1073
1073
|
};
|
1074
1074
|
}
|
1075
1075
|
}
|
1076
|
-
return { args:
|
1076
|
+
return { args: s, keys: null };
|
1077
1077
|
}
|
1078
|
-
function rr(
|
1079
|
-
return
|
1078
|
+
function rr(s) {
|
1079
|
+
return s && typeof s == "object" && tr(s) === er;
|
1080
1080
|
}
|
1081
|
-
function ir(
|
1082
|
-
return
|
1083
|
-
return e[
|
1081
|
+
function ir(s, t) {
|
1082
|
+
return s.reduce(function(e, n, r) {
|
1083
|
+
return e[n] = t[r], e;
|
1084
1084
|
}, {});
|
1085
1085
|
}
|
1086
1086
|
function or() {
|
1087
|
-
for (var
|
1088
|
-
|
1089
|
-
var e =
|
1087
|
+
for (var s = [], t = 0; t < arguments.length; t++)
|
1088
|
+
s[t] = arguments[t];
|
1089
|
+
var e = ye(s), n = Ts(s), r = nr(s), i = r.args, o = r.keys;
|
1090
1090
|
if (i.length === 0)
|
1091
1091
|
return Nt([], e);
|
1092
|
-
var a = new
|
1092
|
+
var a = new x(ar(i, e, o ? function(l) {
|
1093
1093
|
return ir(o, l);
|
1094
|
-
} :
|
1095
|
-
return
|
1096
|
-
}
|
1097
|
-
function ar(
|
1098
|
-
return e === void 0 && (e =
|
1099
|
-
|
1100
|
-
for (var r =
|
1101
|
-
|
1102
|
-
var h = Nt(
|
1103
|
-
h.subscribe(E(
|
1104
|
-
i[u] = p, d || (d = !0, a--), a ||
|
1094
|
+
} : vt));
|
1095
|
+
return n ? a.pipe(Fs(n)) : a;
|
1096
|
+
}
|
1097
|
+
function ar(s, t, e) {
|
1098
|
+
return e === void 0 && (e = vt), function(n) {
|
1099
|
+
Be(t, function() {
|
1100
|
+
for (var r = s.length, i = new Array(r), o = r, a = r, l = function(u) {
|
1101
|
+
Be(t, function() {
|
1102
|
+
var h = Nt(s[u], t), d = !1;
|
1103
|
+
h.subscribe(E(n, function(p) {
|
1104
|
+
i[u] = p, d || (d = !0, a--), a || n.next(e(i.slice()));
|
1105
1105
|
}, function() {
|
1106
|
-
--o ||
|
1106
|
+
--o || n.complete();
|
1107
1107
|
}));
|
1108
|
-
},
|
1108
|
+
}, n);
|
1109
1109
|
}, c = 0; c < r; c++)
|
1110
1110
|
l(c);
|
1111
|
-
},
|
1111
|
+
}, n);
|
1112
1112
|
};
|
1113
1113
|
}
|
1114
|
-
function
|
1115
|
-
|
1114
|
+
function Be(s, t, e) {
|
1115
|
+
s ? L(e, s, t) : t();
|
1116
1116
|
}
|
1117
|
-
function lr(
|
1117
|
+
function lr(s, t, e, n, r, i, o, a) {
|
1118
1118
|
var l = [], c = 0, u = 0, h = !1, d = function() {
|
1119
1119
|
h && !l.length && !c && t.complete();
|
1120
1120
|
}, p = function(m) {
|
1121
|
-
return c <
|
1121
|
+
return c < n ? $(m) : l.push(m);
|
1122
1122
|
}, $ = function(m) {
|
1123
1123
|
i && t.next(m), c++;
|
1124
|
-
var
|
1125
|
-
|
1126
|
-
r == null || r(
|
1124
|
+
var je = !1;
|
1125
|
+
T(e(m, u++)).subscribe(E(t, function(it) {
|
1126
|
+
r == null || r(it), i ? p(it) : t.next(it);
|
1127
1127
|
}, function() {
|
1128
|
-
|
1128
|
+
je = !0;
|
1129
1129
|
}, void 0, function() {
|
1130
|
-
if (
|
1130
|
+
if (je)
|
1131
1131
|
try {
|
1132
1132
|
c--;
|
1133
|
-
for (var
|
1134
|
-
var
|
1135
|
-
o ?
|
1136
|
-
return $(
|
1137
|
-
}) : $(
|
1138
|
-
}; l.length && c <
|
1139
|
-
|
1133
|
+
for (var it = function() {
|
1134
|
+
var bt = l.shift();
|
1135
|
+
o ? L(t, o, function() {
|
1136
|
+
return $(bt);
|
1137
|
+
}) : $(bt);
|
1138
|
+
}; l.length && c < n; )
|
1139
|
+
it();
|
1140
1140
|
d();
|
1141
|
-
} catch (
|
1142
|
-
t.error(
|
1141
|
+
} catch (bt) {
|
1142
|
+
t.error(bt);
|
1143
1143
|
}
|
1144
1144
|
}));
|
1145
1145
|
};
|
1146
|
-
return
|
1146
|
+
return s.subscribe(E(t, p, function() {
|
1147
1147
|
h = !0, d();
|
1148
1148
|
})), function() {
|
1149
1149
|
a == null || a();
|
1150
1150
|
};
|
1151
1151
|
}
|
1152
|
-
function
|
1153
|
-
return e === void 0 && (e = 1 / 0), g(t) ?
|
1154
|
-
return
|
1155
|
-
return t(
|
1156
|
-
})(
|
1157
|
-
}, e) : (typeof t == "number" && (e = t), N(function(
|
1158
|
-
return lr(
|
1152
|
+
function we(s, t, e) {
|
1153
|
+
return e === void 0 && (e = 1 / 0), g(t) ? we(function(n, r) {
|
1154
|
+
return Et(function(i, o) {
|
1155
|
+
return t(n, i, r, o);
|
1156
|
+
})(T(s(n, r)));
|
1157
|
+
}, e) : (typeof t == "number" && (e = t), N(function(n, r) {
|
1158
|
+
return lr(n, r, s, e);
|
1159
1159
|
}));
|
1160
1160
|
}
|
1161
|
-
function cr(
|
1162
|
-
return
|
1161
|
+
function cr(s) {
|
1162
|
+
return s === void 0 && (s = 1 / 0), we(vt, s);
|
1163
1163
|
}
|
1164
1164
|
var ur = ["addListener", "removeListener"], hr = ["addEventListener", "removeEventListener"], dr = ["on", "off"];
|
1165
|
-
function
|
1166
|
-
if (g(e) && (
|
1167
|
-
return
|
1168
|
-
var r =
|
1165
|
+
function Ot(s, t, e, n) {
|
1166
|
+
if (g(e) && (n = e, e = void 0), n)
|
1167
|
+
return Ot(s, t, e).pipe(Fs(n));
|
1168
|
+
var r = j(vr(s) ? hr.map(function(a) {
|
1169
1169
|
return function(l) {
|
1170
|
-
return
|
1170
|
+
return s[a](t, l, e);
|
1171
1171
|
};
|
1172
|
-
}) : pr(
|
1173
|
-
if (!i &&
|
1174
|
-
return
|
1175
|
-
return
|
1176
|
-
})(
|
1172
|
+
}) : pr(s) ? ur.map(ze(s, t)) : fr(s) ? dr.map(ze(s, t)) : [], 2), i = r[0], o = r[1];
|
1173
|
+
if (!i && be(s))
|
1174
|
+
return we(function(a) {
|
1175
|
+
return Ot(a, t, e);
|
1176
|
+
})(T(s));
|
1177
1177
|
if (!i)
|
1178
1178
|
throw new TypeError("Invalid event target");
|
1179
|
-
return new
|
1179
|
+
return new x(function(a) {
|
1180
1180
|
var l = function() {
|
1181
1181
|
for (var c = [], u = 0; u < arguments.length; u++)
|
1182
1182
|
c[u] = arguments[u];
|
@@ -1187,48 +1187,48 @@ function Et(n, t, e, s) {
|
|
1187
1187
|
};
|
1188
1188
|
});
|
1189
1189
|
}
|
1190
|
-
function
|
1190
|
+
function ze(s, t) {
|
1191
1191
|
return function(e) {
|
1192
|
-
return function(
|
1193
|
-
return
|
1192
|
+
return function(n) {
|
1193
|
+
return s[e](t, n);
|
1194
1194
|
};
|
1195
1195
|
};
|
1196
1196
|
}
|
1197
|
-
function pr(
|
1198
|
-
return g(
|
1197
|
+
function pr(s) {
|
1198
|
+
return g(s.addListener) && g(s.removeListener);
|
1199
1199
|
}
|
1200
|
-
function fr(
|
1201
|
-
return g(
|
1200
|
+
function fr(s) {
|
1201
|
+
return g(s.on) && g(s.off);
|
1202
1202
|
}
|
1203
|
-
function vr(
|
1204
|
-
return g(
|
1203
|
+
function vr(s) {
|
1204
|
+
return g(s.addEventListener) && g(s.removeEventListener);
|
1205
1205
|
}
|
1206
1206
|
function gr() {
|
1207
|
-
for (var
|
1208
|
-
|
1209
|
-
var e =
|
1210
|
-
return r.length ? r.length === 1 ?
|
1211
|
-
}
|
1212
|
-
function ce(
|
1213
|
-
return
|
1214
|
-
return
|
1207
|
+
for (var s = [], t = 0; t < arguments.length; t++)
|
1208
|
+
s[t] = arguments[t];
|
1209
|
+
var e = ye(s), n = jn(s, 1 / 0), r = s;
|
1210
|
+
return r.length ? r.length === 1 ? T(r[0]) : cr(n)(Nt(r, e)) : gt;
|
1211
|
+
}
|
1212
|
+
function ce(s) {
|
1213
|
+
return s <= 0 ? function() {
|
1214
|
+
return gt;
|
1215
1215
|
} : N(function(t, e) {
|
1216
|
-
var
|
1216
|
+
var n = 0;
|
1217
1217
|
t.subscribe(E(e, function(r) {
|
1218
|
-
++
|
1218
|
+
++n <= s && (e.next(r), s <= n && e.complete());
|
1219
1219
|
}));
|
1220
1220
|
});
|
1221
1221
|
}
|
1222
|
-
function Q(
|
1223
|
-
return N(function(e,
|
1222
|
+
function Q(s, t) {
|
1223
|
+
return N(function(e, n) {
|
1224
1224
|
var r = null, i = 0, o = !1, a = function() {
|
1225
|
-
return o && !r &&
|
1225
|
+
return o && !r && n.complete();
|
1226
1226
|
};
|
1227
|
-
e.subscribe(E(
|
1227
|
+
e.subscribe(E(n, function(l) {
|
1228
1228
|
r == null || r.unsubscribe();
|
1229
1229
|
var c = 0, u = i++;
|
1230
|
-
|
1231
|
-
return
|
1230
|
+
T(s(l, u)).subscribe(r = E(n, function(h) {
|
1231
|
+
return n.next(t ? t(l, h, u, c++) : h);
|
1232
1232
|
}, function() {
|
1233
1233
|
r = null, a();
|
1234
1234
|
}));
|
@@ -1237,39 +1237,39 @@ function Q(n, t) {
|
|
1237
1237
|
}));
|
1238
1238
|
});
|
1239
1239
|
}
|
1240
|
-
function
|
1240
|
+
function Fe(s) {
|
1241
1241
|
return N(function(t, e) {
|
1242
|
-
|
1242
|
+
T(s).subscribe(E(e, function() {
|
1243
1243
|
return e.complete();
|
1244
|
-
},
|
1244
|
+
}, At)), !e.closed && t.subscribe(e);
|
1245
1245
|
});
|
1246
1246
|
}
|
1247
|
-
function
|
1248
|
-
for (var
|
1249
|
-
|
1250
|
-
var e =
|
1251
|
-
return N(function(
|
1252
|
-
for (var i =
|
1247
|
+
function ue() {
|
1248
|
+
for (var s = [], t = 0; t < arguments.length; t++)
|
1249
|
+
s[t] = arguments[t];
|
1250
|
+
var e = Ts(s);
|
1251
|
+
return N(function(n, r) {
|
1252
|
+
for (var i = s.length, o = new Array(i), a = s.map(function() {
|
1253
1253
|
return !1;
|
1254
1254
|
}), l = !1, c = function(h) {
|
1255
|
-
|
1256
|
-
o[h] = d, !l && !a[h] && (a[h] = !0, (l = a.every(
|
1257
|
-
},
|
1255
|
+
T(s[h]).subscribe(E(r, function(d) {
|
1256
|
+
o[h] = d, !l && !a[h] && (a[h] = !0, (l = a.every(vt)) && (a = null));
|
1257
|
+
}, At));
|
1258
1258
|
}, u = 0; u < i; u++)
|
1259
1259
|
c(u);
|
1260
|
-
|
1260
|
+
n.subscribe(E(r, function(h) {
|
1261
1261
|
if (l) {
|
1262
|
-
var d = F([h],
|
1263
|
-
r.next(e ? e.apply(void 0, F([],
|
1262
|
+
var d = F([h], j(o));
|
1263
|
+
r.next(e ? e.apply(void 0, F([], j(d))) : d);
|
1264
1264
|
}
|
1265
1265
|
}));
|
1266
1266
|
});
|
1267
1267
|
}
|
1268
|
-
var
|
1269
|
-
const
|
1268
|
+
var U = /* @__PURE__ */ ((s) => (s.User = "user", s.Agent = "agent", s.System = "system", s))(U || {});
|
1269
|
+
const Ws = () => crypto.randomUUID();
|
1270
1270
|
class Dt {
|
1271
|
-
constructor(t, e,
|
1272
|
-
this.type = t, this.sender = e, this.messages =
|
1271
|
+
constructor(t, e, n) {
|
1272
|
+
this.type = t, this.sender = e, this.messages = n, this.status = "delivered", this.didUpdate = new _(), this.actions$ = new _(), this.remove$ = new _(), this.timestamp = Date.now(), this.id = Ws();
|
1273
1273
|
}
|
1274
1274
|
update(t) {
|
1275
1275
|
this.messages = [
|
@@ -1291,7 +1291,7 @@ class mr {
|
|
1291
1291
|
}
|
1292
1292
|
print(t) {
|
1293
1293
|
const e = new Dt(
|
1294
|
-
|
1294
|
+
U.Agent,
|
1295
1295
|
{ name: this.name },
|
1296
1296
|
[
|
1297
1297
|
{
|
@@ -1311,7 +1311,7 @@ class $r {
|
|
1311
1311
|
}
|
1312
1312
|
print(t) {
|
1313
1313
|
const e = new Dt(
|
1314
|
-
|
1314
|
+
U.User,
|
1315
1315
|
{ name: this.name },
|
1316
1316
|
[
|
1317
1317
|
{
|
@@ -1331,7 +1331,7 @@ class yr {
|
|
1331
1331
|
}
|
1332
1332
|
print(t) {
|
1333
1333
|
const e = new Dt(
|
1334
|
-
|
1334
|
+
U.System,
|
1335
1335
|
{ name: this.name },
|
1336
1336
|
[
|
1337
1337
|
{
|
@@ -1345,9 +1345,9 @@ class yr {
|
|
1345
1345
|
return this.print$.asObservable();
|
1346
1346
|
}
|
1347
1347
|
}
|
1348
|
-
class
|
1348
|
+
class jo {
|
1349
1349
|
constructor(t, e) {
|
1350
|
-
this.name = t, this.component = e, this.print$ = new _(), this.typingState$ = new
|
1350
|
+
this.name = t, this.component = e, this.print$ = new _(), this.typingState$ = new P(!1), this.complete$ = new _(), this.system = this.createSystem(), this.rehydrate$ = new _(), this.saveToCurrentSession$ = new _(), this.showChatOverlay$ = new P(!1), this.onComplete = () => this.complete$.asObservable();
|
1351
1351
|
}
|
1352
1352
|
connect(t = {}) {
|
1353
1353
|
this.complete$.pipe(ce(1)).subscribe(() => {
|
@@ -1359,10 +1359,10 @@ class Ro {
|
|
1359
1359
|
disconnected() {
|
1360
1360
|
}
|
1361
1361
|
onUserSubmit(t) {
|
1362
|
-
this.print(
|
1362
|
+
this.print(U.User, t.text);
|
1363
1363
|
}
|
1364
1364
|
print(t, e) {
|
1365
|
-
const
|
1365
|
+
const n = new Dt(
|
1366
1366
|
t,
|
1367
1367
|
{
|
1368
1368
|
name: ""
|
@@ -1373,21 +1373,21 @@ class Ro {
|
|
1373
1373
|
}
|
1374
1374
|
]
|
1375
1375
|
);
|
1376
|
-
return this.printEntry(
|
1376
|
+
return this.printEntry(n);
|
1377
1377
|
}
|
1378
1378
|
printEntry(t) {
|
1379
1379
|
return this.print$.next(t), t;
|
1380
1380
|
}
|
1381
1381
|
createAgent(t) {
|
1382
1382
|
const e = new mr(t);
|
1383
|
-
return e.subscribe().subscribe((
|
1384
|
-
this.playNotification(), this.printEntry(
|
1383
|
+
return e.subscribe().subscribe((n) => {
|
1384
|
+
this.playNotification(), this.printEntry(n);
|
1385
1385
|
}), e;
|
1386
1386
|
}
|
1387
1387
|
createUser(t) {
|
1388
1388
|
const e = new $r(t);
|
1389
|
-
return e.subscribe().subscribe((
|
1390
|
-
this.printEntry(
|
1389
|
+
return e.subscribe().subscribe((n) => {
|
1390
|
+
this.printEntry(n);
|
1391
1391
|
}), e;
|
1392
1392
|
}
|
1393
1393
|
createSystem() {
|
@@ -1427,19 +1427,19 @@ class Ro {
|
|
1427
1427
|
* Copyright 2019 Google LLC
|
1428
1428
|
* SPDX-License-Identifier: BSD-3-Clause
|
1429
1429
|
*/
|
1430
|
-
const
|
1431
|
-
let
|
1432
|
-
constructor(t, e,
|
1433
|
-
if (this._$cssResult$ = !0,
|
1430
|
+
const Ct = globalThis, _e = Ct.ShadowRoot && (Ct.ShadyCSS === void 0 || Ct.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, xe = Symbol(), We = /* @__PURE__ */ new WeakMap();
|
1431
|
+
let Ys = class {
|
1432
|
+
constructor(t, e, n) {
|
1433
|
+
if (this._$cssResult$ = !0, n !== xe)
|
1434
1434
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
1435
1435
|
this.cssText = t, this.t = e;
|
1436
1436
|
}
|
1437
1437
|
get styleSheet() {
|
1438
1438
|
let t = this.o;
|
1439
1439
|
const e = this.t;
|
1440
|
-
if (
|
1441
|
-
const
|
1442
|
-
|
1440
|
+
if (_e && t === void 0) {
|
1441
|
+
const n = e !== void 0 && e.length === 1;
|
1442
|
+
n && (t = We.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && We.set(e, t));
|
1443
1443
|
}
|
1444
1444
|
return t;
|
1445
1445
|
}
|
@@ -1447,64 +1447,64 @@ let Zn = class {
|
|
1447
1447
|
return this.cssText;
|
1448
1448
|
}
|
1449
1449
|
};
|
1450
|
-
const br = (
|
1451
|
-
const e =
|
1450
|
+
const br = (s) => new Ys(typeof s == "string" ? s : s + "", void 0, xe), C = (s, ...t) => {
|
1451
|
+
const e = s.length === 1 ? s[0] : t.reduce((n, r, i) => n + ((o) => {
|
1452
1452
|
if (o._$cssResult$ === !0)
|
1453
1453
|
return o.cssText;
|
1454
1454
|
if (typeof o == "number")
|
1455
1455
|
return o;
|
1456
1456
|
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.");
|
1457
|
-
})(r) +
|
1458
|
-
return new
|
1459
|
-
}, wr = (
|
1460
|
-
if (
|
1461
|
-
|
1457
|
+
})(r) + s[i + 1], s[0]);
|
1458
|
+
return new Ys(e, s, xe);
|
1459
|
+
}, wr = (s, t) => {
|
1460
|
+
if (_e)
|
1461
|
+
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
1462
1462
|
else
|
1463
1463
|
for (const e of t) {
|
1464
|
-
const
|
1465
|
-
r !== void 0 &&
|
1464
|
+
const n = document.createElement("style"), r = Ct.litNonce;
|
1465
|
+
r !== void 0 && n.setAttribute("nonce", r), n.textContent = e.cssText, s.appendChild(n);
|
1466
1466
|
}
|
1467
|
-
},
|
1467
|
+
}, Ye = _e ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
1468
1468
|
let e = "";
|
1469
|
-
for (const
|
1470
|
-
e +=
|
1469
|
+
for (const n of t.cssRules)
|
1470
|
+
e += n.cssText;
|
1471
1471
|
return br(e);
|
1472
|
-
})(
|
1472
|
+
})(s) : s;
|
1473
1473
|
/**
|
1474
1474
|
* @license
|
1475
1475
|
* Copyright 2017 Google LLC
|
1476
1476
|
* SPDX-License-Identifier: BSD-3-Clause
|
1477
1477
|
*/
|
1478
|
-
const { is: _r, defineProperty:
|
1478
|
+
const { is: _r, defineProperty: xr, getOwnPropertyDescriptor: Sr, getOwnPropertyNames: Cr, getOwnPropertySymbols: Ar, getPrototypeOf: Er } = Object, R = globalThis, Ze = R.trustedTypes, Or = Ze ? Ze.emptyScript : "", Jt = R.reactiveElementPolyfillSupport, at = (s, t) => s, kt = { toAttribute(s, t) {
|
1479
1479
|
switch (t) {
|
1480
1480
|
case Boolean:
|
1481
|
-
|
1481
|
+
s = s ? Or : null;
|
1482
1482
|
break;
|
1483
1483
|
case Object:
|
1484
1484
|
case Array:
|
1485
|
-
|
1485
|
+
s = s == null ? s : JSON.stringify(s);
|
1486
1486
|
}
|
1487
|
-
return
|
1488
|
-
}, fromAttribute(
|
1489
|
-
let e =
|
1487
|
+
return s;
|
1488
|
+
}, fromAttribute(s, t) {
|
1489
|
+
let e = s;
|
1490
1490
|
switch (t) {
|
1491
1491
|
case Boolean:
|
1492
|
-
e =
|
1492
|
+
e = s !== null;
|
1493
1493
|
break;
|
1494
1494
|
case Number:
|
1495
|
-
e =
|
1495
|
+
e = s === null ? null : Number(s);
|
1496
1496
|
break;
|
1497
1497
|
case Object:
|
1498
1498
|
case Array:
|
1499
1499
|
try {
|
1500
|
-
e = JSON.parse(
|
1500
|
+
e = JSON.parse(s);
|
1501
1501
|
} catch {
|
1502
1502
|
e = null;
|
1503
1503
|
}
|
1504
1504
|
}
|
1505
1505
|
return e;
|
1506
|
-
} }, Se = (
|
1507
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
1506
|
+
} }, Se = (s, t) => !_r(s, t), qe = { attribute: !0, type: String, converter: kt, reflect: !1, hasChanged: Se };
|
1507
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), R.litPropertyMetadata ?? (R.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1508
1508
|
let q = class extends HTMLElement {
|
1509
1509
|
static addInitializer(t) {
|
1510
1510
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
@@ -1512,14 +1512,14 @@ let q = class extends HTMLElement {
|
|
1512
1512
|
static get observedAttributes() {
|
1513
1513
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
1514
1514
|
}
|
1515
|
-
static createProperty(t, e =
|
1515
|
+
static createProperty(t, e = qe) {
|
1516
1516
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
1517
|
-
const
|
1518
|
-
r !== void 0 &&
|
1517
|
+
const n = Symbol(), r = this.getPropertyDescriptor(t, n, e);
|
1518
|
+
r !== void 0 && xr(this.prototype, t, r);
|
1519
1519
|
}
|
1520
1520
|
}
|
1521
|
-
static getPropertyDescriptor(t, e,
|
1522
|
-
const { get: r, set: i } =
|
1521
|
+
static getPropertyDescriptor(t, e, n) {
|
1522
|
+
const { get: r, set: i } = Sr(this.prototype, t) ?? { get() {
|
1523
1523
|
return this[e];
|
1524
1524
|
}, set(o) {
|
1525
1525
|
this[e] = o;
|
@@ -1528,36 +1528,36 @@ let q = class extends HTMLElement {
|
|
1528
1528
|
return r == null ? void 0 : r.call(this);
|
1529
1529
|
}, set(o) {
|
1530
1530
|
const a = r == null ? void 0 : r.call(this);
|
1531
|
-
i.call(this, o), this.requestUpdate(t, a,
|
1531
|
+
i.call(this, o), this.requestUpdate(t, a, n);
|
1532
1532
|
}, configurable: !0, enumerable: !0 };
|
1533
1533
|
}
|
1534
1534
|
static getPropertyOptions(t) {
|
1535
|
-
return this.elementProperties.get(t) ??
|
1535
|
+
return this.elementProperties.get(t) ?? qe;
|
1536
1536
|
}
|
1537
1537
|
static _$Ei() {
|
1538
|
-
if (this.hasOwnProperty(
|
1538
|
+
if (this.hasOwnProperty(at("elementProperties")))
|
1539
1539
|
return;
|
1540
1540
|
const t = Er(this);
|
1541
1541
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
1542
1542
|
}
|
1543
1543
|
static finalize() {
|
1544
|
-
if (this.hasOwnProperty(
|
1544
|
+
if (this.hasOwnProperty(at("finalized")))
|
1545
1545
|
return;
|
1546
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
1547
|
-
const e = this.properties,
|
1548
|
-
for (const r of
|
1546
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(at("properties"))) {
|
1547
|
+
const e = this.properties, n = [...Cr(e), ...Ar(e)];
|
1548
|
+
for (const r of n)
|
1549
1549
|
this.createProperty(r, e[r]);
|
1550
1550
|
}
|
1551
1551
|
const t = this[Symbol.metadata];
|
1552
1552
|
if (t !== null) {
|
1553
1553
|
const e = litPropertyMetadata.get(t);
|
1554
1554
|
if (e !== void 0)
|
1555
|
-
for (const [
|
1556
|
-
this.elementProperties.set(
|
1555
|
+
for (const [n, r] of e)
|
1556
|
+
this.elementProperties.set(n, r);
|
1557
1557
|
}
|
1558
1558
|
this._$Eh = /* @__PURE__ */ new Map();
|
1559
|
-
for (const [e,
|
1560
|
-
const r = this._$Eu(e,
|
1559
|
+
for (const [e, n] of this.elementProperties) {
|
1560
|
+
const r = this._$Eu(e, n);
|
1561
1561
|
r !== void 0 && this._$Eh.set(r, e);
|
1562
1562
|
}
|
1563
1563
|
this.elementStyles = this.finalizeStyles(this.styles);
|
@@ -1565,16 +1565,16 @@ let q = class extends HTMLElement {
|
|
1565
1565
|
static finalizeStyles(t) {
|
1566
1566
|
const e = [];
|
1567
1567
|
if (Array.isArray(t)) {
|
1568
|
-
const
|
1569
|
-
for (const r of
|
1570
|
-
e.unshift(
|
1568
|
+
const n = new Set(t.flat(1 / 0).reverse());
|
1569
|
+
for (const r of n)
|
1570
|
+
e.unshift(Ye(r));
|
1571
1571
|
} else
|
1572
|
-
t !== void 0 && e.push(
|
1572
|
+
t !== void 0 && e.push(Ye(t));
|
1573
1573
|
return e;
|
1574
1574
|
}
|
1575
1575
|
static _$Eu(t, e) {
|
1576
|
-
const
|
1577
|
-
return
|
1576
|
+
const n = e.attribute;
|
1577
|
+
return n === !1 ? void 0 : typeof n == "string" ? n : typeof t == "string" ? t.toLowerCase() : void 0;
|
1578
1578
|
}
|
1579
1579
|
constructor() {
|
1580
1580
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
@@ -1593,8 +1593,8 @@ let q = class extends HTMLElement {
|
|
1593
1593
|
}
|
1594
1594
|
_$E_() {
|
1595
1595
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
1596
|
-
for (const
|
1597
|
-
this.hasOwnProperty(
|
1596
|
+
for (const n of e.keys())
|
1597
|
+
this.hasOwnProperty(n) && (t.set(n, this[n]), delete this[n]);
|
1598
1598
|
t.size > 0 && (this._$Ep = t);
|
1599
1599
|
}
|
1600
1600
|
createRenderRoot() {
|
@@ -1604,8 +1604,8 @@ let q = class extends HTMLElement {
|
|
1604
1604
|
connectedCallback() {
|
1605
1605
|
var t;
|
1606
1606
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
1607
|
-
var
|
1608
|
-
return (
|
1607
|
+
var n;
|
1608
|
+
return (n = e.hostConnected) == null ? void 0 : n.call(e);
|
1609
1609
|
});
|
1610
1610
|
}
|
1611
1611
|
enableUpdating(t) {
|
@@ -1613,39 +1613,39 @@ let q = class extends HTMLElement {
|
|
1613
1613
|
disconnectedCallback() {
|
1614
1614
|
var t;
|
1615
1615
|
(t = this._$EO) == null || t.forEach((e) => {
|
1616
|
-
var
|
1617
|
-
return (
|
1616
|
+
var n;
|
1617
|
+
return (n = e.hostDisconnected) == null ? void 0 : n.call(e);
|
1618
1618
|
});
|
1619
1619
|
}
|
1620
|
-
attributeChangedCallback(t, e,
|
1621
|
-
this._$AK(t,
|
1620
|
+
attributeChangedCallback(t, e, n) {
|
1621
|
+
this._$AK(t, n);
|
1622
1622
|
}
|
1623
1623
|
_$EC(t, e) {
|
1624
1624
|
var i;
|
1625
|
-
const
|
1626
|
-
if (r !== void 0 &&
|
1627
|
-
const o = (((i =
|
1625
|
+
const n = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, n);
|
1626
|
+
if (r !== void 0 && n.reflect === !0) {
|
1627
|
+
const o = (((i = n.converter) == null ? void 0 : i.toAttribute) !== void 0 ? n.converter : kt).toAttribute(e, n.type);
|
1628
1628
|
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
1629
1629
|
}
|
1630
1630
|
}
|
1631
1631
|
_$AK(t, e) {
|
1632
1632
|
var i;
|
1633
|
-
const
|
1633
|
+
const n = this.constructor, r = n._$Eh.get(t);
|
1634
1634
|
if (r !== void 0 && this._$Em !== r) {
|
1635
|
-
const o =
|
1635
|
+
const o = n.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? o.converter : kt;
|
1636
1636
|
this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
|
1637
1637
|
}
|
1638
1638
|
}
|
1639
|
-
requestUpdate(t, e,
|
1639
|
+
requestUpdate(t, e, n) {
|
1640
1640
|
if (t !== void 0) {
|
1641
|
-
if (
|
1641
|
+
if (n ?? (n = this.constructor.getPropertyOptions(t)), !(n.hasChanged ?? Se)(this[t], e))
|
1642
1642
|
return;
|
1643
|
-
this.P(t, e,
|
1643
|
+
this.P(t, e, n);
|
1644
1644
|
}
|
1645
1645
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
1646
1646
|
}
|
1647
|
-
P(t, e,
|
1648
|
-
this._$AL.has(t) || this._$AL.set(t, e),
|
1647
|
+
P(t, e, n) {
|
1648
|
+
this._$AL.has(t) || this._$AL.set(t, e), n.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
1649
1649
|
}
|
1650
1650
|
async _$ET() {
|
1651
1651
|
this.isUpdatePending = !0;
|
@@ -1661,7 +1661,7 @@ let q = class extends HTMLElement {
|
|
1661
1661
|
return this.performUpdate();
|
1662
1662
|
}
|
1663
1663
|
performUpdate() {
|
1664
|
-
var
|
1664
|
+
var n;
|
1665
1665
|
if (!this.isUpdatePending)
|
1666
1666
|
return;
|
1667
1667
|
if (!this.hasUpdated) {
|
@@ -1678,7 +1678,7 @@ let q = class extends HTMLElement {
|
|
1678
1678
|
let t = !1;
|
1679
1679
|
const e = this._$AL;
|
1680
1680
|
try {
|
1681
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (
|
1681
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((r) => {
|
1682
1682
|
var i;
|
1683
1683
|
return (i = r.hostUpdate) == null ? void 0 : i.call(r);
|
1684
1684
|
}), this.update(e)) : this._$EU();
|
@@ -1691,9 +1691,9 @@ let q = class extends HTMLElement {
|
|
1691
1691
|
}
|
1692
1692
|
_$AE(t) {
|
1693
1693
|
var e;
|
1694
|
-
(e = this._$EO) == null || e.forEach((
|
1694
|
+
(e = this._$EO) == null || e.forEach((n) => {
|
1695
1695
|
var r;
|
1696
|
-
return (r =
|
1696
|
+
return (r = n.hostUpdated) == null ? void 0 : r.call(n);
|
1697
1697
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
1698
1698
|
}
|
1699
1699
|
_$EU() {
|
@@ -1716,40 +1716,40 @@ let q = class extends HTMLElement {
|
|
1716
1716
|
firstUpdated(t) {
|
1717
1717
|
}
|
1718
1718
|
};
|
1719
|
-
q.elementStyles = [], q.shadowRootOptions = { mode: "open" }, q[
|
1719
|
+
q.elementStyles = [], q.shadowRootOptions = { mode: "open" }, q[at("elementProperties")] = /* @__PURE__ */ new Map(), q[at("finalized")] = /* @__PURE__ */ new Map(), Jt == null || Jt({ ReactiveElement: q }), (R.reactiveElementVersions ?? (R.reactiveElementVersions = [])).push("2.0.4");
|
1720
1720
|
/**
|
1721
1721
|
* @license
|
1722
1722
|
* Copyright 2017 Google LLC
|
1723
1723
|
* SPDX-License-Identifier: BSD-3-Clause
|
1724
1724
|
*/
|
1725
|
-
const
|
1726
|
-
\f\r]`,
|
1727
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
1728
|
-
function
|
1729
|
-
if (!Array.isArray(
|
1725
|
+
const lt = globalThis, Tt = lt.trustedTypes, Ke = Tt ? Tt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Zs = "$lit$", I = `lit$${(Math.random() + "").slice(9)}$`, qs = "?" + I, kr = `<${qs}>`, W = document, ut = () => W.createComment(""), ht = (s) => s === null || typeof s != "object" && typeof s != "function", Ks = Array.isArray, Tr = (s) => Ks(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", Qt = `[
|
1726
|
+
\f\r]`, ot = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ge = /-->/g, Xe = />/g, D = RegExp(`>|${Qt}(?:([^\\s"'>=/]+)(${Qt}*=${Qt}*(?:[^
|
1727
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Je = /'/g, Qe = /"/g, Gs = /^(?:script|style|textarea|title)$/i, Pr = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), v = Pr(1), H = Symbol.for("lit-noChange"), f = Symbol.for("lit-nothing"), Ve = /* @__PURE__ */ new WeakMap(), z = W.createTreeWalker(W, 129);
|
1728
|
+
function Xs(s, t) {
|
1729
|
+
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
1730
1730
|
throw Error("invalid template strings array");
|
1731
|
-
return
|
1731
|
+
return Ke !== void 0 ? Ke.createHTML(t) : t;
|
1732
1732
|
}
|
1733
|
-
const Lr = (
|
1734
|
-
const e =
|
1735
|
-
let r, i = t === 2 ? "<svg>" : "", o =
|
1733
|
+
const Lr = (s, t) => {
|
1734
|
+
const e = s.length - 1, n = [];
|
1735
|
+
let r, i = t === 2 ? "<svg>" : "", o = ot;
|
1736
1736
|
for (let a = 0; a < e; a++) {
|
1737
|
-
const l =
|
1737
|
+
const l = s[a];
|
1738
1738
|
let c, u, h = -1, d = 0;
|
1739
1739
|
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); )
|
1740
|
-
d = o.lastIndex, o ===
|
1741
|
-
const p = o === D &&
|
1742
|
-
i += o ===
|
1740
|
+
d = o.lastIndex, o === ot ? u[1] === "!--" ? o = Ge : u[1] !== void 0 ? o = Xe : u[2] !== void 0 ? (Gs.test(u[2]) && (r = RegExp("</" + u[2], "g")), o = D) : u[3] !== void 0 && (o = D) : o === D ? u[0] === ">" ? (o = r ?? ot, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? D : u[3] === '"' ? Qe : Je) : o === Qe || o === Je ? o = D : o === Ge || o === Xe ? o = ot : (o = D, r = void 0);
|
1741
|
+
const p = o === D && s[a + 1].startsWith("/>") ? " " : "";
|
1742
|
+
i += o === ot ? l + kr : h >= 0 ? (n.push(c), l.slice(0, h) + Zs + l.slice(h) + I + p) : l + I + (h === -2 ? a : p);
|
1743
1743
|
}
|
1744
|
-
return [
|
1744
|
+
return [Xs(s, i + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), n];
|
1745
1745
|
};
|
1746
|
-
class
|
1747
|
-
constructor({ strings: t, _$litType$: e },
|
1746
|
+
class dt {
|
1747
|
+
constructor({ strings: t, _$litType$: e }, n) {
|
1748
1748
|
let r;
|
1749
1749
|
this.parts = [];
|
1750
1750
|
let i = 0, o = 0;
|
1751
1751
|
const a = t.length - 1, l = this.parts, [c, u] = Lr(t, e);
|
1752
|
-
if (this.el =
|
1752
|
+
if (this.el = dt.createElement(c, n), z.currentNode = this.el.content, e === 2) {
|
1753
1753
|
const h = this.el.content.firstChild;
|
1754
1754
|
h.replaceWith(...h.childNodes);
|
1755
1755
|
}
|
@@ -1757,43 +1757,43 @@ class ht {
|
|
1757
1757
|
if (r.nodeType === 1) {
|
1758
1758
|
if (r.hasAttributes())
|
1759
1759
|
for (const h of r.getAttributeNames())
|
1760
|
-
if (h.endsWith(
|
1761
|
-
const d = u[o++], p = r.getAttribute(h).split(
|
1760
|
+
if (h.endsWith(Zs)) {
|
1761
|
+
const d = u[o++], p = r.getAttribute(h).split(I), $ = /([.?@])?(.*)/.exec(d);
|
1762
1762
|
l.push({ type: 1, index: i, name: $[2], strings: p, ctor: $[1] === "." ? Ir : $[1] === "?" ? Ur : $[1] === "@" ? Rr : Bt }), r.removeAttribute(h);
|
1763
1763
|
} else
|
1764
|
-
h.startsWith(
|
1765
|
-
if (
|
1766
|
-
const h = r.textContent.split(
|
1764
|
+
h.startsWith(I) && (l.push({ type: 6, index: i }), r.removeAttribute(h));
|
1765
|
+
if (Gs.test(r.tagName)) {
|
1766
|
+
const h = r.textContent.split(I), d = h.length - 1;
|
1767
1767
|
if (d > 0) {
|
1768
|
-
r.textContent =
|
1768
|
+
r.textContent = Tt ? Tt.emptyScript : "";
|
1769
1769
|
for (let p = 0; p < d; p++)
|
1770
|
-
r.append(h[p],
|
1771
|
-
r.append(h[d],
|
1770
|
+
r.append(h[p], ut()), z.nextNode(), l.push({ type: 2, index: ++i });
|
1771
|
+
r.append(h[d], ut());
|
1772
1772
|
}
|
1773
1773
|
}
|
1774
1774
|
} else if (r.nodeType === 8)
|
1775
|
-
if (r.data ===
|
1775
|
+
if (r.data === qs)
|
1776
1776
|
l.push({ type: 2, index: i });
|
1777
1777
|
else {
|
1778
1778
|
let h = -1;
|
1779
|
-
for (; (h = r.data.indexOf(
|
1780
|
-
l.push({ type: 7, index: i }), h +=
|
1779
|
+
for (; (h = r.data.indexOf(I, h + 1)) !== -1; )
|
1780
|
+
l.push({ type: 7, index: i }), h += I.length - 1;
|
1781
1781
|
}
|
1782
1782
|
i++;
|
1783
1783
|
}
|
1784
1784
|
}
|
1785
1785
|
static createElement(t, e) {
|
1786
|
-
const
|
1787
|
-
return
|
1786
|
+
const n = W.createElement("template");
|
1787
|
+
return n.innerHTML = t, n;
|
1788
1788
|
}
|
1789
1789
|
}
|
1790
|
-
function
|
1790
|
+
function st(s, t, e = s, n) {
|
1791
1791
|
var o, a;
|
1792
|
-
if (t ===
|
1792
|
+
if (t === H)
|
1793
1793
|
return t;
|
1794
|
-
let r =
|
1795
|
-
const i =
|
1796
|
-
return (r == null ? void 0 : r.constructor) !== i && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), i === void 0 ? r = void 0 : (r = new i(
|
1794
|
+
let r = n !== void 0 ? (o = e._$Co) == null ? void 0 : o[n] : e._$Cl;
|
1795
|
+
const i = ht(t) ? void 0 : t._$litDirective$;
|
1796
|
+
return (r == null ? void 0 : r.constructor) !== i && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), i === void 0 ? r = void 0 : (r = new i(s), r._$AT(s, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = r : e._$Cl = r), r !== void 0 && (t = st(s, r._$AS(s, t.values), r, n)), t;
|
1797
1797
|
}
|
1798
1798
|
class Mr {
|
1799
1799
|
constructor(t, e) {
|
@@ -1806,13 +1806,13 @@ class Mr {
|
|
1806
1806
|
return this._$AM._$AU;
|
1807
1807
|
}
|
1808
1808
|
u(t) {
|
1809
|
-
const { el: { content: e }, parts:
|
1809
|
+
const { el: { content: e }, parts: n } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? W).importNode(e, !0);
|
1810
1810
|
z.currentNode = r;
|
1811
|
-
let i = z.nextNode(), o = 0, a = 0, l =
|
1811
|
+
let i = z.nextNode(), o = 0, a = 0, l = n[0];
|
1812
1812
|
for (; l !== void 0; ) {
|
1813
1813
|
if (o === l.index) {
|
1814
1814
|
let c;
|
1815
|
-
l.type === 2 ? c = new
|
1815
|
+
l.type === 2 ? c = new mt(i, i.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(i, l.name, l.strings, this, t) : l.type === 6 && (c = new jr(i, this, t)), this._$AV.push(c), l = n[++a];
|
1816
1816
|
}
|
1817
1817
|
o !== (l == null ? void 0 : l.index) && (i = z.nextNode(), o++);
|
1818
1818
|
}
|
@@ -1820,17 +1820,17 @@ class Mr {
|
|
1820
1820
|
}
|
1821
1821
|
p(t) {
|
1822
1822
|
let e = 0;
|
1823
|
-
for (const
|
1824
|
-
|
1823
|
+
for (const n of this._$AV)
|
1824
|
+
n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
|
1825
1825
|
}
|
1826
1826
|
}
|
1827
|
-
class
|
1827
|
+
class mt {
|
1828
1828
|
get _$AU() {
|
1829
1829
|
var t;
|
1830
1830
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
1831
1831
|
}
|
1832
|
-
constructor(t, e,
|
1833
|
-
this.type = 2, this._$AH = f, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM =
|
1832
|
+
constructor(t, e, n, r) {
|
1833
|
+
this.type = 2, this._$AH = f, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
1834
1834
|
}
|
1835
1835
|
get parentNode() {
|
1836
1836
|
let t = this._$AA.parentNode;
|
@@ -1844,7 +1844,7 @@ class vt {
|
|
1844
1844
|
return this._$AB;
|
1845
1845
|
}
|
1846
1846
|
_$AI(t, e = this) {
|
1847
|
-
t =
|
1847
|
+
t = st(this, t, e), ht(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Tr(t) ? this.k(t) : this._(t);
|
1848
1848
|
}
|
1849
1849
|
S(t) {
|
1850
1850
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -1853,11 +1853,11 @@ class vt {
|
|
1853
1853
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
1854
1854
|
}
|
1855
1855
|
_(t) {
|
1856
|
-
this._$AH !== f &&
|
1856
|
+
this._$AH !== f && ht(this._$AH) ? this._$AA.nextSibling.data = t : this.T(W.createTextNode(t)), this._$AH = t;
|
1857
1857
|
}
|
1858
1858
|
$(t) {
|
1859
1859
|
var i;
|
1860
|
-
const { values: e, _$litType$:
|
1860
|
+
const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = dt.createElement(Xs(n.h, n.h[0]), this.options)), n);
|
1861
1861
|
if (((i = this._$AH) == null ? void 0 : i._$AD) === r)
|
1862
1862
|
this._$AH.p(e);
|
1863
1863
|
else {
|
@@ -1866,20 +1866,20 @@ class vt {
|
|
1866
1866
|
}
|
1867
1867
|
}
|
1868
1868
|
_$AC(t) {
|
1869
|
-
let e =
|
1870
|
-
return e === void 0 &&
|
1869
|
+
let e = Ve.get(t.strings);
|
1870
|
+
return e === void 0 && Ve.set(t.strings, e = new dt(t)), e;
|
1871
1871
|
}
|
1872
1872
|
k(t) {
|
1873
|
-
|
1873
|
+
Ks(this._$AH) || (this._$AH = [], this._$AR());
|
1874
1874
|
const e = this._$AH;
|
1875
|
-
let
|
1875
|
+
let n, r = 0;
|
1876
1876
|
for (const i of t)
|
1877
|
-
r === e.length ? e.push(
|
1878
|
-
r < e.length && (this._$AR(
|
1877
|
+
r === e.length ? e.push(n = new mt(this.S(ut()), this.S(ut()), this, this.options)) : n = e[r], n._$AI(i), r++;
|
1878
|
+
r < e.length && (this._$AR(n && n._$AB.nextSibling, r), e.length = r);
|
1879
1879
|
}
|
1880
1880
|
_$AR(t = this._$AA.nextSibling, e) {
|
1881
|
-
var
|
1882
|
-
for ((
|
1881
|
+
var n;
|
1882
|
+
for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
1883
1883
|
const r = t.nextSibling;
|
1884
1884
|
t.remove(), t = r;
|
1885
1885
|
}
|
@@ -1896,19 +1896,19 @@ class Bt {
|
|
1896
1896
|
get _$AU() {
|
1897
1897
|
return this._$AM._$AU;
|
1898
1898
|
}
|
1899
|
-
constructor(t, e,
|
1900
|
-
this.type = 1, this._$AH = f, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = i,
|
1899
|
+
constructor(t, e, n, r, i) {
|
1900
|
+
this.type = 1, this._$AH = f, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = f;
|
1901
1901
|
}
|
1902
|
-
_$AI(t, e = this,
|
1902
|
+
_$AI(t, e = this, n, r) {
|
1903
1903
|
const i = this.strings;
|
1904
1904
|
let o = !1;
|
1905
1905
|
if (i === void 0)
|
1906
|
-
t =
|
1906
|
+
t = st(this, t, e, 0), o = !ht(t) || t !== this._$AH && t !== H, o && (this._$AH = t);
|
1907
1907
|
else {
|
1908
1908
|
const a = t;
|
1909
1909
|
let l, c;
|
1910
1910
|
for (t = i[0], l = 0; l < i.length - 1; l++)
|
1911
|
-
c =
|
1911
|
+
c = st(this, a[n + l], e, l), c === H && (c = this._$AH[l]), o || (o = !ht(c) || c !== this._$AH[l]), c === f ? t = f : t !== f && (t += (c ?? "") + i[l + 1]), this._$AH[l] = c;
|
1912
1912
|
}
|
1913
1913
|
o && !r && this.j(t);
|
1914
1914
|
}
|
@@ -1933,14 +1933,14 @@ let Ur = class extends Bt {
|
|
1933
1933
|
}
|
1934
1934
|
};
|
1935
1935
|
class Rr extends Bt {
|
1936
|
-
constructor(t, e,
|
1937
|
-
super(t, e,
|
1936
|
+
constructor(t, e, n, r, i) {
|
1937
|
+
super(t, e, n, r, i), this.type = 5;
|
1938
1938
|
}
|
1939
1939
|
_$AI(t, e = this) {
|
1940
|
-
if ((t =
|
1940
|
+
if ((t = st(this, t, e, 0) ?? f) === H)
|
1941
1941
|
return;
|
1942
|
-
const
|
1943
|
-
r && this.element.removeEventListener(this.name, this,
|
1942
|
+
const n = this._$AH, r = t === f && n !== f || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, i = t !== f && (n === f || r);
|
1943
|
+
r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
1944
1944
|
}
|
1945
1945
|
handleEvent(t) {
|
1946
1946
|
var e;
|
@@ -1948,26 +1948,26 @@ class Rr extends Bt {
|
|
1948
1948
|
}
|
1949
1949
|
}
|
1950
1950
|
class jr {
|
1951
|
-
constructor(t, e,
|
1952
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
1951
|
+
constructor(t, e, n) {
|
1952
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
|
1953
1953
|
}
|
1954
1954
|
get _$AU() {
|
1955
1955
|
return this._$AM._$AU;
|
1956
1956
|
}
|
1957
1957
|
_$AI(t) {
|
1958
|
-
|
1958
|
+
st(this, t);
|
1959
1959
|
}
|
1960
1960
|
}
|
1961
|
-
const Vt =
|
1962
|
-
Vt == null || Vt(
|
1963
|
-
const Hr = (
|
1964
|
-
const
|
1965
|
-
let r =
|
1961
|
+
const Vt = lt.litHtmlPolyfillSupport;
|
1962
|
+
Vt == null || Vt(dt, mt), (lt.litHtmlVersions ?? (lt.litHtmlVersions = [])).push("3.1.2");
|
1963
|
+
const Hr = (s, t, e) => {
|
1964
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
1965
|
+
let r = n._$litPart$;
|
1966
1966
|
if (r === void 0) {
|
1967
1967
|
const i = (e == null ? void 0 : e.renderBefore) ?? null;
|
1968
|
-
|
1968
|
+
n._$litPart$ = r = new mt(t.insertBefore(ut(), i), i, void 0, e ?? {});
|
1969
1969
|
}
|
1970
|
-
return r._$AI(
|
1970
|
+
return r._$AI(s), r;
|
1971
1971
|
};
|
1972
1972
|
/**
|
1973
1973
|
* @license
|
@@ -1996,15 +1996,15 @@ let b = class extends q {
|
|
1996
1996
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
1997
1997
|
}
|
1998
1998
|
render() {
|
1999
|
-
return
|
1999
|
+
return H;
|
2000
2000
|
}
|
2001
2001
|
};
|
2002
|
-
var
|
2003
|
-
b._$litElement$ = !0, b.finalized = !0, (
|
2002
|
+
var _s;
|
2003
|
+
b._$litElement$ = !0, b.finalized = !0, (_s = globalThis.litElementHydrateSupport) == null || _s.call(globalThis, { LitElement: b });
|
2004
2004
|
const te = globalThis.litElementPolyfillSupport;
|
2005
2005
|
te == null || te({ LitElement: b });
|
2006
2006
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
2007
|
-
const Nr = { name: "alert", 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 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, Dr = { name: "check-circle-filled", 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.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Br = { name: "check-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' },
|
2007
|
+
const Nr = { name: "alert", 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 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, Dr = { name: "check-circle-filled", 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.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Br = { name: "check-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, zr = { name: "chevron-down", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, ts = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, Fr = { 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>' }, Wr = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, es = { name: "volume", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, K = {
|
2008
2008
|
allRenderFn: !1,
|
2009
2009
|
cmpDidLoad: !0,
|
2010
2010
|
cmpDidUnload: !1,
|
@@ -2088,69 +2088,69 @@ const Nr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
|
|
2088
2088
|
transformTagName: !1,
|
2089
2089
|
attachStyles: !0
|
2090
2090
|
};
|
2091
|
-
let G,
|
2092
|
-
const Ft = typeof window < "u" ? window : {},
|
2091
|
+
let G, Js, zt, Qs = !1, Pt = !1, Ce = !1, S = !1, ss = null, he = !1;
|
2092
|
+
const Ft = typeof window < "u" ? window : {}, k = Ft.document || { head: {} }, Vs = Ft.HTMLElement || class {
|
2093
2093
|
}, w = {
|
2094
2094
|
$flags$: 0,
|
2095
2095
|
$resourcesUrl$: "",
|
2096
|
-
jmp: (
|
2097
|
-
raf: (
|
2098
|
-
ael: (
|
2099
|
-
rel: (
|
2100
|
-
ce: (
|
2101
|
-
},
|
2102
|
-
let
|
2096
|
+
jmp: (s) => s(),
|
2097
|
+
raf: (s) => requestAnimationFrame(s),
|
2098
|
+
ael: (s, t, e, n) => s.addEventListener(t, e, n),
|
2099
|
+
rel: (s, t, e, n) => s.removeEventListener(t, e, n),
|
2100
|
+
ce: (s, t) => new CustomEvent(s, t)
|
2101
|
+
}, Yr = /* @__PURE__ */ (() => {
|
2102
|
+
let s = !1;
|
2103
2103
|
try {
|
2104
|
-
|
2104
|
+
k.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
2105
2105
|
get() {
|
2106
|
-
|
2106
|
+
s = !0;
|
2107
2107
|
}
|
2108
2108
|
}));
|
2109
2109
|
} catch {
|
2110
2110
|
}
|
2111
|
-
return
|
2112
|
-
})(),
|
2111
|
+
return s;
|
2112
|
+
})(), Zr = (s) => Promise.resolve(s), qr = /* @__PURE__ */ (() => {
|
2113
2113
|
try {
|
2114
2114
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2115
2115
|
} catch {
|
2116
2116
|
}
|
2117
2117
|
return !1;
|
2118
|
-
})(),
|
2118
|
+
})(), tn = (s, t, e, n) => {
|
2119
2119
|
e && e.map(([r, i, o]) => {
|
2120
|
-
const a =
|
2120
|
+
const a = Gr(s, r), l = Kr(t, o), c = Xr(r);
|
2121
2121
|
w.ael(a, i, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => w.rel(a, i, l, c));
|
2122
2122
|
});
|
2123
|
-
},
|
2123
|
+
}, Kr = (s, t) => (e) => {
|
2124
2124
|
try {
|
2125
|
-
K.lazyLoad ||
|
2126
|
-
} catch (
|
2127
|
-
|
2128
|
-
}
|
2129
|
-
},
|
2130
|
-
passive: (
|
2131
|
-
capture: (
|
2132
|
-
} : (
|
2133
|
-
},
|
2134
|
-
let
|
2135
|
-
|
2136
|
-
},
|
2137
|
-
let r =
|
2138
|
-
if (
|
2125
|
+
K.lazyLoad || s.$hostElement$[t](e);
|
2126
|
+
} catch (n) {
|
2127
|
+
$t(n);
|
2128
|
+
}
|
2129
|
+
}, Gr = (s, t) => t & 4 ? k : t & 8 ? Ft : t & 16 ? k.body : s, Xr = (s) => Yr ? {
|
2130
|
+
passive: (s & 1) !== 0,
|
2131
|
+
capture: (s & 2) !== 0
|
2132
|
+
} : (s & 2) !== 0, ns = "http://www.w3.org/1999/xlink", Y = (s, t = "") => () => {
|
2133
|
+
}, rs = /* @__PURE__ */ new WeakMap(), Jr = (s, t, e) => {
|
2134
|
+
let n = It.get(s);
|
2135
|
+
qr && e ? (n = n || new CSSStyleSheet(), n.replace(t)) : n = t, It.set(s, n);
|
2136
|
+
}, Qr = (s, t, e, n) => {
|
2137
|
+
let r = en(t, e), i = It.get(r);
|
2138
|
+
if (s = s.nodeType === 11 ? s : k, i)
|
2139
2139
|
if (typeof i == "string") {
|
2140
|
-
|
2141
|
-
let o =
|
2142
|
-
o ||
|
2140
|
+
s = s.head || s;
|
2141
|
+
let o = rs.get(s), a;
|
2142
|
+
o || rs.set(s, o = /* @__PURE__ */ new Set()), o.has(r) || (a = k.createElement("style"), a.innerHTML = i, s.insertBefore(a, s.querySelector("link")), o && o.add(r));
|
2143
2143
|
} else
|
2144
|
-
|
2144
|
+
s.adoptedStyleSheets.includes(i) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, i]);
|
2145
2145
|
return r;
|
2146
|
-
},
|
2147
|
-
const t =
|
2148
|
-
|
2149
|
-
},
|
2150
|
-
let
|
2146
|
+
}, Vr = (s) => {
|
2147
|
+
const t = s.$cmpMeta$, e = s.$hostElement$, n = t.$flags$, r = Y("attachStyles", t.$tagName$), i = Qr(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, s.$modeName$);
|
2148
|
+
n & 10 && (e["s-sc"] = i, e.classList.add(i + "-h"), n & 2 && e.classList.add(i + "-s")), r();
|
2149
|
+
}, en = (s, t) => "sc-" + (t && s.$flags$ & 32 ? s.$tagName$ + "-" + t : s.$tagName$), ti = (s) => Oi.map((t) => t(s)).find((t) => !!t), is = {}, ei = "http://www.w3.org/2000/svg", si = "http://www.w3.org/1999/xhtml", ni = (s) => s != null, Ae = (s) => (s = typeof s, s === "object" || s === "function"), V = (s, t, ...e) => {
|
2150
|
+
let n = null, r = null, i = null, o = !1, a = !1, l = [];
|
2151
2151
|
const c = (h) => {
|
2152
2152
|
for (let d = 0; d < h.length; d++)
|
2153
|
-
|
2153
|
+
n = h[d], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !Ae(n)) && (n = String(n)), o && a ? l[l.length - 1].$text$ += n : l.push(o ? Lt(null, n) : n), a = o);
|
2154
2154
|
};
|
2155
2155
|
if (c(e), t) {
|
2156
2156
|
t.key && (r = t.key), t.name && (i = t.name);
|
@@ -2159,144 +2159,144 @@ const Ft = typeof window < "u" ? window : {}, O = Ft.document || { head: {} }, t
|
|
2159
2159
|
h && (t.class = typeof h != "object" ? h : Object.keys(h).filter((d) => h[d]).join(" "));
|
2160
2160
|
}
|
2161
2161
|
}
|
2162
|
-
if (typeof
|
2163
|
-
return
|
2164
|
-
const u =
|
2162
|
+
if (typeof s == "function")
|
2163
|
+
return s(t === null ? {} : t, l, ii);
|
2164
|
+
const u = Lt(s, null);
|
2165
2165
|
return u.$attrs$ = t, l.length > 0 && (u.$children$ = l), u.$key$ = r, u.$name$ = i, u;
|
2166
|
-
},
|
2166
|
+
}, Lt = (s, t) => {
|
2167
2167
|
const e = {
|
2168
2168
|
$flags$: 0,
|
2169
|
-
$tag$:
|
2169
|
+
$tag$: s,
|
2170
2170
|
$text$: t,
|
2171
2171
|
$elm$: null,
|
2172
2172
|
$children$: null
|
2173
2173
|
};
|
2174
2174
|
return e.$attrs$ = null, e.$key$ = null, e.$name$ = null, e;
|
2175
|
-
},
|
2176
|
-
forEach: (
|
2177
|
-
map: (
|
2178
|
-
},
|
2179
|
-
vattrs:
|
2180
|
-
vchildren:
|
2181
|
-
vkey:
|
2182
|
-
vname:
|
2183
|
-
vtag:
|
2184
|
-
vtext:
|
2185
|
-
}),
|
2186
|
-
if (typeof
|
2187
|
-
const e = Object.assign({},
|
2188
|
-
return
|
2189
|
-
}
|
2190
|
-
const t =
|
2191
|
-
return t.$attrs$ =
|
2192
|
-
},
|
2193
|
-
if (e !==
|
2194
|
-
let o =
|
2175
|
+
}, Ee = {}, ri = (s) => s && s.$tag$ === Ee, ii = {
|
2176
|
+
forEach: (s, t) => s.map(os).forEach(t),
|
2177
|
+
map: (s, t) => s.map(os).map(t).map(oi)
|
2178
|
+
}, os = (s) => ({
|
2179
|
+
vattrs: s.$attrs$,
|
2180
|
+
vchildren: s.$children$,
|
2181
|
+
vkey: s.$key$,
|
2182
|
+
vname: s.$name$,
|
2183
|
+
vtag: s.$tag$,
|
2184
|
+
vtext: s.$text$
|
2185
|
+
}), oi = (s) => {
|
2186
|
+
if (typeof s.vtag == "function") {
|
2187
|
+
const e = Object.assign({}, s.vattrs);
|
2188
|
+
return s.vkey && (e.key = s.vkey), s.vname && (e.name = s.vname), V(s.vtag, e, ...s.vchildren || []);
|
2189
|
+
}
|
2190
|
+
const t = Lt(s.vtag, s.vtext);
|
2191
|
+
return t.$attrs$ = s.vattrs, t.$children$ = s.vchildren, t.$key$ = s.vkey, t.$name$ = s.vname, t;
|
2192
|
+
}, as = (s, t, e, n, r, i) => {
|
2193
|
+
if (e !== n) {
|
2194
|
+
let o = hs(s, t), a = t.toLowerCase();
|
2195
2195
|
if (t === "class") {
|
2196
|
-
const l =
|
2196
|
+
const l = s.classList, c = ls(e), u = ls(n);
|
2197
2197
|
l.remove(...c.filter((h) => h && !u.includes(h))), l.add(...u.filter((h) => h && !c.includes(h)));
|
2198
2198
|
} else if (t === "style") {
|
2199
2199
|
for (const l in e)
|
2200
|
-
(!
|
2201
|
-
for (const l in
|
2202
|
-
(!e ||
|
2200
|
+
(!n || n[l] == null) && (l.includes("-") ? s.style.removeProperty(l) : s.style[l] = "");
|
2201
|
+
for (const l in n)
|
2202
|
+
(!e || n[l] !== e[l]) && (l.includes("-") ? s.style.setProperty(l, n[l]) : s.style[l] = n[l]);
|
2203
2203
|
} else if (t !== "key")
|
2204
2204
|
if (t === "ref")
|
2205
|
-
|
2206
|
-
else if (!
|
2207
|
-
t[2] === "-" ? t = t.slice(3) :
|
2205
|
+
n && n(s);
|
2206
|
+
else if (!s.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
|
2207
|
+
t[2] === "-" ? t = t.slice(3) : hs(Ft, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && w.rel(s, t, e, !1), n && w.ael(s, t, n, !1);
|
2208
2208
|
else {
|
2209
|
-
const l =
|
2210
|
-
if ((o || l &&
|
2209
|
+
const l = Ae(n);
|
2210
|
+
if ((o || l && n !== null) && !r)
|
2211
2211
|
try {
|
2212
|
-
if (
|
2213
|
-
|
2212
|
+
if (s.tagName.includes("-"))
|
2213
|
+
s[t] = n;
|
2214
2214
|
else {
|
2215
|
-
let u =
|
2216
|
-
t === "list" ? o = !1 : (e == null ||
|
2215
|
+
let u = n ?? "";
|
2216
|
+
t === "list" ? o = !1 : (e == null || s[t] != u) && (s[t] = u);
|
2217
2217
|
}
|
2218
2218
|
} catch {
|
2219
2219
|
}
|
2220
2220
|
let c = !1;
|
2221
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0),
|
2221
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), n == null || n === !1 ? (n !== !1 || s.getAttribute(t) === "") && (c ? s.removeAttributeNS(ns, t) : s.removeAttribute(t)) : (!o || i & 4 || r) && !l && (n = n === !0 ? "" : n, c ? s.setAttributeNS(ns, t, n) : s.setAttribute(t, n));
|
2222
2222
|
}
|
2223
2223
|
}
|
2224
|
-
},
|
2225
|
-
const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i =
|
2226
|
-
for (
|
2227
|
-
|
2228
|
-
for (
|
2229
|
-
|
2230
|
-
},
|
2224
|
+
}, ai = /\s/, ls = (s) => s ? s.split(ai) : [], sn = (s, t, e, n) => {
|
2225
|
+
const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = s && s.$attrs$ || is, o = t.$attrs$ || is;
|
2226
|
+
for (n in i)
|
2227
|
+
n in o || as(r, n, i[n], void 0, e, t.$flags$);
|
2228
|
+
for (n in o)
|
2229
|
+
as(r, n, i[n], o[n], e, t.$flags$);
|
2230
|
+
}, Mt = (s, t, e, n) => {
|
2231
2231
|
let r = t.$children$[e], i = 0, o, a, l;
|
2232
|
-
if (
|
2232
|
+
if (Qs || (Ce = !0, r.$tag$ === "slot" && (G && n.classList.add(G + "-s"), r.$flags$ |= r.$children$ ? (
|
2233
2233
|
// slot element has fallback content
|
2234
2234
|
2
|
2235
2235
|
) : (
|
2236
2236
|
// slot element does not have fallback content
|
2237
2237
|
1
|
2238
2238
|
))), r.$text$ !== null)
|
2239
|
-
o = r.$elm$ =
|
2239
|
+
o = r.$elm$ = k.createTextNode(r.$text$);
|
2240
2240
|
else if (r.$flags$ & 1)
|
2241
|
-
o = r.$elm$ =
|
2241
|
+
o = r.$elm$ = k.createTextNode("");
|
2242
2242
|
else {
|
2243
|
-
if (
|
2243
|
+
if (S || (S = r.$tag$ === "svg"), o = r.$elm$ = k.createElementNS(S ? ei : si, r.$flags$ & 2 ? "slot-fb" : r.$tag$), S && r.$tag$ === "foreignObject" && (S = !1), sn(null, r, S), ni(G) && o["s-si"] !== G && o.classList.add(o["s-si"] = G), r.$children$)
|
2244
2244
|
for (i = 0; i < r.$children$.length; ++i)
|
2245
|
-
a =
|
2246
|
-
r.$tag$ === "svg" ?
|
2245
|
+
a = Mt(s, r, i, o), a && o.appendChild(a);
|
2246
|
+
r.$tag$ === "svg" ? S = !1 : o.tagName === "foreignObject" && (S = !0);
|
2247
2247
|
}
|
2248
|
-
return o["s-hn"] = zt, r.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] =
|
2249
|
-
},
|
2248
|
+
return o["s-hn"] = zt, r.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Js, o["s-sn"] = r.$name$ || "", l = s && s.$children$ && s.$children$[e], l && l.$tag$ === r.$tag$ && s.$elm$ && pt(s.$elm$, !1)), o;
|
2249
|
+
}, pt = (s, t) => {
|
2250
2250
|
w.$flags$ |= 1;
|
2251
|
-
const e =
|
2252
|
-
for (let
|
2253
|
-
const r = e[
|
2254
|
-
r["s-hn"] !== zt && r["s-ol"] && (
|
2251
|
+
const e = s.childNodes;
|
2252
|
+
for (let n = e.length - 1; n >= 0; n--) {
|
2253
|
+
const r = e[n];
|
2254
|
+
r["s-hn"] !== zt && r["s-ol"] && (on(r).insertBefore(r, Oe(r)), r["s-ol"].remove(), r["s-ol"] = void 0, Ce = !0), t && pt(r, t);
|
2255
2255
|
}
|
2256
2256
|
w.$flags$ &= -2;
|
2257
|
-
},
|
2258
|
-
let o =
|
2257
|
+
}, nn = (s, t, e, n, r, i) => {
|
2258
|
+
let o = s["s-cr"] && s["s-cr"].parentNode || s, a;
|
2259
2259
|
for (o.shadowRoot && o.tagName === zt && (o = o.shadowRoot); r <= i; ++r)
|
2260
|
-
|
2261
|
-
},
|
2260
|
+
n[r] && (a = Mt(null, e, r, s), a && (n[r].$elm$ = a, o.insertBefore(a, Oe(t))));
|
2261
|
+
}, rn = (s, t, e, n, r) => {
|
2262
2262
|
for (; t <= e; ++t)
|
2263
|
-
(
|
2264
|
-
},
|
2265
|
-
let r = 0, i = 0, o = 0, a = 0, l = t.length - 1, c = t[0], u = t[l], h =
|
2263
|
+
(n = s[t]) && (r = n.$elm$, cn(n), Pt = !0, r["s-ol"] ? r["s-ol"].remove() : pt(r, !0), r.remove());
|
2264
|
+
}, li = (s, t, e, n) => {
|
2265
|
+
let r = 0, i = 0, o = 0, a = 0, l = t.length - 1, c = t[0], u = t[l], h = n.length - 1, d = n[0], p = n[h], $, m;
|
2266
2266
|
for (; r <= l && i <= h; )
|
2267
2267
|
if (c == null)
|
2268
2268
|
c = t[++r];
|
2269
2269
|
else if (u == null)
|
2270
2270
|
u = t[--l];
|
2271
2271
|
else if (d == null)
|
2272
|
-
d =
|
2272
|
+
d = n[++i];
|
2273
2273
|
else if (p == null)
|
2274
|
-
p =
|
2275
|
-
else if (
|
2276
|
-
X(c, d), c = t[++r], d =
|
2277
|
-
else if (
|
2278
|
-
X(u, p), u = t[--l], p =
|
2279
|
-
else if (
|
2280
|
-
(c.$tag$ === "slot" || p.$tag$ === "slot") &&
|
2281
|
-
else if (
|
2282
|
-
(c.$tag$ === "slot" || p.$tag$ === "slot") &&
|
2274
|
+
p = n[--h];
|
2275
|
+
else if (_t(c, d))
|
2276
|
+
X(c, d), c = t[++r], d = n[++i];
|
2277
|
+
else if (_t(u, p))
|
2278
|
+
X(u, p), u = t[--l], p = n[--h];
|
2279
|
+
else if (_t(c, p))
|
2280
|
+
(c.$tag$ === "slot" || p.$tag$ === "slot") && pt(c.$elm$.parentNode, !1), X(c, p), s.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++r], p = n[--h];
|
2281
|
+
else if (_t(u, d))
|
2282
|
+
(c.$tag$ === "slot" || p.$tag$ === "slot") && pt(u.$elm$.parentNode, !1), X(u, d), s.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = n[++i];
|
2283
2283
|
else {
|
2284
2284
|
for (o = -1, a = r; a <= l; ++a)
|
2285
2285
|
if (t[a] && t[a].$key$ !== null && t[a].$key$ === d.$key$) {
|
2286
2286
|
o = a;
|
2287
2287
|
break;
|
2288
2288
|
}
|
2289
|
-
o >= 0 ? (m = t[o], m.$tag$ !== d.$tag$ ? $ =
|
2289
|
+
o >= 0 ? (m = t[o], m.$tag$ !== d.$tag$ ? $ = Mt(t && t[i], e, o, s) : (X(m, d), t[o] = void 0, $ = m.$elm$), d = n[++i]) : ($ = Mt(t && t[i], e, i, s), d = n[++i]), $ && on(c.$elm$).insertBefore($, Oe(c.$elm$));
|
2290
2290
|
}
|
2291
|
-
r > l ?
|
2292
|
-
},
|
2293
|
-
const e = t.$elm$ =
|
2291
|
+
r > l ? nn(s, n[h + 1] == null ? null : n[h + 1].$elm$, e, n, i, h) : i > h && rn(t, r, l);
|
2292
|
+
}, _t = (s, t) => s.$tag$ === t.$tag$ ? s.$tag$ === "slot" ? s.$name$ === t.$name$ : s.$key$ === t.$key$ : !1, Oe = (s) => s && s["s-ol"] || s, on = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, X = (s, t) => {
|
2293
|
+
const e = t.$elm$ = s.$elm$, n = s.$children$, r = t.$children$, i = t.$tag$, o = t.$text$;
|
2294
2294
|
let a;
|
2295
|
-
o === null ? (
|
2296
|
-
},
|
2297
|
-
let t =
|
2298
|
-
for (
|
2299
|
-
if (e = t[
|
2295
|
+
o === null ? (S = i === "svg" ? !0 : i === "foreignObject" ? !1 : S, i === "slot" || sn(s, t, S), n !== null && r !== null ? li(e, n, t, r) : r !== null ? (s.$text$ !== null && (e.textContent = ""), nn(e, null, t, r, 0, r.length - 1)) : n !== null && rn(n, 0, n.length - 1), S && i === "svg" && (S = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (e.data = o);
|
2296
|
+
}, an = (s) => {
|
2297
|
+
let t = s.childNodes, e, n, r, i, o, a;
|
2298
|
+
for (n = 0, r = t.length; n < r; n++)
|
2299
|
+
if (e = t[n], e.nodeType === 1) {
|
2300
2300
|
if (e["s-sr"]) {
|
2301
2301
|
for (o = e["s-sn"], e.hidden = !1, i = 0; i < r; i++)
|
2302
2302
|
if (a = t[i].nodeType, t[i]["s-hn"] !== e["s-hn"] || o !== "") {
|
@@ -2309,34 +2309,34 @@ const Ft = typeof window < "u" ? window : {}, O = Ft.document || { head: {} }, t
|
|
2309
2309
|
break;
|
2310
2310
|
}
|
2311
2311
|
}
|
2312
|
-
|
2312
|
+
an(e);
|
2313
2313
|
}
|
2314
|
-
}, A = [],
|
2315
|
-
let t, e,
|
2314
|
+
}, A = [], ln = (s) => {
|
2315
|
+
let t, e, n, r, i, o, a = 0, l = s.childNodes, c = l.length;
|
2316
2316
|
for (; a < c; a++) {
|
2317
2317
|
if (t = l[a], t["s-sr"] && (e = t["s-cr"]) && e.parentNode)
|
2318
|
-
for (
|
2319
|
-
e =
|
2318
|
+
for (n = e.parentNode.childNodes, r = t["s-sn"], o = n.length - 1; o >= 0; o--)
|
2319
|
+
e = n[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (cs(e, r) ? (i = A.find((u) => u.$nodeToRelocate$ === e), Pt = !0, e["s-sn"] = e["s-sn"] || r, i ? i.$slotRefNode$ = t : A.push({
|
2320
2320
|
$slotRefNode$: t,
|
2321
2321
|
$nodeToRelocate$: e
|
2322
2322
|
}), e["s-sr"] && A.map((u) => {
|
2323
|
-
|
2323
|
+
cs(u.$nodeToRelocate$, e["s-sn"]) && (i = A.find((h) => h.$nodeToRelocate$ === e), i && !u.$slotRefNode$ && (u.$slotRefNode$ = i.$slotRefNode$));
|
2324
2324
|
})) : A.some((u) => u.$nodeToRelocate$ === e) || A.push({
|
2325
2325
|
$nodeToRelocate$: e
|
2326
2326
|
}));
|
2327
|
-
t.nodeType === 1 &&
|
2327
|
+
t.nodeType === 1 && ln(t);
|
2328
2328
|
}
|
2329
|
-
},
|
2330
|
-
|
2331
|
-
},
|
2332
|
-
const e =
|
2333
|
-
zt = e.tagName,
|
2329
|
+
}, cs = (s, t) => s.nodeType === 1 ? s.getAttribute("slot") === null && t === "" || s.getAttribute("slot") === t : s["s-sn"] === t ? !0 : t === "", cn = (s) => {
|
2330
|
+
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(cn);
|
2331
|
+
}, ci = (s, t) => {
|
2332
|
+
const e = s.$hostElement$, n = s.$cmpMeta$, r = s.$vnode$ || Lt(null, null), i = ri(t) ? t : V(null, null, t);
|
2333
|
+
zt = e.tagName, n.$attrsToReflect$ && (i.$attrs$ = i.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => i.$attrs$[a] = e[o])), i.$tag$ = null, i.$flags$ |= 4, s.$vnode$ = i, i.$elm$ = r.$elm$ = e.shadowRoot || e, G = e["s-sc"], Js = e["s-cr"], Qs = (n.$flags$ & 1) !== 0, Pt = !1, X(r, i);
|
2334
2334
|
{
|
2335
|
-
if (w.$flags$ |= 1,
|
2336
|
-
|
2335
|
+
if (w.$flags$ |= 1, Ce) {
|
2336
|
+
ln(i.$elm$);
|
2337
2337
|
let o, a, l, c, u, h, d = 0;
|
2338
2338
|
for (; d < A.length; d++)
|
2339
|
-
o = A[d], a = o.$nodeToRelocate$, a["s-ol"] || (l =
|
2339
|
+
o = A[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = k.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
2340
2340
|
for (d = 0; d < A.length; d++)
|
2341
2341
|
if (o = A[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
|
2342
2342
|
for (c = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
@@ -2348,83 +2348,83 @@ const Ft = typeof window < "u" ? window : {}, O = Ft.document || { head: {} }, t
|
|
2348
2348
|
} else
|
2349
2349
|
a.nodeType === 1 && (a.hidden = !0);
|
2350
2350
|
}
|
2351
|
-
|
2351
|
+
Pt && an(i.$elm$), w.$flags$ &= -2, A.length = 0;
|
2352
2352
|
}
|
2353
|
-
},
|
2354
|
-
const
|
2353
|
+
}, ui = (s) => s, hi = (s, t, e) => {
|
2354
|
+
const n = ui(s);
|
2355
2355
|
return {
|
2356
|
-
emit: (r) =>
|
2356
|
+
emit: (r) => di(n, t, {
|
2357
2357
|
bubbles: !!(e & 4),
|
2358
2358
|
composed: !!(e & 2),
|
2359
2359
|
cancelable: !!(e & 1),
|
2360
2360
|
detail: r
|
2361
2361
|
})
|
2362
2362
|
};
|
2363
|
-
},
|
2364
|
-
const
|
2365
|
-
return
|
2366
|
-
},
|
2367
|
-
},
|
2368
|
-
const e =
|
2363
|
+
}, di = (s, t, e) => {
|
2364
|
+
const n = w.ce(t, e);
|
2365
|
+
return s.dispatchEvent(n), n;
|
2366
|
+
}, pi = (s, t) => {
|
2367
|
+
}, un = (s, t) => (s.$flags$ |= 16, pi(s, s.$ancestorComponent$), Pi(() => fi(s, t))), fi = (s, t) => {
|
2368
|
+
const e = s.$hostElement$, n = Y("scheduleUpdate", s.$cmpMeta$.$tagName$), r = e;
|
2369
2369
|
let i;
|
2370
|
-
return t ? i = tt(r, "componentWillLoad") : i = tt(r, "componentWillUpdate"), i =
|
2371
|
-
},
|
2372
|
-
const
|
2373
|
-
|
2374
|
-
const i = Y("render",
|
2375
|
-
|
2376
|
-
},
|
2370
|
+
return t ? i = tt(r, "componentWillLoad") : i = tt(r, "componentWillUpdate"), i = us(i, () => tt(r, "componentWillRender")), n(), us(i, () => vi(s, r, t));
|
2371
|
+
}, vi = async (s, t, e) => {
|
2372
|
+
const n = s.$hostElement$, r = Y("update", s.$cmpMeta$.$tagName$);
|
2373
|
+
n["s-rc"], e && Vr(s);
|
2374
|
+
const i = Y("render", s.$cmpMeta$.$tagName$);
|
2375
|
+
gi(s, t, n), i(), r(), mi(s);
|
2376
|
+
}, gi = (s, t, e) => {
|
2377
2377
|
try {
|
2378
|
-
|
2378
|
+
ss = t, t = t.render && t.render(), s.$flags$ &= -17, s.$flags$ |= 2, (K.hasRenderFn || K.reflect) && (K.vdomRender || K.reflect) && (K.hydrateServerSide || ci(s, t));
|
2379
2379
|
} catch (a) {
|
2380
|
-
|
2381
|
-
}
|
2382
|
-
return
|
2383
|
-
},
|
2384
|
-
const t =
|
2385
|
-
|
2386
|
-
}, tt = (
|
2387
|
-
if (
|
2380
|
+
$t(a, s.$hostElement$);
|
2381
|
+
}
|
2382
|
+
return ss = null, null;
|
2383
|
+
}, mi = (s) => {
|
2384
|
+
const t = s.$cmpMeta$.$tagName$, e = s.$hostElement$, n = Y("postUpdate", t), r = e;
|
2385
|
+
s.$ancestorComponent$, tt(r, "componentDidRender"), s.$flags$ & 64 ? (tt(r, "componentDidUpdate"), n()) : (s.$flags$ |= 64, tt(r, "componentDidLoad"), n());
|
2386
|
+
}, tt = (s, t, e) => {
|
2387
|
+
if (s && s[t])
|
2388
2388
|
try {
|
2389
|
-
return
|
2390
|
-
} catch (
|
2391
|
-
|
2389
|
+
return s[t](e);
|
2390
|
+
} catch (n) {
|
2391
|
+
$t(n);
|
2392
2392
|
}
|
2393
|
-
},
|
2394
|
-
const r = Wt(
|
2395
|
-
e =
|
2393
|
+
}, us = (s, t) => s && s.then ? s.then(t) : t(), $i = (s, t) => s != null && !Ae(s) ? t & 4 ? s === "false" ? !1 : s === "" || !!s : t & 2 ? parseFloat(s) : t & 1 ? String(s) : s : s, yi = (s, t) => Wt(s).$instanceValues$.get(t), bi = (s, t, e, n) => {
|
2394
|
+
const r = Wt(s), i = s, o = r.$instanceValues$.get(t), a = r.$flags$, l = i;
|
2395
|
+
e = $i(e, n.$members$[t][0]);
|
2396
2396
|
const c = Number.isNaN(o) && Number.isNaN(e);
|
2397
2397
|
if (e !== o && !c) {
|
2398
2398
|
r.$instanceValues$.set(t, e);
|
2399
2399
|
{
|
2400
|
-
if (
|
2401
|
-
const h =
|
2400
|
+
if (n.$watchers$ && a & 128) {
|
2401
|
+
const h = n.$watchers$[t];
|
2402
2402
|
h && h.map((d) => {
|
2403
2403
|
try {
|
2404
2404
|
l[d](e, o, t);
|
2405
2405
|
} catch (p) {
|
2406
|
-
|
2406
|
+
$t(p, i);
|
2407
2407
|
}
|
2408
2408
|
});
|
2409
2409
|
}
|
2410
2410
|
if ((a & 18) === 2) {
|
2411
2411
|
if (l.componentShouldUpdate && l.componentShouldUpdate(e, o, t) === !1)
|
2412
2412
|
return;
|
2413
|
-
|
2413
|
+
un(r, !1);
|
2414
2414
|
}
|
2415
2415
|
}
|
2416
2416
|
}
|
2417
|
-
},
|
2417
|
+
}, wi = (s, t, e) => {
|
2418
2418
|
if (t.$members$) {
|
2419
|
-
|
2420
|
-
const
|
2421
|
-
|
2419
|
+
s.watchers && (t.$watchers$ = s.watchers);
|
2420
|
+
const n = Object.entries(t.$members$), r = s.prototype;
|
2421
|
+
n.map(([i, [o]]) => {
|
2422
2422
|
(o & 31 || o & 32) && Object.defineProperty(r, i, {
|
2423
2423
|
get() {
|
2424
|
-
return
|
2424
|
+
return yi(this, i);
|
2425
2425
|
},
|
2426
2426
|
set(a) {
|
2427
|
-
|
2427
|
+
bi(this, i, a, t);
|
2428
2428
|
},
|
2429
2429
|
configurable: !0,
|
2430
2430
|
enumerable: !0
|
@@ -2441,7 +2441,7 @@ const Ft = typeof window < "u" ? window : {}, O = Ft.document || { head: {} }, t
|
|
2441
2441
|
return;
|
2442
2442
|
this[c] = l === null && typeof this[c] == "boolean" ? !1 : l;
|
2443
2443
|
});
|
2444
|
-
},
|
2444
|
+
}, s.observedAttributes = n.filter(
|
2445
2445
|
([o, a]) => a[0] & 15
|
2446
2446
|
/* HasAttribute */
|
2447
2447
|
).map(([o, a]) => {
|
@@ -2450,53 +2450,53 @@ const Ft = typeof window < "u" ? window : {}, O = Ft.document || { head: {} }, t
|
|
2450
2450
|
});
|
2451
2451
|
}
|
2452
2452
|
}
|
2453
|
-
return
|
2454
|
-
},
|
2455
|
-
if (!(t.$flags$ & 32) && (r =
|
2453
|
+
return s;
|
2454
|
+
}, _i = async (s, t, e, n, r) => {
|
2455
|
+
if (!(t.$flags$ & 32) && (r = s.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), r.style)) {
|
2456
2456
|
let o = r.style;
|
2457
|
-
typeof o != "string" && (o = o[t.$modeName$ =
|
2458
|
-
const a =
|
2459
|
-
if (!
|
2457
|
+
typeof o != "string" && (o = o[t.$modeName$ = ti(s)]);
|
2458
|
+
const a = en(e, t.$modeName$);
|
2459
|
+
if (!It.has(a)) {
|
2460
2460
|
const l = Y("registerStyles", e.$tagName$);
|
2461
|
-
|
2461
|
+
Jr(a, o, !!(e.$flags$ & 1)), l();
|
2462
2462
|
}
|
2463
2463
|
}
|
2464
|
-
t.$ancestorComponent$, (() =>
|
2465
|
-
},
|
2466
|
-
}, Si = (
|
2464
|
+
t.$ancestorComponent$, (() => un(t, !0))();
|
2465
|
+
}, xi = (s) => {
|
2466
|
+
}, Si = (s) => {
|
2467
2467
|
if (!(w.$flags$ & 1)) {
|
2468
|
-
const t = Wt(
|
2469
|
-
t.$flags$ & 1 ? (
|
2470
|
-
if (i & 31 &&
|
2471
|
-
const o =
|
2472
|
-
delete
|
2468
|
+
const t = Wt(s), e = t.$cmpMeta$, n = Y("connectedCallback", e.$tagName$);
|
2469
|
+
t.$flags$ & 1 ? (tn(s, t, e.$listeners$), xi(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && Ci(s), e.$members$ && Object.entries(e.$members$).map(([r, [i]]) => {
|
2470
|
+
if (i & 31 && s.hasOwnProperty(r)) {
|
2471
|
+
const o = s[r];
|
2472
|
+
delete s[r], s[r] = o;
|
2473
2473
|
}
|
2474
|
-
}),
|
2474
|
+
}), _i(s, t, e)), n();
|
2475
2475
|
}
|
2476
|
-
},
|
2477
|
-
const t =
|
2478
|
-
t["s-cn"] = !0,
|
2479
|
-
},
|
2476
|
+
}, Ci = (s) => {
|
2477
|
+
const t = s["s-cr"] = k.createComment("");
|
2478
|
+
t["s-cn"] = !0, s.insertBefore(t, s.firstChild);
|
2479
|
+
}, Ai = (s) => {
|
2480
2480
|
if (!(w.$flags$ & 1)) {
|
2481
|
-
const t = Wt(
|
2481
|
+
const t = Wt(s);
|
2482
2482
|
t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
|
2483
2483
|
}
|
2484
|
-
},
|
2484
|
+
}, hn = (s, t) => {
|
2485
2485
|
const e = {
|
2486
2486
|
$flags$: t[0],
|
2487
2487
|
$tagName$: t[1]
|
2488
2488
|
};
|
2489
|
-
e.$members$ = t[2], e.$listeners$ = t[3], e.$watchers$ =
|
2490
|
-
const
|
2491
|
-
return Object.assign(
|
2489
|
+
e.$members$ = t[2], e.$listeners$ = t[3], e.$watchers$ = s.$watchers$, e.$attrsToReflect$ = [];
|
2490
|
+
const n = s.prototype.connectedCallback, r = s.prototype.disconnectedCallback;
|
2491
|
+
return Object.assign(s.prototype, {
|
2492
2492
|
__registerHost() {
|
2493
|
-
|
2493
|
+
Ei(this, e);
|
2494
2494
|
},
|
2495
2495
|
connectedCallback() {
|
2496
|
-
Si(this),
|
2496
|
+
Si(this), n && n.call(this);
|
2497
2497
|
},
|
2498
2498
|
disconnectedCallback() {
|
2499
|
-
|
2499
|
+
Ai(this), r && r.call(this);
|
2500
2500
|
},
|
2501
2501
|
__attachShadow() {
|
2502
2502
|
this.attachShadow({
|
@@ -2504,83 +2504,83 @@ const Ft = typeof window < "u" ? window : {}, O = Ft.document || { head: {} }, t
|
|
2504
2504
|
delegatesFocus: !!(e.$flags$ & 16)
|
2505
2505
|
});
|
2506
2506
|
}
|
2507
|
-
}),
|
2508
|
-
},
|
2507
|
+
}), s.is = e.$tagName$, wi(s, e);
|
2508
|
+
}, dn = /* @__PURE__ */ new WeakMap(), Wt = (s) => dn.get(s), Ei = (s, t) => {
|
2509
2509
|
const e = {
|
2510
2510
|
$flags$: 0,
|
2511
|
-
$hostElement$:
|
2511
|
+
$hostElement$: s,
|
2512
2512
|
$cmpMeta$: t,
|
2513
2513
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2514
2514
|
};
|
2515
|
-
return
|
2516
|
-
},
|
2517
|
-
|
2518
|
-
},
|
2519
|
-
for (let t = 0; t <
|
2515
|
+
return tn(s, e, t.$listeners$), dn.set(s, e);
|
2516
|
+
}, hs = (s, t) => t in s, $t = (s, t) => (0, console.error)(s, t), It = /* @__PURE__ */ new Map(), Oi = [], ds = [], pn = [], ki = (s, t) => (e) => {
|
2517
|
+
s.push(e), he || (he = !0, t && w.$flags$ & 4 ? Ti(de) : w.raf(de));
|
2518
|
+
}, ps = (s) => {
|
2519
|
+
for (let t = 0; t < s.length; t++)
|
2520
2520
|
try {
|
2521
|
-
|
2521
|
+
s[t](performance.now());
|
2522
2522
|
} catch (e) {
|
2523
|
-
|
2523
|
+
$t(e);
|
2524
2524
|
}
|
2525
|
-
|
2526
|
-
},
|
2527
|
-
|
2528
|
-
},
|
2529
|
-
const { content: t = "", title: e, attributes:
|
2525
|
+
s.length = 0;
|
2526
|
+
}, de = () => {
|
2527
|
+
ps(ds), ps(pn), (he = ds.length > 0) && w.raf(de);
|
2528
|
+
}, Ti = (s) => Zr().then(s), Pi = /* @__PURE__ */ ki(pn, !0), Li = (s = {}) => {
|
2529
|
+
const { content: t = "", title: e, attributes: n = [] } = s;
|
2530
2530
|
let r = "", i = [
|
2531
2531
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
2532
2532
|
{ name: "fill", value: "currentColor" },
|
2533
|
-
...
|
2533
|
+
...n
|
2534
2534
|
];
|
2535
2535
|
return e && (r = `<title>${e}</title>`), `<svg ${i.map((a) => `${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`;
|
2536
|
-
},
|
2537
|
-
function
|
2538
|
-
return `${
|
2536
|
+
}, Mi = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2537
|
+
function Ii(s) {
|
2538
|
+
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
2539
2539
|
}
|
2540
|
-
class
|
2540
|
+
class Ui {
|
2541
2541
|
constructor(t) {
|
2542
|
-
this.voca_component = t, this.voca_added =
|
2542
|
+
this.voca_component = t, this.voca_added = Ii(/* @__PURE__ */ new Date());
|
2543
2543
|
}
|
2544
2544
|
}
|
2545
|
-
const
|
2545
|
+
const Ri = "telia-vst{display:none}", ji = /* @__PURE__ */ hn(class extends Vs {
|
2546
2546
|
constructor() {
|
2547
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
2547
|
+
super(), this.__registerHost(), this.vocaInternalUStats = hi(this, "vocaInternalUStats", 7);
|
2548
2548
|
}
|
2549
2549
|
connectedCallback() {
|
2550
|
-
this.vocaInternalUStats.emit(new
|
2550
|
+
this.vocaInternalUStats.emit(new Ui(this.dataTrackingId));
|
2551
2551
|
}
|
2552
2552
|
render() {
|
2553
|
-
return V(
|
2553
|
+
return V(Ee, null);
|
2554
2554
|
}
|
2555
2555
|
static get style() {
|
2556
|
-
return
|
2556
|
+
return Ri;
|
2557
2557
|
}
|
2558
2558
|
}, [0, "telia-vst", {
|
2559
2559
|
dataTrackingId: [1, "data-tracking-id"]
|
2560
2560
|
}]);
|
2561
|
-
function
|
2561
|
+
function fn() {
|
2562
2562
|
if (typeof customElements > "u")
|
2563
2563
|
return;
|
2564
2564
|
["telia-vst"].forEach((t) => {
|
2565
2565
|
switch (t) {
|
2566
2566
|
case "telia-vst":
|
2567
|
-
customElements.get(t) || customElements.define(t,
|
2567
|
+
customElements.get(t) || customElements.define(t, ji);
|
2568
2568
|
break;
|
2569
2569
|
}
|
2570
2570
|
});
|
2571
2571
|
}
|
2572
|
-
|
2573
|
-
function
|
2572
|
+
fn();
|
2573
|
+
function pe() {
|
2574
2574
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2575
2575
|
}
|
2576
|
-
function ji() {
|
2577
|
-
if (typeof de().vocadsIcons !== void 0)
|
2578
|
-
return de().vocadsIcons;
|
2579
|
-
}
|
2580
2576
|
function Hi() {
|
2581
|
-
|
2577
|
+
if (typeof pe().vocadsIcons !== void 0)
|
2578
|
+
return pe().vocadsIcons;
|
2579
|
+
}
|
2580
|
+
function Ni() {
|
2581
|
+
return pe().vocadsIconsRegistered;
|
2582
2582
|
}
|
2583
|
-
const
|
2583
|
+
const Di = ".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))}", Bi = /* @__PURE__ */ hn(class extends Vs {
|
2584
2584
|
constructor() {
|
2585
2585
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
2586
2586
|
}
|
@@ -2592,27 +2592,27 @@ const Ni = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2592
2592
|
getSvgString() {
|
2593
2593
|
if (this.svg)
|
2594
2594
|
return this.svg;
|
2595
|
-
if (
|
2596
|
-
const
|
2597
|
-
return
|
2595
|
+
if (Ni() && this.name) {
|
2596
|
+
const s = Hi();
|
2597
|
+
return s[this.name] ? s[this.name].svg : "";
|
2598
2598
|
}
|
2599
2599
|
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"), "";
|
2600
2600
|
}
|
2601
2601
|
render() {
|
2602
|
-
let
|
2602
|
+
let s = this.getSvgString(), t = [{ name: "viewBox", value: "0 0 64 64" }];
|
2603
2603
|
this.allyTitle ? t = [...t, { name: "role", value: "img" }] : t = [
|
2604
2604
|
...t,
|
2605
2605
|
{ name: "aria-hidden", value: "true" }
|
2606
2606
|
];
|
2607
|
-
const e =
|
2608
|
-
content:
|
2607
|
+
const e = Li({
|
2608
|
+
content: Mi(s),
|
2609
2609
|
attributes: t,
|
2610
2610
|
title: this.allyTitle
|
2611
2611
|
});
|
2612
|
-
return V(
|
2612
|
+
return V(Ee, { class: `telia-icon telia-icon--${this.size}` }, V("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), V("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
2613
2613
|
}
|
2614
2614
|
static get style() {
|
2615
|
-
return
|
2615
|
+
return Di;
|
2616
2616
|
}
|
2617
2617
|
}, [0, "telia-icon", {
|
2618
2618
|
name: [1],
|
@@ -2621,81 +2621,81 @@ const Ni = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2621
2621
|
allyTitle: [1, "ally-title"],
|
2622
2622
|
dataTestid: [1, "data-testid"]
|
2623
2623
|
}]);
|
2624
|
-
function
|
2624
|
+
function zi() {
|
2625
2625
|
if (typeof customElements > "u")
|
2626
2626
|
return;
|
2627
2627
|
["telia-icon", "telia-vst"].forEach((t) => {
|
2628
2628
|
switch (t) {
|
2629
2629
|
case "telia-icon":
|
2630
|
-
customElements.get(t) || customElements.define(t,
|
2630
|
+
customElements.get(t) || customElements.define(t, Bi);
|
2631
2631
|
break;
|
2632
2632
|
case "telia-vst":
|
2633
|
-
customElements.get(t) ||
|
2633
|
+
customElements.get(t) || fn();
|
2634
2634
|
break;
|
2635
2635
|
}
|
2636
2636
|
});
|
2637
2637
|
}
|
2638
|
-
|
2638
|
+
zi();
|
2639
2639
|
/**
|
2640
2640
|
* @license
|
2641
2641
|
* Copyright 2017 Google LLC
|
2642
2642
|
* SPDX-License-Identifier: BSD-3-Clause
|
2643
2643
|
*/
|
2644
|
-
const
|
2645
|
-
const { kind:
|
2644
|
+
const Fi = { attribute: !0, type: String, converter: kt, reflect: !1, hasChanged: Se }, Wi = (s = Fi, t, e) => {
|
2645
|
+
const { kind: n, metadata: r } = e;
|
2646
2646
|
let i = globalThis.litPropertyMetadata.get(r);
|
2647
|
-
if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), i.set(e.name,
|
2647
|
+
if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), i.set(e.name, s), n === "accessor") {
|
2648
2648
|
const { name: o } = e;
|
2649
2649
|
return { set(a) {
|
2650
2650
|
const l = t.get.call(this);
|
2651
|
-
t.set.call(this, a), this.requestUpdate(o, l,
|
2651
|
+
t.set.call(this, a), this.requestUpdate(o, l, s);
|
2652
2652
|
}, init(a) {
|
2653
|
-
return a !== void 0 && this.P(o, void 0,
|
2653
|
+
return a !== void 0 && this.P(o, void 0, s), a;
|
2654
2654
|
} };
|
2655
2655
|
}
|
2656
|
-
if (
|
2656
|
+
if (n === "setter") {
|
2657
2657
|
const { name: o } = e;
|
2658
2658
|
return function(a) {
|
2659
2659
|
const l = this[o];
|
2660
|
-
t.call(this, a), this.requestUpdate(o, l,
|
2660
|
+
t.call(this, a), this.requestUpdate(o, l, s);
|
2661
2661
|
};
|
2662
2662
|
}
|
2663
|
-
throw Error("Unsupported decorator location: " +
|
2663
|
+
throw Error("Unsupported decorator location: " + n);
|
2664
2664
|
};
|
2665
|
-
function y(
|
2666
|
-
return (t, e) => typeof e == "object" ?
|
2665
|
+
function y(s) {
|
2666
|
+
return (t, e) => typeof e == "object" ? Wi(s, t, e) : ((n, r, i) => {
|
2667
2667
|
const o = r.hasOwnProperty(i);
|
2668
|
-
return r.constructor.createProperty(i, o ? { ...
|
2669
|
-
})(
|
2668
|
+
return r.constructor.createProperty(i, o ? { ...n, wrapped: !0 } : n), o ? Object.getOwnPropertyDescriptor(r, i) : void 0;
|
2669
|
+
})(s, t, e);
|
2670
2670
|
}
|
2671
2671
|
/**
|
2672
2672
|
* @license
|
2673
2673
|
* Copyright 2017 Google LLC
|
2674
2674
|
* SPDX-License-Identifier: BSD-3-Clause
|
2675
2675
|
*/
|
2676
|
-
function
|
2677
|
-
return y({ ...
|
2676
|
+
function O(s) {
|
2677
|
+
return y({ ...s, state: !0, attribute: !1 });
|
2678
2678
|
}
|
2679
2679
|
/**
|
2680
2680
|
* @license
|
2681
2681
|
* Copyright 2020 Google LLC
|
2682
2682
|
* SPDX-License-Identifier: BSD-3-Clause
|
2683
2683
|
*/
|
2684
|
-
const
|
2684
|
+
const Yi = (s) => s.strings === void 0;
|
2685
2685
|
/**
|
2686
2686
|
* @license
|
2687
2687
|
* Copyright 2017 Google LLC
|
2688
2688
|
* SPDX-License-Identifier: BSD-3-Clause
|
2689
2689
|
*/
|
2690
|
-
const Yt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Zt = (
|
2691
|
-
let
|
2690
|
+
const Yt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Zt = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
2691
|
+
let ke = class {
|
2692
2692
|
constructor(t) {
|
2693
2693
|
}
|
2694
2694
|
get _$AU() {
|
2695
2695
|
return this._$AM._$AU;
|
2696
2696
|
}
|
2697
|
-
_$AT(t, e,
|
2698
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
2697
|
+
_$AT(t, e, n) {
|
2698
|
+
this._$Ct = t, this._$AM = e, this._$Ci = n;
|
2699
2699
|
}
|
2700
2700
|
_$AS(t, e) {
|
2701
2701
|
return this.update(t, e);
|
@@ -2709,62 +2709,62 @@ let Oe = class {
|
|
2709
2709
|
* Copyright 2017 Google LLC
|
2710
2710
|
* SPDX-License-Identifier: BSD-3-Clause
|
2711
2711
|
*/
|
2712
|
-
const
|
2713
|
-
var
|
2714
|
-
const e =
|
2712
|
+
const ct = (s, t) => {
|
2713
|
+
var n;
|
2714
|
+
const e = s._$AN;
|
2715
2715
|
if (e === void 0)
|
2716
2716
|
return !1;
|
2717
2717
|
for (const r of e)
|
2718
|
-
(
|
2718
|
+
(n = r._$AO) == null || n.call(r, t, !1), ct(r, t);
|
2719
2719
|
return !0;
|
2720
|
-
},
|
2720
|
+
}, Ut = (s) => {
|
2721
2721
|
let t, e;
|
2722
2722
|
do {
|
2723
|
-
if ((t =
|
2723
|
+
if ((t = s._$AM) === void 0)
|
2724
2724
|
break;
|
2725
|
-
e = t._$AN, e.delete(
|
2725
|
+
e = t._$AN, e.delete(s), s = t;
|
2726
2726
|
} while ((e == null ? void 0 : e.size) === 0);
|
2727
|
-
},
|
2728
|
-
for (let t; t =
|
2727
|
+
}, vn = (s) => {
|
2728
|
+
for (let t; t = s._$AM; s = t) {
|
2729
2729
|
let e = t._$AN;
|
2730
2730
|
if (e === void 0)
|
2731
2731
|
t._$AN = e = /* @__PURE__ */ new Set();
|
2732
|
-
else if (e.has(
|
2732
|
+
else if (e.has(s))
|
2733
2733
|
break;
|
2734
|
-
e.add(
|
2734
|
+
e.add(s), Ki(t);
|
2735
2735
|
}
|
2736
2736
|
};
|
2737
|
-
function
|
2738
|
-
this._$AN !== void 0 ? (
|
2737
|
+
function Zi(s) {
|
2738
|
+
this._$AN !== void 0 ? (Ut(this), this._$AM = s, vn(this)) : this._$AM = s;
|
2739
2739
|
}
|
2740
|
-
function
|
2741
|
-
const
|
2740
|
+
function qi(s, t = !1, e = 0) {
|
2741
|
+
const n = this._$AH, r = this._$AN;
|
2742
2742
|
if (r !== void 0 && r.size !== 0)
|
2743
2743
|
if (t)
|
2744
|
-
if (Array.isArray(
|
2745
|
-
for (let i = e; i <
|
2746
|
-
|
2744
|
+
if (Array.isArray(n))
|
2745
|
+
for (let i = e; i < n.length; i++)
|
2746
|
+
ct(n[i], !1), Ut(n[i]);
|
2747
2747
|
else
|
2748
|
-
|
2748
|
+
n != null && (ct(n, !1), Ut(n));
|
2749
2749
|
else
|
2750
|
-
|
2750
|
+
ct(this, s);
|
2751
2751
|
}
|
2752
|
-
const
|
2753
|
-
|
2752
|
+
const Ki = (s) => {
|
2753
|
+
s.type == Yt.CHILD && (s._$AP ?? (s._$AP = qi), s._$AQ ?? (s._$AQ = Zi));
|
2754
2754
|
};
|
2755
|
-
let
|
2755
|
+
let gn = class extends ke {
|
2756
2756
|
constructor() {
|
2757
2757
|
super(...arguments), this._$AN = void 0;
|
2758
2758
|
}
|
2759
|
-
_$AT(t, e,
|
2760
|
-
super._$AT(t, e,
|
2759
|
+
_$AT(t, e, n) {
|
2760
|
+
super._$AT(t, e, n), vn(this), this.isConnected = t._$AU;
|
2761
2761
|
}
|
2762
2762
|
_$AO(t, e = !0) {
|
2763
|
-
var
|
2764
|
-
t !== this.isConnected && (this.isConnected = t, t ? (
|
2763
|
+
var n, r;
|
2764
|
+
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (r = this.disconnected) == null || r.call(this)), e && (ct(this, t), Ut(this));
|
2765
2765
|
}
|
2766
2766
|
setValue(t) {
|
2767
|
-
if (
|
2767
|
+
if (Yi(this._$Ct))
|
2768
2768
|
this._$Ct._$AI(t, this);
|
2769
2769
|
else {
|
2770
2770
|
const e = [...this._$Ct._$AH];
|
@@ -2781,29 +2781,29 @@ let gs = class extends Oe {
|
|
2781
2781
|
* Copyright 2020 Google LLC
|
2782
2782
|
* SPDX-License-Identifier: BSD-3-Clause
|
2783
2783
|
*/
|
2784
|
-
const
|
2785
|
-
class
|
2784
|
+
const Rt = () => new Gi();
|
2785
|
+
class Gi {
|
2786
2786
|
}
|
2787
|
-
const ee = /* @__PURE__ */ new WeakMap(),
|
2788
|
-
render(
|
2787
|
+
const ee = /* @__PURE__ */ new WeakMap(), jt = Zt(class extends gn {
|
2788
|
+
render(s) {
|
2789
2789
|
return f;
|
2790
2790
|
}
|
2791
|
-
update(
|
2792
|
-
var
|
2791
|
+
update(s, [t]) {
|
2792
|
+
var n;
|
2793
2793
|
const e = t !== this.Y;
|
2794
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (
|
2794
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (n = s.options) == null ? void 0 : n.host, this.rt(this.ct = s.element)), f;
|
2795
2795
|
}
|
2796
|
-
rt(
|
2796
|
+
rt(s) {
|
2797
2797
|
if (typeof this.Y == "function") {
|
2798
2798
|
const t = this.ht ?? globalThis;
|
2799
2799
|
let e = ee.get(t);
|
2800
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ee.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y,
|
2800
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ee.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, s), s !== void 0 && this.Y.call(this.ht, s);
|
2801
2801
|
} else
|
2802
|
-
this.Y.value =
|
2802
|
+
this.Y.value = s;
|
2803
2803
|
}
|
2804
2804
|
get lt() {
|
2805
|
-
var
|
2806
|
-
return typeof this.Y == "function" ? (
|
2805
|
+
var s, t;
|
2806
|
+
return typeof this.Y == "function" ? (s = ee.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
2807
2807
|
}
|
2808
2808
|
disconnected() {
|
2809
2809
|
this.lt === this.ct && this.rt(void 0);
|
@@ -2817,39 +2817,39 @@ const ee = /* @__PURE__ */ new WeakMap(), Rt = Zt(class extends gs {
|
|
2817
2817
|
* Copyright 2018 Google LLC
|
2818
2818
|
* SPDX-License-Identifier: BSD-3-Clause
|
2819
2819
|
*/
|
2820
|
-
const
|
2821
|
-
constructor(
|
2820
|
+
const ft = Zt(class extends ke {
|
2821
|
+
constructor(s) {
|
2822
2822
|
var t;
|
2823
|
-
if (super(
|
2823
|
+
if (super(s), s.type !== Yt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
2824
2824
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
2825
2825
|
}
|
2826
|
-
render(
|
2827
|
-
return " " + Object.keys(
|
2826
|
+
render(s) {
|
2827
|
+
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
2828
2828
|
}
|
2829
|
-
update(
|
2830
|
-
var
|
2829
|
+
update(s, [t]) {
|
2830
|
+
var n, r;
|
2831
2831
|
if (this.st === void 0) {
|
2832
|
-
this.st = /* @__PURE__ */ new Set(),
|
2832
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((i) => i !== "")));
|
2833
2833
|
for (const i in t)
|
2834
|
-
t[i] && !((
|
2834
|
+
t[i] && !((n = this.nt) != null && n.has(i)) && this.st.add(i);
|
2835
2835
|
return this.render(t);
|
2836
2836
|
}
|
2837
|
-
const e =
|
2837
|
+
const e = s.element.classList;
|
2838
2838
|
for (const i of this.st)
|
2839
2839
|
i in t || (e.remove(i), this.st.delete(i));
|
2840
2840
|
for (const i in t) {
|
2841
2841
|
const o = !!t[i];
|
2842
2842
|
o === this.st.has(i) || (r = this.nt) != null && r.has(i) || (o ? (e.add(i), this.st.add(i)) : (e.remove(i), this.st.delete(i)));
|
2843
2843
|
}
|
2844
|
-
return
|
2844
|
+
return H;
|
2845
2845
|
}
|
2846
2846
|
});
|
2847
|
-
var
|
2848
|
-
for (var r =
|
2849
|
-
(o =
|
2850
|
-
return
|
2847
|
+
var Xi = Object.defineProperty, Ji = Object.getOwnPropertyDescriptor, Qi = (s, t, e, n) => {
|
2848
|
+
for (var r = n > 1 ? void 0 : n ? Ji(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
2849
|
+
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
2850
|
+
return n && r && Xi(t, e, r), r;
|
2851
2851
|
};
|
2852
|
-
class
|
2852
|
+
class Te extends b {
|
2853
2853
|
constructor() {
|
2854
2854
|
super(...arguments), this.anchor = "BottomRight";
|
2855
2855
|
}
|
@@ -2861,7 +2861,7 @@ class ke extends b {
|
|
2861
2861
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), f;
|
2862
2862
|
}
|
2863
2863
|
}
|
2864
|
-
|
2864
|
+
Te.styles = [
|
2865
2865
|
C`
|
2866
2866
|
:host {
|
2867
2867
|
position: fixed;
|
@@ -2880,35 +2880,35 @@ ke.styles = [
|
|
2880
2880
|
}
|
2881
2881
|
`
|
2882
2882
|
];
|
2883
|
-
|
2883
|
+
Qi([
|
2884
2884
|
y({ attribute: !0 })
|
2885
|
-
],
|
2886
|
-
const
|
2887
|
-
let
|
2888
|
-
const
|
2889
|
-
const e =
|
2885
|
+
], Te.prototype, "anchor", 2);
|
2886
|
+
const Vi = /* @__PURE__ */ new WeakMap();
|
2887
|
+
let fs = 0;
|
2888
|
+
const se = /* @__PURE__ */ new Map(), vs = /* @__PURE__ */ new WeakSet(), gs = () => new Promise((s) => requestAnimationFrame(s)), to = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], eo = [{ opacity: 0 }], ms = [{ opacity: 0 }, { opacity: 1 }], $s = (s, t) => {
|
2889
|
+
const e = s - t;
|
2890
2890
|
return e === 0 ? void 0 : e;
|
2891
|
-
},
|
2892
|
-
const e =
|
2891
|
+
}, ys = (s, t) => {
|
2892
|
+
const e = s / t;
|
2893
2893
|
return e === 1 ? void 0 : e;
|
2894
|
-
},
|
2895
|
-
const e = $
|
2894
|
+
}, ne = { left: (s, t) => {
|
2895
|
+
const e = $s(s, t);
|
2896
2896
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
2897
|
-
}, top: (
|
2898
|
-
const e = $
|
2897
|
+
}, top: (s, t) => {
|
2898
|
+
const e = $s(s, t);
|
2899
2899
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
2900
|
-
}, width: (
|
2900
|
+
}, width: (s, t) => {
|
2901
2901
|
let e;
|
2902
2902
|
t === 0 && (t = 1, e = { width: "1px" });
|
2903
|
-
const
|
2904
|
-
return { value:
|
2905
|
-
}, height: (
|
2903
|
+
const n = ys(s, t);
|
2904
|
+
return { value: n, overrideFrom: e, transform: n == null || isNaN(n) ? void 0 : `scaleX(${n})` };
|
2905
|
+
}, height: (s, t) => {
|
2906
2906
|
let e;
|
2907
2907
|
t === 0 && (t = 1, e = { height: "1px" });
|
2908
|
-
const
|
2909
|
-
return { value:
|
2910
|
-
} },
|
2911
|
-
class
|
2908
|
+
const n = ys(s, t);
|
2909
|
+
return { value: n, overrideFrom: e, transform: n == null || isNaN(n) ? void 0 : `scaleY(${n})` };
|
2910
|
+
} }, so = { duration: 333, easing: "ease-in-out" }, no = ["left", "top", "width", "height", "opacity", "color", "background"], bs = /* @__PURE__ */ new WeakMap();
|
2911
|
+
class ro extends gn {
|
2912
2912
|
constructor(t) {
|
2913
2913
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Yt.CHILD)
|
2914
2914
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -2928,7 +2928,7 @@ class so extends gs {
|
|
2928
2928
|
return f;
|
2929
2929
|
}
|
2930
2930
|
getController() {
|
2931
|
-
return
|
2931
|
+
return Vi.get(this.u);
|
2932
2932
|
}
|
2933
2933
|
isDisabled() {
|
2934
2934
|
var t;
|
@@ -2936,8 +2936,8 @@ class so extends gs {
|
|
2936
2936
|
}
|
2937
2937
|
update(t, [e]) {
|
2938
2938
|
var r;
|
2939
|
-
const
|
2940
|
-
return
|
2939
|
+
const n = this.u === void 0;
|
2940
|
+
return n && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((i) => this.t = !0), this.element = t.element, bs.set(this.element, this)), this.optionsOrCallback = e, (n || typeof e != "function") && this.p(e), this.render(e);
|
2941
2941
|
}
|
2942
2942
|
p(t) {
|
2943
2943
|
t = t ?? {};
|
@@ -2945,19 +2945,19 @@ class so extends gs {
|
|
2945
2945
|
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = no), this.options = t;
|
2946
2946
|
}
|
2947
2947
|
m() {
|
2948
|
-
const t = {}, e = this.element.getBoundingClientRect(),
|
2948
|
+
const t = {}, e = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
2949
2949
|
return this.options.properties.forEach((r) => {
|
2950
|
-
const i = e[r] ?? (
|
2950
|
+
const i = e[r] ?? (ne[r] ? void 0 : n[r]), o = Number(i);
|
2951
2951
|
t[r] = isNaN(o) ? i + "" : o;
|
2952
2952
|
}), t;
|
2953
2953
|
}
|
2954
2954
|
v() {
|
2955
2955
|
let t, e = !0;
|
2956
|
-
return this.options.guard && (t = this.options.guard(), e = ((
|
2957
|
-
if (Array.isArray(
|
2958
|
-
if (Array.isArray(r) && r.length ===
|
2956
|
+
return this.options.guard && (t = this.options.guard(), e = ((n, r) => {
|
2957
|
+
if (Array.isArray(n)) {
|
2958
|
+
if (Array.isArray(r) && r.length === n.length && n.every((i, o) => i === r[o]))
|
2959
2959
|
return !1;
|
2960
|
-
} else if (r ===
|
2960
|
+
} else if (r === n)
|
2961
2961
|
return !1;
|
2962
2962
|
return !0;
|
2963
2963
|
})(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;
|
@@ -2969,21 +2969,21 @@ class so extends gs {
|
|
2969
2969
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
2970
2970
|
return;
|
2971
2971
|
let t;
|
2972
|
-
this.prepare(), await
|
2973
|
-
const e = this.O(),
|
2972
|
+
this.prepare(), await gs;
|
2973
|
+
const e = this.O(), n = this.j(this.options.keyframeOptions, e), r = this.m();
|
2974
2974
|
if (this.A !== void 0) {
|
2975
2975
|
const { from: i, to: o } = this.N(this.A, r, e);
|
2976
2976
|
this.log("measured", [this.A, r, i, o]), t = this.calculateKeyframes(i, o);
|
2977
2977
|
} else {
|
2978
|
-
const i =
|
2978
|
+
const i = se.get(this.options.inId);
|
2979
2979
|
if (i) {
|
2980
|
-
|
2980
|
+
se.delete(this.options.inId);
|
2981
2981
|
const { from: o, to: a } = this.N(i, r, e);
|
2982
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
2982
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, fs++, t.forEach((l) => l.zIndex = fs);
|
2983
2983
|
} else
|
2984
2984
|
this.options.in && (t = [...this.options.in, {}]);
|
2985
2985
|
}
|
2986
|
-
this.animate(t,
|
2986
|
+
this.animate(t, n);
|
2987
2987
|
}
|
2988
2988
|
resetStyles() {
|
2989
2989
|
this.P !== void 0 && (this.element.setAttribute("style", this.P ?? ""), this.P = void 0);
|
@@ -2996,11 +2996,11 @@ class so extends gs {
|
|
2996
2996
|
}
|
2997
2997
|
async disconnected() {
|
2998
2998
|
var e;
|
2999
|
-
if (!this.h || (this.options.id !== void 0 &&
|
2999
|
+
if (!this.h || (this.options.id !== void 0 && se.set(this.options.id, this.A), this.options.out === void 0))
|
3000
3000
|
return;
|
3001
|
-
if (this.prepare(), await
|
3002
|
-
const
|
3003
|
-
if (this.i.insertBefore(this.element,
|
3001
|
+
if (this.prepare(), await gs(), (e = this.i) == null ? void 0 : e.isConnected) {
|
3002
|
+
const n = this.o && this.o.parentNode === this.i ? this.o : null;
|
3003
|
+
if (this.i.insertBefore(this.element, n), this.options.stabilizeOut) {
|
3004
3004
|
const r = this.m();
|
3005
3005
|
this.log("stabilizing out");
|
3006
3006
|
const i = this.A.left - r.left, o = this.A.top - r.top;
|
@@ -3018,43 +3018,43 @@ class so extends gs {
|
|
3018
3018
|
(e = (t = this.options).onStart) == null || e.call(t, this);
|
3019
3019
|
}
|
3020
3020
|
didFinish(t) {
|
3021
|
-
var e,
|
3022
|
-
t && ((
|
3021
|
+
var e, n;
|
3022
|
+
t && ((n = (e = this.options).onComplete) == null || n.call(e, this)), this.A = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
|
3023
3023
|
}
|
3024
3024
|
O() {
|
3025
3025
|
const t = [];
|
3026
3026
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
3027
|
-
const
|
3028
|
-
|
3027
|
+
const n = bs.get(e);
|
3028
|
+
n && !n.isDisabled() && n && t.push(n);
|
3029
3029
|
}
|
3030
3030
|
return t;
|
3031
3031
|
}
|
3032
3032
|
get isHostRendered() {
|
3033
|
-
const t =
|
3033
|
+
const t = vs.has(this.u);
|
3034
3034
|
return t || this.u.updateComplete.then(() => {
|
3035
|
-
|
3035
|
+
vs.add(this.u);
|
3036
3036
|
}), t;
|
3037
3037
|
}
|
3038
3038
|
j(t, e = this.O()) {
|
3039
|
-
const
|
3040
|
-
return e.forEach((r) => Object.assign(
|
3039
|
+
const n = { ...so };
|
3040
|
+
return e.forEach((r) => Object.assign(n, r.options.keyframeOptions)), Object.assign(n, t), n;
|
3041
3041
|
}
|
3042
|
-
N(t, e,
|
3042
|
+
N(t, e, n) {
|
3043
3043
|
t = { ...t }, e = { ...e };
|
3044
|
-
const r =
|
3044
|
+
const r = n.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
3045
3045
|
let i = 1, o = 1;
|
3046
3046
|
return r.length > 0 && (r.forEach((a) => {
|
3047
3047
|
a.width && (i /= a.width), a.height && (o /= a.height);
|
3048
3048
|
}), t.left !== void 0 && e.left !== void 0 && (t.left = i * t.left, e.left = i * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
3049
3049
|
}
|
3050
|
-
calculateKeyframes(t, e,
|
3050
|
+
calculateKeyframes(t, e, n = !1) {
|
3051
3051
|
const r = {}, i = {};
|
3052
3052
|
let o = !1;
|
3053
3053
|
const a = {};
|
3054
3054
|
for (const l in e) {
|
3055
3055
|
const c = t[l], u = e[l];
|
3056
|
-
if (l in
|
3057
|
-
const h =
|
3056
|
+
if (l in ne) {
|
3057
|
+
const h = ne[l];
|
3058
3058
|
if (c === void 0 || u === void 0)
|
3059
3059
|
continue;
|
3060
3060
|
const d = h(c, u);
|
@@ -3062,13 +3062,13 @@ class so extends gs {
|
|
3062
3062
|
} else
|
3063
3063
|
c !== u && c !== void 0 && u !== void 0 && (o = !0, r[l] = c, i[l] = u);
|
3064
3064
|
}
|
3065
|
-
return r.transformOrigin = i.transformOrigin =
|
3065
|
+
return r.transformOrigin = i.transformOrigin = n ? "center center" : "top left", this.animatingProperties = a, o ? [r, i] : void 0;
|
3066
3066
|
}
|
3067
3067
|
async animate(t, e = this.options.keyframeOptions) {
|
3068
3068
|
this.start(), this.frames = t;
|
3069
|
-
let
|
3069
|
+
let n = !1;
|
3070
3070
|
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
3071
|
-
this.log("animate", [t, e]),
|
3071
|
+
this.log("animate", [t, e]), n = !0, this.webAnimation = this.element.animate(t, e);
|
3072
3072
|
const r = this.getController();
|
3073
3073
|
r == null || r.add(this);
|
3074
3074
|
try {
|
@@ -3077,7 +3077,7 @@ class so extends gs {
|
|
3077
3077
|
}
|
3078
3078
|
r == null || r.remove(this);
|
3079
3079
|
}
|
3080
|
-
return this.didFinish(
|
3080
|
+
return this.didFinish(n), n;
|
3081
3081
|
}
|
3082
3082
|
isAnimating() {
|
3083
3083
|
var t, e;
|
@@ -3087,32 +3087,32 @@ class so extends gs {
|
|
3087
3087
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
3088
3088
|
}
|
3089
3089
|
}
|
3090
|
-
const
|
3091
|
-
|
3092
|
-
},
|
3093
|
-
var e,
|
3094
|
-
|
3095
|
-
(
|
3090
|
+
const fe = Zt(ro), xt = (s, t, e) => {
|
3091
|
+
s && e.style.setProperty(t, s);
|
3092
|
+
}, mn = (s, t) => {
|
3093
|
+
var e, n, r, i;
|
3094
|
+
xt((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), xt(
|
3095
|
+
(n = s.colors) == null ? void 0 : n.textOnPrimaryBackground,
|
3096
3096
|
"--text-on-primary-background",
|
3097
3097
|
t
|
3098
|
-
),
|
3099
|
-
(r =
|
3098
|
+
), xt(
|
3099
|
+
(r = s.colors) == null ? void 0 : r.secondaryBackground,
|
3100
3100
|
"--secondary-background",
|
3101
3101
|
t
|
3102
|
-
),
|
3103
|
-
(i =
|
3102
|
+
), xt(
|
3103
|
+
(i = s.colors) == null ? void 0 : i.textOnSecondaryBackground,
|
3104
3104
|
"--text-on-secondary-background",
|
3105
3105
|
t
|
3106
3106
|
);
|
3107
3107
|
};
|
3108
|
-
var
|
3109
|
-
for (var r =
|
3110
|
-
(o =
|
3111
|
-
return
|
3108
|
+
var io = Object.defineProperty, oo = Object.getOwnPropertyDescriptor, qt = (s, t, e, n) => {
|
3109
|
+
for (var r = n > 1 ? void 0 : n ? oo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3110
|
+
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
3111
|
+
return n && r && io(t, e, r), r;
|
3112
3112
|
};
|
3113
3113
|
class Z extends b {
|
3114
3114
|
constructor() {
|
3115
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef =
|
3115
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = Rt();
|
3116
3116
|
}
|
3117
3117
|
async connectedCallback() {
|
3118
3118
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -3129,17 +3129,17 @@ class Z extends b {
|
|
3129
3129
|
}
|
3130
3130
|
_applyBranding() {
|
3131
3131
|
var t;
|
3132
|
-
(t = this.application) != null && t.settings &&
|
3132
|
+
(t = this.application) != null && t.settings && mn(this.application.settings.branding, this);
|
3133
3133
|
}
|
3134
3134
|
async _renderSymbol() {
|
3135
3135
|
var a, l, c;
|
3136
3136
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (l = t == null ? void 0 : t.graphics) == null ? void 0 : l.trigger;
|
3137
3137
|
if (e)
|
3138
3138
|
return v` <img src=${e} class="trigger-icon" alt="" /> `;
|
3139
|
-
const
|
3140
|
-
if (!
|
3139
|
+
const n = (c = this.application) == null ? void 0 : c.triggerIcon;
|
3140
|
+
if (!n)
|
3141
3141
|
return f;
|
3142
|
-
const r = async (u) =>
|
3142
|
+
const r = async (u) => Fr, { type: i, content: o } = n;
|
3143
3143
|
switch (i) {
|
3144
3144
|
case "Telia": {
|
3145
3145
|
const u = await r();
|
@@ -3154,16 +3154,16 @@ class Z extends b {
|
|
3154
3154
|
}
|
3155
3155
|
}
|
3156
3156
|
render() {
|
3157
|
-
var t, e,
|
3158
|
-
return v`<div class="trigger-container" ${
|
3159
|
-
${!this.active && ((r = (
|
3157
|
+
var t, e, n, r;
|
3158
|
+
return v`<div class="trigger-container" ${jt(this.containerRef)}>
|
3159
|
+
${!this.active && ((r = (n = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : n.other) != null && r.showButtonLabel) ? v`
|
3160
3160
|
<button
|
3161
3161
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
3162
3162
|
class="trigger-label"
|
3163
3163
|
@click=${this.toggleActive}
|
3164
|
-
${
|
3164
|
+
${fe({
|
3165
3165
|
keyframeOptions: {},
|
3166
|
-
in:
|
3166
|
+
in: to,
|
3167
3167
|
stabilizeOut: !0,
|
3168
3168
|
skipInitial: !1
|
3169
3169
|
})}
|
@@ -3174,7 +3174,7 @@ class Z extends b {
|
|
3174
3174
|
|
3175
3175
|
<button
|
3176
3176
|
label="Widget trigger"
|
3177
|
-
class=${
|
3177
|
+
class=${ft({
|
3178
3178
|
trigger: !0,
|
3179
3179
|
active: this.active,
|
3180
3180
|
rendered: this.loaded
|
@@ -3324,35 +3324,35 @@ qt([
|
|
3324
3324
|
y({ attribute: !1 })
|
3325
3325
|
], Z.prototype, "application", 2);
|
3326
3326
|
qt([
|
3327
|
-
|
3327
|
+
O()
|
3328
3328
|
], Z.prototype, "active", 2);
|
3329
3329
|
qt([
|
3330
|
-
|
3330
|
+
O()
|
3331
3331
|
], Z.prototype, "loaded", 2);
|
3332
3332
|
qt([
|
3333
|
-
|
3333
|
+
O()
|
3334
3334
|
], Z.prototype, "icon", 2);
|
3335
|
-
var
|
3336
|
-
for (var r =
|
3337
|
-
(o =
|
3338
|
-
return
|
3335
|
+
var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, B = (s, t, e, n) => {
|
3336
|
+
for (var r = n > 1 ? void 0 : n ? lo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3337
|
+
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
3338
|
+
return n && r && ao(t, e, r), r;
|
3339
3339
|
};
|
3340
|
-
const $
|
3341
|
-
class t extends
|
3340
|
+
const $n = (s) => {
|
3341
|
+
class t extends s {
|
3342
3342
|
constructor() {
|
3343
3343
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
3344
3344
|
}
|
3345
|
-
writeProperties(
|
3346
|
-
this.properties =
|
3345
|
+
writeProperties(n) {
|
3346
|
+
this.properties = n;
|
3347
3347
|
}
|
3348
|
-
writeLayout(
|
3349
|
-
this.layout =
|
3348
|
+
writeLayout(n) {
|
3349
|
+
this.layout = n;
|
3350
3350
|
}
|
3351
|
-
writeContext(
|
3352
|
-
this.context =
|
3351
|
+
writeContext(n) {
|
3352
|
+
this.context = n;
|
3353
3353
|
}
|
3354
|
-
addChild(
|
3355
|
-
|
3354
|
+
addChild(n) {
|
3355
|
+
n.parent = this, this.nodes.push(n);
|
3356
3356
|
}
|
3357
3357
|
connectedCallback() {
|
3358
3358
|
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
@@ -3392,12 +3392,12 @@ const $s = (n) => {
|
|
3392
3392
|
y({ attribute: !1 })
|
3393
3393
|
], t.prototype, "parent", 2), t;
|
3394
3394
|
};
|
3395
|
-
class
|
3395
|
+
class yn extends $n(b) {
|
3396
3396
|
render() {
|
3397
3397
|
return v`Non resolved component`;
|
3398
3398
|
}
|
3399
3399
|
}
|
3400
|
-
|
3400
|
+
yn.styles = [
|
3401
3401
|
C`
|
3402
3402
|
:host {
|
3403
3403
|
display: block;
|
@@ -3409,21 +3409,21 @@ ys.styles = [
|
|
3409
3409
|
* Copyright 2021 Google LLC
|
3410
3410
|
* SPDX-License-Identifier: BSD-3-Clause
|
3411
3411
|
*/
|
3412
|
-
function*
|
3413
|
-
if (
|
3412
|
+
function* co(s, t) {
|
3413
|
+
if (s !== void 0) {
|
3414
3414
|
let e = 0;
|
3415
|
-
for (const
|
3416
|
-
yield t(
|
3415
|
+
for (const n of s)
|
3416
|
+
yield t(n, e++);
|
3417
3417
|
}
|
3418
3418
|
}
|
3419
|
-
var
|
3420
|
-
for (var r =
|
3421
|
-
(o =
|
3422
|
-
return
|
3419
|
+
var Pe = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(Pe || {}), uo = Object.defineProperty, ho = Object.getOwnPropertyDescriptor, po = (s, t, e, n) => {
|
3420
|
+
for (var r = n > 1 ? void 0 : n ? ho(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3421
|
+
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
3422
|
+
return n && r && uo(t, e, r), r;
|
3423
3423
|
};
|
3424
|
-
class
|
3424
|
+
class Le extends b {
|
3425
3425
|
constructor() {
|
3426
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
3426
|
+
super(...arguments), this.nodes = [], this.wrapperRef = Rt();
|
3427
3427
|
}
|
3428
3428
|
addChild(t) {
|
3429
3429
|
t.parent = this, this.nodes.push(t);
|
@@ -3432,26 +3432,26 @@ class Pe extends b {
|
|
3432
3432
|
if (!this.wrapperRef.value)
|
3433
3433
|
return;
|
3434
3434
|
const t = this.application.settings;
|
3435
|
-
t != null && t.branding &&
|
3435
|
+
t != null && t.branding && mn(t.branding, this.wrapperRef.value);
|
3436
3436
|
}
|
3437
3437
|
applyStyles() {
|
3438
3438
|
if (!this.wrapperRef.value)
|
3439
3439
|
return;
|
3440
3440
|
const t = this.application.styles(), e = this.wrapperRef.value;
|
3441
|
-
Object.entries(t).forEach(([
|
3442
|
-
e.style.setProperty(`--${
|
3441
|
+
Object.entries(t).forEach(([n, r]) => {
|
3442
|
+
e.style.setProperty(`--${n}`, r);
|
3443
3443
|
});
|
3444
3444
|
}
|
3445
3445
|
firstUpdated(t) {
|
3446
3446
|
this.applyBranding(), this.applyStyles();
|
3447
3447
|
}
|
3448
3448
|
render() {
|
3449
|
-
return this.application.renderStrategy ===
|
3450
|
-
${
|
3449
|
+
return this.application.renderStrategy === Pe.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")), v`<div class="widget-container" ${jt(this.wrapperRef)}>
|
3450
|
+
${co(this.nodes, (t) => t)}
|
3451
3451
|
</div>`;
|
3452
3452
|
}
|
3453
3453
|
}
|
3454
|
-
|
3454
|
+
Le.styles = C`
|
3455
3455
|
:host {
|
3456
3456
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
3457
3457
|
--spacing-xs: 0.2rem;
|
@@ -3460,15 +3460,23 @@ Pe.styles = C`
|
|
3460
3460
|
--spacing-lg: 1.2rem;
|
3461
3461
|
--spacing-xl: 1.8rem;
|
3462
3462
|
|
3463
|
+
--inverted-spacing-lg: -1.2rem;
|
3464
|
+
|
3463
3465
|
--text-color: #222222;
|
3464
3466
|
--link-color: #990ae3;
|
3465
3467
|
--gray-color: #f3f3f8;
|
3468
|
+
--white-color: #fff;
|
3466
3469
|
--gray-dark-color: #a6a6a6;
|
3470
|
+
--destructive-color: #e4175c;
|
3467
3471
|
|
3468
3472
|
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
3469
3473
|
--border-radius: var(--spacing-sm);
|
3470
3474
|
--border-radius-sm: var(--spacing-sm);
|
3475
|
+
--border-radius-lg: var(--spacing-lg);
|
3476
|
+
--border-radius-xl: var(--spacing-xl);
|
3471
3477
|
--gap: var(--spacing-sm);
|
3478
|
+
|
3479
|
+
--header-height: 69px;
|
3472
3480
|
}
|
3473
3481
|
:host {
|
3474
3482
|
--voca-rem-multiplier: 0.625;
|
@@ -3549,15 +3557,15 @@ Pe.styles = C`
|
|
3549
3557
|
animation: slideDown 0.3s linear;
|
3550
3558
|
}
|
3551
3559
|
`;
|
3552
|
-
|
3560
|
+
po([
|
3553
3561
|
y({ attribute: !1 })
|
3554
|
-
],
|
3555
|
-
var
|
3556
|
-
for (var r =
|
3557
|
-
(o =
|
3558
|
-
return
|
3562
|
+
], Le.prototype, "application", 2);
|
3563
|
+
var fo = Object.defineProperty, vo = Object.getOwnPropertyDescriptor, Me = (s, t, e, n) => {
|
3564
|
+
for (var r = n > 1 ? void 0 : n ? vo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3565
|
+
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
3566
|
+
return n && r && fo(t, e, r), r;
|
3559
3567
|
};
|
3560
|
-
class
|
3568
|
+
class yt extends b {
|
3561
3569
|
constructor() {
|
3562
3570
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
3563
3571
|
}
|
@@ -3582,35 +3590,35 @@ class mt extends b {
|
|
3582
3590
|
render() {
|
3583
3591
|
if (!this.widget || this.status !== "activated")
|
3584
3592
|
return f;
|
3585
|
-
if (this.widget.renderStrategy ===
|
3593
|
+
if (this.widget.renderStrategy === Pe.Trigger) {
|
3586
3594
|
const t = new Z();
|
3587
3595
|
return t.application = this.widget, t;
|
3588
3596
|
}
|
3589
3597
|
return this.widget.render();
|
3590
3598
|
}
|
3591
3599
|
}
|
3592
|
-
|
3600
|
+
yt.styles = [
|
3593
3601
|
C`
|
3594
3602
|
:host {
|
3595
3603
|
display: block;
|
3596
3604
|
}
|
3597
3605
|
`
|
3598
3606
|
];
|
3599
|
-
|
3607
|
+
Me([
|
3600
3608
|
y({ attribute: !0 })
|
3601
|
-
],
|
3602
|
-
|
3603
|
-
|
3604
|
-
],
|
3605
|
-
|
3606
|
-
|
3607
|
-
],
|
3608
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
3609
|
+
], yt.prototype, "name", 2);
|
3610
|
+
Me([
|
3611
|
+
O()
|
3612
|
+
], yt.prototype, "widget", 2);
|
3613
|
+
Me([
|
3614
|
+
O()
|
3615
|
+
], yt.prototype, "status", 2);
|
3616
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Te);
|
3609
3617
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", Z);
|
3610
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
3611
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
3612
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
3613
|
-
class
|
3618
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", yn);
|
3619
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Le);
|
3620
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", yt);
|
3621
|
+
class go {
|
3614
3622
|
constructor(t) {
|
3615
3623
|
this._message = null, this._host = t, t.addController(this);
|
3616
3624
|
}
|
@@ -3626,19 +3634,19 @@ class vo {
|
|
3626
3634
|
return !!this.message;
|
3627
3635
|
}
|
3628
3636
|
}
|
3629
|
-
class
|
3630
|
-
constructor(t, e,
|
3631
|
-
this.id = t, this.providerKey = e, this.providerOptions =
|
3632
|
-
Q((l) => l ? l.onComplete() :
|
3637
|
+
class ws {
|
3638
|
+
constructor(t, e, n, r, i) {
|
3639
|
+
this.id = t, this.providerKey = e, this.providerOptions = n, this.component = i, this.provider$ = new P(null), this.entries$ = new P([]), this.removeEntryAction$ = new _(), this.kill$ = new _(), this.isTyping$ = new P(!1), this.data$ = new P({}), this.complete$ = this.provider$.pipe(
|
3640
|
+
Q((l) => l ? l.onComplete() : gt)
|
3633
3641
|
);
|
3634
3642
|
const o = this._getProviderFactory(e);
|
3635
3643
|
if (!o)
|
3636
3644
|
throw new Error(`No provider with key "${e}" was found.`);
|
3637
3645
|
this.data$.next(r);
|
3638
3646
|
const a = o(this.component);
|
3639
|
-
this.provider$.next(a), a.actions().pipe(
|
3647
|
+
this.provider$.next(a), a.actions().pipe(Fe(this.kill$)).subscribe((l) => {
|
3640
3648
|
this.write(l);
|
3641
|
-
}), a.isTyping().pipe(
|
3649
|
+
}), a.isTyping().pipe(Fe(this.kill$)).subscribe((l) => {
|
3642
3650
|
this.isTyping$.next(l);
|
3643
3651
|
});
|
3644
3652
|
}
|
@@ -3675,21 +3683,21 @@ class wn {
|
|
3675
3683
|
Q(() => this.entries$),
|
3676
3684
|
ce(1)
|
3677
3685
|
).subscribe((e) => {
|
3678
|
-
this.removeEntryAction$.next(t), this.entries$.next(e.filter((
|
3686
|
+
this.removeEntryAction$.next(t), this.entries$.next(e.filter((n) => n !== t));
|
3679
3687
|
});
|
3680
3688
|
}
|
3681
3689
|
_getProviderFactory(t) {
|
3682
3690
|
return this.component.platform.registeredProviders.get(t);
|
3683
3691
|
}
|
3684
3692
|
}
|
3685
|
-
class
|
3693
|
+
class mo {
|
3686
3694
|
constructor(t) {
|
3687
|
-
this.component = t, this.currentSession$ = new
|
3688
|
-
const
|
3695
|
+
this.component = t, this.currentSession$ = new P(null), this.sessions = [], this.storage = null, Ot(t, "handover").subscribe((e) => {
|
3696
|
+
const n = this._createNewSession(
|
3689
3697
|
e.detail.providerKey,
|
3690
3698
|
e.detail.providerOptions
|
3691
3699
|
);
|
3692
|
-
this._setSession(
|
3700
|
+
this._setSession(n), e.detail.complete = n.complete$, n.start();
|
3693
3701
|
});
|
3694
3702
|
}
|
3695
3703
|
loadFromStorage() {
|
@@ -3704,8 +3712,8 @@ class go {
|
|
3704
3712
|
if (t.sessions.length)
|
3705
3713
|
e = t.sessions[t.sessions.length - 1];
|
3706
3714
|
else {
|
3707
|
-
const
|
3708
|
-
e = this._createNewSession(
|
3715
|
+
const n = this._getInitialProviderKey(), r = {};
|
3716
|
+
e = this._createNewSession(n, r);
|
3709
3717
|
}
|
3710
3718
|
this._setSession(e), e.start();
|
3711
3719
|
}
|
@@ -3727,7 +3735,7 @@ class go {
|
|
3727
3735
|
);
|
3728
3736
|
return t ? {
|
3729
3737
|
sessions: t.sessions.map(
|
3730
|
-
(e) => new
|
3738
|
+
(e) => new ws(
|
3731
3739
|
e.id,
|
3732
3740
|
e.providerKey,
|
3733
3741
|
e.providerOptions,
|
@@ -3746,12 +3754,12 @@ class go {
|
|
3746
3754
|
}
|
3747
3755
|
_saveSession(t) {
|
3748
3756
|
let e = this._getStoredSessions();
|
3749
|
-
const
|
3750
|
-
|
3757
|
+
const n = e.sessions.findIndex((r) => r.id === t.id);
|
3758
|
+
n > -1 ? e = {
|
3751
3759
|
sessions: [
|
3752
|
-
...e.sessions.slice(0,
|
3760
|
+
...e.sessions.slice(0, n),
|
3753
3761
|
t,
|
3754
|
-
...e.sessions.slice(
|
3762
|
+
...e.sessions.slice(n + 1)
|
3755
3763
|
]
|
3756
3764
|
} : e.sessions.push(t), this.save(e);
|
3757
3765
|
}
|
@@ -3759,19 +3767,19 @@ class go {
|
|
3759
3767
|
if (!this.storage)
|
3760
3768
|
throw new Error("Could not locate StorageService in SessionService.");
|
3761
3769
|
const e = {
|
3762
|
-
sessions: t.sessions.map((
|
3770
|
+
sessions: t.sessions.map((n) => n.toStore())
|
3763
3771
|
};
|
3764
3772
|
this.storage.set("conversation", JSON.stringify(e));
|
3765
3773
|
}
|
3766
3774
|
_createNewSession(t, e = {}) {
|
3767
|
-
const
|
3768
|
-
|
3775
|
+
const n = this._getStoredSessions(), r = new ws(
|
3776
|
+
Ws(),
|
3769
3777
|
t,
|
3770
3778
|
e,
|
3771
3779
|
{},
|
3772
3780
|
this.component
|
3773
3781
|
);
|
3774
|
-
return
|
3782
|
+
return n.sessions.push(r), this.save(n), r;
|
3775
3783
|
}
|
3776
3784
|
_getInitialProviderKey() {
|
3777
3785
|
var t;
|
@@ -3780,14 +3788,14 @@ class go {
|
|
3780
3788
|
return this.component.properties.providers[0];
|
3781
3789
|
}
|
3782
3790
|
}
|
3783
|
-
class
|
3791
|
+
class $o {
|
3784
3792
|
constructor(t, e) {
|
3785
|
-
this.state$ = t, this.component = e, this.entries$ = new
|
3786
|
-
Q((
|
3793
|
+
this.state$ = t, this.component = e, this.entries$ = new P([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new mo(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
3794
|
+
Q((n) => n ? n.provider$.pipe(
|
3787
3795
|
Q((r) => r ? r.isTyping() : le(!1))
|
3788
3796
|
) : le(!1))
|
3789
|
-
), t.subscribe((
|
3790
|
-
switch (
|
3797
|
+
), t.subscribe((n) => {
|
3798
|
+
switch (n) {
|
3791
3799
|
case "init":
|
3792
3800
|
this.initialize();
|
3793
3801
|
break;
|
@@ -3811,16 +3819,16 @@ class mo {
|
|
3811
3819
|
this.session$.pipe(
|
3812
3820
|
Q((t) => {
|
3813
3821
|
if (!t)
|
3814
|
-
return
|
3815
|
-
const e = t.removeEntryAction$.pipe(
|
3816
|
-
|
3817
|
-
),
|
3818
|
-
|
3822
|
+
return gt;
|
3823
|
+
const e = t.removeEntryAction$.pipe(ue(this.entries$)).pipe(
|
3824
|
+
Et(([r, i]) => i.filter((o) => o.id !== r.id))
|
3825
|
+
), n = t.entries().pipe(
|
3826
|
+
Et((r) => {
|
3819
3827
|
const i = this.entries$.value, o = r.filter((a) => i.findIndex((l) => l.id === a.id) === -1);
|
3820
3828
|
return [...i, ...o];
|
3821
3829
|
})
|
3822
3830
|
);
|
3823
|
-
return gr(e,
|
3831
|
+
return gr(e, n);
|
3824
3832
|
})
|
3825
3833
|
).subscribe((t) => {
|
3826
3834
|
this.entries$.next(t);
|
@@ -3831,12 +3839,12 @@ class mo {
|
|
3831
3839
|
(t = this.sessionService) == null || t.startSession();
|
3832
3840
|
}
|
3833
3841
|
}
|
3834
|
-
var
|
3835
|
-
for (var r =
|
3836
|
-
(o =
|
3837
|
-
return
|
3842
|
+
var yo = Object.defineProperty, bo = Object.getOwnPropertyDescriptor, wo = (s, t, e, n) => {
|
3843
|
+
for (var r = n > 1 ? void 0 : n ? bo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3844
|
+
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
3845
|
+
return n && r && yo(t, e, r), r;
|
3838
3846
|
};
|
3839
|
-
class
|
3847
|
+
class Ie extends b {
|
3840
3848
|
connectedCallback() {
|
3841
3849
|
var t;
|
3842
3850
|
super.connectedCallback(), (t = this.entry.didUpdate) == null || t.subscribe(() => {
|
@@ -3853,8 +3861,8 @@ class Me extends b {
|
|
3853
3861
|
_renderTimestamp(t, e) {
|
3854
3862
|
if (!t && !e)
|
3855
3863
|
return f;
|
3856
|
-
let
|
3857
|
-
return t ? e ?
|
3864
|
+
let n = "";
|
3865
|
+
return t ? e ? n = `${t}: ${this._getTimestamp(e)}` : n = t : e && (n = this._getTimestamp(e)), v`<p class="conversation-timestamp">${n}</p>`;
|
3858
3866
|
}
|
3859
3867
|
_renderDeliveryStatus(t) {
|
3860
3868
|
return t === "delivered" ? v`<telia-icon
|
@@ -3872,15 +3880,15 @@ class Me extends b {
|
|
3872
3880
|
render() {
|
3873
3881
|
var t, e;
|
3874
3882
|
switch (this.entry.type) {
|
3875
|
-
case
|
3883
|
+
case U.System:
|
3876
3884
|
return v`
|
3877
3885
|
<div class="conversation-system-message">
|
3878
3886
|
${this.entry.messages.map(
|
3879
|
-
(
|
3887
|
+
(n) => v`
|
3880
3888
|
<div class="message-container">
|
3881
3889
|
<div class="message-content">
|
3882
3890
|
<conversation-group
|
3883
|
-
.group=${
|
3891
|
+
.group=${n}
|
3884
3892
|
@action=${this._dispatchEntryAction}
|
3885
3893
|
></conversation-group>
|
3886
3894
|
</div>
|
@@ -3890,9 +3898,9 @@ class Me extends b {
|
|
3890
3898
|
<span>${this._getTimestamp(this.entry.timestamp)}</span>
|
3891
3899
|
</div>
|
3892
3900
|
`;
|
3893
|
-
case
|
3901
|
+
case U.Agent:
|
3894
3902
|
return v`<div
|
3895
|
-
class=${
|
3903
|
+
class=${ft({
|
3896
3904
|
"conversation-agent-message": !0,
|
3897
3905
|
"has-avatar": !!((t = this.entry.sender) != null && t.avatar)
|
3898
3906
|
})}
|
@@ -3903,10 +3911,10 @@ class Me extends b {
|
|
3903
3911
|
|
3904
3912
|
<div class="entry-content">
|
3905
3913
|
${this.entry.messages.map(
|
3906
|
-
(
|
3914
|
+
(n) => v`
|
3907
3915
|
<div class="message-container">
|
3908
3916
|
<div class="message-content">
|
3909
|
-
<conversation-group .group=${
|
3917
|
+
<conversation-group .group=${n}></conversation-group>
|
3910
3918
|
</div>
|
3911
3919
|
</div>
|
3912
3920
|
`
|
@@ -3919,19 +3927,19 @@ class Me extends b {
|
|
3919
3927
|
)}
|
3920
3928
|
</div>
|
3921
3929
|
</div>`;
|
3922
|
-
case
|
3930
|
+
case U.User:
|
3923
3931
|
return v`<div
|
3924
|
-
class=${
|
3932
|
+
class=${ft({
|
3925
3933
|
"conversation-user-message": !0,
|
3926
3934
|
"has-error": this.entry.status === "failed"
|
3927
3935
|
})}
|
3928
3936
|
>
|
3929
3937
|
<div class="entry-content">
|
3930
3938
|
${this.entry.messages.map(
|
3931
|
-
(
|
3939
|
+
(n) => v`
|
3932
3940
|
<div class="message-container">
|
3933
3941
|
<div class="message-content">
|
3934
|
-
<conversation-group .group=${
|
3942
|
+
<conversation-group .group=${n}></conversation-group>
|
3935
3943
|
</div>
|
3936
3944
|
</div>
|
3937
3945
|
`
|
@@ -3950,7 +3958,7 @@ class Me extends b {
|
|
3950
3958
|
}
|
3951
3959
|
}
|
3952
3960
|
}
|
3953
|
-
|
3961
|
+
Ie.styles = [
|
3954
3962
|
C`
|
3955
3963
|
:host {
|
3956
3964
|
box-sizing: border-box;
|
@@ -4068,13 +4076,13 @@ Me.styles = [
|
|
4068
4076
|
}
|
4069
4077
|
`
|
4070
4078
|
];
|
4071
|
-
|
4079
|
+
wo([
|
4072
4080
|
y({ attribute: !1 })
|
4073
|
-
],
|
4074
|
-
var
|
4075
|
-
for (var r =
|
4076
|
-
(o =
|
4077
|
-
return
|
4081
|
+
], Ie.prototype, "entry", 2);
|
4082
|
+
var _o = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, bn = (s, t, e, n) => {
|
4083
|
+
for (var r = n > 1 ? void 0 : n ? xo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4084
|
+
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
4085
|
+
return n && r && _o(t, e, r), r;
|
4078
4086
|
};
|
4079
4087
|
class Kt extends b {
|
4080
4088
|
constructor() {
|
@@ -4090,9 +4098,9 @@ class Kt extends b {
|
|
4090
4098
|
(t) => v`<div class="conversation-entry" tabindex="-1">
|
4091
4099
|
<conversation-entry
|
4092
4100
|
.entry=${t}
|
4093
|
-
${
|
4101
|
+
${fe({
|
4094
4102
|
keyframeOptions: {},
|
4095
|
-
in:
|
4103
|
+
in: ms,
|
4096
4104
|
stabilizeOut: !0,
|
4097
4105
|
skipInitial: !1
|
4098
4106
|
})}
|
@@ -4101,10 +4109,10 @@ class Kt extends b {
|
|
4101
4109
|
</div>`
|
4102
4110
|
)}
|
4103
4111
|
${this.loading ? v`<ace-typing-state
|
4104
|
-
${
|
4112
|
+
${fe({
|
4105
4113
|
keyframeOptions: {},
|
4106
|
-
in:
|
4107
|
-
out:
|
4114
|
+
in: ms,
|
4115
|
+
out: eo,
|
4108
4116
|
stabilizeOut: !0,
|
4109
4117
|
skipInitial: !1
|
4110
4118
|
})}
|
@@ -4126,10 +4134,10 @@ Kt.styles = [
|
|
4126
4134
|
}
|
4127
4135
|
`
|
4128
4136
|
];
|
4129
|
-
|
4137
|
+
bn([
|
4130
4138
|
y({ attribute: !1 })
|
4131
4139
|
], Kt.prototype, "entries", 2);
|
4132
|
-
|
4140
|
+
bn([
|
4133
4141
|
y({ type: Boolean })
|
4134
4142
|
], Kt.prototype, "loading", 2);
|
4135
4143
|
/**
|
@@ -4137,18 +4145,18 @@ bs([
|
|
4137
4145
|
* Copyright 2021 Google LLC
|
4138
4146
|
* SPDX-License-Identifier: BSD-3-Clause
|
4139
4147
|
*/
|
4140
|
-
const So = (
|
4141
|
-
for (const
|
4142
|
-
if (
|
4143
|
-
return (0,
|
4148
|
+
const So = (s, t, e) => {
|
4149
|
+
for (const n of t)
|
4150
|
+
if (n[0] === s)
|
4151
|
+
return (0, n[1])();
|
4144
4152
|
return e == null ? void 0 : e();
|
4145
4153
|
};
|
4146
|
-
var
|
4147
|
-
for (var r =
|
4148
|
-
(o =
|
4149
|
-
return
|
4154
|
+
var Co = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, Eo = (s, t, e, n) => {
|
4155
|
+
for (var r = n > 1 ? void 0 : n ? Ao(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4156
|
+
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
4157
|
+
return n && r && Co(t, e, r), r;
|
4150
4158
|
};
|
4151
|
-
class
|
4159
|
+
class Ue extends b {
|
4152
4160
|
render() {
|
4153
4161
|
return v`
|
4154
4162
|
<div class="message-group">
|
@@ -4158,10 +4166,10 @@ class Ie extends b {
|
|
4158
4166
|
t,
|
4159
4167
|
[["html", () => v`<message-type-html .message=${e} />`]],
|
4160
4168
|
() => {
|
4161
|
-
const
|
4162
|
-
if (!
|
4169
|
+
const n = customElements.get(t);
|
4170
|
+
if (!n)
|
4163
4171
|
return f;
|
4164
|
-
const r = new
|
4172
|
+
const r = new n();
|
4165
4173
|
return v`${r}`;
|
4166
4174
|
}
|
4167
4175
|
)}
|
@@ -4171,7 +4179,7 @@ class Ie extends b {
|
|
4171
4179
|
`;
|
4172
4180
|
}
|
4173
4181
|
}
|
4174
|
-
|
4182
|
+
Ue.styles = [
|
4175
4183
|
C`
|
4176
4184
|
:host {
|
4177
4185
|
box-sizing: border-box;
|
@@ -4187,10 +4195,10 @@ Ie.styles = [
|
|
4187
4195
|
}
|
4188
4196
|
`
|
4189
4197
|
];
|
4190
|
-
|
4198
|
+
Eo([
|
4191
4199
|
y({ attribute: !1 })
|
4192
|
-
],
|
4193
|
-
class
|
4200
|
+
], Ue.prototype, "group", 2);
|
4201
|
+
class wn extends b {
|
4194
4202
|
render() {
|
4195
4203
|
return v`<div class="container">
|
4196
4204
|
<div class="dot"></div>
|
@@ -4199,7 +4207,7 @@ class ws extends b {
|
|
4199
4207
|
</div>`;
|
4200
4208
|
}
|
4201
4209
|
}
|
4202
|
-
|
4210
|
+
wn.styles = [
|
4203
4211
|
C`
|
4204
4212
|
:host {
|
4205
4213
|
display: block;
|
@@ -4241,7 +4249,7 @@ ws.styles = [
|
|
4241
4249
|
* Copyright 2017 Google LLC
|
4242
4250
|
* SPDX-License-Identifier: BSD-3-Clause
|
4243
4251
|
*/
|
4244
|
-
class
|
4252
|
+
class ve extends ke {
|
4245
4253
|
constructor(t) {
|
4246
4254
|
if (super(t), this.it = f, t.type !== Yt.CHILD)
|
4247
4255
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
@@ -4249,7 +4257,7 @@ class fe extends Oe {
|
|
4249
4257
|
render(t) {
|
4250
4258
|
if (t === f || t == null)
|
4251
4259
|
return this._t = void 0, this.it = t;
|
4252
|
-
if (t ===
|
4260
|
+
if (t === H)
|
4253
4261
|
return t;
|
4254
4262
|
if (typeof t != "string")
|
4255
4263
|
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
@@ -4260,21 +4268,21 @@ class fe extends Oe {
|
|
4260
4268
|
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
4261
4269
|
}
|
4262
4270
|
}
|
4263
|
-
|
4264
|
-
const
|
4265
|
-
var
|
4266
|
-
for (var r =
|
4267
|
-
(o =
|
4268
|
-
return
|
4271
|
+
ve.directiveName = "unsafeHTML", ve.resultType = 1;
|
4272
|
+
const Oo = Zt(ve);
|
4273
|
+
var ko = Object.defineProperty, To = Object.getOwnPropertyDescriptor, Po = (s, t, e, n) => {
|
4274
|
+
for (var r = n > 1 ? void 0 : n ? To(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4275
|
+
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
4276
|
+
return n && r && ko(t, e, r), r;
|
4269
4277
|
};
|
4270
|
-
class
|
4278
|
+
class Re extends b {
|
4271
4279
|
render() {
|
4272
4280
|
return v`<div class="message-type-html">
|
4273
|
-
${
|
4281
|
+
${Oo(this.message.content)}
|
4274
4282
|
</div>`;
|
4275
4283
|
}
|
4276
4284
|
}
|
4277
|
-
|
4285
|
+
Re.styles = [
|
4278
4286
|
C`
|
4279
4287
|
:host {
|
4280
4288
|
box-sizing: border-box;
|
@@ -4292,26 +4300,26 @@ Ue.styles = [
|
|
4292
4300
|
}
|
4293
4301
|
`
|
4294
4302
|
];
|
4295
|
-
|
4303
|
+
Po([
|
4296
4304
|
y({ attribute: !1 })
|
4297
|
-
],
|
4298
|
-
var
|
4299
|
-
for (var r =
|
4300
|
-
(o =
|
4301
|
-
return
|
4305
|
+
], Re.prototype, "message", 2);
|
4306
|
+
var Lo = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, rt = (s, t, e, n) => {
|
4307
|
+
for (var r = n > 1 ? void 0 : n ? Mo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4308
|
+
(o = s[i]) && (r = (n ? o(t, e, r) : o(r)) || r);
|
4309
|
+
return n && r && Lo(t, e, r), r;
|
4302
4310
|
};
|
4303
|
-
const
|
4304
|
-
|
4311
|
+
const Io = (s) => {
|
4312
|
+
s.scrollTo ? s.scrollTo({ top: s.scrollHeight, behavior: "smooth" }) : s.scrollTop = s.scrollHeight;
|
4305
4313
|
};
|
4306
|
-
customElements.get("conversation-entry") || customElements.define("conversation-entry",
|
4314
|
+
customElements.get("conversation-entry") || customElements.define("conversation-entry", Ie);
|
4307
4315
|
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", Kt);
|
4308
|
-
customElements.get("conversation-group") || customElements.define("conversation-group",
|
4309
|
-
customElements.get("ace-typing-state") || customElements.define("ace-typing-state",
|
4310
|
-
customElements.get("message-type-html") || customElements.define("message-type-html",
|
4311
|
-
const
|
4312
|
-
class
|
4316
|
+
customElements.get("conversation-group") || customElements.define("conversation-group", Ue);
|
4317
|
+
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", wn);
|
4318
|
+
customElements.get("message-type-html") || customElements.define("message-type-html", Re);
|
4319
|
+
const _n = $n(b);
|
4320
|
+
class M extends _n {
|
4313
4321
|
constructor() {
|
4314
|
-
super(...arguments), this.message = "", this.disabled = !1, this.conversationContentRef =
|
4322
|
+
super(...arguments), this.message = "", this.disabled = !1, this.chatOverlayActive = !1, this.conversationContentRef = Rt(), this.formRef = Rt(), this.chatScrollHeight = 0, this.toast = new go(this), this.messageMaxLength = 1e3, this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new P("waiting"), this.stateMachine = new $o(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
4315
4323
|
Q((t) => t ? t == null ? void 0 : t.provider$ : le(null))
|
4316
4324
|
);
|
4317
4325
|
}
|
@@ -4323,14 +4331,18 @@ class H extends _s {
|
|
4323
4331
|
this.platform = t || null, this.stateSubscription = or([
|
4324
4332
|
this.stateMachine.entries(),
|
4325
4333
|
this.stateMachine.isTyping()
|
4326
|
-
]).subscribe(([e,
|
4327
|
-
this.entries = e, this.typing =
|
4328
|
-
}), this.userSubmitSubscription =
|
4334
|
+
]).subscribe(([e, n]) => {
|
4335
|
+
this.entries = e, this.typing = n;
|
4336
|
+
}), this.userSubmitSubscription = Ot(
|
4329
4337
|
this,
|
4330
4338
|
"user-submit"
|
4331
|
-
).pipe(
|
4332
|
-
|
4333
|
-
}), this._addHeaderOptions()
|
4339
|
+
).pipe(ue(this.provider$)).subscribe(([e, n]) => {
|
4340
|
+
n && n.onUserSubmit(e.detail);
|
4341
|
+
}), this._addHeaderOptions(), this.provider$.pipe(ue(this.provider$)).subscribe(([e, n]) => {
|
4342
|
+
n && n.showChatOverlay$.pipe().subscribe((r) => {
|
4343
|
+
this.chatOverlayActive = r;
|
4344
|
+
});
|
4345
|
+
});
|
4334
4346
|
}
|
4335
4347
|
disconnectedCallback() {
|
4336
4348
|
var t, e;
|
@@ -4342,7 +4354,7 @@ class H extends _s {
|
|
4342
4354
|
const t = this.conversationContentRef.value;
|
4343
4355
|
t && setTimeout(() => {
|
4344
4356
|
const e = t.scrollHeight;
|
4345
|
-
e > this.chatScrollHeight && (
|
4357
|
+
e > this.chatScrollHeight && (Io(t), this.chatScrollHeight = e);
|
4346
4358
|
}, 1e3);
|
4347
4359
|
}
|
4348
4360
|
disableInput() {
|
@@ -4355,9 +4367,9 @@ class H extends _s {
|
|
4355
4367
|
this.toast.message = t;
|
4356
4368
|
}
|
4357
4369
|
async _onSendMessage(t) {
|
4358
|
-
var
|
4370
|
+
var n;
|
4359
4371
|
if (t.preventDefault(), this.message.length <= 0) {
|
4360
|
-
(
|
4372
|
+
(n = this.formRef.value) == null || n.classList.add("shake"), setTimeout(() => {
|
4361
4373
|
var r;
|
4362
4374
|
(r = this.formRef.value) == null || r.classList.remove("shake");
|
4363
4375
|
}, 500);
|
@@ -4373,13 +4385,13 @@ class H extends _s {
|
|
4373
4385
|
const t = this.application.getComponent("widget-header");
|
4374
4386
|
if (!t)
|
4375
4387
|
return;
|
4376
|
-
const e = this.application.texts,
|
4377
|
-
label: o ? r :
|
4378
|
-
icon: o ?
|
4388
|
+
const e = this.application.texts, n = e.getOrFallback("conversation.mute", "Mute"), r = e.getOrFallback("conversation.unmute", "Unmute"), o = !!this.application.branding().other.disableSound, a = t.addOption({
|
4389
|
+
label: o ? r : n,
|
4390
|
+
icon: o ? es.svg : ts.svg,
|
4379
4391
|
closeOnClick: !1,
|
4380
4392
|
datatestid: "options-mute-button",
|
4381
4393
|
onClick: () => {
|
4382
|
-
!!this.application.branding().other.disableSound ? (this.application.unmute(), a.updateLabel(
|
4394
|
+
!!this.application.branding().other.disableSound ? (this.application.unmute(), a.updateLabel(n), a.updateIcon(es.svg)) : (this.application.mute(), a.updateLabel(r), a.updateIcon(ts.svg));
|
4383
4395
|
}
|
4384
4396
|
});
|
4385
4397
|
}
|
@@ -4388,31 +4400,43 @@ class H extends _s {
|
|
4388
4400
|
}
|
4389
4401
|
handover(t, e) {
|
4390
4402
|
this.enableInput(), this.setToastMessage(null);
|
4391
|
-
const
|
4403
|
+
const n = new CustomEvent("handover", {
|
4392
4404
|
detail: {
|
4393
4405
|
providerKey: t,
|
4394
4406
|
providerOptions: e
|
4395
4407
|
}
|
4396
4408
|
});
|
4397
|
-
return this.dispatchEvent(
|
4409
|
+
return this.dispatchEvent(n), n.detail.complete || gt;
|
4398
4410
|
}
|
4399
4411
|
render() {
|
4400
4412
|
var e;
|
4401
4413
|
const t = this.application.texts;
|
4402
4414
|
return this.conversationState$.value === "waiting" && ((e = this.application) != null && e.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init")), v` <div
|
4403
4415
|
@action=${this._actionHandler}
|
4404
|
-
class=${
|
4416
|
+
class=${ft({
|
4405
4417
|
conversation: !0,
|
4406
4418
|
disabled: this.disabled,
|
4407
4419
|
"conversation--has-toast": this.toast.hasMessage(),
|
4408
|
-
"conversation--input-has-text": this.message.length > 0
|
4420
|
+
"conversation--input-has-text": this.message.length > 0,
|
4421
|
+
"overlay-mode": this.chatOverlayActive
|
4409
4422
|
})}
|
4410
4423
|
>
|
4424
|
+
${this.chatOverlayActive ? v`<div class="overlay-header">
|
4425
|
+
<button
|
4426
|
+
class="overlay-button"
|
4427
|
+
@click=${() => this.chatOverlayActive = !1}
|
4428
|
+
>
|
4429
|
+
<telia-icon svg=${zr.svg}></telia-icon>
|
4430
|
+
</button>
|
4431
|
+
</div>` : f}
|
4411
4432
|
<div
|
4412
|
-
class
|
4433
|
+
class=${ft({
|
4434
|
+
"conversation-content": !0,
|
4435
|
+
"conversation-overlay-mode": this.chatOverlayActive
|
4436
|
+
})}
|
4413
4437
|
part="scroll-container"
|
4414
4438
|
aria-live="polite"
|
4415
|
-
${
|
4439
|
+
${jt(this.conversationContentRef)}
|
4416
4440
|
>
|
4417
4441
|
${this.toast.hasMessage() ? v`<div class="conversation__toast">${this.toast.message}</div>` : f}
|
4418
4442
|
<ace-conversation-feed
|
@@ -4424,7 +4448,7 @@ class H extends _s {
|
|
4424
4448
|
<form
|
4425
4449
|
class="conversation-bottom"
|
4426
4450
|
@submit=${this._onSendMessage}
|
4427
|
-
${
|
4451
|
+
${jt(this.formRef)}
|
4428
4452
|
>
|
4429
4453
|
<label for="chat-message-input" class="visually-hidden">
|
4430
4454
|
Chat message
|
@@ -4450,15 +4474,15 @@ class H extends _s {
|
|
4450
4474
|
title=${t.getOrFallback("conversation.send-alt", "Send")}
|
4451
4475
|
?disabled=${this.disabled}
|
4452
4476
|
>
|
4453
|
-
<telia-icon svg=${
|
4477
|
+
<telia-icon svg=${Wr.svg}></telia-icon>
|
4454
4478
|
</button>
|
4455
4479
|
</div>
|
4456
4480
|
</form>
|
4457
4481
|
</div>`;
|
4458
4482
|
}
|
4459
4483
|
}
|
4460
|
-
|
4461
|
-
|
4484
|
+
M.styles = [
|
4485
|
+
_n.styles || [],
|
4462
4486
|
C`
|
4463
4487
|
:host {
|
4464
4488
|
font-family: var(--font-family);
|
@@ -4511,6 +4535,7 @@ H.styles = [
|
|
4511
4535
|
}
|
4512
4536
|
::-webkit-scrollbar-track {
|
4513
4537
|
-webkit-box-shadow: none !important;
|
4538
|
+
box-shadow: none !important;
|
4514
4539
|
background-color: transparent;
|
4515
4540
|
}
|
4516
4541
|
|
@@ -4642,35 +4667,66 @@ H.styles = [
|
|
4642
4667
|
box-shadow: none !important;
|
4643
4668
|
background-color: transparent;
|
4644
4669
|
}
|
4670
|
+
|
4671
|
+
.overlay-mode {
|
4672
|
+
z-index: 1;
|
4673
|
+
position: absolute;
|
4674
|
+
bottom: 0;
|
4675
|
+
height: 65%;
|
4676
|
+
}
|
4677
|
+
@media screen and (max-width: 800px) {
|
4678
|
+
.overlay-mode {
|
4679
|
+
width: 100%;
|
4680
|
+
}
|
4681
|
+
}
|
4682
|
+
|
4683
|
+
.overlay-header {
|
4684
|
+
display: flex;
|
4685
|
+
flex-direction: row;
|
4686
|
+
justify-content: center;
|
4687
|
+
margin-bottom: var(--inverted-spacing-lg);
|
4688
|
+
}
|
4689
|
+
|
4690
|
+
.overlay-button {
|
4691
|
+
border-top-left-radius: var(--border-radius-sm);
|
4692
|
+
border-top-right-radius: var(--border-radius-sm);
|
4693
|
+
border: none;
|
4694
|
+
background-color: var(--conversation-bg);
|
4695
|
+
padding: var(--spacing-xs) var(--spacing-md);
|
4696
|
+
cursor: pointer;
|
4697
|
+
}
|
4645
4698
|
`
|
4646
4699
|
];
|
4647
|
-
|
4648
|
-
|
4649
|
-
],
|
4650
|
-
|
4651
|
-
|
4652
|
-
],
|
4653
|
-
|
4654
|
-
|
4655
|
-
],
|
4656
|
-
|
4657
|
-
|
4658
|
-
],
|
4659
|
-
|
4660
|
-
|
4661
|
-
],
|
4662
|
-
|
4700
|
+
rt([
|
4701
|
+
O()
|
4702
|
+
], M.prototype, "message", 2);
|
4703
|
+
rt([
|
4704
|
+
O()
|
4705
|
+
], M.prototype, "disabled", 2);
|
4706
|
+
rt([
|
4707
|
+
O()
|
4708
|
+
], M.prototype, "chatOverlayActive", 2);
|
4709
|
+
rt([
|
4710
|
+
O()
|
4711
|
+
], M.prototype, "platform", 2);
|
4712
|
+
rt([
|
4713
|
+
O()
|
4714
|
+
], M.prototype, "entries", 2);
|
4715
|
+
rt([
|
4716
|
+
O()
|
4717
|
+
], M.prototype, "typing", 2);
|
4718
|
+
const Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4663
4719
|
__proto__: null,
|
4664
|
-
Conversation:
|
4665
|
-
default:
|
4720
|
+
Conversation: M,
|
4721
|
+
default: M
|
4666
4722
|
}, Symbol.toStringTag, { value: "Module" }));
|
4667
4723
|
export {
|
4668
4724
|
mr as Agent,
|
4669
|
-
|
4670
|
-
|
4725
|
+
M as Conversation,
|
4726
|
+
Ro as ConversationComponent,
|
4671
4727
|
Dt as ConversationEntry,
|
4672
|
-
|
4673
|
-
|
4674
|
-
|
4728
|
+
U as ConversationMessageType,
|
4729
|
+
xs as ConversationPlatform,
|
4730
|
+
jo as ConversationProvider,
|
4675
4731
|
$r as User
|
4676
4732
|
};
|