@squadico/chatbot 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +5 -4
  2. package/dist/{answer-CDGrP8YE.js → answer-BDuY6oLY.js} +242 -231
  3. package/dist/answer-BDuY6oLY.js.map +1 -0
  4. package/dist/answer-Bi8GWLyA.cjs +8 -0
  5. package/dist/answer-Bi8GWLyA.cjs.map +1 -0
  6. package/dist/chatbot.global.js +11 -11
  7. package/dist/chatbot.global.js.map +1 -1
  8. package/dist/components/ChatbotWidget.d.ts.map +1 -1
  9. package/dist/element.d.ts.map +1 -1
  10. package/dist/{extras-lsCe4xgN.cjs → extras-BAqWS9pU.cjs} +2 -2
  11. package/dist/{extras-lsCe4xgN.cjs.map → extras-BAqWS9pU.cjs.map} +1 -1
  12. package/dist/{extras-ClIRRLqo.js → extras-BSCTuiit.js} +2 -2
  13. package/dist/{extras-ClIRRLqo.js.map → extras-BSCTuiit.js.map} +1 -1
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.js +2 -2
  16. package/dist/lib/conversation.d.ts +5 -1
  17. package/dist/lib/conversation.d.ts.map +1 -1
  18. package/dist/lib/useChat.d.ts +6 -0
  19. package/dist/lib/useChat.d.ts.map +1 -1
  20. package/dist/react.cjs +1 -1
  21. package/dist/react.cjs.map +1 -1
  22. package/dist/react.d.ts.map +1 -1
  23. package/dist/react.js +2 -2
  24. package/dist/react.js.map +1 -1
  25. package/dist/{src-BjqOavOO.js → src-B7GLD1Xs.js} +489 -452
  26. package/dist/src-B7GLD1Xs.js.map +1 -0
  27. package/dist/src-DuYhMbNf.cjs +7 -0
  28. package/dist/src-DuYhMbNf.cjs.map +1 -0
  29. package/dist/types.d.ts +5 -0
  30. package/dist/types.d.ts.map +1 -1
  31. package/dist/widgets/extras-loader.d.ts +1 -1
  32. package/dist/widgets/inline.d.ts.map +1 -1
  33. package/dist/widgets.cjs +1 -1
  34. package/dist/widgets.js +2 -2
  35. package/package.json +1 -1
  36. package/dist/answer-CDGrP8YE.js.map +0 -1
  37. package/dist/answer-DRaV2dVt.cjs +0 -8
  38. package/dist/answer-DRaV2dVt.cjs.map +0 -1
  39. package/dist/src-BjqOavOO.js.map +0 -1
  40. package/dist/src-DS8P9HdZ.cjs +0 -7
  41. package/dist/src-DS8P9HdZ.cjs.map +0 -1
