@telia-ace/widget-conversation-flamingo 1.1.70-rc.25 → 1.1.70-rc.26
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +63 -54
- package/index.mjs +356 -335
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -9,7 +9,7 @@ var $t = (s, e, t) => {
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
10
10
|
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
11
11
|
};
|
12
|
-
var
|
12
|
+
var De = (s, e, t) => (Ai(s, e, "access private method"), t);
|
13
13
|
const Rl = async (s) => {
|
14
14
|
s.registerComponent("conversation", Promise.resolve().then(() => Ol));
|
15
15
|
};
|
@@ -45,7 +45,7 @@ var Lt = function(s, e) {
|
|
45
45
|
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
46
46
|
}, Lt(s, e);
|
47
47
|
};
|
48
|
-
function
|
48
|
+
function be(s, e) {
|
49
49
|
if (typeof e != "function" && e !== null)
|
50
50
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
51
51
|
Lt(s, e);
|
@@ -178,7 +178,7 @@ function Y(s, e) {
|
|
178
178
|
}
|
179
179
|
return r;
|
180
180
|
}
|
181
|
-
function
|
181
|
+
function ne(s, e, t) {
|
182
182
|
if (t || arguments.length === 2)
|
183
183
|
for (var n = 0, i = e.length, r; n < i; n++)
|
184
184
|
(r || !(n in e)) && (r || (r = Array.prototype.slice.call(e, 0, n)), r[n] = e[n]);
|
@@ -265,7 +265,7 @@ function Ot(s, e) {
|
|
265
265
|
0 <= t && s.splice(t, 1);
|
266
266
|
}
|
267
267
|
}
|
268
|
-
var
|
268
|
+
var at = function() {
|
269
269
|
function s(e) {
|
270
270
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
271
271
|
}
|
@@ -309,7 +309,7 @@ var ot = function() {
|
|
309
309
|
try {
|
310
310
|
kn(b);
|
311
311
|
} catch (f) {
|
312
|
-
r = r ?? [], f instanceof xt ? r =
|
312
|
+
r = r ?? [], f instanceof xt ? r = ne(ne([], Y(r)), Y(f.errors)) : r.push(f);
|
313
313
|
}
|
314
314
|
}
|
315
315
|
} catch (f) {
|
@@ -355,9 +355,9 @@ var ot = function() {
|
|
355
355
|
var e = new s();
|
356
356
|
return e.closed = !0, e;
|
357
357
|
}(), s;
|
358
|
-
}(), ms =
|
358
|
+
}(), ms = at.EMPTY;
|
359
359
|
function vs(s) {
|
360
|
-
return s instanceof
|
360
|
+
return s instanceof at || s && "closed" in s && $(s.remove) && $(s.add) && $(s.unsubscribe);
|
361
361
|
}
|
362
362
|
function kn(s) {
|
363
363
|
$(s) ? s() : s.unsubscribe();
|
@@ -373,7 +373,7 @@ var bs = {
|
|
373
373
|
for (var t = [], n = 2; n < arguments.length; n++)
|
374
374
|
t[n - 2] = arguments[n];
|
375
375
|
var i = Pt.delegate;
|
376
|
-
return i != null && i.setTimeout ? i.setTimeout.apply(i,
|
376
|
+
return i != null && i.setTimeout ? i.setTimeout.apply(i, ne([s, e], Y(t))) : setTimeout.apply(void 0, ne([s, e], Y(t)));
|
377
377
|
},
|
378
378
|
clearTimeout: function(s) {
|
379
379
|
var e = Pt.delegate;
|
@@ -386,13 +386,13 @@ function ys(s) {
|
|
386
386
|
throw s;
|
387
387
|
});
|
388
388
|
}
|
389
|
-
function
|
389
|
+
function Ye() {
|
390
390
|
}
|
391
|
-
function
|
391
|
+
function Ze(s) {
|
392
392
|
s();
|
393
393
|
}
|
394
394
|
var Zt = function(s) {
|
395
|
-
|
395
|
+
be(e, s);
|
396
396
|
function e(t) {
|
397
397
|
var n = s.call(this) || this;
|
398
398
|
return n.isStopped = !1, t ? (n.destination = t, vs(t) && t.add(n)) : n.destination = Ii, n;
|
@@ -422,7 +422,7 @@ var Zt = function(s) {
|
|
422
422
|
this.unsubscribe();
|
423
423
|
}
|
424
424
|
}, e;
|
425
|
-
}(
|
425
|
+
}(at), Oi = Function.prototype.bind;
|
426
426
|
function wt(s, e) {
|
427
427
|
return Oi.call(s, e);
|
428
428
|
}
|
@@ -436,7 +436,7 @@ var Pi = function() {
|
|
436
436
|
try {
|
437
437
|
t.next(e);
|
438
438
|
} catch (n) {
|
439
|
-
|
439
|
+
He(n);
|
440
440
|
}
|
441
441
|
}, s.prototype.error = function(e) {
|
442
442
|
var t = this.partialObserver;
|
@@ -444,21 +444,21 @@ var Pi = function() {
|
|
444
444
|
try {
|
445
445
|
t.error(e);
|
446
446
|
} catch (n) {
|
447
|
-
|
447
|
+
He(n);
|
448
448
|
}
|
449
449
|
else
|
450
|
-
|
450
|
+
He(e);
|
451
451
|
}, s.prototype.complete = function() {
|
452
452
|
var e = this.partialObserver;
|
453
453
|
if (e.complete)
|
454
454
|
try {
|
455
455
|
e.complete();
|
456
456
|
} catch (t) {
|
457
|
-
|
457
|
+
He(t);
|
458
458
|
}
|
459
459
|
}, s;
|
460
460
|
}(), Rt = function(s) {
|
461
|
-
|
461
|
+
be(e, s);
|
462
462
|
function e(t, n, i) {
|
463
463
|
var r = s.call(this) || this, o;
|
464
464
|
if ($(t) || !t)
|
@@ -481,7 +481,7 @@ var Pi = function() {
|
|
481
481
|
}
|
482
482
|
return e;
|
483
483
|
}(Zt);
|
484
|
-
function
|
484
|
+
function He(s) {
|
485
485
|
ys(s);
|
486
486
|
}
|
487
487
|
function Ri(s) {
|
@@ -489,9 +489,9 @@ function Ri(s) {
|
|
489
489
|
}
|
490
490
|
var Ii = {
|
491
491
|
closed: !0,
|
492
|
-
next:
|
492
|
+
next: Ye,
|
493
493
|
error: Ri,
|
494
|
-
complete:
|
494
|
+
complete: Ye
|
495
495
|
}, Wt = function() {
|
496
496
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
497
497
|
}();
|
@@ -505,7 +505,7 @@ function Mi(s) {
|
|
505
505
|
}, t);
|
506
506
|
};
|
507
507
|
}
|
508
|
-
var
|
508
|
+
var A = function() {
|
509
509
|
function s(e) {
|
510
510
|
e && (this._subscribe = e);
|
511
511
|
}
|
@@ -514,7 +514,7 @@ var C = function() {
|
|
514
514
|
return t.source = this, t.operator = e, t;
|
515
515
|
}, s.prototype.subscribe = function(e, t, n) {
|
516
516
|
var i = this, r = Ui(e) ? e : new Rt(e, t, n);
|
517
|
-
return
|
517
|
+
return Ze(function() {
|
518
518
|
var o = i, a = o.operator, l = o.source;
|
519
519
|
r.add(a ? a.call(r, l) : l ? i._subscribe(r) : i._trySubscribe(r));
|
520
520
|
}), r;
|
@@ -595,7 +595,7 @@ function P(s, e, t, n, i) {
|
|
595
595
|
return new Di(s, e, t, n, i);
|
596
596
|
}
|
597
597
|
var Di = function(s) {
|
598
|
-
|
598
|
+
be(e, s);
|
599
599
|
function e(t, n, i, r, o, a) {
|
600
600
|
var l = s.call(this, t) || this;
|
601
601
|
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = n ? function(c) {
|
@@ -634,7 +634,7 @@ var Di = function(s) {
|
|
634
634
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
635
635
|
};
|
636
636
|
}), _ = function(s) {
|
637
|
-
|
637
|
+
be(e, s);
|
638
638
|
function e() {
|
639
639
|
var t = s.call(this) || this;
|
640
640
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
@@ -647,7 +647,7 @@ var Di = function(s) {
|
|
647
647
|
throw new Hi();
|
648
648
|
}, e.prototype.next = function(t) {
|
649
649
|
var n = this;
|
650
|
-
|
650
|
+
Ze(function() {
|
651
651
|
var i, r;
|
652
652
|
if (n._throwIfClosed(), !n.isStopped) {
|
653
653
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
@@ -670,7 +670,7 @@ var Di = function(s) {
|
|
670
670
|
});
|
671
671
|
}, e.prototype.error = function(t) {
|
672
672
|
var n = this;
|
673
|
-
|
673
|
+
Ze(function() {
|
674
674
|
if (n._throwIfClosed(), !n.isStopped) {
|
675
675
|
n.hasError = n.isStopped = !0, n.thrownError = t;
|
676
676
|
for (var i = n.observers; i.length; )
|
@@ -679,7 +679,7 @@ var Di = function(s) {
|
|
679
679
|
});
|
680
680
|
}, e.prototype.complete = function() {
|
681
681
|
var t = this;
|
682
|
-
|
682
|
+
Ze(function() {
|
683
683
|
if (t._throwIfClosed(), !t.isStopped) {
|
684
684
|
t.isStopped = !0;
|
685
685
|
for (var n = t.observers; n.length; )
|
@@ -701,20 +701,20 @@ var Di = function(s) {
|
|
701
701
|
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
702
702
|
}, e.prototype._innerSubscribe = function(t) {
|
703
703
|
var n = this, i = this, r = i.hasError, o = i.isStopped, a = i.observers;
|
704
|
-
return r || o ? ms : (this.currentObservers = null, a.push(t), new
|
704
|
+
return r || o ? ms : (this.currentObservers = null, a.push(t), new at(function() {
|
705
705
|
n.currentObservers = null, Ot(a, t);
|
706
706
|
}));
|
707
707
|
}, e.prototype._checkFinalizedStatuses = function(t) {
|
708
708
|
var n = this, i = n.hasError, r = n.thrownError, o = n.isStopped;
|
709
709
|
i ? t.error(r) : o && t.complete();
|
710
710
|
}, e.prototype.asObservable = function() {
|
711
|
-
var t = new
|
711
|
+
var t = new A();
|
712
712
|
return t.source = this, t;
|
713
713
|
}, e.create = function(t, n) {
|
714
714
|
return new Sn(t, n);
|
715
715
|
}, e;
|
716
|
-
}(
|
717
|
-
|
716
|
+
}(A), Sn = function(s) {
|
717
|
+
be(e, s);
|
718
718
|
function e(t, n) {
|
719
719
|
var i = s.call(this) || this;
|
720
720
|
return i.destination = t, i.source = n, i;
|
@@ -733,7 +733,7 @@ var Di = function(s) {
|
|
733
733
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && i !== void 0 ? i : ms;
|
734
734
|
}, e;
|
735
735
|
}(_), M = function(s) {
|
736
|
-
|
736
|
+
be(e, s);
|
737
737
|
function e(t) {
|
738
738
|
var n = s.call(this) || this;
|
739
739
|
return n._value = t, n;
|
@@ -755,7 +755,7 @@ var Di = function(s) {
|
|
755
755
|
}, e.prototype.next = function(t) {
|
756
756
|
s.prototype.next.call(this, this._value = t);
|
757
757
|
}, e;
|
758
|
-
}(_), Pe = new
|
758
|
+
}(_), Pe = new A(function(s) {
|
759
759
|
return s.complete();
|
760
760
|
});
|
761
761
|
function Bi(s) {
|
@@ -830,7 +830,7 @@ function Es(s) {
|
|
830
830
|
return $(s == null ? void 0 : s.getReader);
|
831
831
|
}
|
832
832
|
function D(s) {
|
833
|
-
if (s instanceof
|
833
|
+
if (s instanceof A)
|
834
834
|
return s;
|
835
835
|
if (s != null) {
|
836
836
|
if (ws(s))
|
@@ -849,7 +849,7 @@ function D(s) {
|
|
849
849
|
throw _s(s);
|
850
850
|
}
|
851
851
|
function qi(s) {
|
852
|
-
return new
|
852
|
+
return new A(function(e) {
|
853
853
|
var t = s[Wt]();
|
854
854
|
if ($(t.subscribe))
|
855
855
|
return t.subscribe(e);
|
@@ -857,14 +857,14 @@ function qi(s) {
|
|
857
857
|
});
|
858
858
|
}
|
859
859
|
function Zi(s) {
|
860
|
-
return new
|
860
|
+
return new A(function(e) {
|
861
861
|
for (var t = 0; t < s.length && !e.closed; t++)
|
862
862
|
e.next(s[t]);
|
863
863
|
e.complete();
|
864
864
|
});
|
865
865
|
}
|
866
866
|
function Wi(s) {
|
867
|
-
return new
|
867
|
+
return new A(function(e) {
|
868
868
|
s.then(function(t) {
|
869
869
|
e.closed || (e.next(t), e.complete());
|
870
870
|
}, function(t) {
|
@@ -873,7 +873,7 @@ function Wi(s) {
|
|
873
873
|
});
|
874
874
|
}
|
875
875
|
function Yi(s) {
|
876
|
-
return new
|
876
|
+
return new A(function(e) {
|
877
877
|
var t, n;
|
878
878
|
try {
|
879
879
|
for (var i = ge(s), r = i.next(); !r.done; r = i.next()) {
|
@@ -895,7 +895,7 @@ function Yi(s) {
|
|
895
895
|
});
|
896
896
|
}
|
897
897
|
function Ts(s) {
|
898
|
-
return new
|
898
|
+
return new A(function(e) {
|
899
899
|
Ki(s, e).catch(function(t) {
|
900
900
|
return e.error(t);
|
901
901
|
});
|
@@ -982,16 +982,16 @@ function Gi(s, e) {
|
|
982
982
|
function Xi(s, e) {
|
983
983
|
return D(s).pipe(Os(e), Ls(e));
|
984
984
|
}
|
985
|
-
function
|
986
|
-
return new
|
985
|
+
function Vi(s, e) {
|
986
|
+
return new A(function(t) {
|
987
987
|
var n = 0;
|
988
988
|
return e.schedule(function() {
|
989
989
|
n === s.length ? t.complete() : (t.next(s[n++]), t.closed || this.schedule());
|
990
990
|
});
|
991
991
|
});
|
992
992
|
}
|
993
|
-
function
|
994
|
-
return new
|
993
|
+
function Ji(s, e) {
|
994
|
+
return new A(function(t) {
|
995
995
|
var n;
|
996
996
|
return F(t, e, function() {
|
997
997
|
n = s[Ss](), F(t, e, function() {
|
@@ -1012,7 +1012,7 @@ function Vi(s, e) {
|
|
1012
1012
|
function Ps(s, e) {
|
1013
1013
|
if (!s)
|
1014
1014
|
throw new Error("Iterable cannot be null");
|
1015
|
-
return new
|
1015
|
+
return new A(function(t) {
|
1016
1016
|
F(t, e, function() {
|
1017
1017
|
var n = s[Symbol.asyncIterator]();
|
1018
1018
|
F(t, e, function() {
|
@@ -1031,28 +1031,28 @@ function tr(s, e) {
|
|
1031
1031
|
if (ws(s))
|
1032
1032
|
return Gi(s, e);
|
1033
1033
|
if (Kt(s))
|
1034
|
-
return
|
1034
|
+
return Vi(s, e);
|
1035
1035
|
if (xs(s))
|
1036
1036
|
return Xi(s, e);
|
1037
1037
|
if (ks(s))
|
1038
1038
|
return Ps(s, e);
|
1039
1039
|
if (Cs(s))
|
1040
|
-
return
|
1040
|
+
return Ji(s, e);
|
1041
1041
|
if (Es(s))
|
1042
1042
|
return er(s, e);
|
1043
1043
|
}
|
1044
1044
|
throw _s(s);
|
1045
1045
|
}
|
1046
|
-
function
|
1046
|
+
function lt(s, e) {
|
1047
1047
|
return e ? tr(s, e) : D(s);
|
1048
1048
|
}
|
1049
1049
|
function It() {
|
1050
1050
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1051
1051
|
s[e] = arguments[e];
|
1052
1052
|
var t = Qt(s);
|
1053
|
-
return
|
1053
|
+
return lt(s, t);
|
1054
1054
|
}
|
1055
|
-
function
|
1055
|
+
function Qe(s, e) {
|
1056
1056
|
return K(function(t, n) {
|
1057
1057
|
var i = 0;
|
1058
1058
|
t.subscribe(P(n, function(r) {
|
@@ -1062,10 +1062,10 @@ function Ye(s, e) {
|
|
1062
1062
|
}
|
1063
1063
|
var nr = Array.isArray;
|
1064
1064
|
function sr(s, e) {
|
1065
|
-
return nr(e) ? s.apply(void 0,
|
1065
|
+
return nr(e) ? s.apply(void 0, ne([], Y(e))) : s(e);
|
1066
1066
|
}
|
1067
1067
|
function Rs(s) {
|
1068
|
-
return
|
1068
|
+
return Qe(function(e) {
|
1069
1069
|
return sr(s, e);
|
1070
1070
|
});
|
1071
1071
|
}
|
@@ -1100,8 +1100,8 @@ function ur() {
|
|
1100
1100
|
s[e] = arguments[e];
|
1101
1101
|
var t = Qt(s), n = $s(s), i = lr(s), r = i.args, o = i.keys;
|
1102
1102
|
if (r.length === 0)
|
1103
|
-
return
|
1104
|
-
var a = new
|
1103
|
+
return lt([], t);
|
1104
|
+
var a = new A(pr(r, t, o ? function(l) {
|
1105
1105
|
return hr(o, l);
|
1106
1106
|
} : Oe));
|
1107
1107
|
return n ? a.pipe(Rs(n)) : a;
|
@@ -1111,7 +1111,7 @@ function pr(s, e, t) {
|
|
1111
1111
|
Cn(e, function() {
|
1112
1112
|
for (var i = s.length, r = new Array(i), o = i, a = i, l = function(h) {
|
1113
1113
|
Cn(e, function() {
|
1114
|
-
var u =
|
1114
|
+
var u = lt(s[h], e), p = !1;
|
1115
1115
|
u.subscribe(P(n, function(d) {
|
1116
1116
|
r[h] = d, p || (p = !0, a--), a || n.next(t(r.slice()));
|
1117
1117
|
}, function() {
|
@@ -1143,15 +1143,15 @@ function dr(s, e, t, n, i, r, o, a) {
|
|
1143
1143
|
try {
|
1144
1144
|
c--;
|
1145
1145
|
for (var H = function() {
|
1146
|
-
var
|
1146
|
+
var V = l.shift();
|
1147
1147
|
o ? F(e, o, function() {
|
1148
|
-
return b(
|
1149
|
-
}) : b(
|
1148
|
+
return b(V);
|
1149
|
+
}) : b(V);
|
1150
1150
|
}; l.length && c < n; )
|
1151
1151
|
H();
|
1152
1152
|
p();
|
1153
|
-
} catch (
|
1154
|
-
e.error(
|
1153
|
+
} catch (V) {
|
1154
|
+
e.error(V);
|
1155
1155
|
}
|
1156
1156
|
}));
|
1157
1157
|
};
|
@@ -1163,7 +1163,7 @@ function dr(s, e, t, n, i, r, o, a) {
|
|
1163
1163
|
}
|
1164
1164
|
function Gt(s, e, t) {
|
1165
1165
|
return t === void 0 && (t = 1 / 0), $(e) ? Gt(function(n, i) {
|
1166
|
-
return
|
1166
|
+
return Qe(function(r, o) {
|
1167
1167
|
return e(n, r, i, o);
|
1168
1168
|
})(D(s(n, i)));
|
1169
1169
|
}, t) : (typeof e == "number" && (t = e), K(function(n, i) {
|
@@ -1174,9 +1174,9 @@ function fr(s) {
|
|
1174
1174
|
return s === void 0 && (s = 1 / 0), Gt(Oe, s);
|
1175
1175
|
}
|
1176
1176
|
var gr = ["addListener", "removeListener"], mr = ["addEventListener", "removeEventListener"], vr = ["on", "off"];
|
1177
|
-
function
|
1177
|
+
function Ke(s, e, t, n) {
|
1178
1178
|
if ($(t) && (n = t, t = void 0), n)
|
1179
|
-
return
|
1179
|
+
return Ke(s, e, t).pipe(Rs(n));
|
1180
1180
|
var i = Y($r(s) ? mr.map(function(a) {
|
1181
1181
|
return function(l) {
|
1182
1182
|
return s[a](e, l, t);
|
@@ -1184,11 +1184,11 @@ function Qe(s, e, t, n) {
|
|
1184
1184
|
}) : br(s) ? gr.map(An(s, e)) : yr(s) ? vr.map(An(s, e)) : [], 2), r = i[0], o = i[1];
|
1185
1185
|
if (!r && Kt(s))
|
1186
1186
|
return Gt(function(a) {
|
1187
|
-
return
|
1187
|
+
return Ke(a, e, t);
|
1188
1188
|
})(D(s));
|
1189
1189
|
if (!r)
|
1190
1190
|
throw new TypeError("Invalid event target");
|
1191
|
-
return new
|
1191
|
+
return new A(function(a) {
|
1192
1192
|
var l = function() {
|
1193
1193
|
for (var c = [], h = 0; h < arguments.length; h++)
|
1194
1194
|
c[h] = arguments[h];
|
@@ -1219,7 +1219,7 @@ function xr() {
|
|
1219
1219
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1220
1220
|
s[e] = arguments[e];
|
1221
1221
|
var t = Qt(s), n = Ni(s, 1 / 0), i = s;
|
1222
|
-
return i.length ? i.length === 1 ? D(i[0]) : fr(n)(
|
1222
|
+
return i.length ? i.length === 1 ? D(i[0]) : fr(n)(lt(i, t)) : Pe;
|
1223
1223
|
}
|
1224
1224
|
function Mt(s) {
|
1225
1225
|
return s <= 0 ? function() {
|
@@ -1253,7 +1253,7 @@ function zt(s) {
|
|
1253
1253
|
return K(function(e, t) {
|
1254
1254
|
D(s).subscribe(P(t, function() {
|
1255
1255
|
return t.complete();
|
1256
|
-
},
|
1256
|
+
}, Ye)), !t.closed && e.subscribe(t);
|
1257
1257
|
});
|
1258
1258
|
}
|
1259
1259
|
function Ut() {
|
@@ -1266,20 +1266,20 @@ function Ut() {
|
|
1266
1266
|
}), l = !1, c = function(u) {
|
1267
1267
|
D(s[u]).subscribe(P(i, function(p) {
|
1268
1268
|
o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(Oe)) && (a = null));
|
1269
|
-
},
|
1269
|
+
}, Ye));
|
1270
1270
|
}, h = 0; h < r; h++)
|
1271
1271
|
c(h);
|
1272
1272
|
n.subscribe(P(i, function(u) {
|
1273
1273
|
if (l) {
|
1274
|
-
var p =
|
1275
|
-
i.next(t ? t.apply(void 0,
|
1274
|
+
var p = ne([u], Y(o));
|
1275
|
+
i.next(t ? t.apply(void 0, ne([], Y(p))) : p);
|
1276
1276
|
}
|
1277
1277
|
}));
|
1278
1278
|
});
|
1279
1279
|
}
|
1280
1280
|
var Z = /* @__PURE__ */ ((s) => (s.User = "user", s.Agent = "agent", s.System = "system", s))(Z || {});
|
1281
1281
|
const Is = () => crypto.randomUUID();
|
1282
|
-
class
|
1282
|
+
class ct {
|
1283
1283
|
constructor(e, t, n) {
|
1284
1284
|
this.type = e, this.sender = t, this.messages = n, this.status = "delivered", this.didUpdate = new _(), this.actions$ = new _(), this.remove$ = new _(), this.timestamp = Date.now(), this.id = Is();
|
1285
1285
|
}
|
@@ -1302,7 +1302,7 @@ class wr {
|
|
1302
1302
|
this.name = e, this.print$ = new _();
|
1303
1303
|
}
|
1304
1304
|
print(e, t = "html") {
|
1305
|
-
const n = new
|
1305
|
+
const n = new ct(
|
1306
1306
|
Z.Agent,
|
1307
1307
|
{ name: this.name },
|
1308
1308
|
[
|
@@ -1322,7 +1322,7 @@ class kr {
|
|
1322
1322
|
this.name = e, this.print$ = new _();
|
1323
1323
|
}
|
1324
1324
|
print(e) {
|
1325
|
-
const t = new
|
1325
|
+
const t = new ct(
|
1326
1326
|
Z.User,
|
1327
1327
|
{ name: this.name },
|
1328
1328
|
[
|
@@ -1342,7 +1342,7 @@ class _r {
|
|
1342
1342
|
this.print$ = new _(), this.name = "system";
|
1343
1343
|
}
|
1344
1344
|
print(e) {
|
1345
|
-
const t = new
|
1345
|
+
const t = new ct(
|
1346
1346
|
Z.System,
|
1347
1347
|
{ name: this.name },
|
1348
1348
|
[
|
@@ -1374,7 +1374,7 @@ class Il {
|
|
1374
1374
|
this.print(Z.User, e.text);
|
1375
1375
|
}
|
1376
1376
|
print(e, t) {
|
1377
|
-
const n = new
|
1377
|
+
const n = new ct(
|
1378
1378
|
e,
|
1379
1379
|
{
|
1380
1380
|
name: ""
|
@@ -1439,10 +1439,10 @@ class Il {
|
|
1439
1439
|
* Copyright 2019 Google LLC
|
1440
1440
|
* SPDX-License-Identifier: BSD-3-Clause
|
1441
1441
|
*/
|
1442
|
-
const
|
1442
|
+
const We = globalThis, Xt = We.ShadowRoot && (We.ShadyCSS === void 0 || We.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Vt = Symbol(), En = /* @__PURE__ */ new WeakMap();
|
1443
1443
|
let Ms = class {
|
1444
1444
|
constructor(e, t, n) {
|
1445
|
-
if (this._$cssResult$ = !0, n !==
|
1445
|
+
if (this._$cssResult$ = !0, n !== Vt)
|
1446
1446
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
1447
1447
|
this.cssText = e, this.t = t;
|
1448
1448
|
}
|
@@ -1459,7 +1459,7 @@ let Ms = class {
|
|
1459
1459
|
return this.cssText;
|
1460
1460
|
}
|
1461
1461
|
};
|
1462
|
-
const Sr = (s) => new Ms(typeof s == "string" ? s : s + "", void 0,
|
1462
|
+
const Sr = (s) => new Ms(typeof s == "string" ? s : s + "", void 0, Vt), E = (s, ...e) => {
|
1463
1463
|
const t = s.length === 1 ? s[0] : e.reduce((n, i, r) => n + ((o) => {
|
1464
1464
|
if (o._$cssResult$ === !0)
|
1465
1465
|
return o.cssText;
|
@@ -1467,13 +1467,13 @@ const Sr = (s) => new Ms(typeof s == "string" ? s : s + "", void 0, Jt), A = (s,
|
|
1467
1467
|
return o;
|
1468
1468
|
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.");
|
1469
1469
|
})(i) + s[r + 1], s[0]);
|
1470
|
-
return new Ms(t, s,
|
1470
|
+
return new Ms(t, s, Vt);
|
1471
1471
|
}, Cr = (s, e) => {
|
1472
1472
|
if (Xt)
|
1473
1473
|
s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
1474
1474
|
else
|
1475
1475
|
for (const t of e) {
|
1476
|
-
const n = document.createElement("style"), i =
|
1476
|
+
const n = document.createElement("style"), i = We.litNonce;
|
1477
1477
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = t.cssText, s.appendChild(n);
|
1478
1478
|
}
|
1479
1479
|
}, Tn = Xt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
|
@@ -1487,7 +1487,7 @@ const Sr = (s) => new Ms(typeof s == "string" ? s : s + "", void 0, Jt), A = (s,
|
|
1487
1487
|
* Copyright 2017 Google LLC
|
1488
1488
|
* SPDX-License-Identifier: BSD-3-Clause
|
1489
1489
|
*/
|
1490
|
-
const { is: Ar, defineProperty: Er, getOwnPropertyDescriptor: Tr, getOwnPropertyNames: Lr, getOwnPropertySymbols: Or, getPrototypeOf: Pr } = Object, W = globalThis, Ln = W.trustedTypes, Rr = Ln ? Ln.emptyScript : "", kt = W.reactiveElementPolyfillSupport,
|
1490
|
+
const { is: Ar, defineProperty: Er, getOwnPropertyDescriptor: Tr, getOwnPropertyNames: Lr, getOwnPropertySymbols: Or, getPrototypeOf: Pr } = Object, W = globalThis, Ln = W.trustedTypes, Rr = Ln ? Ln.emptyScript : "", kt = W.reactiveElementPolyfillSupport, xe = (s, e) => s, Ge = { toAttribute(s, e) {
|
1491
1491
|
switch (e) {
|
1492
1492
|
case Boolean:
|
1493
1493
|
s = s ? Rr : null;
|
@@ -1515,7 +1515,7 @@ const { is: Ar, defineProperty: Er, getOwnPropertyDescriptor: Tr, getOwnProperty
|
|
1515
1515
|
}
|
1516
1516
|
}
|
1517
1517
|
return t;
|
1518
|
-
} },
|
1518
|
+
} }, Jt = (s, e) => !Ar(s, e), On = { attribute: !0, type: String, converter: Ge, reflect: !1, hasChanged: Jt };
|
1519
1519
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), W.litPropertyMetadata ?? (W.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1520
1520
|
let ae = class extends HTMLElement {
|
1521
1521
|
static addInitializer(e) {
|
@@ -1547,15 +1547,15 @@ let ae = class extends HTMLElement {
|
|
1547
1547
|
return this.elementProperties.get(e) ?? On;
|
1548
1548
|
}
|
1549
1549
|
static _$Ei() {
|
1550
|
-
if (this.hasOwnProperty(
|
1550
|
+
if (this.hasOwnProperty(xe("elementProperties")))
|
1551
1551
|
return;
|
1552
1552
|
const e = Pr(this);
|
1553
1553
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
1554
1554
|
}
|
1555
1555
|
static finalize() {
|
1556
|
-
if (this.hasOwnProperty(
|
1556
|
+
if (this.hasOwnProperty(xe("finalized")))
|
1557
1557
|
return;
|
1558
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
1558
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(xe("properties"))) {
|
1559
1559
|
const t = this.properties, n = [...Lr(t), ...Or(t)];
|
1560
1560
|
for (const i of n)
|
1561
1561
|
this.createProperty(i, t[i]);
|
@@ -1636,7 +1636,7 @@ let ae = class extends HTMLElement {
|
|
1636
1636
|
var r;
|
1637
1637
|
const n = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, n);
|
1638
1638
|
if (i !== void 0 && n.reflect === !0) {
|
1639
|
-
const o = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter :
|
1639
|
+
const o = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : Ge).toAttribute(t, n.type);
|
1640
1640
|
this._$Em = e, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
1641
1641
|
}
|
1642
1642
|
}
|
@@ -1644,13 +1644,13 @@ let ae = class extends HTMLElement {
|
|
1644
1644
|
var r;
|
1645
1645
|
const n = this.constructor, i = n._$Eh.get(e);
|
1646
1646
|
if (i !== void 0 && this._$Em !== i) {
|
1647
|
-
const o = n.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter :
|
1647
|
+
const o = n.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : Ge;
|
1648
1648
|
this._$Em = i, this[i] = a.fromAttribute(t, o.type), this._$Em = null;
|
1649
1649
|
}
|
1650
1650
|
}
|
1651
1651
|
requestUpdate(e, t, n) {
|
1652
1652
|
if (e !== void 0) {
|
1653
|
-
if (n ?? (n = this.constructor.getPropertyOptions(e)), !(n.hasChanged ??
|
1653
|
+
if (n ?? (n = this.constructor.getPropertyOptions(e)), !(n.hasChanged ?? Jt)(this[e], t))
|
1654
1654
|
return;
|
1655
1655
|
this.P(e, t, n);
|
1656
1656
|
}
|
@@ -1728,15 +1728,15 @@ let ae = class extends HTMLElement {
|
|
1728
1728
|
firstUpdated(e) {
|
1729
1729
|
}
|
1730
1730
|
};
|
1731
|
-
ae.elementStyles = [], ae.shadowRootOptions = { mode: "open" }, ae[
|
1731
|
+
ae.elementStyles = [], ae.shadowRootOptions = { mode: "open" }, ae[xe("elementProperties")] = /* @__PURE__ */ new Map(), ae[xe("finalized")] = /* @__PURE__ */ new Map(), kt == null || kt({ ReactiveElement: ae }), (W.reactiveElementVersions ?? (W.reactiveElementVersions = [])).push("2.0.4");
|
1732
1732
|
/**
|
1733
1733
|
* @license
|
1734
1734
|
* Copyright 2017 Google LLC
|
1735
1735
|
* SPDX-License-Identifier: BSD-3-Clause
|
1736
1736
|
*/
|
1737
|
-
const
|
1738
|
-
\f\r]`,
|
1739
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mn = /'/g, zn = /"/g, Ds = /^(?:script|style|textarea|title)$/i, zr = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), m = zr(1), Q = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), Un = /* @__PURE__ */ new WeakMap(),
|
1737
|
+
const we = globalThis, Xe = we.trustedTypes, Pn = Xe ? Xe.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, zs = "$lit$", q = `lit$${(Math.random() + "").slice(9)}$`, Us = "?" + q, Ir = `<${Us}>`, se = document, Ce = () => se.createComment(""), Ae = (s) => s === null || typeof s != "object" && typeof s != "function", js = Array.isArray, Mr = (s) => js(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", _t = `[
|
1738
|
+
\f\r]`, ye = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rn = /-->/g, In = />/g, J = RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
|
1739
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mn = /'/g, zn = /"/g, Ds = /^(?:script|style|textarea|title)$/i, zr = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), m = zr(1), Q = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), Un = /* @__PURE__ */ new WeakMap(), te = se.createTreeWalker(se, 129);
|
1740
1740
|
function Hs(s, e) {
|
1741
1741
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
1742
1742
|
throw Error("invalid template strings array");
|
@@ -1744,43 +1744,43 @@ function Hs(s, e) {
|
|
1744
1744
|
}
|
1745
1745
|
const Ur = (s, e) => {
|
1746
1746
|
const t = s.length - 1, n = [];
|
1747
|
-
let i, r = e === 2 ? "<svg>" : "", o =
|
1747
|
+
let i, r = e === 2 ? "<svg>" : "", o = ye;
|
1748
1748
|
for (let a = 0; a < t; a++) {
|
1749
1749
|
const l = s[a];
|
1750
1750
|
let c, h, u = -1, p = 0;
|
1751
1751
|
for (; p < l.length && (o.lastIndex = p, h = o.exec(l), h !== null); )
|
1752
|
-
p = o.lastIndex, o ===
|
1752
|
+
p = o.lastIndex, o === ye ? h[1] === "!--" ? o = Rn : h[1] !== void 0 ? o = In : h[2] !== void 0 ? (Ds.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = J) : h[3] !== void 0 && (o = J) : o === J ? h[0] === ">" ? (o = i ?? ye, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? J : h[3] === '"' ? zn : Mn) : o === zn || o === Mn ? o = J : o === Rn || o === In ? o = ye : (o = J, i = void 0);
|
1753
1753
|
const d = o === J && s[a + 1].startsWith("/>") ? " " : "";
|
1754
|
-
r += o ===
|
1754
|
+
r += o === ye ? l + Ir : u >= 0 ? (n.push(c), l.slice(0, u) + zs + l.slice(u) + q + d) : l + q + (u === -2 ? a : d);
|
1755
1755
|
}
|
1756
1756
|
return [Hs(s, r + (s[t] || "<?>") + (e === 2 ? "</svg>" : "")), n];
|
1757
1757
|
};
|
1758
|
-
class
|
1758
|
+
class Ee {
|
1759
1759
|
constructor({ strings: e, _$litType$: t }, n) {
|
1760
1760
|
let i;
|
1761
1761
|
this.parts = [];
|
1762
1762
|
let r = 0, o = 0;
|
1763
1763
|
const a = e.length - 1, l = this.parts, [c, h] = Ur(e, t);
|
1764
|
-
if (this.el =
|
1764
|
+
if (this.el = Ee.createElement(c, n), te.currentNode = this.el.content, t === 2) {
|
1765
1765
|
const u = this.el.content.firstChild;
|
1766
1766
|
u.replaceWith(...u.childNodes);
|
1767
1767
|
}
|
1768
|
-
for (; (i =
|
1768
|
+
for (; (i = te.nextNode()) !== null && l.length < a; ) {
|
1769
1769
|
if (i.nodeType === 1) {
|
1770
1770
|
if (i.hasAttributes())
|
1771
1771
|
for (const u of i.getAttributeNames())
|
1772
1772
|
if (u.endsWith(zs)) {
|
1773
1773
|
const p = h[o++], d = i.getAttribute(u).split(q), b = /([.?@])?(.*)/.exec(p);
|
1774
|
-
l.push({ type: 1, index: r, name: b[2], strings: d, ctor: b[1] === "." ? Dr : b[1] === "?" ? Hr : b[1] === "@" ? Br :
|
1774
|
+
l.push({ type: 1, index: r, name: b[2], strings: d, ctor: b[1] === "." ? Dr : b[1] === "?" ? Hr : b[1] === "@" ? Br : ht }), i.removeAttribute(u);
|
1775
1775
|
} else
|
1776
1776
|
u.startsWith(q) && (l.push({ type: 6, index: r }), i.removeAttribute(u));
|
1777
1777
|
if (Ds.test(i.tagName)) {
|
1778
1778
|
const u = i.textContent.split(q), p = u.length - 1;
|
1779
1779
|
if (p > 0) {
|
1780
|
-
i.textContent =
|
1780
|
+
i.textContent = Xe ? Xe.emptyScript : "";
|
1781
1781
|
for (let d = 0; d < p; d++)
|
1782
|
-
i.append(u[d],
|
1783
|
-
i.append(u[p],
|
1782
|
+
i.append(u[d], Ce()), te.nextNode(), l.push({ type: 2, index: ++r });
|
1783
|
+
i.append(u[p], Ce());
|
1784
1784
|
}
|
1785
1785
|
}
|
1786
1786
|
} else if (i.nodeType === 8)
|
@@ -1795,7 +1795,7 @@ class Ae {
|
|
1795
1795
|
}
|
1796
1796
|
}
|
1797
1797
|
static createElement(e, t) {
|
1798
|
-
const n =
|
1798
|
+
const n = se.createElement("template");
|
1799
1799
|
return n.innerHTML = e, n;
|
1800
1800
|
}
|
1801
1801
|
}
|
@@ -1804,7 +1804,7 @@ function me(s, e, t = s, n) {
|
|
1804
1804
|
if (e === Q)
|
1805
1805
|
return e;
|
1806
1806
|
let i = n !== void 0 ? (o = t._$Co) == null ? void 0 : o[n] : t._$Cl;
|
1807
|
-
const r =
|
1807
|
+
const r = Ae(e) ? void 0 : e._$litDirective$;
|
1808
1808
|
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(s), i._$AT(s, t, n)), n !== void 0 ? (t._$Co ?? (t._$Co = []))[n] = i : t._$Cl = i), i !== void 0 && (e = me(s, i._$AS(s, e.values), i, n)), e;
|
1809
1809
|
}
|
1810
1810
|
class jr {
|
@@ -1818,17 +1818,17 @@ class jr {
|
|
1818
1818
|
return this._$AM._$AU;
|
1819
1819
|
}
|
1820
1820
|
u(e) {
|
1821
|
-
const { el: { content: t }, parts: n } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ??
|
1822
|
-
|
1823
|
-
let r =
|
1821
|
+
const { el: { content: t }, parts: n } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? se).importNode(t, !0);
|
1822
|
+
te.currentNode = i;
|
1823
|
+
let r = te.nextNode(), o = 0, a = 0, l = n[0];
|
1824
1824
|
for (; l !== void 0; ) {
|
1825
1825
|
if (o === l.index) {
|
1826
1826
|
let c;
|
1827
1827
|
l.type === 2 ? c = new Re(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Nr(r, this, e)), this._$AV.push(c), l = n[++a];
|
1828
1828
|
}
|
1829
|
-
o !== (l == null ? void 0 : l.index) && (r =
|
1829
|
+
o !== (l == null ? void 0 : l.index) && (r = te.nextNode(), o++);
|
1830
1830
|
}
|
1831
|
-
return
|
1831
|
+
return te.currentNode = se, i;
|
1832
1832
|
}
|
1833
1833
|
p(e) {
|
1834
1834
|
let t = 0;
|
@@ -1856,7 +1856,7 @@ class Re {
|
|
1856
1856
|
return this._$AB;
|
1857
1857
|
}
|
1858
1858
|
_$AI(e, t = this) {
|
1859
|
-
e = me(this, e, t),
|
1859
|
+
e = me(this, e, t), Ae(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== Q && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Mr(e) ? this.k(e) : this._(e);
|
1860
1860
|
}
|
1861
1861
|
S(e) {
|
1862
1862
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
@@ -1865,11 +1865,11 @@ class Re {
|
|
1865
1865
|
this._$AH !== e && (this._$AR(), this._$AH = this.S(e));
|
1866
1866
|
}
|
1867
1867
|
_(e) {
|
1868
|
-
this._$AH !== g &&
|
1868
|
+
this._$AH !== g && Ae(this._$AH) ? this._$AA.nextSibling.data = e : this.T(se.createTextNode(e)), this._$AH = e;
|
1869
1869
|
}
|
1870
1870
|
$(e) {
|
1871
1871
|
var r;
|
1872
|
-
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el =
|
1872
|
+
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = Ee.createElement(Hs(n.h, n.h[0]), this.options)), n);
|
1873
1873
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i)
|
1874
1874
|
this._$AH.p(t);
|
1875
1875
|
else {
|
@@ -1879,14 +1879,14 @@ class Re {
|
|
1879
1879
|
}
|
1880
1880
|
_$AC(e) {
|
1881
1881
|
let t = Un.get(e.strings);
|
1882
|
-
return t === void 0 && Un.set(e.strings, t = new
|
1882
|
+
return t === void 0 && Un.set(e.strings, t = new Ee(e)), t;
|
1883
1883
|
}
|
1884
1884
|
k(e) {
|
1885
1885
|
js(this._$AH) || (this._$AH = [], this._$AR());
|
1886
1886
|
const t = this._$AH;
|
1887
1887
|
let n, i = 0;
|
1888
1888
|
for (const r of e)
|
1889
|
-
i === t.length ? t.push(n = new Re(this.S(
|
1889
|
+
i === t.length ? t.push(n = new Re(this.S(Ce()), this.S(Ce()), this, this.options)) : n = t[i], n._$AI(r), i++;
|
1890
1890
|
i < t.length && (this._$AR(n && n._$AB.nextSibling, i), t.length = i);
|
1891
1891
|
}
|
1892
1892
|
_$AR(e = this._$AA.nextSibling, t) {
|
@@ -1901,7 +1901,7 @@ class Re {
|
|
1901
1901
|
this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
|
1902
1902
|
}
|
1903
1903
|
}
|
1904
|
-
class
|
1904
|
+
class ht {
|
1905
1905
|
get tagName() {
|
1906
1906
|
return this.element.tagName;
|
1907
1907
|
}
|
@@ -1915,12 +1915,12 @@ class ct {
|
|
1915
1915
|
const r = this.strings;
|
1916
1916
|
let o = !1;
|
1917
1917
|
if (r === void 0)
|
1918
|
-
e = me(this, e, t, 0), o = !
|
1918
|
+
e = me(this, e, t, 0), o = !Ae(e) || e !== this._$AH && e !== Q, o && (this._$AH = e);
|
1919
1919
|
else {
|
1920
1920
|
const a = e;
|
1921
1921
|
let l, c;
|
1922
1922
|
for (e = r[0], l = 0; l < r.length - 1; l++)
|
1923
|
-
c = me(this, a[n + l], t, l), c === Q && (c = this._$AH[l]), o || (o = !
|
1923
|
+
c = me(this, a[n + l], t, l), c === Q && (c = this._$AH[l]), o || (o = !Ae(c) || c !== this._$AH[l]), c === g ? e = g : e !== g && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
1924
1924
|
}
|
1925
1925
|
o && !i && this.j(e);
|
1926
1926
|
}
|
@@ -1928,7 +1928,7 @@ class ct {
|
|
1928
1928
|
e === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
1929
1929
|
}
|
1930
1930
|
}
|
1931
|
-
class Dr extends
|
1931
|
+
class Dr extends ht {
|
1932
1932
|
constructor() {
|
1933
1933
|
super(...arguments), this.type = 3;
|
1934
1934
|
}
|
@@ -1936,7 +1936,7 @@ class Dr extends ct {
|
|
1936
1936
|
this.element[this.name] = e === g ? void 0 : e;
|
1937
1937
|
}
|
1938
1938
|
}
|
1939
|
-
let Hr = class extends
|
1939
|
+
let Hr = class extends ht {
|
1940
1940
|
constructor() {
|
1941
1941
|
super(...arguments), this.type = 4;
|
1942
1942
|
}
|
@@ -1944,7 +1944,7 @@ let Hr = class extends ct {
|
|
1944
1944
|
this.element.toggleAttribute(this.name, !!e && e !== g);
|
1945
1945
|
}
|
1946
1946
|
};
|
1947
|
-
class Br extends
|
1947
|
+
class Br extends ht {
|
1948
1948
|
constructor(e, t, n, i, r) {
|
1949
1949
|
super(e, t, n, i, r), this.type = 5;
|
1950
1950
|
}
|
@@ -1970,14 +1970,14 @@ class Nr {
|
|
1970
1970
|
me(this, e);
|
1971
1971
|
}
|
1972
1972
|
}
|
1973
|
-
const St =
|
1974
|
-
St == null || St(
|
1973
|
+
const St = we.litHtmlPolyfillSupport;
|
1974
|
+
St == null || St(Ee, Re), (we.litHtmlVersions ?? (we.litHtmlVersions = [])).push("3.1.2");
|
1975
1975
|
const Fr = (s, e, t) => {
|
1976
1976
|
const n = (t == null ? void 0 : t.renderBefore) ?? e;
|
1977
1977
|
let i = n._$litPart$;
|
1978
1978
|
if (i === void 0) {
|
1979
1979
|
const r = (t == null ? void 0 : t.renderBefore) ?? null;
|
1980
|
-
n._$litPart$ = i = new Re(e.insertBefore(
|
1980
|
+
n._$litPart$ = i = new Re(e.insertBefore(Ce(), r), r, void 0, t ?? {});
|
1981
1981
|
}
|
1982
1982
|
return i._$AI(s), i;
|
1983
1983
|
};
|
@@ -2100,8 +2100,8 @@ const qr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
|
|
2100
2100
|
transformTagName: !1,
|
2101
2101
|
attachStyles: !0
|
2102
2102
|
};
|
2103
|
-
let ce, Bs,
|
2104
|
-
const
|
2103
|
+
let ce, Bs, ut, Ns = !1, Ve = !1, en = !1, T = !1, Hn = null, jt = !1;
|
2104
|
+
const pt = typeof window < "u" ? window : {}, j = pt.document || { head: {} }, Fs = pt.HTMLElement || class {
|
2105
2105
|
}, S = {
|
2106
2106
|
$flags$: 0,
|
2107
2107
|
$resourcesUrl$: "",
|
@@ -2121,7 +2121,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2121
2121
|
} catch {
|
2122
2122
|
}
|
2123
2123
|
return s;
|
2124
|
-
})(),
|
2124
|
+
})(), Vr = (s) => Promise.resolve(s), Jr = /* @__PURE__ */ (() => {
|
2125
2125
|
try {
|
2126
2126
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2127
2127
|
} catch {
|
@@ -2138,15 +2138,15 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2138
2138
|
} catch (n) {
|
2139
2139
|
Ie(n);
|
2140
2140
|
}
|
2141
|
-
}, to = (s, e) => e & 4 ? j : e & 8 ?
|
2141
|
+
}, to = (s, e) => e & 4 ? j : e & 8 ? pt : e & 16 ? j.body : s, no = (s) => Xr ? {
|
2142
2142
|
passive: (s & 1) !== 0,
|
2143
2143
|
capture: (s & 2) !== 0
|
2144
|
-
} : (s & 2) !== 0, Bn = "http://www.w3.org/1999/xlink",
|
2144
|
+
} : (s & 2) !== 0, Bn = "http://www.w3.org/1999/xlink", ie = (s, e = "") => () => {
|
2145
2145
|
}, Nn = /* @__PURE__ */ new WeakMap(), so = (s, e, t) => {
|
2146
|
-
let n =
|
2147
|
-
|
2146
|
+
let n = tt.get(s);
|
2147
|
+
Jr && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e, tt.set(s, n);
|
2148
2148
|
}, io = (s, e, t, n) => {
|
2149
|
-
let i = Zs(e, t), r =
|
2149
|
+
let i = Zs(e, t), r = tt.get(i);
|
2150
2150
|
if (s = s.nodeType === 11 ? s : j, r)
|
2151
2151
|
if (typeof r == "string") {
|
2152
2152
|
s = s.head || s;
|
@@ -2156,7 +2156,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2156
2156
|
s.adoptedStyleSheets.includes(r) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, r]);
|
2157
2157
|
return i;
|
2158
2158
|
}, ro = (s) => {
|
2159
|
-
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i =
|
2159
|
+
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i = ie("attachStyles", e.$tagName$), r = io(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, s.$modeName$);
|
2160
2160
|
n & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), n & 2 && t.classList.add(r + "-s")), i();
|
2161
2161
|
}, Zs = (s, e) => "sc-" + (e && s.$flags$ & 32 ? s.$tagName$ + "-" + e : s.$tagName$), oo = (s) => Mo.map((e) => e(s)).find((e) => !!e), Fn = {}, ao = "http://www.w3.org/2000/svg", lo = "http://www.w3.org/1999/xhtml", co = (s) => s != null, tn = (s) => (s = typeof s, s === "object" || s === "function"), de = (s, e, ...t) => {
|
2162
2162
|
let n = null, i = null, r = null, o = !1, a = !1, l = [];
|
@@ -2216,7 +2216,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2216
2216
|
if (e === "ref")
|
2217
2217
|
n && n(s);
|
2218
2218
|
else if (!s.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
|
2219
|
-
e[2] === "-" ? e = e.slice(3) : Kn(
|
2219
|
+
e[2] === "-" ? e = e.slice(3) : Kn(pt, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && S.rel(s, e, t, !1), n && S.ael(s, e, n, !1);
|
2220
2220
|
else {
|
2221
2221
|
const l = tn(n);
|
2222
2222
|
if ((o || l && n !== null) && !i)
|
@@ -2239,7 +2239,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2239
2239
|
n in o || Zn(i, n, r[n], void 0, t, e.$flags$);
|
2240
2240
|
for (n in o)
|
2241
2241
|
Zn(i, n, r[n], o[n], t, e.$flags$);
|
2242
|
-
},
|
2242
|
+
}, et = (s, e, t, n) => {
|
2243
2243
|
let i = e.$children$[t], r = 0, o, a, l;
|
2244
2244
|
if (Ns || (en = !0, i.$tag$ === "slot" && (ce && n.classList.add(ce + "-s"), i.$flags$ |= i.$children$ ? (
|
2245
2245
|
// slot element has fallback content
|
@@ -2254,25 +2254,25 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2254
2254
|
else {
|
2255
2255
|
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ = j.createElementNS(T ? ao : lo, i.$flags$ & 2 ? "slot-fb" : i.$tag$), T && i.$tag$ === "foreignObject" && (T = !1), Ws(null, i, T), co(ce) && o["s-si"] !== ce && o.classList.add(o["s-si"] = ce), i.$children$)
|
2256
2256
|
for (r = 0; r < i.$children$.length; ++r)
|
2257
|
-
a =
|
2257
|
+
a = et(s, i, r, o), a && o.appendChild(a);
|
2258
2258
|
i.$tag$ === "svg" ? T = !1 : o.tagName === "foreignObject" && (T = !0);
|
2259
2259
|
}
|
2260
|
-
return o["s-hn"] =
|
2261
|
-
},
|
2260
|
+
return o["s-hn"] = ut, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Bs, o["s-sn"] = i.$name$ || "", l = s && s.$children$ && s.$children$[t], l && l.$tag$ === i.$tag$ && s.$elm$ && Te(s.$elm$, !1)), o;
|
2261
|
+
}, Te = (s, e) => {
|
2262
2262
|
S.$flags$ |= 1;
|
2263
2263
|
const t = s.childNodes;
|
2264
2264
|
for (let n = t.length - 1; n >= 0; n--) {
|
2265
2265
|
const i = t[n];
|
2266
|
-
i["s-hn"] !==
|
2266
|
+
i["s-hn"] !== ut && i["s-ol"] && (Ks(i).insertBefore(i, sn(i)), i["s-ol"].remove(), i["s-ol"] = void 0, en = !0), e && Te(i, e);
|
2267
2267
|
}
|
2268
2268
|
S.$flags$ &= -2;
|
2269
2269
|
}, Ys = (s, e, t, n, i, r) => {
|
2270
2270
|
let o = s["s-cr"] && s["s-cr"].parentNode || s, a;
|
2271
|
-
for (o.shadowRoot && o.tagName ===
|
2272
|
-
n[i] && (a =
|
2271
|
+
for (o.shadowRoot && o.tagName === ut && (o = o.shadowRoot); i <= r; ++i)
|
2272
|
+
n[i] && (a = et(null, t, i, s), a && (n[i].$elm$ = a, o.insertBefore(a, sn(e))));
|
2273
2273
|
}, Qs = (s, e, t, n, i) => {
|
2274
2274
|
for (; e <= t; ++e)
|
2275
|
-
(n = s[e]) && (i = n.$elm$,
|
2275
|
+
(n = s[e]) && (i = n.$elm$, Vs(n), Ve = !0, i["s-ol"] ? i["s-ol"].remove() : Te(i, !0), i.remove());
|
2276
2276
|
}, go = (s, e, t, n) => {
|
2277
2277
|
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], h = e[l], u = n.length - 1, p = n[0], d = n[u], b, f;
|
2278
2278
|
for (; i <= l && r <= u; )
|
@@ -2284,24 +2284,24 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2284
2284
|
p = n[++r];
|
2285
2285
|
else if (d == null)
|
2286
2286
|
d = n[--u];
|
2287
|
-
else if (
|
2287
|
+
else if (Be(c, p))
|
2288
2288
|
he(c, p), c = e[++i], p = n[++r];
|
2289
|
-
else if (
|
2289
|
+
else if (Be(h, d))
|
2290
2290
|
he(h, d), h = e[--l], d = n[--u];
|
2291
|
-
else if (
|
2292
|
-
(c.$tag$ === "slot" || d.$tag$ === "slot") &&
|
2293
|
-
else if (
|
2294
|
-
(c.$tag$ === "slot" || d.$tag$ === "slot") &&
|
2291
|
+
else if (Be(c, d))
|
2292
|
+
(c.$tag$ === "slot" || d.$tag$ === "slot") && Te(c.$elm$.parentNode, !1), he(c, d), s.insertBefore(c.$elm$, h.$elm$.nextSibling), c = e[++i], d = n[--u];
|
2293
|
+
else if (Be(h, p))
|
2294
|
+
(c.$tag$ === "slot" || d.$tag$ === "slot") && Te(h.$elm$.parentNode, !1), he(h, p), s.insertBefore(h.$elm$, c.$elm$), h = e[--l], p = n[++r];
|
2295
2295
|
else {
|
2296
2296
|
for (o = -1, a = i; a <= l; ++a)
|
2297
2297
|
if (e[a] && e[a].$key$ !== null && e[a].$key$ === p.$key$) {
|
2298
2298
|
o = a;
|
2299
2299
|
break;
|
2300
2300
|
}
|
2301
|
-
o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ? b =
|
2301
|
+
o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ? b = et(e && e[r], t, o, s) : (he(f, p), e[o] = void 0, b = f.$elm$), p = n[++r]) : (b = et(e && e[r], t, r, s), p = n[++r]), b && Ks(c.$elm$).insertBefore(b, sn(c.$elm$));
|
2302
2302
|
}
|
2303
2303
|
i > l ? Ys(s, n[u + 1] == null ? null : n[u + 1].$elm$, t, n, r, u) : r > u && Qs(e, i, l);
|
2304
|
-
},
|
2304
|
+
}, Be = (s, e) => s.$tag$ === e.$tag$ ? s.$tag$ === "slot" ? s.$name$ === e.$name$ : s.$key$ === e.$key$ : !1, sn = (s) => s && s["s-ol"] || s, Ks = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, he = (s, e) => {
|
2305
2305
|
const t = e.$elm$ = s.$elm$, n = s.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
2306
2306
|
let a;
|
2307
2307
|
o === null ? (T = r === "svg" ? !0 : r === "foreignObject" ? !1 : T, r === "slot" || Ws(s, e, T), n !== null && i !== null ? go(t, n, e, i) : i !== null ? (s.$text$ !== null && (t.textContent = ""), Ys(t, null, e, i, 0, i.length - 1)) : n !== null && Qs(n, 0, n.length - 1), T && r === "svg" && (T = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (t.data = o);
|
@@ -2328,7 +2328,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2328
2328
|
for (; a < c; a++) {
|
2329
2329
|
if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
|
2330
2330
|
for (n = t.parentNode.childNodes, i = e["s-sn"], o = n.length - 1; o >= 0; o--)
|
2331
|
-
t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Yn(t, i) ? (r = O.find((h) => h.$nodeToRelocate$ === t),
|
2331
|
+
t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Yn(t, i) ? (r = O.find((h) => h.$nodeToRelocate$ === t), Ve = !0, t["s-sn"] = t["s-sn"] || i, r ? r.$slotRefNode$ = e : O.push({
|
2332
2332
|
$slotRefNode$: e,
|
2333
2333
|
$nodeToRelocate$: t
|
2334
2334
|
}), t["s-sr"] && O.map((h) => {
|
@@ -2338,11 +2338,11 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2338
2338
|
}));
|
2339
2339
|
e.nodeType === 1 && Xs(e);
|
2340
2340
|
}
|
2341
|
-
}, Yn = (s, e) => s.nodeType === 1 ? s.getAttribute("slot") === null && e === "" || s.getAttribute("slot") === e : s["s-sn"] === e ? !0 : e === "",
|
2342
|
-
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(
|
2341
|
+
}, Yn = (s, e) => s.nodeType === 1 ? s.getAttribute("slot") === null && e === "" || s.getAttribute("slot") === e : s["s-sn"] === e ? !0 : e === "", Vs = (s) => {
|
2342
|
+
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(Vs);
|
2343
2343
|
}, mo = (s, e) => {
|
2344
2344
|
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Je(null, null), r = ho(e) ? e : de(null, null, e);
|
2345
|
-
|
2345
|
+
ut = t.tagName, n.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, s.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, ce = t["s-sc"], Bs = t["s-cr"], Ns = (n.$flags$ & 1) !== 0, Ve = !1, he(i, r);
|
2346
2346
|
{
|
2347
2347
|
if (S.$flags$ |= 1, en) {
|
2348
2348
|
Xs(r.$elm$);
|
@@ -2360,7 +2360,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2360
2360
|
} else
|
2361
2361
|
a.nodeType === 1 && (a.hidden = !0);
|
2362
2362
|
}
|
2363
|
-
|
2363
|
+
Ve && Gs(r.$elm$), S.$flags$ &= -2, O.length = 0;
|
2364
2364
|
}
|
2365
2365
|
}, vo = (s) => s, bo = (s, e, t) => {
|
2366
2366
|
const n = vo(s);
|
@@ -2376,14 +2376,14 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2376
2376
|
const n = S.ce(e, t);
|
2377
2377
|
return s.dispatchEvent(n), n;
|
2378
2378
|
}, $o = (s, e) => {
|
2379
|
-
},
|
2380
|
-
const t = s.$hostElement$, n =
|
2379
|
+
}, Js = (s, e) => (s.$flags$ |= 16, $o(s, s.$ancestorComponent$), jo(() => xo(s, e))), xo = (s, e) => {
|
2380
|
+
const t = s.$hostElement$, n = ie("scheduleUpdate", s.$cmpMeta$.$tagName$), i = t;
|
2381
2381
|
let r;
|
2382
2382
|
return e ? r = fe(i, "componentWillLoad") : r = fe(i, "componentWillUpdate"), r = Qn(r, () => fe(i, "componentWillRender")), n(), Qn(r, () => wo(s, i, e));
|
2383
2383
|
}, wo = async (s, e, t) => {
|
2384
|
-
const n = s.$hostElement$, i =
|
2384
|
+
const n = s.$hostElement$, i = ie("update", s.$cmpMeta$.$tagName$);
|
2385
2385
|
n["s-rc"], t && ro(s);
|
2386
|
-
const r =
|
2386
|
+
const r = ie("render", s.$cmpMeta$.$tagName$);
|
2387
2387
|
ko(s, e, n), r(), i(), _o(s);
|
2388
2388
|
}, ko = (s, e, t) => {
|
2389
2389
|
try {
|
@@ -2393,7 +2393,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2393
2393
|
}
|
2394
2394
|
return Hn = null, null;
|
2395
2395
|
}, _o = (s) => {
|
2396
|
-
const e = s.$cmpMeta$.$tagName$, t = s.$hostElement$, n =
|
2396
|
+
const e = s.$cmpMeta$.$tagName$, t = s.$hostElement$, n = ie("postUpdate", e), i = t;
|
2397
2397
|
s.$ancestorComponent$, fe(i, "componentDidRender"), s.$flags$ & 64 ? (fe(i, "componentDidUpdate"), n()) : (s.$flags$ |= 64, fe(i, "componentDidLoad"), n());
|
2398
2398
|
}, fe = (s, e, t) => {
|
2399
2399
|
if (s && s[e])
|
@@ -2402,8 +2402,8 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2402
2402
|
} catch (n) {
|
2403
2403
|
Ie(n);
|
2404
2404
|
}
|
2405
|
-
}, Qn = (s, e) => s && s.then ? s.then(e) : e(), So = (s, e) => s != null && !tn(s) ? e & 4 ? s === "false" ? !1 : s === "" || !!s : e & 2 ? parseFloat(s) : e & 1 ? String(s) : s : s, Co = (s, e) =>
|
2406
|
-
const i =
|
2405
|
+
}, Qn = (s, e) => s && s.then ? s.then(e) : e(), So = (s, e) => s != null && !tn(s) ? e & 4 ? s === "false" ? !1 : s === "" || !!s : e & 2 ? parseFloat(s) : e & 1 ? String(s) : s : s, Co = (s, e) => dt(s).$instanceValues$.get(e), Ao = (s, e, t, n) => {
|
2406
|
+
const i = dt(s), r = s, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
|
2407
2407
|
t = So(t, n.$members$[e][0]);
|
2408
2408
|
const c = Number.isNaN(o) && Number.isNaN(t);
|
2409
2409
|
if (t !== o && !c) {
|
@@ -2422,7 +2422,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2422
2422
|
if ((a & 18) === 2) {
|
2423
2423
|
if (l.componentShouldUpdate && l.componentShouldUpdate(t, o, e) === !1)
|
2424
2424
|
return;
|
2425
|
-
|
2425
|
+
Js(i, !1);
|
2426
2426
|
}
|
2427
2427
|
}
|
2428
2428
|
}
|
@@ -2468,16 +2468,16 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2468
2468
|
let o = i.style;
|
2469
2469
|
typeof o != "string" && (o = o[e.$modeName$ = oo(s)]);
|
2470
2470
|
const a = Zs(t, e.$modeName$);
|
2471
|
-
if (!
|
2472
|
-
const l =
|
2471
|
+
if (!tt.has(a)) {
|
2472
|
+
const l = ie("registerStyles", t.$tagName$);
|
2473
2473
|
so(a, o, !!(t.$flags$ & 1)), l();
|
2474
2474
|
}
|
2475
2475
|
}
|
2476
|
-
e.$ancestorComponent$, (() =>
|
2476
|
+
e.$ancestorComponent$, (() => Js(e, !0))();
|
2477
2477
|
}, Lo = (s) => {
|
2478
2478
|
}, Oo = (s) => {
|
2479
2479
|
if (!(S.$flags$ & 1)) {
|
2480
|
-
const e =
|
2480
|
+
const e = dt(s), t = e.$cmpMeta$, n = ie("connectedCallback", t.$tagName$);
|
2481
2481
|
e.$flags$ & 1 ? (qs(s, e, t.$listeners$), Lo(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Po(s), t.$members$ && Object.entries(t.$members$).map(([i, [r]]) => {
|
2482
2482
|
if (r & 31 && s.hasOwnProperty(i)) {
|
2483
2483
|
const o = s[i];
|
@@ -2490,7 +2490,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2490
2490
|
e["s-cn"] = !0, s.insertBefore(e, s.firstChild);
|
2491
2491
|
}, Ro = (s) => {
|
2492
2492
|
if (!(S.$flags$ & 1)) {
|
2493
|
-
const e =
|
2493
|
+
const e = dt(s);
|
2494
2494
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
2495
2495
|
}
|
2496
2496
|
}, ei = (s, e) => {
|
@@ -2517,7 +2517,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2517
2517
|
});
|
2518
2518
|
}
|
2519
2519
|
}), s.is = t.$tagName$, Eo(s, t);
|
2520
|
-
}, ti = /* @__PURE__ */ new WeakMap(),
|
2520
|
+
}, ti = /* @__PURE__ */ new WeakMap(), dt = (s) => ti.get(s), Io = (s, e) => {
|
2521
2521
|
const t = {
|
2522
2522
|
$flags$: 0,
|
2523
2523
|
$hostElement$: s,
|
@@ -2525,7 +2525,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2525
2525
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2526
2526
|
};
|
2527
2527
|
return qs(s, t, e.$listeners$), ti.set(s, t);
|
2528
|
-
}, Kn = (s, e) => e in s, Ie = (s, e) => (0, console.error)(s, e),
|
2528
|
+
}, Kn = (s, e) => e in s, Ie = (s, e) => (0, console.error)(s, e), tt = /* @__PURE__ */ new Map(), Mo = [], Gn = [], ni = [], zo = (s, e) => (t) => {
|
2529
2529
|
s.push(t), jt || (jt = !0, e && S.$flags$ & 4 ? Uo(Dt) : S.raf(Dt));
|
2530
2530
|
}, Xn = (s) => {
|
2531
2531
|
for (let e = 0; e < s.length; e++)
|
@@ -2537,7 +2537,7 @@ const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, F
|
|
2537
2537
|
s.length = 0;
|
2538
2538
|
}, Dt = () => {
|
2539
2539
|
Xn(Gn), Xn(ni), (jt = Gn.length > 0) && S.raf(Dt);
|
2540
|
-
}, Uo = (s) =>
|
2540
|
+
}, Uo = (s) => Vr().then(s), jo = /* @__PURE__ */ zo(ni, !0), Do = (s = {}) => {
|
2541
2541
|
const { content: e = "", title: t, attributes: n = [] } = s;
|
2542
2542
|
let i = "", r = [
|
2543
2543
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2653,7 +2653,7 @@ Ko();
|
|
2653
2653
|
* Copyright 2017 Google LLC
|
2654
2654
|
* SPDX-License-Identifier: BSD-3-Clause
|
2655
2655
|
*/
|
2656
|
-
const Go = { attribute: !0, type: String, converter:
|
2656
|
+
const Go = { attribute: !0, type: String, converter: Ge, reflect: !1, hasChanged: Jt }, Xo = (s = Go, e, t) => {
|
2657
2657
|
const { kind: n, metadata: i } = t;
|
2658
2658
|
let r = globalThis.litPropertyMetadata.get(i);
|
2659
2659
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(t.name, s), n === "accessor") {
|
@@ -2685,7 +2685,7 @@ function w(s) {
|
|
2685
2685
|
* Copyright 2017 Google LLC
|
2686
2686
|
* SPDX-License-Identifier: BSD-3-Clause
|
2687
2687
|
*/
|
2688
|
-
function
|
2688
|
+
function C(s) {
|
2689
2689
|
return w({ ...s, state: !0, attribute: !1 });
|
2690
2690
|
}
|
2691
2691
|
/**
|
@@ -2693,13 +2693,13 @@ function E(s) {
|
|
2693
2693
|
* Copyright 2020 Google LLC
|
2694
2694
|
* SPDX-License-Identifier: BSD-3-Clause
|
2695
2695
|
*/
|
2696
|
-
const
|
2696
|
+
const Vo = (s) => s.strings === void 0;
|
2697
2697
|
/**
|
2698
2698
|
* @license
|
2699
2699
|
* Copyright 2017 Google LLC
|
2700
2700
|
* SPDX-License-Identifier: BSD-3-Clause
|
2701
2701
|
*/
|
2702
|
-
const
|
2702
|
+
const ft = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, gt = (s) => (...e) => ({ _$litDirective$: s, values: e });
|
2703
2703
|
let rn = class {
|
2704
2704
|
constructor(e) {
|
2705
2705
|
}
|
@@ -2721,15 +2721,15 @@ let rn = class {
|
|
2721
2721
|
* Copyright 2017 Google LLC
|
2722
2722
|
* SPDX-License-Identifier: BSD-3-Clause
|
2723
2723
|
*/
|
2724
|
-
const
|
2724
|
+
const ke = (s, e) => {
|
2725
2725
|
var n;
|
2726
2726
|
const t = s._$AN;
|
2727
2727
|
if (t === void 0)
|
2728
2728
|
return !1;
|
2729
2729
|
for (const i of t)
|
2730
|
-
(n = i._$AO) == null || n.call(i, e, !1),
|
2730
|
+
(n = i._$AO) == null || n.call(i, e, !1), ke(i, e);
|
2731
2731
|
return !0;
|
2732
|
-
},
|
2732
|
+
}, nt = (s) => {
|
2733
2733
|
let e, t;
|
2734
2734
|
do {
|
2735
2735
|
if ((e = s._$AM) === void 0)
|
@@ -2746,8 +2746,8 @@ const we = (s, e) => {
|
|
2746
2746
|
t.add(s), ta(e);
|
2747
2747
|
}
|
2748
2748
|
};
|
2749
|
-
function
|
2750
|
-
this._$AN !== void 0 ? (
|
2749
|
+
function Jo(s) {
|
2750
|
+
this._$AN !== void 0 ? (nt(this), this._$AM = s, ii(this)) : this._$AM = s;
|
2751
2751
|
}
|
2752
2752
|
function ea(s, e = !1, t = 0) {
|
2753
2753
|
const n = this._$AH, i = this._$AN;
|
@@ -2755,14 +2755,14 @@ function ea(s, e = !1, t = 0) {
|
|
2755
2755
|
if (e)
|
2756
2756
|
if (Array.isArray(n))
|
2757
2757
|
for (let r = t; r < n.length; r++)
|
2758
|
-
|
2758
|
+
ke(n[r], !1), nt(n[r]);
|
2759
2759
|
else
|
2760
|
-
n != null && (
|
2760
|
+
n != null && (ke(n, !1), nt(n));
|
2761
2761
|
else
|
2762
|
-
|
2762
|
+
ke(this, s);
|
2763
2763
|
}
|
2764
2764
|
const ta = (s) => {
|
2765
|
-
s.type ==
|
2765
|
+
s.type == ft.CHILD && (s._$AP ?? (s._$AP = ea), s._$AQ ?? (s._$AQ = Jo));
|
2766
2766
|
};
|
2767
2767
|
let ri = class extends rn {
|
2768
2768
|
constructor() {
|
@@ -2773,10 +2773,10 @@ let ri = class extends rn {
|
|
2773
2773
|
}
|
2774
2774
|
_$AO(e, t = !0) {
|
2775
2775
|
var n, i;
|
2776
|
-
e !== this.isConnected && (this.isConnected = e, e ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), t && (
|
2776
|
+
e !== this.isConnected && (this.isConnected = e, e ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), t && (ke(this, e), nt(this));
|
2777
2777
|
}
|
2778
2778
|
setValue(e) {
|
2779
|
-
if (
|
2779
|
+
if (Vo(this._$Ct))
|
2780
2780
|
this._$Ct._$AI(e, this);
|
2781
2781
|
else {
|
2782
2782
|
const t = [...this._$Ct._$AH];
|
@@ -2796,7 +2796,7 @@ let ri = class extends rn {
|
|
2796
2796
|
const B = () => new na();
|
2797
2797
|
class na {
|
2798
2798
|
}
|
2799
|
-
const At = /* @__PURE__ */ new WeakMap(), N =
|
2799
|
+
const At = /* @__PURE__ */ new WeakMap(), N = gt(class extends ri {
|
2800
2800
|
render(s) {
|
2801
2801
|
return g;
|
2802
2802
|
}
|
@@ -2829,10 +2829,10 @@ const At = /* @__PURE__ */ new WeakMap(), N = ft(class extends ri {
|
|
2829
2829
|
* Copyright 2018 Google LLC
|
2830
2830
|
* SPDX-License-Identifier: BSD-3-Clause
|
2831
2831
|
*/
|
2832
|
-
const
|
2832
|
+
const ve = gt(class extends rn {
|
2833
2833
|
constructor(s) {
|
2834
2834
|
var e;
|
2835
|
-
if (super(s), s.type !==
|
2835
|
+
if (super(s), s.type !== ft.ATTRIBUTE || s.name !== "class" || ((e = s.strings) == null ? void 0 : e.length) > 2)
|
2836
2836
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
2837
2837
|
}
|
2838
2838
|
render(s) {
|
@@ -2874,7 +2874,7 @@ class on extends k {
|
|
2874
2874
|
}
|
2875
2875
|
}
|
2876
2876
|
on.styles = [
|
2877
|
-
|
2877
|
+
E`
|
2878
2878
|
:host {
|
2879
2879
|
position: fixed;
|
2880
2880
|
display: flex;
|
@@ -2896,8 +2896,8 @@ ra([
|
|
2896
2896
|
w({ attribute: !0 })
|
2897
2897
|
], on.prototype, "anchor", 2);
|
2898
2898
|
const oa = /* @__PURE__ */ new WeakMap();
|
2899
|
-
let
|
2900
|
-
const Et = /* @__PURE__ */ new Map(),
|
2899
|
+
let Vn = 0;
|
2900
|
+
const Et = /* @__PURE__ */ new Map(), Jn = /* @__PURE__ */ new WeakSet(), es = () => new Promise((s) => requestAnimationFrame(s)), aa = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], la = [{ opacity: 0 }], ts = [{ opacity: 0 }, { opacity: 1 }], ns = (s, e) => {
|
2901
2901
|
const t = s - e;
|
2902
2902
|
return t === 0 ? void 0 : t;
|
2903
2903
|
}, ss = (s, e) => {
|
@@ -2922,7 +2922,7 @@ const Et = /* @__PURE__ */ new Map(), Vn = /* @__PURE__ */ new WeakSet(), es = (
|
|
2922
2922
|
} }, ca = { duration: 333, easing: "ease-in-out" }, ha = ["left", "top", "width", "height", "opacity", "color", "background"], is = /* @__PURE__ */ new WeakMap();
|
2923
2923
|
class ua extends ri {
|
2924
2924
|
constructor(e) {
|
2925
|
-
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type ===
|
2925
|
+
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === ft.CHILD)
|
2926
2926
|
throw Error("The `animate` directive must be used in attribute position.");
|
2927
2927
|
this.createFinished();
|
2928
2928
|
}
|
@@ -2991,7 +2991,7 @@ class ua extends ri {
|
|
2991
2991
|
if (r) {
|
2992
2992
|
Et.delete(this.options.inId);
|
2993
2993
|
const { from: o, to: a } = this.N(r, i, t);
|
2994
|
-
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e,
|
2994
|
+
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, Vn++, e.forEach((l) => l.zIndex = Vn);
|
2995
2995
|
} else
|
2996
2996
|
this.options.in && (e = [...this.options.in, {}]);
|
2997
2997
|
}
|
@@ -3042,9 +3042,9 @@ class ua extends ri {
|
|
3042
3042
|
return e;
|
3043
3043
|
}
|
3044
3044
|
get isHostRendered() {
|
3045
|
-
const e =
|
3045
|
+
const e = Jn.has(this.u);
|
3046
3046
|
return e || this.u.updateComplete.then(() => {
|
3047
|
-
|
3047
|
+
Jn.add(this.u);
|
3048
3048
|
}), e;
|
3049
3049
|
}
|
3050
3050
|
j(e, t = this.O()) {
|
@@ -3099,32 +3099,32 @@ class ua extends ri {
|
|
3099
3099
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
3100
3100
|
}
|
3101
3101
|
}
|
3102
|
-
const Bt =
|
3102
|
+
const Bt = gt(ua), Ne = (s, e, t) => {
|
3103
3103
|
s && t.style.setProperty(e, s);
|
3104
3104
|
}, oi = (s, e) => {
|
3105
3105
|
var t, n, i, r;
|
3106
|
-
|
3106
|
+
Ne((t = s.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), Ne(
|
3107
3107
|
(n = s.colors) == null ? void 0 : n.textOnPrimaryBackground,
|
3108
3108
|
"--text-on-primary-background",
|
3109
3109
|
e
|
3110
|
-
),
|
3110
|
+
), Ne(
|
3111
3111
|
(i = s.colors) == null ? void 0 : i.secondaryBackground,
|
3112
3112
|
"--secondary-background",
|
3113
3113
|
e
|
3114
|
-
),
|
3114
|
+
), Ne(
|
3115
3115
|
(r = s.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
3116
3116
|
"--text-on-secondary-background",
|
3117
3117
|
e
|
3118
3118
|
);
|
3119
3119
|
};
|
3120
|
-
var pa = Object.defineProperty, da = Object.getOwnPropertyDescriptor,
|
3120
|
+
var pa = Object.defineProperty, da = Object.getOwnPropertyDescriptor, Me = (s, e, t, n) => {
|
3121
3121
|
for (var i = n > 1 ? void 0 : n ? da(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3122
3122
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3123
3123
|
return n && i && pa(e, t, i), i;
|
3124
3124
|
};
|
3125
|
-
class
|
3125
|
+
class G extends k {
|
3126
3126
|
constructor() {
|
3127
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = B(), this.widgetActive$ = new M(!1), this.componentIsDestroyed$ = new _();
|
3127
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = B(), this.widgetActive$ = new M(!1), this.componentIsDestroyed$ = new _();
|
3128
3128
|
}
|
3129
3129
|
async connectedCallback() {
|
3130
3130
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -3168,9 +3168,21 @@ class re extends k {
|
|
3168
3168
|
return g;
|
3169
3169
|
}
|
3170
3170
|
}
|
3171
|
+
hideTrigger() {
|
3172
|
+
this.triggerVisible = !1;
|
3173
|
+
}
|
3174
|
+
showTrigger() {
|
3175
|
+
this.triggerVisible = !0;
|
3176
|
+
}
|
3171
3177
|
render() {
|
3172
3178
|
var e, t, n, i;
|
3173
|
-
return m`<div
|
3179
|
+
return m`<div
|
3180
|
+
class=${ve({
|
3181
|
+
"trigger-container": !0,
|
3182
|
+
hidden: !this.triggerVisible
|
3183
|
+
})}
|
3184
|
+
${N(this.containerRef)}
|
3185
|
+
>
|
3174
3186
|
${!this.active && ((i = (n = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : n.other) != null && i.showButtonLabel) ? m`
|
3175
3187
|
<button
|
3176
3188
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
@@ -3189,7 +3201,7 @@ class re extends k {
|
|
3189
3201
|
|
3190
3202
|
<button
|
3191
3203
|
label="Widget trigger"
|
3192
|
-
class=${
|
3204
|
+
class=${ve({
|
3193
3205
|
trigger: !0,
|
3194
3206
|
active: this.active,
|
3195
3207
|
rendered: this.loaded
|
@@ -3228,8 +3240,8 @@ class re extends k {
|
|
3228
3240
|
</div>`;
|
3229
3241
|
}
|
3230
3242
|
}
|
3231
|
-
|
3232
|
-
|
3243
|
+
G.styles = [
|
3244
|
+
E`
|
3233
3245
|
:host {
|
3234
3246
|
--voca-rem-multiplier: 0.625;
|
3235
3247
|
--trigger-label-bg: #f5e0ff;
|
@@ -3245,6 +3257,9 @@ re.styles = [
|
|
3245
3257
|
align-items: center;
|
3246
3258
|
gap: 1rem;
|
3247
3259
|
}
|
3260
|
+
.trigger-container.hidden {
|
3261
|
+
display: none;
|
3262
|
+
}
|
3248
3263
|
|
3249
3264
|
.trigger {
|
3250
3265
|
transform: scale(0);
|
@@ -3337,19 +3352,22 @@ re.styles = [
|
|
3337
3352
|
}
|
3338
3353
|
`
|
3339
3354
|
];
|
3340
|
-
|
3355
|
+
Me([
|
3341
3356
|
w({ attribute: !1 })
|
3342
|
-
],
|
3343
|
-
|
3344
|
-
|
3345
|
-
],
|
3346
|
-
|
3347
|
-
|
3348
|
-
],
|
3349
|
-
|
3350
|
-
|
3351
|
-
],
|
3352
|
-
|
3357
|
+
], G.prototype, "application", 2);
|
3358
|
+
Me([
|
3359
|
+
C()
|
3360
|
+
], G.prototype, "active", 2);
|
3361
|
+
Me([
|
3362
|
+
C()
|
3363
|
+
], G.prototype, "triggerVisible", 2);
|
3364
|
+
Me([
|
3365
|
+
C()
|
3366
|
+
], G.prototype, "loaded", 2);
|
3367
|
+
Me([
|
3368
|
+
C()
|
3369
|
+
], G.prototype, "icon", 2);
|
3370
|
+
var fa = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, ee = (s, e, t, n) => {
|
3353
3371
|
for (var i = n > 1 ? void 0 : n ? ga(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3354
3372
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3355
3373
|
return n && i && fa(e, t, i), i;
|
@@ -3380,7 +3398,7 @@ const ai = (s) => {
|
|
3380
3398
|
}
|
3381
3399
|
return e.styles = [
|
3382
3400
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
3383
|
-
|
3401
|
+
E`
|
3384
3402
|
:host {
|
3385
3403
|
font-family: var(--font-family);
|
3386
3404
|
grid-column: span var(--width);
|
@@ -3393,19 +3411,19 @@ const ai = (s) => {
|
|
3393
3411
|
box-sizing: border-box;
|
3394
3412
|
}
|
3395
3413
|
`
|
3396
|
-
],
|
3414
|
+
], ee([
|
3397
3415
|
w()
|
3398
|
-
], e.prototype, "properties", 2),
|
3416
|
+
], e.prototype, "properties", 2), ee([
|
3399
3417
|
w()
|
3400
|
-
], e.prototype, "context", 2),
|
3418
|
+
], e.prototype, "context", 2), ee([
|
3401
3419
|
w()
|
3402
|
-
], e.prototype, "layout", 2),
|
3420
|
+
], e.prototype, "layout", 2), ee([
|
3403
3421
|
w()
|
3404
|
-
], e.prototype, "name", 2),
|
3422
|
+
], e.prototype, "name", 2), ee([
|
3405
3423
|
w()
|
3406
|
-
], e.prototype, "type", 2),
|
3424
|
+
], e.prototype, "type", 2), ee([
|
3407
3425
|
w({ attribute: !1 })
|
3408
|
-
], e.prototype, "application", 2),
|
3426
|
+
], e.prototype, "application", 2), ee([
|
3409
3427
|
w({ attribute: !1 })
|
3410
3428
|
], e.prototype, "parent", 2), e;
|
3411
3429
|
};
|
@@ -3415,7 +3433,7 @@ class li extends ai(k) {
|
|
3415
3433
|
}
|
3416
3434
|
}
|
3417
3435
|
li.styles = [
|
3418
|
-
|
3436
|
+
E`
|
3419
3437
|
:host {
|
3420
3438
|
display: block;
|
3421
3439
|
}
|
@@ -3596,7 +3614,7 @@ class ln extends k {
|
|
3596
3614
|
</div>`;
|
3597
3615
|
}
|
3598
3616
|
}
|
3599
|
-
ln.styles =
|
3617
|
+
ln.styles = E`
|
3600
3618
|
:host {
|
3601
3619
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
3602
3620
|
--spacing-xs: 0.2rem;
|
@@ -3716,7 +3734,7 @@ var ci = /* @__PURE__ */ ((s) => (s.Mandatory = "mandatory", s.Preferences = "pr
|
|
3716
3734
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3717
3735
|
return n && i && Sa(e, t, i), i;
|
3718
3736
|
};
|
3719
|
-
class
|
3737
|
+
class ze extends k {
|
3720
3738
|
constructor() {
|
3721
3739
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
3722
3740
|
}
|
@@ -3742,14 +3760,14 @@ class Me extends k {
|
|
3742
3760
|
if (!this.widget || this.status !== "activated")
|
3743
3761
|
return g;
|
3744
3762
|
if (this.widget.renderStrategy === an.Trigger) {
|
3745
|
-
const e = new
|
3763
|
+
const e = new G();
|
3746
3764
|
return e.application = this.widget, e;
|
3747
3765
|
}
|
3748
3766
|
return this.widget.render();
|
3749
3767
|
}
|
3750
3768
|
}
|
3751
|
-
|
3752
|
-
|
3769
|
+
ze.styles = [
|
3770
|
+
E`
|
3753
3771
|
:host {
|
3754
3772
|
display: block;
|
3755
3773
|
}
|
@@ -3757,18 +3775,18 @@ Me.styles = [
|
|
3757
3775
|
];
|
3758
3776
|
cn([
|
3759
3777
|
w({ attribute: !0 })
|
3760
|
-
],
|
3778
|
+
], ze.prototype, "name", 2);
|
3761
3779
|
cn([
|
3762
|
-
|
3763
|
-
],
|
3780
|
+
C()
|
3781
|
+
], ze.prototype, "widget", 2);
|
3764
3782
|
cn([
|
3765
|
-
|
3766
|
-
],
|
3783
|
+
C()
|
3784
|
+
], ze.prototype, "status", 2);
|
3767
3785
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", on);
|
3768
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
3786
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", G);
|
3769
3787
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", li);
|
3770
3788
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", ln);
|
3771
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
3789
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", ze);
|
3772
3790
|
class Aa {
|
3773
3791
|
constructor(e) {
|
3774
3792
|
this._message = null, this._host = e, e.addController(this);
|
@@ -3843,7 +3861,7 @@ class os {
|
|
3843
3861
|
}
|
3844
3862
|
class Ea {
|
3845
3863
|
constructor(e) {
|
3846
|
-
this.component = e, this.currentSession$ = new M(null), this.sessions = [], this.storage = null,
|
3864
|
+
this.component = e, this.currentSession$ = new M(null), this.sessions = [], this.storage = null, Ke(e, "handover").subscribe((t) => {
|
3847
3865
|
const n = this._createNewSession(
|
3848
3866
|
t.detail.providerKey,
|
3849
3867
|
t.detail.providerOptions
|
@@ -3972,9 +3990,9 @@ class Ta {
|
|
3972
3990
|
if (!e)
|
3973
3991
|
return Pe;
|
3974
3992
|
const t = e.removeEntryAction$.pipe(Ut(this.entries$)).pipe(
|
3975
|
-
|
3993
|
+
Qe(([i, r]) => r.filter((o) => o.id !== i.id))
|
3976
3994
|
), n = e.entries().pipe(
|
3977
|
-
|
3995
|
+
Qe((i) => {
|
3978
3996
|
const r = this.entries$.value, o = i.filter((a) => r.findIndex((l) => l.id === a.id) === -1);
|
3979
3997
|
return [...r, ...o];
|
3980
3998
|
})
|
@@ -4051,7 +4069,7 @@ class hn extends k {
|
|
4051
4069
|
`;
|
4052
4070
|
case Z.Agent:
|
4053
4071
|
return m`<div
|
4054
|
-
class=${
|
4072
|
+
class=${ve({
|
4055
4073
|
"conversation-agent-message": !0,
|
4056
4074
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
4057
4075
|
})}
|
@@ -4080,7 +4098,7 @@ class hn extends k {
|
|
4080
4098
|
</div>`;
|
4081
4099
|
case Z.User:
|
4082
4100
|
return m`<div
|
4083
|
-
class=${
|
4101
|
+
class=${ve({
|
4084
4102
|
"conversation-user-message": !0,
|
4085
4103
|
"has-error": this.entry.status === "failed"
|
4086
4104
|
})}
|
@@ -4110,7 +4128,7 @@ class hn extends k {
|
|
4110
4128
|
}
|
4111
4129
|
}
|
4112
4130
|
hn.styles = [
|
4113
|
-
|
4131
|
+
E`
|
4114
4132
|
:host {
|
4115
4133
|
box-sizing: border-box;
|
4116
4134
|
display: block;
|
@@ -4272,7 +4290,7 @@ class mt extends k {
|
|
4272
4290
|
}
|
4273
4291
|
}
|
4274
4292
|
mt.styles = [
|
4275
|
-
|
4293
|
+
E`
|
4276
4294
|
:host {
|
4277
4295
|
display: block;
|
4278
4296
|
}
|
@@ -4337,7 +4355,7 @@ class un extends k {
|
|
4337
4355
|
}
|
4338
4356
|
}
|
4339
4357
|
un.styles = [
|
4340
|
-
|
4358
|
+
E`
|
4341
4359
|
:host {
|
4342
4360
|
box-sizing: border-box;
|
4343
4361
|
display: block;
|
@@ -4365,7 +4383,7 @@ class ui extends k {
|
|
4365
4383
|
}
|
4366
4384
|
}
|
4367
4385
|
ui.styles = [
|
4368
|
-
|
4386
|
+
E`
|
4369
4387
|
:host {
|
4370
4388
|
display: block;
|
4371
4389
|
}
|
@@ -4408,7 +4426,7 @@ ui.styles = [
|
|
4408
4426
|
*/
|
4409
4427
|
class Nt extends rn {
|
4410
4428
|
constructor(e) {
|
4411
|
-
if (super(e), this.it = g, e.type !==
|
4429
|
+
if (super(e), this.it = g, e.type !== ft.CHILD)
|
4412
4430
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
4413
4431
|
}
|
4414
4432
|
render(e) {
|
@@ -4426,7 +4444,7 @@ class Nt extends rn {
|
|
4426
4444
|
}
|
4427
4445
|
}
|
4428
4446
|
Nt.directiveName = "unsafeHTML", Nt.resultType = 1;
|
4429
|
-
const Da =
|
4447
|
+
const Da = gt(Nt);
|
4430
4448
|
var Ha = Object.defineProperty, Ba = Object.getOwnPropertyDescriptor, Na = (s, e, t, n) => {
|
4431
4449
|
for (var i = n > 1 ? void 0 : n ? Ba(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4432
4450
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
@@ -4440,7 +4458,7 @@ class pn extends k {
|
|
4440
4458
|
}
|
4441
4459
|
}
|
4442
4460
|
pn.styles = [
|
4443
|
-
|
4461
|
+
E`
|
4444
4462
|
:host {
|
4445
4463
|
box-sizing: border-box;
|
4446
4464
|
}
|
@@ -4524,7 +4542,7 @@ function ls(s) {
|
|
4524
4542
|
}
|
4525
4543
|
return s;
|
4526
4544
|
}
|
4527
|
-
const
|
4545
|
+
const _e = { exec: () => null };
|
4528
4546
|
function cs(s, e) {
|
4529
4547
|
const t = s.replace(/\|/g, (r, o, a) => {
|
4530
4548
|
let l = !1, c = o;
|
@@ -4543,7 +4561,7 @@ function cs(s, e) {
|
|
4543
4561
|
n[i] = n[i].trim().replace(/\\\|/g, "|");
|
4544
4562
|
return n;
|
4545
4563
|
}
|
4546
|
-
function
|
4564
|
+
function Fe(s, e, t) {
|
4547
4565
|
const n = s.length;
|
4548
4566
|
if (n === 0)
|
4549
4567
|
return "";
|
@@ -4609,7 +4627,7 @@ function Ga(s, e) {
|
|
4609
4627
|
}).join(`
|
4610
4628
|
`);
|
4611
4629
|
}
|
4612
|
-
class
|
4630
|
+
class st {
|
4613
4631
|
// set by the lexer
|
4614
4632
|
constructor(e) {
|
4615
4633
|
x(this, "options");
|
@@ -4634,7 +4652,7 @@ class nt {
|
|
4634
4652
|
type: "code",
|
4635
4653
|
raw: t[0],
|
4636
4654
|
codeBlockStyle: "indented",
|
4637
|
-
text: this.options.pedantic ? n :
|
4655
|
+
text: this.options.pedantic ? n : Fe(n, `
|
4638
4656
|
`)
|
4639
4657
|
};
|
4640
4658
|
}
|
@@ -4656,7 +4674,7 @@ class nt {
|
|
4656
4674
|
if (t) {
|
4657
4675
|
let n = t[2].trim();
|
4658
4676
|
if (/#$/.test(n)) {
|
4659
|
-
const i =
|
4677
|
+
const i = Fe(n, "#");
|
4660
4678
|
(this.options.pedantic || !i || / $/.test(i)) && (n = i.trim());
|
4661
4679
|
}
|
4662
4680
|
return {
|
@@ -4681,7 +4699,7 @@ class nt {
|
|
4681
4699
|
if (t) {
|
4682
4700
|
let n = t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g, `
|
4683
4701
|
$1`);
|
4684
|
-
n =
|
4702
|
+
n = Fe(n.replace(/^ *>[ \t]?/gm, ""), `
|
4685
4703
|
`);
|
4686
4704
|
const i = this.lexer.state.top;
|
4687
4705
|
this.lexer.state.top = !0;
|
@@ -4721,17 +4739,17 @@ class nt {
|
|
4721
4739
|
let b = !1;
|
4722
4740
|
if (!u && /^ *$/.test(p) && (a += p + `
|
4723
4741
|
`, e = e.substring(p.length + 1), h = !0), !h) {
|
4724
|
-
const H = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
|
4742
|
+
const H = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), V = new RegExp(`^ {0,${Math.min(3, d - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), xn = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:\`\`\`|~~~)`), wn = new RegExp(`^ {0,${Math.min(3, d - 1)}}#`);
|
4725
4743
|
for (; e; ) {
|
4726
4744
|
const yt = e.split(`
|
4727
4745
|
`, 1)[0];
|
4728
|
-
if (p = yt, this.options.pedantic && (p = p.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), xn.test(p) || wn.test(p) || H.test(p) ||
|
4746
|
+
if (p = yt, this.options.pedantic && (p = p.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), xn.test(p) || wn.test(p) || H.test(p) || V.test(e))
|
4729
4747
|
break;
|
4730
4748
|
if (p.search(/[^ ]/) >= d || !p.trim())
|
4731
4749
|
l += `
|
4732
4750
|
` + p.slice(d);
|
4733
4751
|
else {
|
4734
|
-
if (b || u.search(/[^ ]/) >= 4 || xn.test(u) || wn.test(u) ||
|
4752
|
+
if (b || u.search(/[^ ]/) >= 4 || xn.test(u) || wn.test(u) || V.test(u))
|
4735
4753
|
break;
|
4736
4754
|
l += `
|
4737
4755
|
` + p;
|
@@ -4878,7 +4896,7 @@ class nt {
|
|
4878
4896
|
if (!this.options.pedantic && /^</.test(n)) {
|
4879
4897
|
if (!/>$/.test(n))
|
4880
4898
|
return;
|
4881
|
-
const o =
|
4899
|
+
const o = Fe(n.slice(0, -1), "\\");
|
4882
4900
|
if ((n.length - o.length) % 2 === 0)
|
4883
4901
|
return;
|
4884
4902
|
} else {
|
@@ -5046,43 +5064,43 @@ class nt {
|
|
5046
5064
|
}
|
5047
5065
|
}
|
5048
5066
|
}
|
5049
|
-
const Xa = /^(?: *(?:\n|$))+/,
|
5067
|
+
const Xa = /^(?: *(?:\n|$))+/, Va = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Ja = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ue = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, el = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, gi = /(?:[*+-]|\d{1,9}[.)])/, mi = y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, gi).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), fn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, tl = /^[^\n]+/, gn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, nl = y(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", gn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), sl = y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, gi).getRegex(), vt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", mn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, il = y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", mn).replace("tag", vt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), vi = y(fn).replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(), rl = y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", vi).getRegex(), vn = {
|
5050
5068
|
blockquote: rl,
|
5051
|
-
code:
|
5069
|
+
code: Va,
|
5052
5070
|
def: nl,
|
5053
|
-
fences:
|
5071
|
+
fences: Ja,
|
5054
5072
|
heading: el,
|
5055
|
-
hr:
|
5073
|
+
hr: Ue,
|
5056
5074
|
html: il,
|
5057
5075
|
lheading: mi,
|
5058
5076
|
list: sl,
|
5059
5077
|
newline: Xa,
|
5060
5078
|
paragraph: vi,
|
5061
|
-
table:
|
5079
|
+
table: _e,
|
5062
5080
|
text: tl
|
5063
|
-
}, us = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",
|
5081
|
+
}, us = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(), ol = {
|
5064
5082
|
...vn,
|
5065
5083
|
table: us,
|
5066
|
-
paragraph: y(fn).replace("hr",
|
5084
|
+
paragraph: y(fn).replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", us).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex()
|
5067
5085
|
}, al = {
|
5068
5086
|
...vn,
|
5069
5087
|
html: y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", mn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
5070
5088
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
5071
5089
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
5072
|
-
fences:
|
5090
|
+
fences: _e,
|
5073
5091
|
// fences not supported
|
5074
5092
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
5075
|
-
paragraph: y(fn).replace("hr",
|
5093
|
+
paragraph: y(fn).replace("hr", Ue).replace("heading", ` *#{1,6} *[^
|
5076
5094
|
]`).replace("lheading", mi).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
5077
|
-
}, bi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ll = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, yi = /^( {2,}|\\)\n(?!\s*$)/, cl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,
|
5078
|
-
_backpedal:
|
5095
|
+
}, bi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ll = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, yi = /^( {2,}|\\)\n(?!\s*$)/, cl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, je = "\\p{P}\\p{S}", hl = y(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, je).getRegex(), ul = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, pl = y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, je).getRegex(), dl = y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, je).getRegex(), fl = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, je).getRegex(), gl = y(/\\([punct])/, "gu").replace(/punct/g, je).getRegex(), ml = y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), vl = y(mn).replace("(?:-->|$)", "-->").getRegex(), bl = y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", vl).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), it = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, yl = y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", it).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), $i = y(/^!?\[(label)\]\[(ref)\]/).replace("label", it).replace("ref", gn).getRegex(), xi = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", gn).getRegex(), $l = y("reflink|nolink(?!\\()", "g").replace("reflink", $i).replace("nolink", xi).getRegex(), bn = {
|
5096
|
+
_backpedal: _e,
|
5079
5097
|
// only used for GFM url
|
5080
5098
|
anyPunctuation: gl,
|
5081
5099
|
autolink: ml,
|
5082
5100
|
blockSkip: ul,
|
5083
5101
|
br: yi,
|
5084
5102
|
code: ll,
|
5085
|
-
del:
|
5103
|
+
del: _e,
|
5086
5104
|
emStrongLDelim: pl,
|
5087
5105
|
emStrongRDelimAst: dl,
|
5088
5106
|
emStrongRDelimUnd: fl,
|
@@ -5094,11 +5112,11 @@ const Xa = /^(?: *(?:\n|$))+/, Ja = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Va =
|
|
5094
5112
|
reflinkSearch: $l,
|
5095
5113
|
tag: bl,
|
5096
5114
|
text: cl,
|
5097
|
-
url:
|
5115
|
+
url: _e
|
5098
5116
|
}, xl = {
|
5099
5117
|
...bn,
|
5100
|
-
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label",
|
5101
|
-
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",
|
5118
|
+
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", it).getRegex(),
|
5119
|
+
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", it).getRegex()
|
5102
5120
|
}, Ft = {
|
5103
5121
|
...bn,
|
5104
5122
|
escape: y(bi).replace("])", "~|])").getRegex(),
|
@@ -5110,11 +5128,11 @@ const Xa = /^(?: *(?:\n|$))+/, Ja = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Va =
|
|
5110
5128
|
...Ft,
|
5111
5129
|
br: y(yi).replace("{2,}", "*").getRegex(),
|
5112
5130
|
text: y(Ft.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
5113
|
-
},
|
5131
|
+
}, qe = {
|
5114
5132
|
normal: vn,
|
5115
5133
|
gfm: ol,
|
5116
5134
|
pedantic: al
|
5117
|
-
},
|
5135
|
+
}, $e = {
|
5118
5136
|
normal: bn,
|
5119
5137
|
gfm: Ft,
|
5120
5138
|
breaks: wl,
|
@@ -5127,24 +5145,24 @@ class z {
|
|
5127
5145
|
x(this, "state");
|
5128
5146
|
x(this, "tokenizer");
|
5129
5147
|
x(this, "inlineQueue");
|
5130
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || oe, this.options.tokenizer = this.options.tokenizer || new
|
5148
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || oe, this.options.tokenizer = this.options.tokenizer || new st(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
5131
5149
|
inLink: !1,
|
5132
5150
|
inRawBlock: !1,
|
5133
5151
|
top: !0
|
5134
5152
|
};
|
5135
5153
|
const t = {
|
5136
|
-
block:
|
5137
|
-
inline:
|
5154
|
+
block: qe.normal,
|
5155
|
+
inline: $e.normal
|
5138
5156
|
};
|
5139
|
-
this.options.pedantic ? (t.block =
|
5157
|
+
this.options.pedantic ? (t.block = qe.pedantic, t.inline = $e.pedantic) : this.options.gfm && (t.block = qe.gfm, this.options.breaks ? t.inline = $e.breaks : t.inline = $e.gfm), this.tokenizer.rules = t;
|
5140
5158
|
}
|
5141
5159
|
/**
|
5142
5160
|
* Expose Rules
|
5143
5161
|
*/
|
5144
5162
|
static get rules() {
|
5145
5163
|
return {
|
5146
|
-
block:
|
5147
|
-
inline:
|
5164
|
+
block: qe,
|
5165
|
+
inline: $e
|
5148
5166
|
};
|
5149
5167
|
}
|
5150
5168
|
/**
|
@@ -5343,7 +5361,7 @@ class z {
|
|
5343
5361
|
return t;
|
5344
5362
|
}
|
5345
5363
|
}
|
5346
|
-
class
|
5364
|
+
class rt {
|
5347
5365
|
constructor(e) {
|
5348
5366
|
x(this, "options");
|
5349
5367
|
this.options = e || oe;
|
@@ -5479,7 +5497,7 @@ class U {
|
|
5479
5497
|
x(this, "options");
|
5480
5498
|
x(this, "renderer");
|
5481
5499
|
x(this, "textRenderer");
|
5482
|
-
this.options = e || oe, this.options.renderer = this.options.renderer || new
|
5500
|
+
this.options = e || oe, this.options.renderer = this.options.renderer || new rt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new yn();
|
5483
5501
|
}
|
5484
5502
|
/**
|
5485
5503
|
* Static Parse Method
|
@@ -5668,7 +5686,7 @@ class U {
|
|
5668
5686
|
return n;
|
5669
5687
|
}
|
5670
5688
|
}
|
5671
|
-
class
|
5689
|
+
class Se {
|
5672
5690
|
constructor(e) {
|
5673
5691
|
x(this, "options");
|
5674
5692
|
this.options = e || oe;
|
@@ -5692,26 +5710,26 @@ class _e {
|
|
5692
5710
|
return e;
|
5693
5711
|
}
|
5694
5712
|
}
|
5695
|
-
x(
|
5713
|
+
x(Se, "passThroughHooks", /* @__PURE__ */ new Set([
|
5696
5714
|
"preprocess",
|
5697
5715
|
"postprocess",
|
5698
5716
|
"processAllTokens"
|
5699
5717
|
]));
|
5700
|
-
var Le, qt,
|
5718
|
+
var Le, qt, ot, wi;
|
5701
5719
|
class kl {
|
5702
5720
|
constructor(...e) {
|
5703
5721
|
$t(this, Le);
|
5704
|
-
$t(this,
|
5722
|
+
$t(this, ot);
|
5705
5723
|
x(this, "defaults", dn());
|
5706
5724
|
x(this, "options", this.setOptions);
|
5707
|
-
x(this, "parse",
|
5708
|
-
x(this, "parseInline",
|
5725
|
+
x(this, "parse", De(this, Le, qt).call(this, z.lex, U.parse));
|
5726
|
+
x(this, "parseInline", De(this, Le, qt).call(this, z.lexInline, U.parseInline));
|
5709
5727
|
x(this, "Parser", U);
|
5710
|
-
x(this, "Renderer",
|
5728
|
+
x(this, "Renderer", rt);
|
5711
5729
|
x(this, "TextRenderer", yn);
|
5712
5730
|
x(this, "Lexer", z);
|
5713
|
-
x(this, "Tokenizer",
|
5714
|
-
x(this, "Hooks",
|
5731
|
+
x(this, "Tokenizer", st);
|
5732
|
+
x(this, "Hooks", Se);
|
5715
5733
|
this.use(...e);
|
5716
5734
|
}
|
5717
5735
|
/**
|
@@ -5768,7 +5786,7 @@ class kl {
|
|
5768
5786
|
}
|
5769
5787
|
"childTokens" in r && r.childTokens && (t.childTokens[r.name] = r.childTokens);
|
5770
5788
|
}), i.extensions = t), n.renderer) {
|
5771
|
-
const r = this.defaults.renderer || new
|
5789
|
+
const r = this.defaults.renderer || new rt(this.defaults);
|
5772
5790
|
for (const o in n.renderer) {
|
5773
5791
|
if (!(o in r))
|
5774
5792
|
throw new Error(`renderer '${o}' does not exist`);
|
@@ -5783,7 +5801,7 @@ class kl {
|
|
5783
5801
|
i.renderer = r;
|
5784
5802
|
}
|
5785
5803
|
if (n.tokenizer) {
|
5786
|
-
const r = this.defaults.tokenizer || new
|
5804
|
+
const r = this.defaults.tokenizer || new st(this.defaults);
|
5787
5805
|
for (const o in n.tokenizer) {
|
5788
5806
|
if (!(o in r))
|
5789
5807
|
throw new Error(`tokenizer '${o}' does not exist`);
|
@@ -5798,14 +5816,14 @@ class kl {
|
|
5798
5816
|
i.tokenizer = r;
|
5799
5817
|
}
|
5800
5818
|
if (n.hooks) {
|
5801
|
-
const r = this.defaults.hooks || new
|
5819
|
+
const r = this.defaults.hooks || new Se();
|
5802
5820
|
for (const o in n.hooks) {
|
5803
5821
|
if (!(o in r))
|
5804
5822
|
throw new Error(`hook '${o}' does not exist`);
|
5805
5823
|
if (o === "options")
|
5806
5824
|
continue;
|
5807
5825
|
const a = o, l = n.hooks[a], c = r[a];
|
5808
|
-
|
5826
|
+
Se.passThroughHooks.has(o) ? r[a] = (h) => {
|
5809
5827
|
if (this.defaults.async)
|
5810
5828
|
return Promise.resolve(l.call(r, h)).then((p) => c.call(r, p));
|
5811
5829
|
const u = l.call(r, h);
|
@@ -5841,7 +5859,7 @@ Le = new WeakSet(), qt = function(e, t) {
|
|
5841
5859
|
return (n, i) => {
|
5842
5860
|
const r = { ...i }, o = { ...this.defaults, ...r };
|
5843
5861
|
this.defaults.async === !0 && r.async === !1 && (o.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), o.async = !0);
|
5844
|
-
const a =
|
5862
|
+
const a = De(this, ot, wi).call(this, !!o.silent, !!o.async);
|
5845
5863
|
if (typeof n > "u" || n === null)
|
5846
5864
|
return a(new Error("marked(): input parameter is undefined or null"));
|
5847
5865
|
if (typeof n != "string")
|
@@ -5858,7 +5876,7 @@ Le = new WeakSet(), qt = function(e, t) {
|
|
5858
5876
|
return a(l);
|
5859
5877
|
}
|
5860
5878
|
};
|
5861
|
-
},
|
5879
|
+
}, ot = new WeakSet(), wi = function(e, t) {
|
5862
5880
|
return (n) => {
|
5863
5881
|
if (n.message += `
|
5864
5882
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
@@ -5870,30 +5888,30 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
5870
5888
|
throw n;
|
5871
5889
|
};
|
5872
5890
|
};
|
5873
|
-
const
|
5891
|
+
const re = new kl();
|
5874
5892
|
function v(s, e) {
|
5875
|
-
return
|
5893
|
+
return re.parse(s, e);
|
5876
5894
|
}
|
5877
5895
|
v.options = v.setOptions = function(s) {
|
5878
|
-
return
|
5896
|
+
return re.setOptions(s), v.defaults = re.defaults, pi(v.defaults), v;
|
5879
5897
|
};
|
5880
5898
|
v.getDefaults = dn;
|
5881
5899
|
v.defaults = oe;
|
5882
5900
|
v.use = function(...s) {
|
5883
|
-
return
|
5901
|
+
return re.use(...s), v.defaults = re.defaults, pi(v.defaults), v;
|
5884
5902
|
};
|
5885
5903
|
v.walkTokens = function(s, e) {
|
5886
|
-
return
|
5904
|
+
return re.walkTokens(s, e);
|
5887
5905
|
};
|
5888
|
-
v.parseInline =
|
5906
|
+
v.parseInline = re.parseInline;
|
5889
5907
|
v.Parser = U;
|
5890
5908
|
v.parser = U.parse;
|
5891
|
-
v.Renderer =
|
5909
|
+
v.Renderer = rt;
|
5892
5910
|
v.TextRenderer = yn;
|
5893
5911
|
v.Lexer = z;
|
5894
5912
|
v.lexer = z.lex;
|
5895
|
-
v.Tokenizer =
|
5896
|
-
v.Hooks =
|
5913
|
+
v.Tokenizer = st;
|
5914
|
+
v.Hooks = Se;
|
5897
5915
|
v.parse = v;
|
5898
5916
|
v.options;
|
5899
5917
|
v.setOptions;
|
@@ -5977,7 +5995,7 @@ class bt extends k {
|
|
5977
5995
|
}
|
5978
5996
|
}
|
5979
5997
|
bt.styles = [
|
5980
|
-
|
5998
|
+
E`
|
5981
5999
|
:host {
|
5982
6000
|
box-sizing: border-box;
|
5983
6001
|
}
|
@@ -5985,10 +6003,13 @@ bt.styles = [
|
|
5985
6003
|
box-sizing: border-box;
|
5986
6004
|
}
|
5987
6005
|
p {
|
5988
|
-
margin: 0
|
6006
|
+
margin: 0;
|
5989
6007
|
padding: 0;
|
5990
6008
|
word-break: break-word;
|
5991
6009
|
}
|
6010
|
+
p:not(:first-of-type) {
|
6011
|
+
margin-top: var(--spacing-sm);
|
6012
|
+
}
|
5992
6013
|
a {
|
5993
6014
|
word-break: break-all;
|
5994
6015
|
}
|
@@ -6004,7 +6025,7 @@ ki([
|
|
6004
6025
|
w({ attribute: !1 })
|
6005
6026
|
], bt.prototype, "message", 2);
|
6006
6027
|
ki([
|
6007
|
-
|
6028
|
+
C()
|
6008
6029
|
], bt.prototype, "showLightbox", 2);
|
6009
6030
|
var Cl = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, El = (s, e, t, n) => {
|
6010
6031
|
for (var i = n > 1 ? void 0 : n ? Al(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
@@ -6055,7 +6076,7 @@ class $n extends k {
|
|
6055
6076
|
}
|
6056
6077
|
}
|
6057
6078
|
$n.styles = [
|
6058
|
-
|
6079
|
+
E`
|
6059
6080
|
.lightbox {
|
6060
6081
|
position: fixed;
|
6061
6082
|
z-index: 9999;
|
@@ -6094,7 +6115,7 @@ $n.styles = [
|
|
6094
6115
|
El([
|
6095
6116
|
w({ attribute: !0 })
|
6096
6117
|
], $n.prototype, "imageUrl", 2);
|
6097
|
-
var Tl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor,
|
6118
|
+
var Tl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, X = (s, e, t, n) => {
|
6098
6119
|
for (var i = n > 1 ? void 0 : n ? Ll(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6099
6120
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6100
6121
|
return n && i && Tl(e, t, i), i;
|
@@ -6128,7 +6149,7 @@ class R extends _i {
|
|
6128
6149
|
this.stateMachine.isTyping()
|
6129
6150
|
]).subscribe(([n, i]) => {
|
6130
6151
|
this.entries = n, this.typing = i;
|
6131
|
-
}), this.userSubmitSubscription =
|
6152
|
+
}), this.userSubmitSubscription = Ke(
|
6132
6153
|
this,
|
6133
6154
|
"user-submit"
|
6134
6155
|
).pipe(Ut(this.provider$)).subscribe(([n, i]) => {
|
@@ -6258,7 +6279,7 @@ class R extends _i {
|
|
6258
6279
|
const e = this.application.texts;
|
6259
6280
|
return this.conversationState$.value === "waiting" && ((t = this.application) != null && t.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init")), m` <div
|
6260
6281
|
@action=${this._actionHandler}
|
6261
|
-
class=${
|
6282
|
+
class=${ve({
|
6262
6283
|
conversation: !0,
|
6263
6284
|
disabled: this.disabledInput,
|
6264
6285
|
"conversation--has-toast": this.toast.hasMessage(),
|
@@ -6275,7 +6296,7 @@ class R extends _i {
|
|
6275
6296
|
</button>
|
6276
6297
|
</div>` : g}
|
6277
6298
|
<div
|
6278
|
-
class=${
|
6299
|
+
class=${ve({
|
6279
6300
|
"conversation-content": !0,
|
6280
6301
|
"conversation-overlay-mode": this.chatOverlayActive
|
6281
6302
|
})}
|
@@ -6342,7 +6363,7 @@ class R extends _i {
|
|
6342
6363
|
}
|
6343
6364
|
R.styles = [
|
6344
6365
|
_i.styles || [],
|
6345
|
-
|
6366
|
+
E`
|
6346
6367
|
:host {
|
6347
6368
|
font-family: var(--font-family);
|
6348
6369
|
/* --send-icon-color: var(--gray-dark-color, #a6a6a6); */
|
@@ -6588,29 +6609,29 @@ R.styles = [
|
|
6588
6609
|
}
|
6589
6610
|
`
|
6590
6611
|
];
|
6591
|
-
|
6592
|
-
|
6612
|
+
X([
|
6613
|
+
C()
|
6593
6614
|
], R.prototype, "message", 2);
|
6594
|
-
|
6595
|
-
|
6615
|
+
X([
|
6616
|
+
C()
|
6596
6617
|
], R.prototype, "disabledInput", 2);
|
6597
|
-
|
6598
|
-
|
6618
|
+
X([
|
6619
|
+
C()
|
6599
6620
|
], R.prototype, "disabledSubmit", 2);
|
6600
|
-
|
6601
|
-
|
6621
|
+
X([
|
6622
|
+
C()
|
6602
6623
|
], R.prototype, "chatOverlayActive", 2);
|
6603
|
-
|
6604
|
-
|
6624
|
+
X([
|
6625
|
+
C()
|
6605
6626
|
], R.prototype, "textAreaLength", 2);
|
6606
|
-
|
6607
|
-
|
6627
|
+
X([
|
6628
|
+
C()
|
6608
6629
|
], R.prototype, "platform", 2);
|
6609
|
-
|
6610
|
-
|
6630
|
+
X([
|
6631
|
+
C()
|
6611
6632
|
], R.prototype, "entries", 2);
|
6612
|
-
|
6613
|
-
|
6633
|
+
X([
|
6634
|
+
C()
|
6614
6635
|
], R.prototype, "typing", 2);
|
6615
6636
|
const Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6616
6637
|
__proto__: null,
|
@@ -6621,7 +6642,7 @@ export {
|
|
6621
6642
|
wr as Agent,
|
6622
6643
|
R as Conversation,
|
6623
6644
|
Rl as ConversationComponent,
|
6624
|
-
|
6645
|
+
ct as ConversationEntry,
|
6625
6646
|
Z as ConversationMessageType,
|
6626
6647
|
ds as ConversationPlatform,
|
6627
6648
|
Il as ConversationProvider,
|