@telia-ace/widget-conversation-flamingo 1.1.123-rc.3 → 1.1.123-rc.31
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/conversation.d.ts +4 -0
- package/index.js +44 -29
- package/index.mjs +179 -158
- package/package.json +2 -2
- package/widget-manifest.json +22 -1
package/index.mjs
CHANGED
@@ -163,8 +163,8 @@ function nt(n, e, t) {
|
|
163
163
|
(r || !(s in e)) && (r || (r = Array.prototype.slice.call(e, 0, s)), r[s] = e[s]);
|
164
164
|
return n.concat(r || Array.prototype.slice.call(e));
|
165
165
|
}
|
166
|
-
function
|
167
|
-
return this instanceof
|
166
|
+
function Ve(n) {
|
167
|
+
return this instanceof Ve ? (this.v = n, this) : new Ve(n);
|
168
168
|
}
|
169
169
|
function ya(n, e, t) {
|
170
170
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
@@ -192,7 +192,7 @@ function ya(n, e, t) {
|
|
192
192
|
}
|
193
193
|
}
|
194
194
|
function c(g) {
|
195
|
-
g.value instanceof
|
195
|
+
g.value instanceof Ve ? Promise.resolve(g.value.v).then(u, d) : p(r[0][2], g);
|
196
196
|
}
|
197
197
|
function u(g) {
|
198
198
|
l("next", g);
|
@@ -232,7 +232,7 @@ function Mr(n) {
|
|
232
232
|
}, t = n(e);
|
233
233
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
234
234
|
}
|
235
|
-
var
|
235
|
+
var Bn = Mr(function(n) {
|
236
236
|
return function(t) {
|
237
237
|
n(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
238
238
|
` + t.map(function(s, i) {
|
@@ -279,7 +279,7 @@ var mn = (function() {
|
|
279
279
|
try {
|
280
280
|
u();
|
281
281
|
} catch (y) {
|
282
|
-
r = y instanceof
|
282
|
+
r = y instanceof Bn ? y.errors : [y];
|
283
283
|
}
|
284
284
|
var d = this._finalizers;
|
285
285
|
if (d) {
|
@@ -290,7 +290,7 @@ var mn = (function() {
|
|
290
290
|
try {
|
291
291
|
Oi(m);
|
292
292
|
} catch (y) {
|
293
|
-
r = r ?? [], y instanceof
|
293
|
+
r = r ?? [], y instanceof Bn ? r = nt(nt([], Me(r)), Me(y.errors)) : r.push(y);
|
294
294
|
}
|
295
295
|
}
|
296
296
|
} catch (y) {
|
@@ -304,7 +304,7 @@ var mn = (function() {
|
|
304
304
|
}
|
305
305
|
}
|
306
306
|
if (r)
|
307
|
-
throw new
|
307
|
+
throw new Bn(r);
|
308
308
|
}
|
309
309
|
}, n.prototype.add = function(e) {
|
310
310
|
var t;
|
@@ -733,10 +733,10 @@ function Pa(n, e) {
|
|
733
733
|
var As = (function(n) {
|
734
734
|
return n && typeof n.length == "number" && typeof n != "function";
|
735
735
|
});
|
736
|
-
function
|
736
|
+
function Hr(n) {
|
737
737
|
return A(n == null ? void 0 : n.then);
|
738
738
|
}
|
739
|
-
function
|
739
|
+
function Br(n) {
|
740
740
|
return A(n[ks]);
|
741
741
|
}
|
742
742
|
function Fr(n) {
|
@@ -762,13 +762,13 @@ function Wr(n) {
|
|
762
762
|
case 1:
|
763
763
|
o.trys.push([1, , 9, 10]), o.label = 2;
|
764
764
|
case 2:
|
765
|
-
return [4,
|
765
|
+
return [4, Ve(t.read())];
|
766
766
|
case 3:
|
767
|
-
return s = o.sent(), i = s.value, r = s.done, r ? [4,
|
767
|
+
return s = o.sent(), i = s.value, r = s.done, r ? [4, Ve(void 0)] : [3, 5];
|
768
768
|
case 4:
|
769
769
|
return [2, o.sent()];
|
770
770
|
case 5:
|
771
|
-
return [4,
|
771
|
+
return [4, Ve(i)];
|
772
772
|
case 6:
|
773
773
|
return [4, o.sent()];
|
774
774
|
case 7:
|
@@ -790,11 +790,11 @@ function ce(n) {
|
|
790
790
|
if (n instanceof Y)
|
791
791
|
return n;
|
792
792
|
if (n != null) {
|
793
|
-
if (
|
793
|
+
if (Br(n))
|
794
794
|
return Ma(n);
|
795
795
|
if (As(n))
|
796
796
|
return Na(n);
|
797
|
-
if (
|
797
|
+
if (Hr(n))
|
798
798
|
return Da(n);
|
799
799
|
if (Fr(n))
|
800
800
|
return Yr(n);
|
@@ -852,7 +852,7 @@ function Ua(n) {
|
|
852
852
|
}
|
853
853
|
function Yr(n) {
|
854
854
|
return new Y(function(e) {
|
855
|
-
|
855
|
+
Ha(n, e).catch(function(t) {
|
856
856
|
return e.error(t);
|
857
857
|
});
|
858
858
|
});
|
@@ -860,7 +860,7 @@ function Yr(n) {
|
|
860
860
|
function za(n) {
|
861
861
|
return Yr(Wr(n));
|
862
862
|
}
|
863
|
-
function
|
863
|
+
function Ha(n, e) {
|
864
864
|
var t, s, i, r;
|
865
865
|
return ba(this, void 0, void 0, function() {
|
866
866
|
var o, a;
|
@@ -923,18 +923,18 @@ function Xr(n, e) {
|
|
923
923
|
}));
|
924
924
|
});
|
925
925
|
}
|
926
|
-
function
|
926
|
+
function Kr(n, e) {
|
927
927
|
return e === void 0 && (e = 0), _e(function(t, s) {
|
928
928
|
s.add(n.schedule(function() {
|
929
929
|
return t.subscribe(s);
|
930
930
|
}, e));
|
931
931
|
});
|
932
932
|
}
|
933
|
-
function
|
934
|
-
return ce(n).pipe(
|
933
|
+
function Ba(n, e) {
|
934
|
+
return ce(n).pipe(Kr(e), Xr(e));
|
935
935
|
}
|
936
936
|
function Fa(n, e) {
|
937
|
-
return ce(n).pipe(
|
937
|
+
return ce(n).pipe(Kr(e), Xr(e));
|
938
938
|
}
|
939
939
|
function ja(n, e) {
|
940
940
|
return new Y(function(t) {
|
@@ -963,7 +963,7 @@ function Ga(n, e) {
|
|
963
963
|
};
|
964
964
|
});
|
965
965
|
}
|
966
|
-
function
|
966
|
+
function Vr(n, e) {
|
967
967
|
if (!n)
|
968
968
|
throw new Error("Iterable cannot be null");
|
969
969
|
return new Y(function(t) {
|
@@ -978,18 +978,18 @@ function Kr(n, e) {
|
|
978
978
|
});
|
979
979
|
}
|
980
980
|
function qa(n, e) {
|
981
|
-
return
|
981
|
+
return Vr(Wr(n), e);
|
982
982
|
}
|
983
983
|
function Wa(n, e) {
|
984
984
|
if (n != null) {
|
985
|
-
if (
|
986
|
-
return
|
985
|
+
if (Br(n))
|
986
|
+
return Ba(n, e);
|
987
987
|
if (As(n))
|
988
988
|
return ja(n, e);
|
989
|
-
if (
|
989
|
+
if (Hr(n))
|
990
990
|
return Fa(n, e);
|
991
991
|
if (Fr(n))
|
992
|
-
return
|
992
|
+
return Vr(n, e);
|
993
993
|
if (qr(n))
|
994
994
|
return Ga(n, e);
|
995
995
|
if (Zr(n))
|
@@ -1023,7 +1023,7 @@ function Qr(n) {
|
|
1023
1023
|
return Ya(n, e);
|
1024
1024
|
});
|
1025
1025
|
}
|
1026
|
-
var Xa = Array.isArray,
|
1026
|
+
var Xa = Array.isArray, Ka = Object.getPrototypeOf, Va = Object.prototype, Qa = Object.keys;
|
1027
1027
|
function Ja(n) {
|
1028
1028
|
if (n.length === 1) {
|
1029
1029
|
var e = n[0];
|
@@ -1042,7 +1042,7 @@ function Ja(n) {
|
|
1042
1042
|
return { args: n, keys: null };
|
1043
1043
|
}
|
1044
1044
|
function el(n) {
|
1045
|
-
return n && typeof n == "object" &&
|
1045
|
+
return n && typeof n == "object" && Ka(n) === Va;
|
1046
1046
|
}
|
1047
1047
|
function tl(n, e) {
|
1048
1048
|
return n.reduce(function(t, s, i) {
|
@@ -1459,7 +1459,7 @@ class Ih {
|
|
1459
1459
|
* Copyright 2019 Google LLC
|
1460
1460
|
* SPDX-License-Identifier: BSD-3-Clause
|
1461
1461
|
*/
|
1462
|
-
const
|
1462
|
+
const Kt = globalThis, Ts = Kt.ShadowRoot && (Kt.ShadyCSS === void 0 || Kt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Cs = Symbol(), Di = /* @__PURE__ */ new WeakMap();
|
1463
1463
|
let to = class {
|
1464
1464
|
constructor(e, t, s) {
|
1465
1465
|
if (this._$cssResult$ = !0, s !== Cs) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
@@ -1488,7 +1488,7 @@ const yl = (n) => new to(typeof n == "string" ? n : n + "", void 0, Cs), X = (n,
|
|
1488
1488
|
}, $l = (n, e) => {
|
1489
1489
|
if (Ts) n.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
|
1490
1490
|
else for (const t of e) {
|
1491
|
-
const s = document.createElement("style"), i =
|
1491
|
+
const s = document.createElement("style"), i = Kt.litNonce;
|
1492
1492
|
i !== void 0 && s.setAttribute("nonce", i), s.textContent = t.cssText, n.appendChild(s);
|
1493
1493
|
}
|
1494
1494
|
}, Ui = Ts ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
|
@@ -1529,7 +1529,7 @@ const { is: xl, defineProperty: wl, getOwnPropertyDescriptor: kl, getOwnProperty
|
|
1529
1529
|
}
|
1530
1530
|
}
|
1531
1531
|
return t;
|
1532
|
-
} }, Ls = (n, e) => !xl(n, e),
|
1532
|
+
} }, Ls = (n, e) => !xl(n, e), Hi = { attribute: !0, type: String, converter: nn, reflect: !1, useDefault: !1, hasChanged: Ls };
|
1533
1533
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), ke.litPropertyMetadata ?? (ke.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1534
1534
|
let Ze = class extends HTMLElement {
|
1535
1535
|
static addInitializer(e) {
|
@@ -1538,7 +1538,7 @@ let Ze = class extends HTMLElement {
|
|
1538
1538
|
static get observedAttributes() {
|
1539
1539
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
1540
1540
|
}
|
1541
|
-
static createProperty(e, t =
|
1541
|
+
static createProperty(e, t = Hi) {
|
1542
1542
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
1543
1543
|
const s = Symbol(), i = this.getPropertyDescriptor(e, s, t);
|
1544
1544
|
i !== void 0 && wl(this.prototype, e, i);
|
@@ -1556,7 +1556,7 @@ let Ze = class extends HTMLElement {
|
|
1556
1556
|
}, configurable: !0, enumerable: !0 };
|
1557
1557
|
}
|
1558
1558
|
static getPropertyOptions(e) {
|
1559
|
-
return this.elementProperties.get(e) ??
|
1559
|
+
return this.elementProperties.get(e) ?? Hi;
|
1560
1560
|
}
|
1561
1561
|
static _$Ei() {
|
1562
1562
|
if (this.hasOwnProperty(yt("elementProperties"))) return;
|
@@ -1740,12 +1740,12 @@ Ze.elementStyles = [], Ze.shadowRootOptions = { mode: "open" }, Ze[yt("elementPr
|
|
1740
1740
|
* Copyright 2017 Google LLC
|
1741
1741
|
* SPDX-License-Identifier: BSD-3-Clause
|
1742
1742
|
*/
|
1743
|
-
const $t = globalThis, sn = $t.trustedTypes,
|
1743
|
+
const $t = globalThis, sn = $t.trustedTypes, Bi = sn ? sn.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, no = "$lit$", $e = `lit$${Math.random().toFixed(9).slice(2)}$`, so = "?" + $e, Tl = `<${so}>`, Ne = document, kt = () => Ne.createComment(""), St = (n) => n === null || typeof n != "object" && typeof n != "function", Rs = Array.isArray, Cl = (n) => Rs(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", jn = `[
|
1744
1744
|
\f\r]`, ht = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Fi = /-->/g, ji = />/g, Re = RegExp(`>|${jn}(?:([^\\s"'>=/]+)(${jn}*=${jn}*(?:[^
|
1745
1745
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), Gi = /'/g, qi = /"/g, io = /^(?:script|style|textarea|title)$/i, Ll = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), w = Ll(1), Se = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), Wi = /* @__PURE__ */ new WeakMap(), Pe = Ne.createTreeWalker(Ne, 129);
|
1746
1746
|
function ro(n, e) {
|
1747
1747
|
if (!Rs(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
1748
|
-
return
|
1748
|
+
return Bi !== void 0 ? Bi.createHTML(e) : e;
|
1749
1749
|
}
|
1750
1750
|
const Rl = (n, e) => {
|
1751
1751
|
const t = n.length - 1, s = [];
|
@@ -2007,7 +2007,7 @@ N._$litElement$ = !0, N.finalized = !0, (Or = Ie.litElementHydrateSupport) == nu
|
|
2007
2007
|
const qn = Ie.litElementPolyfillSupport;
|
2008
2008
|
qn == null || qn({ LitElement: N });
|
2009
2009
|
(Ie.litElementVersions ?? (Ie.litElementVersions = [])).push("4.2.1");
|
2010
|
-
const Ul = { 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>' }, zl = { 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>' }, ao = { 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>' },
|
2010
|
+
const Ul = { 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>' }, zl = { 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>' }, ao = { 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>' }, Hl = { 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>' }, Bl = { 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>' }, Zi = { 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>' }, Fl = { 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>' }, Yi = { 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>' }, Ye = {
|
2011
2011
|
allRenderFn: !1,
|
2012
2012
|
cmpDidLoad: !0,
|
2013
2013
|
cmpDidUnload: !1,
|
@@ -2091,7 +2091,7 @@ const Ul = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" f
|
|
2091
2091
|
transformTagName: !1,
|
2092
2092
|
attachStyles: !0
|
2093
2093
|
};
|
2094
|
-
let Xe, lo, $n, co = !1, rn = !1, Os = !1,
|
2094
|
+
let Xe, lo, $n, co = !1, rn = !1, Os = !1, K = !1, Xi = null, us = !1;
|
2095
2095
|
const xn = typeof window < "u" ? window : {}, le = xn.document || { head: {} }, uo = xn.HTMLElement || class {
|
2096
2096
|
}, j = {
|
2097
2097
|
$flags$: 0,
|
@@ -2132,21 +2132,21 @@ const xn = typeof window < "u" ? window : {}, le = xn.document || { head: {} },
|
|
2132
2132
|
}, Yl = (n, e) => e & 4 ? le : e & 8 ? xn : e & 16 ? le.body : n, Xl = (n) => Gl ? {
|
2133
2133
|
passive: (n & 1) !== 0,
|
2134
2134
|
capture: (n & 2) !== 0
|
2135
|
-
} : (n & 2) !== 0,
|
2136
|
-
},
|
2135
|
+
} : (n & 2) !== 0, Ki = "http://www.w3.org/1999/xlink", De = (n, e = "") => () => {
|
2136
|
+
}, Vi = /* @__PURE__ */ new WeakMap(), Kl = (n, e, t) => {
|
2137
2137
|
let s = ln.get(n);
|
2138
2138
|
Wl && t ? (s = s || new CSSStyleSheet(), s.replace(e)) : s = e, ln.set(n, s);
|
2139
|
-
},
|
2139
|
+
}, Vl = (n, e, t, s) => {
|
2140
2140
|
let i = po(e, t), r = ln.get(i);
|
2141
2141
|
if (n = n.nodeType === 11 ? n : le, r)
|
2142
2142
|
if (typeof r == "string") {
|
2143
2143
|
n = n.head || n;
|
2144
|
-
let o =
|
2145
|
-
o ||
|
2144
|
+
let o = Vi.get(n), a;
|
2145
|
+
o || Vi.set(n, o = /* @__PURE__ */ new Set()), o.has(i) || (a = le.createElement("style"), a.innerHTML = r, n.insertBefore(a, n.querySelector("link")), o && o.add(i));
|
2146
2146
|
} else n.adoptedStyleSheets.includes(r) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, r]);
|
2147
2147
|
return i;
|
2148
2148
|
}, Ql = (n) => {
|
2149
|
-
const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, i = De("attachStyles", e.$tagName$), r =
|
2149
|
+
const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, i = De("attachStyles", e.$tagName$), r = Vl(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
|
2150
2150
|
s & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), s & 2 && t.classList.add(r + "-s")), i();
|
2151
2151
|
}, po = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), Jl = (n) => Ec.map((e) => e(n)).find((e) => !!e), Qi = {}, ec = "http://www.w3.org/2000/svg", tc = "http://www.w3.org/1999/xhtml", nc = (n) => n != null, Ps = (n) => (n = typeof n, n === "object" || n === "function"), Je = (n, e, ...t) => {
|
2152
2152
|
let s = null, i = null, r = null, o = !1, a = !1, l = [];
|
@@ -2220,7 +2220,7 @@ const xn = typeof window < "u" ? window : {}, le = xn.document || { head: {} },
|
|
2220
2220
|
} catch {
|
2221
2221
|
}
|
2222
2222
|
let c = !1;
|
2223
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), s == null || s === !1 ? (s !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(
|
2223
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), s == null || s === !1 ? (s !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(Ki, e) : n.removeAttribute(e)) : (!o || r & 4 || i) && !l && (s = s === !0 ? "" : s, c ? n.setAttributeNS(Ki, e, s) : n.setAttribute(e, s));
|
2224
2224
|
}
|
2225
2225
|
}
|
2226
2226
|
}, oc = /\s/, tr = (n) => n ? n.split(oc) : [], fo = (n, e, t, s) => {
|
@@ -2242,10 +2242,10 @@ const xn = typeof window < "u" ? window : {}, le = xn.document || { head: {} },
|
|
2242
2242
|
else if (i.$flags$ & 1)
|
2243
2243
|
o = i.$elm$ = le.createTextNode("");
|
2244
2244
|
else {
|
2245
|
-
if (
|
2245
|
+
if (K || (K = i.$tag$ === "svg"), o = i.$elm$ = le.createElementNS(K ? ec : tc, i.$flags$ & 2 ? "slot-fb" : i.$tag$), K && i.$tag$ === "foreignObject" && (K = !1), fo(null, i, K), nc(Xe) && o["s-si"] !== Xe && o.classList.add(o["s-si"] = Xe), i.$children$)
|
2246
2246
|
for (r = 0; r < i.$children$.length; ++r)
|
2247
2247
|
a = an(n, i, r, o), a && o.appendChild(a);
|
2248
|
-
i.$tag$ === "svg" ?
|
2248
|
+
i.$tag$ === "svg" ? K = !1 : o.tagName === "foreignObject" && (K = !0);
|
2249
2249
|
}
|
2250
2250
|
return o["s-hn"] = $n, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = lo, o["s-sn"] = i.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === i.$tag$ && n.$elm$ && _t(n.$elm$, !1)), o;
|
2251
2251
|
}, _t = (n, e) => {
|
@@ -2275,26 +2275,26 @@ const xn = typeof window < "u" ? window : {}, le = xn.document || { head: {} },
|
|
2275
2275
|
else if (g == null)
|
2276
2276
|
g = s[--d];
|
2277
2277
|
else if (qt(c, p))
|
2278
|
-
|
2278
|
+
Ke(c, p), c = e[++i], p = s[++r];
|
2279
2279
|
else if (qt(u, g))
|
2280
|
-
|
2280
|
+
Ke(u, g), u = e[--l], g = s[--d];
|
2281
2281
|
else if (qt(c, g))
|
2282
|
-
(c.$tag$ === "slot" || g.$tag$ === "slot") && _t(c.$elm$.parentNode, !1),
|
2282
|
+
(c.$tag$ === "slot" || g.$tag$ === "slot") && _t(c.$elm$.parentNode, !1), Ke(c, g), n.insertBefore(c.$elm$, u.$elm$.nextSibling), c = e[++i], g = s[--d];
|
2283
2283
|
else if (qt(u, p))
|
2284
|
-
(c.$tag$ === "slot" || g.$tag$ === "slot") && _t(u.$elm$.parentNode, !1),
|
2284
|
+
(c.$tag$ === "slot" || g.$tag$ === "slot") && _t(u.$elm$.parentNode, !1), Ke(u, p), n.insertBefore(u.$elm$, c.$elm$), u = e[--l], p = s[++r];
|
2285
2285
|
else {
|
2286
2286
|
for (o = -1, a = i; a <= l; ++a)
|
2287
2287
|
if (e[a] && e[a].$key$ !== null && e[a].$key$ === p.$key$) {
|
2288
2288
|
o = a;
|
2289
2289
|
break;
|
2290
2290
|
}
|
2291
|
-
o >= 0 ? (y = e[o], y.$tag$ !== p.$tag$ ? m = an(e && e[r], t, o, n) : (
|
2291
|
+
o >= 0 ? (y = e[o], y.$tag$ !== p.$tag$ ? m = an(e && e[r], t, o, n) : (Ke(y, p), e[o] = void 0, m = y.$elm$), p = s[++r]) : (m = an(e && e[r], t, r, n), p = s[++r]), m && vo(c.$elm$).insertBefore(m, Ms(c.$elm$));
|
2292
2292
|
}
|
2293
2293
|
i > l ? go(n, s[d + 1] == null ? null : s[d + 1].$elm$, t, s, r, d) : r > d && mo(e, i, l);
|
2294
|
-
}, qt = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, Ms = (n) => n && n["s-ol"] || n, vo = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode,
|
2294
|
+
}, qt = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, Ms = (n) => n && n["s-ol"] || n, vo = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, Ke = (n, e) => {
|
2295
2295
|
const t = e.$elm$ = n.$elm$, s = n.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
2296
2296
|
let a;
|
2297
|
-
o === null ? (
|
2297
|
+
o === null ? (K = r === "svg" ? !0 : r === "foreignObject" ? !1 : K, r === "slot" || fo(n, e, K), s !== null && i !== null ? ac(t, s, e, i) : i !== null ? (n.$text$ !== null && (t.textContent = ""), go(t, null, e, i, 0, i.length - 1)) : s !== null && mo(s, 0, s.length - 1), K && r === "svg" && (K = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
|
2298
2298
|
}, bo = (n) => {
|
2299
2299
|
let e = n.childNodes, t, s, i, r, o, a;
|
2300
2300
|
for (s = 0, i = e.length; s < i; s++)
|
@@ -2332,7 +2332,7 @@ const xn = typeof window < "u" ? window : {}, le = xn.document || { head: {} },
|
|
2332
2332
|
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map($o);
|
2333
2333
|
}, lc = (n, e) => {
|
2334
2334
|
const t = n.$hostElement$, s = n.$cmpMeta$, i = n.$vnode$ || on(null, null), r = sc(e) ? e : Je(null, null, e);
|
2335
|
-
$n = 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"], lo = t["s-cr"], co = (s.$flags$ & 1) !== 0, rn = !1,
|
2335
|
+
$n = 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"], lo = t["s-cr"], co = (s.$flags$ & 1) !== 0, rn = !1, Ke(i, r);
|
2336
2336
|
{
|
2337
2337
|
if (j.$flags$ |= 1, Os) {
|
2338
2338
|
yo(r.$elm$);
|
@@ -2460,7 +2460,7 @@ const xn = typeof window < "u" ? window : {}, le = xn.document || { head: {} },
|
|
2460
2460
|
const a = po(t, e.$modeName$);
|
2461
2461
|
if (!ln.has(a)) {
|
2462
2462
|
const l = De("registerStyles", t.$tagName$);
|
2463
|
-
|
2463
|
+
Kl(a, o, !!(t.$flags$ & 1)), l();
|
2464
2464
|
}
|
2465
2465
|
}
|
2466
2466
|
e.$ancestorComponent$, xo(e, !0);
|
@@ -2582,7 +2582,7 @@ function Dc() {
|
|
2582
2582
|
function Uc() {
|
2583
2583
|
return ps().vocadsIconsRegistered;
|
2584
2584
|
}
|
2585
|
-
const zc = ".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))}",
|
2585
|
+
const zc = ".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))}", Hc = /* @__PURE__ */ wo(class extends uo {
|
2586
2586
|
constructor() {
|
2587
2587
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
2588
2588
|
}
|
@@ -2623,13 +2623,13 @@ const zc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2623
2623
|
allyTitle: [1, "ally-title"],
|
2624
2624
|
dataTestid: [1, "data-testid"]
|
2625
2625
|
}]);
|
2626
|
-
function
|
2626
|
+
function Bc() {
|
2627
2627
|
if (typeof customElements > "u")
|
2628
2628
|
return;
|
2629
2629
|
["telia-icon", "telia-vst"].forEach((e) => {
|
2630
2630
|
switch (e) {
|
2631
2631
|
case "telia-icon":
|
2632
|
-
customElements.get(e) || customElements.define(e,
|
2632
|
+
customElements.get(e) || customElements.define(e, Hc);
|
2633
2633
|
break;
|
2634
2634
|
case "telia-vst":
|
2635
2635
|
customElements.get(e) || _o();
|
@@ -2637,7 +2637,7 @@ function Hc() {
|
|
2637
2637
|
}
|
2638
2638
|
});
|
2639
2639
|
}
|
2640
|
-
|
2640
|
+
Bc();
|
2641
2641
|
/**
|
2642
2642
|
* @license
|
2643
2643
|
* Copyright 2017 Google LLC
|
@@ -2830,7 +2830,7 @@ const it = Sn(class extends Ns {
|
|
2830
2830
|
return Se;
|
2831
2831
|
}
|
2832
2832
|
});
|
2833
|
-
var Xc = Object.defineProperty,
|
2833
|
+
var Xc = Object.defineProperty, Kc = (n, e, t, s) => {
|
2834
2834
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
2835
2835
|
(o = n[r]) && (i = o(e, t, i) || i);
|
2836
2836
|
return i && Xc(e, t, i), i;
|
@@ -2867,10 +2867,10 @@ Ys.styles = [
|
|
2867
2867
|
`
|
2868
2868
|
];
|
2869
2869
|
let un = Ys;
|
2870
|
-
|
2870
|
+
Kc([
|
2871
2871
|
C({ attribute: !0 })
|
2872
2872
|
], un.prototype, "anchor");
|
2873
|
-
const
|
2873
|
+
const Vc = /* @__PURE__ */ new WeakMap();
|
2874
2874
|
let ar = 0;
|
2875
2875
|
const Zn = /* @__PURE__ */ new Map(), lr = /* @__PURE__ */ new WeakSet(), cr = () => new Promise(((n) => requestAnimationFrame(n))), Qc = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Jc = [{ opacity: 0 }], ur = [{ opacity: 0 }, { opacity: 1 }], hr = (n, e) => {
|
2876
2876
|
const t = n - e;
|
@@ -2914,7 +2914,7 @@ class nu extends Eo {
|
|
2914
2914
|
return $;
|
2915
2915
|
}
|
2916
2916
|
getController() {
|
2917
|
-
return
|
2917
|
+
return Vc.get(this.u);
|
2918
2918
|
}
|
2919
2919
|
isDisabled() {
|
2920
2920
|
var e;
|
@@ -3184,7 +3184,7 @@ const Xs = class Xs extends N {
|
|
3184
3184
|
return w`<div
|
3185
3185
|
class=${it({
|
3186
3186
|
"trigger-container": !0,
|
3187
|
-
hidden: !this.triggerVisible
|
3187
|
+
"ace-hidden": !this.triggerVisible
|
3188
3188
|
})}
|
3189
3189
|
${ae(this.containerRef)}
|
3190
3190
|
>
|
@@ -3268,7 +3268,7 @@ Xs.styles = [
|
|
3268
3268
|
gap: 1rem;
|
3269
3269
|
}
|
3270
3270
|
|
3271
|
-
.trigger-container.hidden {
|
3271
|
+
.trigger-container.ace-hidden {
|
3272
3272
|
display: none;
|
3273
3273
|
}
|
3274
3274
|
|
@@ -3456,19 +3456,19 @@ const Co = (n) => {
|
|
3456
3456
|
], e.prototype, "application"), Oe([
|
3457
3457
|
C({ attribute: !1 })
|
3458
3458
|
], e.prototype, "parent"), e;
|
3459
|
-
},
|
3459
|
+
}, Ks = class Ks extends Co(N) {
|
3460
3460
|
render() {
|
3461
3461
|
return w`Non resolved component`;
|
3462
3462
|
}
|
3463
3463
|
};
|
3464
|
-
|
3464
|
+
Ks.styles = [
|
3465
3465
|
X`
|
3466
3466
|
:host {
|
3467
3467
|
display: block;
|
3468
3468
|
}
|
3469
3469
|
`
|
3470
3470
|
];
|
3471
|
-
let fs =
|
3471
|
+
let fs = Ks;
|
3472
3472
|
/**
|
3473
3473
|
* @license
|
3474
3474
|
* Copyright 2021 Google LLC
|
@@ -3646,7 +3646,7 @@ var uu = Object.defineProperty, Oo = (n, e, t, s) => {
|
|
3646
3646
|
(o = n[r]) && (i = o(e, t, i) || i);
|
3647
3647
|
return i && uu(e, t, i), i;
|
3648
3648
|
};
|
3649
|
-
const Po = "application",
|
3649
|
+
const Po = "application", Vs = class Vs extends N {
|
3650
3650
|
constructor() {
|
3651
3651
|
super(...arguments), this.nodes = [], this.wrapperRef = oe(), this.fullscreen = !1, this.isReady = new te(!1);
|
3652
3652
|
}
|
@@ -3678,7 +3678,7 @@ const Po = "application", Ks = class Ks extends N {
|
|
3678
3678
|
</div>`;
|
3679
3679
|
}
|
3680
3680
|
};
|
3681
|
-
|
3681
|
+
Vs.styles = X`
|
3682
3682
|
:host {
|
3683
3683
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
3684
3684
|
--spacing-xs: 0.2rem;
|
@@ -3828,23 +3828,23 @@ Ks.styles = X`
|
|
3828
3828
|
}
|
3829
3829
|
}
|
3830
3830
|
|
3831
|
-
:host(.expanded) {
|
3831
|
+
:host(.ace-expanded) {
|
3832
3832
|
opacity: 1;
|
3833
3833
|
animation: slideUp 0.3s linear;
|
3834
3834
|
}
|
3835
3835
|
|
3836
|
-
:host(.hidden) {
|
3836
|
+
:host(.ace-hidden) {
|
3837
3837
|
opacity: 0;
|
3838
3838
|
animation: slideDown 0.3s linear;
|
3839
3839
|
pointer-events: none;
|
3840
3840
|
}
|
3841
3841
|
|
3842
|
-
:host(.hidden.embedded),
|
3843
|
-
:host(.expanded.embedded) {
|
3842
|
+
:host(.ace-hidden.embedded),
|
3843
|
+
:host(.ace-expanded.embedded) {
|
3844
3844
|
animation: none;
|
3845
3845
|
}
|
3846
3846
|
`;
|
3847
|
-
let At =
|
3847
|
+
let At = Vs;
|
3848
3848
|
Oo([
|
3849
3849
|
C({ attribute: !0 })
|
3850
3850
|
], At.prototype, "fullscreen");
|
@@ -4612,7 +4612,7 @@ const {
|
|
4612
4612
|
} = Object;
|
4613
4613
|
let {
|
4614
4614
|
freeze: G,
|
4615
|
-
seal:
|
4615
|
+
seal: V,
|
4616
4616
|
create: Do
|
4617
4617
|
} = Object, {
|
4618
4618
|
apply: vs,
|
@@ -4621,7 +4621,7 @@ let {
|
|
4621
4621
|
G || (G = function(e) {
|
4622
4622
|
return e;
|
4623
4623
|
});
|
4624
|
-
|
4624
|
+
V || (V = function(e) {
|
4625
4625
|
return e;
|
4626
4626
|
});
|
4627
4627
|
vs || (vs = function(e, t, s) {
|
@@ -4630,7 +4630,7 @@ vs || (vs = function(e, t, s) {
|
|
4630
4630
|
bs || (bs = function(e, t) {
|
4631
4631
|
return new e(...t);
|
4632
4632
|
});
|
4633
|
-
const Wt = q(Array.prototype.forEach), Su = q(Array.prototype.lastIndexOf), br = q(Array.prototype.pop), pt = q(Array.prototype.push), _u = q(Array.prototype.splice),
|
4633
|
+
const Wt = q(Array.prototype.forEach), Su = q(Array.prototype.lastIndexOf), br = q(Array.prototype.pop), pt = q(Array.prototype.push), _u = q(Array.prototype.splice), Vt = q(String.prototype.toLowerCase), Xn = q(String.prototype.toString), yr = q(String.prototype.match), dt = q(String.prototype.replace), Au = q(String.prototype.indexOf), Eu = q(String.prototype.trim), J = q(Object.prototype.hasOwnProperty), B = q(RegExp.prototype.test), ft = Tu(TypeError);
|
4634
4634
|
function q(n) {
|
4635
4635
|
return function(e) {
|
4636
4636
|
e instanceof RegExp && (e.lastIndex = 0);
|
@@ -4647,7 +4647,7 @@ function Tu(n) {
|
|
4647
4647
|
};
|
4648
4648
|
}
|
4649
4649
|
function x(n, e) {
|
4650
|
-
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
4650
|
+
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Vt;
|
4651
4651
|
vr && vr(n, null);
|
4652
4652
|
let s = e.length;
|
4653
4653
|
for (; s--; ) {
|
@@ -4687,13 +4687,13 @@ function gt(n, e) {
|
|
4687
4687
|
}
|
4688
4688
|
return t;
|
4689
4689
|
}
|
4690
|
-
const $r = G(["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"]),
|
4690
|
+
const $r = G(["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"]), Kn = G(["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"]), Vn = G(["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"]), Lu = G(["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"]), Qn = G(["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"]), Ru = G(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), xr = G(["#text"]), wr = G(["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"]), Jn = G(["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"]), kr = G(["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"]), Zt = G(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ou = V(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Pu = V(/<%[\w\W]*|[\w\W]*%>/gm), Iu = V(/\$\{[\w\W]*/gm), Mu = V(/^data-[\-\w.\u00B7-\uFFFF]+$/), Nu = V(/^aria-[\-\w]+$/), Uo = V(
|
4691
4691
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
4692
4692
|
// eslint-disable-line no-useless-escape
|
4693
|
-
), Du =
|
4693
|
+
), Du = V(/^(?:\w+script|data):/i), Uu = V(
|
4694
4694
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
4695
4695
|
// eslint-disable-line no-control-regex
|
4696
|
-
), zo =
|
4696
|
+
), zo = V(/^html$/i), zu = V(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
4697
4697
|
var Sr = /* @__PURE__ */ Object.freeze({
|
4698
4698
|
__proto__: null,
|
4699
4699
|
ARIA_ATTR: Nu,
|
@@ -4714,9 +4714,9 @@ const mt = {
|
|
4714
4714
|
progressingInstruction: 7,
|
4715
4715
|
comment: 8,
|
4716
4716
|
document: 9
|
4717
|
-
},
|
4717
|
+
}, Hu = function() {
|
4718
4718
|
return typeof window > "u" ? null : window;
|
4719
|
-
},
|
4719
|
+
}, Bu = function(e, t) {
|
4720
4720
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
4721
4721
|
return null;
|
4722
4722
|
let s = null;
|
@@ -4748,9 +4748,9 @@ const mt = {
|
|
4748
4748
|
uponSanitizeShadowNode: []
|
4749
4749
|
};
|
4750
4750
|
};
|
4751
|
-
function
|
4752
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
4753
|
-
const e = (b) =>
|
4751
|
+
function Ho() {
|
4752
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Hu();
|
4753
|
+
const e = (b) => Ho(b);
|
4754
4754
|
if (e.version = "3.2.6", e.removed = [], !n || !n.document || n.document.nodeType !== mt.document || !n.Element)
|
4755
4755
|
return e.isSupported = !1, e;
|
4756
4756
|
let {
|
@@ -4780,7 +4780,7 @@ function Bo() {
|
|
4780
4780
|
} = t, {
|
4781
4781
|
importNode: sa
|
4782
4782
|
} = s;
|
4783
|
-
let
|
4783
|
+
let H = _r();
|
4784
4784
|
e.isSupported = typeof No == "function" && typeof Ae == "function" && Te && Te.createHTMLDocument !== void 0;
|
4785
4785
|
const {
|
4786
4786
|
MUSTACHE_EXPR: En,
|
@@ -4795,7 +4795,7 @@ function Bo() {
|
|
4795
4795
|
let {
|
4796
4796
|
IS_ALLOWED_URI: li
|
4797
4797
|
} = Sr, O = null;
|
4798
|
-
const ci = x({}, [...$r, ...
|
4798
|
+
const ci = x({}, [...$r, ...Kn, ...Vn, ...Qn, ...xr]);
|
4799
4799
|
let M = null;
|
4800
4800
|
const ui = x({}, [...wr, ...Jn, ...kr, ...Zt]);
|
4801
4801
|
let T = Object.seal(Do(null, {
|
@@ -4817,16 +4817,16 @@ function Bo() {
|
|
4817
4817
|
enumerable: !0,
|
4818
4818
|
value: !1
|
4819
4819
|
}
|
4820
|
-
})), at = null, Ln = null, hi = !0, Rn = !0, pi = !1, di = !0,
|
4820
|
+
})), at = null, Ln = null, hi = !0, Rn = !0, pi = !1, di = !0, He = !1, Dt = !0, Le = !1, On = !1, Pn = !1, Be = !1, Ut = !1, zt = !1, fi = !0, gi = !1;
|
4821
4821
|
const la = "user-content-";
|
4822
4822
|
let In = !0, lt = !1, Fe = {}, je = null;
|
4823
4823
|
const mi = x({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
4824
4824
|
let vi = null;
|
4825
4825
|
const bi = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
4826
4826
|
let Mn = null;
|
4827
|
-
const yi = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
4827
|
+
const yi = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ht = "http://www.w3.org/1998/Math/MathML", Bt = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml";
|
4828
4828
|
let Ge = he, Nn = !1, Dn = null;
|
4829
|
-
const ca = x({}, [
|
4829
|
+
const ca = x({}, [Ht, Bt, he], Xn);
|
4830
4830
|
let Ft = x({}, ["mi", "mo", "mn", "ms", "mtext"]), jt = x({}, ["annotation-xml"]);
|
4831
4831
|
const ua = x({}, ["title", "style", "font", "a", "script"]);
|
4832
4832
|
let ct = null;
|
@@ -4838,24 +4838,24 @@ function Bo() {
|
|
4838
4838
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
4839
4839
|
if (!(qe && qe === h)) {
|
4840
4840
|
if ((!h || typeof h != "object") && (h = {}), h = ge(h), ct = // eslint-disable-next-line unicorn/prefer-includes
|
4841
|
-
ha.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? pa : h.PARSER_MEDIA_TYPE, P = ct === "application/xhtml+xml" ? Xn :
|
4841
|
+
ha.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? pa : h.PARSER_MEDIA_TYPE, P = ct === "application/xhtml+xml" ? Xn : Vt, O = J(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, P) : ci, M = J(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, P) : ui, Dn = J(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Xn) : ca, Mn = J(h, "ADD_URI_SAFE_ATTR") ? x(ge(yi), h.ADD_URI_SAFE_ATTR, P) : yi, vi = J(h, "ADD_DATA_URI_TAGS") ? x(ge(bi), h.ADD_DATA_URI_TAGS, P) : bi, je = J(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, P) : mi, at = J(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, P) : ge({}), Ln = J(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, P) : ge({}), Fe = J(h, "USE_PROFILES") ? h.USE_PROFILES : !1, hi = h.ALLOW_ARIA_ATTR !== !1, Rn = h.ALLOW_DATA_ATTR !== !1, pi = h.ALLOW_UNKNOWN_PROTOCOLS || !1, di = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, He = h.SAFE_FOR_TEMPLATES || !1, Dt = h.SAFE_FOR_XML !== !1, Le = h.WHOLE_DOCUMENT || !1, Be = h.RETURN_DOM || !1, Ut = h.RETURN_DOM_FRAGMENT || !1, zt = h.RETURN_TRUSTED_TYPE || !1, Pn = h.FORCE_BODY || !1, fi = h.SANITIZE_DOM !== !1, gi = h.SANITIZE_NAMED_PROPS || !1, In = h.KEEP_CONTENT !== !1, lt = h.IN_PLACE || !1, li = h.ALLOWED_URI_REGEXP || Uo, Ge = h.NAMESPACE || he, Ft = h.MATHML_TEXT_INTEGRATION_POINTS || Ft, jt = h.HTML_INTEGRATION_POINTS || jt, 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 && (Rn = !1), Ut && (Be = !0), Fe && (O = x({}, xr), M = [], Fe.html === !0 && (x(O, $r), x(M, wr)), Fe.svg === !0 && (x(O, Kn), x(M, Jn), x(M, Zt)), Fe.svgFilters === !0 && (x(O, Vn), x(M, Jn), x(M, Zt)), Fe.mathMl === !0 && (x(O, Qn), x(M, kr), x(M, Zt))), h.ADD_TAGS && (O === ci && (O = ge(O)), x(O, h.ADD_TAGS, P)), h.ADD_ATTR && (M === ui && (M = ge(M)), x(M, h.ADD_ATTR, P)), h.ADD_URI_SAFE_ATTR && x(Mn, h.ADD_URI_SAFE_ATTR, P), h.FORBID_CONTENTS && (je === mi && (je = ge(je)), x(je, h.FORBID_CONTENTS, P)), In && (O["#text"] = !0), Le && x(O, ["html", "head", "body"]), O.table && (x(O, ["tbody"]), delete at.tbody), h.TRUSTED_TYPES_POLICY) {
|
4842
4842
|
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
|
4843
4843
|
throw ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
4844
4844
|
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
4845
4845
|
throw ft('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
4846
4846
|
R = h.TRUSTED_TYPES_POLICY, Ee = R.createHTML("");
|
4847
4847
|
} else
|
4848
|
-
R === void 0 && (R =
|
4848
|
+
R === void 0 && (R = Bu(g, i)), R !== null && typeof Ee == "string" && (Ee = R.createHTML(""));
|
4849
4849
|
G && G(h), qe = h;
|
4850
4850
|
}
|
4851
|
-
}, xi = x({}, [...
|
4851
|
+
}, xi = x({}, [...Kn, ...Vn, ...Lu]), wi = x({}, [...Qn, ...Ru]), fa = function(h) {
|
4852
4852
|
let f = Ae(h);
|
4853
4853
|
(!f || !f.tagName) && (f = {
|
4854
4854
|
namespaceURI: Ge,
|
4855
4855
|
tagName: "template"
|
4856
4856
|
});
|
4857
|
-
const v =
|
4858
|
-
return Dn[h.namespaceURI] ? h.namespaceURI ===
|
4857
|
+
const v = Vt(h.tagName), E = Vt(f.tagName);
|
4858
|
+
return Dn[h.namespaceURI] ? h.namespaceURI === Bt ? f.namespaceURI === he ? v === "svg" : f.namespaceURI === Ht ? v === "svg" && (E === "annotation-xml" || Ft[E]) : !!xi[v] : h.namespaceURI === Ht ? f.namespaceURI === he ? v === "math" : f.namespaceURI === Bt ? v === "math" && jt[E] : !!wi[v] : h.namespaceURI === he ? f.namespaceURI === Bt && !jt[E] || f.namespaceURI === Ht && !Ft[E] ? !1 : !wi[v] && (ua[v] || !xi[v]) : !!(ct === "application/xhtml+xml" && Dn[h.namespaceURI]) : !1;
|
4859
4859
|
}, ie = function(h) {
|
4860
4860
|
pt(e.removed, {
|
4861
4861
|
element: h
|
@@ -4878,7 +4878,7 @@ function Bo() {
|
|
4878
4878
|
});
|
4879
4879
|
}
|
4880
4880
|
if (f.removeAttribute(h), h === "is")
|
4881
|
-
if (
|
4881
|
+
if (Be || Ut)
|
4882
4882
|
try {
|
4883
4883
|
ie(f);
|
4884
4884
|
} catch {
|
@@ -4932,16 +4932,16 @@ function Bo() {
|
|
4932
4932
|
}
|
4933
4933
|
const Ai = function(h) {
|
4934
4934
|
let f = null;
|
4935
|
-
if (pe(
|
4935
|
+
if (pe(H.beforeSanitizeElements, h, null), zn(h))
|
4936
4936
|
return ie(h), !0;
|
4937
4937
|
const v = P(h.nodeName);
|
4938
|
-
if (pe(
|
4938
|
+
if (pe(H.uponSanitizeElement, h, {
|
4939
4939
|
tagName: v,
|
4940
4940
|
allowedTags: O
|
4941
|
-
}), Dt && h.hasChildNodes() && !_i(h.firstElementChild) &&
|
4941
|
+
}), Dt && h.hasChildNodes() && !_i(h.firstElementChild) && B(/<[/\w!]/g, h.innerHTML) && B(/<[/\w!]/g, h.textContent) || h.nodeType === mt.progressingInstruction || Dt && h.nodeType === mt.comment && B(/<[/\w]/g, h.data))
|
4942
4942
|
return ie(h), !0;
|
4943
4943
|
if (!O[v] || at[v]) {
|
4944
|
-
if (!at[v] && Ti(v) && (T.tagNameCheck instanceof RegExp &&
|
4944
|
+
if (!at[v] && Ti(v) && (T.tagNameCheck instanceof RegExp && B(T.tagNameCheck, v) || T.tagNameCheck instanceof Function && T.tagNameCheck(v)))
|
4945
4945
|
return !1;
|
4946
4946
|
if (In && !je[v]) {
|
4947
4947
|
const E = Ae(h) || h.parentNode, D = ye(h) || h.childNodes;
|
@@ -4955,29 +4955,29 @@ function Bo() {
|
|
4955
4955
|
}
|
4956
4956
|
return ie(h), !0;
|
4957
4957
|
}
|
4958
|
-
return h instanceof l && !fa(h) || (v === "noscript" || v === "noembed" || v === "noframes") &&
|
4958
|
+
return h instanceof l && !fa(h) || (v === "noscript" || v === "noembed" || v === "noframes") && B(/<\/no(script|embed|frames)/i, h.innerHTML) ? (ie(h), !0) : (He && h.nodeType === mt.text && (f = h.textContent, Wt([En, Tn, Cn], (E) => {
|
4959
4959
|
f = dt(f, E, " ");
|
4960
4960
|
}), h.textContent !== f && (pt(e.removed, {
|
4961
4961
|
element: h.cloneNode()
|
4962
|
-
}), h.textContent = f)), pe(
|
4962
|
+
}), h.textContent = f)), pe(H.afterSanitizeElements, h, null), !1);
|
4963
4963
|
}, Ei = function(h, f, v) {
|
4964
4964
|
if (fi && (f === "id" || f === "name") && (v in t || v in da))
|
4965
4965
|
return !1;
|
4966
|
-
if (!(Rn && !Ln[f] &&
|
4967
|
-
if (!(hi &&
|
4966
|
+
if (!(Rn && !Ln[f] && B(ia, f))) {
|
4967
|
+
if (!(hi && B(ra, f))) {
|
4968
4968
|
if (!M[f] || Ln[f]) {
|
4969
4969
|
if (
|
4970
4970
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
4971
4971
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
4972
4972
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
4973
|
-
!(Ti(h) && (T.tagNameCheck instanceof RegExp &&
|
4973
|
+
!(Ti(h) && (T.tagNameCheck instanceof RegExp && B(T.tagNameCheck, h) || T.tagNameCheck instanceof Function && T.tagNameCheck(h)) && (T.attributeNameCheck instanceof RegExp && B(T.attributeNameCheck, f) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
4974
4974
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
4975
|
-
f === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp &&
|
4975
|
+
f === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && B(T.tagNameCheck, v) || T.tagNameCheck instanceof Function && T.tagNameCheck(v)))
|
4976
4976
|
) return !1;
|
4977
4977
|
} else if (!Mn[f]) {
|
4978
|
-
if (!
|
4978
|
+
if (!B(li, dt(v, ai, ""))) {
|
4979
4979
|
if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Au(v, "data:") === 0 && vi[h])) {
|
4980
|
-
if (!(pi && !
|
4980
|
+
if (!(pi && !B(oa, dt(v, ai, "")))) {
|
4981
4981
|
if (v)
|
4982
4982
|
return !1;
|
4983
4983
|
}
|
@@ -4990,7 +4990,7 @@ function Bo() {
|
|
4990
4990
|
}, Ti = function(h) {
|
4991
4991
|
return h !== "annotation-xml" && yr(h, aa);
|
4992
4992
|
}, Ci = function(h) {
|
4993
|
-
pe(
|
4993
|
+
pe(H.beforeSanitizeAttributes, h, null);
|
4994
4994
|
const {
|
4995
4995
|
attributes: f
|
4996
4996
|
} = h;
|
@@ -5009,9 +5009,9 @@ function Bo() {
|
|
5009
5009
|
name: L,
|
5010
5010
|
namespaceURI: Z,
|
5011
5011
|
value: de
|
5012
|
-
} = D, ut = P(L),
|
5013
|
-
let U = L === "value" ?
|
5014
|
-
if (v.attrName = ut, v.attrValue = U, v.keepAttr = !0, v.forceKeepAttr = void 0, pe(
|
5012
|
+
} = D, ut = P(L), Hn = de;
|
5013
|
+
let U = L === "value" ? Hn : Eu(Hn);
|
5014
|
+
if (v.attrName = ut, v.attrValue = U, v.keepAttr = !0, v.forceKeepAttr = void 0, pe(H.uponSanitizeAttribute, h, v), U = v.attrValue, gi && (ut === "id" || ut === "name") && (We(L, h), U = la + U), Dt && B(/((--!?|])>)|<\/(style|title)/i, U)) {
|
5015
5015
|
We(L, h);
|
5016
5016
|
continue;
|
5017
5017
|
}
|
@@ -5021,11 +5021,11 @@ function Bo() {
|
|
5021
5021
|
We(L, h);
|
5022
5022
|
continue;
|
5023
5023
|
}
|
5024
|
-
if (!di &&
|
5024
|
+
if (!di && B(/\/>/i, U)) {
|
5025
5025
|
We(L, h);
|
5026
5026
|
continue;
|
5027
5027
|
}
|
5028
|
-
|
5028
|
+
He && Wt([En, Tn, Cn], (Ri) => {
|
5029
5029
|
U = dt(U, Ri, " ");
|
5030
5030
|
});
|
5031
5031
|
const Li = P(h.nodeName);
|
@@ -5044,20 +5044,20 @@ function Bo() {
|
|
5044
5044
|
break;
|
5045
5045
|
}
|
5046
5046
|
}
|
5047
|
-
if (U !==
|
5047
|
+
if (U !== Hn)
|
5048
5048
|
try {
|
5049
5049
|
Z ? h.setAttributeNS(Z, L, U) : h.setAttribute(L, U), zn(h) ? ie(h) : br(e.removed);
|
5050
5050
|
} catch {
|
5051
5051
|
We(L, h);
|
5052
5052
|
}
|
5053
5053
|
}
|
5054
|
-
pe(
|
5054
|
+
pe(H.afterSanitizeAttributes, h, null);
|
5055
5055
|
}, ga = function b(h) {
|
5056
5056
|
let f = null;
|
5057
5057
|
const v = Si(h);
|
5058
|
-
for (pe(
|
5059
|
-
pe(
|
5060
|
-
pe(
|
5058
|
+
for (pe(H.beforeSanitizeShadowDOM, h, null); f = v.nextNode(); )
|
5059
|
+
pe(H.uponSanitizeShadowNode, f, null), Ai(f), Ci(f), f.content instanceof r && b(f.content);
|
5060
|
+
pe(H.afterSanitizeShadowDOM, h, null);
|
5061
5061
|
};
|
5062
5062
|
return e.sanitize = function(b) {
|
5063
5063
|
let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, v = null, E = null, D = null;
|
@@ -5078,11 +5078,11 @@ function Bo() {
|
|
5078
5078
|
} else if (b instanceof a)
|
5079
5079
|
f = ki("<!---->"), v = f.ownerDocument.importNode(b, !0), v.nodeType === mt.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? f = v : f.appendChild(v);
|
5080
5080
|
else {
|
5081
|
-
if (!
|
5081
|
+
if (!Be && !He && !Le && // eslint-disable-next-line unicorn/prefer-includes
|
5082
5082
|
b.indexOf("<") === -1)
|
5083
5083
|
return R && zt ? R.createHTML(b) : b;
|
5084
5084
|
if (f = ki(b), !f)
|
5085
|
-
return
|
5085
|
+
return Be ? null : zt ? Ee : "";
|
5086
5086
|
}
|
5087
5087
|
f && Pn && ie(f.firstChild);
|
5088
5088
|
const L = Si(lt ? b : f);
|
@@ -5090,7 +5090,7 @@ function Bo() {
|
|
5090
5090
|
Ai(E), Ci(E), E.content instanceof r && ga(E.content);
|
5091
5091
|
if (lt)
|
5092
5092
|
return b;
|
5093
|
-
if (
|
5093
|
+
if (Be) {
|
5094
5094
|
if (Ut)
|
5095
5095
|
for (D = ta.call(f.ownerDocument); f.firstChild; )
|
5096
5096
|
D.appendChild(f.firstChild);
|
@@ -5099,8 +5099,8 @@ function Bo() {
|
|
5099
5099
|
return (M.shadowroot || M.shadowrootmode) && (D = sa.call(s, D, !0)), D;
|
5100
5100
|
}
|
5101
5101
|
let Z = Le ? f.outerHTML : f.innerHTML;
|
5102
|
-
return Le && O["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name &&
|
5103
|
-
` + Z),
|
5102
|
+
return Le && O["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && B(zo, f.ownerDocument.doctype.name) && (Z = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
|
5103
|
+
` + Z), He && Wt([En, Tn, Cn], (de) => {
|
5104
5104
|
Z = dt(Z, de, " ");
|
5105
5105
|
}), R && zt ? R.createHTML(Z) : Z;
|
5106
5106
|
}, e.setConfig = function() {
|
@@ -5113,20 +5113,20 @@ function Bo() {
|
|
5113
5113
|
const v = P(b), E = P(h);
|
5114
5114
|
return Ei(v, E, f);
|
5115
5115
|
}, e.addHook = function(b, h) {
|
5116
|
-
typeof h == "function" && pt(
|
5116
|
+
typeof h == "function" && pt(H[b], h);
|
5117
5117
|
}, e.removeHook = function(b, h) {
|
5118
5118
|
if (h !== void 0) {
|
5119
|
-
const f = Su(
|
5120
|
-
return f === -1 ? void 0 : _u(
|
5119
|
+
const f = Su(H[b], h);
|
5120
|
+
return f === -1 ? void 0 : _u(H[b], f, 1)[0];
|
5121
5121
|
}
|
5122
|
-
return br(
|
5122
|
+
return br(H[b]);
|
5123
5123
|
}, e.removeHooks = function(b) {
|
5124
|
-
|
5124
|
+
H[b] = [];
|
5125
5125
|
}, e.removeAllHooks = function() {
|
5126
|
-
|
5126
|
+
H = _r();
|
5127
5127
|
}, e;
|
5128
5128
|
}
|
5129
|
-
var
|
5129
|
+
var Bo = Ho(), Fu = Object.defineProperty, ju = (n, e, t, s) => {
|
5130
5130
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
5131
5131
|
(o = n[r]) && (i = o(e, t, i) || i);
|
5132
5132
|
return i && Fu(e, t, i), i;
|
@@ -5134,7 +5134,7 @@ var Ho = Bo(), Fu = Object.defineProperty, ju = (n, e, t, s) => {
|
|
5134
5134
|
const si = class si extends N {
|
5135
5135
|
render() {
|
5136
5136
|
return w`<div class="message-type-html">
|
5137
|
-
${$u(
|
5137
|
+
${$u(Bo.sanitize(this.message.content))}
|
5138
5138
|
</div>`;
|
5139
5139
|
}
|
5140
5140
|
};
|
@@ -5266,19 +5266,19 @@ var F = {
|
|
5266
5266
|
fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
|
5267
5267
|
headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
|
5268
5268
|
htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
|
5269
|
-
}, Gu = /^(?:[ \t]*(?:\n|$))+/, qu = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Wu = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Nt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Zu = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
|
5269
|
+
}, Gu = /^(?:[ \t]*(?:\n|$))+/, qu = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Wu = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Nt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Zu = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Hs = /(?:[*+-]|\d{1,9}[.)])/, jo = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Go = S(jo).replace(/bull/g, Hs).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).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/).replace(/\|table/g, "").getRegex(), Yu = S(jo).replace(/bull/g, Hs).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).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/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Bs = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Xu = /^[^\n]+/, Fs = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Ku = S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Fs).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Vu = S(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Hs).getRegex(), _n = "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", js = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Qu = S(
|
5270
5270
|
"^ {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|$))",
|
5271
5271
|
"i"
|
5272
|
-
).replace("comment", js).replace("tag", _n).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), qo = S(
|
5272
|
+
).replace("comment", js).replace("tag", _n).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), qo = S(Bs).replace("hr", Nt).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", _n).getRegex(), Ju = S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", qo).getRegex(), Gs = {
|
5273
5273
|
blockquote: Ju,
|
5274
5274
|
code: qu,
|
5275
|
-
def:
|
5275
|
+
def: Ku,
|
5276
5276
|
fences: Wu,
|
5277
5277
|
heading: Zu,
|
5278
5278
|
hr: Nt,
|
5279
5279
|
html: Qu,
|
5280
5280
|
lheading: Go,
|
5281
|
-
list:
|
5281
|
+
list: Vu,
|
5282
5282
|
newline: Gu,
|
5283
5283
|
paragraph: qo,
|
5284
5284
|
table: wt,
|
@@ -5289,7 +5289,7 @@ var F = {
|
|
5289
5289
|
...Gs,
|
5290
5290
|
lheading: Yu,
|
5291
5291
|
table: Ar,
|
5292
|
-
paragraph: S(
|
5292
|
+
paragraph: S(Bs).replace("hr", Nt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ar).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", _n).getRegex()
|
5293
5293
|
}, th = {
|
5294
5294
|
...Gs,
|
5295
5295
|
html: S(
|
@@ -5300,14 +5300,14 @@ var F = {
|
|
5300
5300
|
fences: wt,
|
5301
5301
|
// fences not supported
|
5302
5302
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
5303
|
-
paragraph: S(
|
5303
|
+
paragraph: S(Bs).replace("hr", Nt).replace("heading", ` *#{1,6} *[^
|
5304
5304
|
]`).replace("lheading", Go).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
5305
|
-
}, nh = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, sh = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Wo = /^( {2,}|\\)\n(?!\s*$)/, ih = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, An = /[\p{P}\p{S}]/u, qs = /[\s\p{P}\p{S}]/u, Zo = /[^\s\p{P}\p{S}]/u, rh = S(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, qs).getRegex(), Yo = /(?!~)[\p{P}\p{S}]/u, oh = /(?!~)[\s\p{P}\p{S}]/u, ah = /(?:[^\s\p{P}\p{S}]|~)/u, lh = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Xo = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ch = S(Xo, "u").replace(/punct/g, An).getRegex(), uh = S(Xo, "u").replace(/punct/g, Yo).getRegex(),
|
5305
|
+
}, nh = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, sh = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Wo = /^( {2,}|\\)\n(?!\s*$)/, ih = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, An = /[\p{P}\p{S}]/u, qs = /[\s\p{P}\p{S}]/u, Zo = /[^\s\p{P}\p{S}]/u, rh = S(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, qs).getRegex(), Yo = /(?!~)[\p{P}\p{S}]/u, oh = /(?!~)[\s\p{P}\p{S}]/u, ah = /(?:[^\s\p{P}\p{S}]|~)/u, lh = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Xo = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ch = S(Xo, "u").replace(/punct/g, An).getRegex(), uh = S(Xo, "u").replace(/punct/g, Yo).getRegex(), Ko = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", hh = S(Ko, "gu").replace(/notPunctSpace/g, Zo).replace(/punctSpace/g, qs).replace(/punct/g, An).getRegex(), ph = S(Ko, "gu").replace(/notPunctSpace/g, ah).replace(/punctSpace/g, oh).replace(/punct/g, Yo).getRegex(), dh = S(
|
5306
5306
|
"^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
|
5307
5307
|
"gu"
|
5308
5308
|
).replace(/notPunctSpace/g, Zo).replace(/punctSpace/g, qs).replace(/punct/g, An).getRegex(), fh = S(/\\(punct)/, "gu").replace(/punct/g, An).getRegex(), gh = 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(), mh = S(js).replace("(?:-->|$)", "-->").getRegex(), vh = S(
|
5309
5309
|
"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
|
5310
|
-
).replace("comment", mh).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), dn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, bh = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", dn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),
|
5310
|
+
).replace("comment", mh).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), dn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, bh = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", dn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Vo = S(/^!?\[(label)\]\[(ref)\]/).replace("label", dn).replace("ref", Fs).getRegex(), Qo = S(/^!?\[(ref)\](?:\[\])?/).replace("ref", Fs).getRegex(), yh = S("reflink|nolink(?!\\()", "g").replace("reflink", Vo).replace("nolink", Qo).getRegex(), Ws = {
|
5311
5311
|
_backpedal: wt,
|
5312
5312
|
// only used for GFM url
|
5313
5313
|
anyPunctuation: fh,
|
@@ -5323,7 +5323,7 @@ var F = {
|
|
5323
5323
|
link: bh,
|
5324
5324
|
nolink: Qo,
|
5325
5325
|
punctuation: rh,
|
5326
|
-
reflink:
|
5326
|
+
reflink: Vo,
|
5327
5327
|
reflinkSearch: yh,
|
5328
5328
|
tag: vh,
|
5329
5329
|
text: ih,
|
@@ -6792,21 +6792,18 @@ const ii = class ii extends N {
|
|
6792
6792
|
}
|
6793
6793
|
// Run on every update of an observed value
|
6794
6794
|
updated() {
|
6795
|
-
var
|
6795
|
+
var o, a;
|
6796
6796
|
const e = this.getLastChunk();
|
6797
6797
|
if (!e) return;
|
6798
|
-
this.buffer += e
|
6799
|
-
|
6800
|
-
k.parse(this.buffer),
|
6801
|
-
{ ADD_ATTR: ["target"] }
|
6802
|
-
);
|
6803
|
-
if (this.includesImage(this.buffer))
|
6804
|
-
(i = this.contentRef.value) == null || i.appendChild(document.createElement("div")), this.buffer = "";
|
6798
|
+
if (this.buffer += e, this.includesImage(this.buffer))
|
6799
|
+
(o = this.contentRef.value) == null || o.appendChild(document.createElement("div")), this.buffer = "";
|
6805
6800
|
else if (this.buffer.includes("![")) return;
|
6806
|
-
const
|
6801
|
+
const t = k.parse(this.buffer), s = fl(t), i = Bo.sanitize(s, {
|
6802
|
+
ADD_ATTR: ["target"]
|
6803
|
+
}), r = (a = this.contentRef.value) == null ? void 0 : a.querySelector(
|
6807
6804
|
"div:last-of-type"
|
6808
6805
|
);
|
6809
|
-
|
6806
|
+
r && (r.innerHTML = i, this.applyCodeStyles(r)), this.autoScroll && this.scrollRef.value.scrollIntoView();
|
6810
6807
|
}
|
6811
6808
|
// Apply white-space: pre-wrap to <code> elements
|
6812
6809
|
applyCodeStyles(e) {
|
@@ -6918,7 +6915,7 @@ const ri = class ri extends N {
|
|
6918
6915
|
@keydown=${this.handleKeyDown}
|
6919
6916
|
>
|
6920
6917
|
<button class="close" @click=${this.closeLightbox}>
|
6921
|
-
<telia-icon svg=${
|
6918
|
+
<telia-icon svg=${Bl.svg} size="lg"></telia-icon>
|
6922
6919
|
</button>
|
6923
6920
|
<img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
|
6924
6921
|
</div> `;
|
@@ -6983,7 +6980,7 @@ customElements.get("message-type-markdown") || customElements.define("message-ty
|
|
6983
6980
|
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", gn);
|
6984
6981
|
const Rr = Co(N), oi = class oi extends Rr {
|
6985
6982
|
constructor() {
|
6986
|
-
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 pu(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new te("waiting"), this.stateMachine = new fu(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6983
|
+
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 pu(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new te("waiting"), this.stateMachine = new fu(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6987
6984
|
Qe((e) => e ? e == null ? void 0 : e.provider$ : is(null))
|
6988
6985
|
), this.userTyping$ = new z();
|
6989
6986
|
}
|
@@ -7095,7 +7092,16 @@ const Rr = Co(N), oi = class oi extends Rr {
|
|
7095
7092
|
), 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");
|
7096
7093
|
}
|
7097
7094
|
keyDownHandler(e) {
|
7098
|
-
this.userTyping$.next(e.key), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this.onSendMessage(e), e.preventDefault());
|
7095
|
+
this.userTyping$.next(e.key), e.key === "Tab" && (this.isKeyboardNavigation = !0), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this.onSendMessage(e), e.preventDefault());
|
7096
|
+
}
|
7097
|
+
mouseDownHandler(e) {
|
7098
|
+
e.target === this.inputRef.value && (this.isKeyboardNavigation = !1);
|
7099
|
+
}
|
7100
|
+
focusHandler() {
|
7101
|
+
this.isKeyboardNavigation && this.inputRef.value && this.inputRef.value.classList.add("keyboard-focused");
|
7102
|
+
}
|
7103
|
+
blurHandler() {
|
7104
|
+
this.inputRef.value && this.inputRef.value.classList.remove("keyboard-focused");
|
7099
7105
|
}
|
7100
7106
|
getAuthBannerMessage() {
|
7101
7107
|
const e = this.application.texts;
|
@@ -7192,7 +7198,7 @@ const Rr = Co(N), oi = class oi extends Rr {
|
|
7192
7198
|
class="overlay-button"
|
7193
7199
|
@click=${() => this.chatOverlayActive = !1}
|
7194
7200
|
>
|
7195
|
-
<telia-icon svg=${
|
7201
|
+
<telia-icon svg=${Hl.svg}></telia-icon>
|
7196
7202
|
</button>
|
7197
7203
|
</div>` : $}
|
7198
7204
|
<div
|
@@ -7234,6 +7240,9 @@ const Rr = Co(N), oi = class oi extends Rr {
|
|
7234
7240
|
.value=${this.message}
|
7235
7241
|
@input=${this.inputHandler}
|
7236
7242
|
@keydown=${this.keyDownHandler}
|
7243
|
+
@mousedown=${this.mouseDownHandler}
|
7244
|
+
@focus=${this.focusHandler}
|
7245
|
+
@blur=${this.blurHandler}
|
7237
7246
|
${ae(this.inputRef)}
|
7238
7247
|
aria-valuenow=${this.textAreaLength}
|
7239
7248
|
aria-valuemax=${this.messageMaxLength}
|
@@ -7507,14 +7516,26 @@ oi.styles = [
|
|
7507
7516
|
font-size: inherit;
|
7508
7517
|
flex: 1;
|
7509
7518
|
height: var(--textarea-default-height);
|
7510
|
-
outline: none;
|
7511
7519
|
resize: none;
|
7512
7520
|
background-color: transparent;
|
7513
7521
|
max-height: 150px;
|
7514
7522
|
overflow-y: auto;
|
7523
|
+
outline-offset: 2px;
|
7515
7524
|
color: var(--input-text-color);
|
7516
7525
|
}
|
7517
7526
|
|
7527
|
+
/* Remove all focus outlines by default */
|
7528
|
+
textarea:focus {
|
7529
|
+
outline: none;
|
7530
|
+
}
|
7531
|
+
|
7532
|
+
/* Only show focus outline when keyboard-focused class is present */
|
7533
|
+
textarea.keyboard-focused {
|
7534
|
+
outline: 2px solid var(--focus-color);
|
7535
|
+
border-radius: 2px;
|
7536
|
+
transition: outline-color 300ms ease;
|
7537
|
+
}
|
7538
|
+
|
7518
7539
|
/* ===== SCROLLBAR STYLES ===== */
|
7519
7540
|
[part='scroll-container'] {
|
7520
7541
|
scrollbar-width: thin;
|