@@ -45,7 +45,7 @@ function w(e, t) {
45
45
  function ee(e) {
46
46
  if (e.__P && e.__d) {
47
47
  var n = e.__v, r = n.__e, i = [], a = [], o = v({}, n);
48
- o.__v = n.__v + 1, t.vnode && t.vnode(o), ne(e.__P, o, n, e.__n, e.__P.namespaceURI, 32 & n.__u ? [r] : null, i, r ?? w(n), !!(32 & n.__u), a), o.__v = n.__v, o.__.__k[o.__i] = o, ie(i, o, a), n.__e = n.__ = null, o.__e != r && T(o);
48
+ o.__v = n.__v + 1, t.vnode && t.vnode(o), re(e.__P, o, n, e.__n, e.__P.namespaceURI, 32 & n.__u ? [r] : null, i, r ?? w(n), !!(32 & n.__u), a), o.__v = n.__v, o.__.__k[o.__i] = o, ae(i, o, a), n.__e = n.__ = null, o.__e != r && T(o);
49
49
  }
50
50
  }
51
51
  function T(e) {
@@ -65,12 +65,12 @@ function D() {
65
65
  }
66
66
  function te(e, t, n, r, i, a, o, s, c, l, u) {
67
67
  var d, f, p, g, _, v, y = r && r.__k || h, b = t.length;
68
- for (c = O(n, t, y, c, b), d = 0; d < b; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && y[p.__i] || m, p.__i = d, v = ne(e, p, f, i, a, o, s, c, l, u), g = p.__e, p.ref && f.ref != p.ref && (f.ref && se(f.ref, null, p), u.push(p.ref, p.__c || g, p)), _ == null && g != null && (_ = g), 4 & p.__u ? (c = k(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && v !== void 0 ? c = v : g && (c = g.nextSibling), p.__u &= -7);
68
+ for (c = O(n, t, y, c, b), d = 0; d < b; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && y[p.__i] || m, p.__i = d, v = re(e, p, f, i, a, o, s, c, l, u), g = p.__e, p.ref && f.ref != p.ref && (f.ref && N(f.ref, null, p), u.push(p.ref, p.__c || g, p)), _ == null && g != null && (_ = g), 4 & p.__u ? (c = k(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && v !== void 0 ? c = v : g && (c = g.nextSibling), p.__u &= -7);
69
69
  return n.__e = _, c;
70
70
  }
71
71
  function O(e, t, n, r, i) {
72
72
  var a, o, s, c, l, u = n.length, d = u, f = 0;
73
- for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = x(null, o, null, null, null) : _(o) ? o = e.__k[a] = x(S, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = x(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = A(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
73
+ for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = x(null, o, null, null, null) : _(o) ? o = e.__k[a] = x(S, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = x(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = ne(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
74
74
  if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = w(s)), ce(s, s));
75
75
  return r;
76
76
  }
@@ -86,7 +86,7 @@ function k(e, t, n) {
86
86
  while (t != null && t.nodeType == 8);
87
87
  return t;
88
88
  }
89
- function A(e, t, n, r) {
89
+ function ne(e, t, n, r) {
90
90
  var i, a, o, s = e.key, c = e.type, l = t[n], u = l != null && !(2 & l.__u);
91
91
  if (l === null && s == null || u && s == l.key && c == l.type) return n;
92
92
  if (r > +!!u) {
@@ -94,16 +94,16 @@ function A(e, t, n, r) {
94
94
  }
95
95
  return -1;
96
96
  }
97
- function j(e, t, n) {
97
+ function A(e, t, n) {
98
98
  t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || g.test(t) ? n : n + "px";
99
99
  }
100
- function M(e, t, n, r, i) {
100
+ function j(e, t, n, r, i) {
101
101
  var a, o;
102
102
  n: if (t == "style") {
103
103
  if (typeof n == "string") e.style.cssText = n;
104
104
  else {
105
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || j(e.style, t, "");
106
- if (n) for (t in n) r && n[t] == r[t] || j(e.style, t, n[t]);
105
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || A(e.style, t, "");
106
+ if (n) for (t in n) r && n[t] == r[t] || A(e.style, t, n[t]);
107
107
  }
108
108
  } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(u, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + a] = n, n ? r ? n[l] = r[l] : (n[l] = d, e.addEventListener(t, a ? p : f, a)) : e.removeEventListener(t, a ? p : f, a);
109
109
  else {
@@ -115,7 +115,7 @@ function M(e, t, n, r, i) {
115
115
  typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
116
116
  }
117
117
  }
118
- function N(e) {
118
+ function M(e) {
119
119
  return function(n) {
120
120
  if (this.l) {
121
121
  var r = this.l[n.type + e];
@@ -125,16 +125,16 @@ function N(e) {
125
125
  }
126
126
  };
127
127
  }
128
- function ne(e, n, r, i, a, o, s, c, l, u) {
129
- var d, f, p, m, g, b, x, ee, T, E, D, O, k, A, j, M, N = n.type;
128
+ function re(e, n, r, i, a, o, s, c, l, u) {
129
+ var d, f, p, m, g, b, x, ee, T, E, D, O, k, ne, A, j, M = n.type;
130
130
  if (n.constructor !== void 0) return null;
131
131
  128 & r.__u && (l = !!(32 & r.__u), o = [c = n.__e = r.__e]), (d = t.__b) && d(n);
132
- n: if (typeof N == "function") {
132
+ n: if (typeof M == "function") {
133
133
  f = s.length;
134
134
  try {
135
- if (T = n.props, E = N.prototype && N.prototype.render, D = (d = N.contextType) && i[d.__c], O = d ? D ? D.props.value : d.__ : i, r.__c ? ee = (p = n.__c = r.__c).__ = p.__E : (E ? n.__c = p = new N(T, O) : (n.__c = p = new C(T, O), p.constructor = N, p.render = le), D && D.sub(p), p.state || (p.state = {}), p.__n = i, m = p.__d = !0, p.__h = [], p._sb = []), E && p.__s == null && (p.__s = p.state), E && N.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = v({}, p.__s)), v(p.__s, N.getDerivedStateFromProps(T, p.__s))), g = p.props, b = p.state, p.__v = n, m) E && N.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), E && p.componentDidMount != null && p.__h.push(p.componentDidMount);
135
+ if (T = n.props, E = M.prototype && M.prototype.render, D = (d = M.contextType) && i[d.__c], O = d ? D ? D.props.value : d.__ : i, r.__c ? ee = (p = n.__c = r.__c).__ = p.__E : (E ? n.__c = p = new M(T, O) : (n.__c = p = new C(T, O), p.constructor = M, p.render = le), D && D.sub(p), p.state || (p.state = {}), p.__n = i, m = p.__d = !0, p.__h = [], p._sb = []), E && p.__s == null && (p.__s = p.state), E && M.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = v({}, p.__s)), v(p.__s, M.getDerivedStateFromProps(T, p.__s))), g = p.props, b = p.state, p.__v = n, m) E && M.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), E && p.componentDidMount != null && p.__h.push(p.componentDidMount);
136
136
  else {
137
- if (E && N.getDerivedStateFromProps == null && T !== g && p.componentWillReceiveProps != null && p.componentWillReceiveProps(T, O), n.__v == r.__v || !p.__e && p.shouldComponentUpdate != null && !1 === p.shouldComponentUpdate(T, p.__s, O)) {
137
+ if (E && M.getDerivedStateFromProps == null && T !== g && p.componentWillReceiveProps != null && p.componentWillReceiveProps(T, O), n.__v == r.__v || !p.__e && p.shouldComponentUpdate != null && !1 === p.shouldComponentUpdate(T, p.__s, O)) {
138
138
  n.__v != r.__v && (p.props = T, p.state = p.__s, p.__d = !1), n.__e = r.__e, n.__k = r.__k, n.__k.some(function(e) {
139
139
  e && (e.__ = n);
140
140
  }), h.push.apply(p.__h, p._sb), p._sb = [], p.__h.length && s.push(p), c = w(r);
@@ -144,28 +144,28 @@ function ne(e, n, r, i, a, o, s, c, l, u) {
144
144
  p.componentDidUpdate(g, b, x);
145
145
  });
146
146
  }
147
- if (p.context = O, p.props = T, p.__P = e, p.__e = !1, k = t.__r, A = 0, E) p.state = p.__s, p.__d = !1, k && k(n), d = p.render(p.props, p.state, p.context), h.push.apply(p.__h, p._sb), p._sb = [];
147
+ if (p.context = O, p.props = T, p.__P = e, p.__e = !1, k = t.__r, ne = 0, E) p.state = p.__s, p.__d = !1, k && k(n), d = p.render(p.props, p.state, p.context), h.push.apply(p.__h, p._sb), p._sb = [];
148
148
  else do
149
149
  p.__d = !1, k && k(n), d = p.render(p.props, p.state, p.context), p.state = p.__s;
150
- while (p.__d && ++A < 25);
151
- p.state = p.__s, p.getChildContext != null && (i = v(v({}, i), p.getChildContext())), E && !m && p.getSnapshotBeforeUpdate != null && (x = p.getSnapshotBeforeUpdate(g, b)), j = d != null && d.type === S && d.key == null ? ae(d.props.children) : d, c = te(e, _(j) ? j : [j], n, r, i, a, o, s, c, l, u), p.base = n.__e, n.__u &= -161, p.__h.length && s.push(p), ee && (p.__E = p.__ = null);
150
+ while (p.__d && ++ne < 25);
151
+ p.state = p.__s, p.getChildContext != null && (i = v(v({}, i), p.getChildContext())), E && !m && p.getSnapshotBeforeUpdate != null && (x = p.getSnapshotBeforeUpdate(g, b)), A = d != null && d.type === S && d.key == null ? oe(d.props.children) : d, c = te(e, _(A) ? A : [A], n, r, i, a, o, s, c, l, u), p.base = n.__e, n.__u &= -161, p.__h.length && s.push(p), ee && (p.__E = p.__ = null);
152
152
  } catch (e) {
153
153
  if (s.length = f, n.__v = null, l || o != null) {
154
154
  if (e.then) {
155
155
  for (n.__u |= l ? 160 : 128; c && c.nodeType == 8 && c.nextSibling;) c = c.nextSibling;
156
156
  o != null && (o[o.indexOf(c)] = null), n.__e = c;
157
- } else if (o != null) for (M = o.length; M--;) y(o[M]);
157
+ } else if (o != null) for (j = o.length; j--;) y(o[j]);
158
158
  } else n.__e = r.__e;
159
- n.__k ?? (n.__k = r.__k || []), e.then || re(n), t.__e(e, n, r);
159
+ n.__k ?? (n.__k = r.__k || []), e.then || ie(n), t.__e(e, n, r);
160
160
  }
161
- } else o == null && n.__v == r.__v ? (n.__k = r.__k, n.__e = r.__e) : c = n.__e = oe(r.__e, n, r, i, a, o, s, l, u);
161
+ } else o == null && n.__v == r.__v ? (n.__k = r.__k, n.__e = r.__e) : c = n.__e = se(r.__e, n, r, i, a, o, s, l, u);
162
162
  return (d = t.diffed) && d(n), 128 & n.__u ? void 0 : c;
163
163
  }
164
- function re(e) {
165
- e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(re));
164
+ function ie(e) {
165
+ e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(ie));
166
166
  }
167
- function ie(e, n, r) {
168
- for (var i = 0; i < r.length; i++) se(r[i], r[++i], r[++i]);
167
+ function ae(e, n, r) {
168
+ for (var i = 0; i < r.length; i++) N(r[i], r[++i], r[++i]);
169
169
  t.__c && t.__c(n, e), e.some(function(n) {
170
170
  try {
171
171
  e = n.__h, n.__h = [], e.some(function(e) {
@@ -176,10 +176,10 @@ function ie(e, n, r) {
176
176
  }
177
177
  });
178
178
  }
179
- function ae(e) {
180
- return typeof e != "object" || !e || e.__b > 0 ? e : _(e) ? e.map(ae) : e.constructor === void 0 ? v({}, e) : null;
179
+ function oe(e) {
180
+ return typeof e != "object" || !e || e.__b > 0 ? e : _(e) ? e.map(oe) : e.constructor === void 0 ? v({}, e) : null;
181
181
  }
182
- function oe(n, r, i, a, o, s, c, l, u) {
182
+ function se(n, r, i, a, o, s, c, l, u) {
183
183
  var d, f, p, h, g, v, b, x = i.props || m, S = r.props, C = r.type;
184
184
  if (C == "svg" ? o = "http://www.w3.org/2000/svg" : C == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), s != null) {
185
185
  for (d = 0; d < s.length; d++) if ((g = s[d]) && "setAttribute" in g == !!C && (C ? g.localName == C : g.nodeType == 3)) {
@@ -194,15 +194,15 @@ function oe(n, r, i, a, o, s, c, l, u) {
194
194
  if (C == null) x === S || l && n.data == S || (n.data = S);
195
195
  else {
196
196
  if (s = C == "textarea" && S.defaultValue != null ? null : s && e.call(n.childNodes), !l && s != null) for (x = {}, d = 0; d < n.attributes.length; d++) x[(g = n.attributes[d]).name] = g.value;
197
- for (d in x) g = x[d], d == "dangerouslySetInnerHTML" ? p = g : d == "children" || d in S || d == "value" && "defaultValue" in S || d == "checked" && "defaultChecked" in S || M(n, d, null, g, o);
198
- for (d in S) g = S[d], d == "children" ? h = g : d == "dangerouslySetInnerHTML" ? f = g : d == "value" ? v = g : d == "checked" ? b = g : l && typeof g != "function" || x[d] === g || M(n, d, g, x[d], o);
197
+ for (d in x) g = x[d], d == "dangerouslySetInnerHTML" ? p = g : d == "children" || d in S || d == "value" && "defaultValue" in S || d == "checked" && "defaultChecked" in S || j(n, d, null, g, o);
198
+ for (d in S) g = S[d], d == "children" ? h = g : d == "dangerouslySetInnerHTML" ? f = g : d == "value" ? v = g : d == "checked" ? b = g : l && typeof g != "function" || x[d] === g || j(n, d, g, x[d], o);
199
199
  if (f) l || p && (f.__html == p.__html || f.__html == n.innerHTML) || (n.innerHTML = f.__html), r.__k = [];
200
200
  else if (p && (n.innerHTML = ""), te(r.type == "template" ? n.content : n, _(h) ? h : [h], r, i, a, C == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, s, c, s ? s[0] : i.__k && w(i, 0), l, u), s != null) for (d = s.length; d--;) y(s[d]);
201
- l && C != "textarea" || (d = "value", C == "progress" && v == null ? n.removeAttribute("value") : v != null && (v !== n[d] || C == "progress" && !v || C == "option" && v != x[d]) && M(n, d, v, x[d], o), d = "checked", b != null && b != n[d] && M(n, d, b, x[d], o));
201
+ l && C != "textarea" || (d = "value", C == "progress" && v == null ? n.removeAttribute("value") : v != null && (v !== n[d] || C == "progress" && !v || C == "option" && v != x[d]) && j(n, d, v, x[d], o), d = "checked", b != null && b != n[d] && j(n, d, b, x[d], o));
202
202
  }
203
203
  return n;
204
204
  }
205
- function se(e, n, r) {
205
+ function N(e, n, r) {
206
206
  try {
207
207
  if (typeof e == "function") {
208
208
  var i = typeof e.__u == "function";
@@ -214,7 +214,7 @@ function se(e, n, r) {
214
214
  }
215
215
  function ce(e, n, r) {
216
216
  var i, a;
217
- if (t.unmount && t.unmount(e), (i = e.ref) && (i.current && i.current != e.__e || se(i, null, n)), (i = e.__c) != null) {
217
+ if (t.unmount && t.unmount(e), (i = e.ref) && (i.current && i.current != e.__e || N(i, null, n)), (i = e.__c) != null) {
218
218
  if (i.componentWillUnmount) try {
219
219
  i.componentWillUnmount();
220
220
  } catch (e) {
@@ -228,9 +228,9 @@ function ce(e, n, r) {
228
228
  function le(e, t, n) {
229
229
  return this.constructor(e, n);
230
230
  }
231
- function P(n, r, i) {
231
+ function ue(n, r, i) {
232
232
  var a, o, s, c;
233
- r == document && (r = document.documentElement), t.__ && t.__(n, r), o = (a = typeof i == "function") ? null : i && i.__k || r.__k, s = [], c = [], ne(r, n = (!a && i || r).__k = b(S, null, [n]), o || m, m, r.namespaceURI, !a && i ? [i] : o ? null : r.firstChild ? e.call(r.childNodes) : null, s, !a && i ? i : o ? o.__e : r.firstChild, a, c), ie(s, n, c), n.props.children = null;
233
+ r == document && (r = document.documentElement), t.__ && t.__(n, r), o = (a = typeof i == "function") ? null : i && i.__k || r.__k, s = [], c = [], re(r, n = (!a && i || r).__k = b(S, null, [n]), o || m, m, r.namespaceURI, !a && i ? [i] : o ? null : r.firstChild ? e.call(r.childNodes) : null, s, !a && i ? i : o ? o.__e : r.firstChild, a, c), ae(s, n, c), n.props.children = null;
234
234
  }
235
235
  e = h.slice, t = { __e: function(e, t, n, r) {
236
236
  for (var i, a, o; t = t.__;) if ((i = t.__c) && !i.__) try {
@@ -246,27 +246,27 @@ e = h.slice, t = { __e: function(e, t, n, r) {
246
246
  this.__v && (this.__e = !0, e && this.__h.push(e), E(this));
247
247
  }, C.prototype.render = S, r = [], a = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, o = function(e, t) {
248
248
  return e.__v.__b - t.__v.__b;
249
- }, D.__r = 0, s = Math.random().toString(8), c = "__d" + s, l = "__a" + s, u = /(PointerCapture)$|Capture$/i, d = 0, f = N(!1), p = N(!0);
249
+ }, D.__r = 0, s = Math.random().toString(8), c = "__d" + s, l = "__a" + s, u = /(PointerCapture)$|Capture$/i, d = 0, f = M(!1), p = M(!0);
250
250
  //#endregion
251
251
  //#region node_modules/preact/hooks/dist/hooks.module.js
252
- var F, I, L, ue, R = 0, de = [], z = t, fe = z.__b, pe = z.__r, me = z.diffed, he = z.__c, ge = z.unmount, _e = z.__;
253
- function B(e, t) {
254
- z.__h && z.__h(I, e, R || t), R = 0;
255
- var n = I.__H || (I.__H = {
252
+ var P, F, de, fe, I = 0, pe = [], L = t, me = L.__b, he = L.__r, ge = L.diffed, _e = L.__c, ve = L.unmount, ye = L.__;
253
+ function R(e, t) {
254
+ L.__h && L.__h(F, e, I || t), I = 0;
255
+ var n = F.__H || (F.__H = {
256
256
  __: [],
257
257
  __h: []
258
258
  });
259
259
  return e >= n.__.length && n.__.push({}), n.__[e];
260
260
  }
261
- function V(e) {
262
- return R = 1, ve(Oe, e);
261
+ function z(e) {
262
+ return I = 1, be(Ae, e);
263
263
  }
264
- function ve(e, t, n) {
265
- var r = B(F++, 2);
266
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Oe(void 0, t), function(e) {
264
+ function be(e, t, n) {
265
+ var r = R(P++, 2);
266
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Ae(void 0, t), function(e) {
267
267
  var t = r.__N ? r.__N[0] : r.__[0], n = r.t(t, e);
268
268
  t !== n && (r.__N = [n, r.__[1]], r.__c.setState({}));
269
- }], r.__c = I, !I.__f)) {
269
+ }], r.__c = F, !F.__f)) {
270
270
  var i = function(e, t, n) {
271
271
  if (!r.__c.__H) return !0;
272
272
  var i = !1, o = r.__c.props !== e;
@@ -282,119 +282,119 @@ function ve(e, t, n) {
282
282
  }
283
283
  return !i || o;
284
284
  };
285
- I.__f = !0;
286
- var a = I.shouldComponentUpdate, o = I.componentWillUpdate;
287
- I.componentWillUpdate = function(e, t, n) {
285
+ F.__f = !0;
286
+ var a = F.shouldComponentUpdate, o = F.componentWillUpdate;
287
+ F.componentWillUpdate = function(e, t, n) {
288
288
  if (this.__e) {
289
289
  var r = a;
290
290
  a = void 0, i(e, t, n), a = r;
291
291
  }
292
292
  o && o.call(this, e, t, n);
293
- }, I.shouldComponentUpdate = i;
293
+ }, F.shouldComponentUpdate = i;
294
294
  }
295
295
  return r.__N || r.__;
296
296
  }
297
- function ye(e, t) {
298
- var n = B(F++, 3);
299
- !z.__s && De(n.__H, t) && (n.__ = e, n.u = t, I.__H.__h.push(n));
297
+ function xe(e, t) {
298
+ var n = R(P++, 3);
299
+ !L.__s && ke(n.__H, t) && (n.__ = e, n.u = t, F.__H.__h.push(n));
300
300
  }
301
- function be(e, t) {
302
- var n = B(F++, 4);
303
- !z.__s && De(n.__H, t) && (n.__ = e, n.u = t, I.__h.push(n));
301
+ function Se(e, t) {
302
+ var n = R(P++, 4);
303
+ !L.__s && ke(n.__H, t) && (n.__ = e, n.u = t, F.__h.push(n));
304
304
  }
305
- function xe(e) {
306
- return R = 5, H(function() {
305
+ function Ce(e) {
306
+ return I = 5, B(function() {
307
307
  return { current: e };
308
308
  }, []);
309
309
  }
310
- function H(e, t) {
311
- var n = B(F++, 7);
312
- return De(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
310
+ function B(e, t) {
311
+ var n = R(P++, 7);
312
+ return ke(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
313
313
  }
314
- function Se(e, t) {
315
- return R = 8, H(function() {
314
+ function we(e, t) {
315
+ return I = 8, B(function() {
316
316
  return e;
317
317
  }, t);
318
318
  }
319
- function Ce() {
320
- for (var e; e = de.shift();) {
319
+ function Te() {
320
+ for (var e; e = pe.shift();) {
321
321
  var t = e.__H;
322
322
  if (e.__P && t) try {
323
- t.__h.some(U), t.__h.some(Ee), t.__h = [];
323
+ t.__h.some(V), t.__h.some(Oe), t.__h = [];
324
324
  } catch (n) {
325
- t.__h = [], z.__e(n, e.__v);
325
+ t.__h = [], L.__e(n, e.__v);
326
326
  }
327
327
  }
328
328
  }
329
- z.__b = function(e) {
330
- I = null, fe && fe(e);
331
- }, z.__ = function(e, t) {
332
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), _e && _e(e, t);
333
- }, z.__r = function(e) {
334
- pe && pe(e), F = 0;
335
- var t = (I = e.__c).__H;
336
- t && (L === I ? (t.__h = [], I.__h = [], t.__.some(function(e) {
329
+ L.__b = function(e) {
330
+ F = null, me && me(e);
331
+ }, L.__ = function(e, t) {
332
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), ye && ye(e, t);
333
+ }, L.__r = function(e) {
334
+ he && he(e), P = 0;
335
+ var t = (F = e.__c).__H;
336
+ t && (de === F ? (t.__h = [], F.__h = [], t.__.some(function(e) {
337
337
  e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
338
- })) : (t.__h.some(U), t.__h.some(Ee), t.__h = [], F = 0)), L = I;
339
- }, z.diffed = function(e) {
340
- me && me(e);
338
+ })) : (t.__h.some(V), t.__h.some(Oe), t.__h = [], P = 0)), de = F;
339
+ }, L.diffed = function(e) {
340
+ ge && ge(e);
341
341
  var t = e.__c;
342
- t && t.__H && (t.__H.__h.length && (de.push(t) !== 1 && ue === z.requestAnimationFrame || ((ue = z.requestAnimationFrame) || Te)(Ce)), t.__H.__.some(function(e) {
342
+ t && t.__H && (t.__H.__h.length && (pe.push(t) !== 1 && fe === L.requestAnimationFrame || ((fe = L.requestAnimationFrame) || De)(Te)), t.__H.__.some(function(e) {
343
343
  e.u && (e.__H = e.u, e.u = void 0);
344
- })), L = I = null;
345
- }, z.__c = function(e, t) {
344
+ })), de = F = null;
345
+ }, L.__c = function(e, t) {
346
346
  t.some(function(e) {
347
347
  try {
348
- e.__h.some(U), e.__h = e.__h.filter(function(e) {
349
- return !e.__ || Ee(e);
348
+ e.__h.some(V), e.__h = e.__h.filter(function(e) {
349
+ return !e.__ || Oe(e);
350
350
  });
351
351
  } catch (n) {
352
352
  t.some(function(e) {
353
353
  e.__h && (e.__h = []);
354
- }), t = [], z.__e(n, e.__v);
354
+ }), t = [], L.__e(n, e.__v);
355
355
  }
356
- }), he && he(e, t);
357
- }, z.unmount = function(e) {
358
- ge && ge(e);
356
+ }), _e && _e(e, t);
357
+ }, L.unmount = function(e) {
358
+ ve && ve(e);
359
359
  var t, n = e.__c;
360
360
  n && n.__H && (n.__H.__.some(function(e) {
361
361
  try {
362
- U(e);
362
+ V(e);
363
363
  } catch (e) {
364
364
  t = e;
365
365
  }
366
- }), n.__H = void 0, t && z.__e(t, n.__v));
366
+ }), n.__H = void 0, t && L.__e(t, n.__v));
367
367
  };
368
- var we = typeof requestAnimationFrame == "function";
369
- function Te(e) {
368
+ var Ee = typeof requestAnimationFrame == "function";
369
+ function De(e) {
370
370
  var t, n = function() {
371
- clearTimeout(r), we && cancelAnimationFrame(t), setTimeout(e);
371
+ clearTimeout(r), Ee && cancelAnimationFrame(t), setTimeout(e);
372
372
  }, r = setTimeout(n, 35);
373
- we && (t = requestAnimationFrame(n));
373
+ Ee && (t = requestAnimationFrame(n));
374
374
  }
375
- function U(e) {
376
- var t = I, n = e.__c;
377
- typeof n == "function" && (e.__c = void 0, n()), I = t;
375
+ function V(e) {
376
+ var t = F, n = e.__c;
377
+ typeof n == "function" && (e.__c = void 0, n()), F = t;
378
378
  }
379
- function Ee(e) {
380
- var t = I;
381
- e.__c = e.__(), I = t;
379
+ function Oe(e) {
380
+ var t = F;
381
+ e.__c = e.__(), F = t;
382
382
  }
383
- function De(e, t) {
383
+ function ke(e, t) {
384
384
  return !e || e.length !== t.length || t.some(function(t, n) {
385
385
  return t !== e[n];
386
386
  });
387
387
  }
388
- function Oe(e, t) {
388
+ function Ae(e, t) {
389
389
  return typeof t == "function" ? t(e) : t;
390
390
  }
391
391
  //#endregion
392
392
  //#region src/lib/i18n.ts
393
- var ke = "en", Ae = [
393
+ var je = "en", Me = [
394
394
  "en",
395
395
  "fr",
396
396
  "es"
397
- ], je = {
397
+ ], Ne = {
398
398
  en: {
399
399
  heading: "Assistant",
400
400
  subheading: "Squadico",
@@ -662,31 +662,31 @@ var ke = "en", Ae = [
662
662
  error: "Se ha producido un error, el asistente no ha podido responder. Inténtelo de nuevo.",
663
663
  withHuman: "Un miembro del equipo le responderá aquí."
664
664
  }
665
- }, Me = {
665
+ }, Pe = {
666
666
  en: "en-GB",
667
667
  fr: "fr-FR",
668
668
  es: "es-ES"
669
669
  };
670
- function Ne(e) {
670
+ function Fe(e) {
671
671
  let t = e?.trim().toLowerCase().split(/[-_]/)[0];
672
- return t && t in je ? t : void 0;
672
+ return t && t in Ne ? t : void 0;
673
673
  }
674
- function Pe() {
674
+ function Ie() {
675
675
  return typeof navigator > "u" ? [] : navigator.languages?.length ? navigator.languages : [navigator.language];
676
676
  }
677
- function Fe(e) {
678
- let t = e?.trim(), n = (t ? [t] : Pe()).find(Ne), r = Ne(n) ?? "en";
677
+ function Le(e) {
678
+ let t = e?.trim(), n = (t ? [t] : Ie()).find(Fe), r = Fe(n) ?? "en";
679
679
  return {
680
680
  code: r,
681
- tag: n?.includes("-") ? n : Me[r],
682
- t: je[r]
681
+ tag: n?.includes("-") ? n : Pe[r],
682
+ t: Ne[r]
683
683
  };
684
684
  }
685
685
  //#endregion
686
686
  //#region node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
687
- var Ie = 0;
687
+ var Re = 0;
688
688
  Array.isArray;
689
- function W(e, n, r, i, a, o) {
689
+ function H(e, n, r, i, a, o) {
690
690
  n || (n = {});
691
691
  var s, c, l = n;
692
692
  if ("ref" in l) for (c in l = {}, n) c == "ref" ? s = n[c] : l[c] = n[c];
@@ -701,7 +701,7 @@ function W(e, n, r, i, a, o) {
701
701
  __e: null,
702
702
  __c: null,
703
703
  constructor: void 0,
704
- __v: --Ie,
704
+ __v: --Re,
705
705
  __i: -1,
706
706
  __u: 0,
707
707
  __source: a,
@@ -712,49 +712,49 @@ function W(e, n, r, i, a, o) {
712
712
  }
713
713
  //#endregion
714
714
  //#region \0@oxc-project+runtime@0.147.0/helpers/esm/checkPrivateRedeclaration.js
715
- function Le(e, t) {
715
+ function ze(e, t) {
716
716
  if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
717
717
  }
718
718
  //#endregion
719
719
  //#region \0@oxc-project+runtime@0.147.0/helpers/esm/classPrivateMethodInitSpec.js
720
- function Re(e, t) {
721
- Le(e, t), t.add(e);
720
+ function Be(e, t) {
721
+ ze(e, t), t.add(e);
722
722
  }
723
723
  //#endregion
724
724
  //#region \0@oxc-project+runtime@0.147.0/helpers/esm/classPrivateFieldInitSpec.js
725
- function G(e, t, n) {
726
- Le(e, t), t.set(e, n);
725
+ function U(e, t, n) {
726
+ ze(e, t), t.set(e, n);
727
727
  }
728
728
  //#endregion
729
729
  //#region \0@oxc-project+runtime@0.147.0/helpers/esm/assertClassBrand.js
730
- function K(e, t, n) {
730
+ function W(e, t, n) {
731
731
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
732
732
  throw TypeError("Private element is not present on this object");
733
733
  }
734
734
  //#endregion
735
735
  //#region \0@oxc-project+runtime@0.147.0/helpers/esm/classPrivateFieldGet2.js
736
- function q(e, t) {
737
- return e.get(K(e, t));
736
+ function G(e, t) {
737
+ return e.get(W(e, t));
738
738
  }
739
739
  //#endregion
740
740
  //#region \0@oxc-project+runtime@0.147.0/helpers/esm/classPrivateFieldSet2.js
741
- function J(e, t, n) {
742
- return e.set(K(e, t), n), n;
741
+ function K(e, t, n) {
742
+ return e.set(W(e, t), n), n;
743
743
  }
744
744
  //#endregion
745
745
  //#region src/widgets/element.ts
746
- var ze = /* @__PURE__ */ new Map();
747
- function Be(e) {
748
- if (ze.has(e)) return ze.get(e) ?? null;
746
+ var Ve = /* @__PURE__ */ new Map();
747
+ function He(e) {
748
+ if (Ve.has(e)) return Ve.get(e) ?? null;
749
749
  let t;
750
750
  try {
751
751
  t = new CSSStyleSheet(), t.replaceSync(e);
752
752
  } catch {
753
753
  t = null;
754
754
  }
755
- return ze.set(e, t), t;
755
+ return Ve.set(e, t), t;
756
756
  }
757
- function Y(e, t, n) {
757
+ function q(e, t, n) {
758
758
  let r = [
759
759
  ...t,
760
760
  "locked",
@@ -763,23 +763,23 @@ function Y(e, t, n) {
763
763
  var i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakSet();
764
764
  class l extends HTMLElement {
765
765
  constructor() {
766
- super(), Re(this, c), G(this, i, {
766
+ super(), Be(this, c), U(this, i, {
767
767
  locked: !1,
768
768
  language: "en"
769
- }), G(this, a, void 0), G(this, o, !1), G(this, s, (e) => {
770
- q(i, this).locked || (this.set("locked", !0), this.dispatchEvent(new CustomEvent("sqc-reply", {
769
+ }), U(this, a, void 0), U(this, o, !1), U(this, s, (e) => {
770
+ G(i, this).locked || (this.set("locked", !0), this.dispatchEvent(new CustomEvent("sqc-reply", {
771
771
  detail: { text: e },
772
772
  bubbles: !0,
773
773
  composed: !0
774
774
  })));
775
775
  });
776
- let e = this.attachShadow({ mode: "open" }), t = Be(n);
776
+ let e = this.attachShadow({ mode: "open" }), t = He(n);
777
777
  if (t) e.adoptedStyleSheets = [t];
778
778
  else {
779
779
  let t = document.createElement("style");
780
780
  t.textContent = n, e.append(t);
781
781
  }
782
- J(a, this, document.createElement("div")), e.append(q(a, this));
782
+ K(a, this, document.createElement("div")), e.append(G(a, this));
783
783
  for (let e of r) {
784
784
  if (!Object.hasOwn(this, e)) continue;
785
785
  let t = this[e];
@@ -787,23 +787,23 @@ function Y(e, t, n) {
787
787
  }
788
788
  }
789
789
  connectedCallback() {
790
- J(o, this, !0), K(c, this, u).call(this);
790
+ K(o, this, !0), W(c, this, u).call(this);
791
791
  }
792
792
  disconnectedCallback() {
793
- J(o, this, !1), P(null, q(a, this));
793
+ K(o, this, !1), ue(null, G(a, this));
794
794
  }
795
795
  set(e, t) {
796
- q(i, this)[e] = t, K(c, this, u).call(this);
796
+ G(i, this)[e] = t, W(c, this, u).call(this);
797
797
  }
798
798
  get(e) {
799
- return q(i, this)[e];
799
+ return G(i, this)[e];
800
800
  }
801
801
  }
802
802
  function u() {
803
- q(o, this) && P(b(e, {
804
- ...q(i, this),
805
- reply: q(s, this)
806
- }), q(a, this));
803
+ G(o, this) && ue(b(e, {
804
+ ...G(i, this),
805
+ reply: G(s, this)
806
+ }), G(a, this));
807
807
  }
808
808
  for (let e of r) Object.defineProperty(l.prototype, e, {
809
809
  get() {
@@ -818,7 +818,7 @@ function Y(e, t, n) {
818
818
  }
819
819
  //#endregion
820
820
  //#region src/widgets/names.ts
821
- var X = {
821
+ var J = {
822
822
  table: "sqc-table",
823
823
  choices: "sqc-choices",
824
824
  confirm: "sqc-confirm",
@@ -828,49 +828,60 @@ var X = {
828
828
  };
829
829
  //#endregion
830
830
  //#region src/widgets/i18n.ts
831
- function Z(e) {
832
- return Fe(e).t;
831
+ function Y(e) {
832
+ return Le(e).t;
833
833
  }
834
834
  //#endregion
835
835
  //#region src/widgets/inline.tsx
836
- var Ve = /(\*\*[^*\n]+\*\*|`[^`\n]+`|~~[^~\n]+~~|\[[^\]\n]+\]\([^)\s]+\)|\*[^*\n]+\*|https?:\/\/[^\s<>()]+)/g, He = /^\[([^\]\n]+)\]\(([^)\s]+)\)$/, Ue = /^(https?:|mailto:)/i;
837
- function We(e, t, n) {
838
- return Ue.test(e) ? /* @__PURE__ */ W("a", {
836
+ var Ue = /(\*\*[^*\n]+\*\*|`[^`\n]+`|~~[^~\n]+~~|\[[^\]\n]+\]\([^)\s]+\)|\*[^*\n]+\*|https?:\/\/[^\s<>()]+)/g, We = /^\[([^\]\n]+)\]\(([^)\s]+)\)$/, Ge = /^(https?:|mailto:|\/(?!\/))/i;
837
+ function Ke(e) {
838
+ if (typeof location > "u") return !1;
839
+ try {
840
+ return new URL(e, location.href).origin === location.origin;
841
+ } catch {
842
+ return !1;
843
+ }
844
+ }
845
+ function qe(e, t, n) {
846
+ return Ge.test(e) ? Ke(e) ? /* @__PURE__ */ H("a", {
847
+ href: e,
848
+ children: t
849
+ }, n) : /* @__PURE__ */ H("a", {
839
850
  href: e,
840
851
  target: "_blank",
841
852
  rel: "noopener noreferrer",
842
853
  children: t
843
854
  }, n) : t;
844
855
  }
845
- function Q(e, t) {
846
- let n = e.split(Ve), r = [];
856
+ function X(e, t) {
857
+ let n = e.split(Ue), r = [];
847
858
  return n.forEach((e, n) => {
848
859
  if (!e) return;
849
- let i = `${t}-${n}`, a = He.exec(e);
850
- e.startsWith("**") && e.endsWith("**") && e.length > 4 ? r.push(/* @__PURE__ */ W("strong", { children: e.slice(2, -2) }, i)) : e.startsWith("`") && e.endsWith("`") && e.length > 2 ? r.push(/* @__PURE__ */ W("code", { children: e.slice(1, -1) }, i)) : e.startsWith("~~") && e.endsWith("~~") && e.length > 4 ? r.push(/* @__PURE__ */ W("del", { children: e.slice(2, -2) }, i)) : a ? r.push(We(a[2], a[1], i)) : e.startsWith("*") && e.endsWith("*") && e.length > 2 ? r.push(/* @__PURE__ */ W("em", { children: e.slice(1, -1) }, i)) : /^https?:\/\//.test(e) ? r.push(We(e, e, i)) : r.push(e);
860
+ let i = `${t}-${n}`, a = We.exec(e);
861
+ e.startsWith("**") && e.endsWith("**") && e.length > 4 ? r.push(/* @__PURE__ */ H("strong", { children: e.slice(2, -2) }, i)) : e.startsWith("`") && e.endsWith("`") && e.length > 2 ? r.push(/* @__PURE__ */ H("code", { children: e.slice(1, -1) }, i)) : e.startsWith("~~") && e.endsWith("~~") && e.length > 4 ? r.push(/* @__PURE__ */ H("del", { children: e.slice(2, -2) }, i)) : a ? r.push(qe(a[2], a[1], i)) : e.startsWith("*") && e.endsWith("*") && e.length > 2 ? r.push(/* @__PURE__ */ H("em", { children: e.slice(1, -1) }, i)) : /^https?:\/\//.test(e) ? r.push(qe(e, e, i)) : r.push(e);
851
862
  }), r;
852
863
  }
853
- function Ge(e) {
864
+ function Je(e) {
854
865
  return e.replace(/\[([^\]\n]+)\]\([^)\s]+\)/g, "$1").replace(/\*\*|~~|`|\*/g, "").trim();
855
866
  }
856
867
  //#endregion
857
868
  //#region src/widgets/choices/SqcChoices.tsx
858
- function Ke() {
859
- return /* @__PURE__ */ W("svg", {
869
+ function Ye() {
870
+ return /* @__PURE__ */ H("svg", {
860
871
  viewBox: "0 0 16 16",
861
872
  fill: "none",
862
873
  stroke: "currentColor",
863
874
  "stroke-width": "2.2",
864
875
  "aria-hidden": "true",
865
- children: /* @__PURE__ */ W("path", {
876
+ children: /* @__PURE__ */ H("path", {
866
877
  d: "M3.5 8.5l3 3 6-7",
867
878
  "stroke-linecap": "round",
868
879
  "stroke-linejoin": "round"
869
880
  })
870
881
  });
871
882
  }
872
- function qe({ options: e = [], multiple: t, checked: n, locked: r, language: i, reply: a }) {
873
- let o = Z(i), s = e.map(Ge), [c, l] = V(null), u = e.flatMap((e, t) => n?.includes(e) ? [t] : []), d = c ?? (t ? u : u.slice(0, 1)), f = (e) => {
883
+ function Xe({ options: e = [], multiple: t, checked: n, locked: r, language: i, reply: a }) {
884
+ let o = Y(i), s = e.map(Je), [c, l] = z(null), u = e.flatMap((e, t) => n?.includes(e) ? [t] : []), d = c ?? (t ? u : u.slice(0, 1)), f = (e) => {
874
885
  if (!r) {
875
886
  if (!t) {
876
887
  l([e]), a(s[e]);
@@ -879,25 +890,25 @@ function qe({ options: e = [], multiple: t, checked: n, locked: r, language: i,
879
890
  l(d.includes(e) ? d.filter((t) => t !== e) : [...d, e]);
880
891
  }
881
892
  };
882
- return /* @__PURE__ */ W("div", {
893
+ return /* @__PURE__ */ H("div", {
883
894
  class: "choices",
884
895
  role: "group",
885
896
  "aria-label": o.choices,
886
- children: [e.map((e, t) => /* @__PURE__ */ W("button", {
897
+ children: [e.map((e, t) => /* @__PURE__ */ H("button", {
887
898
  type: "button",
888
899
  class: "choice",
889
900
  "aria-pressed": d.includes(t),
890
901
  disabled: r,
891
902
  onClick: () => f(t),
892
- children: [/* @__PURE__ */ W("span", {
903
+ children: [/* @__PURE__ */ H("span", {
893
904
  class: `box${d.includes(t) ? " on" : ""}`,
894
905
  "aria-hidden": "true",
895
- children: d.includes(t) && /* @__PURE__ */ W(Ke, {})
896
- }), /* @__PURE__ */ W("span", {
906
+ children: d.includes(t) && /* @__PURE__ */ H(Ye, {})
907
+ }), /* @__PURE__ */ H("span", {
897
908
  class: "label",
898
- children: Q(e, `o${t}`)
909
+ children: X(e, `o${t}`)
899
910
  })]
900
- }, `${t}-${s[t]}`)), t && /* @__PURE__ */ W("button", {
911
+ }, `${t}-${s[t]}`)), t && /* @__PURE__ */ H("button", {
901
912
  type: "button",
902
913
  class: "send",
903
914
  disabled: r || d.length === 0,
@@ -910,8 +921,8 @@ function qe({ options: e = [], multiple: t, checked: n, locked: r, language: i,
910
921
  }
911
922
  //#endregion
912
923
  //#region src/widgets/confirm/SqcConfirm.tsx
913
- function Je({ locked: e, language: t, reply: n }) {
914
- let [r, i] = V(null), { confirm: a } = Z(t), o = [{
924
+ function Ze({ locked: e, language: t, reply: n }) {
925
+ let [r, i] = z(null), { confirm: a } = Y(t), o = [{
915
926
  value: a.yesValue,
916
927
  label: a.yes,
917
928
  kind: "yes"
@@ -920,11 +931,11 @@ function Je({ locked: e, language: t, reply: n }) {
920
931
  label: a.no,
921
932
  kind: "no"
922
933
  }];
923
- return /* @__PURE__ */ W("div", {
934
+ return /* @__PURE__ */ H("div", {
924
935
  class: "confirm",
925
936
  role: "group",
926
937
  "aria-label": a.group,
927
- children: [o.map((t) => /* @__PURE__ */ W("button", {
938
+ children: [o.map((t) => /* @__PURE__ */ H("button", {
928
939
  type: "button",
929
940
  class: t.kind,
930
941
  "aria-pressed": r === t.value,
@@ -933,7 +944,7 @@ function Je({ locked: e, language: t, reply: n }) {
933
944
  i(t.value), n(t.value);
934
945
  },
935
946
  children: t.label
936
- }, t.kind)), /* @__PURE__ */ W("button", {
947
+ }, t.kind)), /* @__PURE__ */ H("button", {
937
948
  type: "button",
938
949
  class: "other",
939
950
  disabled: e,
@@ -947,37 +958,37 @@ function Je({ locked: e, language: t, reply: n }) {
947
958
  }
948
959
  //#endregion
949
960
  //#region src/widgets/table/SqcTable.tsx
950
- var Ye = 200, Xe = new Intl.Collator(void 0, {
961
+ var Qe = 200, $e = new Intl.Collator(void 0, {
951
962
  numeric: !0,
952
963
  sensitivity: "base"
953
- }), Ze = (e) => Ge(e ?? "").replace(/[\t\r\n]+/g, " ");
954
- function Qe({ table: e, language: t }) {
955
- let n = Z(t), { header: r = [], rows: i = [] } = e ?? {}, [a, o] = V(null), [s, c] = V(!1), l = H(() => {
964
+ }), Z = (e) => Je(e ?? "").replace(/[\t\r\n]+/g, " ");
965
+ function et({ table: e, language: t }) {
966
+ let n = Y(t), { header: r = [], rows: i = [] } = e ?? {}, [a, o] = z(null), [s, c] = z(!1), l = B(() => {
956
967
  if (!a) return i;
957
968
  let e = a.descending ? -1 : 1;
958
- return [...i].sort((t, n) => e * Xe.compare(Ze(t[a.column]), Ze(n[a.column])));
969
+ return [...i].sort((t, n) => e * $e.compare(Z(t[a.column]), Z(n[a.column])));
959
970
  }, [i, a]), u = () => {
960
- let e = [r, ...l].map((e) => r.map((t, n) => Ze(e[n])).join(" "));
971
+ let e = [r, ...l].map((e) => r.map((t, n) => Z(e[n])).join(" "));
961
972
  navigator.clipboard?.writeText(e.join("\n")).then(() => {
962
973
  c(!0), setTimeout(() => c(!1), 2e3);
963
974
  }, () => void 0);
964
- }, d = l.length - Ye;
965
- return /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ W("div", {
975
+ }, d = l.length - Qe;
976
+ return /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ H("div", {
966
977
  class: "table",
967
- children: /* @__PURE__ */ W("table", { children: [/* @__PURE__ */ W("thead", { children: /* @__PURE__ */ W("tr", { children: r.map((e, t) => /* @__PURE__ */ W("th", {
978
+ children: /* @__PURE__ */ H("table", { children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H("tr", { children: r.map((e, t) => /* @__PURE__ */ H("th", {
968
979
  "aria-sort": a?.column === t ? a.descending ? "descending" : "ascending" : "none",
969
- children: /* @__PURE__ */ W("button", {
980
+ children: /* @__PURE__ */ H("button", {
970
981
  type: "button",
971
982
  onClick: () => o({
972
983
  column: t,
973
984
  descending: a?.column === t && !a.descending
974
985
  }),
975
- children: Q(e, `h${t}`)
986
+ children: X(e, `h${t}`)
976
987
  })
977
- }, t)) }) }), /* @__PURE__ */ W("tbody", { children: l.slice(0, Ye).map((e, t) => /* @__PURE__ */ W("tr", { children: r.map((n, r) => /* @__PURE__ */ W("td", { children: Q(e[r] ?? "", `r${t}c${r}`) }, r)) }, t)) })] })
978
- }), /* @__PURE__ */ W("div", {
988
+ }, t)) }) }), /* @__PURE__ */ H("tbody", { children: l.slice(0, Qe).map((e, t) => /* @__PURE__ */ H("tr", { children: r.map((n, r) => /* @__PURE__ */ H("td", { children: X(e[r] ?? "", `r${t}c${r}`) }, r)) }, t)) })] })
989
+ }), /* @__PURE__ */ H("div", {
979
990
  class: "foot",
980
- children: [d > 0 && /* @__PURE__ */ W("span", { children: n.table.more.replace("{count}", String(d)) }), /* @__PURE__ */ W("button", {
991
+ children: [d > 0 && /* @__PURE__ */ H("span", { children: n.table.more.replace("{count}", String(d)) }), /* @__PURE__ */ H("button", {
981
992
  type: "button",
982
993
  class: "copy",
983
994
  onClick: u,
@@ -987,46 +998,46 @@ function Qe({ table: e, language: t }) {
987
998
  }
988
999
  //#endregion
989
1000
  //#region src/widgets/choices/choices.css?inline
990
- var $e = ".choices{flex-direction:column;gap:7px;margin:10px 0 2px;display:flex}.choice{text-align:left;width:100%;color:var(--w-text);background:var(--w-bg);border:1px solid var(--w-border);cursor:pointer;border-radius:12px;align-items:center;gap:8px;padding:8px 11px;font-size:12.5px;display:flex}.choice:hover:not(:disabled){border-color:var(--w-border-strong);background:var(--w-surface)}.choice:disabled{cursor:default}.choice:disabled[aria-pressed=false]{opacity:.55}.choice[aria-pressed=true]{border-color:var(--w-border-strong);background:var(--w-selected)}.box{border:1.5px solid var(--w-border-strong);border-radius:4px;flex:none;justify-content:center;align-items:center;width:15px;height:15px;display:inline-flex}.choices:not(:has(.send)) .box{border-radius:50%}.box.on{color:var(--w-on-accent);background:var(--w-accent);border-color:var(--w-accent)}.box svg{width:11px;height:11px}.label{overflow-wrap:anywhere}.send{background:var(--w-accent);height:32px;color:var(--w-on-accent);cursor:pointer;border:0;border-radius:12px;align-self:flex-end;padding:0 14px;font-size:13px;font-weight:600}.send:disabled{opacity:.4;cursor:default}", et = ".confirm{flex-wrap:wrap;gap:8px;margin:11px 0 2px;display:flex}.confirm button{border:1px solid var(--w-border);background:var(--w-bg);height:32px;color:var(--w-text);cursor:pointer;border-radius:12px;flex:1 1 0;padding:0 12px;font-size:13px;font-weight:500}.confirm .other{flex-basis:100%}.confirm .yes:not(:disabled){background:var(--w-accent);color:var(--w-on-accent);border-color:#0000;font-weight:600}.confirm button:hover:not(:disabled){border-color:var(--w-border-strong);background:var(--w-surface)}.confirm .yes:hover:not(:disabled){background:var(--w-accent-hover);border-color:#0000}.confirm button:disabled{cursor:default}.confirm button:disabled:not([aria-pressed=true]){opacity:.45}.confirm button[aria-pressed=true]{border-color:var(--w-border-strong);background:var(--w-selected);color:var(--w-text);font-weight:600}", tt = ".table{scrollbar-width:thin;margin:0 0 8px;overflow-x:auto}table{border-collapse:collapse;white-space:nowrap;min-width:100%;font-size:12.5px}th,td{text-align:left;vertical-align:top;border-bottom:1px solid color-mix(in srgb, currentColor 18%, transparent);padding:6px 10px 6px 0}thead th{text-transform:uppercase;letter-spacing:.05em;font-size:10.5px;font-weight:600}thead button{font:inherit;text-transform:inherit;letter-spacing:inherit;opacity:.7;cursor:pointer;background:0 0;border:0;padding:0}thead button:hover{opacity:1}tbody tr:last-child td{border-bottom:0}.foot{opacity:.8;align-items:center;gap:10px;font-size:11.5px;display:flex}.copy{border:1px solid var(--w-border);cursor:pointer;background:0 0;border-radius:8px;padding:2px 8px;font-size:11.5px}", nt = ":host{--w-bg:var(--sqc-bg,#fff);--w-surface:var(--sqc-surface,#f8fafc);--w-selected:var(--sqc-selected,#f1f5f9);--w-border:var(--sqc-border,#e2e8f0);--w-border-strong:var(--sqc-border-strong,#cbd5e1);--w-text:var(--sqc-text,#0f172a);--w-muted:var(--sqc-text-muted,#64748b);--w-accent:var(--sqc-accent-color,var(--sqc-accent,#000));--w-on-accent:var(--sqc-on-accent,#fff);--w-accent-hover:var(--sqc-accent-hover,color-mix(in oklab, var(--w-accent) 84%, var(--w-on-accent)));--w-focus:var(--sqc-focus,0 0 0 2px #fff, 0 0 0 4px #0f172a4d);--w-font:var(--sqc-font-family,system-ui, sans-serif);font-family:var(--w-font);display:block}:host([hidden]){display:none}button{color:inherit;font-family:inherit}button:focus-visible{box-shadow:var(--w-focus);outline:none}", rt = [
991
- nt,
1001
+ var tt = ".choices{flex-direction:column;gap:7px;margin:10px 0 2px;display:flex}.choice{text-align:left;width:100%;color:var(--w-text);background:var(--w-bg);border:1px solid var(--w-border);cursor:pointer;border-radius:12px;align-items:center;gap:8px;padding:8px 11px;font-size:12.5px;display:flex}.choice:hover:not(:disabled){border-color:var(--w-border-strong);background:var(--w-surface)}.choice:disabled{cursor:default}.choice:disabled[aria-pressed=false]{opacity:.55}.choice[aria-pressed=true]{border-color:var(--w-border-strong);background:var(--w-selected)}.box{border:1.5px solid var(--w-border-strong);border-radius:4px;flex:none;justify-content:center;align-items:center;width:15px;height:15px;display:inline-flex}.choices:not(:has(.send)) .box{border-radius:50%}.box.on{color:var(--w-on-accent);background:var(--w-accent);border-color:var(--w-accent)}.box svg{width:11px;height:11px}.label{overflow-wrap:anywhere}.send{background:var(--w-accent);height:32px;color:var(--w-on-accent);cursor:pointer;border:0;border-radius:12px;align-self:flex-end;padding:0 14px;font-size:13px;font-weight:600}.send:disabled{opacity:.4;cursor:default}", nt = ".confirm{flex-wrap:wrap;gap:8px;margin:11px 0 2px;display:flex}.confirm button{border:1px solid var(--w-border);background:var(--w-bg);height:32px;color:var(--w-text);cursor:pointer;border-radius:12px;flex:1 1 0;padding:0 12px;font-size:13px;font-weight:500}.confirm .other{flex-basis:100%}.confirm .yes:not(:disabled){background:var(--w-accent);color:var(--w-on-accent);border-color:#0000;font-weight:600}.confirm button:hover:not(:disabled){border-color:var(--w-border-strong);background:var(--w-surface)}.confirm .yes:hover:not(:disabled){background:var(--w-accent-hover);border-color:#0000}.confirm button:disabled{cursor:default}.confirm button:disabled:not([aria-pressed=true]){opacity:.45}.confirm button[aria-pressed=true]{border-color:var(--w-border-strong);background:var(--w-selected);color:var(--w-text);font-weight:600}", rt = ".table{scrollbar-width:thin;margin:0 0 8px;overflow-x:auto}table{border-collapse:collapse;white-space:nowrap;min-width:100%;font-size:12.5px}th,td{text-align:left;vertical-align:top;border-bottom:1px solid color-mix(in srgb, currentColor 18%, transparent);padding:6px 10px 6px 0}thead th{text-transform:uppercase;letter-spacing:.05em;font-size:10.5px;font-weight:600}thead button{font:inherit;text-transform:inherit;letter-spacing:inherit;opacity:.7;cursor:pointer;background:0 0;border:0;padding:0}thead button:hover{opacity:1}tbody tr:last-child td{border-bottom:0}.foot{opacity:.8;align-items:center;gap:10px;font-size:11.5px;display:flex}.copy{border:1px solid var(--w-border);cursor:pointer;background:0 0;border-radius:8px;padding:2px 8px;font-size:11.5px}", it = ":host{--w-bg:var(--sqc-bg,#fff);--w-surface:var(--sqc-surface,#f8fafc);--w-selected:var(--sqc-selected,#f1f5f9);--w-border:var(--sqc-border,#e2e8f0);--w-border-strong:var(--sqc-border-strong,#cbd5e1);--w-text:var(--sqc-text,#0f172a);--w-muted:var(--sqc-text-muted,#64748b);--w-accent:var(--sqc-accent-color,var(--sqc-accent,#000));--w-on-accent:var(--sqc-on-accent,#fff);--w-accent-hover:var(--sqc-accent-hover,color-mix(in oklab, var(--w-accent) 84%, var(--w-on-accent)));--w-focus:var(--sqc-focus,0 0 0 2px #fff, 0 0 0 4px #0f172a4d);--w-font:var(--sqc-font-family,system-ui, sans-serif);font-family:var(--w-font);display:block}:host([hidden]){display:none}button{color:inherit;font-family:inherit}button:focus-visible{box-shadow:var(--w-focus);outline:none}", Q = [
1002
+ it,
1003
+ rt,
992
1004
  tt,
993
- $e,
994
- et
1005
+ nt
995
1006
  ].join("\n");
996
1007
  //#endregion
997
1008
  //#region src/widgets/define.ts
998
- function it() {
1009
+ function at() {
999
1010
  if (typeof customElements > "u") return;
1000
1011
  let e = [
1001
- [X.table, () => Y(Qe, ["table"], rt)],
1002
- [X.choices, () => Y(qe, [
1012
+ [J.table, () => q(et, ["table"], Q)],
1013
+ [J.choices, () => q(Xe, [
1003
1014
  "options",
1004
1015
  "multiple",
1005
1016
  "checked"
1006
- ], rt)],
1007
- [X.confirm, () => Y(Je, [], rt)]
1017
+ ], Q)],
1018
+ [J.confirm, () => q(Ze, [], Q)]
1008
1019
  ];
1009
1020
  for (let [t, n] of e) customElements.get(t) || customElements.define(t, n());
1010
1021
  }
1011
1022
  //#endregion
1012
1023
  //#region src/widgets/approval/name.ts
1013
- var at = /^(?:mcp|custom|a2a)_[0-9a-f]{8}_/;
1014
- function ot(e) {
1015
- let t = e.replace(at, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().toLowerCase();
1024
+ var ot = /^(?:mcp|custom|a2a)_[0-9a-f]{8}_/;
1025
+ function st(e) {
1026
+ let t = e.replace(ot, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().toLowerCase();
1016
1027
  return t ? t.charAt(0).toUpperCase() + t.slice(1) : e;
1017
1028
  }
1018
1029
  //#endregion
1019
1030
  //#region src/widgets/extras-loader.ts
1020
- function st(e) {
1031
+ function ct(e) {
1021
1032
  let t;
1022
1033
  return () => t ?? (t = e().catch((e) => {
1023
1034
  t = void 0, console.warn(e instanceof Error ? e.message : e);
1024
1035
  }));
1025
1036
  }
1026
- var ct = st(() => import("./extras-ClIRRLqo.js").then((e) => e.n).then(({ defineWidgetExtras: e }) => e()));
1037
+ var lt = ct(() => import("./extras-BSCTuiit.js").then((e) => e.n).then(({ defineWidgetExtras: e }) => e()));
1027
1038
  //#endregion
1028
1039
  //#region src/widgets/live.ts
1029
- function lt(e, t) {
1040
+ function ut(e, t) {
1030
1041
  let n = t[e];
1031
1042
  return e === t.length - 1 && n?.role === "assistant" && !n.streaming;
1032
1043
  }
@@ -1036,7 +1047,7 @@ var $ = {
1036
1047
  fr: /\br[ée]ponde?z? +«?\s*oui\b/i,
1037
1048
  en: /\b(?:reply|answer|respond) +[“"']?\s*yes\b/i,
1038
1049
  es: /\bresponda?e?d? +«?\s*s[íi](?!\p{L})/iu
1039
- }, ut = {
1050
+ }, dt = {
1040
1051
  fr: [
1041
1052
  /\b(?:confirmes?[- ]tu|confirmez[- ]vous)\b/i,
1042
1053
  /\b(?:valides?[- ]tu|validez[- ]vous)\b/i,
@@ -1061,39 +1072,39 @@ var $ = {
1061
1072
  /\bquieres? que\b/i,
1062
1073
  $.es
1063
1074
  ]
1064
- }, dt = /^\s*(?:[-*•]\s+)?(?:\[[ xX]\]|\([ xX]\))\s+/m, ft = /[ \t]*\(\s*(?:yes|oui|s[íi])\s*\/\s*non?\s*\)\s*$/i;
1065
- function pt(e) {
1066
- return e.replace(ft, "");
1075
+ }, ft = /^\s*(?:[-*•]\s+)?(?:\[[ xX]\]|\([ xX]\))\s+/m, pt = /[ \t]*\(\s*(?:yes|oui|s[íi])\s*\/\s*non?\s*\)\s*$/i;
1076
+ function mt(e) {
1077
+ return e.replace(pt, "");
1067
1078
  }
1068
- function mt(e, t = "en") {
1069
- if (dt.test(e)) return !1;
1079
+ function ht(e, t = "en") {
1080
+ if (ft.test(e)) return !1;
1070
1081
  let n = e.split("\n").map((e) => e.trim()).filter(Boolean), r = n[n.length - 1];
1071
- return r ? ft.test(r) ? !0 : !r.includes("?") && !$[t].test(r) ? !1 : ut[t].some((e) => e.test(r)) : !1;
1082
+ return r ? pt.test(r) ? !0 : !r.includes("?") && !$[t].test(r) ? !1 : dt[t].some((e) => e.test(r)) : !1;
1072
1083
  }
1073
- var ht = [
1084
+ var gt = [
1074
1085
  "text",
1075
1086
  "number",
1076
1087
  "date",
1077
1088
  "email",
1078
1089
  "select"
1079
1090
  ];
1080
- function gt(e) {
1091
+ function _t(e) {
1081
1092
  try {
1082
1093
  return JSON.parse(e);
1083
1094
  } catch {
1084
1095
  return null;
1085
1096
  }
1086
1097
  }
1087
- function _t(e) {
1098
+ function vt(e) {
1088
1099
  return typeof e == "object" && !!e && !Array.isArray(e);
1089
1100
  }
1090
- function vt(e) {
1101
+ function yt(e) {
1091
1102
  return !Array.isArray(e) || e.length === 0 || e.length > 20 || !e.every((e) => typeof e == "string" && e.trim()) ? null : e;
1092
1103
  }
1093
- function yt(e) {
1094
- if (!_t(e)) return null;
1104
+ function bt(e) {
1105
+ if (!vt(e)) return null;
1095
1106
  let { name: t, label: n, type: r } = e;
1096
- if (typeof t != "string" || !t.trim() || typeof n != "string" || !n.trim() || typeof r != "string" || !ht.includes(r)) return null;
1107
+ if (typeof t != "string" || !t.trim() || typeof n != "string" || !n.trim() || typeof r != "string" || !gt.includes(r)) return null;
1097
1108
  let i = {
1098
1109
  name: t,
1099
1110
  label: n,
@@ -1101,18 +1112,18 @@ function yt(e) {
1101
1112
  required: e.required === !0
1102
1113
  };
1103
1114
  if (r === "select") {
1104
- let t = vt(e.options);
1115
+ let t = yt(e.options);
1105
1116
  if (!t) return null;
1106
1117
  i.options = t;
1107
1118
  }
1108
1119
  return i;
1109
1120
  }
1110
- function bt(e) {
1111
- let t = gt(e);
1112
- if (!_t(t) || !Array.isArray(t.fields) || t.fields.length === 0 || t.fields.length > 12) return null;
1121
+ function xt(e) {
1122
+ let t = _t(e);
1123
+ if (!vt(t) || !Array.isArray(t.fields) || t.fields.length === 0 || t.fields.length > 12) return null;
1113
1124
  let n = [];
1114
1125
  for (let e of t.fields) {
1115
- let t = yt(e);
1126
+ let t = bt(e);
1116
1127
  if (!t || n.some((e) => e.name === t.name)) return null;
1117
1128
  n.push(t);
1118
1129
  }
@@ -1121,12 +1132,12 @@ function bt(e) {
1121
1132
  }
1122
1133
  //#endregion
1123
1134
  //#region src/widgets/parse/answer.ts
1124
- var xt = /^\s*(?:[-*•]\s+)?(?:\[([ xX])\]|\(([ xX])\))\s+(.+)$/, St = /^\s*\|.*\|\s*$/, Ct = /^\s*\|(?:\s*:?-{1,}:?\s*\|)+\s*$/, wt = /^\s*```/;
1125
- function Tt(e) {
1135
+ var St = /^\s*(?:[-*•]\s+)?(?:\[([ xX])\]|\(([ xX])\))\s+(.+)$/, Ct = /^\s*\|.*\|\s*$/, wt = /^\s*\|(?:\s*:?-{1,}:?\s*\|)+\s*$/, Tt = /^\s*```/;
1136
+ function Et(e) {
1126
1137
  return e.replace(/^\s*\|/, "").replace(/\|\s*$/, "").split("|").map((e) => e.trim());
1127
1138
  }
1128
- function Et(e, t, n = !0) {
1129
- let r = n && mt(e, t), i = (r ? pt(e) : e).split("\n"), a = [], o = [], s = () => {
1139
+ function Dt(e, t, n = !0) {
1140
+ let r = n && ht(e, t), i = (r ? mt(e) : e).split("\n"), a = [], o = [], s = () => {
1130
1141
  let e = o.join("\n").replace(/^\n+|\n+$/g, "");
1131
1142
  e.trim() && a.push({
1132
1143
  kind: "markdown",
@@ -1135,12 +1146,12 @@ function Et(e, t, n = !0) {
1135
1146
  };
1136
1147
  for (let e = 0; e < i.length; e += 1) {
1137
1148
  let t = i[e];
1138
- if (wt.test(t)) {
1149
+ if (Tt.test(t)) {
1139
1150
  let n = e + 1;
1140
- for (; n < i.length && !wt.test(i[n]);) n += 1;
1151
+ for (; n < i.length && !Tt.test(i[n]);) n += 1;
1141
1152
  let r = n < i.length, c = t.replace(/^\s*```/, "").trim().toLowerCase(), l = i.slice(e + 1, n).join("\n"), u = null;
1142
1153
  if (r && c === "form") {
1143
- let e = bt(l);
1154
+ let e = xt(l);
1144
1155
  e && (u = {
1145
1156
  kind: "form",
1146
1157
  form: e
@@ -1149,10 +1160,10 @@ function Et(e, t, n = !0) {
1149
1160
  u ? (s(), a.push(u)) : o.push(...i.slice(e, r ? n + 1 : n)), e = r ? n : n - 1;
1150
1161
  continue;
1151
1162
  }
1152
- if (St.test(t) && e + 1 < i.length && Ct.test(i[e + 1])) {
1163
+ if (Ct.test(t) && e + 1 < i.length && wt.test(i[e + 1])) {
1153
1164
  s();
1154
- let n = Tt(t), r = [];
1155
- for (e += 2; e < i.length && St.test(i[e]);) r.push(Tt(i[e])), e += 1;
1165
+ let n = Et(t), r = [];
1166
+ for (e += 2; e < i.length && Ct.test(i[e]);) r.push(Et(i[e])), e += 1;
1156
1167
  --e, a.push({
1157
1168
  kind: "table",
1158
1169
  header: n,
@@ -1160,12 +1171,12 @@ function Et(e, t, n = !0) {
1160
1171
  });
1161
1172
  continue;
1162
1173
  }
1163
- let n = xt.exec(t);
1174
+ let n = St.exec(t);
1164
1175
  if (n) {
1165
1176
  let t = n[1] !== void 0, r = [], c = [], l = e, u = n;
1166
1177
  for (; u && u[1] !== void 0 === t;) {
1167
1178
  let e = u[3].trim();
1168
- r.push(e), (u[1] ?? u[2]) !== " " && (t || !c.length) && c.push(e), l += 1, u = l < i.length ? xt.exec(i[l]) : null;
1179
+ r.push(e), (u[1] ?? u[2]) !== " " && (t || !c.length) && c.push(e), l += 1, u = l < i.length ? St.exec(i[l]) : null;
1169
1180
  }
1170
1181
  if (r.length > 20) o.push(...i.slice(e, l));
1171
1182
  else {
@@ -1188,6 +1199,6 @@ function Et(e, t, n = !0) {
1188
1199
  };
1189
1200
  }
1190
1201
  //#endregion
1191
- export { V as C, S as D, P as E, be as S, Se as T, ke as _, it as a, xe as b, Z as c, J as d, q as f, W as g, Re as h, ot as i, X as l, G as m, lt as n, nt as o, K as p, ct as r, Q as s, Et as t, Y as u, Ae as v, ye as w, H as x, Fe as y };
1202
+ export { z as C, S as D, ue as E, Se as S, we as T, je as _, at as a, Ce as b, Y as c, K as d, G as f, H as g, Be as h, st as i, J as l, U as m, ut as n, it as o, W as p, lt as r, X as s, Dt as t, q as u, Me as v, xe as w, B as x, Le as y };
1192
1203
 
1193
- //# sourceMappingURL=answer-CDGrP8YE.js.map
1204
+ //# sourceMappingURL=answer-BDuY6oLY.js.map