@ibiz-template-plugin/ai-chat 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import './style.css';
2
- var vi = Object.defineProperty;
3
- var mi = (i, e, t) => e in i ? vi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
4
- var w = (i, e, t) => (mi(i, typeof e != "symbol" ? e + "" : e, t), t);
2
+ var mi = Object.defineProperty;
3
+ var gi = (i, e, t) => e in i ? mi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
4
+ var C = (i, e, t) => (gi(i, typeof e != "symbol" ? e + "" : e, t), t);
5
5
  import He from "interactjs";
6
- import gi from "cherry-markdown";
7
- var $e, g, Bt, Rt, J, nt, Pt, qe, Ft, ie = {}, Ut = [], bi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Me = Array.isArray;
6
+ import bi from "cherry-markdown";
7
+ var $e, g, Pt, Rt, Q, st, Ft, je, Ut, se = {}, Wt = [], yi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Me = Array.isArray;
8
8
  function q(i, e) {
9
9
  for (var t in e)
10
10
  i[t] = e[t];
11
11
  return i;
12
12
  }
13
- function Wt(i) {
13
+ function Vt(i) {
14
14
  var e = i.parentNode;
15
15
  e && e.removeChild(i);
16
16
  }
17
- function I(i, e, t) {
17
+ function P(i, e, t) {
18
18
  var n, s, o, r = {};
19
19
  for (o in e)
20
20
  o == "key" ? n = e[o] : o == "ref" ? s = e[o] : r[o] = e[o];
@@ -24,16 +24,16 @@ function I(i, e, t) {
24
24
  return we(i, r, n, s, null);
25
25
  }
26
26
  function we(i, e, t, n, s) {
27
- var o = { type: i, props: e, key: t, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: s == null ? ++Bt : s };
27
+ var o = { type: i, props: e, key: t, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: s == null ? ++Pt : s };
28
28
  return s == null && g.vnode != null && g.vnode(o), o;
29
29
  }
30
30
  function Le() {
31
31
  return { current: null };
32
32
  }
33
- function se(i) {
33
+ function R(i) {
34
34
  return i.children;
35
35
  }
36
- function H(i, e) {
36
+ function z(i, e) {
37
37
  this.props = i, this.context = e;
38
38
  }
39
39
  function pe(i, e) {
@@ -44,7 +44,7 @@ function pe(i, e) {
44
44
  return t.__d || t.__e;
45
45
  return typeof i.type == "function" ? pe(i) : null;
46
46
  }
47
- function Vt(i) {
47
+ function jt(i) {
48
48
  var e, t;
49
49
  if ((i = i.__) != null && i.__c != null) {
50
50
  for (i.__e = i.__c.base = null, e = 0; e < i.__k.length; e++)
@@ -52,28 +52,28 @@ function Vt(i) {
52
52
  i.__e = i.__c.base = t.__e;
53
53
  break;
54
54
  }
55
- return Vt(i);
55
+ return jt(i);
56
56
  }
57
57
  }
58
- function je(i) {
59
- (!i.__d && (i.__d = !0) && J.push(i) && !xe.__r++ || nt !== g.debounceRendering) && ((nt = g.debounceRendering) || Pt)(xe);
58
+ function qe(i) {
59
+ (!i.__d && (i.__d = !0) && Q.push(i) && !xe.__r++ || st !== g.debounceRendering) && ((st = g.debounceRendering) || Ft)(xe);
60
60
  }
61
61
  function xe() {
62
62
  var i, e, t, n, s, o, r, a, u;
63
- for (J.sort(qe); i = J.shift(); )
64
- i.__d && (e = J.length, n = void 0, s = void 0, o = void 0, a = (r = (t = i).__v).__e, (u = t.__P) && (n = [], s = [], (o = q({}, r)).__v = r.__v + 1, Je(u, r, o, t.__n, u.ownerSVGElement !== void 0, r.__h != null ? [a] : null, n, a == null ? pe(r) : a, r.__h, s), Xt(n, r, s), r.__e != a && Vt(r)), J.length > e && J.sort(qe));
63
+ for (Q.sort(je); i = Q.shift(); )
64
+ i.__d && (e = Q.length, n = void 0, s = void 0, o = void 0, a = (r = (t = i).__v).__e, (u = t.__P) && (n = [], s = [], (o = q({}, r)).__v = r.__v + 1, Je(u, r, o, t.__n, u.ownerSVGElement !== void 0, r.__h != null ? [a] : null, n, a == null ? pe(r) : a, r.__h, s), Zt(n, r, s), r.__e != a && jt(r)), Q.length > e && Q.sort(je));
65
65
  xe.__r = 0;
66
66
  }
67
67
  function qt(i, e, t, n, s, o, r, a, u, h, d) {
68
- var c, p, m, f, v, _, y, C, E, T = 0, k = n && n.__k || Ut, F = k.length, D = F, U = e.length;
69
- for (t.__k = [], c = 0; c < U; c++)
70
- (f = t.__k[c] = (f = e[c]) == null || typeof f == "boolean" || typeof f == "function" ? null : typeof f == "string" || typeof f == "number" || typeof f == "bigint" ? we(null, f, null, null, f) : Me(f) ? we(se, { children: f }, null, null, null) : f.__b > 0 ? we(f.type, f.props, f.key, f.ref ? f.ref : null, f.__v) : f) != null ? (f.__ = t, f.__b = t.__b + 1, (C = yi(f, k, y = c + T, D)) === -1 ? m = ie : (m = k[C] || ie, k[C] = void 0, D--), Je(i, f, m, s, o, r, a, u, h, d), v = f.__e, (p = f.ref) && m.ref != p && (m.ref && Ke(m.ref, null, f), d.push(p, f.__c || v, f)), v != null && (_ == null && (_ = v), (E = m === ie || m.__v === null) ? C == -1 && T-- : C !== y && (C === y + 1 ? T++ : C > y ? D > U - y ? T += C - y : T-- : T = C < y && C == y - 1 ? C - y : 0), y = c + T, typeof f.type != "function" || C === y && m.__k !== f.__k ? typeof f.type == "function" || C === y && !E ? f.__d !== void 0 ? (u = f.__d, f.__d = void 0) : u = v.nextSibling : u = Yt(i, v, u) : u = jt(f, u, i), typeof t.type == "function" && (t.__d = u))) : (m = k[c]) && m.key == null && m.__e && (m.__e == u && (m.__ = n, u = pe(m)), Ye(m, m, !1), k[c] = null);
71
- for (t.__e = _, c = F; c--; )
72
- k[c] != null && (typeof t.type == "function" && k[c].__e != null && k[c].__e == t.__d && (t.__d = k[c].__e.nextSibling), Ye(k[c], k[c]));
68
+ var l, _, m, f, v, p, y, w, x, T = 0, S = n && n.__k || Wt, U = S.length, I = U, W = e.length;
69
+ for (t.__k = [], l = 0; l < W; l++)
70
+ (f = t.__k[l] = (f = e[l]) == null || typeof f == "boolean" || typeof f == "function" ? null : typeof f == "string" || typeof f == "number" || typeof f == "bigint" ? we(null, f, null, null, f) : Me(f) ? we(R, { children: f }, null, null, null) : f.__b > 0 ? we(f.type, f.props, f.key, f.ref ? f.ref : null, f.__v) : f) != null ? (f.__ = t, f.__b = t.__b + 1, (w = wi(f, S, y = l + T, I)) === -1 ? m = se : (m = S[w] || se, S[w] = void 0, I--), Je(i, f, m, s, o, r, a, u, h, d), v = f.__e, (_ = f.ref) && m.ref != _ && (m.ref && Ke(m.ref, null, f), d.push(_, f.__c || v, f)), v != null && (p == null && (p = v), (x = m === se || m.__v === null) ? w == -1 && T-- : w !== y && (w === y + 1 ? T++ : w > y ? I > W - y ? T += w - y : T-- : T = w < y && w == y - 1 ? w - y : 0), y = l + T, typeof f.type != "function" || w === y && m.__k !== f.__k ? typeof f.type == "function" || w === y && !x ? f.__d !== void 0 ? (u = f.__d, f.__d = void 0) : u = v.nextSibling : u = Xt(i, v, u) : u = Yt(f, u, i), typeof t.type == "function" && (t.__d = u))) : (m = S[l]) && m.key == null && m.__e && (m.__e == u && (m.__ = n, u = pe(m)), Ye(m, m, !1), S[l] = null);
71
+ for (t.__e = p, l = U; l--; )
72
+ S[l] != null && (typeof t.type == "function" && S[l].__e != null && S[l].__e == t.__d && (t.__d = S[l].__e.nextSibling), Ye(S[l], S[l]));
73
73
  }
74
- function jt(i, e, t) {
74
+ function Yt(i, e, t) {
75
75
  for (var n, s = i.__k, o = 0; s && o < s.length; o++)
76
- (n = s[o]) && (n.__ = i, e = typeof n.type == "function" ? jt(n, e, t) : Yt(t, n.__e, e));
76
+ (n = s[o]) && (n.__ = i, e = typeof n.type == "function" ? Yt(n, e, t) : Xt(t, n.__e, e));
77
77
  return e;
78
78
  }
79
79
  function Se(i, e) {
@@ -81,10 +81,10 @@ function Se(i, e) {
81
81
  Se(t, e);
82
82
  }) : e.push(i)), e;
83
83
  }
84
- function Yt(i, e, t) {
84
+ function Xt(i, e, t) {
85
85
  return t == null || t.parentNode !== i ? i.insertBefore(e, null) : e == t && e.parentNode != null || i.insertBefore(e, t), e.nextSibling;
86
86
  }
87
- function yi(i, e, t, n) {
87
+ function wi(i, e, t, n) {
88
88
  var s = i.key, o = i.type, r = t - 1, a = t + 1, u = e[t];
89
89
  if (u === null || u && s == u.key && o === u.type)
90
90
  return t;
@@ -103,15 +103,15 @@ function yi(i, e, t, n) {
103
103
  }
104
104
  return -1;
105
105
  }
106
- function wi(i, e, t, n, s) {
106
+ function Ci(i, e, t, n, s) {
107
107
  var o;
108
108
  for (o in t)
109
109
  o === "children" || o === "key" || o in e || ke(i, o, null, t[o], n);
110
110
  for (o in e)
111
111
  s && typeof e[o] != "function" || o === "children" || o === "key" || o === "value" || o === "checked" || t[o] === e[o] || ke(i, o, e[o], t[o], n);
112
112
  }
113
- function st(i, e, t) {
114
- e[0] === "-" ? i.setProperty(e, t == null ? "" : t) : i[e] = t == null ? "" : typeof t != "number" || bi.test(e) ? t : t + "px";
113
+ function ot(i, e, t) {
114
+ e[0] === "-" ? i.setProperty(e, t == null ? "" : t) : i[e] = t == null ? "" : typeof t != "number" || yi.test(e) ? t : t + "px";
115
115
  }
116
116
  function ke(i, e, t, n, s) {
117
117
  var o;
@@ -122,13 +122,13 @@ function ke(i, e, t, n, s) {
122
122
  else {
123
123
  if (typeof n == "string" && (i.style.cssText = n = ""), n)
124
124
  for (e in n)
125
- t && e in t || st(i.style, e, "");
125
+ t && e in t || ot(i.style, e, "");
126
126
  if (t)
127
127
  for (e in t)
128
- n && t[e] === n[e] || st(i.style, e, t[e]);
128
+ n && t[e] === n[e] || ot(i.style, e, t[e]);
129
129
  }
130
130
  else if (e[0] === "o" && e[1] === "n")
131
- o = e !== (e = e.replace(/(PointerCapture)$|Capture$/, "$1")), e = e.toLowerCase() in i ? e.toLowerCase().slice(2) : e.slice(2), i.l || (i.l = {}), i.l[e + o] = t, t ? n ? t.u = n.u : (t.u = Date.now(), i.addEventListener(e, o ? rt : ot, o)) : i.removeEventListener(e, o ? rt : ot, o);
131
+ o = e !== (e = e.replace(/(PointerCapture)$|Capture$/, "$1")), e = e.toLowerCase() in i ? e.toLowerCase().slice(2) : e.slice(2), i.l || (i.l = {}), i.l[e + o] = t, t ? n ? t.u = n.u : (t.u = Date.now(), i.addEventListener(e, o ? at : rt, o)) : i.removeEventListener(e, o ? at : rt, o);
132
132
  else if (e !== "dangerouslySetInnerHTML") {
133
133
  if (s)
134
134
  e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
@@ -141,7 +141,7 @@ function ke(i, e, t, n, s) {
141
141
  typeof t == "function" || (t == null || t === !1 && e[4] !== "-" ? i.removeAttribute(e) : i.setAttribute(e, t));
142
142
  }
143
143
  }
144
- function ot(i) {
144
+ function rt(i) {
145
145
  var e = this.l[i.type + !1];
146
146
  if (i.t) {
147
147
  if (i.t <= e.u)
@@ -150,49 +150,49 @@ function ot(i) {
150
150
  i.t = Date.now();
151
151
  return e(g.event ? g.event(i) : i);
152
152
  }
153
- function rt(i) {
153
+ function at(i) {
154
154
  return this.l[i.type + !0](g.event ? g.event(i) : i);
155
155
  }
156
156
  function Je(i, e, t, n, s, o, r, a, u, h) {
157
- var d, c, p, m, f, v, _, y, C, E, T, k, F, D, U, z = e.type;
157
+ var d, l, _, m, f, v, p, y, w, x, T, S, U, I, W, D = e.type;
158
158
  if (e.constructor !== void 0)
159
159
  return null;
160
160
  t.__h != null && (u = t.__h, a = e.__e = t.__e, e.__h = null, o = [a]), (d = g.__b) && d(e);
161
161
  e:
162
- if (typeof z == "function")
162
+ if (typeof D == "function")
163
163
  try {
164
- if (y = e.props, C = (d = z.contextType) && n[d.__c], E = d ? C ? C.props.value : d.__ : n, t.__c ? _ = (c = e.__c = t.__c).__ = c.__E : ("prototype" in z && z.prototype.render ? e.__c = c = new z(y, E) : (e.__c = c = new H(y, E), c.constructor = z, c.render = Ti), C && C.sub(c), c.props = y, c.state || (c.state = {}), c.context = E, c.__n = n, p = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), z.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = q({}, c.__s)), q(c.__s, z.getDerivedStateFromProps(y, c.__s))), m = c.props, f = c.state, c.__v = e, p)
165
- z.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
164
+ if (y = e.props, w = (d = D.contextType) && n[d.__c], x = d ? w ? w.props.value : d.__ : n, t.__c ? p = (l = e.__c = t.__c).__ = l.__E : ("prototype" in D && D.prototype.render ? e.__c = l = new D(y, x) : (e.__c = l = new z(y, x), l.constructor = D, l.render = xi), w && w.sub(l), l.props = y, l.state || (l.state = {}), l.context = x, l.__n = n, _ = l.__d = !0, l.__h = [], l._sb = []), l.__s == null && (l.__s = l.state), D.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = q({}, l.__s)), q(l.__s, D.getDerivedStateFromProps(y, l.__s))), m = l.props, f = l.state, l.__v = e, _)
165
+ D.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), l.componentDidMount != null && l.__h.push(l.componentDidMount);
166
166
  else {
167
- if (z.getDerivedStateFromProps == null && y !== m && c.componentWillReceiveProps != null && c.componentWillReceiveProps(y, E), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(y, c.__s, E) === !1 || e.__v === t.__v)) {
168
- for (e.__v !== t.__v && (c.props = y, c.state = c.__s, c.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(me) {
167
+ if (D.getDerivedStateFromProps == null && y !== m && l.componentWillReceiveProps != null && l.componentWillReceiveProps(y, x), !l.__e && (l.shouldComponentUpdate != null && l.shouldComponentUpdate(y, l.__s, x) === !1 || e.__v === t.__v)) {
168
+ for (e.__v !== t.__v && (l.props = y, l.state = l.__s, l.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(me) {
169
169
  me && (me.__ = e);
170
- }), T = 0; T < c._sb.length; T++)
171
- c.__h.push(c._sb[T]);
172
- c._sb = [], c.__h.length && r.push(c);
170
+ }), T = 0; T < l._sb.length; T++)
171
+ l.__h.push(l._sb[T]);
172
+ l._sb = [], l.__h.length && r.push(l);
173
173
  break e;
174
174
  }
175
- c.componentWillUpdate != null && c.componentWillUpdate(y, c.__s, E), c.componentDidUpdate != null && c.__h.push(function() {
176
- c.componentDidUpdate(m, f, v);
175
+ l.componentWillUpdate != null && l.componentWillUpdate(y, l.__s, x), l.componentDidUpdate != null && l.__h.push(function() {
176
+ l.componentDidUpdate(m, f, v);
177
177
  });
178
178
  }
179
- if (c.context = E, c.props = y, c.__P = i, c.__e = !1, k = g.__r, F = 0, "prototype" in z && z.prototype.render) {
180
- for (c.state = c.__s, c.__d = !1, k && k(e), d = c.render(c.props, c.state, c.context), D = 0; D < c._sb.length; D++)
181
- c.__h.push(c._sb[D]);
182
- c._sb = [];
179
+ if (l.context = x, l.props = y, l.__P = i, l.__e = !1, S = g.__r, U = 0, "prototype" in D && D.prototype.render) {
180
+ for (l.state = l.__s, l.__d = !1, S && S(e), d = l.render(l.props, l.state, l.context), I = 0; I < l._sb.length; I++)
181
+ l.__h.push(l._sb[I]);
182
+ l._sb = [];
183
183
  } else
184
184
  do
185
- c.__d = !1, k && k(e), d = c.render(c.props, c.state, c.context), c.state = c.__s;
186
- while (c.__d && ++F < 25);
187
- c.state = c.__s, c.getChildContext != null && (n = q(q({}, n), c.getChildContext())), p || c.getSnapshotBeforeUpdate == null || (v = c.getSnapshotBeforeUpdate(m, f)), qt(i, Me(U = d != null && d.type === se && d.key == null ? d.props.children : d) ? U : [U], e, t, n, s, o, r, a, u, h), c.base = e.__e, e.__h = null, c.__h.length && r.push(c), _ && (c.__E = c.__ = null);
185
+ l.__d = !1, S && S(e), d = l.render(l.props, l.state, l.context), l.state = l.__s;
186
+ while (l.__d && ++U < 25);
187
+ l.state = l.__s, l.getChildContext != null && (n = q(q({}, n), l.getChildContext())), _ || l.getSnapshotBeforeUpdate == null || (v = l.getSnapshotBeforeUpdate(m, f)), qt(i, Me(W = d != null && d.type === R && d.key == null ? d.props.children : d) ? W : [W], e, t, n, s, o, r, a, u, h), l.base = e.__e, e.__h = null, l.__h.length && r.push(l), p && (l.__E = l.__ = null);
188
188
  } catch (me) {
189
189
  e.__v = null, (u || o != null) && (e.__e = a, e.__h = !!u, o[o.indexOf(a)] = null), g.__e(me, e, t);
190
190
  }
191
191
  else
192
- o == null && e.__v === t.__v ? (e.__k = t.__k, e.__e = t.__e) : e.__e = Ci(t.__e, e, t, n, s, o, r, u, h);
192
+ o == null && e.__v === t.__v ? (e.__k = t.__k, e.__e = t.__e) : e.__e = Ti(t.__e, e, t, n, s, o, r, u, h);
193
193
  (d = g.diffed) && d(e);
194
194
  }
195
- function Xt(i, e, t) {
195
+ function Zt(i, e, t) {
196
196
  for (var n = 0; n < t.length; n++)
197
197
  Ke(t[n], t[++n], t[++n]);
198
198
  g.__c && g.__c(e, i), i.some(function(s) {
@@ -205,8 +205,8 @@ function Xt(i, e, t) {
205
205
  }
206
206
  });
207
207
  }
208
- function Ci(i, e, t, n, s, o, r, a, u) {
209
- var h, d, c, p = t.props, m = e.props, f = e.type, v = 0;
208
+ function Ti(i, e, t, n, s, o, r, a, u) {
209
+ var h, d, l, _ = t.props, m = e.props, f = e.type, v = 0;
210
210
  if (f === "svg" && (s = !0), o != null) {
211
211
  for (; v < o.length; v++)
212
212
  if ((h = o[v]) && "setAttribute" in h == !!f && (f ? h.localName === f : h.nodeType === 3)) {
@@ -220,20 +220,20 @@ function Ci(i, e, t, n, s, o, r, a, u) {
220
220
  i = s ? document.createElementNS("http://www.w3.org/2000/svg", f) : document.createElement(f, m.is && m), o = null, a = !1;
221
221
  }
222
222
  if (f === null)
223
- p === m || a && i.data === m || (i.data = m);
223
+ _ === m || a && i.data === m || (i.data = m);
224
224
  else {
225
- if (o = o && $e.call(i.childNodes), d = (p = t.props || ie).dangerouslySetInnerHTML, c = m.dangerouslySetInnerHTML, !a) {
225
+ if (o = o && $e.call(i.childNodes), d = (_ = t.props || se).dangerouslySetInnerHTML, l = m.dangerouslySetInnerHTML, !a) {
226
226
  if (o != null)
227
- for (p = {}, v = 0; v < i.attributes.length; v++)
228
- p[i.attributes[v].name] = i.attributes[v].value;
229
- (c || d) && (c && (d && c.__html == d.__html || c.__html === i.innerHTML) || (i.innerHTML = c && c.__html || ""));
227
+ for (_ = {}, v = 0; v < i.attributes.length; v++)
228
+ _[i.attributes[v].name] = i.attributes[v].value;
229
+ (l || d) && (l && (d && l.__html == d.__html || l.__html === i.innerHTML) || (i.innerHTML = l && l.__html || ""));
230
230
  }
231
- if (wi(i, m, p, s, a), c)
231
+ if (Ci(i, m, _, s, a), l)
232
232
  e.__k = [];
233
233
  else if (qt(i, Me(v = e.props.children) ? v : [v], e, t, n, s && f !== "foreignObject", o, r, o ? o[0] : t.__k && pe(t, 0), a, u), o != null)
234
234
  for (v = o.length; v--; )
235
- o[v] != null && Wt(o[v]);
236
- a || ("value" in m && (v = m.value) !== void 0 && (v !== i.value || f === "progress" && !v || f === "option" && v !== p.value) && ke(i, "value", v, p.value, !1), "checked" in m && (v = m.checked) !== void 0 && v !== i.checked && ke(i, "checked", v, p.checked, !1));
235
+ o[v] != null && Vt(o[v]);
236
+ a || ("value" in m && (v = m.value) !== void 0 && (v !== i.value || f === "progress" && !v || f === "option" && v !== _.value) && ke(i, "value", v, _.value, !1), "checked" in m && (v = m.checked) !== void 0 && v !== i.checked && ke(i, "checked", v, _.checked, !1));
237
237
  }
238
238
  return i;
239
239
  }
@@ -258,17 +258,17 @@ function Ye(i, e, t) {
258
258
  if (n = i.__k)
259
259
  for (s = 0; s < n.length; s++)
260
260
  n[s] && Ye(n[s], e, t || typeof i.type != "function");
261
- t || i.__e == null || Wt(i.__e), i.__ = i.__e = i.__d = void 0;
261
+ t || i.__e == null || Vt(i.__e), i.__ = i.__e = i.__d = void 0;
262
262
  }
263
- function Ti(i, e, t) {
263
+ function xi(i, e, t) {
264
264
  return this.constructor(i, t);
265
265
  }
266
- function te(i, e, t) {
266
+ function ne(i, e, t) {
267
267
  var n, s, o, r;
268
- g.__ && g.__(i, e), s = (n = typeof t == "function") ? null : t && t.__k || e.__k, o = [], r = [], Je(e, i = (!n && t || e).__k = I(se, null, [i]), s || ie, ie, e.ownerSVGElement !== void 0, !n && t ? [t] : s ? null : e.firstChild ? $e.call(e.childNodes) : null, o, !n && t ? t : s ? s.__e : e.firstChild, n, r), Xt(o, i, r);
268
+ g.__ && g.__(i, e), s = (n = typeof t == "function") ? null : t && t.__k || e.__k, o = [], r = [], Je(e, i = (!n && t || e).__k = P(R, null, [i]), s || se, se, e.ownerSVGElement !== void 0, !n && t ? [t] : s ? null : e.firstChild ? $e.call(e.childNodes) : null, o, !n && t ? t : s ? s.__e : e.firstChild, n, r), Zt(o, i, r);
269
269
  }
270
- function xi(i, e) {
271
- var t = { __c: e = "__cC" + Ft++, __: i, Consumer: function(n, s) {
270
+ function Si(i, e) {
271
+ var t = { __c: e = "__cC" + Ut++, __: i, Consumer: function(n, s) {
272
272
  return n.children(s);
273
273
  }, Provider: function(n) {
274
274
  var s, o;
@@ -276,7 +276,7 @@ function xi(i, e) {
276
276
  return o;
277
277
  }, this.shouldComponentUpdate = function(r) {
278
278
  this.props.value !== r.value && s.some(function(a) {
279
- a.__e = !0, je(a);
279
+ a.__e = !0, qe(a);
280
280
  });
281
281
  }, this.sub = function(r) {
282
282
  s.push(r);
@@ -288,7 +288,7 @@ function xi(i, e) {
288
288
  } };
289
289
  return t.Provider.__ = t.Consumer.contextType = t;
290
290
  }
291
- $e = Ut.slice, g = { __e: function(i, e, t, n) {
291
+ $e = Wt.slice, g = { __e: function(i, e, t, n) {
292
292
  for (var s, o, r; e = e.__; )
293
293
  if ((s = e.__c) && !s.__)
294
294
  try {
@@ -298,18 +298,18 @@ $e = Ut.slice, g = { __e: function(i, e, t, n) {
298
298
  i = a;
299
299
  }
300
300
  throw i;
301
- } }, Bt = 0, Rt = function(i) {
301
+ } }, Pt = 0, Rt = function(i) {
302
302
  return i != null && i.constructor === void 0;
303
- }, H.prototype.setState = function(i, e) {
303
+ }, z.prototype.setState = function(i, e) {
304
304
  var t;
305
- t = this.__s != null && this.__s !== this.state ? this.__s : this.__s = q({}, this.state), typeof i == "function" && (i = i(q({}, t), this.props)), i && q(t, i), i != null && this.__v && (e && this._sb.push(e), je(this));
306
- }, H.prototype.forceUpdate = function(i) {
307
- this.__v && (this.__e = !0, i && this.__h.push(i), je(this));
308
- }, H.prototype.render = se, J = [], Pt = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, qe = function(i, e) {
305
+ t = this.__s != null && this.__s !== this.state ? this.__s : this.__s = q({}, this.state), typeof i == "function" && (i = i(q({}, t), this.props)), i && q(t, i), i != null && this.__v && (e && this._sb.push(e), qe(this));
306
+ }, z.prototype.forceUpdate = function(i) {
307
+ this.__v && (this.__e = !0, i && this.__h.push(i), qe(this));
308
+ }, z.prototype.render = R, Q = [], Ft = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, je = function(i, e) {
309
309
  return i.__v.__b - e.__v.__b;
310
- }, xe.__r = 0, Ft = 0;
311
- const Si = "ibiz", ki = "is-";
312
- function Z(i, e, t, n, s) {
310
+ }, xe.__r = 0, Ut = 0;
311
+ const ki = "ibiz", Ei = "is-";
312
+ function J(i, e, t, n, s) {
313
313
  let o = "".concat(i, "-").concat(e);
314
314
  return t && (o += "-".concat(t)), n && (o += "__".concat(n)), s && (o += "--".concat(s)), o;
315
315
  }
@@ -330,8 +330,8 @@ class $ {
330
330
  * @date 2023-11-03 10:11:31
331
331
  * @type {string}
332
332
  */
333
- w(this, "namespace");
334
- this.block = e, this.namespace = t || Si;
333
+ C(this, "namespace");
334
+ this.block = e, this.namespace = t || ki;
335
335
  }
336
336
  /**
337
337
  * namespace-block
@@ -343,7 +343,7 @@ class $ {
343
343
  * @return {*} {string}
344
344
  */
345
345
  b(e = "") {
346
- return Z(this.namespace, this.block, e, "", "");
346
+ return J(this.namespace, this.block, e, "", "");
347
347
  }
348
348
  /**
349
349
  * namespace-block__element
@@ -354,7 +354,7 @@ class $ {
354
354
  * @return {*} {string}
355
355
  */
356
356
  e(e) {
357
- return e ? Z(this.namespace, this.block, "", e, "") : "";
357
+ return e ? J(this.namespace, this.block, "", e, "") : "";
358
358
  }
359
359
  /**
360
360
  * namespace-block--modifier
@@ -365,7 +365,7 @@ class $ {
365
365
  * @return {*} {string}
366
366
  */
367
367
  m(e) {
368
- return e ? Z(this.namespace, this.block, "", "", e) : "";
368
+ return e ? J(this.namespace, this.block, "", "", e) : "";
369
369
  }
370
370
  /**
371
371
  * namespace-block-blockSuffix__element
@@ -377,7 +377,7 @@ class $ {
377
377
  * @return {*} {string}
378
378
  */
379
379
  be(e, t) {
380
- return e && t ? Z(this.namespace, this.block, e, t, "") : "";
380
+ return e && t ? J(this.namespace, this.block, e, t, "") : "";
381
381
  }
382
382
  /**
383
383
  * namespace-block__element--modifier
@@ -389,7 +389,7 @@ class $ {
389
389
  * @return {*} {string}
390
390
  */
391
391
  em(e, t) {
392
- return e && t ? Z(this.namespace, this.block, "", e, t) : "";
392
+ return e && t ? J(this.namespace, this.block, "", e, t) : "";
393
393
  }
394
394
  /**
395
395
  * namespace-block-blockSuffix--modifier
@@ -401,7 +401,7 @@ class $ {
401
401
  * @return {*} {string}
402
402
  */
403
403
  bm(e, t) {
404
- return e && t ? Z(this.namespace, this.block, e, "", t) : "";
404
+ return e && t ? J(this.namespace, this.block, e, "", t) : "";
405
405
  }
406
406
  /**
407
407
  * namespace-block-blockSuffix__element--modifier
@@ -414,7 +414,7 @@ class $ {
414
414
  * @return {*} {string}
415
415
  */
416
416
  bem(e, t, n) {
417
- return e && t && n ? Z(this.namespace, this.block, e, t, n) : "";
417
+ return e && t && n ? J(this.namespace, this.block, e, t, n) : "";
418
418
  }
419
419
  /**
420
420
  * 返回状态 class
@@ -429,7 +429,7 @@ class $ {
429
429
  * @return {*} {string}
430
430
  */
431
431
  is(e, t) {
432
- return e && t ? "".concat(ki).concat(e) : "";
432
+ return e && t ? "".concat(Ei).concat(e) : "";
433
433
  }
434
434
  /**
435
435
  * 生成使用到的 css 变量 style 对象
@@ -482,11 +482,11 @@ class $ {
482
482
  return "--".concat(this.namespace, "-").concat(this.block, "-").concat(e);
483
483
  }
484
484
  }
485
- function L(i) {
485
+ function H(i) {
486
486
  if (typeof i != "string")
487
487
  throw new TypeError("Path must be a string. Received " + JSON.stringify(i));
488
488
  }
489
- function at(i, e) {
489
+ function ct(i, e) {
490
490
  for (var t = "", n = 0, s = -1, o = 0, r, a = 0; a <= i.length; ++a) {
491
491
  if (a < i.length)
492
492
  r = i.charCodeAt(a);
@@ -519,7 +519,7 @@ function at(i, e) {
519
519
  }
520
520
  return t;
521
521
  }
522
- function Ei(i, e) {
522
+ function Ni(i, e) {
523
523
  var t = e.dir || e.root, n = e.base || (e.name || "") + (e.ext || "");
524
524
  return t ? t === e.root ? t + n : t + i + n : n;
525
525
  }
@@ -528,61 +528,61 @@ var he = {
528
528
  resolve: function() {
529
529
  for (var e = "", t = !1, n, s = arguments.length - 1; s >= -1 && !t; s--) {
530
530
  var o;
531
- s >= 0 ? o = arguments[s] : (n === void 0 && (n = process.cwd()), o = n), L(o), o.length !== 0 && (e = o + "/" + e, t = o.charCodeAt(0) === 47);
531
+ s >= 0 ? o = arguments[s] : (n === void 0 && (n = process.cwd()), o = n), H(o), o.length !== 0 && (e = o + "/" + e, t = o.charCodeAt(0) === 47);
532
532
  }
533
- return e = at(e, !t), t ? e.length > 0 ? "/" + e : "/" : e.length > 0 ? e : ".";
533
+ return e = ct(e, !t), t ? e.length > 0 ? "/" + e : "/" : e.length > 0 ? e : ".";
534
534
  },
535
535
  normalize: function(e) {
536
- if (L(e), e.length === 0)
536
+ if (H(e), e.length === 0)
537
537
  return ".";
538
538
  var t = e.charCodeAt(0) === 47, n = e.charCodeAt(e.length - 1) === 47;
539
- return e = at(e, !t), e.length === 0 && !t && (e = "."), e.length > 0 && n && (e += "/"), t ? "/" + e : e;
539
+ return e = ct(e, !t), e.length === 0 && !t && (e = "."), e.length > 0 && n && (e += "/"), t ? "/" + e : e;
540
540
  },
541
541
  isAbsolute: function(e) {
542
- return L(e), e.length > 0 && e.charCodeAt(0) === 47;
542
+ return H(e), e.length > 0 && e.charCodeAt(0) === 47;
543
543
  },
544
544
  join: function() {
545
545
  if (arguments.length === 0)
546
546
  return ".";
547
547
  for (var e, t = 0; t < arguments.length; ++t) {
548
548
  var n = arguments[t];
549
- L(n), n.length > 0 && (e === void 0 ? e = n : e += "/" + n);
549
+ H(n), n.length > 0 && (e === void 0 ? e = n : e += "/" + n);
550
550
  }
551
551
  return e === void 0 ? "." : he.normalize(e);
552
552
  },
553
553
  relative: function(e, t) {
554
- if (L(e), L(t), e === t || (e = he.resolve(e), t = he.resolve(t), e === t))
554
+ if (H(e), H(t), e === t || (e = he.resolve(e), t = he.resolve(t), e === t))
555
555
  return "";
556
556
  for (var n = 1; n < e.length && e.charCodeAt(n) === 47; ++n)
557
557
  ;
558
558
  for (var s = e.length, o = s - n, r = 1; r < t.length && t.charCodeAt(r) === 47; ++r)
559
559
  ;
560
- for (var a = t.length, u = a - r, h = o < u ? o : u, d = -1, c = 0; c <= h; ++c) {
561
- if (c === h) {
560
+ for (var a = t.length, u = a - r, h = o < u ? o : u, d = -1, l = 0; l <= h; ++l) {
561
+ if (l === h) {
562
562
  if (u > h) {
563
- if (t.charCodeAt(r + c) === 47)
564
- return t.slice(r + c + 1);
565
- if (c === 0)
566
- return t.slice(r + c);
563
+ if (t.charCodeAt(r + l) === 47)
564
+ return t.slice(r + l + 1);
565
+ if (l === 0)
566
+ return t.slice(r + l);
567
567
  } else
568
- o > h && (e.charCodeAt(n + c) === 47 ? d = c : c === 0 && (d = 0));
568
+ o > h && (e.charCodeAt(n + l) === 47 ? d = l : l === 0 && (d = 0));
569
569
  break;
570
570
  }
571
- var p = e.charCodeAt(n + c), m = t.charCodeAt(r + c);
572
- if (p !== m)
571
+ var _ = e.charCodeAt(n + l), m = t.charCodeAt(r + l);
572
+ if (_ !== m)
573
573
  break;
574
- p === 47 && (d = c);
574
+ _ === 47 && (d = l);
575
575
  }
576
576
  var f = "";
577
- for (c = n + d + 1; c <= s; ++c)
578
- (c === s || e.charCodeAt(c) === 47) && (f.length === 0 ? f += ".." : f += "/..");
577
+ for (l = n + d + 1; l <= s; ++l)
578
+ (l === s || e.charCodeAt(l) === 47) && (f.length === 0 ? f += ".." : f += "/..");
579
579
  return f.length > 0 ? f + t.slice(r + d) : (r += d, t.charCodeAt(r) === 47 && ++r, t.slice(r));
580
580
  },
581
581
  _makeLong: function(e) {
582
582
  return e;
583
583
  },
584
584
  dirname: function(e) {
585
- if (L(e), e.length === 0)
585
+ if (H(e), e.length === 0)
586
586
  return ".";
587
587
  for (var t = e.charCodeAt(0), n = t === 47, s = -1, o = !0, r = e.length - 1; r >= 1; --r)
588
588
  if (t = e.charCodeAt(r), t === 47) {
@@ -597,7 +597,7 @@ var he = {
597
597
  basename: function(e, t) {
598
598
  if (t !== void 0 && typeof t != "string")
599
599
  throw new TypeError('"ext" argument must be a string');
600
- L(e);
600
+ H(e);
601
601
  var n = 0, s = -1, o = !0, r;
602
602
  if (t !== void 0 && t.length > 0 && t.length <= e.length) {
603
603
  if (t.length === e.length && t === e)
@@ -627,7 +627,7 @@ var he = {
627
627
  }
628
628
  },
629
629
  extname: function(e) {
630
- L(e);
630
+ H(e);
631
631
  for (var t = -1, n = 0, s = -1, o = !0, r = 0, a = e.length - 1; a >= 0; --a) {
632
632
  var u = e.charCodeAt(a);
633
633
  if (u === 47) {
@@ -646,16 +646,16 @@ var he = {
646
646
  format: function(e) {
647
647
  if (e === null || typeof e != "object")
648
648
  throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof e);
649
- return Ei("/", e);
649
+ return Ni("/", e);
650
650
  },
651
651
  parse: function(e) {
652
- L(e);
652
+ H(e);
653
653
  var t = { root: "", dir: "", base: "", ext: "", name: "" };
654
654
  if (e.length === 0)
655
655
  return t;
656
656
  var n = e.charCodeAt(0), s = n === 47, o;
657
657
  s ? (t.root = "/", o = 1) : o = 0;
658
- for (var r = -1, a = 0, u = -1, h = !0, d = e.length - 1, c = 0; d >= o; --d) {
658
+ for (var r = -1, a = 0, u = -1, h = !0, d = e.length - 1, l = 0; d >= o; --d) {
659
659
  if (n = e.charCodeAt(d), n === 47) {
660
660
  if (!h) {
661
661
  a = d + 1;
@@ -663,11 +663,11 @@ var he = {
663
663
  }
664
664
  continue;
665
665
  }
666
- u === -1 && (h = !1, u = d + 1), n === 46 ? r === -1 ? r = d : c !== 1 && (c = 1) : r !== -1 && (c = -1);
666
+ u === -1 && (h = !1, u = d + 1), n === 46 ? r === -1 ? r = d : l !== 1 && (l = 1) : r !== -1 && (l = -1);
667
667
  }
668
668
  return r === -1 || u === -1 || // We saw a non-dot character immediately before the dot
669
- c === 0 || // The (right-most) trimmed path component is exactly '..'
670
- c === 1 && r === u - 1 && r === a + 1 ? u !== -1 && (a === 0 && s ? t.base = t.name = e.slice(1, u) : t.base = t.name = e.slice(a, u)) : (a === 0 && s ? (t.name = e.slice(1, r), t.base = e.slice(1, u)) : (t.name = e.slice(a, r), t.base = e.slice(a, u)), t.ext = e.slice(r, u)), a > 0 ? t.dir = e.slice(0, a - 1) : s && (t.dir = "/"), t;
669
+ l === 0 || // The (right-most) trimmed path component is exactly '..'
670
+ l === 1 && r === u - 1 && r === a + 1 ? u !== -1 && (a === 0 && s ? t.base = t.name = e.slice(1, u) : t.base = t.name = e.slice(a, u)) : (a === 0 && s ? (t.name = e.slice(1, r), t.base = e.slice(1, u)) : (t.name = e.slice(a, r), t.base = e.slice(a, u)), t.ext = e.slice(r, u)), a > 0 ? t.dir = e.slice(0, a - 1) : s && (t.dir = "/"), t;
671
671
  },
672
672
  sep: "/",
673
673
  delimiter: ":",
@@ -675,13 +675,17 @@ var he = {
675
675
  posix: null
676
676
  };
677
677
  he.posix = he;
678
- function W() {
678
+ function V() {
679
679
  return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
680
680
  }
681
- function Zt() {
682
- return "".concat(W() + W(), "-").concat(W(), "-").concat(W(), "-").concat(W(), "-").concat(W()).concat(W()).concat(W());
681
+ function Gt() {
682
+ return "".concat(V() + V(), "-").concat(V(), "-").concat(V(), "-").concat(V(), "-").concat(V()).concat(V()).concat(V());
683
683
  }
684
- class Gt {
684
+ const $i = /<svg\b[^>]*>[\s\S]*?<\/svg>/;
685
+ function Qe(i) {
686
+ return $i.test(i);
687
+ }
688
+ class Jt {
685
689
  /**
686
690
  * 拷贝文本
687
691
  *
@@ -702,7 +706,7 @@ class Gt {
702
706
  * @private
703
707
  * @type {(HTMLInputElement | null)}
704
708
  */
705
- w(Gt, "inputElement", null);
709
+ C(Jt, "inputElement", null);
706
710
  const b = class b {
707
711
  /**
708
712
  * 检查数据库是否存在
@@ -820,7 +824,7 @@ const b = class b {
820
824
  r.onsuccess = (a) => {
821
825
  if (b.db = a.target.result, b.lastLink = r.result, b.db.objectStoreNames.contains(t)) {
822
826
  const d = b.db.transaction([t], "readwrite").objectStore(t).add(n);
823
- d.onsuccess = (c) => {
827
+ d.onsuccess = (l) => {
824
828
  s(n);
825
829
  }, d.onerror = () => {
826
830
  s(null);
@@ -846,7 +850,7 @@ const b = class b {
846
850
  r.onsuccess = (a) => {
847
851
  if (b.db = a.target.result, b.lastLink = r.result, b.db.objectStoreNames.contains(t)) {
848
852
  const d = b.db.transaction([t], "readwrite").objectStore(t).delete(n);
849
- d.onsuccess = (c) => {
853
+ d.onsuccess = (l) => {
850
854
  s(!0);
851
855
  }, d.onerror = () => {
852
856
  s(!1);
@@ -872,7 +876,7 @@ const b = class b {
872
876
  r.onsuccess = (a) => {
873
877
  if (b.db = a.target.result, b.lastLink = r.result, b.db.objectStoreNames.contains(t)) {
874
878
  const d = b.db.transaction([t], "readwrite").objectStore(t).put(n);
875
- d.onsuccess = (c) => {
879
+ d.onsuccess = (l) => {
876
880
  s(n);
877
881
  }, d.onerror = () => {
878
882
  s(n);
@@ -898,7 +902,7 @@ const b = class b {
898
902
  r.onsuccess = (a) => {
899
903
  if (b.db = a.target.result, b.lastLink = r.result, b.db.objectStoreNames.contains(t)) {
900
904
  const d = b.db.transaction([t], "readonly").objectStore(t).get(n);
901
- d.onsuccess = (c) => {
905
+ d.onsuccess = (l) => {
902
906
  s(d.result);
903
907
  }, d.onerror = () => {
904
908
  o(new Error("未找到数据".concat(n)));
@@ -937,11 +941,11 @@ const b = class b {
937
941
  }
938
942
  };
939
943
  // 数据库版本
940
- w(b, "version", 1), // 数据库连接句柄
941
- w(b, "db", null), // 上一个连接
942
- w(b, "lastLink");
943
- let Y = b;
944
- class Ni {
944
+ C(b, "version", 1), // 数据库连接句柄
945
+ C(b, "db", null), // 上一个连接
946
+ C(b, "lastLink");
947
+ let X = b;
948
+ class Mi {
945
949
  /**
946
950
  * Creates an instance of FileUploader.
947
951
  * @author tony001
@@ -949,7 +953,7 @@ class Ni {
949
953
  * @param {FileUploaderOptions<T>} options
950
954
  */
951
955
  constructor(e) {
952
- w(this, "options");
956
+ C(this, "options");
953
957
  this.options = {
954
958
  multiple: !0,
955
959
  accept: "*/*",
@@ -987,8 +991,8 @@ class Ni {
987
991
  var t, n, s, o, r, a;
988
992
  try {
989
993
  const u = (d) => {
990
- var c, p;
991
- (p = (c = this.options).onProgress) == null || p.call(c, e, d);
994
+ var l, _;
995
+ (_ = (l = this.options).onProgress) == null || _.call(l, e, d);
992
996
  }, h = await this.options.onUpload(e, u);
993
997
  (n = (t = this.options).onProgress) == null || n.call(t, e, 100), (o = (s = this.options).onSuccess) == null || o.call(s, h, e);
994
998
  } catch (u) {
@@ -1005,7 +1009,7 @@ class Ni {
1005
1009
  return "".concat((e / 1024 ** n).toFixed(2), " ").concat(t[n]);
1006
1010
  }
1007
1011
  }
1008
- class Jt {
1012
+ class Kt {
1009
1013
  /**
1010
1014
  * 从XML元素中提取CDATA内容
1011
1015
  *
@@ -1036,12 +1040,12 @@ class Jt {
1036
1040
  return Array.from(n.querySelectorAll("resource")).map((o) => {
1037
1041
  const r = o.getAttribute("type") || "", a = o.querySelector("data"), u = o.querySelector("metadata");
1038
1042
  try {
1039
- const h = this.getCdataContent(a), d = this.getCdataContent(u), c = h ? JSON.parse(h) : {}, p = d ? JSON.parse(d) : {};
1043
+ const h = this.getCdataContent(a), d = this.getCdataContent(u), l = h ? JSON.parse(h) : {}, _ = d ? JSON.parse(d) : {};
1040
1044
  return {
1041
- id: c.id,
1045
+ id: l.id,
1042
1046
  type: r,
1043
- data: c,
1044
- metadata: p
1047
+ data: l,
1048
+ metadata: _
1045
1049
  };
1046
1050
  } catch (h) {
1047
1051
  throw new Error("XML 解析错误: ".concat(h.message));
@@ -1104,84 +1108,84 @@ class Jt {
1104
1108
  const a = t.createElement("resource");
1105
1109
  a.setAttribute("type", r.type), a.setAttribute("version", "1.0");
1106
1110
  const u = (h, d) => {
1107
- const c = t.createElement(h);
1108
- c.appendChild(t.createTextNode(s(o + 1)));
1109
- const p = t.createCDATASection(JSON.stringify(d));
1110
- return c.appendChild(p), c.appendChild(t.createTextNode(s(o))), c;
1111
+ const l = t.createElement(h);
1112
+ l.appendChild(t.createTextNode(s(o + 1)));
1113
+ const _ = t.createCDATASection(JSON.stringify(d));
1114
+ return l.appendChild(_), l.appendChild(t.createTextNode(s(o))), l;
1111
1115
  };
1112
1116
  a.appendChild(t.createTextNode(s(o + 1))), a.appendChild(u("data", r.data)), a.appendChild(t.createTextNode(s(o + 1))), a.appendChild(u("metadata", r.metadata)), a.appendChild(t.createTextNode(s(o))), n.appendChild(a);
1113
1117
  }), n.appendChild(t.createTextNode("\n")), t.appendChild(n), new XMLSerializer().serializeToString(t).replace(/></g, ">\n<");
1114
1118
  }
1115
1119
  }
1116
- var oe, x, Oe, ct, _e = 0, Kt = [], Ce = [], lt = g.__b, ut = g.__r, ht = g.diffed, dt = g.__c, ft = g.unmount;
1120
+ var re, k, Oe, lt, _e = 0, Qt = [], Ce = [], ut = g.__b, ht = g.__r, dt = g.diffed, ft = g.__c, pt = g.unmount;
1117
1121
  function Ae(i, e) {
1118
- g.__h && g.__h(x, i, _e || e), _e = 0;
1119
- var t = x.__H || (x.__H = { __: [], __h: [] });
1122
+ g.__h && g.__h(k, i, _e || e), _e = 0;
1123
+ var t = k.__H || (k.__H = { __: [], __h: [] });
1120
1124
  return i >= t.__.length && t.__.push({ __V: Ce }), t.__[i];
1121
1125
  }
1122
- function Qe(i) {
1123
- return _e = 1, $i(ti, i);
1126
+ function et(i) {
1127
+ return _e = 1, Ai(ii, i);
1124
1128
  }
1125
- function $i(i, e, t) {
1126
- var n = Ae(oe++, 2);
1127
- if (n.t = i, !n.__c && (n.__ = [t ? t(e) : ti(void 0, e), function(a) {
1129
+ function Ai(i, e, t) {
1130
+ var n = Ae(re++, 2);
1131
+ if (n.t = i, !n.__c && (n.__ = [t ? t(e) : ii(void 0, e), function(a) {
1128
1132
  var u = n.__N ? n.__N[0] : n.__[0], h = n.t(u, a);
1129
1133
  u !== h && (n.__N = [h, n.__[1]], n.__c.setState({}));
1130
- }], n.__c = x, !x.u)) {
1134
+ }], n.__c = k, !k.u)) {
1131
1135
  var s = function(a, u, h) {
1132
1136
  if (!n.__c.__H)
1133
1137
  return !0;
1134
- var d = n.__c.__H.__.filter(function(p) {
1135
- return p.__c;
1138
+ var d = n.__c.__H.__.filter(function(_) {
1139
+ return _.__c;
1136
1140
  });
1137
- if (d.every(function(p) {
1138
- return !p.__N;
1141
+ if (d.every(function(_) {
1142
+ return !_.__N;
1139
1143
  }))
1140
1144
  return !o || o.call(this, a, u, h);
1141
- var c = !1;
1142
- return d.forEach(function(p) {
1143
- if (p.__N) {
1144
- var m = p.__[0];
1145
- p.__ = p.__N, p.__N = void 0, m !== p.__[0] && (c = !0);
1145
+ var l = !1;
1146
+ return d.forEach(function(_) {
1147
+ if (_.__N) {
1148
+ var m = _.__[0];
1149
+ _.__ = _.__N, _.__N = void 0, m !== _.__[0] && (l = !0);
1146
1150
  }
1147
- }), !(!c && n.__c.props === a) && (!o || o.call(this, a, u, h));
1151
+ }), !(!l && n.__c.props === a) && (!o || o.call(this, a, u, h));
1148
1152
  };
1149
- x.u = !0;
1150
- var o = x.shouldComponentUpdate, r = x.componentWillUpdate;
1151
- x.componentWillUpdate = function(a, u, h) {
1153
+ k.u = !0;
1154
+ var o = k.shouldComponentUpdate, r = k.componentWillUpdate;
1155
+ k.componentWillUpdate = function(a, u, h) {
1152
1156
  if (this.__e) {
1153
1157
  var d = o;
1154
1158
  o = void 0, s(a, u, h), o = d;
1155
1159
  }
1156
1160
  r && r.call(this, a, u, h);
1157
- }, x.shouldComponentUpdate = s;
1161
+ }, k.shouldComponentUpdate = s;
1158
1162
  }
1159
1163
  return n.__N || n.__;
1160
1164
  }
1161
- function R(i, e) {
1162
- var t = Ae(oe++, 3);
1163
- !g.__s && ei(t.__H, e) && (t.__ = i, t.i = e, x.__H.__h.push(t));
1165
+ function B(i, e) {
1166
+ var t = Ae(re++, 3);
1167
+ !g.__s && ti(t.__H, e) && (t.__ = i, t.i = e, k.__H.__h.push(t));
1164
1168
  }
1165
- function K(i) {
1166
- return _e = 5, P(function() {
1169
+ function Z(i) {
1170
+ return _e = 5, F(function() {
1167
1171
  return { current: i };
1168
1172
  }, []);
1169
1173
  }
1170
- function P(i, e) {
1171
- var t = Ae(oe++, 7);
1172
- return ei(t.__H, e) ? (t.__V = i(), t.i = e, t.__h = i, t.__V) : t.__;
1174
+ function F(i, e) {
1175
+ var t = Ae(re++, 7);
1176
+ return ti(t.__H, e) ? (t.__V = i(), t.i = e, t.__h = i, t.__V) : t.__;
1173
1177
  }
1174
1178
  function Be(i, e) {
1175
- return _e = 8, P(function() {
1179
+ return _e = 8, F(function() {
1176
1180
  return i;
1177
1181
  }, e);
1178
1182
  }
1179
- function Qt(i) {
1180
- var e = x.context[i.__c], t = Ae(oe++, 9);
1181
- return t.c = i, e ? (t.__ == null && (t.__ = !0, e.sub(x)), e.props.value) : i.__;
1183
+ function ei(i) {
1184
+ var e = k.context[i.__c], t = Ae(re++, 9);
1185
+ return t.c = i, e ? (t.__ == null && (t.__ = !0, e.sub(k)), e.props.value) : i.__;
1182
1186
  }
1183
- function Mi() {
1184
- for (var i; i = Kt.shift(); )
1187
+ function Ii() {
1188
+ for (var i; i = Qt.shift(); )
1185
1189
  if (i.__P && i.__H)
1186
1190
  try {
1187
1191
  i.__H.__h.forEach(Te), i.__H.__h.forEach(Xe), i.__H.__h = [];
@@ -1190,19 +1194,19 @@ function Mi() {
1190
1194
  }
1191
1195
  }
1192
1196
  g.__b = function(i) {
1193
- x = null, lt && lt(i);
1197
+ k = null, ut && ut(i);
1194
1198
  }, g.__r = function(i) {
1195
- ut && ut(i), oe = 0;
1196
- var e = (x = i.__c).__H;
1197
- e && (Oe === x ? (e.__h = [], x.__h = [], e.__.forEach(function(t) {
1199
+ ht && ht(i), re = 0;
1200
+ var e = (k = i.__c).__H;
1201
+ e && (Oe === k ? (e.__h = [], k.__h = [], e.__.forEach(function(t) {
1198
1202
  t.__N && (t.__ = t.__N), t.__V = Ce, t.__N = t.i = void 0;
1199
- })) : (e.__h.forEach(Te), e.__h.forEach(Xe), e.__h = [], oe = 0)), Oe = x;
1203
+ })) : (e.__h.forEach(Te), e.__h.forEach(Xe), e.__h = [], re = 0)), Oe = k;
1200
1204
  }, g.diffed = function(i) {
1201
- ht && ht(i);
1205
+ dt && dt(i);
1202
1206
  var e = i.__c;
1203
- e && e.__H && (e.__H.__h.length && (Kt.push(e) !== 1 && ct === g.requestAnimationFrame || ((ct = g.requestAnimationFrame) || Ai)(Mi)), e.__H.__.forEach(function(t) {
1207
+ e && e.__H && (e.__H.__h.length && (Qt.push(e) !== 1 && lt === g.requestAnimationFrame || ((lt = g.requestAnimationFrame) || Di)(Ii)), e.__H.__.forEach(function(t) {
1204
1208
  t.i && (t.__H = t.i), t.__V !== Ce && (t.__ = t.__V), t.i = void 0, t.__V = Ce;
1205
- })), Oe = x = null;
1209
+ })), Oe = k = null;
1206
1210
  }, g.__c = function(i, e) {
1207
1211
  e.some(function(t) {
1208
1212
  try {
@@ -1214,9 +1218,9 @@ g.__b = function(i) {
1214
1218
  s.__h && (s.__h = []);
1215
1219
  }), e = [], g.__e(n, t.__v);
1216
1220
  }
1217
- }), dt && dt(i, e);
1221
+ }), ft && ft(i, e);
1218
1222
  }, g.unmount = function(i) {
1219
- ft && ft(i);
1223
+ pt && pt(i);
1220
1224
  var e, t = i.__c;
1221
1225
  t && t.__H && (t.__H.__.forEach(function(n) {
1222
1226
  try {
@@ -1226,42 +1230,42 @@ g.__b = function(i) {
1226
1230
  }
1227
1231
  }), t.__H = void 0, e && g.__e(e, t.__v));
1228
1232
  };
1229
- var pt = typeof requestAnimationFrame == "function";
1230
- function Ai(i) {
1233
+ var _t = typeof requestAnimationFrame == "function";
1234
+ function Di(i) {
1231
1235
  var e, t = function() {
1232
- clearTimeout(n), pt && cancelAnimationFrame(e), setTimeout(i);
1236
+ clearTimeout(n), _t && cancelAnimationFrame(e), setTimeout(i);
1233
1237
  }, n = setTimeout(t, 100);
1234
- pt && (e = requestAnimationFrame(t));
1238
+ _t && (e = requestAnimationFrame(t));
1235
1239
  }
1236
1240
  function Te(i) {
1237
- var e = x, t = i.__c;
1238
- typeof t == "function" && (i.__c = void 0, t()), x = e;
1241
+ var e = k, t = i.__c;
1242
+ typeof t == "function" && (i.__c = void 0, t()), k = e;
1239
1243
  }
1240
1244
  function Xe(i) {
1241
- var e = x;
1242
- i.__c = i.__(), x = e;
1245
+ var e = k;
1246
+ i.__c = i.__(), k = e;
1243
1247
  }
1244
- function ei(i, e) {
1248
+ function ti(i, e) {
1245
1249
  return !i || i.length !== e.length || e.some(function(t, n) {
1246
1250
  return t !== i[n];
1247
1251
  });
1248
1252
  }
1249
- function ti(i, e) {
1253
+ function ii(i, e) {
1250
1254
  return typeof e == "function" ? e(i) : e;
1251
1255
  }
1252
1256
  function Ie() {
1253
1257
  throw new Error("Cycle detected");
1254
1258
  }
1255
- var Ii = Symbol.for("preact-signals");
1256
- function et() {
1257
- if (ne > 1)
1258
- ne--;
1259
+ var zi = Symbol.for("preact-signals");
1260
+ function tt() {
1261
+ if (oe > 1)
1262
+ oe--;
1259
1263
  else {
1260
1264
  for (var i, e = !1; de !== void 0; ) {
1261
1265
  var t = de;
1262
1266
  for (de = void 0, Ze++; t !== void 0; ) {
1263
1267
  var n = t.o;
1264
- if (t.o = void 0, t.f &= -3, !(8 & t.f) && ni(t))
1268
+ if (t.o = void 0, t.f &= -3, !(8 & t.f) && si(t))
1265
1269
  try {
1266
1270
  t.c();
1267
1271
  } catch (s) {
@@ -1270,24 +1274,24 @@ function et() {
1270
1274
  t = n;
1271
1275
  }
1272
1276
  }
1273
- if (Ze = 0, ne--, e)
1277
+ if (Ze = 0, oe--, e)
1274
1278
  throw i;
1275
1279
  }
1276
1280
  }
1277
- var S = void 0, de = void 0, ne = 0, Ze = 0, Ee = 0;
1278
- function ii(i) {
1279
- if (S !== void 0) {
1281
+ var E = void 0, de = void 0, oe = 0, Ze = 0, Ee = 0;
1282
+ function ni(i) {
1283
+ if (E !== void 0) {
1280
1284
  var e = i.n;
1281
- if (e === void 0 || e.t !== S)
1282
- return e = { i: 0, S: i, p: S.s, n: void 0, t: S, e: void 0, x: void 0, r: e }, S.s !== void 0 && (S.s.n = e), S.s = e, i.n = e, 32 & S.f && i.S(e), e;
1285
+ if (e === void 0 || e.t !== E)
1286
+ return e = { i: 0, S: i, p: E.s, n: void 0, t: E, e: void 0, x: void 0, r: e }, E.s !== void 0 && (E.s.n = e), E.s = e, i.n = e, 32 & E.f && i.S(e), e;
1283
1287
  if (e.i === -1)
1284
- return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = S.s, e.n = void 0, S.s.n = e, S.s = e), e;
1288
+ return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = E.s, e.n = void 0, E.s.n = e, E.s = e), e;
1285
1289
  }
1286
1290
  }
1287
1291
  function A(i) {
1288
1292
  this.v = i, this.i = 0, this.n = void 0, this.t = void 0;
1289
1293
  }
1290
- A.prototype.brand = Ii;
1294
+ A.prototype.brand = zi;
1291
1295
  A.prototype.h = function() {
1292
1296
  return !0;
1293
1297
  };
@@ -1325,31 +1329,31 @@ A.prototype.peek = function() {
1325
1329
  return this.v;
1326
1330
  };
1327
1331
  Object.defineProperty(A.prototype, "value", { get: function() {
1328
- var i = ii(this);
1332
+ var i = ni(this);
1329
1333
  return i !== void 0 && (i.i = this.i), this.v;
1330
1334
  }, set: function(i) {
1331
- if (S instanceof X && function() {
1335
+ if (E instanceof G && function() {
1332
1336
  throw new Error("Computed cannot have side-effects");
1333
1337
  }(), i !== this.v) {
1334
- Ze > 100 && Ie(), this.v = i, this.i++, Ee++, ne++;
1338
+ Ze > 100 && Ie(), this.v = i, this.i++, Ee++, oe++;
1335
1339
  try {
1336
1340
  for (var e = this.t; e !== void 0; e = e.x)
1337
1341
  e.t.N();
1338
1342
  } finally {
1339
- et();
1343
+ tt();
1340
1344
  }
1341
1345
  }
1342
1346
  } });
1343
- function j(i) {
1347
+ function Y(i) {
1344
1348
  return new A(i);
1345
1349
  }
1346
- function ni(i) {
1350
+ function si(i) {
1347
1351
  for (var e = i.s; e !== void 0; e = e.n)
1348
1352
  if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1349
1353
  return !0;
1350
1354
  return !1;
1351
1355
  }
1352
- function si(i) {
1356
+ function oi(i) {
1353
1357
  for (var e = i.s; e !== void 0; e = e.n) {
1354
1358
  var t = e.S.n;
1355
1359
  if (t !== void 0 && (e.r = t), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -1358,34 +1362,34 @@ function si(i) {
1358
1362
  }
1359
1363
  }
1360
1364
  }
1361
- function oi(i) {
1365
+ function ri(i) {
1362
1366
  for (var e = i.s, t = void 0; e !== void 0; ) {
1363
1367
  var n = e.p;
1364
1368
  e.i === -1 ? (e.S.U(e), n !== void 0 && (n.n = e.n), e.n !== void 0 && (e.n.p = n)) : t = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = n;
1365
1369
  }
1366
1370
  i.s = t;
1367
1371
  }
1368
- function X(i) {
1372
+ function G(i) {
1369
1373
  A.call(this, void 0), this.x = i, this.s = void 0, this.g = Ee - 1, this.f = 4;
1370
1374
  }
1371
- (X.prototype = new A()).h = function() {
1375
+ (G.prototype = new A()).h = function() {
1372
1376
  if (this.f &= -3, 1 & this.f)
1373
1377
  return !1;
1374
1378
  if ((36 & this.f) == 32 || (this.f &= -5, this.g === Ee))
1375
1379
  return !0;
1376
- if (this.g = Ee, this.f |= 1, this.i > 0 && !ni(this))
1380
+ if (this.g = Ee, this.f |= 1, this.i > 0 && !si(this))
1377
1381
  return this.f &= -2, !0;
1378
- var i = S;
1382
+ var i = E;
1379
1383
  try {
1380
- si(this), S = this;
1384
+ oi(this), E = this;
1381
1385
  var e = this.x();
1382
1386
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1383
1387
  } catch (t) {
1384
1388
  this.v = t, this.f |= 16, this.i++;
1385
1389
  }
1386
- return S = i, oi(this), this.f &= -2, !0;
1390
+ return E = i, ri(this), this.f &= -2, !0;
1387
1391
  };
1388
- X.prototype.S = function(i) {
1392
+ G.prototype.S = function(i) {
1389
1393
  if (this.t === void 0) {
1390
1394
  this.f |= 36;
1391
1395
  for (var e = this.s; e !== void 0; e = e.n)
@@ -1393,59 +1397,59 @@ X.prototype.S = function(i) {
1393
1397
  }
1394
1398
  A.prototype.S.call(this, i);
1395
1399
  };
1396
- X.prototype.U = function(i) {
1400
+ G.prototype.U = function(i) {
1397
1401
  if (this.t !== void 0 && (A.prototype.U.call(this, i), this.t === void 0)) {
1398
1402
  this.f &= -33;
1399
1403
  for (var e = this.s; e !== void 0; e = e.n)
1400
1404
  e.S.U(e);
1401
1405
  }
1402
1406
  };
1403
- X.prototype.N = function() {
1407
+ G.prototype.N = function() {
1404
1408
  if (!(2 & this.f)) {
1405
1409
  this.f |= 6;
1406
1410
  for (var i = this.t; i !== void 0; i = i.x)
1407
1411
  i.t.N();
1408
1412
  }
1409
1413
  };
1410
- X.prototype.peek = function() {
1414
+ G.prototype.peek = function() {
1411
1415
  if (this.h() || Ie(), 16 & this.f)
1412
1416
  throw this.v;
1413
1417
  return this.v;
1414
1418
  };
1415
- Object.defineProperty(X.prototype, "value", { get: function() {
1419
+ Object.defineProperty(G.prototype, "value", { get: function() {
1416
1420
  1 & this.f && Ie();
1417
- var i = ii(this);
1421
+ var i = ni(this);
1418
1422
  if (this.h(), i !== void 0 && (i.i = this.i), 16 & this.f)
1419
1423
  throw this.v;
1420
1424
  return this.v;
1421
1425
  } });
1422
- function ri(i) {
1423
- return new X(i);
1424
- }
1425
1426
  function ai(i) {
1427
+ return new G(i);
1428
+ }
1429
+ function ci(i) {
1426
1430
  var e = i.u;
1427
1431
  if (i.u = void 0, typeof e == "function") {
1428
- ne++;
1429
- var t = S;
1430
- S = void 0;
1432
+ oe++;
1433
+ var t = E;
1434
+ E = void 0;
1431
1435
  try {
1432
1436
  e();
1433
1437
  } catch (n) {
1434
- throw i.f &= -2, i.f |= 8, tt(i), n;
1438
+ throw i.f &= -2, i.f |= 8, it(i), n;
1435
1439
  } finally {
1436
- S = t, et();
1440
+ E = t, tt();
1437
1441
  }
1438
1442
  }
1439
1443
  }
1440
- function tt(i) {
1444
+ function it(i) {
1441
1445
  for (var e = i.s; e !== void 0; e = e.n)
1442
1446
  e.S.U(e);
1443
- i.x = void 0, i.s = void 0, ai(i);
1447
+ i.x = void 0, i.s = void 0, ci(i);
1444
1448
  }
1445
- function Di(i) {
1446
- if (S !== this)
1449
+ function Hi(i) {
1450
+ if (E !== this)
1447
1451
  throw new Error("Out-of-order effect");
1448
- oi(this), S = i, this.f &= -2, 8 & this.f && tt(this), et();
1452
+ ri(this), E = i, this.f &= -2, 8 & this.f && it(this), tt();
1449
1453
  }
1450
1454
  function ve(i) {
1451
1455
  this.x = i, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
@@ -1462,15 +1466,15 @@ ve.prototype.c = function() {
1462
1466
  }
1463
1467
  };
1464
1468
  ve.prototype.S = function() {
1465
- 1 & this.f && Ie(), this.f |= 1, this.f &= -9, ai(this), si(this), ne++;
1466
- var i = S;
1467
- return S = this, Di.bind(this, i);
1469
+ 1 & this.f && Ie(), this.f |= 1, this.f &= -9, ci(this), oi(this), oe++;
1470
+ var i = E;
1471
+ return E = this, Hi.bind(this, i);
1468
1472
  };
1469
1473
  ve.prototype.N = function() {
1470
1474
  2 & this.f || (this.f |= 2, this.o = de, de = this);
1471
1475
  };
1472
1476
  ve.prototype.d = function() {
1473
- this.f |= 8, 1 & this.f || tt(this);
1477
+ this.f |= 8, 1 & this.f || it(this);
1474
1478
  };
1475
1479
  function De(i) {
1476
1480
  var e = new ve(i);
@@ -1481,18 +1485,18 @@ function De(i) {
1481
1485
  }
1482
1486
  return e.d.bind(e);
1483
1487
  }
1484
- var ze, Re;
1485
- function re(i, e) {
1488
+ var ze, Pe;
1489
+ function ae(i, e) {
1486
1490
  g[i] = e.bind(null, g[i] || function() {
1487
1491
  });
1488
1492
  }
1489
1493
  function Ne(i) {
1490
- Re && Re(), Re = i && i.S();
1494
+ Pe && Pe(), Pe = i && i.S();
1491
1495
  }
1492
- function ci(i) {
1493
- var e = this, t = i.data, n = B(t);
1496
+ function li(i) {
1497
+ var e = this, t = i.data, n = O(t);
1494
1498
  n.value = t;
1495
- var s = P(function() {
1499
+ var s = F(function() {
1496
1500
  for (var o = e.__v; o = o.__; )
1497
1501
  if (o.__c) {
1498
1502
  o.__c.__$f |= 4;
@@ -1501,18 +1505,18 @@ function ci(i) {
1501
1505
  return e.__$u.c = function() {
1502
1506
  var r;
1503
1507
  !Rt(s.peek()) && ((r = e.base) == null ? void 0 : r.nodeType) === 3 ? e.base.data = s.peek() : (e.__$f |= 1, e.setState({}));
1504
- }, ri(function() {
1508
+ }, ai(function() {
1505
1509
  var r = n.value.value;
1506
1510
  return r === 0 ? 0 : r === !0 ? "" : r || "";
1507
1511
  });
1508
1512
  }, []);
1509
1513
  return s.value;
1510
1514
  }
1511
- ci.displayName = "_st";
1512
- Object.defineProperties(A.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: ci }, props: { configurable: !0, get: function() {
1515
+ li.displayName = "_st";
1516
+ Object.defineProperties(A.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: li }, props: { configurable: !0, get: function() {
1513
1517
  return { data: this };
1514
1518
  } }, __b: { configurable: !0, value: 1 } });
1515
- re("__b", function(i, e) {
1519
+ ae("__b", function(i, e) {
1516
1520
  if (typeof e.type == "string") {
1517
1521
  var t, n = e.props;
1518
1522
  for (var s in n)
@@ -1523,7 +1527,7 @@ re("__b", function(i, e) {
1523
1527
  }
1524
1528
  i(e);
1525
1529
  });
1526
- re("__r", function(i, e) {
1530
+ ae("__r", function(i, e) {
1527
1531
  Ne();
1528
1532
  var t, n = e.__c;
1529
1533
  n && (n.__$f &= -2, (t = n.__$u) === void 0 && (n.__$u = t = function(s) {
@@ -1535,10 +1539,10 @@ re("__r", function(i, e) {
1535
1539
  }, o;
1536
1540
  }())), ze = n, Ne(t), i(e);
1537
1541
  });
1538
- re("__e", function(i, e, t, n) {
1542
+ ae("__e", function(i, e, t, n) {
1539
1543
  Ne(), ze = void 0, i(e, t, n);
1540
1544
  });
1541
- re("diffed", function(i, e) {
1545
+ ae("diffed", function(i, e) {
1542
1546
  Ne(), ze = void 0;
1543
1547
  var t;
1544
1548
  if (typeof e.type == "string" && (t = e.__e)) {
@@ -1554,14 +1558,14 @@ re("diffed", function(i, e) {
1554
1558
  t.U = o = {};
1555
1559
  for (var u in n) {
1556
1560
  var h = o[u], d = n[u];
1557
- h === void 0 ? (h = zi(t, u, d, s), o[u] = h) : h.o(d, s);
1561
+ h === void 0 ? (h = Li(t, u, d, s), o[u] = h) : h.o(d, s);
1558
1562
  }
1559
1563
  }
1560
1564
  }
1561
1565
  i(e);
1562
1566
  });
1563
- function zi(i, e, t, n) {
1564
- var s = e in i && i.ownerSVGElement === void 0, o = j(t);
1567
+ function Li(i, e, t, n) {
1568
+ var s = e in i && i.ownerSVGElement === void 0, o = Y(t);
1565
1569
  return { o: function(r, a) {
1566
1570
  o.value = r, n = a;
1567
1571
  }, d: De(function() {
@@ -1569,7 +1573,7 @@ function zi(i, e, t, n) {
1569
1573
  n[e] !== r && (n[e] = r, s ? i[e] = r : r ? i.setAttribute(e, r) : i.removeAttribute(e));
1570
1574
  }) };
1571
1575
  }
1572
- re("unmount", function(i, e) {
1576
+ ae("unmount", function(i, e) {
1573
1577
  if (typeof e.type == "string") {
1574
1578
  var t = e.__e;
1575
1579
  if (t) {
@@ -1591,10 +1595,10 @@ re("unmount", function(i, e) {
1591
1595
  }
1592
1596
  i(e);
1593
1597
  });
1594
- re("__h", function(i, e, t, n) {
1598
+ ae("__h", function(i, e, t, n) {
1595
1599
  (n < 3 || n === 9) && (e.__$f |= 2), i(e, t, n);
1596
1600
  });
1597
- H.prototype.shouldComponentUpdate = function(i, e) {
1601
+ z.prototype.shouldComponentUpdate = function(i, e) {
1598
1602
  var t = this.__$u;
1599
1603
  if (!(t && t.s !== void 0 || 4 & this.__$f) || 3 & this.__$f)
1600
1604
  return !0;
@@ -1608,146 +1612,146 @@ H.prototype.shouldComponentUpdate = function(i, e) {
1608
1612
  return !0;
1609
1613
  return !1;
1610
1614
  };
1611
- function B(i) {
1612
- return P(function() {
1613
- return j(i);
1615
+ function O(i) {
1616
+ return F(function() {
1617
+ return Y(i);
1614
1618
  }, []);
1615
1619
  }
1616
- function O(i) {
1617
- var e = K(i);
1618
- return e.current = i, ze.__$f |= 4, P(function() {
1619
- return ri(function() {
1620
+ function L(i) {
1621
+ var e = Z(i);
1622
+ return e.current = i, ze.__$f |= 4, F(function() {
1623
+ return ai(function() {
1620
1624
  return e.current();
1621
1625
  });
1622
1626
  }, []);
1623
1627
  }
1624
- function Hi(i) {
1625
- var e = K(i);
1626
- e.current = i, R(function() {
1628
+ function Oi(i) {
1629
+ var e = Z(i);
1630
+ e.current = i, B(function() {
1627
1631
  return De(function() {
1628
1632
  return e.current();
1629
1633
  });
1630
1634
  }, []);
1631
1635
  }
1632
- var Li = 0;
1633
- function l(i, e, t, n, s, o) {
1636
+ var Bi = 0;
1637
+ function c(i, e, t, n, s, o) {
1634
1638
  var r, a, u = {};
1635
1639
  for (a in e)
1636
1640
  a == "ref" ? r = e[a] : u[a] = e[a];
1637
- var h = { type: i, props: u, key: t, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --Li, __source: s, __self: o };
1641
+ var h = { type: i, props: u, key: t, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --Bi, __source: s, __self: o };
1638
1642
  if (typeof i == "function" && (r = i.defaultProps))
1639
1643
  for (a in r)
1640
1644
  u[a] === void 0 && (u[a] = r[a]);
1641
1645
  return g.vnode && g.vnode(h), h;
1642
1646
  }
1643
- const Oi = () => l("svg", {
1647
+ const Pi = () => c("svg", {
1644
1648
  viewBox: "0 0 1024 1024",
1645
1649
  version: "1.1",
1646
1650
  xmlns: "http://www.w3.org/2000/svg",
1647
- children: l("path", {
1651
+ children: c("path", {
1648
1652
  d: "M843.904 783.573333 783.573333 843.904 512.042667 572.373333 240.512 843.904 180.181333 783.573333 451.712 512.042667 180.181333 240.512 240.512 180.181333 512.042667 451.712 783.573333 180.181333 843.904 240.512 572.373333 512.042667 843.904 783.573333Z"
1649
1653
  })
1650
- }), Bi = () => l("svg", {
1654
+ }), Ri = () => c("svg", {
1651
1655
  className: "icon",
1652
1656
  viewBox: "0 0 1024 1024",
1653
1657
  version: "1.1",
1654
1658
  xmlns: "http://www.w3.org/2000/svg",
1655
- children: l("path", {
1659
+ children: c("path", {
1656
1660
  d: "M900.64 379.808l-263.072-256.032c-36.448-35.328-105.76-35.392-142.304 0.096l-327.04 319.904c-56.416 54.72-70.72 76.704-70.72 150.976l0 143.936c0 132.768 26.976 192 186.912 192l131.872 0c81.12 0 128.448-46.656 193.952-111.264l290.016-297.696c18.592-17.984 29.248-43.968 29.248-71.264C929.504 423.36 918.976 397.6 900.64 379.808zM323.008 786.752c-52.928 0-96-43.072-96-96s43.072-96 96-96 96 43.072 96 96S375.936 786.752 323.008 786.752z"
1657
1661
  })
1658
- }), Ri = (i) => l("svg", {
1662
+ }), Fi = (i) => c("svg", {
1659
1663
  viewBox: "0 0 1024 1024",
1660
1664
  id: "send",
1661
1665
  className: i.className,
1662
1666
  version: "1.1",
1663
1667
  xmlns: "http://www.w3.org/2000/svg",
1664
- children: l("path", {
1668
+ children: c("path", {
1665
1669
  d: "M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2-8.5 2.1-13.8 10.7-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-0.9 3.7-0.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 0.7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-0.8 4.2-2.6 5-5 1.4-4.2-0.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"
1666
1670
  })
1667
- }), Pi = () => l("svg", {
1671
+ }), Ui = () => c("svg", {
1668
1672
  viewBox: "0 0 1024 1024",
1669
1673
  version: "1.1",
1670
1674
  xmlns: "http://www.w3.org/2000/svg",
1671
- children: l("path", {
1675
+ children: c("path", {
1672
1676
  d: "M962 197.61H747v-60c0-55.14-44.86-100-100-100H377c-55.14 0-100 44.86-100 100v60H62c-11.05 0-20 8.95-20 20s8.95 20 20 20h60v630.57c0 66.17 53.83 120 120 120h540c66.17 0 120-53.83 120-120V237.61h60c11.05 0 20-8.95 20-20s-8.95-20-20-20zM637.34 457.66v260c0 12.01-10.72 21.63-23.06 19.77-9.84-1.48-16.94-10.25-16.94-20.2V458.09c0-9.95 7.1-18.72 16.94-20.2 12.34-1.86 23.06 7.76 23.06 19.77z m-210.68 0v260c0 11-9 20-20 20s-20-9-20-20v-260c0-11 9-20 20-20s20 9 20 20zM317 137.61c0-33.08 26.92-60 60-60h270c33.08 0 60 26.92 60 60v60H317v-60z"
1673
1677
  })
1674
- }), _t = () => l("svg", {
1678
+ }), vt = () => c("svg", {
1675
1679
  viewBox: "0 0 1024 1024",
1676
1680
  version: "1.1",
1677
1681
  xmlns: "http://www.w3.org/2000/svg",
1678
- children: l("path", {
1682
+ children: c("path", {
1679
1683
  d: "M511.582491 63.413262C265.134543 63.413262 64.62588 263.921925 64.62588 510.369873s200.508663 446.957635 446.957635 446.957635 446.957635-200.508663 446.957635-446.957635S758.031463 63.413262 511.582491 63.413262zM509.001713 751.859903c-98.517781 0-182.467775-62.623269-214.771505-150.056598l0.327458-0.134053c-2.007727-4.036943-3.38305-8.422833-3.38305-13.237489 0-16.647145 13.494339-30.142507 30.142507-30.142507 13.389962 0 24.358781 8.877181 28.2893 20.955264l0.422625-0.172939c23.269983 65.442478 85.645612 112.503307 158.972665 112.503307 93.106538 0 168.845523-75.738985 168.845523-168.845523s-75.738985-168.845523-168.845523-168.845523c-20.432355 0-39.874149 3.980661-58.013275 10.66899l21.248953 40.742936c2.486634 2.677992 4.0175 6.2831 4.0175 10.243295 0 8.417717-8.404414 14.921851-15.365966 15.07023-0.102331 0-0.206708 0-0.309038 0-0.220011 0-0.427742 0-0.647753-0.013303l-150.579507-6.463202c-5.372358-0.234337-10.229992-3.310396-12.716626-8.093329-2.486634-4.76963-2.236947-10.509355 0.647753-15.055904l80.890308-127.179564c2.8847-4.533246 8.006348-7.151887 13.365402-6.960529 5.372358 0.234337 10.227945 3.312442 12.71458 8.095375l18.580171 35.625382c26.629497-10.855232 55.683207-16.963347 86.168522-16.963347 126.338407 0 229.130537 102.791108 229.130537 229.130537S635.340119 751.859903 509.001713 751.859903z"
1680
1684
  })
1681
- }), Fi = () => l("svg", {
1685
+ }), Wi = () => c("svg", {
1682
1686
  viewBox: "0 0 1024 1024",
1683
1687
  version: "1.1",
1684
1688
  xmlns: "http://www.w3.org/2000/svg",
1685
- children: l("path", {
1689
+ children: c("path", {
1686
1690
  d: "M891.072 822.144V167.36a34.432 34.432 0 0 0-34.432-34.432H201.856C201.856 94.848 232.704 64 270.784 64h620.288C929.152 64 960 94.848 960 132.928v620.288c0 38.08-30.848 68.928-68.928 68.928z m-68.928-551.36v620.288c0 38.08-30.848 68.928-68.928 68.928H132.928A68.928 68.928 0 0 1 64 891.072V270.784c0-38.08 30.848-68.928 68.928-68.928h620.288c38.08 0 68.928 30.848 68.928 68.928z m-137.856 137.856H201.856a34.432 34.432 0 0 0 0 68.864h482.432a34.432 34.432 0 0 0 0-68.864z m0 206.72H201.856a34.432 34.432 0 0 0 0 68.864h482.432a34.432 34.432 0 0 0 0-68.864z"
1687
1691
  })
1688
- }), Ui = () => l("svg", {
1692
+ }), Vi = () => c("svg", {
1689
1693
  viewBox: "0 0 1024 1024",
1690
1694
  version: "1.1",
1691
1695
  xmlns: "http://www.w3.org/2000/svg",
1692
- children: l("path", {
1696
+ children: c("path", {
1693
1697
  d: "M547.4 197.4v46l200.3 0.1L546.1 444l32.4 32.6 201.9-200.7v200.9h46V197.5zM471.4 584.4l-32.6-32.6L243.6 747V547.9h-46v278.7h279v-46H275z"
1694
1698
  })
1695
- }), Wi = () => l("svg", {
1699
+ }), ji = () => c("svg", {
1696
1700
  viewBox: "0 0 1024 1024",
1697
1701
  version: "1.1",
1698
1702
  xmlns: "http://www.w3.org/2000/svg",
1699
- children: l("path", {
1703
+ children: c("path", {
1700
1704
  d: "M544 480V282.944h52.224l0.064 107.968L763.072 224l36.928 36.928-166.976 166.976 108.032-0.128V480H544zM260.928 800l-36.928-36.928 166.912-166.784-107.968-0.064V544H480v197.056h-52.224l0.064-107.968L260.928 800z"
1701
1705
  })
1702
- }), Vi = () => l("svg", {
1706
+ }), qi = () => c("svg", {
1703
1707
  viewBox: "0 0 1024 1024",
1704
1708
  version: "1.1",
1705
1709
  xmlns: "http://www.w3.org/2000/svg",
1706
- children: l("path", {
1710
+ children: c("path", {
1707
1711
  d: "M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"
1708
1712
  })
1709
- }), qi = () => l("svg", {
1713
+ }), Yi = () => c("svg", {
1710
1714
  viewBox: "0 0 1024 1024",
1711
1715
  version: "1.1",
1712
1716
  xmlns: "http://www.w3.org/2000/svg",
1713
- children: [l("path", {
1717
+ children: [c("path", {
1714
1718
  d: "M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"
1715
- }), l("path", {
1719
+ }), c("path", {
1716
1720
  d: "M486.441426 180.895362a66.56 66.56 0 1 0 42.091944-126.290153 66.56 66.56 0 1 0-42.091944 126.290153Z"
1717
- }), l("path", {
1721
+ }), c("path", {
1718
1722
  d: "M138.8544 664.3712c-52.8384 0-95.8464-43.008-95.8464-95.8464s43.008-95.8464 95.8464-95.8464M880.0256 472.6784c52.8384 0 95.8464 43.008 95.8464 95.8464s-43.008 95.8464-95.8464 95.8464"
1719
- }), l("path", {
1723
+ }), c("path", {
1720
1724
  d: "M507.4944 220.5696c-220.16 0-398.7456 162.816-398.7456 363.7248s178.5856 363.7248 398.7456 363.7248 398.7456-162.816 398.7456-363.7248-178.5856-363.7248-398.7456-363.7248z m0 559.9232c-166.2976 0-301.2608-100.5568-301.2608-224.4608s134.9632-224.4608 301.2608-224.4608S808.7552 432.128 808.7552 556.032 673.792 780.4928 507.4944 780.4928z"
1721
- }), l("path", {
1725
+ }), c("path", {
1722
1726
  d: "M319.6928 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"
1723
- }), l("path", {
1727
+ }), c("path", {
1724
1728
  d: "M617.472 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"
1725
1729
  })]
1726
- }), ji = () => l("svg", {
1730
+ }), Xi = () => c("svg", {
1727
1731
  viewBox: "0 0 18 18",
1728
1732
  fill: "none",
1729
1733
  xmlns: "http://www.w3.org/2000/svg",
1730
- children: [l("path", {
1734
+ children: [c("path", {
1731
1735
  d: "M5.856 17.121a.979.979 0 0 1-.327-.06.839.839 0 0 1-.283-.177.739.739 0 0 1-.187-.255.724.724 0 0 1-.07-.303l-.02-1.609a4.663 4.663 0 0 1-1.446-.455 4.252 4.252 0 0 1-.637-.401c-.199-.146-.385-.31-.553-.492a4.442 4.442 0 0 1-.45-.577 4.303 4.303 0 0 1-.327-.637 3.823 3.823 0 0 1-.206-.686 3.729 3.729 0 0 1-.064-.704V6.478c0-.261.025-.516.077-.771a4.43 4.43 0 0 1 .244-.747 4.062 4.062 0 0 1 .932-1.28c.2-.183.418-.347.65-.493.23-.145.482-.267.739-.364a4.21 4.21 0 0 1 .81-.225c.27-.054.553-.078.835-.078H8.55c.103 0 .2.018.29.054a.7.7 0 0 1 .411.376.667.667 0 0 1-.161.766.736.736 0 0 1-.25.151.764.764 0 0 1-.29.055H5.573c-.186 0-.366.012-.54.049-.18.03-.353.079-.52.145-.167.061-.328.14-.482.237-.148.091-.29.2-.418.316a2.897 2.897 0 0 0-.347.388c-.097.14-.187.286-.257.444a2.473 2.473 0 0 0-.206.977v4.287c0 .17.013.333.051.503a2.549 2.549 0 0 0 .772 1.33 2.721 2.721 0 0 0 .913.559c.167.066.347.115.527.152.18.03.36.048.546.048a.904.904 0 0 1 .61.23.848.848 0 0 1 .194.262.84.84 0 0 1 .07.303l.007.99 1.915-1.293a2.877 2.877 0 0 1 1.64-.492h2.372c.186 0 .366-.018.54-.048.18-.03.353-.08.52-.146.168-.067.329-.146.483-.237.148-.091.29-.2.418-.316.128-.121.244-.249.347-.388a2.8 2.8 0 0 0 .257-.444 2.47 2.47 0 0 0 .206-.977V8.585a.646.646 0 0 1 .225-.492.679.679 0 0 1 .244-.152.814.814 0 0 1 .585 0c.09.03.174.085.244.152a.657.657 0 0 1 .225.492V10.8c0 .261-.032.516-.083.771a4.192 4.192 0 0 1-.245.74c-.109.244-.244.468-.398.687a3.735 3.735 0 0 1-.534.6c-.2.183-.418.347-.65.493a4.134 4.134 0 0 1-.738.364 4.7 4.7 0 0 1-.81.225c-.27.054-.553.079-.836.079h-1.877c-.604 0-1.144.164-1.633.491l-2.54 1.713a.913.913 0 0 1-.514.157z",
1732
1736
  fill: "currentColor"
1733
- }), l("path", {
1737
+ }), c("path", {
1734
1738
  d: "M15.866 4.125h-4.174c-.41 0-.741.313-.741.7 0 .387.332.7.741.7h4.174c.41 0 .742-.313.742-.7 0-.387-.332-.7-.742-.7z",
1735
1739
  fill: "currentColor"
1736
- }), l("path", {
1740
+ }), c("path", {
1737
1741
  d: "M14.537 2.932c0-.396-.34-.717-.759-.717s-.758.32-.758.717v3.786c0 .396.34.717.758.717.42 0 .76-.321.76-.717V2.932z",
1738
1742
  fill: "currentColor"
1739
1743
  })]
1740
- }), Yi = () => l("svg", {
1744
+ }), Zi = () => c("svg", {
1741
1745
  viewBox: "64 64 896 896",
1742
1746
  focusable: "false",
1743
1747
  width: "1em",
1744
1748
  height: "1em",
1745
1749
  fill: "currentColor",
1746
1750
  "aria-hidden": "true",
1747
- children: l("path", {
1751
+ children: c("path", {
1748
1752
  d: "M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"
1749
1753
  })
1750
- }), Xi = () => l("svg", {
1754
+ }), Gi = () => c("svg", {
1751
1755
  fill: "currentColor",
1752
1756
  viewBox: "0 0 1000 1000",
1753
1757
  xmlns: "http://www.w3.org/2000/svg",
@@ -1755,25 +1759,25 @@ const Oi = () => l("svg", {
1755
1759
  children: Array.from({
1756
1760
  length: 4
1757
1761
  }).map((a, u) => {
1758
- const d = u * (146.66666666666666 + 140), c = 1e3 / 2 - 250 / 2, p = 1e3 / 2 - 500 / 2;
1759
- return l("rect", {
1762
+ const d = u * (146.66666666666666 + 140), l = 1e3 / 2 - 250 / 2, _ = 1e3 / 2 - 500 / 2;
1763
+ return c("rect", {
1760
1764
  fill: "currentColor",
1761
1765
  rx: 70,
1762
1766
  ry: 70,
1763
1767
  height: 250,
1764
1768
  width: 140,
1765
1769
  x: d,
1766
- y: c,
1767
- children: [l("animate", {
1770
+ y: l,
1771
+ children: [c("animate", {
1768
1772
  attributeName: "height",
1769
1773
  values: "250; 500; 250",
1770
1774
  keyTimes: "0; 0.5; 1",
1771
1775
  dur: "".concat(0.8, "s"),
1772
1776
  begin: "".concat(0.8 / 4 * u, "s"),
1773
1777
  repeatCount: "indefinite"
1774
- }), l("animate", {
1778
+ }), c("animate", {
1775
1779
  attributeName: "y",
1776
- values: "".concat(c, "; ").concat(p, "; ").concat(c),
1780
+ values: "".concat(l, "; ").concat(_, "; ").concat(l),
1777
1781
  keyTimes: "0; 0.5; 1",
1778
1782
  dur: "".concat(0.8, "s"),
1779
1783
  begin: "".concat(0.8 / 4 * u, "s"),
@@ -1781,28 +1785,28 @@ const Oi = () => l("svg", {
1781
1785
  })]
1782
1786
  }, u);
1783
1787
  })
1784
- }), Zi = (i) => l("svg", {
1788
+ }), Ji = (i) => c("svg", {
1785
1789
  className: i.className,
1786
1790
  onClick: i.onClick,
1787
1791
  viewBox: "0 0 1024 1024",
1788
1792
  version: "1.1",
1789
1793
  xmlns: "http://www.w3.org/2000/svg",
1790
- children: l("path", {
1794
+ children: c("path", {
1791
1795
  d: "M128 384a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m768 0a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m-372.4288 0a128 128 0 1 1 0 256 128 128 0 0 1 0-256z"
1792
1796
  })
1793
- }), Gi = (i) => l("svg", {
1797
+ }), Ki = (i) => c("svg", {
1794
1798
  className: i.className,
1795
1799
  viewBox: "0 0 1024 1024",
1796
1800
  version: "1.1",
1797
1801
  xmlns: "http://www.w3.org/2000/svg",
1798
- children: l("path", {
1802
+ children: c("path", {
1799
1803
  d: "M498.33984 607.8464c-10.99776-32.9728-50.09408-73.5232-82.6368-85.74976L150.9376 422.8096c-38.54336-14.4384-36.98688-69.46816 2.27328-81.73568L844.92288 124.90752c33.30048-10.40384 64.57344 20.8896 54.1696 54.1696L682.92608 870.78912a43.2128 43.2128 0 0 1-81.36704 3.25632 121682.5344 121682.5344 0 0 1-103.2192-266.19904z"
1800
1804
  })
1801
- }), Ji = (i) => l("svg", {
1805
+ }), Qi = (i) => c("svg", {
1802
1806
  xmlns: "http://www.w3.org/2000/svg",
1803
1807
  className: i.className,
1804
1808
  viewBox: "0 0 512 512",
1805
- children: l("path", {
1809
+ children: c("path", {
1806
1810
  fill: "none",
1807
1811
  stroke: "currentColor",
1808
1812
  strokeLinecap: "round",
@@ -1810,20 +1814,20 @@ const Oi = () => l("svg", {
1810
1814
  strokeWidth: "48",
1811
1815
  d: "M112 184l144 144 144-144"
1812
1816
  })
1813
- }), Pe = (i) => l("svg", {
1817
+ }), Re = (i) => c("svg", {
1814
1818
  xmlns: "http://www.w3.org/2000/svg",
1815
1819
  className: "".concat(i.className, " icon"),
1816
1820
  viewBox: "0 0 512 512",
1817
- children: l("path", {
1821
+ children: c("path", {
1818
1822
  d: "M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29l-134.4 160a16 16 0 01-12 5.71h-.27a16 16 0 01-11.89-5.3l-57.6-64a16 16 0 1123.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0124.5 20.58z"
1819
1823
  })
1820
- }), Fe = (i) => l("svg", {
1824
+ }), Fe = (i) => c("svg", {
1821
1825
  className: i.className,
1822
1826
  width: "16",
1823
1827
  height: "16",
1824
1828
  viewBox: "0 0 50 50",
1825
1829
  xmlns: "http://www.w3.org/2000/svg",
1826
- children: l("circle", {
1830
+ children: c("circle", {
1827
1831
  cx: "25",
1828
1832
  cy: "25",
1829
1833
  r: "20",
@@ -1832,7 +1836,7 @@ const Oi = () => l("svg", {
1832
1836
  fill: "none",
1833
1837
  strokeDasharray: "31.415, 31.415",
1834
1838
  strokeLinecap: "round",
1835
- children: l("animateTransform", {
1839
+ children: c("animateTransform", {
1836
1840
  attributeName: "transform",
1837
1841
  type: "rotate",
1838
1842
  from: "0 25 25",
@@ -1841,52 +1845,52 @@ const Oi = () => l("svg", {
1841
1845
  repeatCount: "indefinite"
1842
1846
  })
1843
1847
  })
1844
- }), Ki = () => l("svg", {
1848
+ }), en = () => c("svg", {
1845
1849
  className: "icon",
1846
1850
  viewBox: "0 0 1024 1024",
1847
1851
  version: "1.1",
1848
1852
  xmlns: "http://www.w3.org/2000/svg",
1849
1853
  width: "18",
1850
1854
  height: "18",
1851
- children: l("path", {
1855
+ children: c("path", {
1852
1856
  d: "M704 256v490.666667a170.666667 170.666667 0 0 1-170.666667 170.666666 170.666667 170.666667 0 0 1-170.666666-170.666666V213.333333A106.666667 106.666667 0 0 1 469.333333 106.666667 106.666667 106.666667 0 0 1 576 213.333333v448a42.666667 42.666667 0 0 1-42.666667 42.666667 42.666667 42.666667 0 0 1-42.666666-42.666667V256H426.666667v405.333333a106.666667 106.666667 0 0 0 106.666666 106.666667 106.666667 106.666667 0 0 0 106.666667-106.666667V213.333333a170.666667 170.666667 0 0 0-170.666667-170.666666 170.666667 170.666667 0 0 0-170.666666 170.666666v533.333334a234.666667 234.666667 0 0 0 234.666666 234.666666 234.666667 234.666667 0 0 0 234.666667-234.666666V256h-64z"
1853
1857
  })
1854
- }), li = () => l("svg", {
1858
+ }), ui = () => c("svg", {
1855
1859
  className: "icon",
1856
1860
  viewBox: "0 0 1024 1024",
1857
1861
  version: "1.1",
1858
1862
  xmlns: "http://www.w3.org/2000/svg",
1859
1863
  width: "18",
1860
1864
  height: "18",
1861
- children: [l("path", {
1865
+ children: [c("path", {
1862
1866
  d: "M842.666667 285.866667l-187.733334-187.733334c-14.933333-14.933333-32-21.333333-53.333333-21.333333H234.666667C194.133333 74.666667 160 108.8 160 149.333333v725.333334c0 40.533333 34.133333 74.666667 74.666667 74.666666h554.666666c40.533333 0 74.666667-34.133333 74.666667-74.666666V337.066667c0-19.2-8.533333-38.4-21.333333-51.2z m-44.8 44.8c-2.133333 2.133333-4.266667 0-8.533334 0h-170.666666c-6.4 0-10.666667-4.266667-10.666667-10.666667V149.333333c0-2.133333 0-6.4-2.133333-8.533333 0 0 2.133333 0 2.133333 2.133333l189.866667 187.733334z m-8.533334 554.666666H234.666667c-6.4 0-10.666667-4.266667-10.666667-10.666666V149.333333c0-6.4 4.266667-10.666667 10.666667-10.666666h311.466666c-2.133333 4.266667-2.133333 6.4-2.133333 10.666666v170.666667c0 40.533333 34.133333 74.666667 74.666667 74.666667h170.666666c4.266667 0 6.4 0 10.666667-2.133334V874.666667c0 6.4-4.266667 10.666667-10.666667 10.666666z",
1863
1867
  fill: "currentColor"
1864
- }), l("path", {
1868
+ }), c("path", {
1865
1869
  d: "M640 693.333333H341.333333c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h298.666667c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32zM640 522.666667H341.333333c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h298.666667c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32zM341.333333 416h85.333334c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32h-85.333334c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32z",
1866
1870
  fill: "currentColor"
1867
1871
  })]
1868
- }), Qi = () => l("svg", {
1872
+ }), tn = () => c("svg", {
1869
1873
  className: "icon",
1870
1874
  viewBox: "0 0 1024 1024",
1871
1875
  version: "1.1",
1872
1876
  xmlns: "http://www.w3.org/2000/svg",
1873
1877
  width: "18",
1874
1878
  height: "18",
1875
- children: l("path", {
1879
+ children: c("path", {
1876
1880
  d: "M557.248 511.68l135.776-135.744-45.248-45.28L512 466.432l-135.776-135.776-45.248 45.28 135.776 135.744-135.776 135.776 45.248 45.248L512 556.928l135.776 135.776 45.248-45.248-135.776-135.776zM512 64c247.136 0 448 200.864 448 448s-200.864 448-448 448S64 759.136 64 512 264.864 64 512 64z",
1877
1881
  fill: "currentColor"
1878
1882
  })
1879
- }), en = () => l("svg", {
1883
+ }), nn = () => c("svg", {
1880
1884
  className: "icon",
1881
1885
  viewBox: "0 0 1024 1024",
1882
1886
  version: "1.1",
1883
1887
  xmlns: "http://www.w3.org/2000/svg",
1884
1888
  width: "18",
1885
1889
  height: "18",
1886
- children: l("path", {
1890
+ children: c("path", {
1887
1891
  d: "M512.43945313 904.51953125c-6.06445313 0-12.12890625-1.58203125-17.57812501-4.74609375L136.70703125 689.71484375c-10.63476563-6.24023438-17.13867188-17.66601563-17.13867188-29.97070313s6.50390625-23.73046875 17.13867188-29.97070312l76.37695313-44.91210938L136.97070312 540.125c-10.63476563-6.24023438-17.13867188-17.66601563-17.13867187-29.97070313s6.50390625-23.73046875 17.13867188-29.97070312l73.38867187-43.15429688-73.125-42.890625C126.51171875 387.81054687 120.0078125 376.38476562 120.0078125 364.08007812c0-12.3046875 6.50390625-23.73046875 17.13867188-29.97070312L495.828125 122.99609375c10.8984375-6.41601563 24.34570313-6.41601563 35.24414063 0l358.15429687 210.05859375c10.63476563 6.24023438 17.13867188 17.66601563 17.13867188 29.97070313s-6.50390625 23.73046875-17.13867188 29.97070312l-73.38867188 43.15429688 73.12500001 42.890625c10.63476563 6.24023438 17.13867188 17.66601563 17.13867187 29.97070312s-6.50390625 23.73046875-17.13867187 29.97070313L812.5859375 583.89453125l76.11328125 44.6484375c10.63476563 6.24023438 17.13867188 17.66601563 17.13867188 29.97070313s-6.50390625 23.73046875-17.13867188 29.97070312l-358.59375 211.2890625c-5.44921875 3.1640625-11.6015625 4.74609375-17.66601563 4.74609375zM223.015625 659.65625l289.42382813 169.8046875 290.12695312-170.77148438-58.44726563-34.27734374L530.28125 750.18359375a34.67285156 34.67285156 0 0 1-35.24414063 0L281.7265625 625.02734375 223.015625 659.65625z m76.90429688-104.58984375l212.69531249 124.8046875 290.12695313-170.77148438-55.546875-32.60742187-216.65039063 127.6171875a34.67285156 34.67285156 0 0 1-35.24414062 0L279.00195312 477.28320312l-55.81054687 32.78320313 75.49804688 44.296875c0.43945313 0.26367188 0.79101563 0.52734375 1.23046874 0.703125z m-2.81250001-147.83203125l215.68359376 126.5625 216.12304687-127.17773438c0.3515625-0.26367188 0.703125-0.43945313 1.0546875-0.61523437l72.86132813-42.890625-289.33593751-169.8046875-290.12695312 170.68359375 72.59765625 42.62695313c0.43945313 0.17578125 0.79101563 0.43945313 1.14257813 0.61523437z"
1888
1892
  })
1889
- }), tn = (i) => l("svg", {
1893
+ }), sn = (i) => c("svg", {
1890
1894
  className: i.className,
1891
1895
  id: "stop",
1892
1896
  viewBox: "0 0 1025 1024",
@@ -1894,18 +1898,18 @@ const Oi = () => l("svg", {
1894
1898
  xmlns: "http://www.w3.org/2000/svg",
1895
1899
  width: "18",
1896
1900
  height: "18",
1897
- children: [l("path", {
1901
+ children: [c("path", {
1898
1902
  d: "M512.268258 1022.835842c-68.658678 0-135.399619-13.564433-198.369591-40.316509-60.752236-25.809077-115.373446-62.712976-162.346233-109.685763-46.971763-46.971763-83.875662-101.592974-109.685763-162.346233C15.115619 647.517366 1.551186 580.777449 1.551186 512.118771S15.115619 376.719151 41.866671 313.74918c25.810101-60.752236 62.714-115.373446 109.685763-162.346233 46.972787-46.971763 101.593997-83.875662 162.346233-109.685763 62.969971-26.751052 129.710912-40.315485 198.369591-40.315485s135.398595 13.564433 198.368567 40.315485c60.752236 25.810101 115.373446 62.714 162.346233 109.685763 46.971763 46.972787 83.875662 101.593997 109.685763 162.346233 26.752076 62.969971 40.316509 129.710912 40.316509 198.369591s-13.564433 135.398595-40.316509 198.368567c-25.809077 60.75326-62.712976 115.37447-109.685763 162.346233-46.971763 46.972787-101.592974 83.876686-162.346233 109.685763C647.666853 1009.27141 580.925912 1022.835842 512.268258 1022.835842zM512.268258 50.548195c-62.018782 0-122.293887 12.247716-179.152287 36.403219-54.923257 23.333323-104.317532 56.709936-146.810821 99.204249s-75.870926 91.888588-99.204249 146.810821c-24.155503 56.8584-36.403219 117.133505-36.403219 179.152287 0 62.017758 12.247716 122.292863 36.403219 179.152287 23.333323 54.923257 56.709936 104.317532 99.204249 146.811845 42.493289 42.493289 91.888588 75.870926 146.810821 99.204249 56.8584 24.155503 117.133505 36.403219 179.152287 36.403219 62.017758 0 122.292863-12.247716 179.152287-36.403219 54.923257-23.333323 104.317532-56.71096 146.811845-99.204249 42.493289-42.494313 75.870926-91.888588 99.204249-146.811845 24.155503-56.8584 36.403219-117.133505 36.403219-179.152287s-12.247716-122.293887-36.403219-179.152287c-23.334347-54.923257-56.71096-104.317532-99.205273-146.810821-42.493289-42.493289-91.887565-75.870926-146.810821-99.204249C634.561121 62.795911 574.286016 50.548195 512.268258 50.548195z",
1899
1903
  fill: "currentColor"
1900
- }), l("path", {
1904
+ }), c("path", {
1901
1905
  d: "M655.434047 694.244421 367.12637 694.244421c-21.046987 0-38.170445-17.123458-38.170445-38.170445L328.955925 367.766298c0-21.046987 17.123458-38.170445 38.170445-38.170445l288.307678 0c21.048011 0 38.170445 17.123458 38.170445 38.170445l0 288.307678C693.604492 677.120962 676.482058 694.244421 655.434047 694.244421zM380.150191 643.050154l262.260035 0L642.410226 380.79012 380.150191 380.79012 380.150191 643.050154z",
1902
1906
  fill: "currentColor"
1903
1907
  })]
1904
- }), nn = (i) => l("svg", {
1908
+ }), on = (i) => c("svg", {
1905
1909
  xmlns: "http://www.w3.org/2000/svg",
1906
1910
  className: i.className,
1907
1911
  viewBox: "0 0 512 512",
1908
- children: l("path", {
1912
+ children: c("path", {
1909
1913
  fill: "none",
1910
1914
  stroke: "currentColor",
1911
1915
  strokeLinecap: "round",
@@ -1914,11 +1918,11 @@ const Oi = () => l("svg", {
1914
1918
  d: "M112 268l144 144 144-144M256 392V100"
1915
1919
  })
1916
1920
  });
1917
- const sn = (i) => {
1921
+ const rn = (i) => {
1918
1922
  const {
1919
1923
  items: e
1920
- } = i, t = B([]), n = new $("chat-thought-chain"), s = B([]);
1921
- R(() => {
1924
+ } = i, t = O([]), n = new $("chat-thought-chain"), s = O([]);
1925
+ B(() => {
1922
1926
  s.value = e.filter((r) => r.description), s.value.length > 0 && s.value.forEach((r, a) => {
1923
1927
  r.done && (t.value = [...t.value, a]);
1924
1928
  });
@@ -1926,28 +1930,28 @@ const sn = (i) => {
1926
1930
  const o = (r) => {
1927
1931
  t.value.includes(r) ? t.value = t.value.filter((a) => a !== r) : t.value = [...t.value, r];
1928
1932
  };
1929
- return s.value.length === 0 ? null : l("div", {
1933
+ return s.value.length === 0 ? null : c("div", {
1930
1934
  className: "".concat(n.b(), " ").concat(n.is("single", s.value.length === 1)),
1931
1935
  children: s.value.map((r, a) => {
1932
1936
  if (!r.description)
1933
1937
  return;
1934
1938
  const u = t.value.includes(a);
1935
- return l("div", {
1939
+ return c("div", {
1936
1940
  className: "".concat(n.e("item"), " ").concat(n.is("collapsed", u)),
1937
- children: [l("div", {
1941
+ children: [c("div", {
1938
1942
  className: n.e("item-icon"),
1939
- children: r.icon || l("span", {
1943
+ children: r.icon || c("span", {
1940
1944
  children: a
1941
1945
  })
1942
- }), l("div", {
1946
+ }), c("div", {
1943
1947
  className: n.e("item-content"),
1944
- children: [l("div", {
1948
+ children: [c("div", {
1945
1949
  className: n.e("item-title"),
1946
1950
  onClick: () => o(a),
1947
- children: [r.title, l(Ji, {
1951
+ children: [r.title, c(Qi, {
1948
1952
  className: n.e("icon")
1949
1953
  })]
1950
- }), l("div", {
1954
+ }), c("div", {
1951
1955
  className: n.e("item-description"),
1952
1956
  children: r.description
1953
1957
  })]
@@ -1955,84 +1959,84 @@ const sn = (i) => {
1955
1959
  }, a);
1956
1960
  })
1957
1961
  });
1958
- }, G = new $("markdown-message"), on = (i) => {
1962
+ }, K = new $("markdown-message"), an = (i) => {
1959
1963
  const {
1960
1964
  message: e,
1961
1965
  size: t
1962
- } = i, n = B(Zt()), s = B(null), o = P(() => e.state === 20 && e.completed !== !0, [e.state, e.completed]), r = P(() => e.state === 20 && e.completed === !0, [e.state, e.completed]), a = B({
1966
+ } = i, n = O(Gt()), s = O(null), o = F(() => e.state === 20 && e.completed !== !0, [e.state, e.completed]), r = F(() => e.state === 20 && e.completed === !0, [e.state, e.completed]), a = O({
1963
1967
  title: "",
1964
1968
  description: "",
1965
- icon: l(Fe, {})
1969
+ icon: c(Fe, {})
1966
1970
  }), u = (h) => {
1967
- const d = h.indexOf("<think>"), c = h.indexOf("</think>");
1968
- let p = "", m = "", f = !1;
1969
- return c === -1 ? (f = !1, p = h.slice(d + 7), m = "") : (f = !0, p = h.slice(d + 7, c), m = h.slice(c + 8)), {
1971
+ const d = h.indexOf("<think>"), l = h.indexOf("</think>");
1972
+ let _ = "", m = "", f = !1;
1973
+ return l === -1 ? (f = !1, _ = h.slice(d + 7), m = "") : (f = !0, _ = h.slice(d + 7, l), m = h.slice(l + 8)), {
1970
1974
  isThoughtCompleted: f,
1971
- thoughtContent: p,
1975
+ thoughtContent: _,
1972
1976
  answerContent: m
1973
1977
  };
1974
1978
  };
1975
- return R(() => {
1979
+ return B(() => {
1976
1980
  if (t >= 0 && s.value)
1977
1981
  if (e.content.indexOf("<think>") !== -1) {
1978
1982
  const {
1979
1983
  isThoughtCompleted: h,
1980
1984
  thoughtContent: d,
1981
- answerContent: c
1985
+ answerContent: l
1982
1986
  } = u(e.content);
1983
- h ? (a.value.icon = l(Pe, {}), a.value.title = "思考完成") : e.completed === !0 ? (a.value.icon = l(Pe, {}), a.value.title = "思考已停止") : (a.value.icon = l(Fe, {}), a.value.title = "思考中..."), d && (a.value.description = d), c && s.value.setMarkdown(c);
1987
+ h ? (a.value.icon = c(Re, {}), a.value.title = "思考完成") : e.completed === !0 ? (a.value.icon = c(Re, {}), a.value.title = "思考已停止") : (a.value.icon = c(Fe, {}), a.value.title = "思考中..."), d && (a.value.description = d), l && s.value.setMarkdown(l);
1984
1988
  } else
1985
1989
  s.value.setMarkdown(e.content);
1986
- }, [e, t]), R(() => {
1990
+ }, [e, t]), B(() => {
1987
1991
  let h = "";
1988
1992
  if (e.content.indexOf("<think>") !== -1) {
1989
1993
  const {
1990
1994
  isThoughtCompleted: d,
1991
- thoughtContent: c,
1992
- answerContent: p
1995
+ thoughtContent: l,
1996
+ answerContent: _
1993
1997
  } = u(e.content);
1994
1998
  a.value = {
1995
1999
  title: d ? "思考完成" : e.completed === !0 ? "思考已停止" : "思考中...",
1996
- description: c || "",
1997
- icon: d || e.completed === !0 ? l(Pe, {}) : l(Fe, {})
1998
- }, p && (h = p);
2000
+ description: l || "",
2001
+ icon: d || e.completed === !0 ? c(Re, {}) : c(Fe, {})
2002
+ }, _ && (h = _);
1999
2003
  } else
2000
2004
  h = e.content;
2001
- s.value = new gi({
2005
+ s.value = new bi({
2002
2006
  id: n,
2003
2007
  value: h || "",
2004
2008
  editor: {
2005
2009
  defaultModel: "previewOnly"
2006
2010
  }
2007
2011
  });
2008
- }, []), l("div", {
2009
- className: "".concat(G.b(), " ").concat(G.is("loading", o)),
2010
- children: [l("div", {
2011
- className: G.b("header"),
2012
- children: [l("div", {
2013
- className: G.be("header", "caption"),
2012
+ }, []), c("div", {
2013
+ className: "".concat(K.b(), " ").concat(K.is("loading", o)),
2014
+ children: [c("div", {
2015
+ className: K.b("header"),
2016
+ children: [c("div", {
2017
+ className: K.be("header", "caption"),
2014
2018
  children: "AI "
2015
- }), i.children, r ? l("div", {
2016
- className: G.be("header", "timeout"),
2019
+ }), i.children, r ? c("div", {
2020
+ className: K.be("header", "timeout"),
2017
2021
  children: "请求超时"
2018
2022
  }) : null]
2019
- }), l("div", {
2020
- className: "".concat(G.b("content"), " pre-wrap-container"),
2021
- children: [l(sn, {
2023
+ }), c("div", {
2024
+ className: "".concat(K.b("content"), " pre-wrap-container"),
2025
+ children: [c(rn, {
2022
2026
  items: [a.value]
2023
- }), l("div", {
2027
+ }), c("div", {
2024
2028
  id: n
2025
2029
  })]
2026
- }), l("div", {
2027
- className: G.b("footer")
2030
+ }), c("div", {
2031
+ className: K.b("footer")
2028
2032
  })]
2029
2033
  });
2030
2034
  };
2031
- const ae = new $("ossfile-material"), rn = (i) => {
2032
- const e = O(() => i.material.data.name), t = O(() => i.material.metadata.size), n = O(() => {
2035
+ const ce = new $("ossfile-material"), cn = (i) => {
2036
+ const e = L(() => i.material.data.name), t = L(() => i.material.metadata.size), n = L(() => {
2033
2037
  const o = i.material.metadata.state;
2034
2038
  return o === "successed" ? "上传成功" : o === "uploading" ? "上传中" : o === "failed" ? "上传失败" : "未知状态";
2035
- }), s = O(() => {
2039
+ }), s = L(() => {
2036
2040
  switch (i.material.metadata.state) {
2037
2041
  case "successed":
2038
2042
  return "#1890ff";
@@ -2044,22 +2048,22 @@ const ae = new $("ossfile-material"), rn = (i) => {
2044
2048
  return "#ff4d4f";
2045
2049
  }
2046
2050
  });
2047
- return l("div", {
2048
- className: ae.b(),
2049
- children: [l("div", {
2050
- className: ae.b("left"),
2051
- children: l(li, {})
2052
- }), l("div", {
2053
- className: ae.b("right"),
2054
- children: [l("div", {
2055
- className: ae.e("name"),
2051
+ return c("div", {
2052
+ className: ce.b(),
2053
+ children: [c("div", {
2054
+ className: ce.b("left"),
2055
+ children: c(ui, {})
2056
+ }), c("div", {
2057
+ className: ce.b("right"),
2058
+ children: [c("div", {
2059
+ className: ce.e("name"),
2056
2060
  title: e,
2057
2061
  children: e
2058
- }), l("div", {
2059
- className: ae.e("metadata"),
2060
- children: [l("div", {
2062
+ }), c("div", {
2063
+ className: ce.e("metadata"),
2064
+ children: [c("div", {
2061
2065
  children: [t, "B"]
2062
- }), l("div", {
2066
+ }), c("div", {
2063
2067
  style: {
2064
2068
  color: s.value
2065
2069
  },
@@ -2069,79 +2073,89 @@ const ae = new $("ossfile-material"), rn = (i) => {
2069
2073
  })]
2070
2074
  });
2071
2075
  };
2072
- const ce = new $("common-material"), an = (i) => {
2073
- var n;
2074
- const e = (n = i.controller.opts.questionToolbarItems) == null ? void 0 : n.find((s) => s.id === i.material.metadata.actionId), t = O(() => i.material.metadata.name);
2075
- return l("div", {
2076
- className: ce.b(),
2077
- children: [l("div", {
2078
- className: ce.b("left"),
2079
- children: e && e.icon ? typeof e.icon == "function" ? e.icon(I) : e.icon : l(en, {})
2080
- }), l("div", {
2081
- className: ce.b("right"),
2082
- children: [l("div", {
2083
- className: ce.e("name"),
2076
+ const le = new $("common-material"), ln = (i) => {
2077
+ var n, s, o, r;
2078
+ const e = (n = i.controller.opts.questionToolbarItems) == null ? void 0 : n.find((a) => a.id === i.material.metadata.actionId), t = L(() => i.material.metadata.name);
2079
+ return c("div", {
2080
+ className: le.b(),
2081
+ children: [c("div", {
2082
+ className: le.b("left"),
2083
+ children: e && e.icon ? typeof e.icon == "function" ? e.icon() : ((s = e.icon) == null ? void 0 : s.showIcon) && c(R, {
2084
+ children: (o = e.icon) != null && o.cssClass ? c("i", {
2085
+ className: e.icon.cssClass
2086
+ }) : (r = e.icon) != null && r.imagePath ? Qe(e.icon.imagePath) ? c("div", {
2087
+ dangerouslySetInnerHTML: {
2088
+ __html: e.icon.imagePath
2089
+ }
2090
+ }) : c("img", {
2091
+ src: e.icon.imagePath
2092
+ }) : null
2093
+ }) : c(nn, {})
2094
+ }), c("div", {
2095
+ className: le.b("right"),
2096
+ children: [c("div", {
2097
+ className: le.e("name"),
2084
2098
  title: t,
2085
2099
  children: t
2086
- }), l("div", {
2087
- className: ce.e("metadata"),
2088
- children: l("div", {
2100
+ }), c("div", {
2101
+ className: le.e("metadata"),
2102
+ children: c("div", {
2089
2103
  children: (e == null ? void 0 : e.label) || "素材资源"
2090
2104
  })
2091
2105
  })]
2092
2106
  })]
2093
2107
  });
2094
2108
  };
2095
- const Ue = new $("chat-input-material-item"), ui = (i) => {
2109
+ const Ue = new $("chat-input-material-item"), hi = (i) => {
2096
2110
  const {
2097
2111
  material: e
2098
2112
  } = i;
2099
2113
  let t = null;
2100
2114
  switch (e.type) {
2101
2115
  case "ossfile":
2102
- t = rn;
2116
+ t = cn;
2103
2117
  break;
2104
2118
  default:
2105
- t = an;
2119
+ t = ln;
2106
2120
  }
2107
2121
  const n = () => {
2108
2122
  i.controller.deleteMaterial(e);
2109
2123
  };
2110
- return l("div", {
2124
+ return c("div", {
2111
2125
  className: "".concat(Ue.b(), " ").concat(Ue.is("disabled", i.disabled)),
2112
- children: [l("div", {
2126
+ children: [c("div", {
2113
2127
  className: Ue.e("icon"),
2114
2128
  onClick: n,
2115
- children: l(Qi, {})
2116
- }), I(t, {
2129
+ children: c(tn, {})
2130
+ }), P(t, {
2117
2131
  material: e,
2118
2132
  controller: i.controller
2119
2133
  })]
2120
2134
  });
2121
- }, Q = new $("user-message-question"), cn = (i) => {
2122
- const e = O(() => i.message.content), t = O(() => Jt.parseMixedContent(e.value));
2123
- return l("div", {
2124
- className: Q.b(),
2125
- children: [l("div", {
2126
- className: Q.e("user-header"),
2127
- children: [i.children, l("div", {
2128
- className: Q.e("user"),
2135
+ }, ee = new $("user-message-question"), un = (i) => {
2136
+ const e = L(() => i.message.content), t = L(() => Kt.parseMixedContent(e.value));
2137
+ return c("div", {
2138
+ className: ee.b(),
2139
+ children: [c("div", {
2140
+ className: ee.e("user-header"),
2141
+ children: [i.children, c("div", {
2142
+ className: ee.e("user"),
2129
2143
  children: "我"
2130
2144
  })]
2131
- }), l("div", {
2132
- className: Q.e("content"),
2133
- children: l("div", {
2145
+ }), c("div", {
2146
+ className: ee.e("content"),
2147
+ children: c("div", {
2134
2148
  dir: "auto",
2135
- className: Q.em("content", "body"),
2136
- children: [l("p", {
2149
+ className: ee.em("content", "body"),
2150
+ children: [c("p", {
2137
2151
  dir: "auto",
2138
- className: Q.em("content", "material"),
2139
- children: t.value.hasResources && t.value.resources.map((n) => l(ui, {
2152
+ className: ee.em("content", "material"),
2153
+ children: t.value.hasResources && t.value.resources.map((n) => c(hi, {
2140
2154
  material: n,
2141
2155
  disabled: !0,
2142
2156
  controller: i.controller
2143
2157
  }, n.id))
2144
- }), l("p", {
2158
+ }), c("p", {
2145
2159
  dir: "auto",
2146
2160
  className: "pre-wrap-container",
2147
2161
  children: t.value.remainingText
@@ -2150,32 +2164,32 @@ const Ue = new $("chat-input-material-item"), ui = (i) => {
2150
2164
  })]
2151
2165
  });
2152
2166
  };
2153
- const ge = new $("error-message"), ln = (i) => {
2154
- const e = O(() => i.message.content);
2155
- return l("div", {
2167
+ const ge = new $("error-message"), hn = (i) => {
2168
+ const e = L(() => i.message.content);
2169
+ return c("div", {
2156
2170
  className: ge.b(),
2157
- children: [l("div", {
2171
+ children: [c("div", {
2158
2172
  className: ge.b("header"),
2159
- children: [l("div", {
2173
+ children: [c("div", {
2160
2174
  className: ge.be("header", "caption"),
2161
2175
  children: "AI "
2162
2176
  }), i.children]
2163
- }), l("div", {
2177
+ }), c("div", {
2164
2178
  className: "".concat(ge.e("content"), " pre-wrap-container"),
2165
- children: l("span", {
2179
+ children: c("span", {
2166
2180
  children: e
2167
2181
  })
2168
2182
  })]
2169
2183
  });
2170
2184
  };
2171
- const vt = new $("unknown-message"), un = (i) => l("div", {
2172
- className: vt.b(),
2173
- children: l("span", {
2174
- className: "".concat(vt.e("content"), " pre-wrap-container"),
2185
+ const mt = new $("unknown-message"), dn = (i) => c("div", {
2186
+ className: mt.b(),
2187
+ children: c("span", {
2188
+ className: "".concat(mt.e("content"), " pre-wrap-container"),
2175
2189
  children: ["暂未支持的消息类型: ", i.message.type]
2176
2190
  })
2177
2191
  });
2178
- const hn = new $("chat-message-item"), dn = (i) => {
2192
+ const fn = new $("chat-message-item"), pn = (i) => {
2179
2193
  const {
2180
2194
  message: e,
2181
2195
  size: t
@@ -2183,17 +2197,17 @@ const hn = new $("chat-message-item"), dn = (i) => {
2183
2197
  let n = null;
2184
2198
  switch (e.type) {
2185
2199
  case "DEFAULT":
2186
- n = e.role === "ASSISTANT" ? on : cn;
2200
+ n = e.role === "ASSISTANT" ? an : un;
2187
2201
  break;
2188
2202
  case "ERROR":
2189
- n = ln;
2203
+ n = hn;
2190
2204
  break;
2191
2205
  default:
2192
- n = un;
2206
+ n = dn;
2193
2207
  }
2194
- return l("div", {
2195
- className: hn.b(),
2196
- children: I(n, {
2208
+ return c("div", {
2209
+ className: fn.b(),
2210
+ children: P(n, {
2197
2211
  size: t,
2198
2212
  message: e,
2199
2213
  controller: i.controller,
@@ -2201,7 +2215,101 @@ const hn = new $("chat-message-item"), dn = (i) => {
2201
2215
  })
2202
2216
  });
2203
2217
  };
2204
- const ee = new $("chat-toolbar"), Ge = (i) => {
2218
+ class ie {
2219
+ constructor(e) {
2220
+ this.msg = e;
2221
+ }
2222
+ get messageid() {
2223
+ return this.msg.messageid;
2224
+ }
2225
+ get state() {
2226
+ return this.msg.state;
2227
+ }
2228
+ get role() {
2229
+ return this.msg.role;
2230
+ }
2231
+ get type() {
2232
+ return this.msg.type;
2233
+ }
2234
+ get realcontent() {
2235
+ let e = this.msg.content;
2236
+ if (e.indexOf("<think>") !== -1 && e.indexOf("</think>") === -1 || (e = e.replace(new RegExp("\\<think\\>[^]*?\\<\\/think\\>", "gs"), "").trim(), e.indexOf("<resources>") !== -1 && e.indexOf("</resources>") === -1))
2237
+ return "";
2238
+ e = e.replace(new RegExp("\\<resources\\>[^]*?\\<\\/resources\\>", "gs"), "").trim();
2239
+ const t = e.indexOf("<suggestions>");
2240
+ return t !== -1 && (e = e.substring(0, t).trim()), e;
2241
+ }
2242
+ get content() {
2243
+ return this.msg.content;
2244
+ }
2245
+ get completed() {
2246
+ return this.msg.completed;
2247
+ }
2248
+ get _origin() {
2249
+ return this.msg;
2250
+ }
2251
+ /**
2252
+ * 更新消息
2253
+ *
2254
+ * @author chitanda
2255
+ * @date 2023-10-10 17:10:07
2256
+ * @param {IChatMessage} msg
2257
+ */
2258
+ update(e) {
2259
+ e.content || (e.content = ""), this.msg.content += e.content;
2260
+ }
2261
+ /**
2262
+ * 更新消息完成状态
2263
+ *
2264
+ * @author tony001
2265
+ * @date 2025-02-25 17:02:31
2266
+ * @param {boolean} completed
2267
+ */
2268
+ updateCompleted(e) {
2269
+ this.msg.completed = e;
2270
+ }
2271
+ }
2272
+ class be {
2273
+ constructor(e) {
2274
+ this.data = e;
2275
+ }
2276
+ get appid() {
2277
+ return this.data.appid;
2278
+ }
2279
+ get id() {
2280
+ return this.data.id;
2281
+ }
2282
+ get type() {
2283
+ return this.data.type;
2284
+ }
2285
+ get caption() {
2286
+ return this.data.caption;
2287
+ }
2288
+ get url() {
2289
+ return this.data.url;
2290
+ }
2291
+ get aiChat() {
2292
+ return this.data.aiChat;
2293
+ }
2294
+ }
2295
+ class We {
2296
+ constructor(e) {
2297
+ this.material = e;
2298
+ }
2299
+ get id() {
2300
+ return this.material.id;
2301
+ }
2302
+ get type() {
2303
+ return this.material.type;
2304
+ }
2305
+ get metadata() {
2306
+ return this.material.metadata;
2307
+ }
2308
+ get data() {
2309
+ return this.material.data;
2310
+ }
2311
+ }
2312
+ const te = new $("chat-toolbar"), Ge = (i) => {
2205
2313
  const {
2206
2314
  controller: e,
2207
2315
  items: t = [],
@@ -2213,44 +2321,44 @@ const ee = new $("chat-toolbar"), Ge = (i) => {
2213
2321
  const u = [{
2214
2322
  label: "新建对话",
2215
2323
  title: "新建对话",
2216
- icon: l(ji, {}),
2324
+ icon: () => c(Xi, {}),
2217
2325
  onClick: () => {
2218
2326
  e.newDialogue();
2219
2327
  }
2220
2328
  }], h = [{
2221
2329
  label: "刷新",
2222
2330
  title: "刷新",
2223
- icon: l(_t, {}),
2331
+ icon: () => c(vt, {}),
2224
2332
  onClick: () => {
2225
2333
  e.refreshMessage(n);
2226
2334
  }
2227
2335
  }, {
2228
2336
  label: "删除",
2229
2337
  title: "删除",
2230
- icon: l(Pi, {}),
2338
+ icon: () => c(Ui, {}),
2231
2339
  onClick: () => {
2232
2340
  e.deleteMessage(n);
2233
2341
  }
2234
2342
  }, {
2235
2343
  label: "复制",
2236
2344
  title: "复制",
2237
- icon: l(Fi, {}),
2345
+ icon: () => c(Wi, {}),
2238
2346
  onClick: () => {
2239
2347
  e.copyMessage(n);
2240
2348
  }
2241
2349
  }];
2242
- Qt(it).enableBackFill && h.unshift({
2350
+ ei(nt).enableBackFill && h.unshift({
2243
2351
  label: "回填",
2244
2352
  title: "回填",
2245
- icon: l(Bi, {}),
2353
+ icon: () => c(Ri, {}),
2246
2354
  onClick: () => {
2247
2355
  e.backfill(n);
2248
2356
  }
2249
2357
  });
2250
- const c = [{
2358
+ const l = [{
2251
2359
  label: "刷新",
2252
2360
  title: "刷新",
2253
- icon: l(_t, {}),
2361
+ icon: () => c(vt, {}),
2254
2362
  onClick: () => {
2255
2363
  e.refreshMessage(n, !0);
2256
2364
  }
@@ -2258,7 +2366,7 @@ const ee = new $("chat-toolbar"), Ge = (i) => {
2258
2366
  if (s === "content")
2259
2367
  switch (a = "circle", n.type) {
2260
2368
  case "DEFAULT":
2261
- n.role === "ASSISTANT" ? r = [...h, ...t] : r = [...c];
2369
+ n.role === "ASSISTANT" ? r = [...h, ...t] : r = [...l];
2262
2370
  break;
2263
2371
  case "ERROR":
2264
2372
  r = [...h, ...t];
@@ -2266,36 +2374,52 @@ const ee = new $("chat-toolbar"), Ge = (i) => {
2266
2374
  }
2267
2375
  else
2268
2376
  r = [...u, ...t];
2269
- const p = (_) => typeof _.hidden == "function" ? _.hidden(n) : _.hidden === !0, m = (_) => typeof _.disabled == "function" ? _.disabled(n) : _.disabled === !0, f = (_, y) => {
2270
- var E;
2377
+ const _ = (p) => typeof p.hidden == "function" ? p.hidden(n) : p.hidden === !0, m = (p) => typeof p.disabled == "function" ? p.disabled(n) : p.disabled === !0, f = (p, y) => {
2271
2378
  if (m(y))
2272
2379
  return;
2273
- const C = {
2274
- ...n,
2275
- topic: e.topic
2380
+ const w = {
2381
+ ...n
2276
2382
  };
2277
- C.msg.realcontent = n.realcontent, (E = y.onClick) == null || E.call(y, _, e.context, e.params, C);
2278
- }, v = P(() => s === "content" && (n == null ? void 0 : n.state) === 20 && (n == null ? void 0 : n.completed) !== !0, [n == null ? void 0 : n.state, n == null ? void 0 : n.completed]);
2279
- return l("div", {
2280
- className: "".concat(ee.b(), " ").concat(ee.e(a), " ").concat(o || ""),
2281
- children: r.map((_, y) => {
2282
- if (!p(_))
2283
- return l("div", {
2284
- className: "".concat(ee.e("item"), " ").concat(ee.is("disabled", m(_) || v), " ").concat(o || ""),
2285
- title: _.title,
2286
- onClick: (C) => f(C, _),
2287
- children: [l("div", {
2288
- className: "".concat(ee.em("item", "icon")),
2289
- children: typeof _.icon == "function" ? _.icon(I) : _.icon
2290
- }), l("div", {
2291
- className: "".concat(ee.em("item", "label")),
2292
- children: typeof _.label == "function" ? _.label(I) : _.label
2383
+ if (n instanceof ie && (Object.assign(w, {
2384
+ topic: e.topic
2385
+ }), w.msg.realcontent = n.realcontent), y.onClick && typeof y.onClick == "function")
2386
+ y.onClick(p, y, e.context, e.params, w);
2387
+ else {
2388
+ const x = i.controller.opts.extendToolbarClick;
2389
+ x && typeof x == "function" && x(p, y, e.context, e.params, w);
2390
+ }
2391
+ }, v = F(() => s === "content" && (n == null ? void 0 : n.state) === 20 && (n == null ? void 0 : n.completed) !== !0, [n == null ? void 0 : n.state, n == null ? void 0 : n.completed]);
2392
+ return c("div", {
2393
+ className: "".concat(te.b(), " ").concat(te.e(a), " ").concat(o || ""),
2394
+ children: r.map((p, y) => {
2395
+ var w, x, T;
2396
+ if (!_(p))
2397
+ return c("div", {
2398
+ className: "".concat(te.e("item"), " ").concat(te.is("disabled", m(p) || v), " ").concat(o || ""),
2399
+ title: p.title,
2400
+ onClick: (S) => f(S, p),
2401
+ children: [c("div", {
2402
+ className: "".concat(te.em("item", "icon")),
2403
+ children: typeof p.icon == "function" ? p.icon() : ((w = p.icon) == null ? void 0 : w.showIcon) && c(R, {
2404
+ children: (x = p.icon) != null && x.cssClass ? c("i", {
2405
+ className: p.icon.cssClass
2406
+ }) : (T = p.icon) != null && T.imagePath ? Qe(p.icon.imagePath) ? c("div", {
2407
+ dangerouslySetInnerHTML: {
2408
+ __html: p.icon.imagePath
2409
+ }
2410
+ }) : c("img", {
2411
+ src: p.icon.imagePath
2412
+ }) : null
2413
+ })
2414
+ }), c("div", {
2415
+ className: "".concat(te.em("item", "label")),
2416
+ children: p.label
2293
2417
  })]
2294
2418
  }, y);
2295
2419
  })
2296
2420
  });
2297
2421
  };
2298
- function fn(i, e) {
2422
+ function _n(i, e) {
2299
2423
  let t = null;
2300
2424
  return function(...n) {
2301
2425
  t || (t = setTimeout(() => {
@@ -2303,8 +2427,8 @@ function fn(i, e) {
2303
2427
  }, e));
2304
2428
  };
2305
2429
  }
2306
- const pn = (i) => {
2307
- const e = B(!1), t = B({}), n = new $("chat-back-bottom"), s = B(null), o = () => {
2430
+ const vn = (i) => {
2431
+ const e = O(!1), t = O({}), n = new $("chat-back-bottom"), s = O(null), o = () => {
2308
2432
  if (s.value) {
2309
2433
  const u = i.visibilityHeight || 200, h = s.value.scrollHeight - s.value.scrollTop - s.value.offsetHeight;
2310
2434
  e.value = h >= u;
@@ -2314,61 +2438,75 @@ const pn = (i) => {
2314
2438
  top: s.value.scrollHeight,
2315
2439
  behavior: "smooth"
2316
2440
  });
2317
- }, a = fn(o, 300);
2318
- return P(() => {
2441
+ }, a = _n(o, 300);
2442
+ return F(() => {
2319
2443
  t.value = {
2320
2444
  right: "".concat(i.right, "px"),
2321
2445
  bottom: "".concat(i.bottom, "px")
2322
2446
  };
2323
- }, [i.right, i.bottom]), R(() => {
2447
+ }, [i.right, i.bottom]), B(() => {
2324
2448
  var u;
2325
2449
  if (i.target) {
2326
2450
  const h = (u = document.querySelector(i.target)) != null ? u : void 0;
2327
2451
  h && (s.value = h, h.addEventListener("scroll", a), o());
2328
2452
  }
2329
- }, []), l("div", {
2453
+ }, []), c("div", {
2330
2454
  className: "".concat(n.b(), " ").concat(n.is("visible", e.value)),
2331
2455
  style: t.value,
2332
2456
  onClick: r,
2333
- children: l(nn, {
2457
+ children: c(on, {
2334
2458
  className: n.e("icon")
2335
2459
  })
2336
2460
  });
2337
2461
  };
2338
- const mt = new $("chat-messages"), gt = (i) => {
2339
- const e = K(null), t = i.controller.messages;
2340
- return Hi(() => {
2341
- e.current && t.value.length > 0 && (e.current.scrollTop = e.current.scrollHeight);
2342
- }), l("div", {
2462
+ const gt = new $("chat-messages"), bt = (i) => {
2463
+ const e = Z(null), t = i.controller.messages, n = Z(!1);
2464
+ Oi(() => {
2465
+ const o = e.current;
2466
+ !o || t.value.length === 0 || n.current || (o.scrollTop = o.scrollHeight);
2467
+ });
2468
+ const s = () => {
2469
+ const o = e.current;
2470
+ if (!o)
2471
+ return;
2472
+ const {
2473
+ scrollTop: r,
2474
+ scrollHeight: a,
2475
+ clientHeight: u
2476
+ } = o;
2477
+ a - (r + u) < 50 ? n.current = !1 : n.current = !0;
2478
+ };
2479
+ return c("div", {
2343
2480
  ref: e,
2344
- className: mt.b(),
2345
- children: [t.value.map((n) => {
2346
- var o;
2347
- const s = ((o = n.content) == null ? void 0 : o.length) || 0;
2348
- return l(dn, {
2349
- size: s,
2350
- message: n,
2481
+ className: gt.b(),
2482
+ onScroll: s,
2483
+ children: [t.value.map((o) => {
2484
+ var a;
2485
+ const r = ((a = o.content) == null ? void 0 : a.length) || 0;
2486
+ return o.role !== "SYSTEM" ? c(pn, {
2487
+ size: r,
2488
+ message: o,
2351
2489
  controller: i.controller,
2352
- children: l(Ge, {
2353
- data: n,
2490
+ children: c(Ge, {
2491
+ data: o,
2354
2492
  type: "content",
2355
2493
  items: i.toolbarItems,
2356
2494
  controller: i.controller
2357
2495
  })
2358
- }, n.messageid);
2359
- }), l(pn, {
2496
+ }, o.messageid) : null;
2497
+ }), c(vn, {
2360
2498
  right: 20,
2361
2499
  bottom: 14,
2362
- target: ".".concat(mt.b())
2500
+ target: ".".concat(gt.b())
2363
2501
  })]
2364
2502
  });
2365
2503
  };
2366
- function _n(i, e) {
2504
+ function mn(i, e) {
2367
2505
  for (var t in e)
2368
2506
  i[t] = e[t];
2369
2507
  return i;
2370
2508
  }
2371
- function bt(i, e) {
2509
+ function yt(i, e) {
2372
2510
  for (var t in i)
2373
2511
  if (t !== "__source" && !(t in e))
2374
2512
  return !0;
@@ -2377,55 +2515,55 @@ function bt(i, e) {
2377
2515
  return !0;
2378
2516
  return !1;
2379
2517
  }
2380
- function yt(i) {
2518
+ function wt(i) {
2381
2519
  this.props = i;
2382
2520
  }
2383
- (yt.prototype = new H()).isPureReactComponent = !0, yt.prototype.shouldComponentUpdate = function(i, e) {
2384
- return bt(this.props, i) || bt(this.state, e);
2521
+ (wt.prototype = new z()).isPureReactComponent = !0, wt.prototype.shouldComponentUpdate = function(i, e) {
2522
+ return yt(this.props, i) || yt(this.state, e);
2385
2523
  };
2386
- var wt = g.__b;
2524
+ var Ct = g.__b;
2387
2525
  g.__b = function(i) {
2388
- i.type && i.type.__f && i.ref && (i.props.ref = i.ref, i.ref = null), wt && wt(i);
2526
+ i.type && i.type.__f && i.ref && (i.props.ref = i.ref, i.ref = null), Ct && Ct(i);
2389
2527
  };
2390
- var vn = g.__e;
2528
+ var gn = g.__e;
2391
2529
  g.__e = function(i, e, t, n) {
2392
2530
  if (i.then) {
2393
2531
  for (var s, o = e; o = o.__; )
2394
2532
  if ((s = o.__c) && s.__c)
2395
2533
  return e.__e == null && (e.__e = t.__e, e.__k = t.__k), s.__c(i, e);
2396
2534
  }
2397
- vn(i, e, t, n);
2535
+ gn(i, e, t, n);
2398
2536
  };
2399
- var Ct = g.unmount;
2400
- function hi(i, e, t) {
2537
+ var Tt = g.unmount;
2538
+ function di(i, e, t) {
2401
2539
  return i && (i.__c && i.__c.__H && (i.__c.__H.__.forEach(function(n) {
2402
2540
  typeof n.__c == "function" && n.__c();
2403
- }), i.__c.__H = null), (i = _n({}, i)).__c != null && (i.__c.__P === t && (i.__c.__P = e), i.__c = null), i.__k = i.__k && i.__k.map(function(n) {
2404
- return hi(n, e, t);
2541
+ }), i.__c.__H = null), (i = mn({}, i)).__c != null && (i.__c.__P === t && (i.__c.__P = e), i.__c = null), i.__k = i.__k && i.__k.map(function(n) {
2542
+ return di(n, e, t);
2405
2543
  })), i;
2406
2544
  }
2407
- function di(i, e, t) {
2545
+ function fi(i, e, t) {
2408
2546
  return i && t && (i.__v = null, i.__k = i.__k && i.__k.map(function(n) {
2409
- return di(n, e, t);
2547
+ return fi(n, e, t);
2410
2548
  }), i.__c && i.__c.__P === e && (i.__e && t.insertBefore(i.__e, i.__d), i.__c.__e = !0, i.__c.__P = t)), i;
2411
2549
  }
2412
- function We() {
2550
+ function Ve() {
2413
2551
  this.__u = 0, this.t = null, this.__b = null;
2414
2552
  }
2415
- function fi(i) {
2553
+ function pi(i) {
2416
2554
  var e = i.__.__c;
2417
2555
  return e && e.__a && e.__a(i);
2418
2556
  }
2419
- function be() {
2557
+ function ye() {
2420
2558
  this.u = null, this.o = null;
2421
2559
  }
2422
2560
  g.unmount = function(i) {
2423
2561
  var e = i.__c;
2424
- e && e.__R && e.__R(), e && i.__h === !0 && (i.type = null), Ct && Ct(i);
2425
- }, (We.prototype = new H()).__c = function(i, e) {
2562
+ e && e.__R && e.__R(), e && i.__h === !0 && (i.type = null), Tt && Tt(i);
2563
+ }, (Ve.prototype = new z()).__c = function(i, e) {
2426
2564
  var t = e.__c, n = this;
2427
2565
  n.t == null && (n.t = []), n.t.push(t);
2428
- var s = fi(n.__v), o = !1, r = function() {
2566
+ var s = pi(n.__v), o = !1, r = function() {
2429
2567
  o || (o = !0, t.__R = null, s ? s(a) : a());
2430
2568
  };
2431
2569
  t.__R = r;
@@ -2433,7 +2571,7 @@ g.unmount = function(i) {
2433
2571
  if (!--n.__u) {
2434
2572
  if (n.state.__a) {
2435
2573
  var h = n.state.__a;
2436
- n.__v.__k[0] = di(h, h.__c.__P, h.__c.__O);
2574
+ n.__v.__k[0] = fi(h, h.__c.__P, h.__c.__O);
2437
2575
  }
2438
2576
  var d;
2439
2577
  for (n.setState({ __a: n.__b = null }); d = n.t.pop(); )
@@ -2441,20 +2579,20 @@ g.unmount = function(i) {
2441
2579
  }
2442
2580
  }, u = e.__h === !0;
2443
2581
  n.__u++ || u || n.setState({ __a: n.__b = n.__v.__k[0] }), i.then(r, r);
2444
- }, We.prototype.componentWillUnmount = function() {
2582
+ }, Ve.prototype.componentWillUnmount = function() {
2445
2583
  this.t = [];
2446
- }, We.prototype.render = function(i, e) {
2584
+ }, Ve.prototype.render = function(i, e) {
2447
2585
  if (this.__b) {
2448
2586
  if (this.__v.__k) {
2449
2587
  var t = document.createElement("div"), n = this.__v.__k[0].__c;
2450
- this.__v.__k[0] = hi(this.__b, t, n.__O = n.__P);
2588
+ this.__v.__k[0] = di(this.__b, t, n.__O = n.__P);
2451
2589
  }
2452
2590
  this.__b = null;
2453
2591
  }
2454
- var s = e.__a && I(se, null, i.fallback);
2455
- return s && (s.__h = null), [I(se, null, e.__a ? null : i.children), s];
2592
+ var s = e.__a && P(R, null, i.fallback);
2593
+ return s && (s.__h = null), [P(R, null, e.__a ? null : i.children), s];
2456
2594
  };
2457
- var Tt = function(i, e, t) {
2595
+ var xt = function(i, e, t) {
2458
2596
  if (++t[1] === t[0] && i.o.delete(e), i.props.revealOrder && (i.props.revealOrder[0] !== "t" || !i.o.size))
2459
2597
  for (t = i.u; t; ) {
2460
2598
  for (; t.length > 3; )
@@ -2464,106 +2602,106 @@ var Tt = function(i, e, t) {
2464
2602
  i.u = t = t[2];
2465
2603
  }
2466
2604
  };
2467
- function mn(i) {
2605
+ function bn(i) {
2468
2606
  return this.getChildContext = function() {
2469
2607
  return i.context;
2470
2608
  }, i.children;
2471
2609
  }
2472
- function gn(i) {
2610
+ function yn(i) {
2473
2611
  var e = this, t = i.i;
2474
2612
  e.componentWillUnmount = function() {
2475
- te(null, e.l), e.l = null, e.i = null;
2613
+ ne(null, e.l), e.l = null, e.i = null;
2476
2614
  }, e.i && e.i !== t && e.componentWillUnmount(), e.l || (e.i = t, e.l = { nodeType: 1, parentNode: t, childNodes: [], appendChild: function(n) {
2477
2615
  this.childNodes.push(n), e.i.appendChild(n);
2478
2616
  }, insertBefore: function(n, s) {
2479
2617
  this.childNodes.push(n), e.i.appendChild(n);
2480
2618
  }, removeChild: function(n) {
2481
2619
  this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.i.removeChild(n);
2482
- } }), te(I(mn, { context: e.context }, i.__v), e.l);
2620
+ } }), ne(P(bn, { context: e.context }, i.__v), e.l);
2483
2621
  }
2484
- function bn(i, e) {
2485
- var t = I(gn, { __v: i, i: e });
2622
+ function wn(i, e) {
2623
+ var t = P(yn, { __v: i, i: e });
2486
2624
  return t.containerInfo = e, t;
2487
2625
  }
2488
- (be.prototype = new H()).__a = function(i) {
2489
- var e = this, t = fi(e.__v), n = e.o.get(i);
2626
+ (ye.prototype = new z()).__a = function(i) {
2627
+ var e = this, t = pi(e.__v), n = e.o.get(i);
2490
2628
  return n[0]++, function(s) {
2491
2629
  var o = function() {
2492
- e.props.revealOrder ? (n.push(s), Tt(e, i, n)) : s();
2630
+ e.props.revealOrder ? (n.push(s), xt(e, i, n)) : s();
2493
2631
  };
2494
2632
  t ? t(o) : o();
2495
2633
  };
2496
- }, be.prototype.render = function(i) {
2634
+ }, ye.prototype.render = function(i) {
2497
2635
  this.u = null, this.o = /* @__PURE__ */ new Map();
2498
2636
  var e = Se(i.children);
2499
2637
  i.revealOrder && i.revealOrder[0] === "b" && e.reverse();
2500
2638
  for (var t = e.length; t--; )
2501
2639
  this.o.set(e[t], this.u = [1, 0, this.u]);
2502
2640
  return i.children;
2503
- }, be.prototype.componentDidUpdate = be.prototype.componentDidMount = function() {
2641
+ }, ye.prototype.componentDidUpdate = ye.prototype.componentDidMount = function() {
2504
2642
  var i = this;
2505
2643
  this.o.forEach(function(e, t) {
2506
- Tt(i, t, e);
2644
+ xt(i, t, e);
2507
2645
  });
2508
2646
  };
2509
- var yn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, wn = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Cn = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Tn = /[A-Z0-9]/g, xn = typeof document < "u", Sn = function(i) {
2647
+ var Cn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Tn = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, xn = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Sn = /[A-Z0-9]/g, kn = typeof document < "u", En = function(i) {
2510
2648
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(i);
2511
2649
  };
2512
- H.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(i) {
2513
- Object.defineProperty(H.prototype, i, { configurable: !0, get: function() {
2650
+ z.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(i) {
2651
+ Object.defineProperty(z.prototype, i, { configurable: !0, get: function() {
2514
2652
  return this["UNSAFE_" + i];
2515
2653
  }, set: function(e) {
2516
2654
  Object.defineProperty(this, i, { configurable: !0, writable: !0, value: e });
2517
2655
  } });
2518
2656
  });
2519
- var xt = g.event;
2520
- function kn() {
2657
+ var St = g.event;
2658
+ function Nn() {
2521
2659
  }
2522
- function En() {
2660
+ function $n() {
2523
2661
  return this.cancelBubble;
2524
2662
  }
2525
- function Nn() {
2663
+ function Mn() {
2526
2664
  return this.defaultPrevented;
2527
2665
  }
2528
2666
  g.event = function(i) {
2529
- return xt && (i = xt(i)), i.persist = kn, i.isPropagationStopped = En, i.isDefaultPrevented = Nn, i.nativeEvent = i;
2667
+ return St && (i = St(i)), i.persist = Nn, i.isPropagationStopped = $n, i.isDefaultPrevented = Mn, i.nativeEvent = i;
2530
2668
  };
2531
- var $n = { enumerable: !1, configurable: !0, get: function() {
2669
+ var An = { enumerable: !1, configurable: !0, get: function() {
2532
2670
  return this.class;
2533
- } }, St = g.vnode;
2671
+ } }, kt = g.vnode;
2534
2672
  g.vnode = function(i) {
2535
2673
  typeof i.type == "string" && function(e) {
2536
2674
  var t = e.props, n = e.type, s = {};
2537
2675
  for (var o in t) {
2538
2676
  var r = t[o];
2539
- if (!(o === "value" && "defaultValue" in t && r == null || xn && o === "children" && n === "noscript" || o === "class" || o === "className")) {
2677
+ if (!(o === "value" && "defaultValue" in t && r == null || kn && o === "children" && n === "noscript" || o === "class" || o === "className")) {
2540
2678
  var a = o.toLowerCase();
2541
- o === "defaultValue" && "value" in t && t.value == null ? o = "value" : o === "download" && r === !0 ? r = "" : a === "ondoubleclick" ? o = "ondblclick" : a !== "onchange" || n !== "input" && n !== "textarea" || Sn(t.type) ? a === "onfocus" ? o = "onfocusin" : a === "onblur" ? o = "onfocusout" : Cn.test(o) ? o = a : n.indexOf("-") === -1 && wn.test(o) ? o = o.replace(Tn, "-$&").toLowerCase() : r === null && (r = void 0) : a = o = "oninput", a === "oninput" && s[o = a] && (o = "oninputCapture"), s[o] = r;
2679
+ o === "defaultValue" && "value" in t && t.value == null ? o = "value" : o === "download" && r === !0 ? r = "" : a === "ondoubleclick" ? o = "ondblclick" : a !== "onchange" || n !== "input" && n !== "textarea" || En(t.type) ? a === "onfocus" ? o = "onfocusin" : a === "onblur" ? o = "onfocusout" : xn.test(o) ? o = a : n.indexOf("-") === -1 && Tn.test(o) ? o = o.replace(Sn, "-$&").toLowerCase() : r === null && (r = void 0) : a = o = "oninput", a === "oninput" && s[o = a] && (o = "oninputCapture"), s[o] = r;
2542
2680
  }
2543
2681
  }
2544
2682
  n == "select" && s.multiple && Array.isArray(s.value) && (s.value = Se(t.children).forEach(function(u) {
2545
2683
  u.props.selected = s.value.indexOf(u.props.value) != -1;
2546
2684
  })), n == "select" && s.defaultValue != null && (s.value = Se(t.children).forEach(function(u) {
2547
2685
  u.props.selected = s.multiple ? s.defaultValue.indexOf(u.props.value) != -1 : s.defaultValue == u.props.value;
2548
- })), t.class && !t.className ? (s.class = t.class, Object.defineProperty(s, "className", $n)) : (t.className && !t.class || t.class && t.className) && (s.class = s.className = t.className), e.props = s;
2549
- }(i), i.$$typeof = yn, St && St(i);
2686
+ })), t.class && !t.className ? (s.class = t.class, Object.defineProperty(s, "className", An)) : (t.className && !t.class || t.class && t.className) && (s.class = s.className = t.className), e.props = s;
2687
+ }(i), i.$$typeof = Cn, kt && kt(i);
2550
2688
  };
2551
- var kt = g.__r;
2689
+ var Et = g.__r;
2552
2690
  g.__r = function(i) {
2553
- kt && kt(i), i.__c;
2691
+ Et && Et(i), i.__c;
2554
2692
  };
2555
- var Et = g.diffed;
2693
+ var Nt = g.diffed;
2556
2694
  g.diffed = function(i) {
2557
- Et && Et(i);
2695
+ Nt && Nt(i);
2558
2696
  var e = i.props, t = i.__e;
2559
2697
  t != null && i.type === "textarea" && "value" in e && e.value !== t.value && (t.value = e.value == null ? "" : e.value);
2560
2698
  };
2561
2699
  var fe = /* @__PURE__ */ new Map();
2562
- function Mn(i) {
2700
+ function In(i) {
2563
2701
  var e = fe.get(i);
2564
2702
  e && e.destroy();
2565
2703
  }
2566
- function An(i) {
2704
+ function Dn(i) {
2567
2705
  var e = fe.get(i);
2568
2706
  e && e.update();
2569
2707
  }
@@ -2580,27 +2718,27 @@ typeof window > "u" ? ((ue = function(i) {
2580
2718
  if (n && n.nodeName && n.nodeName === "TEXTAREA" && !fe.has(n)) {
2581
2719
  var s, o = null, r = window.getComputedStyle(n), a = (s = n.value, function() {
2582
2720
  h({ testForHeightReduction: s === "" || !n.value.startsWith(s), restoreTextAlign: null }), s = n.value;
2583
- }), u = (function(c) {
2584
- n.removeEventListener("autosize:destroy", u), n.removeEventListener("autosize:update", d), n.removeEventListener("input", a), window.removeEventListener("resize", d), Object.keys(c).forEach(function(p) {
2585
- return n.style[p] = c[p];
2721
+ }), u = (function(l) {
2722
+ n.removeEventListener("autosize:destroy", u), n.removeEventListener("autosize:update", d), n.removeEventListener("input", a), window.removeEventListener("resize", d), Object.keys(l).forEach(function(_) {
2723
+ return n.style[_] = l[_];
2586
2724
  }), fe.delete(n);
2587
2725
  }).bind(n, { height: n.style.height, resize: n.style.resize, textAlign: n.style.textAlign, overflowY: n.style.overflowY, overflowX: n.style.overflowX, wordWrap: n.style.wordWrap });
2588
2726
  n.addEventListener("autosize:destroy", u), n.addEventListener("autosize:update", d), n.addEventListener("input", a), window.addEventListener("resize", d), n.style.overflowX = "hidden", n.style.wordWrap = "break-word", fe.set(n, { destroy: u, update: d }), d();
2589
2727
  }
2590
- function h(c) {
2591
- var p, m, f = c.restoreTextAlign, v = f === void 0 ? null : f, _ = c.testForHeightReduction, y = _ === void 0 || _, C = r.overflowY;
2592
- if (n.scrollHeight !== 0 && (r.resize === "vertical" ? n.style.resize = "none" : r.resize === "both" && (n.style.resize = "horizontal"), y && (p = function(T) {
2593
- for (var k = []; T && T.parentNode && T.parentNode instanceof Element; )
2594
- T.parentNode.scrollTop && k.push([T.parentNode, T.parentNode.scrollTop]), T = T.parentNode;
2728
+ function h(l) {
2729
+ var _, m, f = l.restoreTextAlign, v = f === void 0 ? null : f, p = l.testForHeightReduction, y = p === void 0 || p, w = r.overflowY;
2730
+ if (n.scrollHeight !== 0 && (r.resize === "vertical" ? n.style.resize = "none" : r.resize === "both" && (n.style.resize = "horizontal"), y && (_ = function(T) {
2731
+ for (var S = []; T && T.parentNode && T.parentNode instanceof Element; )
2732
+ T.parentNode.scrollTop && S.push([T.parentNode, T.parentNode.scrollTop]), T = T.parentNode;
2595
2733
  return function() {
2596
- return k.forEach(function(F) {
2597
- var D = F[0], U = F[1];
2598
- D.style.scrollBehavior = "auto", D.scrollTop = U, D.style.scrollBehavior = null;
2734
+ return S.forEach(function(U) {
2735
+ var I = U[0], W = U[1];
2736
+ I.style.scrollBehavior = "auto", I.scrollTop = W, I.style.scrollBehavior = null;
2599
2737
  });
2600
2738
  };
2601
- }(n), n.style.height = ""), m = r.boxSizing === "content-box" ? n.scrollHeight - (parseFloat(r.paddingTop) + parseFloat(r.paddingBottom)) : n.scrollHeight + parseFloat(r.borderTopWidth) + parseFloat(r.borderBottomWidth), r.maxHeight !== "none" && m > parseFloat(r.maxHeight) ? (r.overflowY === "hidden" && (n.style.overflow = "scroll"), m = parseFloat(r.maxHeight)) : r.overflowY !== "hidden" && (n.style.overflow = "hidden"), n.style.height = m + "px", v && (n.style.textAlign = v), p && p(), o !== m && (n.dispatchEvent(new Event("autosize:resized", { bubbles: !0 })), o = m), C !== r.overflow && !v)) {
2602
- var E = r.textAlign;
2603
- r.overflow === "hidden" && (n.style.textAlign = E === "start" ? "end" : "start"), h({ restoreTextAlign: E, testForHeightReduction: !0 });
2739
+ }(n), n.style.height = ""), m = r.boxSizing === "content-box" ? n.scrollHeight - (parseFloat(r.paddingTop) + parseFloat(r.paddingBottom)) : n.scrollHeight + parseFloat(r.borderTopWidth) + parseFloat(r.borderBottomWidth), r.maxHeight !== "none" && m > parseFloat(r.maxHeight) ? (r.overflowY === "hidden" && (n.style.overflow = "scroll"), m = parseFloat(r.maxHeight)) : r.overflowY !== "hidden" && (n.style.overflow = "hidden"), n.style.height = m + "px", v && (n.style.textAlign = v), _ && _(), o !== m && (n.dispatchEvent(new Event("autosize:resized", { bubbles: !0 })), o = m), w !== r.overflow && !v)) {
2740
+ var x = r.textAlign;
2741
+ r.overflow === "hidden" && (n.style.textAlign = x === "start" ? "end" : "start"), h({ restoreTextAlign: x, testForHeightReduction: !0 });
2604
2742
  }
2605
2743
  }
2606
2744
  function d() {
@@ -2609,107 +2747,12 @@ typeof window > "u" ? ((ue = function(i) {
2609
2747
  }(t);
2610
2748
  }), i;
2611
2749
  }).destroy = function(i) {
2612
- return i && Array.prototype.forEach.call(i.length ? i : [i], Mn), i;
2750
+ return i && Array.prototype.forEach.call(i.length ? i : [i], In), i;
2613
2751
  }, ue.update = function(i) {
2614
- return i && Array.prototype.forEach.call(i.length ? i : [i], An), i;
2752
+ return i && Array.prototype.forEach.call(i.length ? i : [i], Dn), i;
2615
2753
  });
2616
- var Nt = ue;
2617
- class le {
2618
- constructor(e) {
2619
- this.msg = e;
2620
- }
2621
- get messageid() {
2622
- return this.msg.messageid;
2623
- }
2624
- get state() {
2625
- return this.msg.state;
2626
- }
2627
- get role() {
2628
- return this.msg.role;
2629
- }
2630
- get type() {
2631
- return this.msg.type;
2632
- }
2633
- get realcontent() {
2634
- let e = this.msg.content;
2635
- if (e.indexOf("<think>") !== -1 && e.indexOf("</think>") === -1 || (e = e.replace(new RegExp("\\<think\\>[^]*?\\<\\/think\\>", "gs"), "").trim(), e.indexOf("<resources>") !== -1 && e.indexOf("</resources>") === -1))
2636
- return "";
2637
- e = e.replace(new RegExp("\\<resources\\>[^]*?\\<\\/resources\\>", "gs"), "").trim();
2638
- const t = e.indexOf("<suggestions>");
2639
- return t !== -1 && (e = e.substring(0, t).trim()), e;
2640
- }
2641
- get content() {
2642
- return this.msg.content;
2643
- }
2644
- get completed() {
2645
- return this.msg.completed;
2646
- }
2647
- get _origin() {
2648
- return this.msg;
2649
- }
2650
- /**
2651
- * 更新消息
2652
- *
2653
- * @author chitanda
2654
- * @date 2023-10-10 17:10:07
2655
- * @param {IChatMessage} msg
2656
- */
2657
- update(e) {
2658
- e.content || (e.content = ""), this.msg.content += e.content;
2659
- }
2660
- /**
2661
- * 更新消息完成状态
2662
- *
2663
- * @author tony001
2664
- * @date 2025-02-25 17:02:31
2665
- * @param {boolean} completed
2666
- */
2667
- updateCompleted(e) {
2668
- this.msg.completed = e;
2669
- }
2670
- }
2671
- class ye {
2672
- constructor(e) {
2673
- this.data = e;
2674
- }
2675
- get appid() {
2676
- return this.data.appid;
2677
- }
2678
- get id() {
2679
- return this.data.id;
2680
- }
2681
- get type() {
2682
- return this.data.type;
2683
- }
2684
- get caption() {
2685
- return this.data.caption;
2686
- }
2687
- get url() {
2688
- return this.data.url;
2689
- }
2690
- get aiChat() {
2691
- return this.data.aiChat;
2692
- }
2693
- }
2694
- class Ve {
2695
- constructor(e) {
2696
- this.material = e;
2697
- }
2698
- get id() {
2699
- return this.material.id;
2700
- }
2701
- get type() {
2702
- return this.material.type;
2703
- }
2704
- get metadata() {
2705
- return this.material.metadata;
2706
- }
2707
- get data() {
2708
- return this.material.data;
2709
- }
2710
- }
2711
- var N = /* @__PURE__ */ ((i) => (i.STYLE_CACHE = "ai-chat-style-cache", i.MINIMIZE_STYLY_CHCHE = "ai-chat-minimize-style-cache", i.DATA_BASE_NAME = "ibiz-chat", i.DATA_TABLE_NAME = "history-message", i.DATA_TABLE_KEY_NAME = "id", i))(N || {});
2712
- class $t {
2754
+ var $t = ue, N = /* @__PURE__ */ ((i) => (i.STYLE_CACHE = "ai-chat-style-cache", i.MINIMIZE_STYLY_CHCHE = "ai-chat-minimize-style-cache", i.DATA_BASE_NAME = "ibiz-chat", i.DATA_TABLE_NAME = "history-message", i.DATA_TABLE_KEY_NAME = "id", i))(N || {});
2755
+ class Mt {
2713
2756
  /**
2714
2757
  * 聊天窗触发提问回调
2715
2758
  *
@@ -2735,7 +2778,7 @@ class $t {
2735
2778
  * @date 2023-10-16 16:10:29
2736
2779
  * @type {Signal<ChatMessage[]>}
2737
2780
  */
2738
- w(this, "messages", j([]));
2781
+ C(this, "messages", Y([]));
2739
2782
  /**
2740
2783
  * 素材列表
2741
2784
  *
@@ -2743,7 +2786,7 @@ class $t {
2743
2786
  * @date 2025-02-27 18:02:46
2744
2787
  * @type {Signal<IMaterial[]>}
2745
2788
  */
2746
- w(this, "materials", j([]));
2789
+ C(this, "materials", Y([]));
2747
2790
  /**
2748
2791
  * 聊天框输入值
2749
2792
  *
@@ -2751,7 +2794,7 @@ class $t {
2751
2794
  * @date 2023-10-16 15:10:43
2752
2795
  * @type {Signal<string>}
2753
2796
  */
2754
- w(this, "input", j(""));
2797
+ C(this, "input", Y(""));
2755
2798
  /**
2756
2799
  * 是否加载中
2757
2800
  *
@@ -2759,7 +2802,7 @@ class $t {
2759
2802
  * @date 2025-03-10 18:03:42
2760
2803
  * @type {Signal<boolean>}
2761
2804
  */
2762
- w(this, "isLoading", j(!1));
2805
+ C(this, "isLoading", Y(!1));
2763
2806
  /**
2764
2807
  * 视图参数
2765
2808
  *
@@ -2767,7 +2810,7 @@ class $t {
2767
2810
  * @date 2025-02-24 14:02:23
2768
2811
  * @type {object}
2769
2812
  */
2770
- w(this, "context");
2813
+ C(this, "context");
2771
2814
  /**
2772
2815
  * 视图参数
2773
2816
  *
@@ -2775,7 +2818,7 @@ class $t {
2775
2818
  * @date 2025-02-24 14:02:32
2776
2819
  * @type {object}
2777
2820
  */
2778
- w(this, "params");
2821
+ C(this, "params");
2779
2822
  /**
2780
2823
  * 应用实体标记
2781
2824
  *
@@ -2783,7 +2826,7 @@ class $t {
2783
2826
  * @date 2025-02-24 14:02:10
2784
2827
  * @type {string}
2785
2828
  */
2786
- w(this, "appDataEntityId");
2829
+ C(this, "appDataEntityId");
2787
2830
  /**
2788
2831
  * 话题标识
2789
2832
  *
@@ -2791,7 +2834,7 @@ class $t {
2791
2834
  * @date 2025-02-24 18:02:02
2792
2835
  * @type {(string | undefined)}
2793
2836
  */
2794
- w(this, "topicId");
2837
+ C(this, "topicId");
2795
2838
  /**
2796
2839
  * 话题数据
2797
2840
  *
@@ -2799,7 +2842,7 @@ class $t {
2799
2842
  * @date 2025-03-10 16:03:26
2800
2843
  * @type {(ITopic | undefined)}
2801
2844
  */
2802
- w(this, "topic");
2845
+ C(this, "topic");
2803
2846
  this.opts = e, this.context = e.context, this.params = e.params, this.appDataEntityId = e.appDataEntityId, this.topicId = e.topicId, this.topic = e.topic, this.fecthHistory();
2804
2847
  }
2805
2848
  /**
@@ -2811,7 +2854,7 @@ class $t {
2811
2854
  */
2812
2855
  async fecthHistory() {
2813
2856
  if (this.topicId) {
2814
- const e = await Y.getData(N.DATA_BASE_NAME, N.DATA_TABLE_NAME, this.topicId);
2857
+ const e = await X.getData(N.DATA_BASE_NAME, N.DATA_TABLE_NAME, this.topicId);
2815
2858
  if (e && e.data && e.data.length > 0)
2816
2859
  return e.data.forEach((t) => {
2817
2860
  const n = {
@@ -2844,7 +2887,7 @@ class $t {
2844
2887
  data: this.messages.value.map((t) => t._origin),
2845
2888
  timestamp: (/* @__PURE__ */ new Date()).getTime()
2846
2889
  };
2847
- await Y.updateData(N.DATA_BASE_NAME, N.DATA_TABLE_NAME, e);
2890
+ await X.updateData(N.DATA_BASE_NAME, N.DATA_TABLE_NAME, e);
2848
2891
  }
2849
2892
  /**
2850
2893
  * 设置聊天框值
@@ -2865,7 +2908,7 @@ class $t {
2865
2908
  */
2866
2909
  addMessage(e) {
2867
2910
  const t = this.messages.value.find((n) => n.messageid === e.messageid);
2868
- t ? (t.update(e), this.messages.value = [...this.messages.value]) : this.messages.value = [...this.messages.value, new le(e)], this.asyncToIndexDB();
2911
+ t ? (t.update(e), this.messages.value = [...this.messages.value]) : this.messages.value = [...this.messages.value, new ie(e)], this.asyncToIndexDB();
2869
2912
  }
2870
2913
  /**
2871
2914
  * 更新消息完成状态
@@ -2888,7 +2931,7 @@ class $t {
2888
2931
  */
2889
2932
  replaceMessage(e) {
2890
2933
  const t = this.messages.value.findIndex((n) => n.messageid === e.messageid);
2891
- t !== -1 ? (this.messages.value[t] = new le(e), this.messages.value = [...this.messages.value]) : this.messages.value = [...this.messages.value, new le(e)], this.asyncToIndexDB();
2934
+ t !== -1 ? (this.messages.value[t] = new ie(e), this.messages.value = [...this.messages.value]) : this.messages.value = [...this.messages.value, new ie(e)], this.asyncToIndexDB();
2892
2935
  }
2893
2936
  /**
2894
2937
  * 终止消息
@@ -2901,9 +2944,9 @@ class $t {
2901
2944
  const t = this.messages.value.findIndex((n) => n.messageid === e.messageid);
2902
2945
  if (t !== -1) {
2903
2946
  const n = this.messages.value[t];
2904
- e.content = n.content, this.messages.value[t] = new le(e), this.messages.value = [...this.messages.value];
2947
+ e.content = n.content, this.messages.value[t] = new ie(e), this.messages.value = [...this.messages.value];
2905
2948
  } else
2906
- this.messages.value = [...this.messages.value, new le(e)];
2949
+ this.messages.value = [...this.messages.value, new ie(e)];
2907
2950
  this.asyncToIndexDB();
2908
2951
  }
2909
2952
  /**
@@ -2922,7 +2965,7 @@ class $t {
2922
2965
  s.state && s.state === "successed" && t.push(n);
2923
2966
  } else
2924
2967
  t.push(n);
2925
- }), this.materials.value = []), t && t.length > 0 && (e = Jt.stringify(t)), e;
2968
+ }), this.materials.value = []), t && t.length > 0 && (e = Kt.stringify(t)), e;
2926
2969
  }
2927
2970
  /**
2928
2971
  * 提问
@@ -2937,7 +2980,7 @@ class $t {
2937
2980
  let t = this.stringlyMaterialResource();
2938
2981
  t ? t += "\n".concat(e) : t = e, this.addMessage({
2939
2982
  state: 30,
2940
- messageid: Zt(),
2983
+ messageid: Gt(),
2941
2984
  role: "USER",
2942
2985
  type: "DEFAULT",
2943
2986
  content: t
@@ -3016,7 +3059,7 @@ class $t {
3016
3059
  */
3017
3060
  copyMessage(e) {
3018
3061
  const t = e.realcontent;
3019
- Gt.copy(t), this.opts.action && this.opts.action("copymsg", e);
3062
+ Jt.copy(t), this.opts.action && this.opts.action("copymsg", e);
3020
3063
  }
3021
3064
  /**
3022
3065
  * 新建对话
@@ -3024,7 +3067,7 @@ class $t {
3024
3067
  * @memberof AiChatController
3025
3068
  */
3026
3069
  async newDialogue() {
3027
- this.messages.value.length = 0, this.topicId && await Y.deleteData(N.DATA_BASE_NAME, N.DATA_TABLE_NAME, this.topicId), this.opts.history(this.context, this.params, {
3070
+ this.messages.value.length = 0, this.topicId && await X.deleteData(N.DATA_BASE_NAME, N.DATA_TABLE_NAME, this.topicId), this.opts.history(this.context, this.params, {
3028
3071
  appDataEntityId: this.appDataEntityId
3029
3072
  });
3030
3073
  }
@@ -3036,7 +3079,7 @@ class $t {
3036
3079
  * @param {IMaterial} data
3037
3080
  */
3038
3081
  addMaterial(e) {
3039
- this.materials.value.find((n) => n.id === e.id) ? this.materials.value = [...this.materials.value] : this.materials.value = [...this.materials.value, new Ve(e)];
3082
+ this.materials.value.find((n) => n.id === e.id) ? this.materials.value = [...this.materials.value] : this.materials.value = [...this.materials.value, new We(e)];
3040
3083
  }
3041
3084
  /**
3042
3085
  * 替换素材资源
@@ -3048,7 +3091,7 @@ class $t {
3048
3091
  */
3049
3092
  replaceMaterial(e, t) {
3050
3093
  const n = this.materials.value.findIndex((s) => s.id === e);
3051
- n !== -1 ? (this.materials.value[n] = new Ve(t), this.materials.value = [...this.materials.value]) : this.materials.value = [...this.materials.value, new Ve(t)];
3094
+ n !== -1 ? (this.materials.value[n] = new We(t), this.materials.value = [...this.materials.value]) : this.materials.value = [...this.materials.value, new We(t)];
3052
3095
  }
3053
3096
  /**
3054
3097
  * 删除指定素材资源
@@ -3062,7 +3105,7 @@ class $t {
3062
3105
  t !== -1 && (this.materials.value.splice(t, 1), this.materials.value = [...this.materials.value]);
3063
3106
  }
3064
3107
  }
3065
- class In {
3108
+ class zn {
3066
3109
  /**
3067
3110
  * Creates an instance of AiTopicController.
3068
3111
  * @author tony001
@@ -3077,7 +3120,7 @@ class In {
3077
3120
  * @date 2025-02-20 16:02:38
3078
3121
  * @type {Signal<ChatTopic[]>}
3079
3122
  */
3080
- w(this, "topics", j([]));
3123
+ C(this, "topics", Y([]));
3081
3124
  /**
3082
3125
  * 激活话题
3083
3126
  *
@@ -3085,7 +3128,7 @@ class In {
3085
3128
  * @date 2025-02-24 16:02:44
3086
3129
  * @type {(Signal<ITopic | null>)}
3087
3130
  */
3088
- w(this, "activedTopic", j(null));
3131
+ C(this, "activedTopic", Y(null));
3089
3132
  /**
3090
3133
  * 当前话题配置备份
3091
3134
  *
@@ -3094,7 +3137,7 @@ class In {
3094
3137
  * @public
3095
3138
  * @type {(ITopicOptions | undefined)}
3096
3139
  */
3097
- w(this, "currentTopicOptions");
3140
+ C(this, "currentTopicOptions");
3098
3141
  this.chat = e;
3099
3142
  }
3100
3143
  /**
@@ -3107,7 +3150,7 @@ class In {
3107
3150
  async fetchHistory(e) {
3108
3151
  const n = await e.configService(e.appid, "aitopics", e.type).load();
3109
3152
  n && n.length > 0 && n.forEach((s) => {
3110
- this.topics.value = [...this.topics.value, new ye(s)];
3153
+ this.topics.value = [...this.topics.value, new be(s)];
3111
3154
  });
3112
3155
  }
3113
3156
  /**
@@ -3120,8 +3163,8 @@ class In {
3120
3163
  */
3121
3164
  async updateCurrentTopic(e) {
3122
3165
  this.currentTopicOptions = e;
3123
- const t = this.topics.value.findIndex((r) => r.id === e.id), n = new ye(e);
3124
- t !== -1 ? this.topics.value.splice(t, 1, new ye(e)) : this.topics.value = [...this.topics.value, new ye(e)];
3166
+ const t = this.topics.value.findIndex((r) => r.id === e.id), n = new be(e);
3167
+ t !== -1 ? this.topics.value.splice(t, 1, new be(e)) : this.topics.value = [...this.topics.value, new be(e)];
3125
3168
  const s = this.topics.value.map((r) => ({
3126
3169
  appid: r.appid,
3127
3170
  id: r.id,
@@ -3149,17 +3192,17 @@ class In {
3149
3192
  let r = !0;
3150
3193
  if (e.beforeDelete && (r = await e.beforeDelete(t, n, s, o)), !r)
3151
3194
  return;
3152
- const a = this.topics.value.findIndex((c) => c.id === s.id);
3195
+ const a = this.topics.value.findIndex((l) => l.id === s.id);
3153
3196
  a !== -1 && (this.topics.value.splice(a, 1), this.topics.value = [...this.topics.value]);
3154
- const u = this.topics.value.map((c) => ({
3155
- appid: c.appid,
3156
- id: c.id,
3157
- type: c.type,
3158
- caption: c.caption,
3159
- url: c.url,
3160
- aiChat: c.aiChat
3197
+ const u = this.topics.value.map((l) => ({
3198
+ appid: l.appid,
3199
+ id: l.id,
3200
+ type: l.type,
3201
+ caption: l.caption,
3202
+ url: l.url,
3203
+ aiChat: l.aiChat
3161
3204
  })), h = e.configService(e.appid, "aitopics", e.type);
3162
- await (h == null ? void 0 : h.save(u)), await Y.deleteData(N.DATA_BASE_NAME, N.DATA_TABLE_NAME, s.id), this.topics.value.length > 0 && s.id === ((d = this.activedTopic.value) == null ? void 0 : d.id) && this.handleTopicChange(this.topics.value[0]);
3205
+ await (h == null ? void 0 : h.save(u)), await X.deleteData(N.DATA_BASE_NAME, N.DATA_TABLE_NAME, s.id), this.topics.value.length > 0 && s.id === ((d = this.activedTopic.value) == null ? void 0 : d.id) && this.handleTopicChange(this.topics.value[0]);
3163
3206
  }
3164
3207
  /**
3165
3208
  * 处理选中变化
@@ -3194,12 +3237,12 @@ class In {
3194
3237
  }
3195
3238
  }
3196
3239
  }
3197
- class pi {
3240
+ class _i {
3198
3241
  constructor(e) {
3199
3242
  this.aiChat = e;
3200
3243
  }
3201
3244
  }
3202
- class Dn extends pi {
3245
+ class Hn extends _i {
3203
3246
  /**
3204
3247
  * 执行操作
3205
3248
  *
@@ -3208,23 +3251,27 @@ class Dn extends pi {
3208
3251
  * @return {*} {Promise<void>}
3209
3252
  */
3210
3253
  async excuteAction(e, t) {
3211
- if (t && t.onClick) {
3212
- const n = await t.onClick(e, this.aiChat.context, this.aiChat.params);
3213
- if (n && n.data && n.data.length > 0) {
3214
- const s = n.data[0], o = {
3215
- id: s.id,
3216
- type: s.type,
3217
- data: s.data || {},
3218
- metadata: s.metadata || {}
3219
- };
3220
- t.id && Object.assign(o.metadata, {
3221
- actionId: t.id
3222
- }), this.aiChat.addMaterial(o);
3223
- }
3254
+ let n;
3255
+ if (t && t.onClick && typeof t.onClick == "function")
3256
+ n = await t.onClick(e, t, this.aiChat.context, this.aiChat.params);
3257
+ else {
3258
+ const s = this.aiChat.opts.extendToolbarClick;
3259
+ s ? n = await s(e, t, this.aiChat.context, this.aiChat.params) : console.error("未找到扩展工具栏点击事件");
3260
+ }
3261
+ if (n && n.data && n.data.length > 0) {
3262
+ const s = n.data[0], o = {
3263
+ id: s.id,
3264
+ type: s.type,
3265
+ data: s.data || {},
3266
+ metadata: s.metadata || {}
3267
+ };
3268
+ t.id && Object.assign(o.metadata, {
3269
+ actionId: t.id
3270
+ }), this.aiChat.addMaterial(o);
3224
3271
  }
3225
3272
  }
3226
3273
  }
3227
- class zn extends pi {
3274
+ class Ln extends _i {
3228
3275
  /**
3229
3276
  * 执行操作
3230
3277
  *
@@ -3241,17 +3288,17 @@ class zn extends pi {
3241
3288
  onUpload: u,
3242
3289
  onSuccess: h,
3243
3290
  onError: d,
3244
- onProgress: c
3245
- } = n, p = {
3291
+ onProgress: l
3292
+ } = n, _ = {
3246
3293
  multiple: s || !0,
3247
3294
  accept: o || "*/*",
3248
3295
  maxSize: r || 5 * 1024 * 1024,
3249
3296
  onSelect: (f) => {
3250
3297
  a == null || a(f), f.length > 0 && f.forEach((v) => {
3251
- const _ = this.buildMaterialObject(v);
3252
- Object.assign(_.metadata, {
3298
+ const p = this.buildMaterialObject(v);
3299
+ Object.assign(p.metadata, {
3253
3300
  state: "uploading"
3254
- }), this.aiChat.addMaterial(_);
3301
+ }), this.aiChat.addMaterial(p);
3255
3302
  });
3256
3303
  },
3257
3304
  onUpload: async (f, v) => u(f, v, {
@@ -3260,7 +3307,7 @@ class zn extends pi {
3260
3307
  }),
3261
3308
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3262
3309
  onSuccess: (f, v) => {
3263
- const _ = {
3310
+ const p = {
3264
3311
  id: f.id,
3265
3312
  type: "ossfile",
3266
3313
  data: {
@@ -3277,19 +3324,19 @@ class zn extends pi {
3277
3324
  state: "successed"
3278
3325
  }
3279
3326
  };
3280
- this.aiChat.replaceMaterial(v.name, _), h == null || h(f, v);
3327
+ this.aiChat.replaceMaterial(v.name, p), h == null || h(f, v);
3281
3328
  },
3282
3329
  onError: (f, v) => {
3283
- const _ = this.buildMaterialObject(v);
3284
- Object.assign(_.metadata, {
3330
+ const p = this.buildMaterialObject(v);
3331
+ Object.assign(p.metadata, {
3285
3332
  state: "failed"
3286
- }), this.aiChat.replaceMaterial(v.name, _), d == null || d(f, v);
3333
+ }), this.aiChat.replaceMaterial(v.name, p), d == null || d(f, v);
3287
3334
  },
3288
3335
  onProgress: (f, v) => {
3289
- c == null || c(f, v);
3336
+ l == null || l(f, v);
3290
3337
  }
3291
3338
  };
3292
- new Ni(p).openFilePicker();
3339
+ new Mi(_).openFilePicker();
3293
3340
  }
3294
3341
  /**
3295
3342
  * 构建素材对象
@@ -3315,17 +3362,17 @@ class zn extends pi {
3315
3362
  };
3316
3363
  }
3317
3364
  }
3318
- class Mt {
3365
+ class At {
3319
3366
  static getMaterialHelper(e, t) {
3320
3367
  switch (e) {
3321
3368
  case "ossfile":
3322
- return new zn(t);
3369
+ return new Ln(t);
3323
3370
  default:
3324
- return new Dn(t);
3371
+ return new Hn(t);
3325
3372
  }
3326
3373
  }
3327
3374
  }
3328
- class Hn {
3375
+ class On {
3329
3376
  /**
3330
3377
  * Creates an instance of ChatController.
3331
3378
  * @author tony001
@@ -3340,7 +3387,7 @@ class Hn {
3340
3387
  * @protected
3341
3388
  * @type {HTMLDivElement}
3342
3389
  */
3343
- w(this, "container");
3390
+ C(this, "container");
3344
3391
  /**
3345
3392
  * 默认模式(聊天框)和话题模式(支持多话题切换),聊天框为默认模式
3346
3393
  *
@@ -3349,7 +3396,7 @@ class Hn {
3349
3396
  * @protected
3350
3397
  * @type {('DEFAULT' | 'TOPIC')}
3351
3398
  */
3352
- w(this, "mode", "DEFAULT");
3399
+ C(this, "mode", "DEFAULT");
3353
3400
  /**
3354
3401
  * 是否挂载ai话题
3355
3402
  *
@@ -3358,7 +3405,7 @@ class Hn {
3358
3405
  * @protected
3359
3406
  * @type {boolean}
3360
3407
  */
3361
- w(this, "isMountedAiTopic", !1);
3408
+ C(this, "isMountedAiTopic", !1);
3362
3409
  /**
3363
3410
  * 容器配置备份
3364
3411
  *
@@ -3367,7 +3414,7 @@ class Hn {
3367
3414
  * @protected
3368
3415
  * @type {(IContainerOptions | undefined)}
3369
3416
  */
3370
- w(this, "backupChatOptions");
3417
+ C(this, "backupChatOptions");
3371
3418
  /**
3372
3419
  * 话题控制器
3373
3420
  *
@@ -3376,7 +3423,7 @@ class Hn {
3376
3423
  * @public
3377
3424
  * @type {AiTopicController}
3378
3425
  */
3379
- w(this, "aiTopic");
3426
+ C(this, "aiTopic");
3380
3427
  /**
3381
3428
  * 话题map
3382
3429
  *
@@ -3384,8 +3431,8 @@ class Hn {
3384
3431
  * @type {Map<string, AiChatController>}
3385
3432
  * @memberof ChatController
3386
3433
  */
3387
- w(this, "aiTopicMap", /* @__PURE__ */ new Map());
3388
- this.aiTopic = new In(this);
3434
+ C(this, "aiTopicMap", /* @__PURE__ */ new Map());
3435
+ this.aiTopic = new zn(this);
3389
3436
  }
3390
3437
  /**
3391
3438
  * 聊天控制器
@@ -3406,7 +3453,7 @@ class Hn {
3406
3453
  * @return {*} {Promise<void>}
3407
3454
  */
3408
3455
  async initIndexDB() {
3409
- await Y.checkTableExists(N.DATA_BASE_NAME, N.DATA_TABLE_NAME) || await Y.createTable(N.DATA_BASE_NAME, N.DATA_TABLE_NAME, N.DATA_TABLE_KEY_NAME, !1);
3456
+ await X.checkTableExists(N.DATA_BASE_NAME, N.DATA_TABLE_NAME) || await X.createTable(N.DATA_BASE_NAME, N.DATA_TABLE_NAME, N.DATA_TABLE_KEY_NAME, !1);
3410
3457
  }
3411
3458
  /**
3412
3459
  * 创建聊天窗口(会同时显示出来)
@@ -3435,8 +3482,8 @@ class Hn {
3435
3482
  topicId: n == null ? void 0 : n.id,
3436
3483
  topic: n
3437
3484
  });
3438
- const s = new $t(t);
3439
- return this.aiTopicMap.set("".concat(n == null ? void 0 : n.id), s), te(I(Dt, {
3485
+ const s = new Mt(t);
3486
+ return this.aiTopicMap.set("".concat(n == null ? void 0 : n.id), s), ne(P(zt, {
3440
3487
  aiChat: s,
3441
3488
  aiTopic: this.aiTopic,
3442
3489
  mode: e.mode ? e.mode : "DEFAULT",
@@ -3478,10 +3525,11 @@ class Hn {
3478
3525
  questionToolbarItems: e.aiChat.questionToolbarItems,
3479
3526
  appDataEntityId: e.aiChat.appDataEntityId,
3480
3527
  topicId: e.id,
3481
- topic: e
3528
+ topic: e,
3529
+ extendToolbarClick: this.backupChatOptions.chatOptions.extendToolbarClick
3482
3530
  });
3483
3531
  let n;
3484
- this.aiTopicMap.has("".concat(e.id)) ? n = this.aiTopicMap.get("".concat(e.id)) : (n = new $t(t), this.aiTopicMap.set("".concat(e.id), n)), this.container && (te(null, this.container), te(I(Dt, {
3532
+ this.aiTopicMap.has("".concat(e.id)) ? n = this.aiTopicMap.get("".concat(e.id)) : (n = new Mt(t), this.aiTopicMap.set("".concat(e.id), n)), this.container && (ne(null, this.container), ne(P(zt, {
3485
3533
  aiChat: n,
3486
3534
  aiTopic: this.aiTopic,
3487
3535
  mode: (s = this.backupChatOptions) != null && s.mode ? this.backupChatOptions.mode : "DEFAULT",
@@ -3527,22 +3575,22 @@ class Hn {
3527
3575
  * @date 2023-10-13 17:10:10
3528
3576
  */
3529
3577
  close() {
3530
- this.container && (te(null, this.container), this.container.remove(), this.container = void 0);
3578
+ this.container && (ne(null, this.container), this.container.remove(), this.container = void 0);
3531
3579
  }
3532
3580
  }
3533
- const Vn = new Hn();
3534
- const Ln = new $("chat-input-material"), On = (i) => {
3581
+ const qn = new On();
3582
+ const Bn = new $("chat-input-material"), Pn = (i) => {
3535
3583
  const e = i.controller.materials;
3536
- return l("div", {
3537
- className: Ln.b(),
3538
- children: e.value.map((t) => l(ui, {
3584
+ return c("div", {
3585
+ className: Bn.b(),
3586
+ children: e.value.map((t) => c(hi, {
3539
3587
  material: t,
3540
3588
  disabled: !1,
3541
3589
  controller: i.controller
3542
3590
  }, t.id))
3543
3591
  });
3544
3592
  };
3545
- const _i = ({
3593
+ const vi = ({
3546
3594
  children: i,
3547
3595
  actions: e,
3548
3596
  // 接收行为数据
@@ -3553,26 +3601,26 @@ const _i = ({
3553
3601
  onAction: r
3554
3602
  // 接收行为事件回调
3555
3603
  }) => {
3556
- const a = new $("pop"), u = Qt(it), [h, d] = Qe(s || !1), c = K(null), p = K(null);
3557
- R(() => {
3604
+ const a = new $("pop"), u = ei(nt), [h, d] = et(s || !1), l = Z(null), _ = Z(null);
3605
+ B(() => {
3558
3606
  s !== void 0 && d(s);
3559
- }, [s]), R(() => (p.current || (p.current = document.createElement("div"), p.current.className = a.b("content-container"), document.body.appendChild(p.current)), () => {
3560
- p.current && document.body.removeChild(p.current);
3561
- }), []), R(() => {
3607
+ }, [s]), B(() => (_.current || (_.current = document.createElement("div"), _.current.className = a.b("content-container"), document.body.appendChild(_.current)), () => {
3608
+ _.current && document.body.removeChild(_.current);
3609
+ }), []), B(() => {
3562
3610
  const f = (v) => {
3563
- c.current && !c.current.contains(v.target) && !v.target.closest(".".concat(a.b("content"))) && !v.target.closest(".ibiz-quick-edit") && !v.target.closest(".ibiz-picker__transfer") && (d(!1), o == null || o(!1));
3611
+ l.current && !l.current.contains(v.target) && !v.target.closest(".".concat(a.b("content"))) && !v.target.closest(".ibiz-quick-edit") && !v.target.closest(".ibiz-picker__transfer") && (d(!1), o == null || o(!1));
3564
3612
  };
3565
3613
  return h && document.addEventListener("mousedown", f), () => {
3566
3614
  document.removeEventListener("mousedown", f);
3567
3615
  };
3568
3616
  }, [h, o]);
3569
3617
  const m = () => {
3570
- if (!c.current)
3618
+ if (!l.current)
3571
3619
  return {};
3572
- const f = c.current.getBoundingClientRect(), v = {
3620
+ const f = l.current.getBoundingClientRect(), v = {
3573
3621
  position: "absolute",
3574
3622
  zIndex: u.zIndex + 1
3575
- }, _ = {
3623
+ }, p = {
3576
3624
  bottom: {
3577
3625
  top: f.bottom + window.scrollY,
3578
3626
  left: f.left + window.scrollX
@@ -3596,89 +3644,89 @@ const _i = ({
3596
3644
  };
3597
3645
  return {
3598
3646
  ...v,
3599
- ..._[n]
3647
+ ...p[n]
3600
3648
  };
3601
3649
  };
3602
- return l("span", {
3650
+ return c("span", {
3603
3651
  className: "".concat(a.b("trigger-container")),
3604
- children: [l("span", {
3652
+ children: [c("span", {
3605
3653
  className: "".concat(a.b("trigger-element")),
3606
- ref: c,
3654
+ ref: l,
3607
3655
  onClick: (f) => {
3608
3656
  f.stopPropagation();
3609
3657
  const v = !h;
3610
3658
  d(v), o == null || o(v);
3611
3659
  },
3612
3660
  children: i
3613
- }), h && p.current && bn(l("div", {
3661
+ }), h && _.current && wn(c("div", {
3614
3662
  className: "".concat(a.b("content"), " pop-").concat(n),
3615
3663
  style: m(),
3616
- children: t || (e == null ? void 0 : e.map((f) => l("div", {
3664
+ children: t || (e == null ? void 0 : e.map((f) => c("div", {
3617
3665
  className: a.b("content-item"),
3618
3666
  onMouseDown: (v) => {
3619
3667
  v.stopPropagation(), r == null || r(f.id, v);
3620
3668
  },
3621
- children: [f.icon && l("img", {
3669
+ children: [f.icon && c("img", {
3622
3670
  className: a.b("content-item__icon"),
3623
3671
  src: f.icon,
3624
3672
  alt: f.caption
3625
- }), l("div", {
3673
+ }), c("div", {
3626
3674
  className: a.b("content-item__caption"),
3627
3675
  children: f.caption
3628
3676
  })]
3629
3677
  }, f.id)))
3630
- }), p.current)]
3678
+ }), _.current)]
3631
3679
  });
3632
- }, M = new $("chat-input"), At = window.SpeechRecognition || window.webkitSpeechRecognition, It = (i) => {
3680
+ }, M = new $("chat-input"), It = window.SpeechRecognition || window.webkitSpeechRecognition, Dt = (i) => {
3633
3681
  var v;
3634
- const [e, t] = Qe(!1), n = K(null), s = i.controller.input, o = B(!1), r = K();
3635
- At && !r.current && (r.current = new At(), r.current.onstart = () => {
3682
+ const [e, t] = et(!1), n = Z(null), s = i.controller.input, o = O(!1), r = Z();
3683
+ It && !r.current && (r.current = new It(), r.current.onstart = () => {
3636
3684
  o.value = !0;
3637
3685
  }, r.current.onend = () => {
3638
3686
  o.value = !1;
3639
- }, r.current.onresult = (_) => {
3640
- var C, E, T;
3641
- const y = (T = (E = (C = _.results) == null ? void 0 : C[0]) == null ? void 0 : E[0]) == null ? void 0 : T.transcript;
3687
+ }, r.current.onresult = (p) => {
3688
+ var w, x, T;
3689
+ const y = (T = (x = (w = p.results) == null ? void 0 : w[0]) == null ? void 0 : x[0]) == null ? void 0 : T.transcript;
3642
3690
  y && (s.value = "".concat(s.value).concat(y));
3643
3691
  });
3644
3692
  const a = () => {
3645
3693
  r.current && !o.value && r.current.start();
3646
- }, u = Be((_) => {
3647
- s.value = _.target.value;
3648
- }, [s]), h = O(() => s.value.length <= 0);
3649
- R(() => (n.current && Nt(n.current), () => {
3650
- n.current && Nt.destroy(n.current);
3694
+ }, u = Be((p) => {
3695
+ s.value = p.target.value;
3696
+ }, [s]), h = L(() => s.value.length <= 0);
3697
+ B(() => (n.current && $t(n.current), () => {
3698
+ n.current && $t.destroy(n.current);
3651
3699
  }), [n]);
3652
3700
  const d = Be(async () => {
3653
3701
  try {
3654
- const _ = s.value;
3655
- s.value = "", await i.controller.question(_);
3656
- } catch (_) {
3657
- console.error(_);
3702
+ const p = s.value;
3703
+ s.value = "", await i.controller.question(p);
3704
+ } catch (p) {
3705
+ console.error(p);
3658
3706
  }
3659
- }, [s]), c = Be(async () => {
3707
+ }, [s]), l = Be(async () => {
3660
3708
  try {
3661
3709
  i.controller.abortQuestion();
3662
- } catch (_) {
3663
- console.error(_);
3710
+ } catch (p) {
3711
+ console.error(p);
3664
3712
  }
3665
- }, [s]), p = (_) => {
3666
- _.code === "Enter" && !_.isComposing && (_.stopPropagation(), _.shiftKey === !1 && d());
3667
- }, m = async (_) => {
3668
- await Mt.getMaterialHelper("ossfile", i.controller).excuteAction(_), t(!1);
3669
- }, f = async (_, y) => {
3670
- await Mt.getMaterialHelper("common", i.controller).excuteAction(_, y), t(!1);
3713
+ }, [s]), _ = (p) => {
3714
+ p.code === "Enter" && !p.isComposing && (p.stopPropagation(), p.shiftKey === !1 && d());
3715
+ }, m = async (p) => {
3716
+ await At.getMaterialHelper("ossfile", i.controller).excuteAction(p), t(!1);
3717
+ }, f = async (p, y) => {
3718
+ await At.getMaterialHelper("common", i.controller).excuteAction(p, y), t(!1);
3671
3719
  };
3672
- return l("div", {
3720
+ return c("div", {
3673
3721
  className: M.b("wrapper"),
3674
- children: [l("div", {
3722
+ children: [c("div", {
3675
3723
  className: M.b("material-wrapper"),
3676
- children: l(On, {
3724
+ children: c(Pn, {
3677
3725
  controller: i.controller
3678
3726
  })
3679
- }), l("div", {
3727
+ }), c("div", {
3680
3728
  className: M.b("main-wrapper"),
3681
- children: [l("textarea", {
3729
+ children: [c("textarea", {
3682
3730
  className: M.e("textarea"),
3683
3731
  type: "text",
3684
3732
  rows: 6,
@@ -3687,62 +3735,75 @@ const _i = ({
3687
3735
  autoComplete: "off",
3688
3736
  value: s,
3689
3737
  onInput: u,
3690
- onKeyDown: p,
3738
+ onKeyDown: _,
3691
3739
  ref: n,
3692
3740
  disabled: i.controller.isLoading.value
3693
- }), l("div", {
3741
+ }), c("div", {
3694
3742
  className: M.b("action-wrapper"),
3695
- children: [l("div", {
3743
+ children: [c("div", {
3696
3744
  className: "".concat(M.be("action-wrapper", "action-item")),
3697
- children: l(_i, {
3698
- content: l("div", {
3745
+ children: c(vi, {
3746
+ content: c("div", {
3699
3747
  className: M.b("pop-actions"),
3700
- children: [l("div", {
3748
+ children: [c("div", {
3701
3749
  className: M.b("pop-action-item"),
3702
- onClick: (_) => {
3703
- m(_);
3750
+ onClick: (p) => {
3751
+ m(p);
3704
3752
  },
3705
- children: [l("span", {
3753
+ children: [c("span", {
3706
3754
  className: M.b("pop-action-item-icon"),
3707
- children: l(li, {})
3708
- }), l("span", {
3755
+ children: c(ui, {})
3756
+ }), c("span", {
3709
3757
  className: M.b("pop-action-item-title"),
3710
3758
  children: "文件资料"
3711
3759
  })]
3712
- }), (v = i.questionToolbarItems) == null ? void 0 : v.map((_) => l("div", {
3713
- className: M.b("pop-action-item"),
3714
- onClick: (y) => {
3715
- f(y, _);
3716
- },
3717
- children: [l("span", {
3718
- className: M.b("pop-action-item-icon"),
3719
- children: typeof _.icon == "function" ? _.icon(I) : _.icon
3720
- }), l("span", {
3721
- className: M.b("pop-action-item-title"),
3722
- children: typeof _.label == "function" ? _.label(I) : _.label
3723
- })]
3724
- }, _.id))]
3760
+ }), (v = i.questionToolbarItems) == null ? void 0 : v.map((p) => {
3761
+ var y, w, x;
3762
+ return c("div", {
3763
+ className: M.b("pop-action-item"),
3764
+ onClick: (T) => {
3765
+ f(T, p);
3766
+ },
3767
+ children: [c("span", {
3768
+ className: M.b("pop-action-item-icon"),
3769
+ children: typeof p.icon == "function" ? p.icon() : ((y = p.icon) == null ? void 0 : y.showIcon) && c(R, {
3770
+ children: (w = p.icon) != null && w.cssClass ? c("i", {
3771
+ className: p.icon.cssClass
3772
+ }) : (x = p.icon) != null && x.imagePath ? Qe(p.icon.imagePath) ? c("div", {
3773
+ dangerouslySetInnerHTML: {
3774
+ __html: p.icon.imagePath
3775
+ }
3776
+ }) : c("img", {
3777
+ src: p.icon.imagePath
3778
+ }) : null
3779
+ })
3780
+ }), c("span", {
3781
+ className: M.b("pop-action-item-title"),
3782
+ children: p.label
3783
+ })]
3784
+ }, p.id);
3785
+ })]
3725
3786
  }),
3726
3787
  position: "top-left",
3727
3788
  isOpen: e,
3728
3789
  onToggleOpen: t,
3729
- children: l(Ki, {})
3790
+ children: c(en, {})
3730
3791
  })
3731
- }), l("div", {
3792
+ }), c("div", {
3732
3793
  title: o.value ? "语音输入中..." : "语音输入",
3733
3794
  className: "".concat(M.be("action-wrapper", "action-item")),
3734
3795
  onClick: a,
3735
- children: o.value ? l(Xi, {}) : l(Yi, {})
3736
- }), i.controller.isLoading.value ? l("div", {
3796
+ children: o.value ? c(Gi, {}) : c(Zi, {})
3797
+ }), i.controller.isLoading.value ? c("div", {
3737
3798
  title: "停止生成",
3738
3799
  className: "".concat(M.be("action-wrapper", "action-item")),
3739
- onClick: c,
3740
- children: l(tn, {})
3741
- }) : l("div", {
3800
+ onClick: l,
3801
+ children: c(sn, {})
3802
+ }) : c("div", {
3742
3803
  title: "发送消息",
3743
3804
  className: "".concat(M.be("action-wrapper", "action-item")),
3744
3805
  onClick: d,
3745
- children: l(Ri, {
3806
+ children: c(Fi, {
3746
3807
  className: "".concat(M.is("disabled", h.value))
3747
3808
  })
3748
3809
  })]
@@ -3750,37 +3811,37 @@ const _i = ({
3750
3811
  })]
3751
3812
  });
3752
3813
  };
3753
- const V = new $("chat-topic-item"), Bn = (i) => {
3814
+ const j = new $("chat-topic-item"), Rn = (i) => {
3754
3815
  const {
3755
3816
  controller: e,
3756
3817
  topic: t,
3757
3818
  onClick: n,
3758
3819
  onAction: s
3759
- } = i, o = O(() => {
3760
- var c;
3761
- return ((c = e.activedTopic.value) == null ? void 0 : c.id) === t.id;
3762
- }), [r, a] = Qe(!1), u = (d) => {
3820
+ } = i, o = L(() => {
3821
+ var l;
3822
+ return ((l = e.activedTopic.value) == null ? void 0 : l.id) === t.id;
3823
+ }), [r, a] = et(!1), u = (d) => {
3763
3824
  d.stopPropagation(), s("LINK", d);
3764
- }, h = (d, c) => {
3765
- d === "DELETE" && s("DELETE", c), a(!1);
3825
+ }, h = (d, l) => {
3826
+ d === "DELETE" && s("DELETE", l), a(!1);
3766
3827
  };
3767
- return l("div", {
3768
- className: "".concat(V.b(), " ").concat(V.is("active", o.value)),
3828
+ return c("div", {
3829
+ className: "".concat(j.b(), " ").concat(j.is("active", o.value)),
3769
3830
  onClick: n.bind(void 0),
3770
- children: [l("div", {
3771
- className: V.b("caption"),
3831
+ children: [c("div", {
3832
+ className: j.b("caption"),
3772
3833
  title: t.caption,
3773
3834
  children: t.caption
3774
- }), l("div", {
3775
- className: V.b("icon"),
3776
- children: [l("span", {
3777
- className: V.be("icon", "item"),
3835
+ }), c("div", {
3836
+ className: j.b("icon"),
3837
+ children: [c("span", {
3838
+ className: j.be("icon", "item"),
3778
3839
  title: "跳转主视图",
3779
3840
  onClick: u.bind(void 0),
3780
- children: l(Gi, {
3781
- className: V.b("link-icon")
3841
+ children: c(Ki, {
3842
+ className: j.b("link-icon")
3782
3843
  })
3783
- }), o.value ? null : l(_i, {
3844
+ }), o.value ? null : c(vi, {
3784
3845
  actions: [{
3785
3846
  id: "DELETE",
3786
3847
  caption: "删除话题"
@@ -3789,26 +3850,26 @@ const V = new $("chat-topic-item"), Bn = (i) => {
3789
3850
  isOpen: r,
3790
3851
  onToggleOpen: a,
3791
3852
  onAction: h.bind(void 0),
3792
- children: l("span", {
3793
- className: V.be("icon", "item"),
3853
+ children: c("span", {
3854
+ className: j.be("icon", "item"),
3794
3855
  title: "更多",
3795
- children: l(Zi, {
3796
- className: V.b("more-icon")
3856
+ children: c(Ji, {
3857
+ className: j.b("more-icon")
3797
3858
  })
3798
3859
  })
3799
3860
  })]
3800
3861
  })]
3801
3862
  });
3802
3863
  };
3803
- const Rn = new $("chat-topics"), Pn = (i) => {
3864
+ const Fn = new $("chat-topics"), Un = (i) => {
3804
3865
  const e = i.controller.topics, t = (s) => {
3805
3866
  i.controller.handleTopicChange(s);
3806
3867
  }, n = (s, o, r) => {
3807
3868
  i.controller.handleTopicAction(s, o, r);
3808
3869
  };
3809
- return l("div", {
3810
- className: Rn.b(),
3811
- children: e.value.map((s) => l(Bn, {
3870
+ return c("div", {
3871
+ className: Fn.b(),
3872
+ children: e.value.map((s) => c(Rn, {
3812
3873
  topic: s,
3813
3874
  controller: i.controller,
3814
3875
  onClick: () => t(s),
@@ -3816,19 +3877,19 @@ const Rn = new $("chat-topics"), Pn = (i) => {
3816
3877
  }, s.id))
3817
3878
  });
3818
3879
  };
3819
- const it = xi({
3880
+ const nt = Si({
3820
3881
  zIndex: 10,
3821
3882
  enableBackFill: !0
3822
3883
  });
3823
- var zt, Ht, Lt, Ot;
3824
- class Dt extends H {
3884
+ var Ht, Lt, Ot, Bt;
3885
+ class zt extends z {
3825
3886
  constructor(t) {
3826
3887
  super(t);
3827
- w(this, "ns", new $("chat-container"));
3828
- w(this, "containerRef", Le());
3829
- w(this, "dragHandle", Le());
3830
- w(this, "minimizeRef", Le());
3831
- w(this, "data", {
3888
+ C(this, "ns", new $("chat-container"));
3889
+ C(this, "containerRef", Le());
3890
+ C(this, "dragHandle", Le());
3891
+ C(this, "minimizeRef", Le());
3892
+ C(this, "data", {
3832
3893
  y: 0,
3833
3894
  height: 1,
3834
3895
  width: 600 / window.innerWidth,
@@ -3836,7 +3897,7 @@ class Dt extends H {
3836
3897
  minWidth: 500,
3837
3898
  minHeight: 300
3838
3899
  });
3839
- w(this, "minimizeData", {
3900
+ C(this, "minimizeData", {
3840
3901
  x: (window.innerWidth - 86) / window.innerWidth,
3841
3902
  y: (window.innerHeight - 86) / window.innerHeight
3842
3903
  });
@@ -3846,14 +3907,14 @@ class Dt extends H {
3846
3907
  * @type {boolean}
3847
3908
  * @memberof ChatContainer
3848
3909
  */
3849
- w(this, "disabled", !1);
3910
+ C(this, "disabled", !1);
3850
3911
  /**
3851
3912
  * 最小化是否在拖拽中
3852
3913
  * - 在拖拽时不应触发点击事件
3853
3914
  * @type {boolean}
3854
3915
  * @memberof ChatContainer
3855
3916
  */
3856
- w(this, "isDragging", !1);
3917
+ C(this, "isDragging", !1);
3857
3918
  /**
3858
3919
  * 容器上下文
3859
3920
  *
@@ -3861,9 +3922,9 @@ class Dt extends H {
3861
3922
  * @date 2025-03-03 16:03:44
3862
3923
  * @type {ContainerContext}
3863
3924
  */
3864
- w(this, "containerContext", {
3865
- zIndex: ((zt = this.props.containerOptions) == null ? void 0 : zt.zIndex) || 10,
3866
- enableBackFill: ((Ht = this.props) == null ? void 0 : Ht.enableBackFill) !== void 0 && ((Lt = this.props) == null ? void 0 : Lt.enableBackFill) !== null ? (Ot = this.props) == null ? void 0 : Ot.enableBackFill : !0
3925
+ C(this, "containerContext", {
3926
+ zIndex: ((Ht = this.props.containerOptions) == null ? void 0 : Ht.zIndex) || 10,
3927
+ enableBackFill: ((Lt = this.props) == null ? void 0 : Lt.enableBackFill) !== void 0 && ((Ot = this.props) == null ? void 0 : Ot.enableBackFill) !== null ? (Bt = this.props) == null ? void 0 : Bt.enableBackFill : !0
3867
3928
  });
3868
3929
  this.state = {
3869
3930
  isFullScreen: !1,
@@ -3937,12 +3998,12 @@ class Dt extends H {
3937
3998
  document.body.style.userSelect = "none";
3938
3999
  const n = t.clientX - this.minimizeRef.current.offsetLeft, s = t.clientY - this.minimizeRef.current.offsetTop, o = Date.now(), r = (u) => {
3939
4000
  const h = 56 / window.innerWidth, d = 56 / window.innerHeight, {
3940
- x: c,
3941
- y: p
4001
+ x: l,
4002
+ y: _
3942
4003
  } = this.limitDraggable(u.clientX - n, u.clientY - s, h, d);
3943
4004
  Object.assign(this.minimizeData, {
3944
- x: c,
3945
- y: p
4005
+ x: l,
4006
+ y: _
3946
4007
  }), this.setStyle();
3947
4008
  }, a = () => {
3948
4009
  const u = Date.now();
@@ -4020,7 +4081,18 @@ class Dt extends H {
4020
4081
  }
4021
4082
  });
4022
4083
  }
4084
+ /**
4085
+ * 处理全屏改变
4086
+ *
4087
+ * @memberof ChatContainer
4088
+ */
4089
+ handleFullScreenChange() {
4090
+ this.setState({
4091
+ isFullScreen: document.fullscreenElement !== null
4092
+ });
4093
+ }
4023
4094
  componentDidMount() {
4095
+ this.handleFullScreenChange = this.handleFullScreenChange.bind(this);
4024
4096
  const t = localStorage.getItem(N.MINIMIZE_STYLY_CHCHE);
4025
4097
  if (t) {
4026
4098
  const s = JSON.parse(t);
@@ -4031,10 +4103,10 @@ class Dt extends H {
4031
4103
  const s = JSON.parse(n);
4032
4104
  this.isWithinBounds(s) && (this.data = s);
4033
4105
  }
4034
- this.setStyle(), this.registerDragDialog(), this.registerDragDialogBorder(), this.registerDragMinmize();
4106
+ this.setStyle(), this.registerDragDialog(), this.registerDragDialogBorder(), this.registerDragMinmize(), document.addEventListener("fullscreenchange", this.handleFullScreenChange);
4035
4107
  }
4036
4108
  componentWillUnmount() {
4037
- localStorage.setItem(N.STYLE_CACHE, JSON.stringify(this.data)), localStorage.setItem(N.MINIMIZE_STYLY_CHCHE, JSON.stringify(this.minimizeData));
4109
+ document.removeEventListener("fullscreenchange", this.handleFullScreenChange), localStorage.setItem(N.STYLE_CACHE, JSON.stringify(this.data)), localStorage.setItem(N.MINIMIZE_STYLY_CHCHE, JSON.stringify(this.minimizeData));
4038
4110
  }
4039
4111
  /**
4040
4112
  * 关闭聊天窗口
@@ -4053,9 +4125,7 @@ class Dt extends H {
4053
4125
  */
4054
4126
  fullScreen() {
4055
4127
  const t = this.containerRef.current;
4056
- t && (t.requestFullscreen(), this.setState({
4057
- isFullScreen: !0
4058
- }), this.props.fullscreen(!0));
4128
+ t && (t.requestFullscreen(), this.props.fullscreen(!0));
4059
4129
  }
4060
4130
  /**
4061
4131
  * 关闭全屏
@@ -4064,9 +4134,7 @@ class Dt extends H {
4064
4134
  * @date 2024-05-07 15:10:31
4065
4135
  */
4066
4136
  closeFullScreen() {
4067
- this.state.isFullScreen && (document == null || document.exitFullscreen(), this.setState({
4068
- isFullScreen: !1
4069
- }), this.props.fullscreen(!1), this.setStyle());
4137
+ this.state.isFullScreen && (document == null || document.exitFullscreen(), this.props.fullscreen(!1), this.setStyle());
4070
4138
  }
4071
4139
  /**
4072
4140
  * 最小化
@@ -4098,110 +4166,110 @@ class Dt extends H {
4098
4166
  t.stopPropagation();
4099
4167
  }
4100
4168
  render() {
4101
- return l(it.Provider, {
4169
+ return c(nt.Provider, {
4102
4170
  value: this.containerContext,
4103
- children: l("div", {
4171
+ children: c("div", {
4104
4172
  className: "".concat(this.ns.b()),
4105
- children: [l("div", {
4173
+ children: [c("div", {
4106
4174
  className: "".concat(this.ns.e("dialog"), " ").concat(this.ns.is("full-screen", this.state.isFullScreen), " ").concat(this.ns.is("hidden", this.state.isMinimize)),
4107
4175
  ref: this.containerRef,
4108
- children: [l("div", {
4176
+ children: [c("div", {
4109
4177
  ref: this.dragHandle,
4110
4178
  className: this.ns.b("header"),
4111
- children: [l("div", {
4179
+ children: [c("div", {
4112
4180
  className: this.ns.b("header-caption"),
4113
4181
  children: this.props.caption || "AI助手"
4114
- }), l("div", {
4182
+ }), c("div", {
4115
4183
  className: this.ns.b("header-action-wrapper"),
4116
- children: [l("div", {
4184
+ children: [c("div", {
4117
4185
  title: "最小化",
4118
4186
  className: "".concat(this.ns.be("header-action-wrapper", "action-item"), " ").concat(this.ns.be("header-action-wrapper", "minimize")),
4119
4187
  onMouseDown: this.stopPropagation.bind(this),
4120
4188
  onClick: this.minimize.bind(this),
4121
- children: l(Vi, {})
4122
- }), this.state.isFullScreen ? l("div", {
4189
+ children: c(qi, {})
4190
+ }), this.state.isFullScreen ? c("div", {
4123
4191
  title: "退出全屏",
4124
4192
  className: "".concat(this.ns.be("header-action-wrapper", "action-item"), " ").concat(this.ns.be("header-action-wrapper", "close-full-screen")),
4125
4193
  onMouseDown: this.stopPropagation.bind(this),
4126
4194
  onClick: this.closeFullScreen.bind(this),
4127
- children: l(Wi, {})
4128
- }) : l("div", {
4195
+ children: c(ji, {})
4196
+ }) : c("div", {
4129
4197
  title: "全屏",
4130
4198
  className: "".concat(this.ns.be("header-action-wrapper", "action-item"), " ").concat(this.ns.be("header-action-wrapper", "full-screen")),
4131
4199
  onMouseDown: this.stopPropagation.bind(this),
4132
4200
  onClick: this.fullScreen.bind(this),
4133
- children: l(Ui, {})
4134
- }), l("div", {
4201
+ children: c(Vi, {})
4202
+ }), c("div", {
4135
4203
  title: "关闭",
4136
4204
  className: "".concat(this.ns.be("header-action-wrapper", "action-item"), " ").concat(this.ns.be("header-action-wrapper", "action-close")),
4137
4205
  onMouseDown: this.stopPropagation.bind(this),
4138
4206
  onClick: this.close.bind(this),
4139
- children: l(Oi, {})
4207
+ children: c(Pi, {})
4140
4208
  })]
4141
4209
  })]
4142
- }), this.props.mode === "TOPIC" ? l("div", {
4210
+ }), this.props.mode === "TOPIC" ? c("div", {
4143
4211
  className: "".concat(this.ns.b("main")),
4144
- children: [l("div", {
4212
+ children: [c("div", {
4145
4213
  className: "".concat(this.ns.be("main", "left")),
4146
- children: l(Pn, {
4214
+ children: c(Un, {
4147
4215
  controller: this.props.aiTopic
4148
4216
  })
4149
- }), l("div", {
4217
+ }), c("div", {
4150
4218
  className: "".concat(this.ns.be("main", "right")),
4151
- children: [l("div", {
4219
+ children: [c("div", {
4152
4220
  className: this.ns.b("content"),
4153
- children: l(gt, {
4221
+ children: c(bt, {
4154
4222
  controller: this.props.aiChat,
4155
4223
  toolbarItems: this.props.contentToolbarItems
4156
4224
  })
4157
- }), l(Ge, {
4225
+ }), c(Ge, {
4158
4226
  data: this.props.aiTopic.activedTopic.value,
4159
4227
  type: "footer",
4160
4228
  className: this.ns.e("toolbar"),
4161
4229
  controller: this.props.aiChat,
4162
4230
  items: this.props.footerToolbarItems
4163
- }), l("div", {
4231
+ }), c("div", {
4164
4232
  className: this.ns.b("footer"),
4165
- children: l(It, {
4233
+ children: c(Dt, {
4166
4234
  controller: this.props.aiChat,
4167
4235
  questionToolbarItems: this.props.questionToolbarItems
4168
4236
  })
4169
4237
  })]
4170
4238
  })]
4171
- }) : l("div", {
4239
+ }) : c("div", {
4172
4240
  className: "".concat(this.ns.be("main", "default")),
4173
- children: [l("div", {
4241
+ children: [c("div", {
4174
4242
  className: this.ns.b("content"),
4175
- children: l(gt, {
4243
+ children: c(bt, {
4176
4244
  controller: this.props.aiChat,
4177
4245
  toolbarItems: this.props.contentToolbarItems
4178
4246
  })
4179
- }), l(Ge, {
4247
+ }), c(Ge, {
4180
4248
  data: this.props.aiTopic.activedTopic.value,
4181
4249
  type: "footer",
4182
4250
  className: this.ns.e("toolbar"),
4183
4251
  controller: this.props.aiChat,
4184
4252
  items: this.props.footerToolbarItems
4185
- }), l("div", {
4253
+ }), c("div", {
4186
4254
  className: this.ns.b("footer"),
4187
- children: l(It, {
4255
+ children: c(Dt, {
4188
4256
  controller: this.props.aiChat,
4189
4257
  questionToolbarItems: this.props.questionToolbarItems
4190
4258
  })
4191
4259
  })]
4192
4260
  })]
4193
- }), l("div", {
4261
+ }), c("div", {
4194
4262
  title: "AI助手",
4195
4263
  ref: this.minimizeRef,
4196
4264
  className: "".concat(this.ns.e("minimize"), " ").concat(this.ns.is("hidden", !this.state.isMinimize)),
4197
4265
  onClick: this.exitMinimize.bind(this),
4198
- children: l(qi, {})
4266
+ children: c(Yi, {})
4199
4267
  })]
4200
4268
  })
4201
4269
  });
4202
4270
  }
4203
4271
  }
4204
4272
  export {
4205
- Dt as ChatContainer,
4206
- Vn as chat
4273
+ zt as ChatContainer,
4274
+ qn as chat
4207
4275
  };