react-pro-messenger 1.0.4 → 1.0.5

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,481 +1,669 @@
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 {
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 {
7
7
  constructor({
8
- id: s,
8
+ id: i,
9
9
  text: o,
10
10
  createdDate: t,
11
- attachment: i,
11
+ attachment: s,
12
12
  attachmentType: a,
13
- user: d,
14
- isRightSided: y,
15
- symbols: h
13
+ user: h,
14
+ isRightSided: g,
15
+ symbols: p
16
16
  }) {
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;
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;
26
26
  }
27
27
  }
28
- function xr(e) {
29
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
28
+ function ot(r) {
29
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
30
30
  }
31
- var Te = { exports: {} }, we = {};
31
+ var _e = { exports: {} }, Ee = {};
32
32
  /**
33
33
  * @license React
34
- * react-jsx-runtime.production.js
34
+ * react-jsx-runtime.production.min.js
35
35
  *
36
- * Copyright (c) Meta Platforms, Inc. and affiliates.
36
+ * Copyright (c) Facebook, Inc. and its 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 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
- };
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 };
60
52
  }
61
- return we.Fragment = s, we.jsx = o, we.jsxs = o, we;
53
+ return Ee.Fragment = o, Ee.jsx = h, Ee.jsxs = h, Ee;
62
54
  }
63
- var je = {};
55
+ var Te = {};
64
56
  /**
65
57
  * @license React
66
58
  * react-jsx-runtime.development.js
67
59
  *
68
- * Copyright (c) Meta Platforms, Inc. and affiliates.
60
+ * Copyright (c) Facebook, Inc. and its affiliates.
69
61
  *
70
62
  * This source code is licensed under the MIT license found in the
71
63
  * LICENSE file in the root directory of this source tree.
72
64
  */
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:
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:
83
121
  return "Fragment";
84
- case c:
122
+ case o:
85
123
  return "Portal";
86
- case F:
124
+ case a:
87
125
  return "Profiler";
88
- case H:
126
+ case s:
89
127
  return "StrictMode";
90
- case ae:
128
+ case b:
91
129
  return "Suspense";
92
- case ie:
130
+ case y:
93
131
  return "SuspenseList";
94
132
  }
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;
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;
110
148
  try {
111
- return e(r(p));
149
+ return Q(D(U));
112
150
  } catch {
151
+ return null;
113
152
  }
153
+ }
114
154
  }
115
155
  return null;
116
156
  }
117
- function s(r) {
118
- return "" + r;
157
+ var G = Object.assign, de = 0, O, N, I, re, l, f, w;
158
+ function C() {
119
159
  }
120
- function o(r) {
121
- try {
122
- s(r);
123
- var p = !1;
124
- } catch {
125
- p = !0;
126
- }
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);
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++;
135
182
  }
136
183
  }
137
- function t() {
138
- }
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
- });
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.");
157
217
  }
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
- });
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;
172
231
  }
173
- 0 > m && console.error(
174
- "disabledDepth fell below zero. This is a bug in React. Please file an issue."
175
- );
176
232
  }
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();
233
+ var $ = !1, P;
234
+ {
235
+ var te = typeof WeakMap == "function" ? WeakMap : Map;
236
+ P = new te();
237
+ }
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;
245
+ }
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();
196
252
  try {
197
- var X = {
198
- DetermineComponentFrameRoot: function() {
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) {
199
262
  try {
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];
263
+ Reflect.construct(D, []);
264
+ } catch (ie) {
265
+ x = ie;
235
266
  }
236
- return [null, null];
267
+ Reflect.construct(e, [], D);
268
+ } else {
269
+ try {
270
+ D.call();
271
+ } catch (ie) {
272
+ x = ie;
273
+ }
274
+ e.call(D.prototype);
237
275
  }
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)
276
+ } else {
277
+ try {
278
+ throw Error();
279
+ } catch (ie) {
280
+ x = ie;
281
+ }
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)
268
293
  do
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;
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;
276
298
  }
277
- while (1 <= U && 0 <= T);
299
+ while (K >= 1 && X >= 0);
278
300
  break;
279
301
  }
280
302
  }
281
303
  } finally {
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
- );
304
+ $ = !1, T.current = U, M(), Error.prepareStackTrace = F;
294
305
  }
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");
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");
301
328
  }
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;
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;
310
337
  try {
311
- return h(r(p));
338
+ return ye(U(F), c, v);
312
339
  } catch {
313
340
  }
341
+ }
314
342
  }
315
343
  return "";
316
344
  }
317
- function b() {
318
- var r = Z.A;
319
- return r === null ? null : r.getOwner();
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);
320
352
  }
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;
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
+ }
325
370
  }
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
- ));
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;
334
380
  }
335
- v.isReactWarning = !0, Object.defineProperty(r, "key", {
336
- get: v,
337
- configurable: !0
338
- });
339
381
  }
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", {
354
- enumerable: !1,
355
- get: M
356
- }) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
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
+ });
441
+ }
442
+ }
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", {
357
456
  configurable: !1,
358
457
  enumerable: !1,
359
458
  writable: !0,
360
- value: 0
361
- }), Object.defineProperty(r, "_debugInfo", {
459
+ value: !1
460
+ }), Object.defineProperty(k, "_self", {
362
461
  configurable: !1,
363
462
  enumerable: !1,
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);
463
+ writable: !1,
464
+ value: x
465
+ }), Object.defineProperty(k, "_source", {
466
+ configurable: !1,
467
+ 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);
382
495
  } else
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:
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:
395
635
  let props = %s;
396
636
  <%s {...props} />
397
637
  React keys must be passed directly to JSX without using spread:
