@telia-ace/widget-conversational-hub 1.1.123-rc.4 → 1.1.123-rc.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +38 -23
- package/index.mjs +114 -93
- package/package.json +3 -3
package/index.mjs
CHANGED
|
@@ -460,7 +460,7 @@ function Ma(n) {
|
|
|
460
460
|
}, t);
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
|
-
var
|
|
463
|
+
var K = (function() {
|
|
464
464
|
function n(e) {
|
|
465
465
|
e && (this._subscribe = e);
|
|
466
466
|
}
|
|
@@ -662,12 +662,12 @@ var za = (function(n) {
|
|
|
662
662
|
var s = this, i = s.hasError, r = s.thrownError, o = s.isStopped;
|
|
663
663
|
i ? t.error(r) : o && t.complete();
|
|
664
664
|
}, e.prototype.asObservable = function() {
|
|
665
|
-
var t = new
|
|
665
|
+
var t = new K();
|
|
666
666
|
return t.source = this, t;
|
|
667
667
|
}, e.create = function(t, s) {
|
|
668
668
|
return new zi(t, s);
|
|
669
669
|
}, e;
|
|
670
|
-
})(
|
|
670
|
+
})(K), zi = (function(n) {
|
|
671
671
|
at(e, n);
|
|
672
672
|
function e(t, s) {
|
|
673
673
|
var i = n.call(this) || this;
|
|
@@ -709,7 +709,7 @@ var za = (function(n) {
|
|
|
709
709
|
}, e.prototype.next = function(t) {
|
|
710
710
|
n.prototype.next.call(this, this._value = t);
|
|
711
711
|
}, e;
|
|
712
|
-
})(I), Pt = new
|
|
712
|
+
})(I), Pt = new K(function(n) {
|
|
713
713
|
return n.complete();
|
|
714
714
|
});
|
|
715
715
|
function Ha(n) {
|
|
@@ -733,10 +733,10 @@ var Ts = (function(n) {
|
|
|
733
733
|
function Yr(n) {
|
|
734
734
|
return E(n == null ? void 0 : n.then);
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Kr(n) {
|
|
737
737
|
return E(n[Es]);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function Xr(n) {
|
|
740
740
|
return Symbol.asyncIterator && E(n == null ? void 0 : n[Symbol.asyncIterator]);
|
|
741
741
|
}
|
|
742
742
|
function Vr(n) {
|
|
@@ -784,16 +784,16 @@ function to(n) {
|
|
|
784
784
|
return E(n == null ? void 0 : n.getReader);
|
|
785
785
|
}
|
|
786
786
|
function ce(n) {
|
|
787
|
-
if (n instanceof
|
|
787
|
+
if (n instanceof K)
|
|
788
788
|
return n;
|
|
789
789
|
if (n != null) {
|
|
790
|
-
if (
|
|
790
|
+
if (Kr(n))
|
|
791
791
|
return qa(n);
|
|
792
792
|
if (Ts(n))
|
|
793
793
|
return Wa(n);
|
|
794
794
|
if (Yr(n))
|
|
795
795
|
return Ga(n);
|
|
796
|
-
if (
|
|
796
|
+
if (Xr(n))
|
|
797
797
|
return no(n);
|
|
798
798
|
if (Jr(n))
|
|
799
799
|
return Za(n);
|
|
@@ -803,7 +803,7 @@ function ce(n) {
|
|
|
803
803
|
throw Vr(n);
|
|
804
804
|
}
|
|
805
805
|
function qa(n) {
|
|
806
|
-
return new
|
|
806
|
+
return new K(function(e) {
|
|
807
807
|
var t = n[Es]();
|
|
808
808
|
if (E(t.subscribe))
|
|
809
809
|
return t.subscribe(e);
|
|
@@ -811,14 +811,14 @@ function qa(n) {
|
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
813
|
function Wa(n) {
|
|
814
|
-
return new
|
|
814
|
+
return new K(function(e) {
|
|
815
815
|
for (var t = 0; t < n.length && !e.closed; t++)
|
|
816
816
|
e.next(n[t]);
|
|
817
817
|
e.complete();
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
820
|
function Ga(n) {
|
|
821
|
-
return new
|
|
821
|
+
return new K(function(e) {
|
|
822
822
|
n.then(function(t) {
|
|
823
823
|
e.closed || (e.next(t), e.complete());
|
|
824
824
|
}, function(t) {
|
|
@@ -827,7 +827,7 @@ function Ga(n) {
|
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
829
|
function Za(n) {
|
|
830
|
-
return new
|
|
830
|
+
return new K(function(e) {
|
|
831
831
|
var t, s;
|
|
832
832
|
try {
|
|
833
833
|
for (var i = nt(n), r = i.next(); !r.done; r = i.next()) {
|
|
@@ -848,8 +848,8 @@ function Za(n) {
|
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
850
|
function no(n) {
|
|
851
|
-
return new
|
|
852
|
-
|
|
851
|
+
return new K(function(e) {
|
|
852
|
+
Ka(n, e).catch(function(t) {
|
|
853
853
|
return e.error(t);
|
|
854
854
|
});
|
|
855
855
|
});
|
|
@@ -857,7 +857,7 @@ function no(n) {
|
|
|
857
857
|
function Ya(n) {
|
|
858
858
|
return no(eo(n));
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function Ka(n, e) {
|
|
861
861
|
var t, s, i, r;
|
|
862
862
|
return Aa(this, void 0, void 0, function() {
|
|
863
863
|
var o, a;
|
|
@@ -927,14 +927,14 @@ function io(n, e) {
|
|
|
927
927
|
}, e));
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Xa(n, e) {
|
|
931
931
|
return ce(n).pipe(io(e), so(e));
|
|
932
932
|
}
|
|
933
933
|
function Va(n, e) {
|
|
934
934
|
return ce(n).pipe(io(e), so(e));
|
|
935
935
|
}
|
|
936
936
|
function Qa(n, e) {
|
|
937
|
-
return new
|
|
937
|
+
return new K(function(t) {
|
|
938
938
|
var s = 0;
|
|
939
939
|
return e.schedule(function() {
|
|
940
940
|
s === n.length ? t.complete() : (t.next(n[s++]), t.closed || this.schedule());
|
|
@@ -942,7 +942,7 @@ function Qa(n, e) {
|
|
|
942
942
|
});
|
|
943
943
|
}
|
|
944
944
|
function Ja(n, e) {
|
|
945
|
-
return new
|
|
945
|
+
return new K(function(t) {
|
|
946
946
|
var s;
|
|
947
947
|
return ke(t, e, function() {
|
|
948
948
|
s = n[Qr](), ke(t, e, function() {
|
|
@@ -963,7 +963,7 @@ function Ja(n, e) {
|
|
|
963
963
|
function ro(n, e) {
|
|
964
964
|
if (!n)
|
|
965
965
|
throw new Error("Iterable cannot be null");
|
|
966
|
-
return new
|
|
966
|
+
return new K(function(t) {
|
|
967
967
|
ke(t, e, function() {
|
|
968
968
|
var s = n[Symbol.asyncIterator]();
|
|
969
969
|
ke(t, e, function() {
|
|
@@ -979,13 +979,13 @@ function el(n, e) {
|
|
|
979
979
|
}
|
|
980
980
|
function tl(n, e) {
|
|
981
981
|
if (n != null) {
|
|
982
|
-
if (
|
|
983
|
-
return
|
|
982
|
+
if (Kr(n))
|
|
983
|
+
return Xa(n, e);
|
|
984
984
|
if (Ts(n))
|
|
985
985
|
return Qa(n, e);
|
|
986
986
|
if (Yr(n))
|
|
987
987
|
return Va(n, e);
|
|
988
|
-
if (
|
|
988
|
+
if (Xr(n))
|
|
989
989
|
return ro(n, e);
|
|
990
990
|
if (Jr(n))
|
|
991
991
|
return Ja(n, e);
|
|
@@ -1052,7 +1052,7 @@ function hl() {
|
|
|
1052
1052
|
var t = Cs(n), s = Zr(n), i = ll(n), r = i.args, o = i.keys;
|
|
1053
1053
|
if (r.length === 0)
|
|
1054
1054
|
return $n([], t);
|
|
1055
|
-
var a = new
|
|
1055
|
+
var a = new K(dl(r, t, o ? function(l) {
|
|
1056
1056
|
return ul(o, l);
|
|
1057
1057
|
} : Ot));
|
|
1058
1058
|
return s ? a.pipe(oo(s)) : a;
|
|
@@ -1136,7 +1136,7 @@ function sn(n, e, t, s) {
|
|
|
1136
1136
|
})(ce(n));
|
|
1137
1137
|
if (!r)
|
|
1138
1138
|
throw new TypeError("Invalid event target");
|
|
1139
|
-
return new
|
|
1139
|
+
return new K(function(a) {
|
|
1140
1140
|
var l = function() {
|
|
1141
1141
|
for (var c = [], u = 0; u < arguments.length; u++)
|
|
1142
1142
|
c[u] = arguments[u];
|
|
@@ -1746,8 +1746,8 @@ Ye.elementStyles = [], Ye.shadowRootOptions = { mode: "open" }, Ye[$t("elementPr
|
|
|
1746
1746
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1747
1747
|
*/
|
|
1748
1748
|
const xt = globalThis, on = xt.trustedTypes, Zi = on ? on.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, uo = "$lit$", we = `lit$${Math.random().toFixed(9).slice(2)}$`, ho = "?" + we, Ul = `<${ho}>`, De = document, St = () => De.createComment(""), _t = (n) => n === null || typeof n != "object" && typeof n != "function", Is = Array.isArray, zl = (n) => Is(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Wn = `[
|
|
1749
|
-
\f\r]`, dt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Yi = /-->/g,
|
|
1750
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
1749
|
+
\f\r]`, dt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Yi = /-->/g, Ki = />/g, Le = RegExp(`>|${Wn}(?:([^\\s"'>=/]+)(${Wn}*=${Wn}*(?:[^
|
|
1750
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Xi = /'/g, Vi = /"/g, po = /^(?:script|style|textarea|title)$/i, Bl = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), w = Bl(1), _e = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), Qi = /* @__PURE__ */ new WeakMap(), Pe = De.createTreeWalker(De, 129);
|
|
1751
1751
|
function fo(n, e) {
|
|
1752
1752
|
if (!Is(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1753
1753
|
return Zi !== void 0 ? Zi.createHTML(e) : e;
|
|
@@ -1758,7 +1758,7 @@ const Hl = (n, e) => {
|
|
|
1758
1758
|
for (let a = 0; a < t; a++) {
|
|
1759
1759
|
const l = n[a];
|
|
1760
1760
|
let c, u, p = -1, d = 0;
|
|
1761
|
-
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === dt ? u[1] === "!--" ? o = Yi : u[1] !== void 0 ? o =
|
|
1761
|
+
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === dt ? u[1] === "!--" ? o = Yi : u[1] !== void 0 ? o = Ki : u[2] !== void 0 ? (po.test(u[2]) && (i = RegExp("</" + u[2], "g")), o = Le) : u[3] !== void 0 && (o = Le) : o === Le ? u[0] === ">" ? (o = i ?? dt, p = -1) : u[1] === void 0 ? p = -2 : (p = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? Le : u[3] === '"' ? Vi : Xi) : o === Vi || o === Xi ? o = Le : o === Yi || o === Ki ? o = dt : (o = Le, i = void 0);
|
|
1762
1762
|
const g = o === Le && n[a + 1].startsWith("/>") ? " " : "";
|
|
1763
1763
|
r += o === dt ? l + Ul : p >= 0 ? (s.push(c), l.slice(0, p) + uo + l.slice(p) + we + g) : l + we + (p === -2 ? a : g);
|
|
1764
1764
|
}
|
|
@@ -2012,7 +2012,7 @@ M._$litElement$ = !0, M.finalized = !0, (Hr = Me.litElementHydrateSupport) == nu
|
|
|
2012
2012
|
const Zn = Me.litElementPolyfillSupport;
|
|
2013
2013
|
Zn == null || Zn({ LitElement: M });
|
|
2014
2014
|
(Me.litElementVersions ?? (Me.litElementVersions = [])).push("4.2.1");
|
|
2015
|
-
const Yl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' },
|
|
2015
|
+
const Yl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, Kl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, mo = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Xl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Vl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, Ji = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, Ql = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' }, Jl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, er = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, Ke = {
|
|
2016
2016
|
allRenderFn: !1,
|
|
2017
2017
|
cmpDidLoad: !0,
|
|
2018
2018
|
cmpDidUnload: !1,
|
|
@@ -2096,7 +2096,7 @@ const Yl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" f
|
|
|
2096
2096
|
transformTagName: !1,
|
|
2097
2097
|
attachStyles: !0
|
|
2098
2098
|
};
|
|
2099
|
-
let
|
|
2099
|
+
let Xe, vo, wn, bo = !1, an = !1, Ms = !1, X = !1, tr = null, ds = !1;
|
|
2100
2100
|
const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} }, yo = kn.HTMLElement || class {
|
|
2101
2101
|
}, q = {
|
|
2102
2102
|
$flags$: 0,
|
|
@@ -2130,7 +2130,7 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2130
2130
|
});
|
|
2131
2131
|
}, sc = (n, e) => (t) => {
|
|
2132
2132
|
try {
|
|
2133
|
-
|
|
2133
|
+
Ke.lazyLoad || n.$hostElement$[e](t);
|
|
2134
2134
|
} catch (s) {
|
|
2135
2135
|
Nt(s);
|
|
2136
2136
|
}
|
|
@@ -2236,7 +2236,7 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2236
2236
|
or(i, s, r[s], o[s], t, e.$flags$);
|
|
2237
2237
|
}, cn = (n, e, t, s) => {
|
|
2238
2238
|
let i = e.$children$[t], r = 0, o, a, l;
|
|
2239
|
-
if (bo || (Ms = !0, i.$tag$ === "slot" && (
|
|
2239
|
+
if (bo || (Ms = !0, i.$tag$ === "slot" && (Xe && s.classList.add(Xe + "-s"), i.$flags$ |= i.$children$ ? (
|
|
2240
2240
|
// slot element has fallback content
|
|
2241
2241
|
2
|
|
2242
2242
|
) : (
|
|
@@ -2247,10 +2247,10 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2247
2247
|
else if (i.$flags$ & 1)
|
|
2248
2248
|
o = i.$elm$ = le.createTextNode("");
|
|
2249
2249
|
else {
|
|
2250
|
-
if (
|
|
2250
|
+
if (X || (X = i.$tag$ === "svg"), o = i.$elm$ = le.createElementNS(X ? uc : hc, i.$flags$ & 2 ? "slot-fb" : i.$tag$), X && i.$tag$ === "foreignObject" && (X = !1), wo(null, i, X), dc(Xe) && o["s-si"] !== Xe && o.classList.add(o["s-si"] = Xe), i.$children$)
|
|
2251
2251
|
for (r = 0; r < i.$children$.length; ++r)
|
|
2252
2252
|
a = cn(n, i, r, o), a && o.appendChild(a);
|
|
2253
|
-
i.$tag$ === "svg" ?
|
|
2253
|
+
i.$tag$ === "svg" ? X = !1 : o.tagName === "foreignObject" && (X = !0);
|
|
2254
2254
|
}
|
|
2255
2255
|
return o["s-hn"] = wn, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = vo, o["s-sn"] = i.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === i.$tag$ && n.$elm$ && Et(n.$elm$, !1)), o;
|
|
2256
2256
|
}, Et = (n, e) => {
|
|
@@ -2299,7 +2299,7 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2299
2299
|
}, Zt = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, Us = (n) => n && n["s-ol"] || n, _o = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, Ve = (n, e) => {
|
|
2300
2300
|
const t = e.$elm$ = n.$elm$, s = n.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
|
2301
2301
|
let a;
|
|
2302
|
-
o === null ? (
|
|
2302
|
+
o === null ? (X = r === "svg" ? !0 : r === "foreignObject" ? !1 : X, r === "slot" || wo(n, e, X), s !== null && i !== null ? vc(t, s, e, i) : i !== null ? (n.$text$ !== null && (t.textContent = ""), ko(t, null, e, i, 0, i.length - 1)) : s !== null && So(s, 0, s.length - 1), X && r === "svg" && (X = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
|
|
2303
2303
|
}, Eo = (n) => {
|
|
2304
2304
|
let e = n.childNodes, t, s, i, r, o, a;
|
|
2305
2305
|
for (s = 0, i = e.length; s < i; s++)
|
|
@@ -2337,7 +2337,7 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2337
2337
|
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(Co);
|
|
2338
2338
|
}, bc = (n, e) => {
|
|
2339
2339
|
const t = n.$hostElement$, s = n.$cmpMeta$, i = n.$vnode$ || ln(null, null), r = pc(e) ? e : et(null, null, e);
|
|
2340
|
-
wn = t.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t,
|
|
2340
|
+
wn = t.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, Xe = t["s-sc"], vo = t["s-cr"], bo = (s.$flags$ & 1) !== 0, an = !1, Ve(i, r);
|
|
2341
2341
|
{
|
|
2342
2342
|
if (q.$flags$ |= 1, Ms) {
|
|
2343
2343
|
Ao(r.$elm$);
|
|
@@ -2382,7 +2382,7 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2382
2382
|
_c(n, e, s), r(), i(), Ec(n);
|
|
2383
2383
|
}, _c = (n, e, t) => {
|
|
2384
2384
|
try {
|
|
2385
|
-
tr = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (
|
|
2385
|
+
tr = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (Ke.hasRenderFn || Ke.reflect) && (Ke.vdomRender || Ke.reflect) && (Ke.hydrateServerSide || bc(n, e));
|
|
2386
2386
|
} catch (a) {
|
|
2387
2387
|
Nt(a, n.$hostElement$);
|
|
2388
2388
|
}
|
|
@@ -2587,7 +2587,7 @@ function Zc() {
|
|
|
2587
2587
|
function Yc() {
|
|
2588
2588
|
return fs().vocadsIconsRegistered;
|
|
2589
2589
|
}
|
|
2590
|
-
const
|
|
2590
|
+
const Kc = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Xc = /* @__PURE__ */ Ro(class extends yo {
|
|
2591
2591
|
constructor() {
|
|
2592
2592
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
|
2593
2593
|
}
|
|
@@ -2619,7 +2619,7 @@ const Xc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
2619
2619
|
return et(Ds, { class: `telia-icon telia-icon--${this.size}` }, et("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), et("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
|
2620
2620
|
}
|
|
2621
2621
|
static get style() {
|
|
2622
|
-
return
|
|
2622
|
+
return Kc;
|
|
2623
2623
|
}
|
|
2624
2624
|
}, [0, "telia-icon", {
|
|
2625
2625
|
name: [1],
|
|
@@ -2634,7 +2634,7 @@ function Vc() {
|
|
|
2634
2634
|
["telia-icon", "telia-vst"].forEach((e) => {
|
|
2635
2635
|
switch (e) {
|
|
2636
2636
|
case "telia-icon":
|
|
2637
|
-
customElements.get(e) || customElements.define(e,
|
|
2637
|
+
customElements.get(e) || customElements.define(e, Xc);
|
|
2638
2638
|
break;
|
|
2639
2639
|
case "telia-vst":
|
|
2640
2640
|
customElements.get(e) || Po();
|
|
@@ -2887,13 +2887,13 @@ au([
|
|
|
2887
2887
|
], dn.prototype, "anchor");
|
|
2888
2888
|
const lu = /* @__PURE__ */ new WeakMap();
|
|
2889
2889
|
let pr = 0;
|
|
2890
|
-
const
|
|
2890
|
+
const Kn = /* @__PURE__ */ new Map(), fr = /* @__PURE__ */ new WeakSet(), gr = () => new Promise(((n) => requestAnimationFrame(n))), cu = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], uu = [{ opacity: 0 }], mr = [{ opacity: 0 }, { opacity: 1 }], vr = (n, e) => {
|
|
2891
2891
|
const t = n - e;
|
|
2892
2892
|
return t === 0 ? void 0 : t;
|
|
2893
2893
|
}, br = (n, e) => {
|
|
2894
2894
|
const t = n / e;
|
|
2895
2895
|
return t === 1 ? void 0 : t;
|
|
2896
|
-
},
|
|
2896
|
+
}, Xn = { left: (n, e) => {
|
|
2897
2897
|
const t = vr(n, e);
|
|
2898
2898
|
return { value: t, transform: t == null || isNaN(t) ? void 0 : `translateX(${t}px)` };
|
|
2899
2899
|
}, top: (n, e) => {
|
|
@@ -2948,7 +2948,7 @@ class pu extends Mo {
|
|
|
2948
2948
|
m() {
|
|
2949
2949
|
const e = {}, t = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
|
2950
2950
|
return this.options.properties.forEach(((i) => {
|
|
2951
|
-
const r = t[i] ?? (
|
|
2951
|
+
const r = t[i] ?? (Xn[i] ? void 0 : s[i]), o = Number(r);
|
|
2952
2952
|
e[i] = isNaN(o) ? r + "" : o;
|
|
2953
2953
|
})), e;
|
|
2954
2954
|
}
|
|
@@ -2973,9 +2973,9 @@ class pu extends Mo {
|
|
|
2973
2973
|
const { from: r, to: o } = this.N(this.A, i, t);
|
|
2974
2974
|
this.log("measured", [this.A, i, r, o]), e = this.calculateKeyframes(r, o);
|
|
2975
2975
|
} else {
|
|
2976
|
-
const r =
|
|
2976
|
+
const r = Kn.get(this.options.inId);
|
|
2977
2977
|
if (r) {
|
|
2978
|
-
|
|
2978
|
+
Kn.delete(this.options.inId);
|
|
2979
2979
|
const { from: o, to: a } = this.N(r, i, t);
|
|
2980
2980
|
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, pr++, e.forEach(((l) => l.zIndex = pr));
|
|
2981
2981
|
} else this.options.in && (e = [...this.options.in, {}]);
|
|
@@ -2993,7 +2993,7 @@ class pu extends Mo {
|
|
|
2993
2993
|
}
|
|
2994
2994
|
async disconnected() {
|
|
2995
2995
|
var t;
|
|
2996
|
-
if (!this.h || (this.options.id !== void 0 &&
|
|
2996
|
+
if (!this.h || (this.options.id !== void 0 && Kn.set(this.options.id, this.A), this.options.out === void 0)) return;
|
|
2997
2997
|
if (this.prepare(), await gr(), (t = this.i) == null ? void 0 : t.isConnected) {
|
|
2998
2998
|
const s = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
2999
2999
|
if (this.i.insertBefore(this.element, s), this.options.stabilizeOut) {
|
|
@@ -3049,8 +3049,8 @@ class pu extends Mo {
|
|
|
3049
3049
|
const a = {};
|
|
3050
3050
|
for (const l in t) {
|
|
3051
3051
|
const c = e[l], u = t[l];
|
|
3052
|
-
if (l in
|
|
3053
|
-
const p =
|
|
3052
|
+
if (l in Xn) {
|
|
3053
|
+
const p = Xn[l];
|
|
3054
3054
|
if (c === void 0 || u === void 0) continue;
|
|
3055
3055
|
const d = p(c, u);
|
|
3056
3056
|
d.transform !== void 0 && (a[l] = d.value, o = !0, i.transform = `${i.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(i, d.overrideFrom));
|
|
@@ -3199,7 +3199,7 @@ const ei = class ei extends M {
|
|
|
3199
3199
|
return w`<div
|
|
3200
3200
|
class=${rt({
|
|
3201
3201
|
"trigger-container": !0,
|
|
3202
|
-
hidden: !this.triggerVisible
|
|
3202
|
+
"ace-hidden": !this.triggerVisible
|
|
3203
3203
|
})}
|
|
3204
3204
|
${ae(this.containerRef)}
|
|
3205
3205
|
>
|
|
@@ -3283,7 +3283,7 @@ ei.styles = [
|
|
|
3283
3283
|
gap: 1rem;
|
|
3284
3284
|
}
|
|
3285
3285
|
|
|
3286
|
-
.trigger-container.hidden {
|
|
3286
|
+
.trigger-container.ace-hidden {
|
|
3287
3287
|
display: none;
|
|
3288
3288
|
}
|
|
3289
3289
|
|
|
@@ -3843,19 +3843,19 @@ ni.styles = Z`
|
|
|
3843
3843
|
}
|
|
3844
3844
|
}
|
|
3845
3845
|
|
|
3846
|
-
:host(.expanded) {
|
|
3846
|
+
:host(.ace-expanded) {
|
|
3847
3847
|
opacity: 1;
|
|
3848
3848
|
animation: slideUp 0.3s linear;
|
|
3849
3849
|
}
|
|
3850
3850
|
|
|
3851
|
-
:host(.hidden) {
|
|
3851
|
+
:host(.ace-hidden) {
|
|
3852
3852
|
opacity: 0;
|
|
3853
3853
|
animation: slideDown 0.3s linear;
|
|
3854
3854
|
pointer-events: none;
|
|
3855
3855
|
}
|
|
3856
3856
|
|
|
3857
|
-
:host(.hidden.embedded),
|
|
3858
|
-
:host(.expanded.embedded) {
|
|
3857
|
+
:host(.ace-hidden.embedded),
|
|
3858
|
+
:host(.ace-expanded.embedded) {
|
|
3859
3859
|
animation: none;
|
|
3860
3860
|
}
|
|
3861
3861
|
`;
|
|
@@ -4184,7 +4184,7 @@ const ii = class ii extends M {
|
|
|
4184
4184
|
}
|
|
4185
4185
|
_renderDeliveryStatus(e) {
|
|
4186
4186
|
return e === "delivered" ? w`<telia-icon
|
|
4187
|
-
svg=${
|
|
4187
|
+
svg=${Kl.svg}
|
|
4188
4188
|
size="sm"
|
|
4189
4189
|
></telia-icon>` : e === "failed" ? w`<telia-icon
|
|
4190
4190
|
svg=${Yl.svg}
|
|
@@ -4702,18 +4702,18 @@ function mt(n, e) {
|
|
|
4702
4702
|
}
|
|
4703
4703
|
return t;
|
|
4704
4704
|
}
|
|
4705
|
-
const Er = W(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Qn = W(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Jn = W(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Bu = W(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), es = W(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Hu = W(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ar = W(["#text"]), Cr = W(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), ts = W(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Tr = W(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]),
|
|
4705
|
+
const Er = W(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Qn = W(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Jn = W(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Bu = W(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), es = W(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Hu = W(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ar = W(["#text"]), Cr = W(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), ts = W(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Tr = W(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Kt = W(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Fu = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ju = J(/<%[\w\W]*|[\w\W]*%>/gm), qu = J(/\$\{[\w\W]*/gm), Wu = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), Gu = J(/^aria-[\-\w]+$/), Go = J(
|
|
4706
4706
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4707
4707
|
// eslint-disable-line no-useless-escape
|
|
4708
4708
|
), Zu = J(/^(?:\w+script|data):/i), Yu = J(
|
|
4709
4709
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4710
4710
|
// eslint-disable-line no-control-regex
|
|
4711
|
-
), Zo = J(/^html$/i),
|
|
4711
|
+
), Zo = J(/^html$/i), Ku = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4712
4712
|
var Rr = /* @__PURE__ */ Object.freeze({
|
|
4713
4713
|
__proto__: null,
|
|
4714
4714
|
ARIA_ATTR: Gu,
|
|
4715
4715
|
ATTR_WHITESPACE: Yu,
|
|
4716
|
-
CUSTOM_ELEMENT:
|
|
4716
|
+
CUSTOM_ELEMENT: Ku,
|
|
4717
4717
|
DATA_ATTR: Wu,
|
|
4718
4718
|
DOCTYPE_NAME: Zo,
|
|
4719
4719
|
ERB_EXPR: ju,
|
|
@@ -4729,7 +4729,7 @@ const vt = {
|
|
|
4729
4729
|
progressingInstruction: 7,
|
|
4730
4730
|
comment: 8,
|
|
4731
4731
|
document: 9
|
|
4732
|
-
},
|
|
4732
|
+
}, Xu = function() {
|
|
4733
4733
|
return typeof window > "u" ? null : window;
|
|
4734
4734
|
}, Vu = function(e, t) {
|
|
4735
4735
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
@@ -4764,7 +4764,7 @@ const vt = {
|
|
|
4764
4764
|
};
|
|
4765
4765
|
};
|
|
4766
4766
|
function Yo() {
|
|
4767
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4767
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xu();
|
|
4768
4768
|
const e = (b) => Yo(b);
|
|
4769
4769
|
if (e.version = "3.2.6", e.removed = [], !n || !n.document || n.document.nodeType !== vt.document || !n.Element)
|
|
4770
4770
|
return e.isSupported = !1, e;
|
|
@@ -4812,7 +4812,7 @@ function Yo() {
|
|
|
4812
4812
|
} = Rr, O = null;
|
|
4813
4813
|
const fi = x({}, [...Er, ...Qn, ...Jn, ...es, ...Ar]);
|
|
4814
4814
|
let D = null;
|
|
4815
|
-
const gi = x({}, [...Cr, ...ts, ...Tr, ...
|
|
4815
|
+
const gi = x({}, [...Cr, ...ts, ...Tr, ...Kt]);
|
|
4816
4816
|
let T = Object.seal(Wo(null, {
|
|
4817
4817
|
tagNameCheck: {
|
|
4818
4818
|
writable: !0,
|
|
@@ -4853,7 +4853,7 @@ function Yo() {
|
|
|
4853
4853
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4854
4854
|
if (!(Ge && Ge === h)) {
|
|
4855
4855
|
if ((!h || typeof h != "object") && (h = {}), h = ge(h), ut = // eslint-disable-next-line unicorn/prefer-includes
|
|
4856
|
-
$a.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? xa : h.PARSER_MEDIA_TYPE, P = ut === "application/xhtml+xml" ? Vn : Jt, O = te(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, P) : fi, D = te(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, P) : gi, zn = te(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Vn) : ba, Dn = te(h, "ADD_URI_SAFE_ATTR") ? x(ge(Si), h.ADD_URI_SAFE_ATTR, P) : Si, wi = te(h, "ADD_DATA_URI_TAGS") ? x(ge(ki), h.ADD_DATA_URI_TAGS, P) : ki, qe = te(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, P) : xi, lt = te(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, P) : ge({}), On = te(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, P) : ge({}), je = te(h, "USE_PROFILES") ? h.USE_PROFILES : !1, mi = h.ALLOW_ARIA_ATTR !== !1, Pn = h.ALLOW_DATA_ATTR !== !1, vi = h.ALLOW_UNKNOWN_PROTOCOLS || !1, bi = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, He = h.SAFE_FOR_TEMPLATES || !1, zt = h.SAFE_FOR_XML !== !1, Re = h.WHOLE_DOCUMENT || !1, Fe = h.RETURN_DOM || !1, Bt = h.RETURN_DOM_FRAGMENT || !1, Ht = h.RETURN_TRUSTED_TYPE || !1, Mn = h.FORCE_BODY || !1, yi = h.SANITIZE_DOM !== !1, $i = h.SANITIZE_NAMED_PROPS || !1, Nn = h.KEEP_CONTENT !== !1, ct = h.IN_PLACE || !1, pi = h.ALLOWED_URI_REGEXP || Go, We = h.NAMESPACE || he, qt = h.MATHML_TEXT_INTEGRATION_POINTS || qt, Wt = h.HTML_INTEGRATION_POINTS || Wt, T = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && _i(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && _i(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), He && (Pn = !1), Bt && (Fe = !0), je && (O = x({}, Ar), D = [], je.html === !0 && (x(O, Er), x(D, Cr)), je.svg === !0 && (x(O, Qn), x(D, ts), x(D,
|
|
4856
|
+
$a.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? xa : h.PARSER_MEDIA_TYPE, P = ut === "application/xhtml+xml" ? Vn : Jt, O = te(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, P) : fi, D = te(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, P) : gi, zn = te(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Vn) : ba, Dn = te(h, "ADD_URI_SAFE_ATTR") ? x(ge(Si), h.ADD_URI_SAFE_ATTR, P) : Si, wi = te(h, "ADD_DATA_URI_TAGS") ? x(ge(ki), h.ADD_DATA_URI_TAGS, P) : ki, qe = te(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, P) : xi, lt = te(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, P) : ge({}), On = te(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, P) : ge({}), je = te(h, "USE_PROFILES") ? h.USE_PROFILES : !1, mi = h.ALLOW_ARIA_ATTR !== !1, Pn = h.ALLOW_DATA_ATTR !== !1, vi = h.ALLOW_UNKNOWN_PROTOCOLS || !1, bi = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, He = h.SAFE_FOR_TEMPLATES || !1, zt = h.SAFE_FOR_XML !== !1, Re = h.WHOLE_DOCUMENT || !1, Fe = h.RETURN_DOM || !1, Bt = h.RETURN_DOM_FRAGMENT || !1, Ht = h.RETURN_TRUSTED_TYPE || !1, Mn = h.FORCE_BODY || !1, yi = h.SANITIZE_DOM !== !1, $i = h.SANITIZE_NAMED_PROPS || !1, Nn = h.KEEP_CONTENT !== !1, ct = h.IN_PLACE || !1, pi = h.ALLOWED_URI_REGEXP || Go, We = h.NAMESPACE || he, qt = h.MATHML_TEXT_INTEGRATION_POINTS || qt, Wt = h.HTML_INTEGRATION_POINTS || Wt, T = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && _i(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && _i(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), He && (Pn = !1), Bt && (Fe = !0), je && (O = x({}, Ar), D = [], je.html === !0 && (x(O, Er), x(D, Cr)), je.svg === !0 && (x(O, Qn), x(D, ts), x(D, Kt)), je.svgFilters === !0 && (x(O, Jn), x(D, ts), x(D, Kt)), je.mathMl === !0 && (x(O, es), x(D, Tr), x(D, Kt))), h.ADD_TAGS && (O === fi && (O = ge(O)), x(O, h.ADD_TAGS, P)), h.ADD_ATTR && (D === gi && (D = ge(D)), x(D, h.ADD_ATTR, P)), h.ADD_URI_SAFE_ATTR && x(Dn, h.ADD_URI_SAFE_ATTR, P), h.FORBID_CONTENTS && (qe === xi && (qe = ge(qe)), x(qe, h.FORBID_CONTENTS, P)), Nn && (O["#text"] = !0), Re && x(O, ["html", "head", "body"]), O.table && (x(O, ["tbody"]), delete lt.tbody), h.TRUSTED_TYPES_POLICY) {
|
|
4857
4857
|
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4858
4858
|
throw gt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4859
4859
|
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -5141,7 +5141,7 @@ function Yo() {
|
|
|
5141
5141
|
B = Lr();
|
|
5142
5142
|
}, e;
|
|
5143
5143
|
}
|
|
5144
|
-
var
|
|
5144
|
+
var Ko = Yo(), Qu = Object.defineProperty, Ju = (n, e, t, s) => {
|
|
5145
5145
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
5146
5146
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
5147
5147
|
return i && Qu(e, t, i), i;
|
|
@@ -5149,7 +5149,7 @@ var Xo = Yo(), Qu = Object.defineProperty, Ju = (n, e, t, s) => {
|
|
|
5149
5149
|
const li = class li extends M {
|
|
5150
5150
|
render() {
|
|
5151
5151
|
return w`<div class="message-type-html">
|
|
5152
|
-
${Ru(
|
|
5152
|
+
${Ru(Ko.sanitize(this.message.content))}
|
|
5153
5153
|
</div>`;
|
|
5154
5154
|
}
|
|
5155
5155
|
};
|
|
@@ -5209,7 +5209,7 @@ function js() {
|
|
|
5209
5209
|
};
|
|
5210
5210
|
}
|
|
5211
5211
|
var Be = js();
|
|
5212
|
-
function
|
|
5212
|
+
function Xo(n) {
|
|
5213
5213
|
Be = n;
|
|
5214
5214
|
}
|
|
5215
5215
|
var kt = { exec: () => null };
|
|
@@ -5317,12 +5317,12 @@ var j = {
|
|
|
5317
5317
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
5318
5318
|
paragraph: S(Ws).replace("hr", Ut).replace("heading", ` *#{1,6} *[^
|
|
5319
5319
|
]`).replace("lheading", Qo).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
5320
|
-
}, dh = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ph = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ea = /^( {2,}|\\)\n(?!\s*$)/, fh = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Cn = /[\p{P}\p{S}]/u,
|
|
5320
|
+
}, dh = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ph = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ea = /^( {2,}|\\)\n(?!\s*$)/, fh = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Cn = /[\p{P}\p{S}]/u, Ks = /[\s\p{P}\p{S}]/u, ta = /[^\s\p{P}\p{S}]/u, gh = S(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ks).getRegex(), na = /(?!~)[\p{P}\p{S}]/u, mh = /(?!~)[\s\p{P}\p{S}]/u, vh = /(?:[^\s\p{P}\p{S}]|~)/u, bh = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, sa = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, yh = S(sa, "u").replace(/punct/g, Cn).getRegex(), $h = S(sa, "u").replace(/punct/g, na).getRegex(), ia = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", xh = S(ia, "gu").replace(/notPunctSpace/g, ta).replace(/punctSpace/g, Ks).replace(/punct/g, Cn).getRegex(), wh = S(ia, "gu").replace(/notPunctSpace/g, vh).replace(/punctSpace/g, mh).replace(/punct/g, na).getRegex(), kh = S(
|
|
5321
5321
|
"^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
|
|
5322
5322
|
"gu"
|
|
5323
|
-
).replace(/notPunctSpace/g, ta).replace(/punctSpace/g,
|
|
5323
|
+
).replace(/notPunctSpace/g, ta).replace(/punctSpace/g, Ks).replace(/punct/g, Cn).getRegex(), Sh = S(/\\(punct)/, "gu").replace(/punct/g, Cn).getRegex(), _h = S(/^<(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(), Eh = S(Zs).replace("(?:-->|$)", "-->").getRegex(), Ah = S(
|
|
5324
5324
|
"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
|
|
5325
|
-
).replace("comment", Eh).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ch = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", gn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ra = S(/^!?\[(label)\]\[(ref)\]/).replace("label", gn).replace("ref", Gs).getRegex(), oa = S(/^!?\[(ref)\](?:\[\])?/).replace("ref", Gs).getRegex(), Th = S("reflink|nolink(?!\\()", "g").replace("reflink", ra).replace("nolink", oa).getRegex(),
|
|
5325
|
+
).replace("comment", Eh).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ch = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", gn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ra = S(/^!?\[(label)\]\[(ref)\]/).replace("label", gn).replace("ref", Gs).getRegex(), oa = S(/^!?\[(ref)\](?:\[\])?/).replace("ref", Gs).getRegex(), Th = S("reflink|nolink(?!\\()", "g").replace("reflink", ra).replace("nolink", oa).getRegex(), Xs = {
|
|
5326
5326
|
_backpedal: kt,
|
|
5327
5327
|
// only used for GFM url
|
|
5328
5328
|
anyPunctuation: Sh,
|
|
@@ -5344,11 +5344,11 @@ var j = {
|
|
|
5344
5344
|
text: fh,
|
|
5345
5345
|
url: kt
|
|
5346
5346
|
}, Rh = {
|
|
5347
|
-
...
|
|
5347
|
+
...Xs,
|
|
5348
5348
|
link: S(/^!?\[(label)\]\((.*?)\)/).replace("label", gn).getRegex(),
|
|
5349
5349
|
reflink: S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gn).getRegex()
|
|
5350
5350
|
}, xs = {
|
|
5351
|
-
...
|
|
5351
|
+
...Xs,
|
|
5352
5352
|
emStrongRDelimAst: wh,
|
|
5353
5353
|
emStrongLDelim: $h,
|
|
5354
5354
|
url: S(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
@@ -5359,12 +5359,12 @@ var j = {
|
|
|
5359
5359
|
...xs,
|
|
5360
5360
|
br: S(ea).replace("{2,}", "*").getRegex(),
|
|
5361
5361
|
text: S(xs.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
5362
|
-
},
|
|
5362
|
+
}, Xt = {
|
|
5363
5363
|
normal: Ys,
|
|
5364
5364
|
gfm: uh,
|
|
5365
5365
|
pedantic: hh
|
|
5366
5366
|
}, bt = {
|
|
5367
|
-
normal:
|
|
5367
|
+
normal: Xs,
|
|
5368
5368
|
gfm: xs,
|
|
5369
5369
|
breaks: Lh,
|
|
5370
5370
|
pedantic: Rh
|
|
@@ -5954,17 +5954,17 @@ ${u}` : u;
|
|
|
5954
5954
|
};
|
|
5955
5955
|
const t = {
|
|
5956
5956
|
other: j,
|
|
5957
|
-
block:
|
|
5957
|
+
block: Xt.normal,
|
|
5958
5958
|
inline: bt.normal
|
|
5959
5959
|
};
|
|
5960
|
-
this.options.pedantic ? (t.block =
|
|
5960
|
+
this.options.pedantic ? (t.block = Xt.pedantic, t.inline = bt.pedantic) : this.options.gfm && (t.block = Xt.gfm, this.options.breaks ? t.inline = bt.breaks : t.inline = bt.gfm), this.tokenizer.rules = t;
|
|
5961
5961
|
}
|
|
5962
5962
|
/**
|
|
5963
5963
|
* Expose Rules
|
|
5964
5964
|
*/
|
|
5965
5965
|
static get rules() {
|
|
5966
5966
|
return {
|
|
5967
|
-
block:
|
|
5967
|
+
block: Xt,
|
|
5968
5968
|
inline: bt
|
|
5969
5969
|
};
|
|
5970
5970
|
}
|
|
@@ -6727,12 +6727,12 @@ function k(n, e) {
|
|
|
6727
6727
|
return ze.parse(n, e);
|
|
6728
6728
|
}
|
|
6729
6729
|
k.options = k.setOptions = function(n) {
|
|
6730
|
-
return ze.setOptions(n), k.defaults = ze.defaults,
|
|
6730
|
+
return ze.setOptions(n), k.defaults = ze.defaults, Xo(k.defaults), k;
|
|
6731
6731
|
};
|
|
6732
6732
|
k.getDefaults = js;
|
|
6733
6733
|
k.defaults = Be;
|
|
6734
6734
|
k.use = function(...n) {
|
|
6735
|
-
return ze.use(...n), k.defaults = ze.defaults,
|
|
6735
|
+
return ze.use(...n), k.defaults = ze.defaults, Xo(k.defaults), k;
|
|
6736
6736
|
};
|
|
6737
6737
|
k.walkTokens = function(n, e) {
|
|
6738
6738
|
return ze.walkTokens(n, e);
|
|
@@ -6807,21 +6807,18 @@ const ci = class ci extends M {
|
|
|
6807
6807
|
}
|
|
6808
6808
|
// Run on every update of an observed value
|
|
6809
6809
|
updated() {
|
|
6810
|
-
var
|
|
6810
|
+
var o, a;
|
|
6811
6811
|
const e = this.getLastChunk();
|
|
6812
6812
|
if (!e) return;
|
|
6813
|
-
this.buffer += e
|
|
6814
|
-
|
|
6815
|
-
k.parse(this.buffer),
|
|
6816
|
-
{ ADD_ATTR: ["target"] }
|
|
6817
|
-
);
|
|
6818
|
-
if (this.includesImage(this.buffer))
|
|
6819
|
-
(i = this.contentRef.value) == null || i.appendChild(document.createElement("div")), this.buffer = "";
|
|
6813
|
+
if (this.buffer += e, this.includesImage(this.buffer))
|
|
6814
|
+
(o = this.contentRef.value) == null || o.appendChild(document.createElement("div")), this.buffer = "";
|
|
6820
6815
|
else if (this.buffer.includes("![")) return;
|
|
6821
|
-
const
|
|
6816
|
+
const t = k.parse(this.buffer), s = cs(t), i = Ko.sanitize(s, {
|
|
6817
|
+
ADD_ATTR: ["target"]
|
|
6818
|
+
}), r = (a = this.contentRef.value) == null ? void 0 : a.querySelector(
|
|
6822
6819
|
"div:last-of-type"
|
|
6823
6820
|
);
|
|
6824
|
-
|
|
6821
|
+
r && (r.innerHTML = i, this.applyCodeStyles(r)), this.autoScroll && this.scrollRef.value.scrollIntoView();
|
|
6825
6822
|
}
|
|
6826
6823
|
// Apply white-space: pre-wrap to <code> elements
|
|
6827
6824
|
applyCodeStyles(e) {
|
|
@@ -6998,7 +6995,7 @@ customElements.get("message-type-markdown") || customElements.define("message-ty
|
|
|
6998
6995
|
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", vn);
|
|
6999
6996
|
const Dr = Do(M), hi = class hi extends Dr {
|
|
7000
6997
|
constructor() {
|
|
7001
|
-
super(...arguments), this.platform = null, this.entries = [], this.typing = !1, this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.showAuthBanner = !1, this.authenticated = !1, this.isMuted = !1, this.conversationContentRef = oe(), this.conversationFeedRef = oe(), this.formRef = oe(), this.inputRef = oe(), this.scrollRef = oe(), this.counterRef = oe(), this.chatCurrentScrollPosition = 0, this.toast = new wu(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new F("waiting"), this.stateMachine = new Su(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
|
6998
|
+
super(...arguments), this.platform = null, this.entries = [], this.typing = !1, this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.showAuthBanner = !1, this.authenticated = !1, this.isMuted = !1, this.isKeyboardNavigation = !1, this.conversationContentRef = oe(), this.conversationFeedRef = oe(), this.formRef = oe(), this.inputRef = oe(), this.scrollRef = oe(), this.counterRef = oe(), this.chatCurrentScrollPosition = 0, this.toast = new wu(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new F("waiting"), this.stateMachine = new Su(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
|
7002
6999
|
Je((e) => e ? e == null ? void 0 : e.provider$ : os(null))
|
|
7003
7000
|
), this.userTyping$ = new I();
|
|
7004
7001
|
}
|
|
@@ -7110,7 +7107,16 @@ const Dr = Do(M), hi = class hi extends Dr {
|
|
|
7110
7107
|
), e.target.style.height = e.target.scrollHeight + "px", this.textAreaLength = e.target.value.length, e.target.value.length > this.messageMaxLength ? (t = this.counterRef.value) == null || t.classList.add("max-char-count-reached") : (s = this.counterRef.value) == null || s.classList.remove("max-char-count-reached");
|
|
7111
7108
|
}
|
|
7112
7109
|
keyDownHandler(e) {
|
|
7113
|
-
this.userTyping$.next(e.key), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this.onSendMessage(e), e.preventDefault());
|
|
7110
|
+
this.userTyping$.next(e.key), e.key === "Tab" && (this.isKeyboardNavigation = !0), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this.onSendMessage(e), e.preventDefault());
|
|
7111
|
+
}
|
|
7112
|
+
mouseDownHandler(e) {
|
|
7113
|
+
e.target === this.inputRef.value && (this.isKeyboardNavigation = !1);
|
|
7114
|
+
}
|
|
7115
|
+
focusHandler() {
|
|
7116
|
+
this.isKeyboardNavigation && this.inputRef.value && this.inputRef.value.classList.add("keyboard-focused");
|
|
7117
|
+
}
|
|
7118
|
+
blurHandler() {
|
|
7119
|
+
this.inputRef.value && this.inputRef.value.classList.remove("keyboard-focused");
|
|
7114
7120
|
}
|
|
7115
7121
|
getAuthBannerMessage() {
|
|
7116
7122
|
const e = this.application.texts;
|
|
@@ -7207,7 +7213,7 @@ const Dr = Do(M), hi = class hi extends Dr {
|
|
|
7207
7213
|
class="overlay-button"
|
|
7208
7214
|
@click=${() => this.chatOverlayActive = !1}
|
|
7209
7215
|
>
|
|
7210
|
-
<telia-icon svg=${
|
|
7216
|
+
<telia-icon svg=${Xl.svg}></telia-icon>
|
|
7211
7217
|
</button>
|
|
7212
7218
|
</div>` : $}
|
|
7213
7219
|
<div
|
|
@@ -7249,6 +7255,9 @@ const Dr = Do(M), hi = class hi extends Dr {
|
|
|
7249
7255
|
.value=${this.message}
|
|
7250
7256
|
@input=${this.inputHandler}
|
|
7251
7257
|
@keydown=${this.keyDownHandler}
|
|
7258
|
+
@mousedown=${this.mouseDownHandler}
|
|
7259
|
+
@focus=${this.focusHandler}
|
|
7260
|
+
@blur=${this.blurHandler}
|
|
7252
7261
|
${ae(this.inputRef)}
|
|
7253
7262
|
aria-valuenow=${this.textAreaLength}
|
|
7254
7263
|
aria-valuemax=${this.messageMaxLength}
|
|
@@ -7522,14 +7531,26 @@ hi.styles = [
|
|
|
7522
7531
|
font-size: inherit;
|
|
7523
7532
|
flex: 1;
|
|
7524
7533
|
height: var(--textarea-default-height);
|
|
7525
|
-
outline: none;
|
|
7526
7534
|
resize: none;
|
|
7527
7535
|
background-color: transparent;
|
|
7528
7536
|
max-height: 150px;
|
|
7529
7537
|
overflow-y: auto;
|
|
7538
|
+
outline-offset: 2px;
|
|
7530
7539
|
color: var(--input-text-color);
|
|
7531
7540
|
}
|
|
7532
7541
|
|
|
7542
|
+
/* Remove all focus outlines by default */
|
|
7543
|
+
textarea:focus {
|
|
7544
|
+
outline: none;
|
|
7545
|
+
}
|
|
7546
|
+
|
|
7547
|
+
/* Only show focus outline when keyboard-focused class is present */
|
|
7548
|
+
textarea.keyboard-focused {
|
|
7549
|
+
outline: 2px solid var(--focus-color);
|
|
7550
|
+
border-radius: 2px;
|
|
7551
|
+
transition: outline-color 300ms ease;
|
|
7552
|
+
}
|
|
7553
|
+
|
|
7533
7554
|
/* ===== SCROLLBAR STYLES ===== */
|
|
7534
7555
|
[part='scroll-container'] {
|
|
7535
7556
|
scrollbar-width: thin;
|
|
@@ -8060,7 +8081,7 @@ class Qs extends Cl {
|
|
|
8060
8081
|
}
|
|
8061
8082
|
createConnection(e) {
|
|
8062
8083
|
this.connection && this.connection.dispose();
|
|
8063
|
-
const s = e.webconnectorUrl || "wss://convhub-
|
|
8084
|
+
const s = e.webconnectorUrl || "wss://convhub-prod.ace.teliacompany.net/convhub/webconnector/v2/dialog";
|
|
8064
8085
|
return e.extension ? new zr(
|
|
8065
8086
|
{
|
|
8066
8087
|
connectionUri: s,
|
|
@@ -8073,7 +8094,7 @@ class Qs extends Cl {
|
|
|
8073
8094
|
), new zr(
|
|
8074
8095
|
{
|
|
8075
8096
|
connectionUri: s,
|
|
8076
|
-
extension: "
|
|
8097
|
+
extension: "374"
|
|
8077
8098
|
},
|
|
8078
8099
|
this.component,
|
|
8079
8100
|
this
|