@telia-ace/widget-conversation-flamingo 1.1.76-rc.24 → 1.1.76-rc.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +28 -45
  2. package/index.mjs +153 -170
  3. package/package.json +2 -2
package/index.mjs CHANGED
@@ -184,8 +184,8 @@ function se(s, e, t) {
184
184
  (r || !(n in e)) && (r || (r = Array.prototype.slice.call(e, 0, n)), r[n] = e[n]);
185
185
  return s.concat(r || Array.prototype.slice.call(e));
186
186
  }
187
- function de(s) {
188
- return this instanceof de ? (this.v = s, this) : new de(s);
187
+ function pe(s) {
188
+ return this instanceof pe ? (this.v = s, this) : new pe(s);
189
189
  }
190
190
  function Oi(s, e, t) {
191
191
  if (!Symbol.asyncIterator)
@@ -194,31 +194,31 @@ function Oi(s, e, t) {
194
194
  return i = {}, o("next"), o("throw"), o("return"), i[Symbol.asyncIterator] = function() {
195
195
  return this;
196
196
  }, i;
197
- function o(d) {
198
- n[d] && (i[d] = function(p) {
197
+ function o(p) {
198
+ n[p] && (i[p] = function(d) {
199
199
  return new Promise(function(b, f) {
200
- r.push([d, p, b, f]) > 1 || a(d, p);
200
+ r.push([p, d, b, f]) > 1 || a(p, d);
201
201
  });
202
202
  });
203
203
  }
204
- function a(d, p) {
204
+ function a(p, d) {
205
205
  try {
206
- l(n[d](p));
206
+ l(n[p](d));
207
207
  } catch (b) {
208
208
  u(r[0][3], b);
209
209
  }
210
210
  }
211
- function l(d) {
212
- d.value instanceof de ? Promise.resolve(d.value.v).then(c, h) : u(r[0][2], d);
211
+ function l(p) {
212
+ p.value instanceof pe ? Promise.resolve(p.value.v).then(c, h) : u(r[0][2], p);
213
213
  }
214
- function c(d) {
215
- a("next", d);
214
+ function c(p) {
215
+ a("next", p);
216
216
  }
217
- function h(d) {
218
- a("throw", d);
217
+ function h(p) {
218
+ a("throw", p);
219
219
  }
220
- function u(d, p) {
221
- d(p), r.shift(), r.length && a(r[0][0], r[0][1]);
220
+ function u(p, d) {
221
+ p(d), r.shift(), r.length && a(r[0][0], r[0][1]);
222
222
  }
223
223
  }
224
224
  function Pi(s) {
@@ -304,8 +304,8 @@ var at = function() {
304
304
  if (u) {
305
305
  this._finalizers = null;
306
306
  try {
307
- for (var d = me(u), p = d.next(); !p.done; p = d.next()) {
308
- var b = p.value;
307
+ for (var p = me(u), d = p.next(); !d.done; d = p.next()) {
308
+ var b = d.value;
309
309
  try {
310
310
  _n(b);
311
311
  } catch (f) {
@@ -316,7 +316,7 @@ var at = function() {
316
316
  n = { error: f };
317
317
  } finally {
318
318
  try {
319
- p && !p.done && (i = d.return) && i.call(d);
319
+ d && !d.done && (i = p.return) && i.call(p);
320
320
  } finally {
321
321
  if (n)
322
322
  throw n.error;
@@ -805,13 +805,13 @@ function Es(s) {
805
805
  case 1:
806
806
  o.trys.push([1, , 9, 10]), o.label = 2;
807
807
  case 2:
808
- return [4, de(t.read())];
808
+ return [4, pe(t.read())];
809
809
  case 3:
810
- return n = o.sent(), i = n.value, r = n.done, r ? [4, de(void 0)] : [3, 5];
810
+ return n = o.sent(), i = n.value, r = n.done, r ? [4, pe(void 0)] : [3, 5];
811
811
  case 4:
812
812
  return [2, o.sent()];
813
813
  case 5:
814
- return [4, de(i)];
814
+ return [4, pe(i)];
815
815
  case 6:
816
816
  return [4, o.sent()];
817
817
  case 7:
@@ -1090,19 +1090,19 @@ function hr(s) {
1090
1090
  function ur(s) {
1091
1091
  return s && typeof s == "object" && ar(s) === lr;
1092
1092
  }
1093
- function dr(s, e) {
1093
+ function pr(s, e) {
1094
1094
  return s.reduce(function(t, n, i) {
1095
1095
  return t[n] = e[i], t;
1096
1096
  }, {});
1097
1097
  }
1098
- function pr() {
1098
+ function dr() {
1099
1099
  for (var s = [], e = 0; e < arguments.length; e++)
1100
1100
  s[e] = arguments[e];
1101
1101
  var t = Gt(s), n = xs(s), i = hr(s), r = i.args, o = i.keys;
1102
1102
  if (r.length === 0)
1103
1103
  return lt([], t);
1104
1104
  var a = new A(fr(r, t, o ? function(l) {
1105
- return dr(o, l);
1105
+ return pr(o, l);
1106
1106
  } : Pe));
1107
1107
  return n ? a.pipe(Is(n)) : a;
1108
1108
  }
@@ -1111,9 +1111,9 @@ function fr(s, e, t) {
1111
1111
  An(e, function() {
1112
1112
  for (var i = s.length, r = new Array(i), o = i, a = i, l = function(h) {
1113
1113
  An(e, function() {
1114
- var u = lt(s[h], e), d = !1;
1115
- u.subscribe(P(n, function(p) {
1116
- r[h] = p, d || (d = !0, a--), a || n.next(t(r.slice()));
1114
+ var u = lt(s[h], e), p = !1;
1115
+ u.subscribe(P(n, function(d) {
1116
+ r[h] = d, p || (p = !0, a--), a || n.next(t(r.slice()));
1117
1117
  }, function() {
1118
1118
  --o || n.complete();
1119
1119
  }));
@@ -1127,15 +1127,15 @@ function An(s, e, t) {
1127
1127
  s ? q(t, s, e) : e();
1128
1128
  }
1129
1129
  function gr(s, e, t, n, i, r, o, a) {
1130
- var l = [], c = 0, h = 0, u = !1, d = function() {
1130
+ var l = [], c = 0, h = 0, u = !1, p = function() {
1131
1131
  u && !l.length && !c && e.complete();
1132
- }, p = function(f) {
1132
+ }, d = function(f) {
1133
1133
  return c < n ? b(f) : l.push(f);
1134
1134
  }, b = function(f) {
1135
1135
  r && e.next(f), c++;
1136
1136
  var I = !1;
1137
1137
  B(t(f, h++)).subscribe(P(e, function(N) {
1138
- i == null || i(N), r ? p(N) : e.next(N);
1138
+ i == null || i(N), r ? d(N) : e.next(N);
1139
1139
  }, function() {
1140
1140
  I = !0;
1141
1141
  }, void 0, function() {
@@ -1149,14 +1149,14 @@ function gr(s, e, t, n, i, r, o, a) {
1149
1149
  }) : b(J);
1150
1150
  }; l.length && c < n; )
1151
1151
  N();
1152
- d();
1152
+ p();
1153
1153
  } catch (J) {
1154
1154
  e.error(J);
1155
1155
  }
1156
1156
  }));
1157
1157
  };
1158
- return s.subscribe(P(e, p, function() {
1159
- u = !0, d();
1158
+ return s.subscribe(P(e, d, function() {
1159
+ u = !0, p();
1160
1160
  })), function() {
1161
1161
  a == null || a();
1162
1162
  };
@@ -1231,7 +1231,7 @@ function Mt(s) {
1231
1231
  }));
1232
1232
  });
1233
1233
  }
1234
- function pe(s, e) {
1234
+ function de(s, e) {
1235
1235
  return K(function(t, n) {
1236
1236
  var i = null, r = 0, o = !1, a = function() {
1237
1237
  return o && !i && n.complete();
@@ -1264,15 +1264,15 @@ function Ut() {
1264
1264
  for (var r = s.length, o = new Array(r), a = s.map(function() {
1265
1265
  return !1;
1266
1266
  }), l = !1, c = function(u) {
1267
- B(s[u]).subscribe(P(i, function(d) {
1268
- o[u] = d, !l && !a[u] && (a[u] = !0, (l = a.every(Pe)) && (a = null));
1267
+ B(s[u]).subscribe(P(i, function(p) {
1268
+ o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(Pe)) && (a = null));
1269
1269
  }, Ye));
1270
1270
  }, h = 0; h < r; h++)
1271
1271
  c(h);
1272
1272
  n.subscribe(P(i, function(u) {
1273
1273
  if (l) {
1274
- var d = se([u], Q(o));
1275
- i.next(t ? t.apply(void 0, se([], Q(d))) : d);
1274
+ var p = se([u], Q(o));
1275
+ i.next(t ? t.apply(void 0, se([], Q(p))) : p);
1276
1276
  }
1277
1277
  }));
1278
1278
  });
@@ -1316,13 +1316,13 @@ function Sr(s) {
1316
1316
  if (!o)
1317
1317
  return t;
1318
1318
  const a = o[1], c = (o[2] || "/").split("?")[0], h = c.split("/").pop(), u = i - a.length;
1319
- let d = c;
1320
- h && h.length < u && c.length > u ? d = c.substring(
1319
+ let p = c;
1320
+ h && h.length < u && c.length > u ? p = c.substring(
1321
1321
  0,
1322
1322
  u - h.length - 4
1323
- ) + ".../" + h : d = c.substring(0, u - 3) + "...";
1324
- const p = `${a}${d}`;
1325
- return jt(t, p);
1323
+ ) + ".../" + h : p = c.substring(0, u - 3) + "...";
1324
+ const d = `${a}${p}`;
1325
+ return jt(t, d);
1326
1326
  }
1327
1327
  return jt(t, n);
1328
1328
  });
@@ -1816,11 +1816,11 @@ const Nr = (s, e) => {
1816
1816
  let i, r = e === 2 ? "<svg>" : "", o = $e;
1817
1817
  for (let a = 0; a < t; a++) {
1818
1818
  const l = s[a];
1819
- let c, h, u = -1, d = 0;
1820
- for (; d < l.length && (o.lastIndex = d, h = o.exec(l), h !== null); )
1821
- d = 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);
1822
- const p = o === ee && s[a + 1].startsWith("/>") ? " " : "";
1823
- r += o === $e ? l + Dr : u >= 0 ? (n.push(c), l.slice(0, u) + js + l.slice(u) + Z + p) : l + Z + (u === -2 ? a : p);
1819
+ let c, h, u = -1, p = 0;
1820
+ for (; p < l.length && (o.lastIndex = p, h = o.exec(l), h !== null); )
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);
1822
+ const d = o === ee && s[a + 1].startsWith("/>") ? " " : "";
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);
1824
1824
  }
1825
1825
  return [Ns(s, r + (s[t] || "<?>") + (e === 2 ? "</svg>" : "")), n];
1826
1826
  };
@@ -1839,17 +1839,17 @@ class Te {
1839
1839
  if (i.hasAttributes())
1840
1840
  for (const u of i.getAttributeNames())
1841
1841
  if (u.endsWith(js)) {
1842
- const d = h[o++], p = i.getAttribute(u).split(Z), b = /([.?@])?(.*)/.exec(d);
1843
- l.push({ type: 1, index: r, name: b[2], strings: p, ctor: b[1] === "." ? qr : b[1] === "?" ? Zr : b[1] === "@" ? Wr : ht }), i.removeAttribute(u);
1842
+ const p = h[o++], d = i.getAttribute(u).split(Z), b = /([.?@])?(.*)/.exec(p);
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);
1844
1844
  } else
1845
1845
  u.startsWith(Z) && (l.push({ type: 6, index: r }), i.removeAttribute(u));
1846
1846
  if (Bs.test(i.tagName)) {
1847
- const u = i.textContent.split(Z), d = u.length - 1;
1848
- if (d > 0) {
1847
+ const u = i.textContent.split(Z), p = u.length - 1;
1848
+ if (p > 0) {
1849
1849
  i.textContent = Xe ? Xe.emptyScript : "";
1850
- for (let p = 0; p < d; p++)
1851
- i.append(u[p], Ae()), ne.nextNode(), l.push({ type: 2, index: ++r });
1852
- i.append(u[d], Ae());
1850
+ for (let d = 0; d < p; d++)
1851
+ i.append(u[d], Ae()), ne.nextNode(), l.push({ type: 2, index: ++r });
1852
+ i.append(u[p], Ae());
1853
1853
  }
1854
1854
  }
1855
1855
  } else if (i.nodeType === 8)
@@ -2080,8 +2080,8 @@ let k = class extends le {
2080
2080
  return G;
2081
2081
  }
2082
2082
  };
2083
- var ps;
2084
- k._$litElement$ = !0, k.finalized = !0, (ps = globalThis.litElementHydrateSupport) == null || ps.call(globalThis, { LitElement: k });
2083
+ var ds;
2084
+ k._$litElement$ = !0, k.finalized = !0, (ds = globalThis.litElementHydrateSupport) == null || ds.call(globalThis, { LitElement: k });
2085
2085
  const Ct = globalThis.litElementPolyfillSupport;
2086
2086
  Ct == null || Ct({ LitElement: k });
2087
2087
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
@@ -2170,7 +2170,7 @@ const Gr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
2170
2170
  attachStyles: !0
2171
2171
  };
2172
2172
  let he, Fs, ut, qs = !1, Ve = !1, tn = !1, T = !1, Bn = null, Dt = !1;
2173
- const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Zs = dt.HTMLElement || class {
2173
+ const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Zs = pt.HTMLElement || class {
2174
2174
  }, S = {
2175
2175
  $flags$: 0,
2176
2176
  $resourcesUrl$: "",
@@ -2207,7 +2207,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
2207
2207
  } catch (n) {
2208
2208
  Me(n);
2209
2209
  }
2210
- }, oo = (s, e) => e & 4 ? H : e & 8 ? dt : e & 16 ? H.body : s, ao = (s) => no ? {
2210
+ }, oo = (s, e) => e & 4 ? H : e & 8 ? pt : e & 16 ? H.body : s, ao = (s) => no ? {
2211
2211
  passive: (s & 1) !== 0,
2212
2212
  capture: (s & 2) !== 0
2213
2213
  } : (s & 2) !== 0, Nn = "http://www.w3.org/1999/xlink", re = (s, e = "") => () => {
@@ -2230,14 +2230,14 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
2230
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) => {
2231
2231
  let n = null, i = null, r = null, o = !1, a = !1, l = [];
2232
2232
  const c = (u) => {
2233
- for (let d = 0; d < u.length; d++)
2234
- n = u[d], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !nn(n)) && (n = String(n)), o && a ? l[l.length - 1].$text$ += n : l.push(o ? Je(null, n) : n), a = o);
2233
+ for (let p = 0; p < u.length; p++)
2234
+ n = u[p], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !nn(n)) && (n = String(n)), o && a ? l[l.length - 1].$text$ += n : l.push(o ? Je(null, n) : n), a = o);
2235
2235
  };
2236
2236
  if (c(t), e) {
2237
2237
  e.key && (i = e.key), e.name && (r = e.name);
2238
2238
  {
2239
2239
  const u = e.className || e.class;
2240
- u && (e.class = typeof u != "object" ? u : Object.keys(u).filter((d) => u[d]).join(" "));
2240
+ u && (e.class = typeof u != "object" ? u : Object.keys(u).filter((p) => u[p]).join(" "));
2241
2241
  }
2242
2242
  }
2243
2243
  if (typeof s == "function")
@@ -2285,7 +2285,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
2285
2285
  if (e === "ref")
2286
2286
  n && n(s);
2287
2287
  else if (!s.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
2288
- e[2] === "-" ? e = e.slice(3) : Kn(dt, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && S.rel(s, e, t, !1), n && S.ael(s, e, n, !1);
2288
+ e[2] === "-" ? e = e.slice(3) : Kn(pt, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && S.rel(s, e, t, !1), n && S.ael(s, e, n, !1);
2289
2289
  else {
2290
2290
  const l = nn(n);
2291
2291
  if ((o || l && n !== null) && !i)
@@ -2343,31 +2343,31 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
2343
2343
  for (; e <= t; ++e)
2344
2344
  (n = s[e]) && (i = n.$elm$, ei(n), Ve = !0, i["s-ol"] ? i["s-ol"].remove() : Le(i, !0), i.remove());
2345
2345
  }, $o = (s, e, t, n) => {
2346
- let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], h = e[l], u = n.length - 1, d = n[0], p = n[u], b, f;
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;
2347
2347
  for (; i <= l && r <= u; )
2348
2348
  if (c == null)
2349
2349
  c = e[++i];
2350
2350
  else if (h == null)
2351
2351
  h = e[--l];
2352
- else if (d == null)
2353
- d = n[++r];
2354
2352
  else if (p == null)
2355
- p = n[--u];
2356
- else if (Ne(c, d))
2357
- ue(c, d), c = e[++i], d = n[++r];
2358
- else if (Ne(h, p))
2359
- ue(h, p), h = e[--l], p = n[--u];
2353
+ p = n[++r];
2354
+ else if (d == null)
2355
+ d = n[--u];
2360
2356
  else if (Ne(c, p))
2361
- (c.$tag$ === "slot" || p.$tag$ === "slot") && Le(c.$elm$.parentNode, !1), ue(c, p), s.insertBefore(c.$elm$, h.$elm$.nextSibling), c = e[++i], p = n[--u];
2357
+ ue(c, p), c = e[++i], p = n[++r];
2362
2358
  else if (Ne(h, d))
2363
- (c.$tag$ === "slot" || p.$tag$ === "slot") && Le(h.$elm$.parentNode, !1), ue(h, d), s.insertBefore(h.$elm$, c.$elm$), h = e[--l], d = n[++r];
2359
+ ue(h, d), h = e[--l], d = n[--u];
2360
+ else if (Ne(c, d))
2361
+ (c.$tag$ === "slot" || d.$tag$ === "slot") && Le(c.$elm$.parentNode, !1), ue(c, d), s.insertBefore(c.$elm$, h.$elm$.nextSibling), c = e[++i], d = n[--u];
2362
+ else if (Ne(h, p))
2363
+ (c.$tag$ === "slot" || d.$tag$ === "slot") && Le(h.$elm$.parentNode, !1), ue(h, p), s.insertBefore(h.$elm$, c.$elm$), h = e[--l], p = n[++r];
2364
2364
  else {
2365
2365
  for (o = -1, a = i; a <= l; ++a)
2366
- if (e[a] && e[a].$key$ !== null && e[a].$key$ === d.$key$) {
2366
+ if (e[a] && e[a].$key$ !== null && e[a].$key$ === p.$key$) {
2367
2367
  o = a;
2368
2368
  break;
2369
2369
  }
2370
- o >= 0 ? (f = e[o], f.$tag$ !== d.$tag$ ? b = et(e && e[r], t, o, s) : (ue(f, d), e[o] = void 0, b = f.$elm$), d = n[++r]) : (b = et(e && e[r], t, r, s), d = n[++r]), b && Xs(c.$elm$).insertBefore(b, rn(c.$elm$));
2370
+ o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ? b = et(e && e[r], t, o, s) : (ue(f, p), e[o] = void 0, b = f.$elm$), p = n[++r]) : (b = et(e && e[r], t, r, s), p = n[++r]), b && Xs(c.$elm$).insertBefore(b, rn(c.$elm$));
2371
2371
  }
2372
2372
  i > l ? Gs(s, n[u + 1] == null ? null : n[u + 1].$elm$, t, n, r, u) : r > u && Ks(e, i, l);
2373
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) => {
@@ -2415,11 +2415,11 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
2415
2415
  {
2416
2416
  if (S.$flags$ |= 1, tn) {
2417
2417
  Js(r.$elm$);
2418
- let o, a, l, c, h, u, d = 0;
2419
- for (; d < O.length; d++)
2420
- o = O[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = H.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
2421
- for (d = 0; d < O.length; d++)
2422
- if (o = O[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
2418
+ let o, a, l, c, h, u, p = 0;
2419
+ for (; p < O.length; p++)
2420
+ o = O[p], a = o.$nodeToRelocate$, a["s-ol"] || (l = H.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
2421
+ for (p = 0; p < O.length; p++)
2422
+ if (o = O[p], a = o.$nodeToRelocate$, o.$slotRefNode$) {
2423
2423
  for (c = o.$slotRefNode$.parentNode, h = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
2424
2424
  if (u = l["s-nr"], u && u["s-sn"] === a["s-sn"] && c === u.parentNode && (u = u.nextSibling, !u || !u["s-nr"])) {
2425
2425
  h = u;
@@ -2471,8 +2471,8 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
2471
2471
  } catch (n) {
2472
2472
  Me(n);
2473
2473
  }
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) => pt(s).$instanceValues$.get(e), Po = (s, e, t, n) => {
2475
- const i = pt(s), r = s, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
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) => {
2475
+ const i = dt(s), r = s, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
2476
2476
  t = Lo(t, n.$members$[e][0]);
2477
2477
  const c = Number.isNaN(o) && Number.isNaN(t);
2478
2478
  if (t !== o && !c) {
@@ -2480,11 +2480,11 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
2480
2480
  {
2481
2481
  if (n.$watchers$ && a & 128) {
2482
2482
  const u = n.$watchers$[e];
2483
- u && u.map((d) => {
2483
+ u && u.map((p) => {
2484
2484
  try {
2485
- l[d](t, o, e);
2486
- } catch (p) {
2487
- Me(p, r);
2485
+ l[p](t, o, e);
2486
+ } catch (d) {
2487
+ Me(d, r);
2488
2488
  }
2489
2489
  });
2490
2490
  }
@@ -2546,7 +2546,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
2546
2546
  }, Mo = (s) => {
2547
2547
  }, zo = (s) => {
2548
2548
  if (!(S.$flags$ & 1)) {
2549
- const e = pt(s), t = e.$cmpMeta$, n = re("connectedCallback", t.$tagName$);
2549
+ const e = dt(s), t = e.$cmpMeta$, n = re("connectedCallback", t.$tagName$);
2550
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]]) => {
2551
2551
  if (r & 31 && s.hasOwnProperty(i)) {
2552
2552
  const o = s[i];
@@ -2559,7 +2559,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
2559
2559
  e["s-cn"] = !0, s.insertBefore(e, s.firstChild);
2560
2560
  }, jo = (s) => {
2561
2561
  if (!(S.$flags$ & 1)) {
2562
- const e = pt(s);
2562
+ const e = dt(s);
2563
2563
  e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
2564
2564
  }
2565
2565
  }, ni = (s, e) => {
@@ -2586,7 +2586,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
2586
2586
  });
2587
2587
  }
2588
2588
  }), s.is = t.$tagName$, Ro(s, t);
2589
- }, si = /* @__PURE__ */ new WeakMap(), pt = (s) => si.get(s), Do = (s, e) => {
2589
+ }, si = /* @__PURE__ */ new WeakMap(), dt = (s) => si.get(s), Do = (s, e) => {
2590
2590
  const t = {
2591
2591
  $flags$: 0,
2592
2592
  $hostElement$: s,
@@ -2966,7 +2966,7 @@ ha([
2966
2966
  ], an.prototype, "anchor", 2);
2967
2967
  const ua = /* @__PURE__ */ new WeakMap();
2968
2968
  let Jn = 0;
2969
- const Et = /* @__PURE__ */ new Map(), es = /* @__PURE__ */ new WeakSet(), ts = () => new Promise((s) => requestAnimationFrame(s)), da = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], pa = [{ opacity: 0 }], ns = [{ opacity: 0 }, { opacity: 1 }], ss = (s, e) => {
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) => {
2970
2970
  const t = s - e;
2971
2971
  return t === 0 ? void 0 : t;
2972
2972
  }, is = (s, e) => {
@@ -3138,8 +3138,8 @@ class ma extends ai {
3138
3138
  const u = Tt[l];
3139
3139
  if (c === void 0 || h === void 0)
3140
3140
  continue;
3141
- const d = u(c, h);
3142
- d.transform !== void 0 && (a[l] = d.value, o = !0, i.transform = `${i.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(i, d.overrideFrom));
3141
+ const p = u(c, h);
3142
+ p.transform !== void 0 && (a[l] = p.value, o = !0, i.transform = `${i.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(i, p.overrideFrom));
3143
3143
  } else
3144
3144
  c !== h && c !== void 0 && h !== void 0 && (o = !0, i[l] = c, r[l] = h);
3145
3145
  }
@@ -3290,7 +3290,7 @@ class X extends k {
3290
3290
  @click=${this.toggleActive}
3291
3291
  ${Nt({
3292
3292
  keyframeOptions: {},
3293
- in: da,
3293
+ in: pa,
3294
3294
  stabilizeOut: !0,
3295
3295
  skipInitial: !1
3296
3296
  })}
@@ -3731,7 +3731,7 @@ class cn extends k {
3731
3731
  render() {
3732
3732
  var n, i;
3733
3733
  const e = this.application.settings.components.conversation;
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 ? (console.log("This page is embedded in an iframe."), this.renderRoot.host.classList.add("embedded")) : console.log("This page is not embedded in an iframe."), m`<div class="widget-container" ${z(this.wrapperRef)}>
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
3735
  ${xa(this.nodes, (r) => r)}
3736
3736
  </div>`;
3737
3737
  }
@@ -3781,23 +3781,6 @@ cn.styles = E`
3781
3781
  position: fixed;
3782
3782
  }
3783
3783
 
3784
- :host(.embedded) {
3785
- padding: 40px 20px 20px 40px !important;
3786
- }
3787
-
3788
- @media screen and (max-device-width: 800px) {
3789
- :host(.embedded) {
3790
- padding: 0 !important;
3791
- }
3792
- :host(.embedded) .widget-container {
3793
- border-radius: none !important;
3794
- }
3795
- }
3796
-
3797
- :host(.embedded) .widget-container {
3798
- border-radius: var(--border-radius) !important;
3799
- }
3800
-
3801
3784
  @media screen and (max-width: 800px) {
3802
3785
  :host(.floating) {
3803
3786
  inset: 0;
@@ -3970,7 +3953,7 @@ class Pa {
3970
3953
  class as {
3971
3954
  constructor(e, t, n, i, r) {
3972
3955
  this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new U(null), this.entries$ = new U([]), this.removeEntryAction$ = new _(), this.kill$ = new _(), this.isTyping$ = new U(!1), this.data$ = new U({}), this.complete$ = this.provider$.pipe(
3973
- pe((l) => l ? l.onComplete() : Re)
3956
+ de((l) => l ? l.onComplete() : Re)
3974
3957
  );
3975
3958
  const o = this._getProviderFactory(t);
3976
3959
  if (!o)
@@ -4013,7 +3996,7 @@ class as {
4013
3996
  }
4014
3997
  _addEntryRemoveHandler(e) {
4015
3998
  e.remove$.pipe(
4016
- pe(() => this.entries$),
3999
+ de(() => this.entries$),
4017
4000
  Mt(1)
4018
4001
  ).subscribe((t) => {
4019
4002
  this.removeEntryAction$.next(e), this.entries$.next(t.filter((n) => n !== e));
@@ -4124,8 +4107,8 @@ class Ra {
4124
4107
  class Ia {
4125
4108
  constructor(e, t) {
4126
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(
4127
- pe((n) => n ? n.provider$.pipe(
4128
- pe((i) => i ? i.isTyping() : It(!1))
4110
+ de((n) => n ? n.provider$.pipe(
4111
+ de((i) => i ? i.isTyping() : It(!1))
4129
4112
  ) : It(!1))
4130
4113
  ), e.subscribe((n) => {
4131
4114
  switch (n) {
@@ -4150,7 +4133,7 @@ class Ia {
4150
4133
  }
4151
4134
  rehydrate() {
4152
4135
  this.session$.pipe(
4153
- pe((e) => {
4136
+ de((e) => {
4154
4137
  if (!e)
4155
4138
  return Re;
4156
4139
  const t = e.removeEntryAction$.pipe(Ut(this.entries$)).pipe(
@@ -4412,7 +4395,7 @@ un.styles = [
4412
4395
  Ua([
4413
4396
  w({ attribute: !1 })
4414
4397
  ], un.prototype, "entry", 2);
4415
- var ja = Object.defineProperty, Da = Object.getOwnPropertyDescriptor, di = (s, e, t, n) => {
4398
+ var ja = Object.defineProperty, Da = Object.getOwnPropertyDescriptor, pi = (s, e, t, n) => {
4416
4399
  for (var i = n > 1 ? void 0 : n ? Da(e, t) : e, r = s.length - 1, o; r >= 0; r--)
4417
4400
  (o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
4418
4401
  return n && i && ja(e, t, i), i;
@@ -4445,7 +4428,7 @@ class mt extends k {
4445
4428
  ${Nt({
4446
4429
  keyframeOptions: {},
4447
4430
  in: ns,
4448
- out: pa,
4431
+ out: da,
4449
4432
  stabilizeOut: !0,
4450
4433
  skipInitial: !1
4451
4434
  })}
@@ -4472,10 +4455,10 @@ mt.styles = [
4472
4455
  }
4473
4456
  `
4474
4457
  ];
4475
- di([
4458
+ pi([
4476
4459
  w({ attribute: !1 })
4477
4460
  ], mt.prototype, "entries", 2);
4478
- di([
4461
+ pi([
4479
4462
  w({ type: Boolean })
4480
4463
  ], mt.prototype, "loading", 2);
4481
4464
  /**
@@ -4494,7 +4477,7 @@ var Ba = Object.defineProperty, Na = Object.getOwnPropertyDescriptor, Fa = (s, e
4494
4477
  (o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
4495
4478
  return n && i && Ba(e, t, i), i;
4496
4479
  };
4497
- class dn extends k {
4480
+ class pn extends k {
4498
4481
  render() {
4499
4482
  return m`
4500
4483
  <div class="message-group">
@@ -4523,7 +4506,7 @@ class dn extends k {
4523
4506
  `;
4524
4507
  }
4525
4508
  }
4526
- dn.styles = [
4509
+ pn.styles = [
4527
4510
  E`
4528
4511
  :host {
4529
4512
  box-sizing: border-box;
@@ -4541,8 +4524,8 @@ dn.styles = [
4541
4524
  ];
4542
4525
  Fa([
4543
4526
  w({ attribute: !1 })
4544
- ], dn.prototype, "group", 2);
4545
- class pi extends k {
4527
+ ], pn.prototype, "group", 2);
4528
+ class di extends k {
4546
4529
  render() {
4547
4530
  return m`<div class="container">
4548
4531
  <div class="dot"></div>
@@ -4551,7 +4534,7 @@ class pi extends k {
4551
4534
  </div>`;
4552
4535
  }
4553
4536
  }
4554
- pi.styles = [
4537
+ di.styles = [
4555
4538
  E`
4556
4539
  :host {
4557
4540
  display: block;
@@ -4619,14 +4602,14 @@ var Za = Object.defineProperty, Wa = Object.getOwnPropertyDescriptor, Ya = (s, e
4619
4602
  (o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
4620
4603
  return n && i && Za(e, t, i), i;
4621
4604
  };
4622
- class pn extends k {
4605
+ class dn extends k {
4623
4606
  render() {
4624
4607
  return m`<div class="message-type-html">
4625
4608
  ${qa(this.message.content)}
4626
4609
  </div>`;
4627
4610
  }
4628
4611
  }
4629
- pn.styles = [
4612
+ dn.styles = [
4630
4613
  E`
4631
4614
  :host {
4632
4615
  box-sizing: border-box;
@@ -4665,7 +4648,7 @@ pn.styles = [
4665
4648
  ];
4666
4649
  Ya([
4667
4650
  w({ attribute: !1 })
4668
- ], pn.prototype, "message", 2);
4651
+ ], dn.prototype, "message", 2);
4669
4652
  function fn() {
4670
4653
  return {
4671
4654
  async: !1,
@@ -4915,29 +4898,29 @@ class st {
4915
4898
  break;
4916
4899
  a = t[0], e = e.substring(a.length);
4917
4900
  let u = t[2].split(`
4918
- `, 1)[0].replace(/^\t+/, (N) => " ".repeat(3 * N.length)), d = e.split(`
4919
- `, 1)[0], p = 0;
4920
- this.options.pedantic ? (p = 2, l = u.trimStart()) : (p = t[2].search(/[^ ]/), p = p > 4 ? 1 : p, l = u.slice(p), p += t[1].length);
4901
+ `, 1)[0].replace(/^\t+/, (N) => " ".repeat(3 * N.length)), p = e.split(`
4902
+ `, 1)[0], d = 0;
4903
+ this.options.pedantic ? (d = 2, l = u.trimStart()) : (d = t[2].search(/[^ ]/), d = d > 4 ? 1 : d, l = u.slice(d), d += t[1].length);
4921
4904
  let b = !1;
4922
- if (!u && /^ *$/.test(d) && (a += d + `
4923
- `, e = e.substring(d.length + 1), h = !0), !h) {
4924
- const N = new RegExp(`^ {0,${Math.min(3, p - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), J = new RegExp(`^ {0,${Math.min(3, p - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), wn = new RegExp(`^ {0,${Math.min(3, p - 1)}}(?:\`\`\`|~~~)`), kn = new RegExp(`^ {0,${Math.min(3, p - 1)}}#`);
4905
+ if (!u && /^ *$/.test(p) && (a += p + `
4906
+ `, e = e.substring(p.length + 1), h = !0), !h) {
4907
+ const N = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), J = new RegExp(`^ {0,${Math.min(3, d - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), wn = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:\`\`\`|~~~)`), kn = new RegExp(`^ {0,${Math.min(3, d - 1)}}#`);
4925
4908
  for (; e; ) {
4926
4909
  const yt = e.split(`
4927
4910
  `, 1)[0];
4928
- if (d = yt, this.options.pedantic && (d = d.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), wn.test(d) || kn.test(d) || N.test(d) || J.test(e))
4911
+ if (p = yt, this.options.pedantic && (p = p.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), wn.test(p) || kn.test(p) || N.test(p) || J.test(e))
4929
4912
  break;
4930
- if (d.search(/[^ ]/) >= p || !d.trim())
4913
+ if (p.search(/[^ ]/) >= d || !p.trim())
4931
4914
  l += `
4932
- ` + d.slice(p);
4915
+ ` + p.slice(d);
4933
4916
  else {
4934
4917
  if (b || u.search(/[^ ]/) >= 4 || wn.test(u) || kn.test(u) || J.test(u))
4935
4918
  break;
4936
4919
  l += `
4937
- ` + d;
4920
+ ` + p;
4938
4921
  }
4939
- !b && !d.trim() && (b = !0), a += yt + `
4940
- `, e = e.substring(yt.length + 1), u = d.slice(p);
4922
+ !b && !p.trim() && (b = !0), a += yt + `
4923
+ `, e = e.substring(yt.length + 1), u = p.slice(d);
4941
4924
  }
4942
4925
  }
4943
4926
  r.loose || (c ? r.loose = !0 : /\n *\n *$/.test(a) && (c = !0));
@@ -4955,8 +4938,8 @@ class st {
4955
4938
  r.items[r.items.length - 1].raw = a.trimEnd(), r.items[r.items.length - 1].text = l.trimEnd(), r.raw = r.raw.trimEnd();
4956
4939
  for (let h = 0; h < r.items.length; h++)
4957
4940
  if (this.lexer.state.top = !1, r.items[h].tokens = this.lexer.blockTokens(r.items[h].text, []), !r.loose) {
4958
- const u = r.items[h].tokens.filter((p) => p.type === "space"), d = u.length > 0 && u.some((p) => /\n.*\n/.test(p.raw));
4959
- r.loose = d;
4941
+ const u = r.items[h].tokens.filter((d) => d.type === "space"), p = u.length > 0 && u.some((d) => /\n.*\n/.test(d.raw));
4942
+ r.loose = p;
4960
4943
  }
4961
4944
  if (r.loose)
4962
4945
  for (let h = 0; h < r.items.length; h++)
@@ -5136,20 +5119,20 @@ class st {
5136
5119
  if (c -= l, c > 0)
5137
5120
  continue;
5138
5121
  l = Math.min(l, l + c + h);
5139
- const d = [...i[0]][0].length, p = e.slice(0, o + i.index + d + l);
5122
+ const p = [...i[0]][0].length, d = e.slice(0, o + i.index + p + l);
5140
5123
  if (Math.min(o, l) % 2) {
5141
- const f = p.slice(1, -1);
5124
+ const f = d.slice(1, -1);
5142
5125
  return {
5143
5126
  type: "em",
5144
- raw: p,
5127
+ raw: d,
5145
5128
  text: f,
5146
5129
  tokens: this.lexer.inlineTokens(f)
5147
5130
  };
5148
5131
  }
5149
- const b = p.slice(2, -2);
5132
+ const b = d.slice(2, -2);
5150
5133
  return {
5151
5134
  type: "strong",
5152
- raw: p,
5135
+ raw: d,
5153
5136
  text: b,
5154
5137
  tokens: this.lexer.inlineTokens(b)
5155
5138
  };
@@ -5260,11 +5243,11 @@ const nl = /^(?: *(?:\n|$))+/, sl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, il =
5260
5243
  paragraph: yi,
5261
5244
  table: Se,
5262
5245
  text: ol
5263
- }, ds = 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 = {
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 = {
5264
5247
  ...bn,
5265
- table: ds,
5266
- paragraph: y(gn).replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ds).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()
5267
- }, dl = {
5248
+ table: ps,
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()
5250
+ }, pl = {
5268
5251
  ...bn,
5269
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(),
5270
5253
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
@@ -5274,14 +5257,14 @@ const nl = /^(?: *(?:\n|$))+/, sl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, il =
5274
5257
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
5275
5258
  paragraph: y(gn).replace("hr", je).replace("heading", ` *#{1,6} *[^
5276
5259
  ]`).replace("lheading", bi).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
5277
- }, $i = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, pl = /^(`+)([^`]|[^`][\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 = {
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 = {
5278
5261
  _backpedal: Se,
5279
5262
  // only used for GFM url
5280
5263
  anyPunctuation: $l,
5281
5264
  autolink: xl,
5282
5265
  blockSkip: ml,
5283
5266
  br: xi,
5284
- code: pl,
5267
+ code: dl,
5285
5268
  del: Se,
5286
5269
  emStrongLDelim: vl,
5287
5270
  emStrongRDelimAst: bl,
@@ -5313,7 +5296,7 @@ const nl = /^(?: *(?:\n|$))+/, sl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, il =
5313
5296
  }, qe = {
5314
5297
  normal: bn,
5315
5298
  gfm: ul,
5316
- pedantic: dl
5299
+ pedantic: pl
5317
5300
  }, xe = {
5318
5301
  normal: yn,
5319
5302
  gfm: qt,
@@ -5522,9 +5505,9 @@ class j {
5522
5505
  if (r = e, this.options.extensions && this.options.extensions.startInline) {
5523
5506
  let h = 1 / 0;
5524
5507
  const u = e.slice(1);
5525
- let d;
5526
- this.options.extensions.startInline.forEach((p) => {
5527
- d = p.call({ lexer: this }, u), typeof d == "number" && d >= 0 && (h = Math.min(h, d));
5508
+ let p;
5509
+ this.options.extensions.startInline.forEach((d) => {
5510
+ p = d.call({ lexer: this }, u), typeof p == "number" && p >= 0 && (h = Math.min(h, p));
5528
5511
  }), h < 1 / 0 && h >= 0 && (r = e.substring(0, h + 1));
5529
5512
  }
5530
5513
  if (n = this.tokenizer.inlineText(r)) {
@@ -5734,8 +5717,8 @@ class D {
5734
5717
  for (let h = 0; h < o.rows.length; h++) {
5735
5718
  const u = o.rows[h];
5736
5719
  l = "";
5737
- for (let d = 0; d < u.length; d++)
5738
- l += this.renderer.tablecell(this.parseInline(u[d].tokens), { header: !1, align: o.align[d] });
5720
+ for (let p = 0; p < u.length; p++)
5721
+ l += this.renderer.tablecell(this.parseInline(u[p].tokens), { header: !1, align: o.align[p] });
5739
5722
  c += this.renderer.tablerow(l);
5740
5723
  }
5741
5724
  n += this.renderer.table(a, c);
@@ -5750,16 +5733,16 @@ class D {
5750
5733
  const o = r, a = o.ordered, l = o.start, c = o.loose;
5751
5734
  let h = "";
5752
5735
  for (let u = 0; u < o.items.length; u++) {
5753
- const d = o.items[u], p = d.checked, b = d.task;
5736
+ const p = o.items[u], d = p.checked, b = p.task;
5754
5737
  let f = "";
5755
- if (d.task) {
5756
- const I = this.renderer.checkbox(!!p);
5757
- c ? d.tokens.length > 0 && d.tokens[0].type === "paragraph" ? (d.tokens[0].text = I + " " + d.tokens[0].text, d.tokens[0].tokens && d.tokens[0].tokens.length > 0 && d.tokens[0].tokens[0].type === "text" && (d.tokens[0].tokens[0].text = I + " " + d.tokens[0].tokens[0].text)) : d.tokens.unshift({
5738
+ if (p.task) {
5739
+ const I = this.renderer.checkbox(!!d);
5740
+ c ? p.tokens.length > 0 && p.tokens[0].type === "paragraph" ? (p.tokens[0].text = I + " " + p.tokens[0].text, p.tokens[0].tokens && p.tokens[0].tokens.length > 0 && p.tokens[0].tokens[0].type === "text" && (p.tokens[0].tokens[0].text = I + " " + p.tokens[0].tokens[0].text)) : p.tokens.unshift({
5758
5741
  type: "text",
5759
5742
  text: I + " "
5760
5743
  }) : f += I + " ";
5761
5744
  }
5762
- f += this.parse(d.tokens, c), h += this.renderer.listitem(f, b, !!p);
5745
+ f += this.parse(p.tokens, c), h += this.renderer.listitem(f, b, !!d);
5763
5746
  }
5764
5747
  n += this.renderer.list(h, a, l);
5765
5748
  continue;
@@ -6007,7 +5990,7 @@ class El {
6007
5990
  const a = o, l = n.hooks[a], c = r[a];
6008
5991
  Ce.passThroughHooks.has(o) ? r[a] = (h) => {
6009
5992
  if (this.defaults.async)
6010
- return Promise.resolve(l.call(r, h)).then((d) => c.call(r, d));
5993
+ return Promise.resolve(l.call(r, h)).then((p) => c.call(r, p));
6011
5994
  const u = l.call(r, h);
6012
5995
  return c.call(r, u);
6013
5996
  } : r[a] = (...h) => {
@@ -6334,16 +6317,16 @@ var Il = Object.defineProperty, Ml = Object.getOwnPropertyDescriptor, V = (s, e,
6334
6317
  };
6335
6318
  customElements.get("conversation-entry") || customElements.define("conversation-entry", un);
6336
6319
  customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", mt);
6337
- customElements.get("conversation-group") || customElements.define("conversation-group", dn);
6338
- customElements.get("ace-typing-state") || customElements.define("ace-typing-state", pi);
6339
- customElements.get("message-type-html") || customElements.define("message-type-html", pn);
6320
+ customElements.get("conversation-group") || customElements.define("conversation-group", pn);
6321
+ customElements.get("ace-typing-state") || customElements.define("ace-typing-state", di);
6322
+ customElements.get("message-type-html") || customElements.define("message-type-html", dn);
6340
6323
  customElements.get("message-type-markdown") || customElements.define("message-type-markdown", bt);
6341
6324
  customElements.get("ace-lightbox") || customElements.define("ace-lightbox", xn);
6342
6325
  const Ci = ci(k);
6343
6326
  class R extends Ci {
6344
6327
  constructor() {
6345
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(
6346
- pe((e) => e ? e == null ? void 0 : e.provider$ : It(null))
6329
+ de((e) => e ? e == null ? void 0 : e.provider$ : It(null))
6347
6330
  ), this.userTyping$ = new _();
6348
6331
  }
6349
6332
  async connectedCallback() {
@@ -6356,7 +6339,7 @@ class R extends Ci {
6356
6339
  t && t.widgetActive$.pipe(zt(t.componentIsDestroyed$)).subscribe((n) => {
6357
6340
  const i = this.conversationContentRef.value;
6358
6341
  i && (n ? i.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = i.scrollTop);
6359
- }), this.stateSubscription = pr([
6342
+ }), this.stateSubscription = dr([
6360
6343
  this.stateMachine.entries(),
6361
6344
  this.stateMachine.isTyping()
6362
6345
  ]).subscribe(([n, i]) => {