398
638
  let props = %s;
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);
639
+ <%s key={someKey} {...props} />`, De, ge, Qr, ge), pr[ge + De] = !0;
422
640
  }
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);
641
+ }
642
+ return e === t ? Jr(X) : Zr(X), X;
428
643
  }
429
644
  }
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
- }
645
+ function Hr(e, c, v) {
646
+ return vr(e, c, v, !0);
448
647
  }
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;
648
+ function Kr(e, c, v) {
649
+ return vr(e, c, v, !1);
650
+ }
651
+ var Xr = Kr, Gr = Hr;
652
+ Te.Fragment = t, Te.jsx = Xr, Te.jsxs = Gr;
653
+ }()), Te;
466
654
  }
467
- var Qe;
468
- function jr() {
469
- return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? Te.exports = br() : Te.exports = wr()), Te.exports;
655
+ var gr;
656
+ function st() {
657
+ return gr || (gr = 1, process.env.NODE_ENV === "production" ? _e.exports = at() : _e.exports = it()), _e.exports;
470
658
  }
471
- var n = jr();
472
- const Cr = ({
473
- isOpen: e,
474
- onClose: s,
659
+ var n = st();
660
+ const lt = ({
661
+ isOpen: r,
662
+ onClose: i,
475
663
  onConfirm: o,
476
664
  header: t,
477
- question: i
478
- }) => e ? /* @__PURE__ */ n.jsx(
665
+ question: s
666
+ }) => r ? /* @__PURE__ */ n.jsx(
479
667
  "div",
480
668
  {
481
669
  id: "default-modal",
@@ -493,7 +681,7 @@ const Cr = ({
493
681
  {
494
682
  type: "button",
495
683
  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",
496
- onClick: s,
684
+ onClick: i,
497
685
  children: [
498
686
  /* @__PURE__ */ n.jsx(
499
687
  "svg",
@@ -521,7 +709,7 @@ const Cr = ({
521
709
  )
522
710
  ] }),
523
711
  /* @__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: [
524
- i,
712
+ s,
525
713
  " "
526
714
  ] }) }),
527
715
  /* @__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: [
@@ -529,7 +717,7 @@ const Cr = ({
529
717
  "button",
530
718
  {
531
719
  onClick: () => {
532
- o(), s();
720
+ o(), i();
533
721
  },
534
722
  type: "button",
535
723
  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",
@@ -539,7 +727,7 @@ const Cr = ({
539
727
  /* @__PURE__ */ n.jsx(
540
728
  "button",
541
729
  {
542
- onClick: s,
730
+ onClick: i,
543
731
  type: "button",
544
732
  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",
545
733
  children: "Cancel"
@@ -548,14 +736,14 @@ const Cr = ({
548
736
  ] })
549
737
  ] }) })
550
738
  }
551
- ) : null, Er = ({
552
- items: e,
553
- isVisible: s,
739
+ ) : null, ct = ({
740
+ items: r,
741
+ isVisible: i,
554
742
  position: o,
555
743
  messageId: t,
556
- isCurrentUserMessage: i
557
- }) => /* @__PURE__ */ n.jsx(dr, { children: s && /* @__PURE__ */ n.jsx(
558
- We.div,
744
+ isCurrentUserMessage: s
745
+ }) => /* @__PURE__ */ n.jsx(Pr, { children: i && /* @__PURE__ */ n.jsx(
746
+ Je.div,
559
747
  {
560
748
  initial: { opacity: 0, scale: 0.8, y: -10 },
561
749
  animate: { opacity: 1, scale: 1, y: 0 },
@@ -563,13 +751,13 @@ const Cr = ({
563
751
  transition: { duration: 0.2, ease: "easeOut" },
564
752
  className: "absolute z-20 bg-white shadow-lg rounded-md p-2 px-1 w-42",
565
753
  style: { top: o.y, left: o.x },
566
- children: e.map((a, d) => a != null && a.onlyCurrentUserMessage && !i ? null : /* @__PURE__ */ n.jsxs(
754
+ children: r.map((a, h) => a != null && a.onlyCurrentUserMessage && !s ? null : /* @__PURE__ */ n.jsxs(
567
755
  "button",
568
756
  {
569
757
  className: "cursor-pointer flex items-center gap-2 w-full rounded-md text-left px-2 py-1 hover:bg-gray-200",
570
758
  onClick: () => a.onClick(t),
571
759
  children: [
572
- ne.cloneElement(a.icon, {
760
+ se.cloneElement(a.icon, {
573
761
  className: "text-black",
574
762
  size: 18
575
763
  }),
@@ -577,10 +765,10 @@ const Cr = ({
577
765
  /* @__PURE__ */ n.jsx("span", { className: "ml-2 text-black", children: a.name })
578
766
  ]
579
767
  },
580
- d
768
+ h
581
769
  ))
582
770
  }
583
- ) }), Tr = () => /* @__PURE__ */ n.jsx(
771
+ ) }), ut = () => /* @__PURE__ */ n.jsx(
584
772
  "svg",
585
773
  {
586
774
  width: "21",
@@ -596,7 +784,7 @@ const Cr = ({
596
784
  }
597
785
  )
598
786
  }
599
- ), Or = () => /* @__PURE__ */ n.jsx(
787
+ ), ft = () => /* @__PURE__ */ n.jsx(
600
788
  "svg",
601
789
  {
602
790
  width: "14",
@@ -612,7 +800,7 @@ const Cr = ({
612
800
  }
613
801
  )
614
802
  }
615
- ), er = () => /* @__PURE__ */ n.jsx(
803
+ ), mr = () => /* @__PURE__ */ n.jsx(
616
804
  "svg",
617
805
  {
618
806
  width: "17",
@@ -628,7 +816,7 @@ const Cr = ({
628
816
  }
629
817
  )
630
818
  }
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: [
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: [
632
820
  /* @__PURE__ */ n.jsx(
633
821
  "path",
634
822
  {
@@ -658,77 +846,77 @@ const Cr = ({
658
846
  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"
659
847
  }
660
848
  )
661
- ] }) }), Sr = ({
662
- onSendMessage: e,
663
- onSendVoice: s,
849
+ ] }) }), dt = ({
850
+ onSendMessage: r,
851
+ onSendVoice: i,
664
852
  onFileSend: o,
665
853
  dynamicSymbolAssignments: t
666
854
  }) => {
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;
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;
669
857
  a(N);
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);
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);
676
864
  }
677
- t != null && t.some((l) => l.symbol === Z) && j(Z);
865
+ t != null && t.some((l) => l.symbol === re) && m(re);
678
866
  } else
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);
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);
687
875
  }, 1e3);
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);
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);
691
879
  }, N.onstop = () => {
692
- clearInterval(ee.current);
693
- const L = new Blob(q.current, { type: "audio/mp3" }), Z = URL.createObjectURL(L);
694
- s(Z), y(!1);
880
+ clearInterval(V.current);
881
+ const I = new Blob(z.current, { type: "audio/mp3" }), re = URL.createObjectURL(I);
882
+ i(re), g(!1);
695
883
  }, N.start();
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];
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];
705
893
  N && o(N);
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
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
715
903
  );
716
- u && (u != null && u.updatePageNumber) && (V(!0), u == null || u.updatePageNumber(u.pagNumber + 1), R(N), setTimeout(() => {
717
- V(!1);
904
+ f && (f != null && f.updatePageNumber) && (Z(!0), f == null || f.updatePageNumber(f.pagNumber + 1), L(N), setTimeout(() => {
905
+ Z(!1);
718
906
  }, 500));
719
907
  }
720
908
  } else
721
- R(N);
909
+ L(N);
722
910
  };
723
911
  return /* @__PURE__ */ n.jsxs("div", { className: "absolute bottom-0 w-full flex items-center p-2 pr-4 z-10", children: [
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) }),
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) }),
726
914
  /* @__PURE__ */ n.jsx(
727
915
  "button",
728
916
  {
729
917
  className: "cursor-pointer p-2 flex justify-center items-center bg-green-500 text-white rounded-full",
730
- onClick: oe,
731
- children: /* @__PURE__ */ n.jsx(er, {})
918
+ onClick: ve,
919
+ children: /* @__PURE__ */ n.jsx(mr, {})
732
920
  }
733
921
  )
734
922
  ] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -736,71 +924,71 @@ const Cr = ({
736
924
  /* @__PURE__ */ n.jsx(
737
925
  "div",
738
926
  {
739
- onClick: ae,
927
+ onClick: fe,
740
928
  className: "cursor-pointer absolute right-4 top-[11px]",
741
- children: /* @__PURE__ */ n.jsx(Tr, {})
929
+ children: /* @__PURE__ */ n.jsx(ut, {})
742
930
  }
743
931
  ),
744
932
  /* @__PURE__ */ n.jsx(
745
933
  "input",
746
934
  {
747
935
  type: "file",
748
- ref: D,
936
+ ref: B,
749
937
  style: { display: "none" },
750
- onChange: ie
938
+ onChange: Q
751
939
  }
752
940
  ),
753
941
  /* @__PURE__ */ n.jsx(
754
942
  "input",
755
943
  {
756
944
  type: "text",
757
- ref: C,
945
+ ref: j,
758
946
  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 ",
759
947
  placeholder: "Type a message...",
760
- value: i,
761
- onChange: H,
762
- onKeyDown: (S) => {
763
- S.key === "Enter" && !S.shiftKey && (S.preventDefault(), re());
948
+ value: s,
949
+ onChange: ee,
950
+ onKeyDown: (O) => {
951
+ O.key === "Enter" && !O.shiftKey && (O.preventDefault(), ae());
764
952
  }
765
953
  }
766
954
  ),
767
- /* @__PURE__ */ n.jsx(De, { className: "rotate-180 absolute -right-[11.4px] top-5" })
955
+ /* @__PURE__ */ n.jsx(He, { className: "rotate-180 absolute -right-[11.4px] top-5" })
768
956
  ] }),
769
957
  /* @__PURE__ */ n.jsx(
770
958
  "button",
771
959
  {
772
960
  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",
773
- onClick: i ? re : le,
774
- children: i ? /* @__PURE__ */ n.jsx(er, {}) : /* @__PURE__ */ n.jsx(Or, {})
961
+ onClick: s ? ae : pe,
962
+ children: s ? /* @__PURE__ */ n.jsx(mr, {}) : /* @__PURE__ */ n.jsx(ft, {})
775
963
  }
776
964
  )
777
965
  ] }),
778
- g && /* @__PURE__ */ n.jsxs(
966
+ y && /* @__PURE__ */ n.jsxs(
779
967
  "div",
780
968
  {
781
969
  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",
782
- onScroll: ce,
970
+ onScroll: de,
783
971
  children: [
784
972
  /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between items-center border-b pb-2 mb-2", children: [
785
973
  /* @__PURE__ */ n.jsxs("h3", { className: "text-lg font-semibold text-gray-800", children: [
786
974
  "Select an item for",
787
975
  " ",
788
- /* @__PURE__ */ n.jsx("span", { className: "text-blue-500", children: g })
976
+ /* @__PURE__ */ n.jsx("span", { className: "text-blue-500", children: y })
789
977
  ] }),
790
978
  /* @__PURE__ */ n.jsx(
791
979
  "button",
792
980
  {
793
981
  className: "text-gray-500 hover:text-gray-700",
794
- onClick: () => j(null),
982
+ onClick: () => m(null),
795
983
  children: "✕"
796
984
  }
797
985
  )
798
986
  ] }),
799
987
  /* @__PURE__ */ n.jsxs("div", { className: "space-y-2", children: [
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(
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(
804
992
  "div",
805
993
  {
806
994
  className: "hover:bg-gray-100 rounded-md p-2 cursor-pointer",
@@ -808,12 +996,12 @@ const Cr = ({
808
996
  N,
809
997
  {
810
998
  listsProps: l,
811
- onClick: (w, x) => F(w, x)
999
+ onClick: (w, C) => H(w, C)
812
1000
  }
813
1001
  )
814
1002
  },
815
- u
816
- )) : L == null ? void 0 : L.map((l, u) => /* @__PURE__ */ n.jsx(
1003
+ f
1004
+ )) : I == null ? void 0 : I.map((l, f) => /* @__PURE__ */ n.jsx(
817
1005
  "div",
818
1006
  {
819
1007
  className: "hover:bg-gray-100 rounded-md p-2 cursor-pointer",
@@ -821,60 +1009,60 @@ const Cr = ({
821
1009
  N,
822
1010
  {
823
1011
  listsProps: l,
824
- onClick: (w, x) => F(w, x)
1012
+ onClick: (w, C) => H(w, C)
825
1013
  }
826
1014
  )
827
1015
  },
828
- u
1016
+ f
829
1017
  )) : null;
830
1018
  }) : null,
831
- /* @__PURE__ */ n.jsx("div", { className: "h-8", children: c && "Loading more items..." })
1019
+ /* @__PURE__ */ n.jsx("div", { className: "h-8", children: u && "Loading more items..." })
832
1020
  ] })
833
1021
  ]
834
1022
  }
835
1023
  )
836
1024
  ] });
837
1025
  };
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,
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,
842
1030
  format: o,
843
1031
  src: t
844
1032
  }) => {
845
- const i = () => ({
1033
+ const s = () => ({
846
1034
  rar: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-green-500 font-bold", children: o }),
847
1035
  zip: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-blue-500 font-bold", children: o }),
848
1036
  pdf: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-red-500 font-bold", children: o }),
849
1037
  doc: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-blue-400 font-bold", children: o }),
850
1038
  vid: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-orange-400 font-bold", children: o }),
851
1039
  "": /* @__PURE__ */ n.jsx("p", { className: "p-2 text-black font-bold", children: o })
852
- })[o || ""], a = (d) => d > 1048576 ? (d / 1048576).toFixed(1) + " MB" : (d / 1024).toFixed(1) + " KB";
1040
+ })[o || ""], a = (h) => h > 1048576 ? (h / 1048576).toFixed(1) + " MB" : (h / 1024).toFixed(1) + " KB";
853
1041
  return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center rounded-lg", children: [
854
- /* @__PURE__ */ n.jsx("div", { className: "mr-3 relative border border-green-950 rounded-md p-3", children: i() }),
1042
+ /* @__PURE__ */ n.jsx("div", { className: "mr-3 relative border border-green-950 rounded-md p-3", children: s() }),
855
1043
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col flex-grow", children: [
856
1044
  /* @__PURE__ */ n.jsx(
857
1045
  "a",
858
1046
  {
859
1047
  href: t,
860
- download: e,
1048
+ download: r,
861
1049
  className: "text-gray-900 font-medium hover:underline",
862
- children: e
1050
+ children: r
863
1051
  }
864
1052
  ),
865
- /* @__PURE__ */ n.jsx("span", { className: "text-gray-600 text-sm", children: a(s) })
1053
+ /* @__PURE__ */ n.jsx("span", { className: "text-gray-600 text-sm", children: a(i) })
866
1054
  ] }),
867
1055
  /* @__PURE__ */ n.jsx(
868
1056
  "a",
869
1057
  {
870
1058
  href: t,
871
- download: e,
1059
+ download: r,
872
1060
  className: "ml-2 bg-green-500 text-white px-2 py-1 text-sm rounded hover:bg-green-600",
873
1061
  children: "Download"
874
1062
  }
875
1063
  )
876
1064
  ] });
877
- }, Rr = (e) => /* @__PURE__ */ n.jsx(
1065
+ }, pt = (r) => /* @__PURE__ */ n.jsx(
878
1066
  "svg",
879
1067
  {
880
1068
  xmlns: "http://www.w3.org/2000/svg",
@@ -887,10 +1075,10 @@ const rr = ({
887
1075
  strokeLinecap: "round",
888
1076
  strokeLinejoin: "round",
889
1077
  className: "lucide lucide-play",
890
- ...e,
1078
+ ...r,
891
1079
  children: /* @__PURE__ */ n.jsx("polygon", { points: "6 3 20 12 6 21 6 3" })
892
1080
  }
893
- ), _r = (e) => /* @__PURE__ */ n.jsxs(
1081
+ ), vt = (r) => /* @__PURE__ */ n.jsxs(
894
1082
  "svg",
895
1083
  {
896
1084
  xmlns: "http://www.w3.org/2000/svg",
@@ -903,110 +1091,110 @@ const rr = ({
903
1091
  strokeLinecap: "round",
904
1092
  strokeLinejoin: "round",
905
1093
  className: "lucide lucide-pause",
906
- ...e,
1094
+ ...r,
907
1095
  children: [
908
1096
  /* @__PURE__ */ n.jsx("rect", { x: "14", y: "4", width: "4", height: "16", rx: "1" }),
909
1097
  /* @__PURE__ */ n.jsx("rect", { x: "6", y: "4", width: "4", height: "16", rx: "1" })
910
1098
  ]
911
1099
  }
912
1100
  );
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;
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;
919
1107
  const b = () => {
920
- a(h.currentTime / h.duration * 100);
921
- }, g = () => t(!0), j = () => t(!1), M = () => {
1108
+ a(p.currentTime / p.duration * 100);
1109
+ }, y = () => t(!0), m = () => t(!1), _ = () => {
922
1110
  t(!1), a(0);
923
1111
  };
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);
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", _);
926
1114
  };
927
1115
  }, []);
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));
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));
931
1119
  };
932
1120
  return /* @__PURE__ */ n.jsxs(
933
1121
  "div",
934
1122
  {
935
- className: `flex items-center gap-2 py-2 pl-1 text-white rounded-xl w-full max-w-sm ${s}`,
1123
+ className: `flex items-center gap-2 py-2 pl-1 text-white rounded-xl w-full max-w-sm ${i}`,
936
1124
  children: [
937
1125
  /* @__PURE__ */ n.jsx(
938
1126
  "button",
939
1127
  {
940
1128
  className: "w-9 h-9 cursor-pointer flex items-center justify-center pl-[1.5px] bg-gray-700 rounded-full hover:bg-gray-600",
941
- onClick: y,
942
- children: o ? /* @__PURE__ */ n.jsx(_r, {}) : /* @__PURE__ */ n.jsx(Rr, {})
1129
+ onClick: g,
1130
+ children: o ? /* @__PURE__ */ n.jsx(vt, {}) : /* @__PURE__ */ n.jsx(pt, {})
943
1131
  }
944
1132
  ),
945
1133
  /* @__PURE__ */ n.jsx("div", { className: "relative flex-1 h-2 bg-gray-700 rounded-full overflow-hidden", children: /* @__PURE__ */ n.jsx(
946
1134
  "div",
947
1135
  {
948
1136
  className: "h-full bg-blue-500 transition-all",
949
- style: { width: `${i}%` }
1137
+ style: { width: `${s}%` }
950
1138
  }
951
1139
  ) }),
952
- /* @__PURE__ */ n.jsx("audio", { ref: d, src: e })
1140
+ /* @__PURE__ */ n.jsx("audio", { ref: h, src: r })
953
1141
  ]
954
1142
  }
955
1143
  );
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,
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,
960
1148
  {
961
1149
  fileName: "productivity",
962
1150
  fileSize: 23e3,
963
1151
  format: "rar",
964
- src: e
1152
+ src: r
965
1153
  }
966
- ) }) : s === ge.Video ? /* @__PURE__ */ n.jsx("div", { className: "w-full mt-1", children: /* @__PURE__ */ n.jsx(
967
- rr,
1154
+ ) }) : i === be.Video ? /* @__PURE__ */ n.jsx("div", { className: "w-full mt-1", children: /* @__PURE__ */ n.jsx(
1155
+ br,
968
1156
  {
969
1157
  fileName: "productivity",
970
1158
  fileSize: 23e3,
971
1159
  format: "rar",
972
- src: e
1160
+ src: r
973
1161
  }
974
1162
  ) }) : null;
975
- }, Nr = ({
976
- message: e,
977
- showUserProfile: s,
1163
+ }, gt = ({
1164
+ message: r,
1165
+ showUserProfile: i,
978
1166
  handleContextMenu: o,
979
1167
  media: t
980
1168
  }) => {
981
- var i, a, d, y, h;
1169
+ var s, a, h, g, p;
982
1170
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
983
- s ? /* @__PURE__ */ n.jsx(
1171
+ i ? /* @__PURE__ */ n.jsx(
984
1172
  "img",
985
1173
  {
986
- src: e.user.profileImageUrl,
1174
+ src: r.user.profileImageUrl,
987
1175
  className: "w-12 h-12 bg-gray-300 rounded-full"
988
1176
  }
989
1177
  ) : null,
990
1178
  /* @__PURE__ */ n.jsxs(
991
- We.div,
1179
+ Je.div,
992
1180
  {
993
1181
  initial: { opacity: 0, y: 50 },
994
1182
  animate: { opacity: 1, y: 0 },
995
1183
  exit: { opacity: 0, y: 50 },
996
1184
  transition: { duration: 0.3 },
997
- onContextMenu: (b) => o(b, e),
1185
+ onContextMenu: (b) => o(b, r),
998
1186
  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`,
