react-pro-messenger 1.0.5 → 1.0.6

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,669 +1,481 @@
1
- var rt = Object.defineProperty;
2
- var tt = (r, i, o) => i in r ? rt(r, i, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[i] = o;
3
- var he = (r, i, o) => tt(r, typeof i != "symbol" ? i + "" : i, o);
4
- import se, { useState as ue, useRef as me, useEffect as nt, forwardRef as ke } from "react";
5
- import { AnimatePresence as Pr, motion as Je } from "framer-motion";
6
- class $e {
1
+ var yr = Object.defineProperty;
2
+ var gr = (e, s, o) => s in e ? yr(e, s, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[s] = o;
3
+ var de = (e, s, o) => gr(e, typeof s != "symbol" ? s + "" : s, o);
4
+ import ne, { useState as se, useRef as ye, useEffect as mr, forwardRef as Re } from "react";
5
+ import { AnimatePresence as dr, motion as We } from "framer-motion";
6
+ class _e {
7
7
  constructor({
8
- id: i,
8
+ id: s,
9
9
  text: o,
10
10
  createdDate: t,
11
- attachment: s,
11
+ attachment: i,
12
12
  attachmentType: a,
13
- user: h,
14
- isRightSided: g,
15
- symbols: p
13
+ user: d,
14
+ isRightSided: y,
15
+ symbols: h
16
16
  }) {
17
- he(this, "id", "0");
18
- he(this, "text", "");
19
- he(this, "createdDate", "");
20
- he(this, "attachment", "");
21
- he(this, "attachmentType");
22
- he(this, "user", { id: "" });
23
- he(this, "isRightSided", !1);
24
- he(this, "symbols");
25
- this.id = i, this.text = o, this.createdDate = t, this.attachment = s, this.attachmentType = a, this.user = h, this.isRightSided = g, this.symbols = p;
17
+ de(this, "id", "0");
18
+ de(this, "text", "");
19
+ de(this, "createdDate", "");
20
+ de(this, "attachment", "");
21
+ de(this, "attachmentType");
22
+ de(this, "user", { id: "" });
23
+ de(this, "isRightSided", !1);
24
+ de(this, "symbols");
25
+ this.id = s, this.text = o, this.createdDate = t, this.attachment = i, this.attachmentType = a, this.user = d, this.isRightSided = y, this.symbols = h;
26
26
  }
27
27
  }
28
- function ot(r) {
29
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
28
+ function xr(e) {
29
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
30
30
  }
31
- var _e = { exports: {} }, Ee = {};
31
+ var Te = { exports: {} }, we = {};
32
32
  /**
33
33
  * @license React
34
- * react-jsx-runtime.production.min.js
34
+ * react-jsx-runtime.production.js
35
35
  *
36
- * Copyright (c) Facebook, Inc. and its affiliates.
36
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
37
37
  *
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */
41
- var hr;
42
- function at() {
43
- if (hr) return Ee;
44
- hr = 1;
45
- var r = se, i = Symbol.for("react.element"), o = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
46
- function h(g, p, b) {
47
- var y, m = {}, _ = null, A = null;
48
- b !== void 0 && (_ = "" + b), p.key !== void 0 && (_ = "" + p.key), p.ref !== void 0 && (A = p.ref);
49
- for (y in p) t.call(p, y) && !a.hasOwnProperty(y) && (m[y] = p[y]);
50
- if (g && g.defaultProps) for (y in p = g.defaultProps, p) m[y] === void 0 && (m[y] = p[y]);
51
- return { $$typeof: i, type: g, key: _, ref: A, props: m, _owner: s.current };
41
+ var Ge;
42
+ function br() {
43
+ if (Ge) return we;
44
+ Ge = 1;
45
+ var e = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
46
+ function o(t, i, a) {
47
+ var d = null;
48
+ if (a !== void 0 && (d = "" + a), i.key !== void 0 && (d = "" + i.key), "key" in i) {
49
+ a = {};
50
+ for (var y in i)
51
+ y !== "key" && (a[y] = i[y]);
52
+ } else a = i;
53
+ return i = a.ref, {
54
+ $$typeof: e,
55
+ type: t,
56
+ key: d,
57
+ ref: i !== void 0 ? i : null,
58
+ props: a
59
+ };
52
60
  }
53
- return Ee.Fragment = o, Ee.jsx = h, Ee.jsxs = h, Ee;
61
+ return we.Fragment = s, we.jsx = o, we.jsxs = o, we;
54
62
  }
55
- var Te = {};
63
+ var je = {};
56
64
  /**
57
65
  * @license React
58
66
  * react-jsx-runtime.development.js
59
67
  *
60
- * Copyright (c) Facebook, Inc. and its affiliates.
68
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
61
69
  *
62
70
  * This source code is licensed under the MIT license found in the
63
71
  * LICENSE file in the root directory of this source tree.
64
72
  */
65
- var yr;
66
- function it() {
67
- return yr || (yr = 1, process.env.NODE_ENV !== "production" && function() {
68
- var r = se, i = Symbol.for("react.element"), o = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), g = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), J = Symbol.iterator, L = "@@iterator";
69
- function q(e) {
70
- if (e === null || typeof e != "object")
71
- return null;
72
- var c = J && e[J] || e[L];
73
- return typeof c == "function" ? c : null;
74
- }
75
- var z = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
76
- function V(e) {
77
- {
78
- for (var c = arguments.length, v = new Array(c > 1 ? c - 1 : 0), x = 1; x < c; x++)
79
- v[x - 1] = arguments[x];
80
- j("error", e, v);
81
- }
82
- }
83
- function j(e, c, v) {
84
- {
85
- var x = z.ReactDebugCurrentFrame, F = x.getStackAddendum();
86
- F !== "" && (c += "%s", v = v.concat([F]));
87
- var U = v.map(function(D) {
88
- return String(D);
89
- });
90
- U.unshift("Warning: " + c), Function.prototype.apply.call(console[e], console, U);
91
- }
92
- }
93
- var B = !1, u = !1, Z = !1, ee = !1, H = !1, ae;
94
- ae = Symbol.for("react.module.reference");
95
- function pe(e) {
96
- return !!(typeof e == "string" || typeof e == "function" || e === t || e === a || H || e === s || e === b || e === y || ee || e === A || B || u || Z || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === m || e.$$typeof === h || e.$$typeof === g || e.$$typeof === p || // This needs to include all possible module reference object
97
- // types supported by any Flight configuration anywhere since
98
- // we don't know which Flight build this will end up being used
99
- // with.
100
- e.$$typeof === ae || e.getModuleId !== void 0));
101
- }
102
- function ve(e, c, v) {
103
- var x = e.displayName;
104
- if (x)
105
- return x;
106
- var F = c.displayName || c.name || "";
107
- return F !== "" ? v + "(" + F + ")" : v;
108
- }
109
- function fe(e) {
110
- return e.displayName || "Context";
111
- }
112
- function Q(e) {
113
- if (e == null)
114
- return null;
115
- if (typeof e.tag == "number" && V("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
116
- return e.displayName || e.name || null;
117
- if (typeof e == "string")
118
- return e;
119
- switch (e) {
120
- case t:
73
+ var Ke;
74
+ function wr() {
75
+ return Ke || (Ke = 1, process.env.NODE_ENV !== "production" && function() {
76
+ function e(r) {
77
+ if (r == null) return null;
78
+ if (typeof r == "function")
79
+ return r.$$typeof === L ? null : r.displayName || r.name || null;
80
+ if (typeof r == "string") return r;
81
+ switch (r) {
82
+ case V:
121
83
  return "Fragment";
122
- case o:
84
+ case c:
123
85
  return "Portal";
124
- case a:
86
+ case F:
125
87
  return "Profiler";
126
- case s:
88
+ case H:
127
89
  return "StrictMode";
128
- case b:
90
+ case ae:
129
91
  return "Suspense";
130
- case y:
92
+ case ie:
131
93
  return "SuspenseList";
132
94
  }
133
- if (typeof e == "object")
134
- switch (e.$$typeof) {
135
- case g:
136
- var c = e;
137
- return fe(c) + ".Consumer";
138
- case h:
139
- var v = e;
140
- return fe(v._context) + ".Provider";
141
- case p:
142
- return ve(e, e.render, "ForwardRef");
143
- case m:
144
- var x = e.displayName || null;
145
- return x !== null ? x : Q(e.type) || "Memo";
146
- case _: {
147
- var F = e, U = F._payload, D = F._init;
95
+ if (typeof r == "object")
96
+ switch (typeof r.tag == "number" && console.error(
97
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
98
+ ), r.$$typeof) {
99
+ case le:
100
+ return (r.displayName || "Context") + ".Provider";
101
+ case re:
102
+ return (r._context.displayName || "Context") + ".Consumer";
103
+ case oe:
104
+ var p = r.render;
105
+ return r = r.displayName, r || (r = p.displayName || p.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
106
+ case K:
107
+ return p = r.displayName || null, p !== null ? p : e(r.type) || "Memo";
108
+ case ce:
109
+ p = r._payload, r = r._init;
148
110
  try {
149
- return Q(D(U));
111
+ return e(r(p));
150
112
  } catch {
151
- return null;
152
113
  }
153
- }
154
114
  }
155
115
  return null;
156
116
  }
157
- var G = Object.assign, de = 0, O, N, I, re, l, f, w;
158
- function C() {
117
+ function s(r) {
118
+ return "" + r;
159
119
  }
160
- C.__reactDisabledLog = !0;
161
- function E() {
162
- {
163
- if (de === 0) {
164
- O = console.log, N = console.info, I = console.warn, re = console.error, l = console.group, f = console.groupCollapsed, w = console.groupEnd;
165
- var e = {
166
- configurable: !0,
167
- enumerable: !0,
168
- value: C,
169
- writable: !0
170
- };
171
- Object.defineProperties(console, {
172
- info: e,
173
- log: e,
174
- warn: e,
175
- error: e,
176
- group: e,
177
- groupCollapsed: e,
178
- groupEnd: e
179
- });
180
- }
181
- de++;
182
- }
183
- }
184
- function M() {
185
- {
186
- if (de--, de === 0) {
187
- var e = {
188
- configurable: !0,
189
- enumerable: !0,
190
- writable: !0
191
- };
192
- Object.defineProperties(console, {
193
- log: G({}, e, {
194
- value: O
195
- }),
196
- info: G({}, e, {
197
- value: N
198
- }),
199
- warn: G({}, e, {
200
- value: I
201
- }),
202
- error: G({}, e, {
203
- value: re
204
- }),
205
- group: G({}, e, {
206
- value: l
207
- }),
208
- groupCollapsed: G({}, e, {
209
- value: f
210
- }),
211
- groupEnd: G({}, e, {
212
- value: w
213
- })
214
- });
215
- }
216
- de < 0 && V("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
120
+ function o(r) {
121
+ try {
122
+ s(r);
123
+ var p = !1;
124
+ } catch {
125
+ p = !0;
217
126
  }
218
- }
219
- var T = z.ReactCurrentDispatcher, R;
220
- function S(e, c, v) {
221
- {
222
- if (R === void 0)
223
- try {
224
- throw Error();
225
- } catch (F) {
226
- var x = F.stack.trim().match(/\n( *(at )?)/);
227
- R = x && x[1] || "";
228
- }
229
- return `
230
- ` + R + e;
127
+ if (p) {
128
+ p = console;
129
+ var v = p.error, $ = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
130
+ return v.call(
131
+ p,
132
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
133
+ $
134
+ ), s(r);
231
135
  }
232
136
  }
233
- var $ = !1, P;
234
- {
235
- var te = typeof WeakMap == "function" ? WeakMap : Map;
236
- P = new te();
137
+ function t() {
237
138
  }
238
- function d(e, c) {
239
- if (!e || $)
240
- return "";
241
- {
242
- var v = P.get(e);
243
- if (v !== void 0)
244
- return v;
139
+ function i() {
140
+ if (m === 0) {
141
+ _ = console.log, E = console.info, O = console.warn, P = console.error, A = console.group, k = console.groupCollapsed, J = console.groupEnd;
142
+ var r = {
143
+ configurable: !0,
144
+ enumerable: !0,
145
+ value: t,
146
+ writable: !0
147
+ };
148
+ Object.defineProperties(console, {
149
+ info: r,
150
+ log: r,
151
+ warn: r,
152
+ error: r,
153
+ group: r,
154
+ groupCollapsed: r,
155
+ groupEnd: r
156
+ });
157
+ }
158
+ m++;
159
+ }
160
+ function a() {
161
+ if (m--, m === 0) {
162
+ var r = { configurable: !0, enumerable: !0, writable: !0 };
163
+ Object.defineProperties(console, {
164
+ log: u({}, r, { value: _ }),
165
+ info: u({}, r, { value: E }),
166
+ warn: u({}, r, { value: O }),
167
+ error: u({}, r, { value: P }),
168
+ group: u({}, r, { value: A }),
169
+ groupCollapsed: u({}, r, { value: k }),
170
+ groupEnd: u({}, r, { value: J })
171
+ });
245
172
  }
246
- var x;
247
- $ = !0;
248
- var F = Error.prepareStackTrace;
249
- Error.prepareStackTrace = void 0;
250
- var U;
251
- U = T.current, T.current = null, E();
173
+ 0 > m && console.error(
174
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
175
+ );
176
+ }
177
+ function d(r) {
178
+ if (f === void 0)
179
+ try {
180
+ throw Error();
181
+ } catch (v) {
182
+ var p = v.stack.trim().match(/\n( *(at )?)/);
183
+ f = p && p[1] || "", te = -1 < v.stack.indexOf(`
184
+ at`) ? " (<anonymous>)" : -1 < v.stack.indexOf("@") ? "@unknown:0:0" : "";
185
+ }
186
+ return `
187
+ ` + f + r + te;
188
+ }
189
+ function y(r, p) {
190
+ if (!r || pe) return "";
191
+ var v = me.get(r);
192
+ if (v !== void 0) return v;
193
+ pe = !0, v = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
194
+ var $ = null;
195
+ $ = Z.H, Z.H = null, i();
252
196
  try {
253
- if (c) {
254
- var D = function() {
255
- throw Error();
256
- };
257
- if (Object.defineProperty(D.prototype, "props", {
258
- set: function() {
259
- throw Error();
260
- }
261
- }), typeof Reflect == "object" && Reflect.construct) {
197
+ var X = {
198
+ DetermineComponentFrameRoot: function() {
262
199
  try {
263
- Reflect.construct(D, []);
264
- } catch (ie) {
265
- x = ie;
266
- }
267
- Reflect.construct(e, [], D);
268
- } else {
269
- try {
270
- D.call();
271
- } catch (ie) {
272
- x = ie;
200
+ if (p) {
201
+ var ve = function() {
202
+ throw Error();
203
+ };
204
+ if (Object.defineProperty(ve.prototype, "props", {
205
+ set: function() {
206
+ throw Error();
207
+ }
208
+ }), typeof Reflect == "object" && Reflect.construct) {
209
+ try {
210
+ Reflect.construct(ve, []);
211
+ } catch (fe) {
212
+ var Ee = fe;
213
+ }
214
+ Reflect.construct(r, [], ve);
215
+ } else {
216
+ try {
217
+ ve.call();
218
+ } catch (fe) {
219
+ Ee = fe;
220
+ }
221
+ r.call(ve.prototype);
222
+ }
223
+ } else {
224
+ try {
225
+ throw Error();
226
+ } catch (fe) {
227
+ Ee = fe;
228
+ }
229
+ (ve = r()) && typeof ve.catch == "function" && ve.catch(function() {
230
+ });
231
+ }
232
+ } catch (fe) {
233
+ if (fe && Ee && typeof fe.stack == "string")
234
+ return [fe.stack, Ee.stack];
273
235
  }
274
- e.call(D.prototype);
275
- }
276
- } else {
277
- try {
278
- throw Error();
279
- } catch (ie) {
280
- x = ie;
236
+ return [null, null];
281
237
  }
282
- e();
283
- }
284
- } catch (ie) {
285
- if (ie && x && typeof ie.stack == "string") {
286
- for (var k = ie.stack.split(`
287
- `), oe = x.stack.split(`
288
- `), K = k.length - 1, X = oe.length - 1; K >= 1 && X >= 0 && k[K] !== oe[X]; )
289
- X--;
290
- for (; K >= 1 && X >= 0; K--, X--)
291
- if (k[K] !== oe[X]) {
292
- if (K !== 1 || X !== 1)
238
+ };
239
+ X.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
240
+ var U = Object.getOwnPropertyDescriptor(
241
+ X.DetermineComponentFrameRoot,
242
+ "name"
243
+ );
244
+ U && U.configurable && Object.defineProperty(
245
+ X.DetermineComponentFrameRoot,
246
+ "name",
247
+ { value: "DetermineComponentFrameRoot" }
248
+ );
249
+ var T = X.DetermineComponentFrameRoot(), ue = T[0], xe = T[1];
250
+ if (ue && xe) {
251
+ var Q = ue.split(`
252
+ `), he = xe.split(`
253
+ `);
254
+ for (T = U = 0; U < Q.length && !Q[U].includes(
255
+ "DetermineComponentFrameRoot"
256
+ ); )
257
+ U++;
258
+ for (; T < he.length && !he[T].includes(
259
+ "DetermineComponentFrameRoot"
260
+ ); )
261
+ T++;
262
+ if (U === Q.length || T === he.length)
263
+ for (U = Q.length - 1, T = he.length - 1; 1 <= U && 0 <= T && Q[U] !== he[T]; )
264
+ T--;
265
+ for (; 1 <= U && 0 <= T; U--, T--)
266
+ if (Q[U] !== he[T]) {
267
+ if (U !== 1 || T !== 1)
293
268
  do
294
- if (K--, X--, X < 0 || k[K] !== oe[X]) {
295
- var ce = `
296
- ` + k[K].replace(" at new ", " at ");
297
- return e.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", e.displayName)), typeof e == "function" && P.set(e, ce), ce;
269
+ if (U--, T--, 0 > T || Q[U] !== he[T]) {
270
+ var be = `
271
+ ` + Q[U].replace(
272
+ " at new ",
273
+ " at "
274
+ );
275
+ return r.displayName && be.includes("<anonymous>") && (be = be.replace("<anonymous>", r.displayName)), typeof r == "function" && me.set(r, be), be;
298
276
  }
299
- while (K >= 1 && X >= 0);
277
+ while (1 <= U && 0 <= T);
300
278
  break;
301
279
  }
302
280
  }
303
281
  } finally {
304
- $ = !1, T.current = U, M(), Error.prepareStackTrace = F;
282
+ pe = !1, Z.H = $, a(), Error.prepareStackTrace = v;
283
+ }
284
+ return Q = (Q = r ? r.displayName || r.name : "") ? d(Q) : "", typeof r == "function" && me.set(r, Q), Q;
285
+ }
286
+ function h(r) {
287
+ if (r == null) return "";
288
+ if (typeof r == "function") {
289
+ var p = r.prototype;
290
+ return y(
291
+ r,
292
+ !(!p || !p.isReactComponent)
293
+ );
305
294
  }
306
- var Ce = e ? e.displayName || e.name : "", ge = Ce ? S(Ce) : "";
307
- return typeof e == "function" && P.set(e, ge), ge;
308
- }
309
- function le(e, c, v) {
310
- return d(e, !1);
311
- }
312
- function xe(e) {
313
- var c = e.prototype;
314
- return !!(c && c.isReactComponent);
315
- }
316
- function ye(e, c, v) {
317
- if (e == null)
318
- return "";
319
- if (typeof e == "function")
320
- return d(e, xe(e));
321
- if (typeof e == "string")
322
- return S(e);
323
- switch (e) {
324
- case b:
325
- return S("Suspense");
326
- case y:
327
- return S("SuspenseList");
295
+ if (typeof r == "string") return d(r);
296
+ switch (r) {
297
+ case ae:
298
+ return d("Suspense");
299
+ case ie:
300
+ return d("SuspenseList");
328
301
  }
329
- if (typeof e == "object")
330
- switch (e.$$typeof) {
331
- case p:
332
- return le(e.render);
333
- case m:
334
- return ye(e.type, c, v);
335
- case _: {
336
- var x = e, F = x._payload, U = x._init;
302
+ if (typeof r == "object")
303
+ switch (r.$$typeof) {
304
+ case oe:
305
+ return r = y(r.render, !1), r;
306
+ case K:
307
+ return h(r.type);
308
+ case ce:
309
+ p = r._payload, r = r._init;
337
310
  try {
338
- return ye(U(F), c, v);
311
+ return h(r(p));
339
312
  } catch {
340
313
  }
341
- }
342
314
  }
343
315
  return "";
344
316
  }
345
- var je = Object.prototype.hasOwnProperty, rr = {}, tr = z.ReactDebugCurrentFrame;
346
- function Oe(e) {
347
- if (e) {
348
- var c = e._owner, v = ye(e.type, e._source, c ? c.type : null);
349
- tr.setExtraStackFrame(v);
350
- } else
351
- tr.setExtraStackFrame(null);
317
+ function b() {
318
+ var r = Z.A;
319
+ return r === null ? null : r.getOwner();
352
320
  }
353
- function Nr(e, c, v, x, F) {
354
- {
355
- var U = Function.call.bind(je);
356
- for (var D in e)
357
- if (U(e, D)) {
358
- var k = void 0;
359
- try {
360
- if (typeof e[D] != "function") {
361
- var oe = Error((x || "React class") + ": " + v + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
362
- throw oe.name = "Invariant Violation", oe;
363
- }
364
- k = e[D](c, D, x, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
365
- } catch (K) {
366
- k = K;
367
- }
368
- k && !(k instanceof Error) && (Oe(F), V("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", v, D, typeof k), Oe(null)), k instanceof Error && !(k.message in rr) && (rr[k.message] = !0, Oe(F), V("Failed %s type: %s", v, k.message), Oe(null));
369
- }
321
+ function g(r) {
322
+ if (l.call(r, "key")) {
323
+ var p = Object.getOwnPropertyDescriptor(r, "key").get;
324
+ if (p && p.isReactWarning) return !1;
370
325
  }
371
- }
372
- var Ir = Array.isArray;
373
- function Le(e) {
374
- return Ir(e);
375
- }
376
- function Mr(e) {
377
- {
378
- var c = typeof Symbol == "function" && Symbol.toStringTag, v = c && e[Symbol.toStringTag] || e.constructor.name || "Object";
379
- return v;
380
- }
381
- }
382
- function Dr(e) {
383
- try {
384
- return nr(e), !1;
385
- } catch {
386
- return !0;
387
- }
388
- }
389
- function nr(e) {
390
- return "" + e;
391
- }
392
- function or(e) {
393
- if (Dr(e))
394
- return V("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Mr(e)), nr(e);
395
- }
396
- var ar = z.ReactCurrentOwner, $r = {
397
- key: !0,
398
- ref: !0,
399
- __self: !0,
400
- __source: !0
401
- }, ir, sr;
402
- function Ar(e) {
403
- if (je.call(e, "ref")) {
404
- var c = Object.getOwnPropertyDescriptor(e, "ref").get;
405
- if (c && c.isReactWarning)
406
- return !1;
407
- }
408
- return e.ref !== void 0;
409
- }
410
- function Fr(e) {
411
- if (je.call(e, "key")) {
412
- var c = Object.getOwnPropertyDescriptor(e, "key").get;
413
- if (c && c.isReactWarning)
414
- return !1;
415
- }
416
- return e.key !== void 0;
417
- }
418
- function Wr(e, c) {
419
- typeof e.ref == "string" && ar.current;
420
- }
421
- function Yr(e, c) {
422
- {
423
- var v = function() {
424
- ir || (ir = !0, V("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
425
- };
426
- v.isReactWarning = !0, Object.defineProperty(e, "key", {
427
- get: v,
428
- configurable: !0
429
- });
430
- }
431
- }
432
- function Vr(e, c) {
433
- {
434
- var v = function() {
435
- sr || (sr = !0, V("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
436
- };
437
- v.isReactWarning = !0, Object.defineProperty(e, "ref", {
438
- get: v,
439
- configurable: !0
440
- });
326
+ return r.key !== void 0;
327
+ }
328
+ function j(r, p) {
329
+ function v() {
330
+ Ze || (Ze = !0, console.error(
331
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
332
+ p
333
+ ));
441
334
  }
335
+ v.isReactWarning = !0, Object.defineProperty(r, "key", {
336
+ get: v,
337
+ configurable: !0
338
+ });
442
339
  }
443
- var zr = function(e, c, v, x, F, U, D) {
444
- var k = {
445
- // This tag allows us to uniquely identify this as a React Element
446
- $$typeof: i,
447
- // Built-in properties that belong on the element
448
- type: e,
449
- key: c,
450
- ref: v,
451
- props: D,
452
- // Record the component responsible for creating this element.
453
- _owner: U
454
- };
455
- return k._store = {}, Object.defineProperty(k._store, "validated", {
456
- configurable: !1,
340
+ function M() {
341
+ var r = e(this.type);
342
+ return He[r] || (He[r] = !0, console.error(
343
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
344
+ )), r = this.props.ref, r !== void 0 ? r : null;
345
+ }
346
+ function z(r, p, v, $, X, U) {
347
+ return v = U.ref, r = {
348
+ $$typeof: D,
349
+ type: r,
350
+ key: p,
351
+ props: U,
352
+ _owner: X
353
+ }, (v !== void 0 ? v : null) !== null ? Object.defineProperty(r, "ref", {
457
354
  enumerable: !1,
458
- writable: !0,
459
- value: !1
460
- }), Object.defineProperty(k, "_self", {
355
+ get: M
356
+ }) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
461
357
  configurable: !1,
462
358
  enumerable: !1,
463
- writable: !1,
464
- value: x
465
- }), Object.defineProperty(k, "_source", {
359
+ writable: !0,
360
+ value: 0
361
+ }), Object.defineProperty(r, "_debugInfo", {
466
362
  configurable: !1,
467
363
  enumerable: !1,
468
- writable: !1,
469
- value: F
470
- }), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
471
- };
472
- function Ur(e, c, v, x, F) {
473
- {
474
- var U, D = {}, k = null, oe = null;
475
- v !== void 0 && (or(v), k = "" + v), Fr(c) && (or(c.key), k = "" + c.key), Ar(c) && (oe = c.ref, Wr(c, F));
476
- for (U in c)
477
- je.call(c, U) && !$r.hasOwnProperty(U) && (D[U] = c[U]);
478
- if (e && e.defaultProps) {
479
- var K = e.defaultProps;
480
- for (U in K)
481
- D[U] === void 0 && (D[U] = K[U]);
482
- }
483
- if (k || oe) {
484
- var X = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
485
- k && Yr(D, X), oe && Vr(D, X);
486
- }
487
- return zr(e, k, oe, F, x, ar.current, D);
488
- }
489
- }
490
- var Ne = z.ReactCurrentOwner, lr = z.ReactDebugCurrentFrame;
491
- function we(e) {
492
- if (e) {
493
- var c = e._owner, v = ye(e.type, e._source, c ? c.type : null);
494
- lr.setExtraStackFrame(v);
364
+ writable: !0,
365
+ value: null
366
+ }), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
367
+ }
368
+ function B(r, p, v, $, X, U) {
369
+ if (typeof r == "string" || typeof r == "function" || r === V || r === F || r === H || r === ae || r === ie || r === S || typeof r == "object" && r !== null && (r.$$typeof === ce || r.$$typeof === K || r.$$typeof === le || r.$$typeof === re || r.$$typeof === oe || r.$$typeof === w || r.getModuleId !== void 0)) {
370
+ var T = p.children;
371
+ if (T !== void 0)
372
+ if ($)
373
+ if (x(T)) {
374
+ for ($ = 0; $ < T.length; $++)
375
+ R(T[$], r);
376
+ Object.freeze && Object.freeze(T);
377
+ } else
378
+ console.error(
379
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
380
+ );
381
+ else R(T, r);
495
382
  } else
496
- lr.setExtraStackFrame(null);
497
- }
498
- var Ie;
499
- Ie = !1;
500
- function Me(e) {
501
- return typeof e == "object" && e !== null && e.$$typeof === i;
502
- }
503
- function cr() {
504
- {
505
- if (Ne.current) {
506
- var e = Q(Ne.current.type);
507
- if (e)
508
- return `
509
-
510
- Check the render method of \`` + e + "`.";
511
- }
512
- return "";
513
- }
514
- }
515
- function qr(e) {
516
- return "";
517
- }
518
- var ur = {};
519
- function Br(e) {
520
- {
521
- var c = cr();
522
- if (!c) {
523
- var v = typeof e == "string" ? e : e.displayName || e.name;
524
- v && (c = `
525
-
526
- Check the top-level render call using <` + v + ">.");
527
- }
528
- return c;
529
- }
530
- }
531
- function fr(e, c) {
532
- {
533
- if (!e._store || e._store.validated || e.key != null)
534
- return;
535
- e._store.validated = !0;
536
- var v = Br(c);
537
- if (ur[v])
538
- return;
539
- ur[v] = !0;
540
- var x = "";
541
- e && e._owner && e._owner !== Ne.current && (x = " It was passed a child from " + Q(e._owner.type) + "."), we(e), V('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, x), we(null);
542
- }
543
- }
544
- function dr(e, c) {
545
- {
546
- if (typeof e != "object")
547
- return;
548
- if (Le(e))
549
- for (var v = 0; v < e.length; v++) {
550
- var x = e[v];
551
- Me(x) && fr(x, c);
552
- }
553
- else if (Me(e))
554
- e._store && (e._store.validated = !0);
555
- else if (e) {
556
- var F = q(e);
557
- if (typeof F == "function" && F !== e.entries)
558
- for (var U = F.call(e), D; !(D = U.next()).done; )
559
- Me(D.value) && fr(D.value, c);
560
- }
561
- }
562
- }
563
- function Zr(e) {
564
- {
565
- var c = e.type;
566
- if (c == null || typeof c == "string")
567
- return;
568
- var v;
569
- if (typeof c == "function")
570
- v = c.propTypes;
571
- else if (typeof c == "object" && (c.$$typeof === p || // Note: Memo only checks outer props here.
572
- // Inner props are checked in the reconciler.
573
- c.$$typeof === m))
574
- v = c.propTypes;
575
- else
576
- return;
577
- if (v) {
578
- var x = Q(c);
579
- Nr(v, e.props, "prop", x, e);
580
- } else if (c.PropTypes !== void 0 && !Ie) {
581
- Ie = !0;
582
- var F = Q(c);
583
- V("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", F || "Unknown");
584
- }
585
- typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && V("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
586
- }
587
- }
588
- function Jr(e) {
589
- {
590
- for (var c = Object.keys(e.props), v = 0; v < c.length; v++) {
591
- var x = c[v];
592
- if (x !== "children" && x !== "key") {
593
- we(e), V("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), we(null);
594
- break;
595
- }
596
- }
597
- e.ref !== null && (we(e), V("Invalid attribute `ref` supplied to `React.Fragment`."), we(null));
598
- }
599
- }
600
- var pr = {};
601
- function vr(e, c, v, x, F, U) {
602
- {
603
- var D = pe(e);
604
- if (!D) {
605
- var k = "";
606
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
607
- var oe = qr();
608
- oe ? k += oe : k += cr();
609
- var K;
610
- e === null ? K = "null" : Le(e) ? K = "array" : e !== void 0 && e.$$typeof === i ? (K = "<" + (Q(e.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : K = typeof e, V("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, k);
611
- }
612
- var X = Ur(e, c, v, F, U);
613
- if (X == null)
614
- return X;
615
- if (D) {
616
- var ce = c.children;
617
- if (ce !== void 0)
618
- if (x)
619
- if (Le(ce)) {
620
- for (var Ce = 0; Ce < ce.length; Ce++)
621
- dr(ce[Ce], e);
622
- Object.freeze && Object.freeze(ce);
623
- } else
624
- V("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
625
- else
626
- dr(ce, e);
627
- }
628
- if (je.call(c, "key")) {
629
- var ge = Q(e), ie = Object.keys(c).filter(function(et) {
630
- return et !== "key";
631
- }), De = ie.length > 0 ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}";
632
- if (!pr[ge + De]) {
633
- var Qr = ie.length > 0 ? "{" + ie.join(": ..., ") + ": ...}" : "{}";
634
- V(`A props object containing a "key" prop is being spread into JSX:
383
+ T = "", (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), r === null ? $ = "null" : x(r) ? $ = "array" : r !== void 0 && r.$$typeof === D ? ($ = "<" + (e(r.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof r, console.error(
384
+ "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
385
+ $,
386
+ T
387
+ );
388
+ if (l.call(p, "key")) {
389
+ T = e(r);
390
+ var ue = Object.keys(p).filter(function(Q) {
391
+ return Q !== "key";
392
+ });
393
+ $ = 0 < ue.length ? "{key: someKey, " + ue.join(": ..., ") + ": ...}" : "{key: someKey}", Je[T + $] || (ue = 0 < ue.length ? "{" + ue.join(": ..., ") + ": ...}" : "{}", console.error(
394
+ `A props object containing a "key" prop is being spread into JSX:
635
395
  let props = %s;
636
396
  <%s {...props} />
637
397
  React keys must be passed directly to JSX without using spread:
638
398
  let props = %s;
639
- <%s key={someKey} {...props} />`, De, ge, Qr, ge), pr[ge + De] = !0;
399
+ <%s key={someKey} {...props} />`,
400
+ $,
401
+ T,
402
+ ue,
403
+ T
404
+ ), Je[T + $] = !0);
405
+ }
406
+ if (T = null, v !== void 0 && (o(v), T = "" + v), g(p) && (o(p.key), T = "" + p.key), "key" in p) {
407
+ v = {};
408
+ for (var xe in p)
409
+ xe !== "key" && (v[xe] = p[xe]);
410
+ } else v = p;
411
+ return T && j(
412
+ v,
413
+ typeof r == "function" ? r.displayName || r.name || "Unknown" : r
414
+ ), z(r, T, U, X, b(), v);
415
+ }
416
+ function R(r, p) {
417
+ if (typeof r == "object" && r && r.$$typeof !== hr) {
418
+ if (x(r))
419
+ for (var v = 0; v < r.length; v++) {
420
+ var $ = r[v];
421
+ W($) && q($, p);
640
422
  }
641
- }
642
- return e === t ? Jr(X) : Zr(X), X;
423
+ else if (W(r))
424
+ r._store && (r._store.validated = 1);
425
+ else if (r === null || typeof r != "object" ? v = null : (v = N && r[N] || r["@@iterator"], v = typeof v == "function" ? v : null), typeof v == "function" && v !== r.entries && (v = v.call(r), v !== r))
426
+ for (; !(r = v.next()).done; )
427
+ W(r.value) && q(r.value, p);
643
428
  }
644
429
  }
645
- function Hr(e, c, v) {
646
- return vr(e, c, v, !0);
647
- }
648
- function Kr(e, c, v) {
649
- return vr(e, c, v, !1);
430
+ function W(r) {
431
+ return typeof r == "object" && r !== null && r.$$typeof === D;
432
+ }
433
+ function q(r, p) {
434
+ if (r._store && !r._store.validated && r.key == null && (r._store.validated = 1, p = ee(p), !Xe[p])) {
435
+ Xe[p] = !0;
436
+ var v = "";
437
+ r && r._owner != null && r._owner !== b() && (v = null, typeof r._owner.tag == "number" ? v = e(r._owner.type) : typeof r._owner.name == "string" && (v = r._owner.name), v = " It was passed a child from " + v + ".");
438
+ var $ = Z.getCurrentStack;
439
+ Z.getCurrentStack = function() {
440
+ var X = h(r.type);
441
+ return $ && (X += $() || ""), X;
442
+ }, console.error(
443
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
444
+ p,
445
+ v
446
+ ), Z.getCurrentStack = $;
447
+ }
650
448
  }
651
- var Xr = Kr, Gr = Hr;
652
- Te.Fragment = t, Te.jsx = Xr, Te.jsxs = Gr;
653
- }()), Te;
449
+ function ee(r) {
450
+ var p = "", v = b();
451
+ return v && (v = e(v.type)) && (p = `
452
+
453
+ Check the render method of \`` + v + "`."), p || (r = e(r)) && (p = `
454
+
455
+ Check the top-level render call using <` + r + ">."), p;
456
+ }
457
+ var C = ne, D = Symbol.for("react.transitional.element"), c = Symbol.for("react.portal"), V = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), re = Symbol.for("react.consumer"), le = Symbol.for("react.context"), oe = Symbol.for("react.forward_ref"), ae = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), ce = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), N = Symbol.iterator, L = Symbol.for("react.client.reference"), Z = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, l = Object.prototype.hasOwnProperty, u = Object.assign, w = Symbol.for("react.client.reference"), x = Array.isArray, m = 0, _, E, O, P, A, k, J;
458
+ t.__reactDisabledLog = !0;
459
+ var f, te, pe = !1, me = new (typeof WeakMap == "function" ? WeakMap : Map)(), hr = Symbol.for("react.client.reference"), Ze, He = {}, Je = {}, Xe = {};
460
+ je.Fragment = V, je.jsx = function(r, p, v, $, X) {
461
+ return B(r, p, v, !1, $, X);
462
+ }, je.jsxs = function(r, p, v, $, X) {
463
+ return B(r, p, v, !0, $, X);
464
+ };
465
+ }()), je;
654
466
  }
655
- var gr;
656
- function st() {
657
- return gr || (gr = 1, process.env.NODE_ENV === "production" ? _e.exports = at() : _e.exports = it()), _e.exports;
467
+ var Qe;
468
+ function jr() {
469
+ return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? Te.exports = br() : Te.exports = wr()), Te.exports;
658
470
  }
659
- var n = st();
660
- const lt = ({
661
- isOpen: r,
662
- onClose: i,
471
+ var n = jr();
472
+ const Cr = ({
473
+ isOpen: e,
474
+ onClose: s,
663
475
  onConfirm: o,
664
476
  header: t,
665
- question: s
666
- }) => r ? /* @__PURE__ */ n.jsx(
477
+ question: i
478
+ }) => e ? /* @__PURE__ */ n.jsx(
667
479
  "div",
668
480
  {
669
481
  id: "default-modal",
@@ -681,7 +493,7 @@ const lt = ({
681
493
  {
682
494
  type: "button",
683
495
  className: "text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 inline-flex justify-center items-center",
684
- onClick: i,
496
+ onClick: s,
685
497
  children: [
686
498
  /* @__PURE__ */ n.jsx(
687
499
  "svg",
@@ -709,7 +521,7 @@ const lt = ({
709
521
  )
710
522
  ] }),
711
523
  /* @__PURE__ */ n.jsx("div", { className: "p-4 md:p-5 space-y-4", children: /* @__PURE__ */ n.jsxs("p", { className: "text-base leading-relaxed text-gray-500 dark:text-gray-400", children: [
712
- s,
524
+ i,
713
525
  " "
714
526
  ] }) }),
715
527
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center p-4 md:p-5 border-t border-gray-200 rounded-b dark:border-gray-600", children: [
@@ -717,7 +529,7 @@ const lt = ({
717
529
  "button",
718
530
  {
719
531
  onClick: () => {
720
- o(), i();
532
+ o(), s();
721
533
  },
722
534
  type: "button",
723
535
  className: "text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",
@@ -727,7 +539,7 @@ const lt = ({
727
539
  /* @__PURE__ */ n.jsx(
728
540
  "button",
729
541
  {
730
- onClick: i,
542
+ onClick: s,
731
543
  type: "button",
732
544
  className: "py-2.5 px-5 ms-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700",
733
545
  children: "Cancel"
@@ -736,14 +548,14 @@ const lt = ({
736
548
  ] })
737
549
  ] }) })
738
550
  }
739
- ) : null, ct = ({
740
- items: r,
741
- isVisible: i,
551
+ ) : null, Er = ({
552
+ items: e,
553
+ isVisible: s,
742
554
  position: o,
743
555
  messageId: t,
744
- isCurrentUserMessage: s
745
- }) => /* @__PURE__ */ n.jsx(Pr, { children: i && /* @__PURE__ */ n.jsx(
746
- Je.div,
556
+ isCurrentUserMessage: i
557
+ }) => /* @__PURE__ */ n.jsx(dr, { children: s && /* @__PURE__ */ n.jsx(
558
+ We.div,
747
559
  {
748
560
  initial: { opacity: 0, scale: 0.8, y: -10 },
749
561
  animate: { opacity: 1, scale: 1, y: 0 },
@@ -751,13 +563,13 @@ const lt = ({
751
563
  transition: { duration: 0.2, ease: "easeOut" },
752
564
  className: "absolute z-20 bg-white shadow-lg rounded-md p-2 px-1 w-42",
753
565
  style: { top: o.y, left: o.x },
754
- children: r.map((a, h) => a != null && a.onlyCurrentUserMessage && !s ? null : /* @__PURE__ */ n.jsxs(
566
+ children: e.map((a, d) => a != null && a.onlyCurrentUserMessage && !i ? null : /* @__PURE__ */ n.jsxs(
755
567
  "button",
756
568
  {
757
569
  className: "cursor-pointer flex items-center gap-2 w-full rounded-md text-left px-2 py-1 hover:bg-gray-200",
758
570
  onClick: () => a.onClick(t),
759
571
  children: [
760
- se.cloneElement(a.icon, {
572
+ ne.cloneElement(a.icon, {
761
573
  className: "text-black",
762
574
  size: 18
763
575
  }),
@@ -765,10 +577,10 @@ const lt = ({
765
577
  /* @__PURE__ */ n.jsx("span", { className: "ml-2 text-black", children: a.name })
766
578
  ]
767
579
  },
768
- h
580
+ d
769
581
  ))
770
582
  }
771
- ) }), ut = () => /* @__PURE__ */ n.jsx(
583
+ ) }), Tr = () => /* @__PURE__ */ n.jsx(
772
584
  "svg",
773
585
  {
774
586
  width: "21",
@@ -784,7 +596,7 @@ const lt = ({
784
596
  }
785
597
  )
786
598
  }
787
- ), ft = () => /* @__PURE__ */ n.jsx(
599
+ ), Or = () => /* @__PURE__ */ n.jsx(
788
600
  "svg",
789
601
  {
790
602
  width: "14",
@@ -800,7 +612,7 @@ const lt = ({
800
612
  }
801
613
  )
802
614
  }
803
- ), mr = () => /* @__PURE__ */ n.jsx(
615
+ ), er = () => /* @__PURE__ */ n.jsx(
804
616
  "svg",
805
617
  {
806
618
  width: "17",
@@ -816,7 +628,7 @@ const lt = ({
816
628
  }
817
629
  )
818
630
  }
819
- ), He = (r) => /* @__PURE__ */ n.jsx("svg", { width: "17px", height: "22px", viewBox: "0 0 9 20", ...r, children: /* @__PURE__ */ n.jsxs("g", { fill: "none", children: [
631
+ ), De = (e) => /* @__PURE__ */ n.jsx("svg", { width: "17px", height: "22px", viewBox: "0 0 9 20", ...e, children: /* @__PURE__ */ n.jsxs("g", { fill: "none", children: [
820
632
  /* @__PURE__ */ n.jsx(
821
633
  "path",
822
634
  {
@@ -846,77 +658,77 @@ const lt = ({
846
658
  d: "M9,1 L2,1 C1.72,1 1.452,1.118 1.263,1.325 C0.89,1.732 0.917,2.365 1.325,2.738 C3.504,4.733 5.046,6.893 5.95,9.218 C7.124,12.233 7.807,15.161 8,18 L8,20 L9,20 L9,1 Z M2,0.667 L9,0.667 L9,20 L7.667,20 L7.667,20 L7.668,18.023 C7.477,15.218 6.802,12.324 5.64,9.338 C4.755,7.064 3.243,4.946 1.1,2.983 C0.557,2.486 0.52,1.643 1.017,1.1 C1.269,0.824 1.626,0.667 2,0.667 Z"
847
659
  }
848
660
  )
849
- ] }) }), dt = ({
850
- onSendMessage: r,
851
- onSendVoice: i,
661
+ ] }) }), Sr = ({
662
+ onSendMessage: e,
663
+ onSendVoice: s,
852
664
  onFileSend: o,
853
665
  dynamicSymbolAssignments: t
854
666
  }) => {
855
- const [s, a] = ue(""), [h, g] = ue(!1), [p, b] = ue(0), [y, m] = ue(null), [_, A] = ue(null), [J, L] = ue(0), q = me(null), z = me([]), V = me(null), j = me(null), B = me(null), [u, Z] = ue(!1), ee = (O) => {
856
- const N = O.target.value;
667
+ const [i, a] = se(""), [d, y] = se(!1), [h, b] = se(0), [g, j] = se(null), [M, z] = se(null), [B, R] = se(0), W = ye(null), q = ye([]), ee = ye(null), C = ye(null), D = ye(null), [c, V] = se(!1), H = (S) => {
668
+ const N = S.target.value;
857
669
  a(N);
858
- const I = N.match(/(\S+)$/);
859
- if (I) {
860
- const re = I[0];
861
- if (y) {
862
- const l = I[0].split(y)[1];
863
- A(l);
670
+ const L = N.match(/(\S+)$/);
671
+ if (L) {
672
+ const Z = L[0];
673
+ if (g) {
674
+ const l = L[0].split(g)[1];
675
+ z(l);
864
676
  }
865
- t != null && t.some((l) => l.symbol === re) && m(re);
677
+ t != null && t.some((l) => l.symbol === Z) && j(Z);
866
678
  } else
867
- m(null);
868
- }, H = (O, N) => {
869
- a((I) => I + N + " "), m(null), j.current.focus();
870
- }, ae = () => {
871
- s.trim() !== "" && (r(s), a(""), m(null));
872
- }, pe = async () => {
873
- g(!0), b(0), z.current = [], V.current = setInterval(() => {
874
- b((I) => I + 1);
679
+ j(null);
680
+ }, F = (S, N) => {
681
+ a((L) => L + N + " "), j(null), C.current.focus();
682
+ }, re = () => {
683
+ i.trim() !== "" && (e(i), a(""), j(null));
684
+ }, le = async () => {
685
+ y(!0), b(0), q.current = [], ee.current = setInterval(() => {
686
+ b((L) => L + 1);
875
687
  }, 1e3);
876
- const O = await navigator.mediaDevices.getUserMedia({ audio: !0 }), N = new MediaRecorder(O);
877
- q.current = N, N.ondataavailable = (I) => {
878
- I.data.size > 0 && z.current.push(I.data);
688
+ const S = await navigator.mediaDevices.getUserMedia({ audio: !0 }), N = new MediaRecorder(S);
689
+ W.current = N, N.ondataavailable = (L) => {
690
+ L.data.size > 0 && q.current.push(L.data);
879
691
  }, N.onstop = () => {
880
- clearInterval(V.current);
881
- const I = new Blob(z.current, { type: "audio/mp3" }), re = URL.createObjectURL(I);
882
- i(re), g(!1);
692
+ clearInterval(ee.current);
693
+ const L = new Blob(q.current, { type: "audio/mp3" }), Z = URL.createObjectURL(L);
694
+ s(Z), y(!1);
883
695
  }, N.start();
884
- }, ve = () => {
885
- var O;
886
- (O = q.current) == null || O.stop();
887
- }, fe = () => {
888
- var O;
889
- (O = B.current) == null || O.click();
890
- }, Q = (O) => {
891
- var I;
892
- const N = (I = O.target.files) == null ? void 0 : I[0];
696
+ }, oe = () => {
697
+ var S;
698
+ (S = W.current) == null || S.stop();
699
+ }, ae = () => {
700
+ var S;
701
+ (S = D.current) == null || S.click();
702
+ }, ie = (S) => {
703
+ var L;
704
+ const N = (L = S.target.files) == null ? void 0 : L[0];
893
705
  N && o(N);
894
- }, G = (O) => {
895
- const N = Math.floor(O / 60), I = O % 60;
896
- return `${N.toString().padStart(2, "0")}:${I.toString().padStart(2, "0")}`;
897
- }, de = (O) => {
898
- const { scrollTop: N, scrollHeight: I, clientHeight: re } = O.currentTarget;
899
- if (N > J) {
900
- if (N + re >= I - 1) {
901
- const f = t == null ? void 0 : t.find(
902
- (w) => w.symbol === y
706
+ }, K = (S) => {
707
+ const N = Math.floor(S / 60), L = S % 60;
708
+ return `${N.toString().padStart(2, "0")}:${L.toString().padStart(2, "0")}`;
709
+ }, ce = (S) => {
710
+ const { scrollTop: N, scrollHeight: L, clientHeight: Z } = S.currentTarget;
711
+ if (N > B) {
712
+ if (N + Z >= L - 1) {
713
+ const u = t == null ? void 0 : t.find(
714
+ (w) => w.symbol === g
903
715
  );
904
- f && (f != null && f.updatePageNumber) && (Z(!0), f == null || f.updatePageNumber(f.pagNumber + 1), L(N), setTimeout(() => {
905
- Z(!1);
716
+ u && (u != null && u.updatePageNumber) && (V(!0), u == null || u.updatePageNumber(u.pagNumber + 1), R(N), setTimeout(() => {
717
+ V(!1);
906
718
  }, 500));
907
719
  }
908
720
  } else
909
- L(N);
721
+ R(N);
910
722
  };
911
723
  return /* @__PURE__ */ n.jsxs("div", { className: "absolute bottom-0 w-full flex items-center p-2 pr-4 z-10", children: [
912
- h ? /* @__PURE__ */ n.jsxs("div", { className: "w-full flex justify-between items-center bg-white p-2 pl-4 h-11 rounded-3xl ", children: [
913
- /* @__PURE__ */ n.jsx("span", { className: "text-blue-400 font-bold flex-1", children: G(p) }),
724
+ d ? /* @__PURE__ */ n.jsxs("div", { className: "w-full flex justify-between items-center bg-white p-2 pl-4 h-11 rounded-3xl ", children: [
725
+ /* @__PURE__ */ n.jsx("span", { className: "text-blue-400 font-bold flex-1", children: K(h) }),
914
726
  /* @__PURE__ */ n.jsx(
915
727
  "button",
916
728
  {
917
729
  className: "cursor-pointer p-2 flex justify-center items-center bg-green-500 text-white rounded-full",
918
- onClick: ve,
919
- children: /* @__PURE__ */ n.jsx(mr, {})
730
+ onClick: oe,
731
+ children: /* @__PURE__ */ n.jsx(er, {})
920
732
  }
921
733
  )
922
734
  ] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -924,71 +736,71 @@ const lt = ({
924
736
  /* @__PURE__ */ n.jsx(
925
737
  "div",
926
738
  {
927
- onClick: fe,
739
+ onClick: ae,
928
740
  className: "cursor-pointer absolute right-4 top-[11px]",
929
- children: /* @__PURE__ */ n.jsx(ut, {})
741
+ children: /* @__PURE__ */ n.jsx(Tr, {})
930
742
  }
931
743
  ),
932
744
  /* @__PURE__ */ n.jsx(
933
745
  "input",
934
746
  {
935
747
  type: "file",
936
- ref: B,
748
+ ref: D,
937
749
  style: { display: "none" },
938
- onChange: Q
750
+ onChange: ie
939
751
  }
940
752
  ),
941
753
  /* @__PURE__ */ n.jsx(
942
754
  "input",
943
755
  {
944
756
  type: "text",
945
- ref: j,
757
+ ref: C,
946
758
  className: "w-full bg-white flex-1 p-2 pl-4 border border-gray-300 outline-none rounded-tl-3xl rounded-tr-2xl rounded-bl-3xl ",
947
759
  placeholder: "Type a message...",
948
- value: s,
949
- onChange: ee,
950
- onKeyDown: (O) => {
951
- O.key === "Enter" && !O.shiftKey && (O.preventDefault(), ae());
760
+ value: i,
761
+ onChange: H,
762
+ onKeyDown: (S) => {
763
+ S.key === "Enter" && !S.shiftKey && (S.preventDefault(), re());
952
764
  }
953
765
  }
954
766
  ),
955
- /* @__PURE__ */ n.jsx(He, { className: "rotate-180 absolute -right-[11.4px] top-5" })
767
+ /* @__PURE__ */ n.jsx(De, { className: "rotate-180 absolute -right-[11.4px] top-5" })
956
768
  ] }),
957
769
  /* @__PURE__ */ n.jsx(
958
770
  "button",
959
771
  {
960
772
  className: "flex items-center justify-center cursor-pointer w-9 h-9 ml-2 p-2 bg-blue-500 text-white rounded-full hover:bg-blue-600 transition",
961
- onClick: s ? ae : pe,
962
- children: s ? /* @__PURE__ */ n.jsx(mr, {}) : /* @__PURE__ */ n.jsx(ft, {})
773
+ onClick: i ? re : le,
774
+ children: i ? /* @__PURE__ */ n.jsx(er, {}) : /* @__PURE__ */ n.jsx(Or, {})
963
775
  }
964
776
  )
965
777
  ] }),
966
- y && /* @__PURE__ */ n.jsxs(
778
+ g && /* @__PURE__ */ n.jsxs(
967
779
  "div",
968
780
  {
969
781
  className: "absolute bottom-full left-0 w-full bg-white shadow-xl rounded-lg border border-gray-200 p-4 z-50 max-h-60 overflow-y-auto",
970
- onScroll: de,
782
+ onScroll: ce,
971
783
  children: [
972
784
  /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between items-center border-b pb-2 mb-2", children: [
973
785
  /* @__PURE__ */ n.jsxs("h3", { className: "text-lg font-semibold text-gray-800", children: [
974
786
  "Select an item for",
975
787
  " ",
976
- /* @__PURE__ */ n.jsx("span", { className: "text-blue-500", children: y })
788
+ /* @__PURE__ */ n.jsx("span", { className: "text-blue-500", children: g })
977
789
  ] }),
978
790
  /* @__PURE__ */ n.jsx(
979
791
  "button",
980
792
  {
981
793
  className: "text-gray-500 hover:text-gray-700",
982
- onClick: () => m(null),
794
+ onClick: () => j(null),
983
795
  children: "✕"
984
796
  }
985
797
  )
986
798
  ] }),
987
799
  /* @__PURE__ */ n.jsxs("div", { className: "space-y-2", children: [
988
- t ? t.filter((O) => O.symbol === y).map((O) => {
989
- var re;
990
- const { component: N, lists: I } = O;
991
- return N ? _ ? (re = I == null ? void 0 : I.filter((l) => l == null ? void 0 : l.name.includes(_))) == null ? void 0 : re.map((l, f) => /* @__PURE__ */ n.jsx(
800
+ t ? t.filter((S) => S.symbol === g).map((S) => {
801
+ var Z;
802
+ const { component: N, lists: L } = S;
803
+ return N ? M ? (Z = L == null ? void 0 : L.filter((l) => l == null ? void 0 : l.name.includes(M))) == null ? void 0 : Z.map((l, u) => /* @__PURE__ */ n.jsx(
992
804
  "div",
993
805
  {
994
806
  className: "hover:bg-gray-100 rounded-md p-2 cursor-pointer",
@@ -996,12 +808,12 @@ const lt = ({
996
808
  N,
997
809
  {
998
810
  listsProps: l,
999
- onClick: (w, C) => H(w, C)
811
+ onClick: (w, x) => F(w, x)
1000
812
  }
1001
813
  )
1002
814
  },
1003
- f
1004
- )) : I == null ? void 0 : I.map((l, f) => /* @__PURE__ */ n.jsx(
815
+ u
816
+ )) : L == null ? void 0 : L.map((l, u) => /* @__PURE__ */ n.jsx(
1005
817
  "div",
1006
818
  {
1007
819
  className: "hover:bg-gray-100 rounded-md p-2 cursor-pointer",
@@ -1009,60 +821,60 @@ const lt = ({
1009
821
  N,
1010
822
  {
1011
823
  listsProps: l,
1012
- onClick: (w, C) => H(w, C)
824
+ onClick: (w, x) => F(w, x)
1013
825
  }
1014
826
  )
1015
827
  },
1016
- f
828
+ u
1017
829
  )) : null;
1018
830
  }) : null,
1019
- /* @__PURE__ */ n.jsx("div", { className: "h-8", children: u && "Loading more items..." })
831
+ /* @__PURE__ */ n.jsx("div", { className: "h-8", children: c && "Loading more items..." })
1020
832
  ] })
1021
833
  ]
1022
834
  }
1023
835
  )
1024
836
  ] });
1025
837
  };
1026
- var be = /* @__PURE__ */ ((r) => (r[r.File = 0] = "File", r[r.Voice = 1] = "Voice", r[r.Video = 2] = "Video", r[r.Image = 3] = "Image", r))(be || {});
1027
- const br = ({
1028
- fileName: r,
1029
- fileSize: i,
838
+ var ge = /* @__PURE__ */ ((e) => (e[e.File = 0] = "File", e[e.Voice = 1] = "Voice", e[e.Video = 2] = "Video", e[e.Image = 3] = "Image", e))(ge || {});
839
+ const rr = ({
840
+ fileName: e,
841
+ fileSize: s,
1030
842
  format: o,
1031
843
  src: t
1032
844
  }) => {
1033
- const s = () => ({
845
+ const i = () => ({
1034
846
  rar: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-green-500 font-bold", children: o }),
1035
847
  zip: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-blue-500 font-bold", children: o }),
1036
848
  pdf: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-red-500 font-bold", children: o }),
1037
849
  doc: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-blue-400 font-bold", children: o }),
1038
850
  vid: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-orange-400 font-bold", children: o }),
1039
851
  "": /* @__PURE__ */ n.jsx("p", { className: "p-2 text-black font-bold", children: o })
1040
- })[o || ""], a = (h) => h > 1048576 ? (h / 1048576).toFixed(1) + " MB" : (h / 1024).toFixed(1) + " KB";
852
+ })[o || ""], a = (d) => d > 1048576 ? (d / 1048576).toFixed(1) + " MB" : (d / 1024).toFixed(1) + " KB";
1041
853
  return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center rounded-lg", children: [
1042
- /* @__PURE__ */ n.jsx("div", { className: "mr-3 relative border border-green-950 rounded-md p-3", children: s() }),
854
+ /* @__PURE__ */ n.jsx("div", { className: "mr-3 relative border border-green-950 rounded-md p-3", children: i() }),
1043
855
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col flex-grow", children: [
1044
856
  /* @__PURE__ */ n.jsx(
1045
857
  "a",
1046
858
  {
1047
859
  href: t,
1048
- download: r,
860
+ download: e,
1049
861
  className: "text-gray-900 font-medium hover:underline",
1050
- children: r
862
+ children: e
1051
863
  }
1052
864
  ),
1053
- /* @__PURE__ */ n.jsx("span", { className: "text-gray-600 text-sm", children: a(i) })
865
+ /* @__PURE__ */ n.jsx("span", { className: "text-gray-600 text-sm", children: a(s) })
1054
866
  ] }),
1055
867
  /* @__PURE__ */ n.jsx(
1056
868
  "a",
1057
869
  {
1058
870
  href: t,
1059
- download: r,
871
+ download: e,
1060
872
  className: "ml-2 bg-green-500 text-white px-2 py-1 text-sm rounded hover:bg-green-600",
1061
873
  children: "Download"
1062
874
  }
1063
875
  )
1064
876
  ] });
1065
- }, pt = (r) => /* @__PURE__ */ n.jsx(
877
+ }, Rr = (e) => /* @__PURE__ */ n.jsx(
1066
878
  "svg",
1067
879
  {
1068
880
  xmlns: "http://www.w3.org/2000/svg",
@@ -1075,10 +887,10 @@ const br = ({
1075
887
  strokeLinecap: "round",
1076
888
  strokeLinejoin: "round",
1077
889
  className: "lucide lucide-play",
1078
- ...r,
890
+ ...e,
1079
891
  children: /* @__PURE__ */ n.jsx("polygon", { points: "6 3 20 12 6 21 6 3" })
1080
892
  }
1081
- ), vt = (r) => /* @__PURE__ */ n.jsxs(
893
+ ), _r = (e) => /* @__PURE__ */ n.jsxs(
1082
894
  "svg",
1083
895
  {
1084
896
  xmlns: "http://www.w3.org/2000/svg",
@@ -1091,110 +903,110 @@ const br = ({
1091
903
  strokeLinecap: "round",
1092
904
  strokeLinejoin: "round",
1093
905
  className: "lucide lucide-pause",
1094
- ...r,
906
+ ...e,
1095
907
  children: [
1096
908
  /* @__PURE__ */ n.jsx("rect", { x: "14", y: "4", width: "4", height: "16", rx: "1" }),
1097
909
  /* @__PURE__ */ n.jsx("rect", { x: "6", y: "4", width: "4", height: "16", rx: "1" })
1098
910
  ]
1099
911
  }
1100
912
  );
1101
- let Re = null;
1102
- const ht = ({ src: r, className: i }) => {
1103
- const [o, t] = ue(!1), [s, a] = ue(0), h = me(null);
1104
- nt(() => {
1105
- const p = h.current;
1106
- if (!p) return;
913
+ let Ce = null;
914
+ const Pr = ({ src: e, className: s }) => {
915
+ const [o, t] = se(!1), [i, a] = se(0), d = ye(null);
916
+ mr(() => {
917
+ const h = d.current;
918
+ if (!h) return;
1107
919
  const b = () => {
1108
- a(p.currentTime / p.duration * 100);
1109
- }, y = () => t(!0), m = () => t(!1), _ = () => {
920
+ a(h.currentTime / h.duration * 100);
921
+ }, g = () => t(!0), j = () => t(!1), M = () => {
1110
922
  t(!1), a(0);
1111
923
  };
1112
- return p.addEventListener("timeupdate", b), p.addEventListener("play", y), p.addEventListener("pause", m), p.addEventListener("ended", _), () => {
1113
- p.removeEventListener("timeupdate", b), p.removeEventListener("play", y), p.removeEventListener("pause", m), p.removeEventListener("ended", _);
924
+ return h.addEventListener("timeupdate", b), h.addEventListener("play", g), h.addEventListener("pause", j), h.addEventListener("ended", M), () => {
925
+ h.removeEventListener("timeupdate", b), h.removeEventListener("play", g), h.removeEventListener("pause", j), h.removeEventListener("ended", M);
1114
926
  };
1115
927
  }, []);
1116
- const g = () => {
1117
- const p = h.current;
1118
- p && (o ? p.pause() : (Re && Re !== p && (Re.pause(), Re.currentTime = 0), p.play(), Re = p));
928
+ const y = () => {
929
+ const h = d.current;
930
+ h && (o ? h.pause() : (Ce && Ce !== h && (Ce.pause(), Ce.currentTime = 0), h.play(), Ce = h));
1119
931
  };
1120
932
  return /* @__PURE__ */ n.jsxs(
1121
933
  "div",
1122
934
  {
1123
- className: `flex items-center gap-2 py-2 pl-1 text-white rounded-xl w-full max-w-sm ${i}`,
935
+ className: `flex items-center gap-2 py-2 pl-1 text-white rounded-xl w-full max-w-sm ${s}`,
1124
936
  children: [
1125
937
  /* @__PURE__ */ n.jsx(
1126
938
  "button",
1127
939
  {
1128
940
  className: "w-9 h-9 cursor-pointer flex items-center justify-center pl-[1.5px] bg-gray-700 rounded-full hover:bg-gray-600",
1129
- onClick: g,
1130
- children: o ? /* @__PURE__ */ n.jsx(vt, {}) : /* @__PURE__ */ n.jsx(pt, {})
941
+ onClick: y,
942
+ children: o ? /* @__PURE__ */ n.jsx(_r, {}) : /* @__PURE__ */ n.jsx(Rr, {})
1131
943
  }
1132
944
  ),
1133
945
  /* @__PURE__ */ n.jsx("div", { className: "relative flex-1 h-2 bg-gray-700 rounded-full overflow-hidden", children: /* @__PURE__ */ n.jsx(
1134
946
  "div",
1135
947
  {
1136
948
  className: "h-full bg-blue-500 transition-all",
1137
- style: { width: `${s}%` }
949
+ style: { width: `${i}%` }
1138
950
  }
1139
951
  ) }),
1140
- /* @__PURE__ */ n.jsx("audio", { ref: h, src: r })
952
+ /* @__PURE__ */ n.jsx("audio", { ref: d, src: e })
1141
953
  ]
1142
954
  }
1143
955
  );
1144
- }, yt = ({ attachment: r, attachmentType: i }) => {
1145
- if (r)
1146
- return i === be.Voice ? /* @__PURE__ */ n.jsx("div", { className: "w-full", children: /* @__PURE__ */ n.jsx(ht, { src: r }) }) : i === be.Image ? /* @__PURE__ */ n.jsx("div", { className: "w-full", children: /* @__PURE__ */ n.jsx("img", { src: r }) }) : i === be.File ? /* @__PURE__ */ n.jsx("div", { className: "w-full mt-1", children: /* @__PURE__ */ n.jsx(
1147
- br,
956
+ }, kr = ({ attachment: e, attachmentType: s }) => {
957
+ if (e)
958
+ return s === ge.Voice ? /* @__PURE__ */ n.jsx("div", { className: "w-full", children: /* @__PURE__ */ n.jsx(Pr, { src: e }) }) : s === ge.Image ? /* @__PURE__ */ n.jsx("div", { className: "w-full", children: /* @__PURE__ */ n.jsx("img", { src: e }) }) : s === ge.File ? /* @__PURE__ */ n.jsx("div", { className: "w-full mt-1", children: /* @__PURE__ */ n.jsx(
959
+ rr,
1148
960
  {
1149
961
  fileName: "productivity",
1150
962
  fileSize: 23e3,
1151
963
  format: "rar",
1152
- src: r
964
+ src: e
1153
965
  }
1154
- ) }) : i === be.Video ? /* @__PURE__ */ n.jsx("div", { className: "w-full mt-1", children: /* @__PURE__ */ n.jsx(
1155
- br,
966
+ ) }) : s === ge.Video ? /* @__PURE__ */ n.jsx("div", { className: "w-full mt-1", children: /* @__PURE__ */ n.jsx(
967
+ rr,
1156
968
  {
1157
969
  fileName: "productivity",
1158
970
  fileSize: 23e3,
1159
971
  format: "rar",
1160
- src: r
972
+ src: e
1161
973
  }
1162
974
  ) }) : null;
1163
- }, gt = ({
1164
- message: r,
1165
- showUserProfile: i,
975
+ }, Nr = ({
976
+ message: e,
977
+ showUserProfile: s,
1166
978
  handleContextMenu: o,
1167
979
  media: t
1168
980
  }) => {
1169
- var s, a, h, g, p;
981
+ var i, a, d, y, h;
1170
982
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1171
- i ? /* @__PURE__ */ n.jsx(
983
+ s ? /* @__PURE__ */ n.jsx(
1172
984
  "img",
1173
985
  {
1174
- src: r.user.profileImageUrl,
986
+ src: e.user.profileImageUrl,
1175
987
  className: "w-12 h-12 bg-gray-300 rounded-full"
1176
988
  }
1177
989
  ) : null,
1178
990
  /* @__PURE__ */ n.jsxs(
1179
- Je.div,
991
+ We.div,
1180
992
  {
1181
993
  initial: { opacity: 0, y: 50 },
1182
994
  animate: { opacity: 1, y: 0 },
1183
995
  exit: { opacity: 0, y: 50 },
1184
996
  transition: { duration: 0.3 },
1185
- onContextMenu: (b) => o(b, r),
997
+ onContextMenu: (b) => o(b, e),
1186
998
  className: `relative ${t ? "w-3/4" : "w-fit max-w-3/4"}flex flex-col gap-1 md:max-w-[400px] p-2 pt-5 rounded-lg bg-green-200`,
1187
999
  children: [
1188
- /* @__PURE__ */ n.jsx("span", { className: "absolute top-1 text-xs text-orange-700", children: (s = r.user) != null && s.fullName && ((h = (a = r.user) == null ? void 0 : a.fullName) == null ? void 0 : h.length) > 16 ? (g = r.user) == null ? void 0 : g.firstName : (p = r.user) == null ? void 0 : p.fullName }),
1000
+ /* @__PURE__ */ n.jsx("span", { className: "absolute top-1 text-xs text-orange-700", children: (i = e.user) != null && i.fullName && ((d = (a = e.user) == null ? void 0 : a.fullName) == null ? void 0 : d.length) > 16 ? (y = e.user) == null ? void 0 : y.firstName : (h = e.user) == null ? void 0 : h.fullName }),
1189
1001
  t || null,
1190
- /* @__PURE__ */ n.jsx("span", { children: r.text }),
1191
- /* @__PURE__ */ n.jsx("div", { className: "w-full flex gap- items-center justify-end", children: /* @__PURE__ */ n.jsx("span", { className: "text-[10px]", children: new Date(r.createdDate).toLocaleTimeString().split(":")[0] + ":" + new Date(r.createdDate).toLocaleTimeString().split(":")[1] }) }),
1192
- /* @__PURE__ */ n.jsx(He, { className: "fill-blue-200 -rotate-180 scale-x-[-1] transition-discrete absolute -left-2 bottom-0 [&>g>path]:fill-green-200" })
1002
+ /* @__PURE__ */ n.jsx("span", { children: e.text }),
1003
+ /* @__PURE__ */ n.jsx("div", { className: "w-full flex gap- items-center justify-end", children: /* @__PURE__ */ n.jsx("span", { className: "text-[10px]", children: new Date(e.createdDate).toLocaleTimeString().split(":")[0] + ":" + new Date(e.createdDate).toLocaleTimeString().split(":")[1] }) }),
1004
+ /* @__PURE__ */ n.jsx(De, { className: "fill-blue-200 -rotate-180 scale-x-[-1] transition-discrete absolute -left-2 bottom-0 [&>g>path]:fill-green-200" })
1193
1005
  ]
1194
1006
  }
1195
1007
  )
1196
1008
  ] });
1197
- }, mt = () => /* @__PURE__ */ n.jsxs(
1009
+ }, Lr = () => /* @__PURE__ */ n.jsxs(
1198
1010
  "svg",
1199
1011
  {
1200
1012
  width: "16",
@@ -1221,31 +1033,31 @@ const ht = ({ src: r, className: i }) => {
1221
1033
  )
1222
1034
  ]
1223
1035
  }
1224
- ), bt = ({
1225
- handleContextMenu: r,
1226
- media: i,
1036
+ ), Mr = ({
1037
+ handleContextMenu: e,
1038
+ media: s,
1227
1039
  message: o
1228
1040
  }) => /* @__PURE__ */ n.jsxs(
1229
- Je.div,
1041
+ We.div,
1230
1042
  {
1231
1043
  initial: { opacity: 0, y: 50 },
1232
1044
  animate: { opacity: 1, y: 0 },
1233
1045
  exit: { opacity: 0, y: 50 },
1234
1046
  transition: { duration: 0.3 },
1235
- onContextMenu: (t) => r(t, o),
1236
- className: `relative self-end ${i ? "w-3/4" : "max-w-3/4"} flex flex-col justify-center md:max-w-[400px] p-2 rounded-lg bg-blue-200`,
1047
+ onContextMenu: (t) => e(t, o),
1048
+ className: `relative self-end ${s ? "w-3/4" : "max-w-3/4"} flex flex-col justify-center md:max-w-[400px] p-2 rounded-lg bg-blue-200`,
1237
1049
  children: [
1238
- i || null,
1050
+ s || null,
1239
1051
  /* @__PURE__ */ n.jsx("span", { children: o.text }),
1240
1052
  /* @__PURE__ */ n.jsxs("div", { className: "w-full flex gap-1 items-center justify-end", children: [
1241
1053
  /* @__PURE__ */ n.jsx("span", { className: "text-[10px]", children: new Date(o.createdDate).toLocaleTimeString().split(":")[0] + ":" + new Date(o.createdDate).toLocaleTimeString().split(":")[1] }),
1242
- /* @__PURE__ */ n.jsx(mt, {})
1054
+ /* @__PURE__ */ n.jsx(Lr, {})
1243
1055
  ] }),
1244
- /* @__PURE__ */ n.jsx(He, { className: "fill-blue-200 rotate-180 absolute -right-2 bottom-0 [&>g>path]:fill-blue-200" })
1056
+ /* @__PURE__ */ n.jsx(De, { className: "fill-blue-200 rotate-180 absolute -right-2 bottom-0 [&>g>path]:fill-blue-200" })
1245
1057
  ]
1246
1058
  }
1247
1059
  );
1248
- var Se = { exports: {} }, Pe = { exports: {} }, W = {};
1060
+ var Oe = { exports: {} }, Se = { exports: {} }, I = {};
1249
1061
  /** @license React v16.13.1
1250
1062
  * react-is.production.min.js
1251
1063
  *
@@ -1254,71 +1066,71 @@ var Se = { exports: {} }, Pe = { exports: {} }, W = {};
1254
1066
  * This source code is licensed under the MIT license found in the
1255
1067
  * LICENSE file in the root directory of this source tree.
1256
1068
  */
1257
- var xr;
1258
- function xt() {
1259
- if (xr) return W;
1260
- xr = 1;
1261
- var r = typeof Symbol == "function" && Symbol.for, i = r ? Symbol.for("react.element") : 60103, o = r ? Symbol.for("react.portal") : 60106, t = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, h = r ? Symbol.for("react.provider") : 60109, g = r ? Symbol.for("react.context") : 60110, p = r ? Symbol.for("react.async_mode") : 60111, b = r ? Symbol.for("react.concurrent_mode") : 60111, y = r ? Symbol.for("react.forward_ref") : 60112, m = r ? Symbol.for("react.suspense") : 60113, _ = r ? Symbol.for("react.suspense_list") : 60120, A = r ? Symbol.for("react.memo") : 60115, J = r ? Symbol.for("react.lazy") : 60116, L = r ? Symbol.for("react.block") : 60121, q = r ? Symbol.for("react.fundamental") : 60117, z = r ? Symbol.for("react.responder") : 60118, V = r ? Symbol.for("react.scope") : 60119;
1262
- function j(u) {
1263
- if (typeof u == "object" && u !== null) {
1264
- var Z = u.$$typeof;
1265
- switch (Z) {
1266
- case i:
1267
- switch (u = u.type, u) {
1268
- case p:
1069
+ var tr;
1070
+ function Ar() {
1071
+ if (tr) return I;
1072
+ tr = 1;
1073
+ var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, y = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, M = e ? Symbol.for("react.suspense_list") : 60120, z = e ? Symbol.for("react.memo") : 60115, B = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, W = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, ee = e ? Symbol.for("react.scope") : 60119;
1074
+ function C(c) {
1075
+ if (typeof c == "object" && c !== null) {
1076
+ var V = c.$$typeof;
1077
+ switch (V) {
1078
+ case s:
1079
+ switch (c = c.type, c) {
1080
+ case h:
1269
1081
  case b:
1270
1082
  case t:
1271
1083
  case a:
1272
- case s:
1273
- case m:
1274
- return u;
1084
+ case i:
1085
+ case j:
1086
+ return c;
1275
1087
  default:
1276
- switch (u = u && u.$$typeof, u) {
1277
- case g:
1088
+ switch (c = c && c.$$typeof, c) {
1278
1089
  case y:
1279
- case J:
1280
- case A:
1281
- case h:
1282
- return u;
1090
+ case g:
1091
+ case B:
1092
+ case z:
1093
+ case d:
1094
+ return c;
1283
1095
  default:
1284
- return Z;
1096
+ return V;
1285
1097
  }
1286
1098
  }
1287
1099
  case o:
1288
- return Z;
1100
+ return V;
1289
1101
  }
1290
1102
  }
1291
1103
  }
1292
- function B(u) {
1293
- return j(u) === b;
1104
+ function D(c) {
1105
+ return C(c) === b;
1294
1106
  }
1295
- return W.AsyncMode = p, W.ConcurrentMode = b, W.ContextConsumer = g, W.ContextProvider = h, W.Element = i, W.ForwardRef = y, W.Fragment = t, W.Lazy = J, W.Memo = A, W.Portal = o, W.Profiler = a, W.StrictMode = s, W.Suspense = m, W.isAsyncMode = function(u) {
1296
- return B(u) || j(u) === p;
1297
- }, W.isConcurrentMode = B, W.isContextConsumer = function(u) {
1298
- return j(u) === g;
1299
- }, W.isContextProvider = function(u) {
1300
- return j(u) === h;
1301
- }, W.isElement = function(u) {
1302
- return typeof u == "object" && u !== null && u.$$typeof === i;
1303
- }, W.isForwardRef = function(u) {
1304
- return j(u) === y;
1305
- }, W.isFragment = function(u) {
1306
- return j(u) === t;
1307
- }, W.isLazy = function(u) {
1308
- return j(u) === J;
1309
- }, W.isMemo = function(u) {
1310
- return j(u) === A;
1311
- }, W.isPortal = function(u) {
1312
- return j(u) === o;
1313
- }, W.isProfiler = function(u) {
1314
- return j(u) === a;
1315
- }, W.isStrictMode = function(u) {
1316
- return j(u) === s;
1317
- }, W.isSuspense = function(u) {
1318
- return j(u) === m;
1319
- }, W.isValidElementType = function(u) {
1320
- return typeof u == "string" || typeof u == "function" || u === t || u === b || u === a || u === s || u === m || u === _ || typeof u == "object" && u !== null && (u.$$typeof === J || u.$$typeof === A || u.$$typeof === h || u.$$typeof === g || u.$$typeof === y || u.$$typeof === q || u.$$typeof === z || u.$$typeof === V || u.$$typeof === L);
1321
- }, W.typeOf = j, W;
1107
+ return I.AsyncMode = h, I.ConcurrentMode = b, I.ContextConsumer = y, I.ContextProvider = d, I.Element = s, I.ForwardRef = g, I.Fragment = t, I.Lazy = B, I.Memo = z, I.Portal = o, I.Profiler = a, I.StrictMode = i, I.Suspense = j, I.isAsyncMode = function(c) {
1108
+ return D(c) || C(c) === h;
1109
+ }, I.isConcurrentMode = D, I.isContextConsumer = function(c) {
1110
+ return C(c) === y;
1111
+ }, I.isContextProvider = function(c) {
1112
+ return C(c) === d;
1113
+ }, I.isElement = function(c) {
1114
+ return typeof c == "object" && c !== null && c.$$typeof === s;
1115
+ }, I.isForwardRef = function(c) {
1116
+ return C(c) === g;
1117
+ }, I.isFragment = function(c) {
1118
+ return C(c) === t;
1119
+ }, I.isLazy = function(c) {
1120
+ return C(c) === B;
1121
+ }, I.isMemo = function(c) {
1122
+ return C(c) === z;
1123
+ }, I.isPortal = function(c) {
1124
+ return C(c) === o;
1125
+ }, I.isProfiler = function(c) {
1126
+ return C(c) === a;
1127
+ }, I.isStrictMode = function(c) {
1128
+ return C(c) === i;
1129
+ }, I.isSuspense = function(c) {
1130
+ return C(c) === j;
1131
+ }, I.isValidElementType = function(c) {
1132
+ return typeof c == "string" || typeof c == "function" || c === t || c === b || c === a || c === i || c === j || c === M || typeof c == "object" && c !== null && (c.$$typeof === B || c.$$typeof === z || c.$$typeof === d || c.$$typeof === y || c.$$typeof === g || c.$$typeof === W || c.$$typeof === q || c.$$typeof === ee || c.$$typeof === R);
1133
+ }, I.typeOf = C, I;
1322
1134
  }
1323
1135
  var Y = {};
1324
1136
  /** @license React v16.13.1
@@ -1329,454 +1141,454 @@ var Y = {};
1329
1141
  * This source code is licensed under the MIT license found in the
1330
1142
  * LICENSE file in the root directory of this source tree.
1331
1143
  */
1332
- var wr;
1333
- function wt() {
1334
- return wr || (wr = 1, process.env.NODE_ENV !== "production" && function() {
1335
- var r = typeof Symbol == "function" && Symbol.for, i = r ? Symbol.for("react.element") : 60103, o = r ? Symbol.for("react.portal") : 60106, t = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, h = r ? Symbol.for("react.provider") : 60109, g = r ? Symbol.for("react.context") : 60110, p = r ? Symbol.for("react.async_mode") : 60111, b = r ? Symbol.for("react.concurrent_mode") : 60111, y = r ? Symbol.for("react.forward_ref") : 60112, m = r ? Symbol.for("react.suspense") : 60113, _ = r ? Symbol.for("react.suspense_list") : 60120, A = r ? Symbol.for("react.memo") : 60115, J = r ? Symbol.for("react.lazy") : 60116, L = r ? Symbol.for("react.block") : 60121, q = r ? Symbol.for("react.fundamental") : 60117, z = r ? Symbol.for("react.responder") : 60118, V = r ? Symbol.for("react.scope") : 60119;
1336
- function j(d) {
1337
- return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1338
- d === t || d === b || d === a || d === s || d === m || d === _ || typeof d == "object" && d !== null && (d.$$typeof === J || d.$$typeof === A || d.$$typeof === h || d.$$typeof === g || d.$$typeof === y || d.$$typeof === q || d.$$typeof === z || d.$$typeof === V || d.$$typeof === L);
1339
- }
1340
- function B(d) {
1341
- if (typeof d == "object" && d !== null) {
1342
- var le = d.$$typeof;
1343
- switch (le) {
1344
- case i:
1345
- var xe = d.type;
1346
- switch (xe) {
1347
- case p:
1144
+ var nr;
1145
+ function $r() {
1146
+ return nr || (nr = 1, process.env.NODE_ENV !== "production" && function() {
1147
+ var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, y = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, M = e ? Symbol.for("react.suspense_list") : 60120, z = e ? Symbol.for("react.memo") : 60115, B = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, W = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, ee = e ? Symbol.for("react.scope") : 60119;
1148
+ function C(f) {
1149
+ return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1150
+ f === t || f === b || f === a || f === i || f === j || f === M || typeof f == "object" && f !== null && (f.$$typeof === B || f.$$typeof === z || f.$$typeof === d || f.$$typeof === y || f.$$typeof === g || f.$$typeof === W || f.$$typeof === q || f.$$typeof === ee || f.$$typeof === R);
1151
+ }
1152
+ function D(f) {
1153
+ if (typeof f == "object" && f !== null) {
1154
+ var te = f.$$typeof;
1155
+ switch (te) {
1156
+ case s:
1157
+ var pe = f.type;
1158
+ switch (pe) {
1159
+ case h:
1348
1160
  case b:
1349
1161
  case t:
1350
1162
  case a:
1351
- case s:
1352
- case m:
1353
- return xe;
1163
+ case i:
1164
+ case j:
1165
+ return pe;
1354
1166
  default:
1355
- var ye = xe && xe.$$typeof;
1356
- switch (ye) {
1357
- case g:
1167
+ var me = pe && pe.$$typeof;
1168
+ switch (me) {
1358
1169
  case y:
1359
- case J:
1360
- case A:
1361
- case h:
1362
- return ye;
1170
+ case g:
1171
+ case B:
1172
+ case z:
1173
+ case d:
1174
+ return me;
1363
1175
  default:
1364
- return le;
1176
+ return te;
1365
1177
  }
1366
1178
  }
1367
1179
  case o:
1368
- return le;
1180
+ return te;
1369
1181
  }
1370
1182
  }
1371
1183
  }
1372
- var u = p, Z = b, ee = g, H = h, ae = i, pe = y, ve = t, fe = J, Q = A, G = o, de = a, O = s, N = m, I = !1;
1373
- function re(d) {
1374
- return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), l(d) || B(d) === p;
1184
+ var c = h, V = b, H = y, F = d, re = s, le = g, oe = t, ae = B, ie = z, K = o, ce = a, S = i, N = j, L = !1;
1185
+ function Z(f) {
1186
+ return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), l(f) || D(f) === h;
1375
1187
  }
1376
- function l(d) {
1377
- return B(d) === b;
1188
+ function l(f) {
1189
+ return D(f) === b;
1378
1190
  }
1379
- function f(d) {
1380
- return B(d) === g;
1191
+ function u(f) {
1192
+ return D(f) === y;
1381
1193
  }
1382
- function w(d) {
1383
- return B(d) === h;
1194
+ function w(f) {
1195
+ return D(f) === d;
1384
1196
  }
1385
- function C(d) {
1386
- return typeof d == "object" && d !== null && d.$$typeof === i;
1197
+ function x(f) {
1198
+ return typeof f == "object" && f !== null && f.$$typeof === s;
1387
1199
  }
1388
- function E(d) {
1389
- return B(d) === y;
1200
+ function m(f) {
1201
+ return D(f) === g;
1390
1202
  }
1391
- function M(d) {
1392
- return B(d) === t;
1203
+ function _(f) {
1204
+ return D(f) === t;
1393
1205
  }
1394
- function T(d) {
1395
- return B(d) === J;
1206
+ function E(f) {
1207
+ return D(f) === B;
1396
1208
  }
1397
- function R(d) {
1398
- return B(d) === A;
1209
+ function O(f) {
1210
+ return D(f) === z;
1399
1211
  }
1400
- function S(d) {
1401
- return B(d) === o;
1212
+ function P(f) {
1213
+ return D(f) === o;
1402
1214
  }
1403
- function $(d) {
1404
- return B(d) === a;
1215
+ function A(f) {
1216
+ return D(f) === a;
1405
1217
  }
1406
- function P(d) {
1407
- return B(d) === s;
1218
+ function k(f) {
1219
+ return D(f) === i;
1408
1220
  }
1409
- function te(d) {
1410
- return B(d) === m;
1221
+ function J(f) {
1222
+ return D(f) === j;
1411
1223
  }
1412
- Y.AsyncMode = u, Y.ConcurrentMode = Z, Y.ContextConsumer = ee, Y.ContextProvider = H, Y.Element = ae, Y.ForwardRef = pe, Y.Fragment = ve, Y.Lazy = fe, Y.Memo = Q, Y.Portal = G, Y.Profiler = de, Y.StrictMode = O, Y.Suspense = N, Y.isAsyncMode = re, Y.isConcurrentMode = l, Y.isContextConsumer = f, Y.isContextProvider = w, Y.isElement = C, Y.isForwardRef = E, Y.isFragment = M, Y.isLazy = T, Y.isMemo = R, Y.isPortal = S, Y.isProfiler = $, Y.isStrictMode = P, Y.isSuspense = te, Y.isValidElementType = j, Y.typeOf = B;
1224
+ Y.AsyncMode = c, Y.ConcurrentMode = V, Y.ContextConsumer = H, Y.ContextProvider = F, Y.Element = re, Y.ForwardRef = le, Y.Fragment = oe, Y.Lazy = ae, Y.Memo = ie, Y.Portal = K, Y.Profiler = ce, Y.StrictMode = S, Y.Suspense = N, Y.isAsyncMode = Z, Y.isConcurrentMode = l, Y.isContextConsumer = u, Y.isContextProvider = w, Y.isElement = x, Y.isForwardRef = m, Y.isFragment = _, Y.isLazy = E, Y.isMemo = O, Y.isPortal = P, Y.isProfiler = A, Y.isStrictMode = k, Y.isSuspense = J, Y.isValidElementType = C, Y.typeOf = D;
1413
1225
  }()), Y;
1414
1226
  }
1415
- var Cr;
1416
- function kr() {
1417
- return Cr || (Cr = 1, process.env.NODE_ENV === "production" ? Pe.exports = xt() : Pe.exports = wt()), Pe.exports;
1227
+ var or;
1228
+ function pr() {
1229
+ return or || (or = 1, process.env.NODE_ENV === "production" ? Se.exports = Ar() : Se.exports = $r()), Se.exports;
1418
1230
  }
1419
1231
  /*
1420
1232
  object-assign
1421
1233
  (c) Sindre Sorhus
1422
1234
  @license MIT
1423
1235
  */
1424
- var Ae, jr;
1425
- function Ct() {
1426
- if (jr) return Ae;
1427
- jr = 1;
1428
- var r = Object.getOwnPropertySymbols, i = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
1236
+ var Pe, ar;
1237
+ function Ir() {
1238
+ if (ar) return Pe;
1239
+ ar = 1;
1240
+ var e = Object.getOwnPropertySymbols, s = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
1429
1241
  function t(a) {
1430
1242
  if (a == null)
1431
1243
  throw new TypeError("Object.assign cannot be called with null or undefined");
1432
1244
  return Object(a);
1433
1245
  }
1434
- function s() {
1246
+ function i() {
1435
1247
  try {
1436
1248
  if (!Object.assign)
1437
1249
  return !1;
1438
1250
  var a = new String("abc");
1439
1251
  if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
1440
1252
  return !1;
1441
- for (var h = {}, g = 0; g < 10; g++)
1442
- h["_" + String.fromCharCode(g)] = g;
1443
- var p = Object.getOwnPropertyNames(h).map(function(y) {
1444
- return h[y];
1253
+ for (var d = {}, y = 0; y < 10; y++)
1254
+ d["_" + String.fromCharCode(y)] = y;
1255
+ var h = Object.getOwnPropertyNames(d).map(function(g) {
1256
+ return d[g];
1445
1257
  });
1446
- if (p.join("") !== "0123456789")
1258
+ if (h.join("") !== "0123456789")
1447
1259
  return !1;
1448
1260
  var b = {};
1449
- return "abcdefghijklmnopqrst".split("").forEach(function(y) {
1450
- b[y] = y;
1261
+ return "abcdefghijklmnopqrst".split("").forEach(function(g) {
1262
+ b[g] = g;
1451
1263
  }), Object.keys(Object.assign({}, b)).join("") === "abcdefghijklmnopqrst";
1452
1264
  } catch {
1453
1265
  return !1;
1454
1266
  }
1455
1267
  }
1456
- return Ae = s() ? Object.assign : function(a, h) {
1457
- for (var g, p = t(a), b, y = 1; y < arguments.length; y++) {
1458
- g = Object(arguments[y]);
1459
- for (var m in g)
1460
- i.call(g, m) && (p[m] = g[m]);
1461
- if (r) {
1462
- b = r(g);
1463
- for (var _ = 0; _ < b.length; _++)
1464
- o.call(g, b[_]) && (p[b[_]] = g[b[_]]);
1268
+ return Pe = i() ? Object.assign : function(a, d) {
1269
+ for (var y, h = t(a), b, g = 1; g < arguments.length; g++) {
1270
+ y = Object(arguments[g]);
1271
+ for (var j in y)
1272
+ s.call(y, j) && (h[j] = y[j]);
1273
+ if (e) {
1274
+ b = e(y);
1275
+ for (var M = 0; M < b.length; M++)
1276
+ o.call(y, b[M]) && (h[b[M]] = y[b[M]]);
1465
1277
  }
1466
1278
  }
1467
- return p;
1468
- }, Ae;
1279
+ return h;
1280
+ }, Pe;
1469
1281
  }
1470
- var Fe, Er;
1471
- function Ke() {
1472
- if (Er) return Fe;
1473
- Er = 1;
1474
- var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1475
- return Fe = r, Fe;
1282
+ var ke, ir;
1283
+ function Ve() {
1284
+ if (ir) return ke;
1285
+ ir = 1;
1286
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1287
+ return ke = e, ke;
1476
1288
  }
1477
- var We, Tr;
1478
- function Lr() {
1479
- return Tr || (Tr = 1, We = Function.call.bind(Object.prototype.hasOwnProperty)), We;
1289
+ var Ne, sr;
1290
+ function vr() {
1291
+ return sr || (sr = 1, Ne = Function.call.bind(Object.prototype.hasOwnProperty)), Ne;
1480
1292
  }
1481
- var Ye, Rr;
1482
- function jt() {
1483
- if (Rr) return Ye;
1484
- Rr = 1;
1485
- var r = function() {
1293
+ var Le, lr;
1294
+ function Yr() {
1295
+ if (lr) return Le;
1296
+ lr = 1;
1297
+ var e = function() {
1486
1298
  };
1487
1299
  if (process.env.NODE_ENV !== "production") {
1488
- var i = /* @__PURE__ */ Ke(), o = {}, t = /* @__PURE__ */ Lr();
1489
- r = function(a) {
1490
- var h = "Warning: " + a;
1491
- typeof console < "u" && console.error(h);
1300
+ var s = /* @__PURE__ */ Ve(), o = {}, t = /* @__PURE__ */ vr();
1301
+ e = function(a) {
1302
+ var d = "Warning: " + a;
1303
+ typeof console < "u" && console.error(d);
1492
1304
  try {
1493
- throw new Error(h);
1305
+ throw new Error(d);
1494
1306
  } catch {
1495
1307
  }
1496
1308
  };
1497
1309
  }
1498
- function s(a, h, g, p, b) {
1310
+ function i(a, d, y, h, b) {
1499
1311
  if (process.env.NODE_ENV !== "production") {
1500
- for (var y in a)
1501
- if (t(a, y)) {
1502
- var m;
1312
+ for (var g in a)
1313
+ if (t(a, g)) {
1314
+ var j;
1503
1315
  try {
1504
- if (typeof a[y] != "function") {
1505
- var _ = Error(
1506
- (p || "React class") + ": " + g + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1316
+ if (typeof a[g] != "function") {
1317
+ var M = Error(
1318
+ (h || "React class") + ": " + y + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1507
1319
  );
1508
- throw _.name = "Invariant Violation", _;
1320
+ throw M.name = "Invariant Violation", M;
1509
1321
  }
1510
- m = a[y](h, y, p, g, null, i);
1511
- } catch (J) {
1512
- m = J;
1322
+ j = a[g](d, g, h, y, null, s);
1323
+ } catch (B) {
1324
+ j = B;
1513
1325
  }
1514
- if (m && !(m instanceof Error) && r(
1515
- (p || "React class") + ": type specification of " + g + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1516
- ), m instanceof Error && !(m.message in o)) {
1517
- o[m.message] = !0;
1518
- var A = b ? b() : "";
1519
- r(
1520
- "Failed " + g + " type: " + m.message + (A ?? "")
1326
+ if (j && !(j instanceof Error) && e(
1327
+ (h || "React class") + ": type specification of " + y + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof j + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1328
+ ), j instanceof Error && !(j.message in o)) {
1329
+ o[j.message] = !0;
1330
+ var z = b ? b() : "";
1331
+ e(
1332
+ "Failed " + y + " type: " + j.message + (z ?? "")
1521
1333
  );
1522
1334
  }
1523
1335
  }
1524
1336
  }
1525
1337
  }
1526
- return s.resetWarningCache = function() {
1338
+ return i.resetWarningCache = function() {
1527
1339
  process.env.NODE_ENV !== "production" && (o = {});
1528
- }, Ye = s, Ye;
1340
+ }, Le = i, Le;
1529
1341
  }
1530
- var Ve, Or;
1531
- function Et() {
1532
- if (Or) return Ve;
1533
- Or = 1;
1534
- var r = kr(), i = Ct(), o = /* @__PURE__ */ Ke(), t = /* @__PURE__ */ Lr(), s = /* @__PURE__ */ jt(), a = function() {
1342
+ var Me, cr;
1343
+ function zr() {
1344
+ if (cr) return Me;
1345
+ cr = 1;
1346
+ var e = pr(), s = Ir(), o = /* @__PURE__ */ Ve(), t = /* @__PURE__ */ vr(), i = /* @__PURE__ */ Yr(), a = function() {
1535
1347
  };
1536
- process.env.NODE_ENV !== "production" && (a = function(g) {
1537
- var p = "Warning: " + g;
1538
- typeof console < "u" && console.error(p);
1348
+ process.env.NODE_ENV !== "production" && (a = function(y) {
1349
+ var h = "Warning: " + y;
1350
+ typeof console < "u" && console.error(h);
1539
1351
  try {
1540
- throw new Error(p);
1352
+ throw new Error(h);
1541
1353
  } catch {
1542
1354
  }
1543
1355
  });
1544
- function h() {
1356
+ function d() {
1545
1357
  return null;
1546
1358
  }
1547
- return Ve = function(g, p) {
1548
- var b = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
1549
- function m(l) {
1550
- var f = l && (b && l[b] || l[y]);
1551
- if (typeof f == "function")
1552
- return f;
1553
- }
1554
- var _ = "<<anonymous>>", A = {
1555
- array: z("array"),
1556
- bigint: z("bigint"),
1557
- bool: z("boolean"),
1558
- func: z("function"),
1559
- number: z("number"),
1560
- object: z("object"),
1561
- string: z("string"),
1562
- symbol: z("symbol"),
1563
- any: V(),
1564
- arrayOf: j,
1565
- element: B(),
1566
- elementType: u(),
1567
- instanceOf: Z,
1568
- node: pe(),
1569
- objectOf: H,
1570
- oneOf: ee,
1571
- oneOfType: ae,
1572
- shape: fe,
1573
- exact: Q
1359
+ return Me = function(y, h) {
1360
+ var b = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
1361
+ function j(l) {
1362
+ var u = l && (b && l[b] || l[g]);
1363
+ if (typeof u == "function")
1364
+ return u;
1365
+ }
1366
+ var M = "<<anonymous>>", z = {
1367
+ array: q("array"),
1368
+ bigint: q("bigint"),
1369
+ bool: q("boolean"),
1370
+ func: q("function"),
1371
+ number: q("number"),
1372
+ object: q("object"),
1373
+ string: q("string"),
1374
+ symbol: q("symbol"),
1375
+ any: ee(),
1376
+ arrayOf: C,
1377
+ element: D(),
1378
+ elementType: c(),
1379
+ instanceOf: V,
1380
+ node: le(),
1381
+ objectOf: F,
1382
+ oneOf: H,
1383
+ oneOfType: re,
1384
+ shape: ae,
1385
+ exact: ie
1574
1386
  };
1575
- function J(l, f) {
1576
- return l === f ? l !== 0 || 1 / l === 1 / f : l !== l && f !== f;
1387
+ function B(l, u) {
1388
+ return l === u ? l !== 0 || 1 / l === 1 / u : l !== l && u !== u;
1577
1389
  }
1578
- function L(l, f) {
1579
- this.message = l, this.data = f && typeof f == "object" ? f : {}, this.stack = "";
1390
+ function R(l, u) {
1391
+ this.message = l, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
1580
1392
  }
1581
- L.prototype = Error.prototype;
1582
- function q(l) {
1393
+ R.prototype = Error.prototype;
1394
+ function W(l) {
1583
1395
  if (process.env.NODE_ENV !== "production")
1584
- var f = {}, w = 0;
1585
- function C(M, T, R, S, $, P, te) {
1586
- if (S = S || _, P = P || R, te !== o) {
1587
- if (p) {
1588
- var d = new Error(
1396
+ var u = {}, w = 0;
1397
+ function x(_, E, O, P, A, k, J) {
1398
+ if (P = P || M, k = k || O, J !== o) {
1399
+ if (h) {
1400
+ var f = new Error(
1589
1401
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
1590
1402
  );
1591
- throw d.name = "Invariant Violation", d;
1403
+ throw f.name = "Invariant Violation", f;
1592
1404
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1593
- var le = S + ":" + R;
1594
- !f[le] && // Avoid spamming the console because they are often not actionable except for lib authors
1405
+ var te = P + ":" + O;
1406
+ !u[te] && // Avoid spamming the console because they are often not actionable except for lib authors
1595
1407
  w < 3 && (a(
1596
- "You are manually calling a React.PropTypes validation function for the `" + P + "` prop on `" + S + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1597
- ), f[le] = !0, w++);
1408
+ "You are manually calling a React.PropTypes validation function for the `" + k + "` prop on `" + P + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1409
+ ), u[te] = !0, w++);
1598
1410
  }
1599
1411
  }
1600
- return T[R] == null ? M ? T[R] === null ? new L("The " + $ + " `" + P + "` is marked as required " + ("in `" + S + "`, but its value is `null`.")) : new L("The " + $ + " `" + P + "` is marked as required in " + ("`" + S + "`, but its value is `undefined`.")) : null : l(T, R, S, $, P);
1412
+ return E[O] == null ? _ ? E[O] === null ? new R("The " + A + " `" + k + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new R("The " + A + " `" + k + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : l(E, O, P, A, k);
1601
1413
  }
1602
- var E = C.bind(null, !1);
1603
- return E.isRequired = C.bind(null, !0), E;
1604
- }
1605
- function z(l) {
1606
- function f(w, C, E, M, T, R) {
1607
- var S = w[C], $ = O(S);
1608
- if ($ !== l) {
1609
- var P = N(S);
1610
- return new L(
1611
- "Invalid " + M + " `" + T + "` of type " + ("`" + P + "` supplied to `" + E + "`, expected ") + ("`" + l + "`."),
1414
+ var m = x.bind(null, !1);
1415
+ return m.isRequired = x.bind(null, !0), m;
1416
+ }
1417
+ function q(l) {
1418
+ function u(w, x, m, _, E, O) {
1419
+ var P = w[x], A = S(P);
1420
+ if (A !== l) {
1421
+ var k = N(P);
1422
+ return new R(
1423
+ "Invalid " + _ + " `" + E + "` of type " + ("`" + k + "` supplied to `" + m + "`, expected ") + ("`" + l + "`."),
1612
1424
  { expectedType: l }
1613
1425
  );
1614
1426
  }
1615
1427
  return null;
1616
1428
  }
1617
- return q(f);
1429
+ return W(u);
1618
1430
  }
1619
- function V() {
1620
- return q(h);
1431
+ function ee() {
1432
+ return W(d);
1621
1433
  }
1622
- function j(l) {
1623
- function f(w, C, E, M, T) {
1434
+ function C(l) {
1435
+ function u(w, x, m, _, E) {
1624
1436
  if (typeof l != "function")
1625
- return new L("Property `" + T + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
1626
- var R = w[C];
1627
- if (!Array.isArray(R)) {
1628
- var S = O(R);
1629
- return new L("Invalid " + M + " `" + T + "` of type " + ("`" + S + "` supplied to `" + E + "`, expected an array."));
1437
+ return new R("Property `" + E + "` of component `" + m + "` has invalid PropType notation inside arrayOf.");
1438
+ var O = w[x];
1439
+ if (!Array.isArray(O)) {
1440
+ var P = S(O);
1441
+ return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + P + "` supplied to `" + m + "`, expected an array."));
1630
1442
  }
1631
- for (var $ = 0; $ < R.length; $++) {
1632
- var P = l(R, $, E, M, T + "[" + $ + "]", o);
1633
- if (P instanceof Error)
1634
- return P;
1443
+ for (var A = 0; A < O.length; A++) {
1444
+ var k = l(O, A, m, _, E + "[" + A + "]", o);
1445
+ if (k instanceof Error)
1446
+ return k;
1635
1447
  }
1636
1448
  return null;
1637
1449
  }
1638
- return q(f);
1639
- }
1640
- function B() {
1641
- function l(f, w, C, E, M) {
1642
- var T = f[w];
1643
- if (!g(T)) {
1644
- var R = O(T);
1645
- return new L("Invalid " + E + " `" + M + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement."));
1450
+ return W(u);
1451
+ }
1452
+ function D() {
1453
+ function l(u, w, x, m, _) {
1454
+ var E = u[w];
1455
+ if (!y(E)) {
1456
+ var O = S(E);
1457
+ return new R("Invalid " + m + " `" + _ + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement."));
1646
1458
  }
1647
1459
  return null;
1648
1460
  }
1649
- return q(l);
1650
- }
1651
- function u() {
1652
- function l(f, w, C, E, M) {
1653
- var T = f[w];
1654
- if (!r.isValidElementType(T)) {
1655
- var R = O(T);
1656
- return new L("Invalid " + E + " `" + M + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement type."));
1461
+ return W(l);
1462
+ }
1463
+ function c() {
1464
+ function l(u, w, x, m, _) {
1465
+ var E = u[w];
1466
+ if (!e.isValidElementType(E)) {
1467
+ var O = S(E);
1468
+ return new R("Invalid " + m + " `" + _ + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement type."));
1657
1469
  }
1658
1470
  return null;
1659
1471
  }
1660
- return q(l);
1472
+ return W(l);
1661
1473
  }
1662
- function Z(l) {
1663
- function f(w, C, E, M, T) {
1664
- if (!(w[C] instanceof l)) {
1665
- var R = l.name || _, S = re(w[C]);
1666
- return new L("Invalid " + M + " `" + T + "` of type " + ("`" + S + "` supplied to `" + E + "`, expected ") + ("instance of `" + R + "`."));
1474
+ function V(l) {
1475
+ function u(w, x, m, _, E) {
1476
+ if (!(w[x] instanceof l)) {
1477
+ var O = l.name || M, P = Z(w[x]);
1478
+ return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + P + "` supplied to `" + m + "`, expected ") + ("instance of `" + O + "`."));
1667
1479
  }
1668
1480
  return null;
1669
1481
  }
1670
- return q(f);
1482
+ return W(u);
1671
1483
  }
1672
- function ee(l) {
1484
+ function H(l) {
1673
1485
  if (!Array.isArray(l))
1674
1486
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1675
1487
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1676
- ) : a("Invalid argument supplied to oneOf, expected an array.")), h;
1677
- function f(w, C, E, M, T) {
1678
- for (var R = w[C], S = 0; S < l.length; S++)
1679
- if (J(R, l[S]))
1488
+ ) : a("Invalid argument supplied to oneOf, expected an array.")), d;
1489
+ function u(w, x, m, _, E) {
1490
+ for (var O = w[x], P = 0; P < l.length; P++)
1491
+ if (B(O, l[P]))
1680
1492
  return null;
1681
- var $ = JSON.stringify(l, function(te, d) {
1682
- var le = N(d);
1683
- return le === "symbol" ? String(d) : d;
1493
+ var A = JSON.stringify(l, function(J, f) {
1494
+ var te = N(f);
1495
+ return te === "symbol" ? String(f) : f;
1684
1496
  });
1685
- return new L("Invalid " + M + " `" + T + "` of value `" + String(R) + "` " + ("supplied to `" + E + "`, expected one of " + $ + "."));
1497
+ return new R("Invalid " + _ + " `" + E + "` of value `" + String(O) + "` " + ("supplied to `" + m + "`, expected one of " + A + "."));
1686
1498
  }
1687
- return q(f);
1499
+ return W(u);
1688
1500
  }
1689
- function H(l) {
1690
- function f(w, C, E, M, T) {
1501
+ function F(l) {
1502
+ function u(w, x, m, _, E) {
1691
1503
  if (typeof l != "function")
1692
- return new L("Property `" + T + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
1693
- var R = w[C], S = O(R);
1694
- if (S !== "object")
1695
- return new L("Invalid " + M + " `" + T + "` of type " + ("`" + S + "` supplied to `" + E + "`, expected an object."));
1696
- for (var $ in R)
1697
- if (t(R, $)) {
1698
- var P = l(R, $, E, M, T + "." + $, o);
1699
- if (P instanceof Error)
1700
- return P;
1504
+ return new R("Property `" + E + "` of component `" + m + "` has invalid PropType notation inside objectOf.");
1505
+ var O = w[x], P = S(O);
1506
+ if (P !== "object")
1507
+ return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + P + "` supplied to `" + m + "`, expected an object."));
1508
+ for (var A in O)
1509
+ if (t(O, A)) {
1510
+ var k = l(O, A, m, _, E + "." + A, o);
1511
+ if (k instanceof Error)
1512
+ return k;
1701
1513
  }
1702
1514
  return null;
1703
1515
  }
1704
- return q(f);
1516
+ return W(u);
1705
1517
  }
1706
- function ae(l) {
1518
+ function re(l) {
1707
1519
  if (!Array.isArray(l))
1708
- return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), h;
1709
- for (var f = 0; f < l.length; f++) {
1710
- var w = l[f];
1520
+ return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), d;
1521
+ for (var u = 0; u < l.length; u++) {
1522
+ var w = l[u];
1711
1523
  if (typeof w != "function")
1712
1524
  return a(
1713
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + I(w) + " at index " + f + "."
1714
- ), h;
1525
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(w) + " at index " + u + "."
1526
+ ), d;
1715
1527
  }
1716
- function C(E, M, T, R, S) {
1717
- for (var $ = [], P = 0; P < l.length; P++) {
1718
- var te = l[P], d = te(E, M, T, R, S, o);
1719
- if (d == null)
1528
+ function x(m, _, E, O, P) {
1529
+ for (var A = [], k = 0; k < l.length; k++) {
1530
+ var J = l[k], f = J(m, _, E, O, P, o);
1531
+ if (f == null)
1720
1532
  return null;
1721
- d.data && t(d.data, "expectedType") && $.push(d.data.expectedType);
1533
+ f.data && t(f.data, "expectedType") && A.push(f.data.expectedType);
1722
1534
  }
1723
- var le = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
1724
- return new L("Invalid " + R + " `" + S + "` supplied to " + ("`" + T + "`" + le + "."));
1535
+ var te = A.length > 0 ? ", expected one of type [" + A.join(", ") + "]" : "";
1536
+ return new R("Invalid " + O + " `" + P + "` supplied to " + ("`" + E + "`" + te + "."));
1725
1537
  }
1726
- return q(C);
1538
+ return W(x);
1727
1539
  }
1728
- function pe() {
1729
- function l(f, w, C, E, M) {
1730
- return G(f[w]) ? null : new L("Invalid " + E + " `" + M + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
1540
+ function le() {
1541
+ function l(u, w, x, m, _) {
1542
+ return K(u[w]) ? null : new R("Invalid " + m + " `" + _ + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
1731
1543
  }
1732
- return q(l);
1544
+ return W(l);
1733
1545
  }
1734
- function ve(l, f, w, C, E) {
1735
- return new L(
1736
- (l || "React class") + ": " + f + " type `" + w + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
1546
+ function oe(l, u, w, x, m) {
1547
+ return new R(
1548
+ (l || "React class") + ": " + u + " type `" + w + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + m + "`."
1737
1549
  );
1738
1550
  }
1739
- function fe(l) {
1740
- function f(w, C, E, M, T) {
1741
- var R = w[C], S = O(R);
1742
- if (S !== "object")
1743
- return new L("Invalid " + M + " `" + T + "` of type `" + S + "` " + ("supplied to `" + E + "`, expected `object`."));
1744
- for (var $ in l) {
1745
- var P = l[$];
1746
- if (typeof P != "function")
1747
- return ve(E, M, T, $, N(P));
1748
- var te = P(R, $, E, M, T + "." + $, o);
1749
- if (te)
1750
- return te;
1551
+ function ae(l) {
1552
+ function u(w, x, m, _, E) {
1553
+ var O = w[x], P = S(O);
1554
+ if (P !== "object")
1555
+ return new R("Invalid " + _ + " `" + E + "` of type `" + P + "` " + ("supplied to `" + m + "`, expected `object`."));
1556
+ for (var A in l) {
1557
+ var k = l[A];
1558
+ if (typeof k != "function")
1559
+ return oe(m, _, E, A, N(k));
1560
+ var J = k(O, A, m, _, E + "." + A, o);
1561
+ if (J)
1562
+ return J;
1751
1563
  }
1752
1564
  return null;
1753
1565
  }
1754
- return q(f);
1755
- }
1756
- function Q(l) {
1757
- function f(w, C, E, M, T) {
1758
- var R = w[C], S = O(R);
1759
- if (S !== "object")
1760
- return new L("Invalid " + M + " `" + T + "` of type `" + S + "` " + ("supplied to `" + E + "`, expected `object`."));
1761
- var $ = i({}, w[C], l);
1762
- for (var P in $) {
1763
- var te = l[P];
1764
- if (t(l, P) && typeof te != "function")
1765
- return ve(E, M, T, P, N(te));
1766
- if (!te)
1767
- return new L(
1768
- "Invalid " + M + " `" + T + "` key `" + P + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(w[C], null, " ") + `
1566
+ return W(u);
1567
+ }
1568
+ function ie(l) {
1569
+ function u(w, x, m, _, E) {
1570
+ var O = w[x], P = S(O);
1571
+ if (P !== "object")
1572
+ return new R("Invalid " + _ + " `" + E + "` of type `" + P + "` " + ("supplied to `" + m + "`, expected `object`."));
1573
+ var A = s({}, w[x], l);
1574
+ for (var k in A) {
1575
+ var J = l[k];
1576
+ if (t(l, k) && typeof J != "function")
1577
+ return oe(m, _, E, k, N(J));
1578
+ if (!J)
1579
+ return new R(
1580
+ "Invalid " + _ + " `" + E + "` key `" + k + "` supplied to `" + m + "`.\nBad object: " + JSON.stringify(w[x], null, " ") + `
1769
1581
  Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1770
1582
  );
1771
- var d = te(R, P, E, M, T + "." + P, o);
1772
- if (d)
1773
- return d;
1583
+ var f = J(O, k, m, _, E + "." + k, o);
1584
+ if (f)
1585
+ return f;
1774
1586
  }
1775
1587
  return null;
1776
1588
  }
1777
- return q(f);
1589
+ return W(u);
1778
1590
  }
1779
- function G(l) {
1591
+ function K(l) {
1780
1592
  switch (typeof l) {
1781
1593
  case "number":
1782
1594
  case "string":
@@ -1786,20 +1598,20 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1786
1598
  return !l;
1787
1599
  case "object":
1788
1600
  if (Array.isArray(l))
1789
- return l.every(G);
1790
- if (l === null || g(l))
1601
+ return l.every(K);
1602
+ if (l === null || y(l))
1791
1603
  return !0;
1792
- var f = m(l);
1793
- if (f) {
1794
- var w = f.call(l), C;
1795
- if (f !== l.entries) {
1796
- for (; !(C = w.next()).done; )
1797
- if (!G(C.value))
1604
+ var u = j(l);
1605
+ if (u) {
1606
+ var w = u.call(l), x;
1607
+ if (u !== l.entries) {
1608
+ for (; !(x = w.next()).done; )
1609
+ if (!K(x.value))
1798
1610
  return !1;
1799
1611
  } else
1800
- for (; !(C = w.next()).done; ) {
1801
- var E = C.value;
1802
- if (E && !G(E[1]))
1612
+ for (; !(x = w.next()).done; ) {
1613
+ var m = x.value;
1614
+ if (m && !K(m[1]))
1803
1615
  return !1;
1804
1616
  }
1805
1617
  } else
@@ -1809,65 +1621,65 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1809
1621
  return !1;
1810
1622
  }
1811
1623
  }
1812
- function de(l, f) {
1813
- return l === "symbol" ? !0 : f ? f["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && f instanceof Symbol : !1;
1624
+ function ce(l, u) {
1625
+ return l === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
1814
1626
  }
1815
- function O(l) {
1816
- var f = typeof l;
1817
- return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : de(f, l) ? "symbol" : f;
1627
+ function S(l) {
1628
+ var u = typeof l;
1629
+ return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : ce(u, l) ? "symbol" : u;
1818
1630
  }
1819
1631
  function N(l) {
1820
1632
  if (typeof l > "u" || l === null)
1821
1633
  return "" + l;
1822
- var f = O(l);
1823
- if (f === "object") {
1634
+ var u = S(l);
1635
+ if (u === "object") {
1824
1636
  if (l instanceof Date)
1825
1637
  return "date";
1826
1638
  if (l instanceof RegExp)
1827
1639
  return "regexp";
1828
1640
  }
1829
- return f;
1641
+ return u;
1830
1642
  }
1831
- function I(l) {
1832
- var f = N(l);
1833
- switch (f) {
1643
+ function L(l) {
1644
+ var u = N(l);
1645
+ switch (u) {
1834
1646
  case "array":
1835
1647
  case "object":
1836
- return "an " + f;
1648
+ return "an " + u;
1837
1649
  case "boolean":
1838
1650
  case "date":
1839
1651
  case "regexp":
1840
- return "a " + f;
1652
+ return "a " + u;
1841
1653
  default:
1842
- return f;
1654
+ return u;
1843
1655
  }
1844
1656
  }
1845
- function re(l) {
1846
- return !l.constructor || !l.constructor.name ? _ : l.constructor.name;
1657
+ function Z(l) {
1658
+ return !l.constructor || !l.constructor.name ? M : l.constructor.name;
1847
1659
  }
1848
- return A.checkPropTypes = s, A.resetWarningCache = s.resetWarningCache, A.PropTypes = A, A;
1849
- }, Ve;
1660
+ return z.checkPropTypes = i, z.resetWarningCache = i.resetWarningCache, z.PropTypes = z, z;
1661
+ }, Me;
1850
1662
  }
1851
- var ze, _r;
1852
- function Tt() {
1853
- if (_r) return ze;
1854
- _r = 1;
1855
- var r = /* @__PURE__ */ Ke();
1856
- function i() {
1663
+ var Ae, ur;
1664
+ function Wr() {
1665
+ if (ur) return Ae;
1666
+ ur = 1;
1667
+ var e = /* @__PURE__ */ Ve();
1668
+ function s() {
1857
1669
  }
1858
1670
  function o() {
1859
1671
  }
1860
- return o.resetWarningCache = i, ze = function() {
1861
- function t(h, g, p, b, y, m) {
1862
- if (m !== r) {
1863
- var _ = new Error(
1672
+ return o.resetWarningCache = s, Ae = function() {
1673
+ function t(d, y, h, b, g, j) {
1674
+ if (j !== e) {
1675
+ var M = new Error(
1864
1676
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1865
1677
  );
1866
- throw _.name = "Invariant Violation", _;
1678
+ throw M.name = "Invariant Violation", M;
1867
1679
  }
1868
1680
  }
1869
1681
  t.isRequired = t;
1870
- function s() {
1682
+ function i() {
1871
1683
  return t;
1872
1684
  }
1873
1685
  var a = {
@@ -1880,65 +1692,65 @@ function Tt() {
1880
1692
  string: t,
1881
1693
  symbol: t,
1882
1694
  any: t,
1883
- arrayOf: s,
1695
+ arrayOf: i,
1884
1696
  element: t,
1885
1697
  elementType: t,
1886
- instanceOf: s,
1698
+ instanceOf: i,
1887
1699
  node: t,
1888
- objectOf: s,
1889
- oneOf: s,
1890
- oneOfType: s,
1891
- shape: s,
1892
- exact: s,
1700
+ objectOf: i,
1701
+ oneOf: i,
1702
+ oneOfType: i,
1703
+ shape: i,
1704
+ exact: i,
1893
1705
  checkPropTypes: o,
1894
- resetWarningCache: i
1706
+ resetWarningCache: s
1895
1707
  };
1896
1708
  return a.PropTypes = a, a;
1897
- }, ze;
1709
+ }, Ae;
1898
1710
  }
1899
- var Sr;
1900
- function Rt() {
1901
- if (Sr) return Se.exports;
1902
- if (Sr = 1, process.env.NODE_ENV !== "production") {
1903
- var r = kr(), i = !0;
1904
- Se.exports = /* @__PURE__ */ Et()(r.isElement, i);
1711
+ var fr;
1712
+ function Dr() {
1713
+ if (fr) return Oe.exports;
1714
+ if (fr = 1, process.env.NODE_ENV !== "production") {
1715
+ var e = pr(), s = !0;
1716
+ Oe.exports = /* @__PURE__ */ zr()(e.isElement, s);
1905
1717
  } else
1906
- Se.exports = /* @__PURE__ */ Tt()();
1907
- return Se.exports;
1718
+ Oe.exports = /* @__PURE__ */ Wr()();
1719
+ return Oe.exports;
1908
1720
  }
1909
- var Ot = /* @__PURE__ */ Rt();
1910
- const ne = /* @__PURE__ */ ot(Ot);
1911
- function Ue() {
1912
- return Ue = Object.assign || function(r) {
1913
- for (var i = 1; i < arguments.length; i++) {
1914
- var o = arguments[i];
1721
+ var Vr = /* @__PURE__ */ Dr();
1722
+ const G = /* @__PURE__ */ xr(Vr);
1723
+ function $e() {
1724
+ return $e = Object.assign || function(e) {
1725
+ for (var s = 1; s < arguments.length; s++) {
1726
+ var o = arguments[s];
1915
1727
  for (var t in o)
1916
- Object.prototype.hasOwnProperty.call(o, t) && (r[t] = o[t]);
1728
+ Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
1917
1729
  }
1918
- return r;
1919
- }, Ue.apply(this, arguments);
1730
+ return e;
1731
+ }, $e.apply(this, arguments);
1920
1732
  }
1921
- function _t(r, i) {
1922
- if (r == null) return {};
1923
- var o = St(r, i), t, s;
1733
+ function qr(e, s) {
1734
+ if (e == null) return {};
1735
+ var o = Fr(e, s), t, i;
1924
1736
  if (Object.getOwnPropertySymbols) {
1925
- var a = Object.getOwnPropertySymbols(r);
1926
- for (s = 0; s < a.length; s++)
1927
- t = a[s], !(i.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (o[t] = r[t]);
1737
+ var a = Object.getOwnPropertySymbols(e);
1738
+ for (i = 0; i < a.length; i++)
1739
+ t = a[i], !(s.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
1928
1740
  }
1929
1741
  return o;
1930
1742
  }
1931
- function St(r, i) {
1932
- if (r == null) return {};
1933
- var o = {}, t = Object.keys(r), s, a;
1743
+ function Fr(e, s) {
1744
+ if (e == null) return {};
1745
+ var o = {}, t = Object.keys(e), i, a;
1934
1746
  for (a = 0; a < t.length; a++)
1935
- s = t[a], !(i.indexOf(s) >= 0) && (o[s] = r[s]);
1747
+ i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
1936
1748
  return o;
1937
1749
  }
1938
- var Xe = ke(function(r, i) {
1939
- var o = r.color, t = o === void 0 ? "currentColor" : o, s = r.size, a = s === void 0 ? 24 : s, h = _t(r, ["color", "size"]);
1940
- return /* @__PURE__ */ se.createElement("svg", Ue({
1941
- ref: i,
1750
+ var qe = Re(function(e, s) {
1751
+ var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = qr(e, ["color", "size"]);
1752
+ return /* @__PURE__ */ ne.createElement("svg", $e({
1753
+ ref: s,
1942
1754
  xmlns: "http://www.w3.org/2000/svg",
1943
1755
  width: a,
1944
1756
  height: a,
@@ -1948,46 +1760,46 @@ var Xe = ke(function(r, i) {
1948
1760
  strokeWidth: "2",
1949
1761
  strokeLinecap: "round",
1950
1762
  strokeLinejoin: "round"
1951
- }, h), /* @__PURE__ */ se.createElement("polyline", {
1763
+ }, d), /* @__PURE__ */ ne.createElement("polyline", {
1952
1764
  points: "20 6 9 17 4 12"
1953
1765
  }));
1954
1766
  });
1955
- Xe.propTypes = {
1956
- color: ne.string,
1957
- size: ne.oneOfType([ne.string, ne.number])
1767
+ qe.propTypes = {
1768
+ color: G.string,
1769
+ size: G.oneOfType([G.string, G.number])
1958
1770
  };
1959
- Xe.displayName = "Check";
1960
- function qe() {
1961
- return qe = Object.assign || function(r) {
1962
- for (var i = 1; i < arguments.length; i++) {
1963
- var o = arguments[i];
1771
+ qe.displayName = "Check";
1772
+ function Ie() {
1773
+ return Ie = Object.assign || function(e) {
1774
+ for (var s = 1; s < arguments.length; s++) {
1775
+ var o = arguments[s];
1964
1776
  for (var t in o)
1965
- Object.prototype.hasOwnProperty.call(o, t) && (r[t] = o[t]);
1777
+ Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
1966
1778
  }
1967
- return r;
1968
- }, qe.apply(this, arguments);
1779
+ return e;
1780
+ }, Ie.apply(this, arguments);
1969
1781
  }
1970
- function Pt(r, i) {
1971
- if (r == null) return {};
1972
- var o = kt(r, i), t, s;
1782
+ function Ur(e, s) {
1783
+ if (e == null) return {};
1784
+ var o = Br(e, s), t, i;
1973
1785
  if (Object.getOwnPropertySymbols) {
1974
- var a = Object.getOwnPropertySymbols(r);
1975
- for (s = 0; s < a.length; s++)
1976
- t = a[s], !(i.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (o[t] = r[t]);
1786
+ var a = Object.getOwnPropertySymbols(e);
1787
+ for (i = 0; i < a.length; i++)
1788
+ t = a[i], !(s.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
1977
1789
  }
1978
1790
  return o;
1979
1791
  }
1980
- function kt(r, i) {
1981
- if (r == null) return {};
1982
- var o = {}, t = Object.keys(r), s, a;
1792
+ function Br(e, s) {
1793
+ if (e == null) return {};
1794
+ var o = {}, t = Object.keys(e), i, a;
1983
1795
  for (a = 0; a < t.length; a++)
1984
- s = t[a], !(i.indexOf(s) >= 0) && (o[s] = r[s]);
1796
+ i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
1985
1797
  return o;
1986
1798
  }
1987
- var Ge = ke(function(r, i) {
1988
- var o = r.color, t = o === void 0 ? "currentColor" : o, s = r.size, a = s === void 0 ? 24 : s, h = Pt(r, ["color", "size"]);
1989
- return /* @__PURE__ */ se.createElement("svg", qe({
1990
- ref: i,
1799
+ var Fe = Re(function(e, s) {
1800
+ var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = Ur(e, ["color", "size"]);
1801
+ return /* @__PURE__ */ ne.createElement("svg", Ie({
1802
+ ref: s,
1991
1803
  xmlns: "http://www.w3.org/2000/svg",
1992
1804
  width: a,
1993
1805
  height: a,
@@ -1997,53 +1809,53 @@ var Ge = ke(function(r, i) {
1997
1809
  strokeWidth: "2",
1998
1810
  strokeLinecap: "round",
1999
1811
  strokeLinejoin: "round"
2000
- }, h), /* @__PURE__ */ se.createElement("rect", {
1812
+ }, d), /* @__PURE__ */ ne.createElement("rect", {
2001
1813
  x: "9",
2002
1814
  y: "9",
2003
1815
  width: "13",
2004
1816
  height: "13",
2005
1817
  rx: "2",
2006
1818
  ry: "2"
2007
- }), /* @__PURE__ */ se.createElement("path", {
1819
+ }), /* @__PURE__ */ ne.createElement("path", {
2008
1820
  d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
2009
1821
  }));
2010
1822
  });
2011
- Ge.propTypes = {
2012
- color: ne.string,
2013
- size: ne.oneOfType([ne.string, ne.number])
1823
+ Fe.propTypes = {
1824
+ color: G.string,
1825
+ size: G.oneOfType([G.string, G.number])
2014
1826
  };
2015
- Ge.displayName = "Copy";
2016
- function Be() {
2017
- return Be = Object.assign || function(r) {
2018
- for (var i = 1; i < arguments.length; i++) {
2019
- var o = arguments[i];
1827
+ Fe.displayName = "Copy";
1828
+ function Ye() {
1829
+ return Ye = Object.assign || function(e) {
1830
+ for (var s = 1; s < arguments.length; s++) {
1831
+ var o = arguments[s];
2020
1832
  for (var t in o)
2021
- Object.prototype.hasOwnProperty.call(o, t) && (r[t] = o[t]);
1833
+ Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
2022
1834
  }
2023
- return r;
2024
- }, Be.apply(this, arguments);
1835
+ return e;
1836
+ }, Ye.apply(this, arguments);
2025
1837
  }
2026
- function Lt(r, i) {
2027
- if (r == null) return {};
2028
- var o = Nt(r, i), t, s;
1838
+ function Zr(e, s) {
1839
+ if (e == null) return {};
1840
+ var o = Hr(e, s), t, i;
2029
1841
  if (Object.getOwnPropertySymbols) {
2030
- var a = Object.getOwnPropertySymbols(r);
2031
- for (s = 0; s < a.length; s++)
2032
- t = a[s], !(i.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (o[t] = r[t]);
1842
+ var a = Object.getOwnPropertySymbols(e);
1843
+ for (i = 0; i < a.length; i++)
1844
+ t = a[i], !(s.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
2033
1845
  }
2034
1846
  return o;
2035
1847
  }
2036
- function Nt(r, i) {
2037
- if (r == null) return {};
2038
- var o = {}, t = Object.keys(r), s, a;
1848
+ function Hr(e, s) {
1849
+ if (e == null) return {};
1850
+ var o = {}, t = Object.keys(e), i, a;
2039
1851
  for (a = 0; a < t.length; a++)
2040
- s = t[a], !(i.indexOf(s) >= 0) && (o[s] = r[s]);
1852
+ i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
2041
1853
  return o;
2042
1854
  }
2043
- var Qe = ke(function(r, i) {
2044
- var o = r.color, t = o === void 0 ? "currentColor" : o, s = r.size, a = s === void 0 ? 24 : s, h = Lt(r, ["color", "size"]);
2045
- return /* @__PURE__ */ se.createElement("svg", Be({
2046
- ref: i,
1855
+ var Ue = Re(function(e, s) {
1856
+ var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = Zr(e, ["color", "size"]);
1857
+ return /* @__PURE__ */ ne.createElement("svg", Ye({
1858
+ ref: s,
2047
1859
  xmlns: "http://www.w3.org/2000/svg",
2048
1860
  width: a,
2049
1861
  height: a,
@@ -2053,48 +1865,48 @@ var Qe = ke(function(r, i) {
2053
1865
  strokeWidth: "2",
2054
1866
  strokeLinecap: "round",
2055
1867
  strokeLinejoin: "round"
2056
- }, h), /* @__PURE__ */ se.createElement("path", {
1868
+ }, d), /* @__PURE__ */ ne.createElement("path", {
2057
1869
  d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"
2058
- }), /* @__PURE__ */ se.createElement("path", {
1870
+ }), /* @__PURE__ */ ne.createElement("path", {
2059
1871
  d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"
2060
1872
  }));
2061
1873
  });
2062
- Qe.propTypes = {
2063
- color: ne.string,
2064
- size: ne.oneOfType([ne.string, ne.number])
1874
+ Ue.propTypes = {
1875
+ color: G.string,
1876
+ size: G.oneOfType([G.string, G.number])
2065
1877
  };
2066
- Qe.displayName = "Edit";
2067
- function Ze() {
2068
- return Ze = Object.assign || function(r) {
2069
- for (var i = 1; i < arguments.length; i++) {
2070
- var o = arguments[i];
1878
+ Ue.displayName = "Edit";
1879
+ function ze() {
1880
+ return ze = Object.assign || function(e) {
1881
+ for (var s = 1; s < arguments.length; s++) {
1882
+ var o = arguments[s];
2071
1883
  for (var t in o)
2072
- Object.prototype.hasOwnProperty.call(o, t) && (r[t] = o[t]);
1884
+ Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
2073
1885
  }
2074
- return r;
2075
- }, Ze.apply(this, arguments);
1886
+ return e;
1887
+ }, ze.apply(this, arguments);
2076
1888
  }
2077
- function It(r, i) {
2078
- if (r == null) return {};
2079
- var o = Mt(r, i), t, s;
1889
+ function Jr(e, s) {
1890
+ if (e == null) return {};
1891
+ var o = Xr(e, s), t, i;
2080
1892
  if (Object.getOwnPropertySymbols) {
2081
- var a = Object.getOwnPropertySymbols(r);
2082
- for (s = 0; s < a.length; s++)
2083
- t = a[s], !(i.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (o[t] = r[t]);
1893
+ var a = Object.getOwnPropertySymbols(e);
1894
+ for (i = 0; i < a.length; i++)
1895
+ t = a[i], !(s.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
2084
1896
  }
2085
1897
  return o;
2086
1898
  }
2087
- function Mt(r, i) {
2088
- if (r == null) return {};
2089
- var o = {}, t = Object.keys(r), s, a;
1899
+ function Xr(e, s) {
1900
+ if (e == null) return {};
1901
+ var o = {}, t = Object.keys(e), i, a;
2090
1902
  for (a = 0; a < t.length; a++)
2091
- s = t[a], !(i.indexOf(s) >= 0) && (o[s] = r[s]);
1903
+ i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
2092
1904
  return o;
2093
1905
  }
2094
- var er = ke(function(r, i) {
2095
- var o = r.color, t = o === void 0 ? "currentColor" : o, s = r.size, a = s === void 0 ? 24 : s, h = It(r, ["color", "size"]);
2096
- return /* @__PURE__ */ se.createElement("svg", Ze({
2097
- ref: i,
1906
+ var Be = Re(function(e, s) {
1907
+ var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = Jr(e, ["color", "size"]);
1908
+ return /* @__PURE__ */ ne.createElement("svg", ze({
1909
+ ref: s,
2098
1910
  xmlns: "http://www.w3.org/2000/svg",
2099
1911
  width: a,
2100
1912
  height: a,
@@ -2104,232 +1916,232 @@ var er = ke(function(r, i) {
2104
1916
  strokeWidth: "2",
2105
1917
  strokeLinecap: "round",
2106
1918
  strokeLinejoin: "round"
2107
- }, h), /* @__PURE__ */ se.createElement("polyline", {
1919
+ }, d), /* @__PURE__ */ ne.createElement("polyline", {
2108
1920
  points: "3 6 5 6 21 6"
2109
- }), /* @__PURE__ */ se.createElement("path", {
1921
+ }), /* @__PURE__ */ ne.createElement("path", {
2110
1922
  d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
2111
1923
  }));
2112
1924
  });
2113
- er.propTypes = {
2114
- color: ne.string,
2115
- size: ne.oneOfType([ne.string, ne.number])
1925
+ Be.propTypes = {
1926
+ color: G.string,
1927
+ size: G.oneOfType([G.string, G.number])
2116
1928
  };
2117
- er.displayName = "Trash";
2118
- const Dt = ({
2119
- user: r,
2120
- messages: i,
1929
+ Be.displayName = "Trash";
1930
+ const Gr = ({
1931
+ user: e,
1932
+ messages: s,
2121
1933
  updateMessages: o,
2122
1934
  onMessageSent: t,
2123
- onEditMessage: s,
1935
+ onEditMessage: i,
2124
1936
  onDeleteMessage: a
2125
1937
  }) => {
2126
- const h = me(null), [g, p] = ue(!1), [b, y] = ue(null), [m, _] = ue(null), A = () => {
1938
+ const d = ye(null), [y, h] = se(!1), [b, g] = se(null), [j, M] = se(null), z = () => {
2127
1939
  setTimeout(() => {
2128
- h.current && (h.current.scrollTop = h.current.scrollHeight);
1940
+ d.current && (d.current.scrollTop = d.current.scrollHeight);
2129
1941
  }, 100);
2130
- }, J = (u, Z) => {
2131
- if (u.preventDefault(), !h.current) return;
2132
- const ee = h.current.getBoundingClientRect();
2133
- _({
2134
- x: u.clientX - ee.left,
2135
- y: u.clientY - ee.top,
2136
- message: Z
1942
+ }, B = (c, V) => {
1943
+ if (c.preventDefault(), !d.current) return;
1944
+ const H = d.current.getBoundingClientRect();
1945
+ M({
1946
+ x: c.clientX - H.left,
1947
+ y: c.clientY - H.top,
1948
+ message: V
2137
1949
  });
2138
- }, L = () => {
2139
- _(null);
2140
- }, q = (u) => {
2141
- const Z = new $e({
1950
+ }, R = () => {
1951
+ M(null);
1952
+ }, W = (c) => {
1953
+ const V = new _e({
2142
1954
  id: (/* @__PURE__ */ new Date()).toString(),
2143
- text: u,
2144
- user: r,
1955
+ text: c,
1956
+ user: e,
2145
1957
  isRightSided: !0,
2146
1958
  createdDate: (/* @__PURE__ */ new Date()).toString()
2147
1959
  });
2148
- o([...i, Z]), t(Z), A();
2149
- }, z = (u) => {
2150
- const Z = new $e({
1960
+ o([...s, V]), t(V), z();
1961
+ }, q = (c) => {
1962
+ const V = new _e({
2151
1963
  id: (/* @__PURE__ */ new Date()).toString(),
2152
1964
  text: "",
2153
- attachment: u,
2154
- attachmentType: be.Voice,
2155
- user: r,
1965
+ attachment: c,
1966
+ attachmentType: ge.Voice,
1967
+ user: e,
2156
1968
  isRightSided: !0,
2157
1969
  createdDate: (/* @__PURE__ */ new Date()).toString()
2158
1970
  });
2159
- o([...i, Z]), t(Z), A();
2160
- }, V = (u) => {
2161
- const Z = URL.createObjectURL(u), ee = new $e({
1971
+ o([...s, V]), t(V), z();
1972
+ }, ee = (c) => {
1973
+ const V = URL.createObjectURL(c), H = new _e({
2162
1974
  id: (/* @__PURE__ */ new Date()).toString(),
2163
1975
  text: "",
2164
- attachment: Z,
2165
- attachmentType: be.File,
2166
- user: r,
1976
+ attachment: V,
1977
+ attachmentType: ge.File,
1978
+ user: e,
2167
1979
  isRightSided: !0,
2168
1980
  createdDate: (/* @__PURE__ */ new Date()).toString()
2169
1981
  });
2170
- o([...i, ee]), t(ee), A();
1982
+ o([...s, H]), t(H), z();
2171
1983
  };
2172
1984
  return {
2173
1985
  handleDeleteConfirmation: () => {
2174
- b && (a(b), y(null)), p(!1);
1986
+ b && (a(b), g(null)), h(!1);
2175
1987
  },
2176
- handleCloseContextMenu: L,
1988
+ handleCloseContextMenu: R,
2177
1989
  contextMenuItems: [
2178
1990
  {
2179
1991
  name: "Edit",
2180
- icon: /* @__PURE__ */ n.jsx(Qe, { className: "text-gray-600" }),
1992
+ icon: /* @__PURE__ */ n.jsx(Ue, { className: "text-gray-600" }),
2181
1993
  onlyCurrentUserMessage: !0,
2182
- onClick: (u) => {
2183
- console.log("Edit clicked"), L(), s(u);
1994
+ onClick: (c) => {
1995
+ console.log("Edit clicked"), R(), i(c);
2184
1996
  }
2185
1997
  },
2186
1998
  {
2187
1999
  name: "Delete",
2188
- icon: /* @__PURE__ */ n.jsx(er, { className: "text-red-600" }),
2000
+ icon: /* @__PURE__ */ n.jsx(Be, { className: "text-red-600" }),
2189
2001
  onlyCurrentUserMessage: !0,
2190
- onClick: (u) => {
2191
- y(u), p(!0), L();
2002
+ onClick: (c) => {
2003
+ g(c), h(!0), R();
2192
2004
  }
2193
2005
  },
2194
2006
  {
2195
2007
  name: "Select",
2196
- icon: /* @__PURE__ */ n.jsx(Xe, { className: "text-green-600" }),
2008
+ icon: /* @__PURE__ */ n.jsx(qe, { className: "text-green-600" }),
2197
2009
  onClick: () => {
2198
- console.log("Select clicked"), L();
2010
+ console.log("Select clicked"), R();
2199
2011
  }
2200
2012
  },
2201
2013
  {
2202
2014
  name: "Copy",
2203
- icon: /* @__PURE__ */ n.jsx(Ge, { className: "text-blue-600" }),
2015
+ icon: /* @__PURE__ */ n.jsx(Fe, { className: "text-blue-600" }),
2204
2016
  onClick: () => {
2205
- console.log("Copy clicked"), L();
2017
+ console.log("Copy clicked"), R();
2206
2018
  }
2207
2019
  }
2208
2020
  ],
2209
- handleSendFile: V,
2210
- handleSendVoice: z,
2211
- handleSendMessage: q,
2212
- handleContextMenu: J,
2213
- isModalOpen: g,
2214
- contextMenu: m,
2215
- chatRef: h,
2216
- setIsModalOpen: p
2021
+ handleSendFile: ee,
2022
+ handleSendVoice: q,
2023
+ handleSendMessage: W,
2024
+ handleContextMenu: B,
2025
+ isModalOpen: y,
2026
+ contextMenu: j,
2027
+ chatRef: d,
2028
+ setIsModalOpen: h
2217
2029
  };
2218
- }, Wt = ({
2219
- width: r = "400px",
2220
- height: i = "600px",
2030
+ }, rt = ({
2031
+ width: e = "400px",
2032
+ height: s = "600px",
2221
2033
  className: o,
2222
2034
  style: t,
2223
- messages: s,
2035
+ messages: i,
2224
2036
  user: a,
2225
- updateMessages: h,
2226
- onMessageSent: g,
2227
- onDeleteMessage: p,
2037
+ updateMessages: d,
2038
+ onMessageSent: y,
2039
+ onDeleteMessage: h,
2228
2040
  onEditMessage: b,
2229
- dynamicSymbolAssignments: y
2041
+ dynamicSymbolAssignments: g
2230
2042
  }) => {
2231
- var Z, ee;
2043
+ var V, H;
2232
2044
  const {
2233
- handleDeleteConfirmation: m,
2234
- handleCloseContextMenu: _,
2235
- handleSendFile: A,
2236
- handleSendVoice: J,
2237
- handleSendMessage: L,
2238
- handleContextMenu: q,
2239
- contextMenuItems: z,
2240
- isModalOpen: V,
2241
- contextMenu: j,
2242
- chatRef: B,
2243
- setIsModalOpen: u
2244
- } = Dt({
2045
+ handleDeleteConfirmation: j,
2046
+ handleCloseContextMenu: M,
2047
+ handleSendFile: z,
2048
+ handleSendVoice: B,
2049
+ handleSendMessage: R,
2050
+ handleContextMenu: W,
2051
+ contextMenuItems: q,
2052
+ isModalOpen: ee,
2053
+ contextMenu: C,
2054
+ chatRef: D,
2055
+ setIsModalOpen: c
2056
+ } = Gr({
2245
2057
  user: a,
2246
- messages: s,
2247
- updateMessages: h,
2248
- onMessageSent: g,
2058
+ messages: i,
2059
+ updateMessages: d,
2060
+ onMessageSent: y,
2249
2061
  onEditMessage: b,
2250
- onDeleteMessage: p
2062
+ onDeleteMessage: h
2251
2063
  });
2252
2064
  return /* @__PURE__ */ n.jsxs(
2253
2065
  "div",
2254
2066
  {
2255
2067
  className: `flex flex-col !bg-cover ${o}`,
2256
2068
  style: {
2257
- width: r,
2258
- height: i,
2069
+ width: e,
2070
+ height: s,
2259
2071
  background: "url(./chat-bg-1.jpg)",
2260
2072
  ...t
2261
2073
  },
2262
- onClick: _,
2074
+ onClick: M,
2263
2075
  children: [
2264
2076
  /* @__PURE__ */ n.jsx(
2265
2077
  "div",
2266
2078
  {
2267
- ref: B,
2268
- className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${j ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
2269
- children: /* @__PURE__ */ n.jsx(Pr, { children: s.map((H, ae) => {
2270
- var fe, Q, G;
2271
- const pe = H != null && H.attachment ? /* @__PURE__ */ n.jsx(
2272
- yt,
2079
+ ref: D,
2080
+ className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${C ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
2081
+ children: /* @__PURE__ */ n.jsx(dr, { children: i.map((F, re) => {
2082
+ var ae, ie, K;
2083
+ const le = F != null && F.attachment ? /* @__PURE__ */ n.jsx(
2084
+ kr,
2273
2085
  {
2274
- attachment: H.attachment,
2275
- attachmentType: H == null ? void 0 : H.attachmentType
2086
+ attachment: F.attachment,
2087
+ attachmentType: F == null ? void 0 : F.attachmentType
2276
2088
  },
2277
- ae
2089
+ re
2278
2090
  ) : null;
2279
- if (H.isRightSided)
2091
+ if (F.isRightSided)
2280
2092
  return /* @__PURE__ */ n.jsx(
2281
- bt,
2093
+ Mr,
2282
2094
  {
2283
- media: pe,
2284
- handleContextMenu: q,
2285
- message: H
2095
+ media: le,
2096
+ handleContextMenu: W,
2097
+ message: F
2286
2098
  },
2287
- ae
2099
+ re
2288
2100
  );
2289
- const ve = ((Q = (fe = s[ae - 1]) == null ? void 0 : fe.user) == null ? void 0 : Q.id) !== ((G = H == null ? void 0 : H.user) == null ? void 0 : G.id);
2101
+ const oe = ((ie = (ae = i[re - 1]) == null ? void 0 : ae.user) == null ? void 0 : ie.id) !== ((K = F == null ? void 0 : F.user) == null ? void 0 : K.id);
2290
2102
  return /* @__PURE__ */ n.jsx(
2291
- gt,
2103
+ Nr,
2292
2104
  {
2293
- showUserProfile: ve,
2294
- media: pe,
2295
- handleContextMenu: q,
2296
- message: H
2105
+ showUserProfile: oe,
2106
+ media: le,
2107
+ handleContextMenu: W,
2108
+ message: F
2297
2109
  },
2298
- ae
2110
+ re
2299
2111
  );
2300
2112
  }) })
2301
2113
  }
2302
2114
  ),
2303
2115
  /* @__PURE__ */ n.jsx(
2304
- lt,
2116
+ Cr,
2305
2117
  {
2306
- isOpen: V,
2307
- onClose: () => u(!1),
2308
- onConfirm: m,
2118
+ isOpen: ee,
2119
+ onClose: () => c(!1),
2120
+ onConfirm: j,
2309
2121
  header: "Confirm Delete",
2310
2122
  question: "Are you sure you want to delete this message?"
2311
2123
  }
2312
2124
  ),
2313
- j && ((Z = j == null ? void 0 : j.message) != null && Z.id) ? /* @__PURE__ */ n.jsx(
2314
- ct,
2125
+ C && ((V = C == null ? void 0 : C.message) != null && V.id) ? /* @__PURE__ */ n.jsx(
2126
+ Er,
2315
2127
  {
2316
- items: z,
2317
- isVisible: !!j,
2318
- messageId: String(j == null ? void 0 : j.message.id),
2319
- isCurrentUserMessage: ((ee = j == null ? void 0 : j.message) == null ? void 0 : ee.user.id) === a.id,
2128
+ items: q,
2129
+ isVisible: !!C,
2130
+ messageId: String(C == null ? void 0 : C.message.id),
2131
+ isCurrentUserMessage: ((H = C == null ? void 0 : C.message) == null ? void 0 : H.user.id) === a.id,
2320
2132
  position: {
2321
- x: j == null ? void 0 : j.x,
2322
- y: j == null ? void 0 : j.y
2133
+ x: C == null ? void 0 : C.x,
2134
+ y: C == null ? void 0 : C.y
2323
2135
  }
2324
2136
  }
2325
2137
  ) : null,
2326
2138
  /* @__PURE__ */ n.jsx(
2327
- dt,
2139
+ Sr,
2328
2140
  {
2329
- onSendVoice: J,
2330
- onSendMessage: L,
2331
- onFileSend: A,
2332
- dynamicSymbolAssignments: y
2141
+ onSendVoice: B,
2142
+ onSendMessage: R,
2143
+ onFileSend: z,
2144
+ dynamicSymbolAssignments: g
2333
2145
  }
2334
2146
  )
2335
2147
  ]
@@ -2337,7 +2149,7 @@ const Dt = ({
2337
2149
  );
2338
2150
  };
2339
2151
  export {
2340
- be as AttachmentTypeEnum,
2341
- Wt as Chat,
2342
- $e as MessageEntity
2152
+ ge as AttachmentTypeEnum,
2153
+ rt as Chat,
2154
+ _e as MessageEntity
2343
2155
  };