@telia-ace/widget-conversation-flamingo 1.1.76-rc.3 → 1.1.76-rc.30
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation-utilities.d.ts +1 -1
- package/index.js +47 -47
- package/index.mjs +283 -265
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -10,8 +10,8 @@ var $t = (s, e, t) => {
|
|
10
10
|
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
11
11
|
};
|
12
12
|
var He = (s, e, t) => (Ti(s, e, "access private method"), t);
|
13
|
-
const
|
14
|
-
s.registerComponent("conversation", Promise.resolve().then(() =>
|
13
|
+
const jl = async (s) => {
|
14
|
+
s.registerComponent("conversation", Promise.resolve().then(() => zl));
|
15
15
|
};
|
16
16
|
class fs {
|
17
17
|
constructor() {
|
@@ -1278,8 +1278,11 @@ function Ut() {
|
|
1278
1278
|
});
|
1279
1279
|
}
|
1280
1280
|
var W = /* @__PURE__ */ ((s) => (s.User = "user", s.Agent = "agent", s.System = "system", s))(W || {});
|
1281
|
-
const
|
1282
|
-
|
1281
|
+
const _r = () => "10000000-1000-4000-8000-100000000000".replace(
|
1282
|
+
/[018]/g,
|
1283
|
+
(s) => (+s ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +s / 4).toString(16)
|
1284
|
+
), Ms = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : _r();
|
1285
|
+
function Dl(s) {
|
1283
1286
|
let e = s;
|
1284
1287
|
const t = /https?:\/\/[^\s<]+/gi, n = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, i = s.match(t) || [], r = [];
|
1285
1288
|
let o;
|
@@ -1299,9 +1302,9 @@ function jl(s) {
|
|
1299
1302
|
);
|
1300
1303
|
}), e;
|
1301
1304
|
}
|
1302
|
-
function
|
1305
|
+
function Sr(s) {
|
1303
1306
|
if (s.includes("aceChatGuideTitle"))
|
1304
|
-
return
|
1307
|
+
return Cr(s);
|
1305
1308
|
const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
|
1306
1309
|
return s.replace(e, (t) => {
|
1307
1310
|
const n = zs(t);
|
@@ -1335,7 +1338,7 @@ function zs(s) {
|
|
1335
1338
|
function jt(s, e) {
|
1336
1339
|
return s.replace(/>[^<]*<\/a>/, `>${e}</a>`);
|
1337
1340
|
}
|
1338
|
-
function
|
1341
|
+
function Cr(s) {
|
1339
1342
|
const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
|
1340
1343
|
return s.replace(e, (t) => {
|
1341
1344
|
const n = zs(t);
|
@@ -1363,7 +1366,7 @@ class ct {
|
|
1363
1366
|
this.remove$.next();
|
1364
1367
|
}
|
1365
1368
|
}
|
1366
|
-
class
|
1369
|
+
class Ar {
|
1367
1370
|
constructor(e) {
|
1368
1371
|
this.name = e, this.print$ = new _();
|
1369
1372
|
}
|
@@ -1383,7 +1386,7 @@ class Cr {
|
|
1383
1386
|
return this.print$.asObservable();
|
1384
1387
|
}
|
1385
1388
|
}
|
1386
|
-
class
|
1389
|
+
class Er {
|
1387
1390
|
constructor(e) {
|
1388
1391
|
this.name = e, this.print$ = new _();
|
1389
1392
|
}
|
@@ -1403,7 +1406,7 @@ class Ar {
|
|
1403
1406
|
return this.print$.asObservable();
|
1404
1407
|
}
|
1405
1408
|
}
|
1406
|
-
class
|
1409
|
+
class Tr {
|
1407
1410
|
constructor() {
|
1408
1411
|
this.print$ = new _(), this.name = "system";
|
1409
1412
|
}
|
@@ -1423,7 +1426,7 @@ class Er {
|
|
1423
1426
|
return this.print$.asObservable();
|
1424
1427
|
}
|
1425
1428
|
}
|
1426
|
-
class
|
1429
|
+
class Hl {
|
1427
1430
|
constructor(e, t) {
|
1428
1431
|
this.name = e, this.component = t, this.print$ = new _(), this.typingState$ = new U(!1), this.complete$ = new _(), this.system = this.createSystem(), this.rehydrate$ = new _(), this.saveToCurrentSession$ = new _(), this.showChatOverlay$ = new U(!1), this.onComplete = () => this.complete$.asObservable();
|
1429
1432
|
}
|
@@ -1457,19 +1460,19 @@ class Dl {
|
|
1457
1460
|
return this.print$.next(e), e;
|
1458
1461
|
}
|
1459
1462
|
createAgent(e) {
|
1460
|
-
const t = new
|
1463
|
+
const t = new Ar(e);
|
1461
1464
|
return t.subscribe().subscribe((n) => {
|
1462
1465
|
this.playNotification(), this.printEntry(n);
|
1463
1466
|
}), t;
|
1464
1467
|
}
|
1465
1468
|
createUser(e) {
|
1466
|
-
const t = new
|
1469
|
+
const t = new Er(e);
|
1467
1470
|
return t.subscribe().subscribe((n) => {
|
1468
1471
|
this.printEntry(n);
|
1469
1472
|
}), t;
|
1470
1473
|
}
|
1471
1474
|
createSystem() {
|
1472
|
-
const e = new
|
1475
|
+
const e = new Tr();
|
1473
1476
|
return e.subscribe().subscribe((t) => {
|
1474
1477
|
this.printEntry(t);
|
1475
1478
|
}), e;
|
@@ -1525,7 +1528,7 @@ let Us = class {
|
|
1525
1528
|
return this.cssText;
|
1526
1529
|
}
|
1527
1530
|
};
|
1528
|
-
const
|
1531
|
+
const Lr = (s) => new Us(typeof s == "string" ? s : s + "", void 0, Jt), E = (s, ...e) => {
|
1529
1532
|
const t = s.length === 1 ? s[0] : e.reduce((n, i, r) => n + ((o) => {
|
1530
1533
|
if (o._$cssResult$ === !0)
|
1531
1534
|
return o.cssText;
|
@@ -1534,7 +1537,7 @@ const Tr = (s) => new Us(typeof s == "string" ? s : s + "", void 0, Jt), E = (s,
|
|
1534
1537
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
1535
1538
|
})(i) + s[r + 1], s[0]);
|
1536
1539
|
return new Us(t, s, Jt);
|
1537
|
-
},
|
1540
|
+
}, Or = (s, e) => {
|
1538
1541
|
if (Vt)
|
1539
1542
|
s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
1540
1543
|
else
|
@@ -1546,17 +1549,17 @@ const Tr = (s) => new Us(typeof s == "string" ? s : s + "", void 0, Jt), E = (s,
|
|
1546
1549
|
let t = "";
|
1547
1550
|
for (const n of e.cssRules)
|
1548
1551
|
t += n.cssText;
|
1549
|
-
return
|
1552
|
+
return Lr(t);
|
1550
1553
|
})(s) : s;
|
1551
1554
|
/**
|
1552
1555
|
* @license
|
1553
1556
|
* Copyright 2017 Google LLC
|
1554
1557
|
* SPDX-License-Identifier: BSD-3-Clause
|
1555
1558
|
*/
|
1556
|
-
const { is:
|
1559
|
+
const { is: Pr, defineProperty: Rr, getOwnPropertyDescriptor: Ir, getOwnPropertyNames: Mr, getOwnPropertySymbols: zr, getPrototypeOf: Ur } = Object, Y = globalThis, On = Y.trustedTypes, jr = On ? On.emptyScript : "", kt = Y.reactiveElementPolyfillSupport, we = (s, e) => s, Ke = { toAttribute(s, e) {
|
1557
1560
|
switch (e) {
|
1558
1561
|
case Boolean:
|
1559
|
-
s = s ?
|
1562
|
+
s = s ? jr : null;
|
1560
1563
|
break;
|
1561
1564
|
case Object:
|
1562
1565
|
case Array:
|
@@ -1581,7 +1584,7 @@ const { is: Or, defineProperty: Pr, getOwnPropertyDescriptor: Rr, getOwnProperty
|
|
1581
1584
|
}
|
1582
1585
|
}
|
1583
1586
|
return t;
|
1584
|
-
} }, en = (s, e) => !
|
1587
|
+
} }, en = (s, e) => !Pr(s, e), Pn = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged: en };
|
1585
1588
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Y.litPropertyMetadata ?? (Y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1586
1589
|
let le = class extends HTMLElement {
|
1587
1590
|
static addInitializer(e) {
|
@@ -1593,11 +1596,11 @@ let le = class extends HTMLElement {
|
|
1593
1596
|
static createProperty(e, t = Pn) {
|
1594
1597
|
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
|
1595
1598
|
const n = Symbol(), i = this.getPropertyDescriptor(e, n, t);
|
1596
|
-
i !== void 0 &&
|
1599
|
+
i !== void 0 && Rr(this.prototype, e, i);
|
1597
1600
|
}
|
1598
1601
|
}
|
1599
1602
|
static getPropertyDescriptor(e, t, n) {
|
1600
|
-
const { get: i, set: r } =
|
1603
|
+
const { get: i, set: r } = Ir(this.prototype, e) ?? { get() {
|
1601
1604
|
return this[t];
|
1602
1605
|
}, set(o) {
|
1603
1606
|
this[t] = o;
|
@@ -1615,14 +1618,14 @@ let le = class extends HTMLElement {
|
|
1615
1618
|
static _$Ei() {
|
1616
1619
|
if (this.hasOwnProperty(we("elementProperties")))
|
1617
1620
|
return;
|
1618
|
-
const e =
|
1621
|
+
const e = Ur(this);
|
1619
1622
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
1620
1623
|
}
|
1621
1624
|
static finalize() {
|
1622
1625
|
if (this.hasOwnProperty(we("finalized")))
|
1623
1626
|
return;
|
1624
1627
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(we("properties"))) {
|
1625
|
-
const t = this.properties, n = [...
|
1628
|
+
const t = this.properties, n = [...Mr(t), ...zr(t)];
|
1626
1629
|
for (const i of n)
|
1627
1630
|
this.createProperty(i, t[i]);
|
1628
1631
|
}
|
@@ -1677,7 +1680,7 @@ let le = class extends HTMLElement {
|
|
1677
1680
|
}
|
1678
1681
|
createRenderRoot() {
|
1679
1682
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
1680
|
-
return
|
1683
|
+
return Or(e, this.constructor.elementStyles), e;
|
1681
1684
|
}
|
1682
1685
|
connectedCallback() {
|
1683
1686
|
var e;
|
@@ -1800,15 +1803,15 @@ le.elementStyles = [], le.shadowRootOptions = { mode: "open" }, le[we("elementPr
|
|
1800
1803
|
* Copyright 2017 Google LLC
|
1801
1804
|
* SPDX-License-Identifier: BSD-3-Clause
|
1802
1805
|
*/
|
1803
|
-
const ke = globalThis, Xe = ke.trustedTypes, Rn = Xe ? Xe.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, js = "$lit$", Z = `lit$${(Math.random() + "").slice(9)}$`, Ds = "?" + Z,
|
1806
|
+
const ke = globalThis, Xe = ke.trustedTypes, Rn = Xe ? Xe.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, js = "$lit$", Z = `lit$${(Math.random() + "").slice(9)}$`, Ds = "?" + Z, Dr = `<${Ds}>`, ie = document, Ae = () => ie.createComment(""), Ee = (s) => s === null || typeof s != "object" && typeof s != "function", Hs = Array.isArray, Hr = (s) => Hs(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", _t = `[
|
1804
1807
|
\f\r]`, $e = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, In = /-->/g, Mn = />/g, ee = RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
|
1805
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), zn = /'/g, Un = /"/g, Bs = /^(?:script|style|textarea|title)$/i,
|
1808
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), zn = /'/g, Un = /"/g, Bs = /^(?:script|style|textarea|title)$/i, Br = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), m = Br(1), G = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), jn = /* @__PURE__ */ new WeakMap(), ne = ie.createTreeWalker(ie, 129);
|
1806
1809
|
function Ns(s, e) {
|
1807
1810
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
1808
1811
|
throw Error("invalid template strings array");
|
1809
1812
|
return Rn !== void 0 ? Rn.createHTML(e) : e;
|
1810
1813
|
}
|
1811
|
-
const
|
1814
|
+
const Nr = (s, e) => {
|
1812
1815
|
const t = s.length - 1, n = [];
|
1813
1816
|
let i, r = e === 2 ? "<svg>" : "", o = $e;
|
1814
1817
|
for (let a = 0; a < t; a++) {
|
@@ -1817,7 +1820,7 @@ const Br = (s, e) => {
|
|
1817
1820
|
for (; p < l.length && (o.lastIndex = p, h = o.exec(l), h !== null); )
|
1818
1821
|
p = o.lastIndex, o === $e ? h[1] === "!--" ? o = In : h[1] !== void 0 ? o = Mn : h[2] !== void 0 ? (Bs.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = ee) : h[3] !== void 0 && (o = ee) : o === ee ? h[0] === ">" ? (o = i ?? $e, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? ee : h[3] === '"' ? Un : zn) : o === Un || o === zn ? o = ee : o === In || o === Mn ? o = $e : (o = ee, i = void 0);
|
1819
1822
|
const d = o === ee && s[a + 1].startsWith("/>") ? " " : "";
|
1820
|
-
r += o === $e ? l +
|
1823
|
+
r += o === $e ? l + Dr : u >= 0 ? (n.push(c), l.slice(0, u) + js + l.slice(u) + Z + d) : l + Z + (u === -2 ? a : d);
|
1821
1824
|
}
|
1822
1825
|
return [Ns(s, r + (s[t] || "<?>") + (e === 2 ? "</svg>" : "")), n];
|
1823
1826
|
};
|
@@ -1826,7 +1829,7 @@ class Te {
|
|
1826
1829
|
let i;
|
1827
1830
|
this.parts = [];
|
1828
1831
|
let r = 0, o = 0;
|
1829
|
-
const a = e.length - 1, l = this.parts, [c, h] =
|
1832
|
+
const a = e.length - 1, l = this.parts, [c, h] = Nr(e, t);
|
1830
1833
|
if (this.el = Te.createElement(c, n), ne.currentNode = this.el.content, t === 2) {
|
1831
1834
|
const u = this.el.content.firstChild;
|
1832
1835
|
u.replaceWith(...u.childNodes);
|
@@ -1837,7 +1840,7 @@ class Te {
|
|
1837
1840
|
for (const u of i.getAttributeNames())
|
1838
1841
|
if (u.endsWith(js)) {
|
1839
1842
|
const p = h[o++], d = i.getAttribute(u).split(Z), b = /([.?@])?(.*)/.exec(p);
|
1840
|
-
l.push({ type: 1, index: r, name: b[2], strings: d, ctor: b[1] === "." ?
|
1843
|
+
l.push({ type: 1, index: r, name: b[2], strings: d, ctor: b[1] === "." ? qr : b[1] === "?" ? Zr : b[1] === "@" ? Wr : ht }), i.removeAttribute(u);
|
1841
1844
|
} else
|
1842
1845
|
u.startsWith(Z) && (l.push({ type: 6, index: r }), i.removeAttribute(u));
|
1843
1846
|
if (Bs.test(i.tagName)) {
|
@@ -1873,7 +1876,7 @@ function ve(s, e, t = s, n) {
|
|
1873
1876
|
const r = Ee(e) ? void 0 : e._$litDirective$;
|
1874
1877
|
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(s), i._$AT(s, t, n)), n !== void 0 ? (t._$Co ?? (t._$Co = []))[n] = i : t._$Cl = i), i !== void 0 && (e = ve(s, i._$AS(s, e.values), i, n)), e;
|
1875
1878
|
}
|
1876
|
-
class
|
1879
|
+
class Fr {
|
1877
1880
|
constructor(e, t) {
|
1878
1881
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
1879
1882
|
}
|
@@ -1890,7 +1893,7 @@ class Nr {
|
|
1890
1893
|
for (; l !== void 0; ) {
|
1891
1894
|
if (o === l.index) {
|
1892
1895
|
let c;
|
1893
|
-
l.type === 2 ? c = new Ie(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new
|
1896
|
+
l.type === 2 ? c = new Ie(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Yr(r, this, e)), this._$AV.push(c), l = n[++a];
|
1894
1897
|
}
|
1895
1898
|
o !== (l == null ? void 0 : l.index) && (r = ne.nextNode(), o++);
|
1896
1899
|
}
|
@@ -1922,7 +1925,7 @@ class Ie {
|
|
1922
1925
|
return this._$AB;
|
1923
1926
|
}
|
1924
1927
|
_$AI(e, t = this) {
|
1925
|
-
e = ve(this, e, t), Ee(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== G && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) :
|
1928
|
+
e = ve(this, e, t), Ee(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== G && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Hr(e) ? this.k(e) : this._(e);
|
1926
1929
|
}
|
1927
1930
|
S(e) {
|
1928
1931
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
@@ -1939,7 +1942,7 @@ class Ie {
|
|
1939
1942
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i)
|
1940
1943
|
this._$AH.p(t);
|
1941
1944
|
else {
|
1942
|
-
const o = new
|
1945
|
+
const o = new Fr(i, this), a = o.u(this.options);
|
1943
1946
|
o.p(t), this.T(a), this._$AH = o;
|
1944
1947
|
}
|
1945
1948
|
}
|
@@ -1994,7 +1997,7 @@ class ht {
|
|
1994
1997
|
e === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
1995
1998
|
}
|
1996
1999
|
}
|
1997
|
-
class
|
2000
|
+
class qr extends ht {
|
1998
2001
|
constructor() {
|
1999
2002
|
super(...arguments), this.type = 3;
|
2000
2003
|
}
|
@@ -2002,7 +2005,7 @@ class Fr extends ht {
|
|
2002
2005
|
this.element[this.name] = e === g ? void 0 : e;
|
2003
2006
|
}
|
2004
2007
|
}
|
2005
|
-
let
|
2008
|
+
let Zr = class extends ht {
|
2006
2009
|
constructor() {
|
2007
2010
|
super(...arguments), this.type = 4;
|
2008
2011
|
}
|
@@ -2010,7 +2013,7 @@ let qr = class extends ht {
|
|
2010
2013
|
this.element.toggleAttribute(this.name, !!e && e !== g);
|
2011
2014
|
}
|
2012
2015
|
};
|
2013
|
-
class
|
2016
|
+
class Wr extends ht {
|
2014
2017
|
constructor(e, t, n, i, r) {
|
2015
2018
|
super(e, t, n, i, r), this.type = 5;
|
2016
2019
|
}
|
@@ -2025,7 +2028,7 @@ class Zr extends ht {
|
|
2025
2028
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
2026
2029
|
}
|
2027
2030
|
}
|
2028
|
-
class
|
2031
|
+
class Yr {
|
2029
2032
|
constructor(e, t, n) {
|
2030
2033
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
2031
2034
|
}
|
@@ -2038,7 +2041,7 @@ class Wr {
|
|
2038
2041
|
}
|
2039
2042
|
const St = ke.litHtmlPolyfillSupport;
|
2040
2043
|
St == null || St(Te, Ie), (ke.litHtmlVersions ?? (ke.litHtmlVersions = [])).push("3.1.2");
|
2041
|
-
const
|
2044
|
+
const Qr = (s, e, t) => {
|
2042
2045
|
const n = (t == null ? void 0 : t.renderBefore) ?? e;
|
2043
2046
|
let i = n._$litPart$;
|
2044
2047
|
if (i === void 0) {
|
@@ -2063,7 +2066,7 @@ let k = class extends le {
|
|
2063
2066
|
}
|
2064
2067
|
update(e) {
|
2065
2068
|
const t = this.render();
|
2066
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
2069
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Qr(t, this.renderRoot, this.renderOptions);
|
2067
2070
|
}
|
2068
2071
|
connectedCallback() {
|
2069
2072
|
var e;
|
@@ -2082,7 +2085,7 @@ k._$litElement$ = !0, k.finalized = !0, (ds = globalThis.litElementHydrateSuppor
|
|
2082
2085
|
const Ct = globalThis.litElementPolyfillSupport;
|
2083
2086
|
Ct == null || Ct({ LitElement: k });
|
2084
2087
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
2085
|
-
const
|
2088
|
+
const Gr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, Kr = { name: "check-circle-filled", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Xr = { name: "check-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Vr = { name: "chevron-down", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Jr = { name: "close-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="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>' }, Dn = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, eo = { 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>' }, to = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, Hn = { name: "volume", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, ce = {
|
2086
2089
|
allRenderFn: !1,
|
2087
2090
|
cmpDidLoad: !0,
|
2088
2091
|
cmpDidUnload: !1,
|
@@ -2176,7 +2179,7 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2176
2179
|
ael: (s, e, t, n) => s.addEventListener(e, t, n),
|
2177
2180
|
rel: (s, e, t, n) => s.removeEventListener(e, t, n),
|
2178
2181
|
ce: (s, e) => new CustomEvent(s, e)
|
2179
|
-
},
|
2182
|
+
}, no = /* @__PURE__ */ (() => {
|
2180
2183
|
let s = !1;
|
2181
2184
|
try {
|
2182
2185
|
H.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
@@ -2187,7 +2190,7 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2187
2190
|
} catch {
|
2188
2191
|
}
|
2189
2192
|
return s;
|
2190
|
-
})(),
|
2193
|
+
})(), so = (s) => Promise.resolve(s), io = /* @__PURE__ */ (() => {
|
2191
2194
|
try {
|
2192
2195
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2193
2196
|
} catch {
|
@@ -2195,23 +2198,23 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2195
2198
|
return !1;
|
2196
2199
|
})(), Ws = (s, e, t, n) => {
|
2197
2200
|
t && t.map(([i, r, o]) => {
|
2198
|
-
const a =
|
2201
|
+
const a = oo(s, i), l = ro(e, o), c = ao(i);
|
2199
2202
|
S.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => S.rel(a, r, l, c));
|
2200
2203
|
});
|
2201
|
-
},
|
2204
|
+
}, ro = (s, e) => (t) => {
|
2202
2205
|
try {
|
2203
2206
|
ce.lazyLoad || s.$hostElement$[e](t);
|
2204
2207
|
} catch (n) {
|
2205
2208
|
Me(n);
|
2206
2209
|
}
|
2207
|
-
},
|
2210
|
+
}, oo = (s, e) => e & 4 ? H : e & 8 ? pt : e & 16 ? H.body : s, ao = (s) => no ? {
|
2208
2211
|
passive: (s & 1) !== 0,
|
2209
2212
|
capture: (s & 2) !== 0
|
2210
2213
|
} : (s & 2) !== 0, Nn = "http://www.w3.org/1999/xlink", re = (s, e = "") => () => {
|
2211
|
-
}, Fn = /* @__PURE__ */ new WeakMap(),
|
2214
|
+
}, Fn = /* @__PURE__ */ new WeakMap(), lo = (s, e, t) => {
|
2212
2215
|
let n = tt.get(s);
|
2213
|
-
|
2214
|
-
},
|
2216
|
+
io && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e, tt.set(s, n);
|
2217
|
+
}, co = (s, e, t, n) => {
|
2215
2218
|
let i = Ys(e, t), r = tt.get(i);
|
2216
2219
|
if (s = s.nodeType === 11 ? s : H, r)
|
2217
2220
|
if (typeof r == "string") {
|
@@ -2221,10 +2224,10 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2221
2224
|
} else
|
2222
2225
|
s.adoptedStyleSheets.includes(r) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, r]);
|
2223
2226
|
return i;
|
2224
|
-
},
|
2225
|
-
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i = re("attachStyles", e.$tagName$), r =
|
2227
|
+
}, ho = (s) => {
|
2228
|
+
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i = re("attachStyles", e.$tagName$), r = co(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, s.$modeName$);
|
2226
2229
|
n & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), n & 2 && t.classList.add(r + "-s")), i();
|
2227
|
-
}, Ys = (s, e) => "sc-" + (e && s.$flags$ & 32 ? s.$tagName$ + "-" + e : s.$tagName$),
|
2230
|
+
}, Ys = (s, e) => "sc-" + (e && s.$flags$ & 32 ? s.$tagName$ + "-" + e : s.$tagName$), uo = (s) => Ho.map((e) => e(s)).find((e) => !!e), qn = {}, po = "http://www.w3.org/2000/svg", fo = "http://www.w3.org/1999/xhtml", go = (s) => s != null, nn = (s) => (s = typeof s, s === "object" || s === "function"), fe = (s, e, ...t) => {
|
2228
2231
|
let n = null, i = null, r = null, o = !1, a = !1, l = [];
|
2229
2232
|
const c = (u) => {
|
2230
2233
|
for (let p = 0; p < u.length; p++)
|
@@ -2238,7 +2241,7 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2238
2241
|
}
|
2239
2242
|
}
|
2240
2243
|
if (typeof s == "function")
|
2241
|
-
return s(e === null ? {} : e, l,
|
2244
|
+
return s(e === null ? {} : e, l, vo);
|
2242
2245
|
const h = Je(s, null);
|
2243
2246
|
return h.$attrs$ = e, l.length > 0 && (h.$children$ = l), h.$key$ = i, h.$name$ = r, h;
|
2244
2247
|
}, Je = (s, e) => {
|
@@ -2250,9 +2253,9 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2250
2253
|
$children$: null
|
2251
2254
|
};
|
2252
2255
|
return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
|
2253
|
-
}, sn = {},
|
2256
|
+
}, sn = {}, mo = (s) => s && s.$tag$ === sn, vo = {
|
2254
2257
|
forEach: (s, e) => s.map(Zn).forEach(e),
|
2255
|
-
map: (s, e) => s.map(Zn).map(e).map(
|
2258
|
+
map: (s, e) => s.map(Zn).map(e).map(bo)
|
2256
2259
|
}, Zn = (s) => ({
|
2257
2260
|
vattrs: s.$attrs$,
|
2258
2261
|
vchildren: s.$children$,
|
@@ -2260,7 +2263,7 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2260
2263
|
vname: s.$name$,
|
2261
2264
|
vtag: s.$tag$,
|
2262
2265
|
vtext: s.$text$
|
2263
|
-
}),
|
2266
|
+
}), bo = (s) => {
|
2264
2267
|
if (typeof s.vtag == "function") {
|
2265
2268
|
const t = Object.assign({}, s.vattrs);
|
2266
2269
|
return s.vkey && (t.key = s.vkey), s.vname && (t.name = s.vname), fe(s.vtag, t, ...s.vchildren || []);
|
@@ -2299,7 +2302,7 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2299
2302
|
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), n == null || n === !1 ? (n !== !1 || s.getAttribute(e) === "") && (c ? s.removeAttributeNS(Nn, e) : s.removeAttribute(e)) : (!o || r & 4 || i) && !l && (n = n === !0 ? "" : n, c ? s.setAttributeNS(Nn, e, n) : s.setAttribute(e, n));
|
2300
2303
|
}
|
2301
2304
|
}
|
2302
|
-
},
|
2305
|
+
}, yo = /\s/, Yn = (s) => s ? s.split(yo) : [], Qs = (s, e, t, n) => {
|
2303
2306
|
const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = s && s.$attrs$ || qn, o = e.$attrs$ || qn;
|
2304
2307
|
for (n in r)
|
2305
2308
|
n in o || Wn(i, n, r[n], void 0, t, e.$flags$);
|
@@ -2318,7 +2321,7 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2318
2321
|
else if (i.$flags$ & 1)
|
2319
2322
|
o = i.$elm$ = H.createTextNode("");
|
2320
2323
|
else {
|
2321
|
-
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ = H.createElementNS(T ?
|
2324
|
+
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ = H.createElementNS(T ? po : fo, i.$flags$ & 2 ? "slot-fb" : i.$tag$), T && i.$tag$ === "foreignObject" && (T = !1), Qs(null, i, T), go(he) && o["s-si"] !== he && o.classList.add(o["s-si"] = he), i.$children$)
|
2322
2325
|
for (r = 0; r < i.$children$.length; ++r)
|
2323
2326
|
a = et(s, i, r, o), a && o.appendChild(a);
|
2324
2327
|
i.$tag$ === "svg" ? T = !1 : o.tagName === "foreignObject" && (T = !0);
|
@@ -2339,7 +2342,7 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2339
2342
|
}, Ks = (s, e, t, n, i) => {
|
2340
2343
|
for (; e <= t; ++e)
|
2341
2344
|
(n = s[e]) && (i = n.$elm$, ei(n), Ve = !0, i["s-ol"] ? i["s-ol"].remove() : Le(i, !0), i.remove());
|
2342
|
-
},
|
2345
|
+
}, $o = (s, e, t, n) => {
|
2343
2346
|
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], h = e[l], u = n.length - 1, p = n[0], d = n[u], b, f;
|
2344
2347
|
for (; i <= l && r <= u; )
|
2345
2348
|
if (c == null)
|
@@ -2370,7 +2373,7 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2370
2373
|
}, Ne = (s, e) => s.$tag$ === e.$tag$ ? s.$tag$ === "slot" ? s.$name$ === e.$name$ : s.$key$ === e.$key$ : !1, rn = (s) => s && s["s-ol"] || s, Xs = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, ue = (s, e) => {
|
2371
2374
|
const t = e.$elm$ = s.$elm$, n = s.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
2372
2375
|
let a;
|
2373
|
-
o === null ? (T = r === "svg" ? !0 : r === "foreignObject" ? !1 : T, r === "slot" || Qs(s, e, T), n !== null && i !== null ?
|
2376
|
+
o === null ? (T = r === "svg" ? !0 : r === "foreignObject" ? !1 : T, r === "slot" || Qs(s, e, T), n !== null && i !== null ? $o(t, n, e, i) : i !== null ? (s.$text$ !== null && (t.textContent = ""), Gs(t, null, e, i, 0, i.length - 1)) : n !== null && Ks(n, 0, n.length - 1), T && r === "svg" && (T = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (t.data = o);
|
2374
2377
|
}, Vs = (s) => {
|
2375
2378
|
let e = s.childNodes, t, n, i, r, o, a;
|
2376
2379
|
for (n = 0, i = e.length; n < i; n++)
|
@@ -2406,8 +2409,8 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2406
2409
|
}
|
2407
2410
|
}, Qn = (s, e) => s.nodeType === 1 ? s.getAttribute("slot") === null && e === "" || s.getAttribute("slot") === e : s["s-sn"] === e ? !0 : e === "", ei = (s) => {
|
2408
2411
|
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(ei);
|
2409
|
-
},
|
2410
|
-
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Je(null, null), r =
|
2412
|
+
}, xo = (s, e) => {
|
2413
|
+
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Je(null, null), r = mo(e) ? e : fe(null, null, e);
|
2411
2414
|
ut = t.tagName, n.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, s.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, he = t["s-sc"], Fs = t["s-cr"], qs = (n.$flags$ & 1) !== 0, Ve = !1, ue(i, r);
|
2412
2415
|
{
|
2413
2416
|
if (S.$flags$ |= 1, tn) {
|
@@ -2428,37 +2431,37 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2428
2431
|
}
|
2429
2432
|
Ve && Vs(r.$elm$), S.$flags$ &= -2, O.length = 0;
|
2430
2433
|
}
|
2431
|
-
},
|
2432
|
-
const n =
|
2434
|
+
}, wo = (s) => s, ko = (s, e, t) => {
|
2435
|
+
const n = wo(s);
|
2433
2436
|
return {
|
2434
|
-
emit: (i) =>
|
2437
|
+
emit: (i) => _o(n, e, {
|
2435
2438
|
bubbles: !!(t & 4),
|
2436
2439
|
composed: !!(t & 2),
|
2437
2440
|
cancelable: !!(t & 1),
|
2438
2441
|
detail: i
|
2439
2442
|
})
|
2440
2443
|
};
|
2441
|
-
},
|
2444
|
+
}, _o = (s, e, t) => {
|
2442
2445
|
const n = S.ce(e, t);
|
2443
2446
|
return s.dispatchEvent(n), n;
|
2444
|
-
},
|
2445
|
-
}, ti = (s, e) => (s.$flags$ |= 16,
|
2447
|
+
}, So = (s, e) => {
|
2448
|
+
}, ti = (s, e) => (s.$flags$ |= 16, So(s, s.$ancestorComponent$), Fo(() => Co(s, e))), Co = (s, e) => {
|
2446
2449
|
const t = s.$hostElement$, n = re("scheduleUpdate", s.$cmpMeta$.$tagName$), i = t;
|
2447
2450
|
let r;
|
2448
|
-
return e ? r = ge(i, "componentWillLoad") : r = ge(i, "componentWillUpdate"), r = Gn(r, () => ge(i, "componentWillRender")), n(), Gn(r, () =>
|
2449
|
-
},
|
2451
|
+
return e ? r = ge(i, "componentWillLoad") : r = ge(i, "componentWillUpdate"), r = Gn(r, () => ge(i, "componentWillRender")), n(), Gn(r, () => Ao(s, i, e));
|
2452
|
+
}, Ao = async (s, e, t) => {
|
2450
2453
|
const n = s.$hostElement$, i = re("update", s.$cmpMeta$.$tagName$);
|
2451
|
-
n["s-rc"], t &&
|
2454
|
+
n["s-rc"], t && ho(s);
|
2452
2455
|
const r = re("render", s.$cmpMeta$.$tagName$);
|
2453
|
-
|
2454
|
-
},
|
2456
|
+
Eo(s, e, n), r(), i(), To(s);
|
2457
|
+
}, Eo = (s, e, t) => {
|
2455
2458
|
try {
|
2456
|
-
Bn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (ce.hasRenderFn || ce.reflect) && (ce.vdomRender || ce.reflect) && (ce.hydrateServerSide ||
|
2459
|
+
Bn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (ce.hasRenderFn || ce.reflect) && (ce.vdomRender || ce.reflect) && (ce.hydrateServerSide || xo(s, e));
|
2457
2460
|
} catch (a) {
|
2458
2461
|
Me(a, s.$hostElement$);
|
2459
2462
|
}
|
2460
2463
|
return Bn = null, null;
|
2461
|
-
},
|
2464
|
+
}, To = (s) => {
|
2462
2465
|
const e = s.$cmpMeta$.$tagName$, t = s.$hostElement$, n = re("postUpdate", e), i = t;
|
2463
2466
|
s.$ancestorComponent$, ge(i, "componentDidRender"), s.$flags$ & 64 ? (ge(i, "componentDidUpdate"), n()) : (s.$flags$ |= 64, ge(i, "componentDidLoad"), n());
|
2464
2467
|
}, ge = (s, e, t) => {
|
@@ -2468,9 +2471,9 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2468
2471
|
} catch (n) {
|
2469
2472
|
Me(n);
|
2470
2473
|
}
|
2471
|
-
}, Gn = (s, e) => s && s.then ? s.then(e) : e(),
|
2474
|
+
}, Gn = (s, e) => s && s.then ? s.then(e) : e(), Lo = (s, e) => s != null && !nn(s) ? e & 4 ? s === "false" ? !1 : s === "" || !!s : e & 2 ? parseFloat(s) : e & 1 ? String(s) : s : s, Oo = (s, e) => dt(s).$instanceValues$.get(e), Po = (s, e, t, n) => {
|
2472
2475
|
const i = dt(s), r = s, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
|
2473
|
-
t =
|
2476
|
+
t = Lo(t, n.$members$[e][0]);
|
2474
2477
|
const c = Number.isNaN(o) && Number.isNaN(t);
|
2475
2478
|
if (t !== o && !c) {
|
2476
2479
|
i.$instanceValues$.set(e, t);
|
@@ -2492,17 +2495,17 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2492
2495
|
}
|
2493
2496
|
}
|
2494
2497
|
}
|
2495
|
-
},
|
2498
|
+
}, Ro = (s, e, t) => {
|
2496
2499
|
if (e.$members$) {
|
2497
2500
|
s.watchers && (e.$watchers$ = s.watchers);
|
2498
2501
|
const n = Object.entries(e.$members$), i = s.prototype;
|
2499
2502
|
n.map(([r, [o]]) => {
|
2500
2503
|
(o & 31 || o & 32) && Object.defineProperty(i, r, {
|
2501
2504
|
get() {
|
2502
|
-
return
|
2505
|
+
return Oo(this, r);
|
2503
2506
|
},
|
2504
2507
|
set(a) {
|
2505
|
-
|
2508
|
+
Po(this, r, a, e);
|
2506
2509
|
},
|
2507
2510
|
configurable: !0,
|
2508
2511
|
enumerable: !0
|
@@ -2529,32 +2532,32 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2529
2532
|
}
|
2530
2533
|
}
|
2531
2534
|
return s;
|
2532
|
-
},
|
2535
|
+
}, Io = async (s, e, t, n, i) => {
|
2533
2536
|
if (!(e.$flags$ & 32) && (i = s.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), i.style)) {
|
2534
2537
|
let o = i.style;
|
2535
|
-
typeof o != "string" && (o = o[e.$modeName$ =
|
2538
|
+
typeof o != "string" && (o = o[e.$modeName$ = uo(s)]);
|
2536
2539
|
const a = Ys(t, e.$modeName$);
|
2537
2540
|
if (!tt.has(a)) {
|
2538
2541
|
const l = re("registerStyles", t.$tagName$);
|
2539
|
-
|
2542
|
+
lo(a, o, !!(t.$flags$ & 1)), l();
|
2540
2543
|
}
|
2541
2544
|
}
|
2542
2545
|
e.$ancestorComponent$, (() => ti(e, !0))();
|
2543
|
-
}, Io = (s) => {
|
2544
2546
|
}, Mo = (s) => {
|
2547
|
+
}, zo = (s) => {
|
2545
2548
|
if (!(S.$flags$ & 1)) {
|
2546
2549
|
const e = dt(s), t = e.$cmpMeta$, n = re("connectedCallback", t.$tagName$);
|
2547
|
-
e.$flags$ & 1 ? (Ws(s, e, t.$listeners$),
|
2550
|
+
e.$flags$ & 1 ? (Ws(s, e, t.$listeners$), Mo(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Uo(s), t.$members$ && Object.entries(t.$members$).map(([i, [r]]) => {
|
2548
2551
|
if (r & 31 && s.hasOwnProperty(i)) {
|
2549
2552
|
const o = s[i];
|
2550
2553
|
delete s[i], s[i] = o;
|
2551
2554
|
}
|
2552
|
-
}),
|
2555
|
+
}), Io(s, e, t)), n();
|
2553
2556
|
}
|
2554
|
-
},
|
2557
|
+
}, Uo = (s) => {
|
2555
2558
|
const e = s["s-cr"] = H.createComment("");
|
2556
2559
|
e["s-cn"] = !0, s.insertBefore(e, s.firstChild);
|
2557
|
-
},
|
2560
|
+
}, jo = (s) => {
|
2558
2561
|
if (!(S.$flags$ & 1)) {
|
2559
2562
|
const e = dt(s);
|
2560
2563
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
@@ -2568,13 +2571,13 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2568
2571
|
const n = s.prototype.connectedCallback, i = s.prototype.disconnectedCallback;
|
2569
2572
|
return Object.assign(s.prototype, {
|
2570
2573
|
__registerHost() {
|
2571
|
-
|
2574
|
+
Do(this, t);
|
2572
2575
|
},
|
2573
2576
|
connectedCallback() {
|
2574
|
-
|
2577
|
+
zo(this), n && n.call(this);
|
2575
2578
|
},
|
2576
2579
|
disconnectedCallback() {
|
2577
|
-
|
2580
|
+
jo(this), i && i.call(this);
|
2578
2581
|
},
|
2579
2582
|
__attachShadow() {
|
2580
2583
|
this.attachShadow({
|
@@ -2582,8 +2585,8 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2582
2585
|
delegatesFocus: !!(t.$flags$ & 16)
|
2583
2586
|
});
|
2584
2587
|
}
|
2585
|
-
}), s.is = t.$tagName$,
|
2586
|
-
}, si = /* @__PURE__ */ new WeakMap(), dt = (s) => si.get(s),
|
2588
|
+
}), s.is = t.$tagName$, Ro(s, t);
|
2589
|
+
}, si = /* @__PURE__ */ new WeakMap(), dt = (s) => si.get(s), Do = (s, e) => {
|
2587
2590
|
const t = {
|
2588
2591
|
$flags$: 0,
|
2589
2592
|
$hostElement$: s,
|
@@ -2591,8 +2594,8 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2591
2594
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2592
2595
|
};
|
2593
2596
|
return Ws(s, t, e.$listeners$), si.set(s, t);
|
2594
|
-
}, Kn = (s, e) => e in s, Me = (s, e) => (0, console.error)(s, e), tt = /* @__PURE__ */ new Map(),
|
2595
|
-
s.push(t), Dt || (Dt = !0, e && S.$flags$ & 4 ?
|
2597
|
+
}, Kn = (s, e) => e in s, Me = (s, e) => (0, console.error)(s, e), tt = /* @__PURE__ */ new Map(), Ho = [], Xn = [], ii = [], Bo = (s, e) => (t) => {
|
2598
|
+
s.push(t), Dt || (Dt = !0, e && S.$flags$ & 4 ? No(Ht) : S.raf(Ht));
|
2596
2599
|
}, Vn = (s) => {
|
2597
2600
|
for (let e = 0; e < s.length; e++)
|
2598
2601
|
try {
|
@@ -2603,7 +2606,7 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2603
2606
|
s.length = 0;
|
2604
2607
|
}, Ht = () => {
|
2605
2608
|
Vn(Xn), Vn(ii), (Dt = Xn.length > 0) && S.raf(Ht);
|
2606
|
-
},
|
2609
|
+
}, No = (s) => so().then(s), Fo = /* @__PURE__ */ Bo(ii, !0), qo = (s = {}) => {
|
2607
2610
|
const { content: e = "", title: t, attributes: n = [] } = s;
|
2608
2611
|
let i = "", r = [
|
2609
2612
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2611,27 +2614,27 @@ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Z
|
|
2611
2614
|
...n
|
2612
2615
|
];
|
2613
2616
|
return t && (i = `<title>${t}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${i}${e}</svg>`;
|
2614
|
-
},
|
2615
|
-
function
|
2617
|
+
}, Zo = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2618
|
+
function Wo(s) {
|
2616
2619
|
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
2617
2620
|
}
|
2618
|
-
class
|
2621
|
+
class Yo {
|
2619
2622
|
constructor(e) {
|
2620
|
-
this.voca_component = e, this.voca_added =
|
2623
|
+
this.voca_component = e, this.voca_added = Wo(/* @__PURE__ */ new Date());
|
2621
2624
|
}
|
2622
2625
|
}
|
2623
|
-
const
|
2626
|
+
const Qo = "telia-vst{display:none}", Go = /* @__PURE__ */ ni(class extends Zs {
|
2624
2627
|
constructor() {
|
2625
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
2628
|
+
super(), this.__registerHost(), this.vocaInternalUStats = ko(this, "vocaInternalUStats", 7);
|
2626
2629
|
}
|
2627
2630
|
connectedCallback() {
|
2628
|
-
this.vocaInternalUStats.emit(new
|
2631
|
+
this.vocaInternalUStats.emit(new Yo(this.dataTrackingId));
|
2629
2632
|
}
|
2630
2633
|
render() {
|
2631
2634
|
return fe(sn, null);
|
2632
2635
|
}
|
2633
2636
|
static get style() {
|
2634
|
-
return
|
2637
|
+
return Qo;
|
2635
2638
|
}
|
2636
2639
|
}, [0, "telia-vst", {
|
2637
2640
|
dataTrackingId: [1, "data-tracking-id"]
|
@@ -2642,7 +2645,7 @@ function ri() {
|
|
2642
2645
|
["telia-vst"].forEach((e) => {
|
2643
2646
|
switch (e) {
|
2644
2647
|
case "telia-vst":
|
2645
|
-
customElements.get(e) || customElements.define(e,
|
2648
|
+
customElements.get(e) || customElements.define(e, Go);
|
2646
2649
|
break;
|
2647
2650
|
}
|
2648
2651
|
});
|
@@ -2651,14 +2654,14 @@ ri();
|
|
2651
2654
|
function Bt() {
|
2652
2655
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2653
2656
|
}
|
2654
|
-
function
|
2657
|
+
function Ko() {
|
2655
2658
|
if (typeof Bt().vocadsIcons !== void 0)
|
2656
2659
|
return Bt().vocadsIcons;
|
2657
2660
|
}
|
2658
|
-
function
|
2661
|
+
function Xo() {
|
2659
2662
|
return Bt().vocadsIconsRegistered;
|
2660
2663
|
}
|
2661
|
-
const
|
2664
|
+
const Vo = ".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))}", Jo = /* @__PURE__ */ ni(class extends Zs {
|
2662
2665
|
constructor() {
|
2663
2666
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
2664
2667
|
}
|
@@ -2670,8 +2673,8 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2670
2673
|
getSvgString() {
|
2671
2674
|
if (this.svg)
|
2672
2675
|
return this.svg;
|
2673
|
-
if (
|
2674
|
-
const s =
|
2676
|
+
if (Xo() && this.name) {
|
2677
|
+
const s = Ko();
|
2675
2678
|
return s[this.name] ? s[this.name].svg : "";
|
2676
2679
|
}
|
2677
2680
|
return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
|
@@ -2682,15 +2685,15 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2682
2685
|
...e,
|
2683
2686
|
{ name: "aria-hidden", value: "true" }
|
2684
2687
|
];
|
2685
|
-
const t =
|
2686
|
-
content:
|
2688
|
+
const t = qo({
|
2689
|
+
content: Zo(s),
|
2687
2690
|
attributes: e,
|
2688
2691
|
title: this.allyTitle
|
2689
2692
|
});
|
2690
2693
|
return fe(sn, { class: `telia-icon telia-icon--${this.size}` }, fe("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), fe("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
2691
2694
|
}
|
2692
2695
|
static get style() {
|
2693
|
-
return
|
2696
|
+
return Vo;
|
2694
2697
|
}
|
2695
2698
|
}, [0, "telia-icon", {
|
2696
2699
|
name: [1],
|
@@ -2699,13 +2702,13 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2699
2702
|
allyTitle: [1, "ally-title"],
|
2700
2703
|
dataTestid: [1, "data-testid"]
|
2701
2704
|
}]);
|
2702
|
-
function
|
2705
|
+
function ea() {
|
2703
2706
|
if (typeof customElements > "u")
|
2704
2707
|
return;
|
2705
2708
|
["telia-icon", "telia-vst"].forEach((e) => {
|
2706
2709
|
switch (e) {
|
2707
2710
|
case "telia-icon":
|
2708
|
-
customElements.get(e) || customElements.define(e,
|
2711
|
+
customElements.get(e) || customElements.define(e, Jo);
|
2709
2712
|
break;
|
2710
2713
|
case "telia-vst":
|
2711
2714
|
customElements.get(e) || ri();
|
@@ -2713,13 +2716,13 @@ function Jo() {
|
|
2713
2716
|
}
|
2714
2717
|
});
|
2715
2718
|
}
|
2716
|
-
|
2719
|
+
ea();
|
2717
2720
|
/**
|
2718
2721
|
* @license
|
2719
2722
|
* Copyright 2017 Google LLC
|
2720
2723
|
* SPDX-License-Identifier: BSD-3-Clause
|
2721
2724
|
*/
|
2722
|
-
const
|
2725
|
+
const ta = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged: en }, na = (s = ta, e, t) => {
|
2723
2726
|
const { kind: n, metadata: i } = t;
|
2724
2727
|
let r = globalThis.litPropertyMetadata.get(i);
|
2725
2728
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(t.name, s), n === "accessor") {
|
@@ -2741,7 +2744,7 @@ const ea = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged
|
|
2741
2744
|
throw Error("Unsupported decorator location: " + n);
|
2742
2745
|
};
|
2743
2746
|
function w(s) {
|
2744
|
-
return (e, t) => typeof t == "object" ?
|
2747
|
+
return (e, t) => typeof t == "object" ? na(s, e, t) : ((n, i, r) => {
|
2745
2748
|
const o = i.hasOwnProperty(r);
|
2746
2749
|
return i.constructor.createProperty(r, o ? { ...n, wrapped: !0 } : n), o ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
2747
2750
|
})(s, e, t);
|
@@ -2759,7 +2762,7 @@ function C(s) {
|
|
2759
2762
|
* Copyright 2020 Google LLC
|
2760
2763
|
* SPDX-License-Identifier: BSD-3-Clause
|
2761
2764
|
*/
|
2762
|
-
const
|
2765
|
+
const sa = (s) => s.strings === void 0;
|
2763
2766
|
/**
|
2764
2767
|
* @license
|
2765
2768
|
* Copyright 2017 Google LLC
|
@@ -2809,13 +2812,13 @@ const _e = (s, e) => {
|
|
2809
2812
|
e._$AN = t = /* @__PURE__ */ new Set();
|
2810
2813
|
else if (t.has(s))
|
2811
2814
|
break;
|
2812
|
-
t.add(s),
|
2815
|
+
t.add(s), oa(e);
|
2813
2816
|
}
|
2814
2817
|
};
|
2815
|
-
function
|
2818
|
+
function ia(s) {
|
2816
2819
|
this._$AN !== void 0 ? (nt(this), this._$AM = s, oi(this)) : this._$AM = s;
|
2817
2820
|
}
|
2818
|
-
function
|
2821
|
+
function ra(s, e = !1, t = 0) {
|
2819
2822
|
const n = this._$AH, i = this._$AN;
|
2820
2823
|
if (i !== void 0 && i.size !== 0)
|
2821
2824
|
if (e)
|
@@ -2827,8 +2830,8 @@ function ia(s, e = !1, t = 0) {
|
|
2827
2830
|
else
|
2828
2831
|
_e(this, s);
|
2829
2832
|
}
|
2830
|
-
const
|
2831
|
-
s.type == ft.CHILD && (s._$AP ?? (s._$AP =
|
2833
|
+
const oa = (s) => {
|
2834
|
+
s.type == ft.CHILD && (s._$AP ?? (s._$AP = ra), s._$AQ ?? (s._$AQ = ia));
|
2832
2835
|
};
|
2833
2836
|
let ai = class extends on {
|
2834
2837
|
constructor() {
|
@@ -2842,7 +2845,7 @@ let ai = class extends on {
|
|
2842
2845
|
e !== this.isConnected && (this.isConnected = e, e ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), t && (_e(this, e), nt(this));
|
2843
2846
|
}
|
2844
2847
|
setValue(e) {
|
2845
|
-
if (
|
2848
|
+
if (sa(this._$Ct))
|
2846
2849
|
this._$Ct._$AI(e, this);
|
2847
2850
|
else {
|
2848
2851
|
const t = [...this._$Ct._$AH];
|
@@ -2859,8 +2862,8 @@ let ai = class extends on {
|
|
2859
2862
|
* Copyright 2020 Google LLC
|
2860
2863
|
* SPDX-License-Identifier: BSD-3-Clause
|
2861
2864
|
*/
|
2862
|
-
const M = () => new
|
2863
|
-
class
|
2865
|
+
const M = () => new aa();
|
2866
|
+
class aa {
|
2864
2867
|
}
|
2865
2868
|
const At = /* @__PURE__ */ new WeakMap(), z = gt(class extends ai {
|
2866
2869
|
render(s) {
|
@@ -2922,10 +2925,10 @@ const be = gt(class extends on {
|
|
2922
2925
|
return G;
|
2923
2926
|
}
|
2924
2927
|
});
|
2925
|
-
var
|
2926
|
-
for (var i = n > 1 ? void 0 : n ?
|
2928
|
+
var la = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, ha = (s, e, t, n) => {
|
2929
|
+
for (var i = n > 1 ? void 0 : n ? ca(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
2927
2930
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
2928
|
-
return n && i &&
|
2931
|
+
return n && i && la(e, t, i), i;
|
2929
2932
|
};
|
2930
2933
|
class an extends k {
|
2931
2934
|
constructor() {
|
@@ -2958,12 +2961,12 @@ an.styles = [
|
|
2958
2961
|
}
|
2959
2962
|
`
|
2960
2963
|
];
|
2961
|
-
|
2964
|
+
ha([
|
2962
2965
|
w({ attribute: !0 })
|
2963
2966
|
], an.prototype, "anchor", 2);
|
2964
|
-
const
|
2967
|
+
const ua = /* @__PURE__ */ new WeakMap();
|
2965
2968
|
let Jn = 0;
|
2966
|
-
const Et = /* @__PURE__ */ new Map(), es = /* @__PURE__ */ new WeakSet(), ts = () => new Promise((s) => requestAnimationFrame(s)),
|
2969
|
+
const Et = /* @__PURE__ */ new Map(), es = /* @__PURE__ */ new WeakSet(), ts = () => new Promise((s) => requestAnimationFrame(s)), pa = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], da = [{ opacity: 0 }], ns = [{ opacity: 0 }, { opacity: 1 }], ss = (s, e) => {
|
2967
2970
|
const t = s - e;
|
2968
2971
|
return t === 0 ? void 0 : t;
|
2969
2972
|
}, is = (s, e) => {
|
@@ -2985,8 +2988,8 @@ const Et = /* @__PURE__ */ new Map(), es = /* @__PURE__ */ new WeakSet(), ts = (
|
|
2985
2988
|
e === 0 && (e = 1, t = { height: "1px" });
|
2986
2989
|
const n = is(s, e);
|
2987
2990
|
return { value: n, overrideFrom: t, transform: n == null || isNaN(n) ? void 0 : `scaleY(${n})` };
|
2988
|
-
} },
|
2989
|
-
class
|
2991
|
+
} }, fa = { duration: 333, easing: "ease-in-out" }, ga = ["left", "top", "width", "height", "opacity", "color", "background"], rs = /* @__PURE__ */ new WeakMap();
|
2992
|
+
class ma extends ai {
|
2990
2993
|
constructor(e) {
|
2991
2994
|
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === ft.CHILD)
|
2992
2995
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -3006,7 +3009,7 @@ class ga extends ai {
|
|
3006
3009
|
return g;
|
3007
3010
|
}
|
3008
3011
|
getController() {
|
3009
|
-
return
|
3012
|
+
return ua.get(this.u);
|
3010
3013
|
}
|
3011
3014
|
isDisabled() {
|
3012
3015
|
var e;
|
@@ -3020,7 +3023,7 @@ class ga extends ai {
|
|
3020
3023
|
p(e) {
|
3021
3024
|
e = e ?? {};
|
3022
3025
|
const t = this.getController();
|
3023
|
-
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties =
|
3026
|
+
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties = ga), this.options = e;
|
3024
3027
|
}
|
3025
3028
|
m() {
|
3026
3029
|
const e = {}, t = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
@@ -3114,7 +3117,7 @@ class ga extends ai {
|
|
3114
3117
|
}), e;
|
3115
3118
|
}
|
3116
3119
|
j(e, t = this.O()) {
|
3117
|
-
const n = { ...
|
3120
|
+
const n = { ...fa };
|
3118
3121
|
return t.forEach((i) => Object.assign(n, i.options.keyframeOptions)), Object.assign(n, e), n;
|
3119
3122
|
}
|
3120
3123
|
N(e, t, n) {
|
@@ -3165,7 +3168,7 @@ class ga extends ai {
|
|
3165
3168
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
3166
3169
|
}
|
3167
3170
|
}
|
3168
|
-
const Nt = gt(
|
3171
|
+
const Nt = gt(ma), F = (s, e, t) => {
|
3169
3172
|
s && t.style.setProperty(e, s);
|
3170
3173
|
}, li = (s, e) => {
|
3171
3174
|
var t, n, i, r, o, a, l, c, h;
|
@@ -3199,10 +3202,10 @@ const Nt = gt(ga), F = (s, e, t) => {
|
|
3199
3202
|
e
|
3200
3203
|
), F((h = s.colors) == null ? void 0 : h.focusColor, "--focus-color", e);
|
3201
3204
|
};
|
3202
|
-
var
|
3203
|
-
for (var i = n > 1 ? void 0 : n ?
|
3205
|
+
var va = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, ze = (s, e, t, n) => {
|
3206
|
+
for (var i = n > 1 ? void 0 : n ? ba(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3204
3207
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3205
|
-
return n && i &&
|
3208
|
+
return n && i && va(e, t, i), i;
|
3206
3209
|
};
|
3207
3210
|
class X extends k {
|
3208
3211
|
constructor() {
|
@@ -3222,7 +3225,22 @@ class X extends k {
|
|
3222
3225
|
);
|
3223
3226
|
return;
|
3224
3227
|
}
|
3225
|
-
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.
|
3228
|
+
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.notify("widget-set-active", {
|
3229
|
+
widgetId: this.application.id,
|
3230
|
+
active: !0
|
3231
|
+
}), this.widgetActive$.next(!0), this.hideTrigger()) : (this.application.hide(), this.notify("widget-set-active", {
|
3232
|
+
widgetId: this.application.id,
|
3233
|
+
active: !1
|
3234
|
+
}), this.widgetActive$.next(!1), this.showTrigger());
|
3235
|
+
}
|
3236
|
+
notify(e, t = {}) {
|
3237
|
+
window != null && window.parent && window.parent.postMessage(
|
3238
|
+
{
|
3239
|
+
type: e,
|
3240
|
+
data: t
|
3241
|
+
},
|
3242
|
+
"*"
|
3243
|
+
);
|
3226
3244
|
}
|
3227
3245
|
_applyBranding() {
|
3228
3246
|
var e;
|
@@ -3236,7 +3254,7 @@ class X extends k {
|
|
3236
3254
|
const n = (c = this.application) == null ? void 0 : c.triggerIcon;
|
3237
3255
|
if (!n)
|
3238
3256
|
return g;
|
3239
|
-
const i = async (h) =>
|
3257
|
+
const i = async (h) => eo, { type: r, content: o } = n;
|
3240
3258
|
switch (r) {
|
3241
3259
|
case "Telia": {
|
3242
3260
|
const h = await i();
|
@@ -3272,7 +3290,7 @@ class X extends k {
|
|
3272
3290
|
@click=${this.toggleActive}
|
3273
3291
|
${Nt({
|
3274
3292
|
keyframeOptions: {},
|
3275
|
-
in:
|
3293
|
+
in: pa,
|
3276
3294
|
stabilizeOut: !0,
|
3277
3295
|
skipInitial: !1
|
3278
3296
|
})}
|
@@ -3469,10 +3487,10 @@ ze([
|
|
3469
3487
|
ze([
|
3470
3488
|
C()
|
3471
3489
|
], X.prototype, "icon", 2);
|
3472
|
-
var
|
3473
|
-
for (var i = n > 1 ? void 0 : n ?
|
3490
|
+
var ya = Object.defineProperty, $a = Object.getOwnPropertyDescriptor, te = (s, e, t, n) => {
|
3491
|
+
for (var i = n > 1 ? void 0 : n ? $a(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3474
3492
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3475
|
-
return n && i &&
|
3493
|
+
return n && i && ya(e, t, i), i;
|
3476
3494
|
};
|
3477
3495
|
const ci = (s) => {
|
3478
3496
|
class e extends s {
|
@@ -3546,7 +3564,7 @@ hi.styles = [
|
|
3546
3564
|
* Copyright 2021 Google LLC
|
3547
3565
|
* SPDX-License-Identifier: BSD-3-Clause
|
3548
3566
|
*/
|
3549
|
-
function*
|
3567
|
+
function* xa(s, e) {
|
3550
3568
|
if (s !== void 0) {
|
3551
3569
|
let t = 0;
|
3552
3570
|
for (const n of s)
|
@@ -3559,7 +3577,7 @@ var ln = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s)
|
|
3559
3577
|
* Copyright 2021 Google LLC
|
3560
3578
|
* SPDX-License-Identifier: BSD-3-Clause
|
3561
3579
|
*/
|
3562
|
-
let
|
3580
|
+
let wa = class extends Event {
|
3563
3581
|
constructor(e, t, n) {
|
3564
3582
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = e, this.callback = t, this.subscribe = n ?? !1;
|
3565
3583
|
}
|
@@ -3574,7 +3592,7 @@ let xa = class extends Event {
|
|
3574
3592
|
* Copyright 2021 Google LLC
|
3575
3593
|
* SPDX-License-Identifier: BSD-3-Clause
|
3576
3594
|
*/
|
3577
|
-
class
|
3595
|
+
class ka {
|
3578
3596
|
get value() {
|
3579
3597
|
return this.o;
|
3580
3598
|
}
|
@@ -3609,12 +3627,12 @@ class wa {
|
|
3609
3627
|
* Copyright 2021 Google LLC
|
3610
3628
|
* SPDX-License-Identifier: BSD-3-Clause
|
3611
3629
|
*/
|
3612
|
-
let
|
3630
|
+
let _a = class extends Event {
|
3613
3631
|
constructor(e) {
|
3614
3632
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = e;
|
3615
3633
|
}
|
3616
3634
|
};
|
3617
|
-
class os extends
|
3635
|
+
class os extends ka {
|
3618
3636
|
constructor(e, t, n) {
|
3619
3637
|
var i, r;
|
3620
3638
|
super(t.context !== void 0 ? t.initialValue : n), this.onContextRequest = (o) => {
|
@@ -3626,7 +3644,7 @@ class os extends wa {
|
|
3626
3644
|
return;
|
3627
3645
|
const l = /* @__PURE__ */ new Set();
|
3628
3646
|
for (const [c, { consumerHost: h }] of this.subscriptions)
|
3629
|
-
l.has(c) || (l.add(c), h.dispatchEvent(new
|
3647
|
+
l.has(c) || (l.add(c), h.dispatchEvent(new wa(this.context, c, !0)));
|
3630
3648
|
o.stopPropagation();
|
3631
3649
|
}, this.host = e, t.context !== void 0 ? this.context = t.context : this.context = t, this.attachListeners(), (r = (i = this.host).addController) == null || r.call(i, this);
|
3632
3650
|
}
|
@@ -3634,7 +3652,7 @@ class os extends wa {
|
|
3634
3652
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
3635
3653
|
}
|
3636
3654
|
hostConnected() {
|
3637
|
-
this.host.dispatchEvent(new
|
3655
|
+
this.host.dispatchEvent(new _a(this.context));
|
3638
3656
|
}
|
3639
3657
|
}
|
3640
3658
|
/**
|
@@ -3642,7 +3660,7 @@ class os extends wa {
|
|
3642
3660
|
* Copyright 2017 Google LLC
|
3643
3661
|
* SPDX-License-Identifier: BSD-3-Clause
|
3644
3662
|
*/
|
3645
|
-
function
|
3663
|
+
function Sa({ context: s }) {
|
3646
3664
|
return (e, t) => {
|
3647
3665
|
const n = /* @__PURE__ */ new WeakMap();
|
3648
3666
|
if (typeof t == "object")
|
@@ -3680,12 +3698,12 @@ function _a({ context: s }) {
|
|
3680
3698
|
}
|
3681
3699
|
};
|
3682
3700
|
}
|
3683
|
-
var
|
3684
|
-
for (var i = n > 1 ? void 0 : n ?
|
3701
|
+
var Ca = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, Ea = (s, e, t, n) => {
|
3702
|
+
for (var i = n > 1 ? void 0 : n ? Aa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3685
3703
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3686
|
-
return n && i &&
|
3704
|
+
return n && i && Ca(e, t, i), i;
|
3687
3705
|
};
|
3688
|
-
const
|
3706
|
+
const Ta = "application";
|
3689
3707
|
class cn extends k {
|
3690
3708
|
constructor() {
|
3691
3709
|
super(...arguments), this.nodes = [], this.wrapperRef = M();
|
@@ -3713,8 +3731,8 @@ class cn extends k {
|
|
3713
3731
|
render() {
|
3714
3732
|
var n, i;
|
3715
3733
|
const e = this.application.settings.components.conversation;
|
3716
|
-
return ((i = (n = e == null ? void 0 : e.properties) == null ? void 0 : n.chat) == null ? void 0 : i.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ln.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), m`<div class="widget-container" ${z(this.wrapperRef)}>
|
3717
|
-
${
|
3734
|
+
return ((i = (n = e == null ? void 0 : e.properties) == null ? void 0 : n.chat) == null ? void 0 : i.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ln.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), m`<div class="widget-container" ${z(this.wrapperRef)}>
|
3735
|
+
${xa(this.nodes, (r) => r)}
|
3718
3736
|
</div>`;
|
3719
3737
|
}
|
3720
3738
|
}
|
@@ -3854,14 +3872,14 @@ cn.styles = E`
|
|
3854
3872
|
pointer-events: none;
|
3855
3873
|
}
|
3856
3874
|
`;
|
3857
|
-
|
3875
|
+
Ea([
|
3858
3876
|
w({ attribute: !1 }),
|
3859
|
-
|
3877
|
+
Sa({ context: Ta })
|
3860
3878
|
], cn.prototype, "application", 2);
|
3861
|
-
var ui = /* @__PURE__ */ ((s) => (s.Necessary = "necessary", s.Functional = "functional", s.Analytics = "analytics", s))(ui || {}),
|
3862
|
-
for (var i = n > 1 ? void 0 : n ?
|
3879
|
+
var ui = /* @__PURE__ */ ((s) => (s.Necessary = "necessary", s.Functional = "functional", s.Analytics = "analytics", s))(ui || {}), La = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, hn = (s, e, t, n) => {
|
3880
|
+
for (var i = n > 1 ? void 0 : n ? Oa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3863
3881
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3864
|
-
return n && i &&
|
3882
|
+
return n && i && La(e, t, i), i;
|
3865
3883
|
};
|
3866
3884
|
class Ue extends k {
|
3867
3885
|
constructor() {
|
@@ -3916,7 +3934,7 @@ customElements.get("ace-trigger") || customElements.define("ace-trigger", X);
|
|
3916
3934
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", hi);
|
3917
3935
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", cn);
|
3918
3936
|
customElements.get("ace-widget") || customElements.define("ace-widget", Ue);
|
3919
|
-
class
|
3937
|
+
class Pa {
|
3920
3938
|
constructor(e) {
|
3921
3939
|
this._message = null, this._host = e, e.addController(this);
|
3922
3940
|
}
|
@@ -3988,7 +4006,7 @@ class as {
|
|
3988
4006
|
return this.component.platform.registeredProviders.get(e);
|
3989
4007
|
}
|
3990
4008
|
}
|
3991
|
-
class
|
4009
|
+
class Ra {
|
3992
4010
|
constructor(e) {
|
3993
4011
|
this.component = e, this.currentSession$ = new U(null), this.sessions = [], this.storage = null, Ge(e, "handover").subscribe((t) => {
|
3994
4012
|
const n = this._createNewSession(
|
@@ -4086,9 +4104,9 @@ class Pa {
|
|
4086
4104
|
return this.component.properties.providers[0];
|
4087
4105
|
}
|
4088
4106
|
}
|
4089
|
-
class
|
4107
|
+
class Ia {
|
4090
4108
|
constructor(e, t) {
|
4091
|
-
this.state$ = e, this.component = t, this.entries$ = new U([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new
|
4109
|
+
this.state$ = e, this.component = t, this.entries$ = new U([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new Ra(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
4092
4110
|
de((n) => n ? n.provider$.pipe(
|
4093
4111
|
de((i) => i ? i.isTyping() : It(!1))
|
4094
4112
|
) : It(!1))
|
@@ -4137,10 +4155,10 @@ class Ra {
|
|
4137
4155
|
(e = this.sessionService) == null || e.startSession();
|
4138
4156
|
}
|
4139
4157
|
}
|
4140
|
-
var
|
4141
|
-
for (var i = n > 1 ? void 0 : n ?
|
4158
|
+
var Ma = Object.defineProperty, za = Object.getOwnPropertyDescriptor, Ua = (s, e, t, n) => {
|
4159
|
+
for (var i = n > 1 ? void 0 : n ? za(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4142
4160
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4143
|
-
return n && i &&
|
4161
|
+
return n && i && Ma(e, t, i), i;
|
4144
4162
|
};
|
4145
4163
|
class un extends k {
|
4146
4164
|
connectedCallback() {
|
@@ -4164,13 +4182,13 @@ class un extends k {
|
|
4164
4182
|
}
|
4165
4183
|
_renderDeliveryStatus(e) {
|
4166
4184
|
return e === "delivered" ? m`<telia-icon
|
4167
|
-
svg=${
|
4185
|
+
svg=${Kr.svg}
|
4168
4186
|
size="sm"
|
4169
4187
|
></telia-icon>` : e === "failed" ? m`<telia-icon
|
4170
|
-
svg=${
|
4188
|
+
svg=${Gr.svg}
|
4171
4189
|
size="sm"
|
4172
4190
|
title="Message could not be delivered"
|
4173
|
-
></telia-icon>` : m`<telia-icon svg=${
|
4191
|
+
></telia-icon>` : m`<telia-icon svg=${Xr.svg} size="sm"></telia-icon>`;
|
4174
4192
|
}
|
4175
4193
|
_dispatchEntryAction(e) {
|
4176
4194
|
this.entry.actions$.next(e.detail);
|
@@ -4260,7 +4278,7 @@ un.styles = [
|
|
4260
4278
|
E`
|
4261
4279
|
:host {
|
4262
4280
|
box-sizing: border-box;
|
4263
|
-
display:
|
4281
|
+
display: inline;
|
4264
4282
|
}
|
4265
4283
|
* {
|
4266
4284
|
box-sizing: border-box;
|
@@ -4374,13 +4392,13 @@ un.styles = [
|
|
4374
4392
|
}
|
4375
4393
|
`
|
4376
4394
|
];
|
4377
|
-
|
4395
|
+
Ua([
|
4378
4396
|
w({ attribute: !1 })
|
4379
4397
|
], un.prototype, "entry", 2);
|
4380
|
-
var
|
4381
|
-
for (var i = n > 1 ? void 0 : n ?
|
4398
|
+
var ja = Object.defineProperty, Da = Object.getOwnPropertyDescriptor, pi = (s, e, t, n) => {
|
4399
|
+
for (var i = n > 1 ? void 0 : n ? Da(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4382
4400
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4383
|
-
return n && i &&
|
4401
|
+
return n && i && ja(e, t, i), i;
|
4384
4402
|
};
|
4385
4403
|
class mt extends k {
|
4386
4404
|
constructor() {
|
@@ -4410,7 +4428,7 @@ class mt extends k {
|
|
4410
4428
|
${Nt({
|
4411
4429
|
keyframeOptions: {},
|
4412
4430
|
in: ns,
|
4413
|
-
out:
|
4431
|
+
out: da,
|
4414
4432
|
stabilizeOut: !0,
|
4415
4433
|
skipInitial: !1
|
4416
4434
|
})}
|
@@ -4448,16 +4466,16 @@ pi([
|
|
4448
4466
|
* Copyright 2021 Google LLC
|
4449
4467
|
* SPDX-License-Identifier: BSD-3-Clause
|
4450
4468
|
*/
|
4451
|
-
const
|
4469
|
+
const Ha = (s, e, t) => {
|
4452
4470
|
for (const n of e)
|
4453
4471
|
if (n[0] === s)
|
4454
4472
|
return (0, n[1])();
|
4455
4473
|
return t == null ? void 0 : t();
|
4456
4474
|
};
|
4457
|
-
var
|
4458
|
-
for (var i = n > 1 ? void 0 : n ?
|
4475
|
+
var Ba = Object.defineProperty, Na = Object.getOwnPropertyDescriptor, Fa = (s, e, t, n) => {
|
4476
|
+
for (var i = n > 1 ? void 0 : n ? Na(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4459
4477
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4460
|
-
return n && i &&
|
4478
|
+
return n && i && Ba(e, t, i), i;
|
4461
4479
|
};
|
4462
4480
|
class pn extends k {
|
4463
4481
|
render() {
|
@@ -4465,7 +4483,7 @@ class pn extends k {
|
|
4465
4483
|
<div class="message-group">
|
4466
4484
|
${this.group.items.map(
|
4467
4485
|
([e, t, n]) => m`
|
4468
|
-
${
|
4486
|
+
${Ha(
|
4469
4487
|
e,
|
4470
4488
|
[
|
4471
4489
|
["html", () => m`<message-type-html .message=${t} />`],
|
@@ -4504,7 +4522,7 @@ pn.styles = [
|
|
4504
4522
|
}
|
4505
4523
|
`
|
4506
4524
|
];
|
4507
|
-
|
4525
|
+
Fa([
|
4508
4526
|
w({ attribute: !1 })
|
4509
4527
|
], pn.prototype, "group", 2);
|
4510
4528
|
class di extends k {
|
@@ -4578,16 +4596,16 @@ class Ft extends on {
|
|
4578
4596
|
}
|
4579
4597
|
}
|
4580
4598
|
Ft.directiveName = "unsafeHTML", Ft.resultType = 1;
|
4581
|
-
const
|
4582
|
-
var
|
4583
|
-
for (var i = n > 1 ? void 0 : n ?
|
4599
|
+
const qa = gt(Ft);
|
4600
|
+
var Za = Object.defineProperty, Wa = Object.getOwnPropertyDescriptor, Ya = (s, e, t, n) => {
|
4601
|
+
for (var i = n > 1 ? void 0 : n ? Wa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4584
4602
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4585
|
-
return n && i &&
|
4603
|
+
return n && i && Za(e, t, i), i;
|
4586
4604
|
};
|
4587
4605
|
class dn extends k {
|
4588
4606
|
render() {
|
4589
4607
|
return m`<div class="message-type-html">
|
4590
|
-
${
|
4608
|
+
${qa(this.message.content)}
|
4591
4609
|
</div>`;
|
4592
4610
|
}
|
4593
4611
|
}
|
@@ -4628,7 +4646,7 @@ dn.styles = [
|
|
4628
4646
|
}
|
4629
4647
|
`
|
4630
4648
|
];
|
4631
|
-
|
4649
|
+
Ya([
|
4632
4650
|
w({ attribute: !1 })
|
4633
4651
|
], dn.prototype, "message", 2);
|
4634
4652
|
function fn() {
|
@@ -4649,33 +4667,33 @@ let ae = fn();
|
|
4649
4667
|
function fi(s) {
|
4650
4668
|
ae = s;
|
4651
4669
|
}
|
4652
|
-
const gi = /[&<>"']/,
|
4670
|
+
const gi = /[&<>"']/, Qa = new RegExp(gi.source, "g"), mi = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Ga = new RegExp(mi.source, "g"), Ka = {
|
4653
4671
|
"&": "&",
|
4654
4672
|
"<": "<",
|
4655
4673
|
">": ">",
|
4656
4674
|
'"': """,
|
4657
4675
|
"'": "'"
|
4658
|
-
}, ls = (s) =>
|
4676
|
+
}, ls = (s) => Ka[s];
|
4659
4677
|
function L(s, e) {
|
4660
4678
|
if (e) {
|
4661
4679
|
if (gi.test(s))
|
4662
|
-
return s.replace(
|
4680
|
+
return s.replace(Qa, ls);
|
4663
4681
|
} else if (mi.test(s))
|
4664
|
-
return s.replace(
|
4682
|
+
return s.replace(Ga, ls);
|
4665
4683
|
return s;
|
4666
4684
|
}
|
4667
|
-
const
|
4668
|
-
function
|
4669
|
-
return s.replace(
|
4685
|
+
const Xa = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
|
4686
|
+
function Va(s) {
|
4687
|
+
return s.replace(Xa, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
|
4670
4688
|
}
|
4671
|
-
const
|
4689
|
+
const Ja = /(^|[^\[])\^/g;
|
4672
4690
|
function y(s, e) {
|
4673
4691
|
let t = typeof s == "string" ? s : s.source;
|
4674
4692
|
e = e || "";
|
4675
4693
|
const n = {
|
4676
4694
|
replace: (i, r) => {
|
4677
4695
|
let o = typeof r == "string" ? r : r.source;
|
4678
|
-
return o = o.replace(
|
4696
|
+
return o = o.replace(Ja, "$1"), t = t.replace(i, o), n;
|
4679
4697
|
},
|
4680
4698
|
getRegex: () => new RegExp(t, e)
|
4681
4699
|
};
|
@@ -4724,7 +4742,7 @@ function Fe(s, e, t) {
|
|
4724
4742
|
}
|
4725
4743
|
return s.slice(0, n - i);
|
4726
4744
|
}
|
4727
|
-
function
|
4745
|
+
function el(s, e) {
|
4728
4746
|
if (s.indexOf(e[1]) === -1)
|
4729
4747
|
return -1;
|
4730
4748
|
let t = 0;
|
@@ -4759,7 +4777,7 @@ function us(s, e, t, n) {
|
|
4759
4777
|
text: L(o)
|
4760
4778
|
};
|
4761
4779
|
}
|
4762
|
-
function
|
4780
|
+
function tl(s, e) {
|
4763
4781
|
const t = s.match(/^(\s+)(?:```)/);
|
4764
4782
|
if (t === null)
|
4765
4783
|
return e;
|
@@ -4807,7 +4825,7 @@ class st {
|
|
4807
4825
|
fences(e) {
|
4808
4826
|
const t = this.rules.block.fences.exec(e);
|
4809
4827
|
if (t) {
|
4810
|
-
const n = t[0], i =
|
4828
|
+
const n = t[0], i = tl(n, t[3] || "");
|
4811
4829
|
return {
|
4812
4830
|
type: "code",
|
4813
4831
|
raw: n,
|
@@ -5047,7 +5065,7 @@ class st {
|
|
5047
5065
|
if ((n.length - o.length) % 2 === 0)
|
5048
5066
|
return;
|
5049
5067
|
} else {
|
5050
|
-
const o =
|
5068
|
+
const o = el(t[2], "()");
|
5051
5069
|
if (o > -1) {
|
5052
5070
|
const l = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + o;
|
5053
5071
|
t[2] = t[2].substring(0, o), t[0] = t[0].substring(0, l).trim(), t[3] = "";
|
@@ -5211,25 +5229,25 @@ class st {
|
|
5211
5229
|
}
|
5212
5230
|
}
|
5213
5231
|
}
|
5214
|
-
const
|
5215
|
-
blockquote:
|
5216
|
-
code:
|
5217
|
-
def:
|
5218
|
-
fences:
|
5219
|
-
heading:
|
5232
|
+
const nl = /^(?: *(?:\n|$))+/, sl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, il = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, je = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, rl = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, vi = /(?:[*+-]|\d{1,9}[.)])/, bi = y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, vi).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), gn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ol = /^[^\n]+/, mn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, al = y(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", mn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ll = y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, vi).getRegex(), vt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", vn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, cl = y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", vn).replace("tag", vt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), yi = y(gn).replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(), hl = y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", yi).getRegex(), bn = {
|
5233
|
+
blockquote: hl,
|
5234
|
+
code: sl,
|
5235
|
+
def: al,
|
5236
|
+
fences: il,
|
5237
|
+
heading: rl,
|
5220
5238
|
hr: je,
|
5221
|
-
html:
|
5239
|
+
html: cl,
|
5222
5240
|
lheading: bi,
|
5223
|
-
list:
|
5224
|
-
newline:
|
5241
|
+
list: ll,
|
5242
|
+
newline: nl,
|
5225
5243
|
paragraph: yi,
|
5226
5244
|
table: Se,
|
5227
|
-
text:
|
5228
|
-
}, ps = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(),
|
5245
|
+
text: ol
|
5246
|
+
}, ps = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(), ul = {
|
5229
5247
|
...bn,
|
5230
5248
|
table: ps,
|
5231
5249
|
paragraph: y(gn).replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ps).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex()
|
5232
|
-
},
|
5250
|
+
}, pl = {
|
5233
5251
|
...bn,
|
5234
5252
|
html: y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", vn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
5235
5253
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
@@ -5239,28 +5257,28 @@ const tl = /^(?: *(?:\n|$))+/, nl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sl =
|
|
5239
5257
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
5240
5258
|
paragraph: y(gn).replace("hr", je).replace("heading", ` *#{1,6} *[^
|
5241
5259
|
]`).replace("lheading", bi).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
5242
|
-
}, $i = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
|
5260
|
+
}, $i = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, dl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xi = /^( {2,}|\\)\n(?!\s*$)/, fl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, De = "\\p{P}\\p{S}", gl = y(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, De).getRegex(), ml = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, vl = y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, De).getRegex(), bl = y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, De).getRegex(), yl = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, De).getRegex(), $l = y(/\\([punct])/, "gu").replace(/punct/g, De).getRegex(), xl = y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), wl = y(vn).replace("(?:-->|$)", "-->").getRegex(), kl = y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", wl).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), it = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, _l = y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", it).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), wi = y(/^!?\[(label)\]\[(ref)\]/).replace("label", it).replace("ref", mn).getRegex(), ki = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", mn).getRegex(), Sl = y("reflink|nolink(?!\\()", "g").replace("reflink", wi).replace("nolink", ki).getRegex(), yn = {
|
5243
5261
|
_backpedal: Se,
|
5244
5262
|
// only used for GFM url
|
5245
|
-
anyPunctuation:
|
5246
|
-
autolink:
|
5247
|
-
blockSkip:
|
5263
|
+
anyPunctuation: $l,
|
5264
|
+
autolink: xl,
|
5265
|
+
blockSkip: ml,
|
5248
5266
|
br: xi,
|
5249
|
-
code:
|
5267
|
+
code: dl,
|
5250
5268
|
del: Se,
|
5251
|
-
emStrongLDelim:
|
5252
|
-
emStrongRDelimAst:
|
5253
|
-
emStrongRDelimUnd:
|
5269
|
+
emStrongLDelim: vl,
|
5270
|
+
emStrongRDelimAst: bl,
|
5271
|
+
emStrongRDelimUnd: yl,
|
5254
5272
|
escape: $i,
|
5255
|
-
link:
|
5273
|
+
link: _l,
|
5256
5274
|
nolink: ki,
|
5257
|
-
punctuation:
|
5275
|
+
punctuation: gl,
|
5258
5276
|
reflink: wi,
|
5259
|
-
reflinkSearch:
|
5260
|
-
tag:
|
5261
|
-
text:
|
5277
|
+
reflinkSearch: Sl,
|
5278
|
+
tag: kl,
|
5279
|
+
text: fl,
|
5262
5280
|
url: Se
|
5263
|
-
},
|
5281
|
+
}, Cl = {
|
5264
5282
|
...yn,
|
5265
5283
|
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", it).getRegex(),
|
5266
5284
|
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", it).getRegex()
|
@@ -5271,19 +5289,19 @@ const tl = /^(?: *(?:\n|$))+/, nl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sl =
|
|
5271
5289
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
5272
5290
|
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
|
5273
5291
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
5274
|
-
},
|
5292
|
+
}, Al = {
|
5275
5293
|
...qt,
|
5276
5294
|
br: y(xi).replace("{2,}", "*").getRegex(),
|
5277
5295
|
text: y(qt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
5278
5296
|
}, qe = {
|
5279
5297
|
normal: bn,
|
5280
|
-
gfm:
|
5281
|
-
pedantic:
|
5298
|
+
gfm: ul,
|
5299
|
+
pedantic: pl
|
5282
5300
|
}, xe = {
|
5283
5301
|
normal: yn,
|
5284
5302
|
gfm: qt,
|
5285
|
-
breaks:
|
5286
|
-
pedantic:
|
5303
|
+
breaks: Al,
|
5304
|
+
pedantic: Cl
|
5287
5305
|
};
|
5288
5306
|
class j {
|
5289
5307
|
constructor(e) {
|
@@ -5681,7 +5699,7 @@ class D {
|
|
5681
5699
|
}
|
5682
5700
|
case "heading": {
|
5683
5701
|
const o = r;
|
5684
|
-
n += this.renderer.heading(this.parseInline(o.tokens), o.depth,
|
5702
|
+
n += this.renderer.heading(this.parseInline(o.tokens), o.depth, Va(this.parseInline(o.tokens, this.textRenderer)));
|
5685
5703
|
continue;
|
5686
5704
|
}
|
5687
5705
|
case "code": {
|
@@ -5863,7 +5881,7 @@ x(Ce, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
5863
5881
|
"processAllTokens"
|
5864
5882
|
]));
|
5865
5883
|
var Oe, Zt, ot, _i;
|
5866
|
-
class
|
5884
|
+
class El {
|
5867
5885
|
constructor(...e) {
|
5868
5886
|
$t(this, Oe);
|
5869
5887
|
$t(this, ot);
|
@@ -6035,7 +6053,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
6035
6053
|
throw n;
|
6036
6054
|
};
|
6037
6055
|
};
|
6038
|
-
const oe = new
|
6056
|
+
const oe = new El();
|
6039
6057
|
function v(s, e) {
|
6040
6058
|
return oe.parse(s, e);
|
6041
6059
|
}
|
@@ -6067,10 +6085,10 @@ v.walkTokens;
|
|
6067
6085
|
v.parseInline;
|
6068
6086
|
D.parse;
|
6069
6087
|
j.lex;
|
6070
|
-
var
|
6071
|
-
for (var i = n > 1 ? void 0 : n ?
|
6088
|
+
var Tl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, Si = (s, e, t, n) => {
|
6089
|
+
for (var i = n > 1 ? void 0 : n ? Ll(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6072
6090
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6073
|
-
return n && i &&
|
6091
|
+
return n && i && Tl(e, t, i), i;
|
6074
6092
|
};
|
6075
6093
|
v.use({
|
6076
6094
|
renderer: {
|
@@ -6130,7 +6148,7 @@ class bt extends k {
|
|
6130
6148
|
(r = this.contentRef.value) == null || r.appendChild(document.createElement("div")), this.buffer = "";
|
6131
6149
|
else if (this.buffer.includes("!["))
|
6132
6150
|
return;
|
6133
|
-
n.innerHTML =
|
6151
|
+
n.innerHTML = Sr(t), this.applyCodeStyles(n), this.autoScroll && this.scrollRef.value.scrollIntoView();
|
6134
6152
|
}
|
6135
6153
|
// Apply white-space: pre-wrap to <code> elements
|
6136
6154
|
applyCodeStyles(e) {
|
@@ -6200,10 +6218,10 @@ Si([
|
|
6200
6218
|
Si([
|
6201
6219
|
C()
|
6202
6220
|
], bt.prototype, "showLightbox", 2);
|
6203
|
-
var
|
6204
|
-
for (var i = n > 1 ? void 0 : n ?
|
6221
|
+
var Ol = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, Rl = (s, e, t, n) => {
|
6222
|
+
for (var i = n > 1 ? void 0 : n ? Pl(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6205
6223
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6206
|
-
return n && i &&
|
6224
|
+
return n && i && Ol(e, t, i), i;
|
6207
6225
|
};
|
6208
6226
|
class xn extends k {
|
6209
6227
|
constructor() {
|
@@ -6242,7 +6260,7 @@ class xn extends k {
|
|
6242
6260
|
@keydown=${this.handleKeyDown}
|
6243
6261
|
>
|
6244
6262
|
<button class="close" @click=${this.closeLightbox}>
|
6245
|
-
<telia-icon svg=${
|
6263
|
+
<telia-icon svg=${Jr.svg} size="lg"></telia-icon>
|
6246
6264
|
</button>
|
6247
6265
|
<img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
|
6248
6266
|
</div> `;
|
@@ -6289,13 +6307,13 @@ xn.styles = [
|
|
6289
6307
|
}
|
6290
6308
|
`
|
6291
6309
|
];
|
6292
|
-
|
6310
|
+
Rl([
|
6293
6311
|
w({ attribute: !0 })
|
6294
6312
|
], xn.prototype, "imageUrl", 2);
|
6295
|
-
var
|
6296
|
-
for (var i = n > 1 ? void 0 : n ?
|
6313
|
+
var Il = Object.defineProperty, Ml = Object.getOwnPropertyDescriptor, V = (s, e, t, n) => {
|
6314
|
+
for (var i = n > 1 ? void 0 : n ? Ml(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6297
6315
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6298
|
-
return n && i &&
|
6316
|
+
return n && i && Il(e, t, i), i;
|
6299
6317
|
};
|
6300
6318
|
customElements.get("conversation-entry") || customElements.define("conversation-entry", un);
|
6301
6319
|
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", mt);
|
@@ -6307,7 +6325,7 @@ customElements.get("ace-lightbox") || customElements.define("ace-lightbox", xn);
|
|
6307
6325
|
const Ci = ci(k);
|
6308
6326
|
class R extends Ci {
|
6309
6327
|
constructor() {
|
6310
|
-
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef = M(), this.conversationFeedRef = M(), this.formRef = M(), this.inputRef = M(), this.scrollRef = M(), this.counterRef = M(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new
|
6328
|
+
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef = M(), this.conversationFeedRef = M(), this.formRef = M(), this.inputRef = M(), this.scrollRef = M(), this.counterRef = M(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new Pa(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new U("waiting"), this.stateMachine = new Ia(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6311
6329
|
de((e) => e ? e == null ? void 0 : e.provider$ : It(null))
|
6312
6330
|
), this.userTyping$ = new _();
|
6313
6331
|
}
|
@@ -6472,7 +6490,7 @@ class R extends Ci {
|
|
6472
6490
|
class="overlay-button"
|
6473
6491
|
@click=${() => this.chatOverlayActive = !1}
|
6474
6492
|
>
|
6475
|
-
<telia-icon svg=${
|
6493
|
+
<telia-icon svg=${Vr.svg}></telia-icon>
|
6476
6494
|
</button>
|
6477
6495
|
</div>` : g}
|
6478
6496
|
<div
|
@@ -6528,7 +6546,7 @@ class R extends Ci {
|
|
6528
6546
|
title=${e.getOrFallback("conversation.send-alt", "Send")}
|
6529
6547
|
?disabled=${this.disabledSubmit}
|
6530
6548
|
>
|
6531
|
-
<telia-icon svg=${
|
6549
|
+
<telia-icon svg=${to.svg}></telia-icon>
|
6532
6550
|
</button>
|
6533
6551
|
<span class="counter" ${z(this.counterRef)}>
|
6534
6552
|
${this.textAreaLength} / ${this.messageMaxLength}</span
|
@@ -6857,20 +6875,20 @@ V([
|
|
6857
6875
|
V([
|
6858
6876
|
C()
|
6859
6877
|
], R.prototype, "typing", 2);
|
6860
|
-
const
|
6878
|
+
const zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6861
6879
|
__proto__: null,
|
6862
6880
|
Conversation: R,
|
6863
6881
|
default: R
|
6864
6882
|
}, Symbol.toStringTag, { value: "Module" }));
|
6865
6883
|
export {
|
6866
|
-
|
6884
|
+
Ar as Agent,
|
6867
6885
|
R as Conversation,
|
6868
|
-
|
6886
|
+
jl as ConversationComponent,
|
6869
6887
|
ct as ConversationEntry,
|
6870
6888
|
W as ConversationMessageType,
|
6871
6889
|
fs as ConversationPlatform,
|
6872
|
-
|
6873
|
-
|
6874
|
-
|
6875
|
-
|
6890
|
+
Hl as ConversationProvider,
|
6891
|
+
Er as User,
|
6892
|
+
Dl as findPlainTextLinks,
|
6893
|
+
Sr as truncateLongLinks
|
6876
6894
|
};
|