999
1187
  children: [
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 }),
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 }),
1001
1189
  t || null,
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" })
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" })
1005
1193
  ]
1006
1194
  }
1007
1195
  )
1008
1196
  ] });
1009
- }, Lr = () => /* @__PURE__ */ n.jsxs(
1197
+ }, mt = () => /* @__PURE__ */ n.jsxs(
1010
1198
  "svg",
1011
1199
  {
1012
1200
  width: "16",
@@ -1033,31 +1221,31 @@ const Pr = ({ src: e, className: s }) => {
1033
1221
  )
1034
1222
  ]
1035
1223
  }
1036
- ), Mr = ({
1037
- handleContextMenu: e,
1038
- media: s,
1224
+ ), bt = ({
1225
+ handleContextMenu: r,
1226
+ media: i,
1039
1227
  message: o
1040
1228
  }) => /* @__PURE__ */ n.jsxs(
1041
- We.div,
1229
+ Je.div,
1042
1230
  {
1043
1231
  initial: { opacity: 0, y: 50 },
1044
1232
  animate: { opacity: 1, y: 0 },
1045
1233
  exit: { opacity: 0, y: 50 },
1046
1234
  transition: { duration: 0.3 },
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`,
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`,
1049
1237
  children: [
1050
- s || null,
1238
+ i || null,
1051
1239
  /* @__PURE__ */ n.jsx("span", { children: o.text }),
1052
1240
  /* @__PURE__ */ n.jsxs("div", { className: "w-full flex gap-1 items-center justify-end", children: [
1053
1241
  /* @__PURE__ */ n.jsx("span", { className: "text-[10px]", children: new Date(o.createdDate).toLocaleTimeString().split(":")[0] + ":" + new Date(o.createdDate).toLocaleTimeString().split(":")[1] }),
1054
- /* @__PURE__ */ n.jsx(Lr, {})
1242
+ /* @__PURE__ */ n.jsx(mt, {})
1055
1243
  ] }),
1056
- /* @__PURE__ */ n.jsx(De, { className: "fill-blue-200 rotate-180 absolute -right-2 bottom-0 [&>g>path]:fill-blue-200" })
1244
+ /* @__PURE__ */ n.jsx(He, { className: "fill-blue-200 rotate-180 absolute -right-2 bottom-0 [&>g>path]:fill-blue-200" })
1057
1245
  ]
1058
1246
  }
1059
1247
  );
1060
- var Oe = { exports: {} }, Se = { exports: {} }, I = {};
1248
+ var Se = { exports: {} }, Pe = { exports: {} }, W = {};
1061
1249
  /** @license React v16.13.1
1062
1250
  * react-is.production.min.js
1063
1251
  *
@@ -1066,71 +1254,71 @@ var Oe = { exports: {} }, Se = { exports: {} }, I = {};
1066
1254
  * This source code is licensed under the MIT license found in the
1067
1255
  * LICENSE file in the root directory of this source tree.
1068
1256
  */
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:
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:
1081
1269
  case b:
1082
1270
  case t:
1083
1271
  case a:
1084
- case i:
1085
- case j:
1086
- return c;
1272
+ case s:
1273
+ case m:
1274
+ return u;
1087
1275
  default:
1088
- switch (c = c && c.$$typeof, c) {
1089
- case y:
1276
+ switch (u = u && u.$$typeof, u) {
1090
1277
  case g:
1091
- case B:
1092
- case z:
1093
- case d:
1094
- return c;
1278
+ case y:
1279
+ case J:
1280
+ case A:
1281
+ case h:
1282
+ return u;
1095
1283
  default:
1096
- return V;
1284
+ return Z;
1097
1285
  }
1098
1286
  }
1099
1287
  case o:
1100
- return V;
1288
+ return Z;
1101
1289
  }
1102
1290
  }
1103
1291
  }
1104
- function D(c) {
1105
- return C(c) === b;
1292
+ function B(u) {
1293
+ return j(u) === b;
1106
1294
  }
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;
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;
1134
1322
  }
1135
1323
  var Y = {};
1136
1324
  /** @license React v16.13.1
@@ -1141,454 +1329,454 @@ var Y = {};
1141
1329
  * This source code is licensed under the MIT license found in the
1142
1330
  * LICENSE file in the root directory of this source tree.
1143
1331
  */
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:
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:
1160
1348
  case b:
1161
1349
  case t:
1162
1350
  case a:
1163
- case i:
1164
- case j:
1165
- return pe;
1351
+ case s:
1352
+ case m:
1353
+ return xe;
1166
1354
  default:
1167
- var me = pe && pe.$$typeof;
1168
- switch (me) {
1169
- case y:
1355
+ var ye = xe && xe.$$typeof;
1356
+ switch (ye) {
1170
1357
  case g:
1171
- case B:
1172
- case z:
1173
- case d:
1174
- return me;
1358
+ case y:
1359
+ case J:
1360
+ case A:
1361
+ case h:
1362
+ return ye;
1175
1363
  default:
1176
- return te;
1364
+ return le;
1177
1365
  }
1178
1366
  }
1179
1367
  case o:
1180
- return te;
1368
+ return le;
1181
1369
  }
1182
1370
  }
1183
1371
  }
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;
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;
1187
1375
  }
1188
- function l(f) {
1189
- return D(f) === b;
1376
+ function l(d) {
1377
+ return B(d) === b;
1190
1378
  }
1191
- function u(f) {
1192
- return D(f) === y;
1379
+ function f(d) {
1380
+ return B(d) === g;
1193
1381
  }
1194
- function w(f) {
1195
- return D(f) === d;
1382
+ function w(d) {
1383
+ return B(d) === h;
1196
1384
  }
1197
- function x(f) {
1198
- return typeof f == "object" && f !== null && f.$$typeof === s;
1385
+ function C(d) {
1386
+ return typeof d == "object" && d !== null && d.$$typeof === i;
1199
1387
  }
1200
- function m(f) {
1201
- return D(f) === g;
1388
+ function E(d) {
1389
+ return B(d) === y;
1202
1390
  }
1203
- function _(f) {
1204
- return D(f) === t;
1391
+ function M(d) {
1392
+ return B(d) === t;
1205
1393
  }
1206
- function E(f) {
1207
- return D(f) === B;
1394
+ function T(d) {
1395
+ return B(d) === J;
1208
1396
  }
1209
- function O(f) {
1210
- return D(f) === z;
1397
+ function R(d) {
1398
+ return B(d) === A;
1211
1399
  }
1212
- function P(f) {
1213
- return D(f) === o;
1400
+ function S(d) {
1401
+ return B(d) === o;
1214
1402
  }
1215
- function A(f) {
1216
- return D(f) === a;
1403
+ function $(d) {
1404
+ return B(d) === a;
1217
1405
  }
1218
- function k(f) {
1219
- return D(f) === i;
1406
+ function P(d) {
1407
+ return B(d) === s;
1220
1408
  }
1221
- function J(f) {
1222
- return D(f) === j;
1409
+ function te(d) {
1410
+ return B(d) === m;
1223
1411
  }
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;
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;
1225
1413
  }()), Y;
1226
1414
  }
1227
- var or;
1228
- function pr() {
1229
- return or || (or = 1, process.env.NODE_ENV === "production" ? Se.exports = Ar() : Se.exports = $r()), Se.exports;
1415
+ var Cr;
1416
+ function kr() {
1417
+ return Cr || (Cr = 1, process.env.NODE_ENV === "production" ? Pe.exports = xt() : Pe.exports = wt()), Pe.exports;
1230
1418
  }
1231
1419
  /*
1232
1420
  object-assign
1233
1421
  (c) Sindre Sorhus
1234
1422
  @license MIT
1235
1423
  */
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;
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;
1241
1429
  function t(a) {
1242
1430
  if (a == null)
1243
1431
  throw new TypeError("Object.assign cannot be called with null or undefined");
1244
1432
  return Object(a);
1245
1433
  }
1246
- function i() {
1434
+ function s() {
1247
1435
  try {
1248
1436
  if (!Object.assign)
1249
1437
  return !1;
1250
1438
  var a = new String("abc");
1251
1439
  if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
1252
1440
  return !1;
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];
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];
1257
1445
  });
1258
- if (h.join("") !== "0123456789")
1446
+ if (p.join("") !== "0123456789")
1259
1447
  return !1;
1260
1448
  var b = {};
1261
- return "abcdefghijklmnopqrst".split("").forEach(function(g) {
1262
- b[g] = g;
1449
+ return "abcdefghijklmnopqrst".split("").forEach(function(y) {
1450
+ b[y] = y;
1263
1451
  }), Object.keys(Object.assign({}, b)).join("") === "abcdefghijklmnopqrst";
1264
1452
  } catch {
1265
1453
  return !1;
1266
1454
  }
1267
1455
  }
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]]);
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[_]]);
1277
1465
  }
1278
1466
  }
1279
- return h;
1280
- }, Pe;
1467
+ return p;
1468
+ }, Ae;
1281
1469
  }
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;
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;
1288
1476
  }
1289
- var Ne, sr;
1290
- function vr() {
1291
- return sr || (sr = 1, Ne = Function.call.bind(Object.prototype.hasOwnProperty)), Ne;
1477
+ var We, Tr;
1478
+ function Lr() {
1479
+ return Tr || (Tr = 1, We = Function.call.bind(Object.prototype.hasOwnProperty)), We;
1292
1480
  }
1293
- var Le, lr;
1294
- function Yr() {
1295
- if (lr) return Le;
1296
- lr = 1;
1297
- var e = function() {
1481
+ var Ye, Rr;
1482
+ function jt() {
1483
+ if (Rr) return Ye;
1484
+ Rr = 1;
1485
+ var r = function() {
1298
1486
  };
1299
1487
  if (process.env.NODE_ENV !== "production") {
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);
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);
1304
1492
  try {
1305
- throw new Error(d);
1493
+ throw new Error(h);
1306
1494
  } catch {
1307
1495
  }
1308
1496
  };
1309
1497
  }
1310
- function i(a, d, y, h, b) {
1498
+ function s(a, h, g, p, b) {
1311
1499
  if (process.env.NODE_ENV !== "production") {
1312
- for (var g in a)
1313
- if (t(a, g)) {
1314
- var j;
1500
+ for (var y in a)
1501
+ if (t(a, y)) {
1502
+ var m;
1315
1503
  try {
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`."
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`."
1319
1507
  );
1320
- throw M.name = "Invariant Violation", M;
1508
+ throw _.name = "Invariant Violation", _;
1321
1509
  }
1322
- j = a[g](d, g, h, y, null, s);
1323
- } catch (B) {
1324
- j = B;
1510
+ m = a[y](h, y, p, g, null, i);
1511
+ } catch (J) {
1512
+ m = J;
1325
1513
  }
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 ?? "")
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 ?? "")
1333
1521
  );
1334
1522
  }
1335
1523
  }
1336
1524
  }
1337
1525
  }
1338
- return i.resetWarningCache = function() {
1526
+ return s.resetWarningCache = function() {
1339
1527
  process.env.NODE_ENV !== "production" && (o = {});
1340
- }, Le = i, Le;
1528
+ }, Ye = s, Ye;
1341
1529
  }
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() {
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() {
1347
1535
  };
1348
- process.env.NODE_ENV !== "production" && (a = function(y) {
1349
- var h = "Warning: " + y;
1350
- typeof console < "u" && console.error(h);
1536
+ process.env.NODE_ENV !== "production" && (a = function(g) {
1537
+ var p = "Warning: " + g;
1538
+ typeof console < "u" && console.error(p);
1351
1539
  try {
1352
- throw new Error(h);
1540
+ throw new Error(p);
1353
1541
  } catch {
1354
1542
  }
1355
1543
  });
1356
- function d() {
1544
+ function h() {
1357
1545
  return null;
1358
1546
  }
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
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
1386
1574
  };
1387
- function B(l, u) {
1388
- return l === u ? l !== 0 || 1 / l === 1 / u : l !== l && u !== u;
1575
+ function J(l, f) {
1576
+ return l === f ? l !== 0 || 1 / l === 1 / f : l !== l && f !== f;
1389
1577
  }
1390
- function R(l, u) {
1391
- this.message = l, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
1578
+ function L(l, f) {
1579
+ this.message = l, this.data = f && typeof f == "object" ? f : {}, this.stack = "";
1392
1580
  }
1393
- R.prototype = Error.prototype;
1394
- function W(l) {
1581
+ L.prototype = Error.prototype;
1582
+ function q(l) {
1395
1583
  if (process.env.NODE_ENV !== "production")
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(
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(
1401
1589
  "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"
1402
1590
  );
1403
- throw f.name = "Invariant Violation", f;
1591
+ throw d.name = "Invariant Violation", d;
1404
1592
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1405
- var te = P + ":" + O;
1406
- !u[te] && // Avoid spamming the console because they are often not actionable except for lib authors
1593
+ var le = S + ":" + R;
1594
+ !f[le] && // Avoid spamming the console because they are often not actionable except for lib authors
1407
1595
  w < 3 && (a(
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++);
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++);
1410
1598
  }
1411
1599
  }
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);
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);
1413
1601
  }
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 + "`."),
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 + "`."),
1424
1612
  { expectedType: l }
1425
1613
  );
1426
1614
  }
1427
1615
  return null;
1428
1616
  }
1429
- return W(u);
1617
+ return q(f);
1430
1618
  }
1431
- function ee() {
1432
- return W(d);
1619
+ function V() {
1620
+ return q(h);
1433
1621
  }
1434
- function C(l) {
1435
- function u(w, x, m, _, E) {
1622
+ function j(l) {
1623
+ function f(w, C, E, M, T) {
1436
1624
  if (typeof l != "function")
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."));
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."));
1442
1630
  }
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;
1631
+ for (var $ = 0; $ < R.length; $++) {
1632
+ var P = l(R, $, E, M, T + "[" + $ + "]", o);
1633
+ if (P instanceof Error)
1634
+ return P;
1447
1635
  }
1448
1636
  return null;
1449
1637
  }
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."));
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."));
1458
1646
  }
1459
1647
  return null;
1460
1648
  }
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."));
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."));
1469
1657
  }
1470
1658
  return null;
1471
1659
  }
1472
- return W(l);
1660
+ return q(l);
1473
1661
  }
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 + "`."));
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 + "`."));
1479
1667
  }
1480
1668
  return null;
1481
1669
  }
1482
- return W(u);
1670
+ return q(f);
1483
1671
  }
1484
- function H(l) {
1672
+ function ee(l) {
1485
1673
  if (!Array.isArray(l))
1486
1674
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1487
1675
  "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])."
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]))
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]))
1492
1680
  return null;
1493
- var A = JSON.stringify(l, function(J, f) {
1494
- var te = N(f);
1495
- return te === "symbol" ? String(f) : f;
1681
+ var $ = JSON.stringify(l, function(te, d) {
1682
+ var le = N(d);
1683
+ return le === "symbol" ? String(d) : d;
1496
1684
  });
1497
- return new R("Invalid " + _ + " `" + E + "` of value `" + String(O) + "` " + ("supplied to `" + m + "`, expected one of " + A + "."));
1685
+ return new L("Invalid " + M + " `" + T + "` of value `" + String(R) + "` " + ("supplied to `" + E + "`, expected one of " + $ + "."));
1498
1686
  }
1499
- return W(u);
1687
+ return q(f);
1500
1688
  }
1501
- function F(l) {
1502
- function u(w, x, m, _, E) {
1689
+ function H(l) {
1690
+ function f(w, C, E, M, T) {
1503
1691
  if (typeof l != "function")
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;
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;
1513
1701
  }
1514
1702
  return null;
1515
1703
  }
1516
- return W(u);
1704
+ return q(f);
1517
1705
  }
1518
- function re(l) {
1706
+ function ae(l) {
1519
1707
  if (!Array.isArray(l))
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];
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];
1523
1711
  if (typeof w != "function")
1524
1712
  return a(
1525
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(w) + " at index " + u + "."
1526
- ), d;
1713
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + I(w) + " at index " + f + "."
1714
+ ), h;
1527
1715
  }
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)
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)
1532
1720
  return null;
1533
- f.data && t(f.data, "expectedType") && A.push(f.data.expectedType);
1721
+ d.data && t(d.data, "expectedType") && $.push(d.data.expectedType);
1534
1722
  }
1535
- var te = A.length > 0 ? ", expected one of type [" + A.join(", ") + "]" : "";
1536
- return new R("Invalid " + O + " `" + P + "` supplied to " + ("`" + E + "`" + te + "."));
1723
+ var le = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
1724
+ return new L("Invalid " + R + " `" + S + "` supplied to " + ("`" + T + "`" + le + "."));
1537
1725
  }
1538
- return W(x);
1726
+ return q(C);
1539
1727
  }
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."));
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."));
1543
1731
  }
1544
- return W(l);
1732
+ return q(l);
1545
1733
  }
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 + "`."
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 + "`."
1549
1737
  );
1550
1738
  }
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;
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;
1563
1751
  }
1564
1752
  return null;
1565
1753
  }
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, " ") + `
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, " ") + `
1581
1769
  Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1582
1770
  );
1583
- var f = J(O, k, m, _, E + "." + k, o);
1584
- if (f)
1585
- return f;
1771
+ var d = te(R, P, E, M, T + "." + P, o);
1772
+ if (d)
1773
+ return d;
1586
1774
  }
1587
1775
  return null;
1588
1776
  }
1589
- return W(u);
1777
+ return q(f);
1590
1778
  }
1591
- function K(l) {
1779
+ function G(l) {
1592
1780
  switch (typeof l) {
1593
1781
  case "number":
1594
1782
  case "string":
@@ -1598,20 +1786,20 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1598
1786
  return !l;
1599
1787
  case "object":
1600
1788
  if (Array.isArray(l))
1601
- return l.every(K);
1602
- if (l === null || y(l))
1789
+ return l.every(G);
1790
+ if (l === null || g(l))
1603
1791
  return !0;
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))
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))
1610
1798
  return !1;
1611
1799
  } else
1612
- for (; !(x = w.next()).done; ) {
1613
- var m = x.value;
1614
- if (m && !K(m[1]))
1800
+ for (; !(C = w.next()).done; ) {
1801
+ var E = C.value;
1802
+ if (E && !G(E[1]))
1615
1803
  return !1;
1616
1804
  }
1617
1805
  } else
@@ -1621,65 +1809,65 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1621
1809
  return !1;
1622
1810
  }
1623
1811
  }
1624
- function ce(l, u) {
1625
- return l === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
1812
+ function de(l, f) {
1813
+ return l === "symbol" ? !0 : f ? f["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && f instanceof Symbol : !1;
1626
1814
  }
1627
- function S(l) {
1628
- var u = typeof l;
1629
- return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : ce(u, l) ? "symbol" : u;
1815
+ function O(l) {
1816
+ var f = typeof l;
1817
+ return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : de(f, l) ? "symbol" : f;
1630
1818
  }
1631
1819
  function N(l) {
1632
1820
  if (typeof l > "u" || l === null)
1633
1821
  return "" + l;
1634
- var u = S(l);
1635
- if (u === "object") {
1822
+ var f = O(l);
1823
+ if (f === "object") {
1636
1824
  if (l instanceof Date)
1637
1825
  return "date";
1638
1826
  if (l instanceof RegExp)
1639
1827
  return "regexp";
1640
1828
  }
1641
- return u;
1829
+ return f;
1642
1830
  }
1643
- function L(l) {
1644
- var u = N(l);
1645
- switch (u) {
1831
+ function I(l) {
1832
+ var f = N(l);
1833
+ switch (f) {
1646
1834
  case "array":
1647
1835
  case "object":
1648
- return "an " + u;
1836
+ return "an " + f;
1649
1837
  case "boolean":
1650
1838
  case "date":
1651
1839
  case "regexp":
1652
- return "a " + u;
1840
+ return "a " + f;
1653
1841
  default:
1654
- return u;
1842
+ return f;
1655
1843
  }
1656
1844
  }
1657
- function Z(l) {
1658
- return !l.constructor || !l.constructor.name ? M : l.constructor.name;
1845
+ function re(l) {
1846
+ return !l.constructor || !l.constructor.name ? _ : l.constructor.name;
1659
1847
  }
1660
- return z.checkPropTypes = i, z.resetWarningCache = i.resetWarningCache, z.PropTypes = z, z;
1661
- }, Me;
1848
+ return A.checkPropTypes = s, A.resetWarningCache = s.resetWarningCache, A.PropTypes = A, A;
1849
+ }, Ve;
1662
1850
  }
1663
- var Ae, ur;
1664
- function Wr() {
1665
- if (ur) return Ae;
1666
- ur = 1;
1667
- var e = /* @__PURE__ */ Ve();
1668
- function s() {
1851
+ var ze, _r;
1852
+ function Tt() {
1853
+ if (_r) return ze;
1854
+ _r = 1;
1855
+ var r = /* @__PURE__ */ Ke();
1856
+ function i() {
1669
1857
  }
1670
1858
  function o() {
1671
1859
  }
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(
1860
+ return o.resetWarningCache = i, ze = function() {
1861
+ function t(h, g, p, b, y, m) {
1862
+ if (m !== r) {
1863
+ var _ = new Error(
1676
1864
  "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"
1677
1865
  );
1678
- throw M.name = "Invariant Violation", M;
1866
+ throw _.name = "Invariant Violation", _;
1679
1867
  }
1680
1868
  }
1681
1869
  t.isRequired = t;
1682
- function i() {
1870
+ function s() {
1683
1871
  return t;
1684
1872
  }
1685
1873
  var a = {
@@ -1692,65 +1880,65 @@ function Wr() {
1692
1880
  string: t,
1693
1881
  symbol: t,
1694
1882
  any: t,
1695
- arrayOf: i,
1883
+ arrayOf: s,
1696
1884
  element: t,
1697
1885
  elementType: t,
1698
- instanceOf: i,
1886
+ instanceOf: s,
1699
1887
  node: t,
1700
- objectOf: i,
1701
- oneOf: i,
1702
- oneOfType: i,
1703
- shape: i,
1704
- exact: i,
1888
+ objectOf: s,
1889
+ oneOf: s,
1890
+ oneOfType: s,
1891
+ shape: s,
1892
+ exact: s,
1705
1893
  checkPropTypes: o,
1706
- resetWarningCache: s
1894
+ resetWarningCache: i
1707
1895
  };
1708
1896
  return a.PropTypes = a, a;
1709
- }, Ae;
1897
+ }, ze;
1710
1898
  }
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);
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);
1717
1905
  } else
1718
- Oe.exports = /* @__PURE__ */ Wr()();
1719
- return Oe.exports;
1906
+ Se.exports = /* @__PURE__ */ Tt()();
1907
+ return Se.exports;
1720
1908
  }
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];
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];
1727
1915
  for (var t in o)
1728
- Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
1916
+ Object.prototype.hasOwnProperty.call(o, t) && (r[t] = o[t]);
1729
1917
  }
1730
- return e;
1731
- }, $e.apply(this, arguments);
1918
+ return r;
1919
+ }, Ue.apply(this, arguments);
1732
1920
  }
1733
- function qr(e, s) {
1734
- if (e == null) return {};
1735
- var o = Fr(e, s), t, i;
1921
+ function _t(r, i) {
1922
+ if (r == null) return {};
1923
+ var o = St(r, i), t, s;
1736
1924
  if (Object.getOwnPropertySymbols) {
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]);
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]);
1740
1928
  }
1741
1929
  return o;
1742
1930
  }
1743
- function Fr(e, s) {
1744
- if (e == null) return {};
1745
- var o = {}, t = Object.keys(e), i, a;
1931
+ function St(r, i) {
1932
+ if (r == null) return {};
1933
+ var o = {}, t = Object.keys(r), s, a;
1746
1934
  for (a = 0; a < t.length; a++)
1747
- i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
1935
+ s = t[a], !(i.indexOf(s) >= 0) && (o[s] = r[s]);
1748
1936
  return o;
1749
1937
  }
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,
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,
1754
1942
  xmlns: "http://www.w3.org/2000/svg",
1755
1943
  width: a,
1756
1944
  height: a,
@@ -1760,46 +1948,46 @@ var qe = Re(function(e, s) {
1760
1948
  strokeWidth: "2",
1761
1949
  strokeLinecap: "round",
1762
1950
  strokeLinejoin: "round"
1763
- }, d), /* @__PURE__ */ ne.createElement("polyline", {
1951
+ }, h), /* @__PURE__ */ se.createElement("polyline", {
1764
1952
  points: "20 6 9 17 4 12"
1765
1953
  }));
1766
1954
  });
1767
- qe.propTypes = {
1768
- color: G.string,
1769
- size: G.oneOfType([G.string, G.number])
1955
+ Xe.propTypes = {
1956
+ color: ne.string,
1957
+ size: ne.oneOfType([ne.string, ne.number])
1770
1958
  };
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];
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];
1776
1964
  for (var t in o)
1777
- Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
1965
+ Object.prototype.hasOwnProperty.call(o, t) && (r[t] = o[t]);
1778
1966
  }
1779
- return e;
1780
- }, Ie.apply(this, arguments);
1967
+ return r;
1968
+ }, qe.apply(this, arguments);
1781
1969
  }
1782
- function Ur(e, s) {
1783
- if (e == null) return {};
1784
- var o = Br(e, s), t, i;
1970
+ function Pt(r, i) {
1971
+ if (r == null) return {};
1972
+ var o = kt(r, i), t, s;
1785
1973
  if (Object.getOwnPropertySymbols) {
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]);
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]);
1789
1977
  }
1790
1978
  return o;
1791
1979
  }
1792
- function Br(e, s) {
1793
- if (e == null) return {};
1794
- var o = {}, t = Object.keys(e), i, a;
1980
+ function kt(r, i) {
1981
+ if (r == null) return {};
1982
+ var o = {}, t = Object.keys(r), s, a;
1795
1983
  for (a = 0; a < t.length; a++)
1796
- i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
1984
+ s = t[a], !(i.indexOf(s) >= 0) && (o[s] = r[s]);
1797
1985
  return o;
1798
1986
  }
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,
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,
1803
1991
  xmlns: "http://www.w3.org/2000/svg",
1804
1992
  width: a,
1805
1993
  height: a,
@@ -1809,53 +1997,53 @@ var Fe = Re(function(e, s) {
1809
1997
  strokeWidth: "2",
1810
1998
  strokeLinecap: "round",
1811
1999
  strokeLinejoin: "round"
1812
- }, d), /* @__PURE__ */ ne.createElement("rect", {
2000
+ }, h), /* @__PURE__ */ se.createElement("rect", {
1813
2001
  x: "9",
1814
2002
  y: "9",
1815
2003
  width: "13",
1816
2004
  height: "13",
1817
2005
  rx: "2",
1818
2006
  ry: "2"
1819
- }), /* @__PURE__ */ ne.createElement("path", {
2007
+ }), /* @__PURE__ */ se.createElement("path", {
1820
2008
  d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
1821
2009
  }));
1822
2010
  });
1823
- Fe.propTypes = {
1824
- color: G.string,
1825
- size: G.oneOfType([G.string, G.number])
2011
+ Ge.propTypes = {
2012
+ color: ne.string,
2013
+ size: ne.oneOfType([ne.string, ne.number])
1826
2014
  };
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];
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];
1832
2020
  for (var t in o)
1833
- Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
2021
+ Object.prototype.hasOwnProperty.call(o, t) && (r[t] = o[t]);
1834
2022
  }
1835
- return e;
1836
- }, Ye.apply(this, arguments);
2023
+ return r;
2024
+ }, Be.apply(this, arguments);
1837
2025
  }
1838
- function Zr(e, s) {
1839
- if (e == null) return {};
1840
- var o = Hr(e, s), t, i;
2026
+ function Lt(r, i) {
2027
+ if (r == null) return {};
2028
+ var o = Nt(r, i), t, s;
1841
2029
  if (Object.getOwnPropertySymbols) {
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]);
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]);
1845
2033
  }
1846
2034
  return o;
1847
2035
  }
1848
- function Hr(e, s) {
1849
- if (e == null) return {};
1850
- var o = {}, t = Object.keys(e), i, a;
2036
+ function Nt(r, i) {
2037
+ if (r == null) return {};
2038
+ var o = {}, t = Object.keys(r), s, a;
1851
2039
  for (a = 0; a < t.length; a++)
1852
- i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
2040
+ s = t[a], !(i.indexOf(s) >= 0) && (o[s] = r[s]);
1853
2041
  return o;
1854
2042
  }
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,
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,
1859
2047
  xmlns: "http://www.w3.org/2000/svg",
1860
2048
  width: a,
1861
2049
  height: a,
@@ -1865,48 +2053,48 @@ var Ue = Re(function(e, s) {
1865
2053
  strokeWidth: "2",
1866
2054
  strokeLinecap: "round",
1867
2055
  strokeLinejoin: "round"
1868
- }, d), /* @__PURE__ */ ne.createElement("path", {
2056
+ }, h), /* @__PURE__ */ se.createElement("path", {
1869
2057
  d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"
1870
- }), /* @__PURE__ */ ne.createElement("path", {
2058
+ }), /* @__PURE__ */ se.createElement("path", {
1871
2059
  d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"
1872
2060
  }));
1873
2061
  });
1874
- Ue.propTypes = {
1875
- color: G.string,
1876
- size: G.oneOfType([G.string, G.number])
2062
+ Qe.propTypes = {
2063
+ color: ne.string,
2064
+ size: ne.oneOfType([ne.string, ne.number])
1877
2065
  };
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];
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];
1883
2071
  for (var t in o)
1884
- Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
2072
+ Object.prototype.hasOwnProperty.call(o, t) && (r[t] = o[t]);
1885
2073
  }
1886
- return e;
1887
- }, ze.apply(this, arguments);
2074
+ return r;
2075
+ }, Ze.apply(this, arguments);
1888
2076
  }
1889
- function Jr(e, s) {
1890
- if (e == null) return {};
1891
- var o = Xr(e, s), t, i;
2077
+ function It(r, i) {
2078
+ if (r == null) return {};
2079
+ var o = Mt(r, i), t, s;
1892
2080
  if (Object.getOwnPropertySymbols) {
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]);
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]);
1896
2084
  }
1897
2085
  return o;
1898
2086
  }
1899
- function Xr(e, s) {
1900
- if (e == null) return {};
1901
- var o = {}, t = Object.keys(e), i, a;
2087
+ function Mt(r, i) {
2088
+ if (r == null) return {};
2089
+ var o = {}, t = Object.keys(r), s, a;
1902
2090
  for (a = 0; a < t.length; a++)
1903
- i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
2091
+ s = t[a], !(i.indexOf(s) >= 0) && (o[s] = r[s]);
1904
2092
  return o;
1905
2093
  }
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,
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,
1910
2098
  xmlns: "http://www.w3.org/2000/svg",
1911
2099
  width: a,
1912
2100
  height: a,
@@ -1916,232 +2104,232 @@ var Be = Re(function(e, s) {
1916
2104
  strokeWidth: "2",
1917
2105
  strokeLinecap: "round",
1918
2106
  strokeLinejoin: "round"
1919
- }, d), /* @__PURE__ */ ne.createElement("polyline", {
2107
+ }, h), /* @__PURE__ */ se.createElement("polyline", {
1920
2108
  points: "3 6 5 6 21 6"
1921
- }), /* @__PURE__ */ ne.createElement("path", {
2109
+ }), /* @__PURE__ */ se.createElement("path", {
1922
2110
  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"
1923
2111
  }));
1924
2112
  });
1925
- Be.propTypes = {
1926
- color: G.string,
1927
- size: G.oneOfType([G.string, G.number])
2113
+ er.propTypes = {
2114
+ color: ne.string,
2115
+ size: ne.oneOfType([ne.string, ne.number])
1928
2116
  };
1929
- Be.displayName = "Trash";
1930
- const Gr = ({
1931
- user: e,
1932
- messages: s,
2117
+ er.displayName = "Trash";
2118
+ const Dt = ({
2119
+ user: r,
2120
+ messages: i,
1933
2121
  updateMessages: o,
1934
2122
  onMessageSent: t,
1935
- onEditMessage: i,
2123
+ onEditMessage: s,
1936
2124
  onDeleteMessage: a
1937
2125
  }) => {
1938
- const d = ye(null), [y, h] = se(!1), [b, g] = se(null), [j, M] = se(null), z = () => {
2126
+ const h = me(null), [g, p] = ue(!1), [b, y] = ue(null), [m, _] = ue(null), A = () => {
1939
2127
  setTimeout(() => {
1940
- d.current && (d.current.scrollTop = d.current.scrollHeight);
2128
+ h.current && (h.current.scrollTop = h.current.scrollHeight);
1941
2129
  }, 100);
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
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
1949
2137
  });
1950
- }, R = () => {
1951
- M(null);
1952
- }, W = (c) => {
1953
- const V = new _e({
2138
+ }, L = () => {
2139
+ _(null);
2140
+ }, q = (u) => {
2141
+ const Z = new $e({
1954
2142
  id: (/* @__PURE__ */ new Date()).toString(),
1955
- text: c,
1956
- user: e,
2143
+ text: u,
2144
+ user: r,
1957
2145
  isRightSided: !0,
1958
2146
  createdDate: (/* @__PURE__ */ new Date()).toString()
1959
2147
  });
1960
- o([...s, V]), t(V), z();
1961
- }, q = (c) => {
1962
- const V = new _e({
2148
+ o([...i, Z]), t(Z), A();
2149
+ }, z = (u) => {
2150
+ const Z = new $e({
1963
2151
  id: (/* @__PURE__ */ new Date()).toString(),
1964
2152
  text: "",
1965
- attachment: c,
1966
- attachmentType: ge.Voice,
1967
- user: e,
2153
+ attachment: u,
2154
+ attachmentType: be.Voice,
2155
+ user: r,
1968
2156
  isRightSided: !0,
1969
2157
  createdDate: (/* @__PURE__ */ new Date()).toString()
1970
2158
  });
1971
- o([...s, V]), t(V), z();
1972
- }, ee = (c) => {
1973
- const V = URL.createObjectURL(c), H = new _e({
2159
+ o([...i, Z]), t(Z), A();
2160
+ }, V = (u) => {
2161
+ const Z = URL.createObjectURL(u), ee = new $e({
1974
2162
  id: (/* @__PURE__ */ new Date()).toString(),
1975
2163
  text: "",
1976
- attachment: V,
1977
- attachmentType: ge.File,
1978
- user: e,
2164
+ attachment: Z,
2165
+ attachmentType: be.File,
2166
+ user: r,
1979
2167
  isRightSided: !0,
1980
2168
  createdDate: (/* @__PURE__ */ new Date()).toString()
1981
2169
  });
1982
- o([...s, H]), t(H), z();
2170
+ o([...i, ee]), t(ee), A();
1983
2171
  };
1984
2172
  return {
1985
2173
  handleDeleteConfirmation: () => {
1986
- b && (a(b), g(null)), h(!1);
2174
+ b && (a(b), y(null)), p(!1);
1987
2175
  },
1988
- handleCloseContextMenu: R,
2176
+ handleCloseContextMenu: L,
1989
2177
  contextMenuItems: [
1990
2178
  {
1991
2179
  name: "Edit",
1992
- icon: /* @__PURE__ */ n.jsx(Ue, { className: "text-gray-600" }),
2180
+ icon: /* @__PURE__ */ n.jsx(Qe, { className: "text-gray-600" }),
1993
2181
  onlyCurrentUserMessage: !0,
1994
- onClick: (c) => {
1995
- console.log("Edit clicked"), R(), i(c);
2182
+ onClick: (u) => {
2183
+ console.log("Edit clicked"), L(), s(u);
1996
2184
  }
1997
2185
  },
1998
2186
  {
1999
2187
  name: "Delete",
2000
- icon: /* @__PURE__ */ n.jsx(Be, { className: "text-red-600" }),
2188
+ icon: /* @__PURE__ */ n.jsx(er, { className: "text-red-600" }),
2001
2189
  onlyCurrentUserMessage: !0,
2002
- onClick: (c) => {
2003
- g(c), h(!0), R();
2190
+ onClick: (u) => {
2191
+ y(u), p(!0), L();
2004
2192
  }
2005
2193
  },
2006
2194
  {
2007
2195
  name: "Select",
2008
- icon: /* @__PURE__ */ n.jsx(qe, { className: "text-green-600" }),
2196
+ icon: /* @__PURE__ */ n.jsx(Xe, { className: "text-green-600" }),
2009
2197
  onClick: () => {
2010
- console.log("Select clicked"), R();
2198
+ console.log("Select clicked"), L();
2011
2199
  }
2012
2200
  },
2013
2201
  {
2014
2202
  name: "Copy",
2015
- icon: /* @__PURE__ */ n.jsx(Fe, { className: "text-blue-600" }),
2203
+ icon: /* @__PURE__ */ n.jsx(Ge, { className: "text-blue-600" }),
2016
2204
  onClick: () => {
2017
- console.log("Copy clicked"), R();
2205
+ console.log("Copy clicked"), L();
2018
2206
  }
2019
2207
  }
2020
2208
  ],
2021
- handleSendFile: ee,
2022
- handleSendVoice: q,
2023
- handleSendMessage: W,
2024
- handleContextMenu: B,
2025
- isModalOpen: y,
2026
- contextMenu: j,
2027
- chatRef: d,
2028
- setIsModalOpen: h
2209
+ handleSendFile: V,
2210
+ handleSendVoice: z,
2211
+ handleSendMessage: q,
2212
+ handleContextMenu: J,
2213
+ isModalOpen: g,
2214
+ contextMenu: m,
2215
+ chatRef: h,
2216
+ setIsModalOpen: p
2029
2217
  };
2030
- }, rt = ({
2031
- width: e = "400px",
2032
- height: s = "600px",
2218
+ }, Wt = ({
2219
+ width: r = "400px",
2220
+ height: i = "600px",
2033
2221
  className: o,
2034
2222
  style: t,
2035
- messages: i,
2223
+ messages: s,
2036
2224
  user: a,
2037
- updateMessages: d,
2038
- onMessageSent: y,
2039
- onDeleteMessage: h,
2225
+ updateMessages: h,
2226
+ onMessageSent: g,
2227
+ onDeleteMessage: p,
2040
2228
  onEditMessage: b,
2041
- dynamicSymbolAssignments: g
2229
+ dynamicSymbolAssignments: y
2042
2230
  }) => {
2043
- var V, H;
2231
+ var Z, ee;
2044
2232
  const {
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({
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({
2057
2245
  user: a,
2058
- messages: i,
2059
- updateMessages: d,
2060
- onMessageSent: y,
2246
+ messages: s,
2247
+ updateMessages: h,
2248
+ onMessageSent: g,
2061
2249
  onEditMessage: b,
2062
- onDeleteMessage: h
2250
+ onDeleteMessage: p
2063
2251
  });
2064
2252
  return /* @__PURE__ */ n.jsxs(
2065
2253
  "div",
2066
2254
  {
2067
2255
  className: `flex flex-col !bg-cover ${o}`,
2068
2256
  style: {
2069
- width: e,
2070
- height: s,
2257
+ width: r,
2258
+ height: i,
2071
2259
  background: "url(./chat-bg-1.jpg)",
2072
2260
  ...t
2073
2261
  },
2074
- onClick: M,
2262
+ onClick: _,
2075
2263
  children: [
2076
2264
  /* @__PURE__ */ n.jsx(
2077
2265
  "div",
2078
2266
  {
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,
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,
2085
2273
  {
2086
- attachment: F.attachment,
2087
- attachmentType: F == null ? void 0 : F.attachmentType
2274
+ attachment: H.attachment,
2275
+ attachmentType: H == null ? void 0 : H.attachmentType
2088
2276
  },
2089
- re
2277
+ ae
2090
2278
  ) : null;
2091
- if (F.isRightSided)
2279
+ if (H.isRightSided)
2092
2280
  return /* @__PURE__ */ n.jsx(
2093
- Mr,
2281
+ bt,
2094
2282
  {
2095
- media: le,
2096
- handleContextMenu: W,
2097
- message: F
2283
+ media: pe,
2284
+ handleContextMenu: q,
2285
+ message: H
2098
2286
  },
2099
- re
2287
+ ae
2100
2288
  );
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);
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);
2102
2290
  return /* @__PURE__ */ n.jsx(
2103
- Nr,
2291
+ gt,
2104
2292
  {
2105
- showUserProfile: oe,
2106
- media: le,
2107
- handleContextMenu: W,
2108
- message: F
2293
+ showUserProfile: ve,
2294
+ media: pe,
2295
+ handleContextMenu: q,
2296
+ message: H
2109
2297
  },
2110
- re
2298
+ ae
2111
2299
  );
2112
2300
  }) })
2113
2301
  }
2114
2302
  ),
2115
2303
  /* @__PURE__ */ n.jsx(
2116
- Cr,
2304
+ lt,
2117
2305
  {
2118
- isOpen: ee,
2119
- onClose: () => c(!1),
2120
- onConfirm: j,
2306
+ isOpen: V,
2307
+ onClose: () => u(!1),
2308
+ onConfirm: m,
2121
2309
  header: "Confirm Delete",
2122
2310
  question: "Are you sure you want to delete this message?"
2123
2311
  }
2124
2312
  ),
2125
- C && ((V = C == null ? void 0 : C.message) != null && V.id) ? /* @__PURE__ */ n.jsx(
2126
- Er,
2313
+ j && ((Z = j == null ? void 0 : j.message) != null && Z.id) ? /* @__PURE__ */ n.jsx(
2314
+ ct,
2127
2315
  {
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,
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,
2132
2320
  position: {
2133
- x: C == null ? void 0 : C.x,
2134
- y: C == null ? void 0 : C.y
2321
+ x: j == null ? void 0 : j.x,
2322
+ y: j == null ? void 0 : j.y
2135
2323
  }
2136
2324
  }
2137
2325
  ) : null,
2138
2326
  /* @__PURE__ */ n.jsx(
2139
- Sr,
2327
+ dt,
2140
2328
  {
2141
- onSendVoice: B,
2142
- onSendMessage: R,
2143
- onFileSend: z,
2144
- dynamicSymbolAssignments: g
2329
+ onSendVoice: J,
2330
+ onSendMessage: L,
2331
+ onFileSend: A,
2332
+ dynamicSymbolAssignments: y
2145
2333
  }
2146
2334
  )
2147
2335
  ]
@@ -2149,7 +2337,7 @@ const Gr = ({
2149
2337
  );
2150
2338
  };
2151
2339
  export {
2152
- ge as AttachmentTypeEnum,
2153
- rt as Chat,
2154
- _e as MessageEntity
2340
+ be as AttachmentTypeEnum,
2341
+ Wt as Chat,
2342
+ $e as MessageEntity
2155
2343
  };