vue-wiguet-chatweb 0.0.25 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { openBlock as W, createElementBlock as U, createElementVNode as _, getCurrentScope as Wr, onScopeDispose as Ur, unref as fs, computed as ms, ref as B, watch as sn, getCurrentInstance as $r, onMounted as ys, defineComponent as rn, onBeforeMount as Hr, Fragment as Sn, renderList as Br, normalizeClass as ct, createVNode as Se, createCommentVNode as on, toDisplayString as Pe, pushScopeId as Pr, popScopeId as zr, nextTick as bn, withModifiers as Dt, withDirectives as Zt, withKeys as kn, vModelText as qr, createStaticVNode as Zr, vShow as Tn } from "vue";
1
+ import { openBlock as U, createElementBlock as $, createElementVNode as _, getCurrentScope as Wr, onScopeDispose as Ur, unref as fs, computed as ms, ref as P, watch as sn, getCurrentInstance as $r, onMounted as ys, defineComponent as rn, onBeforeMount as Hr, Fragment as Sn, renderList as Br, normalizeClass as ct, createVNode as Se, createCommentVNode as on, toDisplayString as Pe, pushScopeId as Pr, popScopeId as zr, nextTick as bn, withModifiers as Dt, withDirectives as Zt, withKeys as kn, vModelText as qr, createStaticVNode as Zr, vShow as Tn } from "vue";
2
2
  let Xe;
3
3
  const jr = new Uint8Array(16);
4
4
  function Gr() {
@@ -6,11 +6,11 @@ function Gr() {
6
6
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
7
7
  return Xe(jr);
8
8
  }
9
- const R = [];
9
+ const F = [];
10
10
  for (let t = 0; t < 256; ++t)
11
- R.push((t + 256).toString(16).slice(1));
11
+ F.push((t + 256).toString(16).slice(1));
12
12
  function Yr(t, e = 0) {
13
- return R[t[e + 0]] + R[t[e + 1]] + R[t[e + 2]] + R[t[e + 3]] + "-" + R[t[e + 4]] + R[t[e + 5]] + "-" + R[t[e + 6]] + R[t[e + 7]] + "-" + R[t[e + 8]] + R[t[e + 9]] + "-" + R[t[e + 10]] + R[t[e + 11]] + R[t[e + 12]] + R[t[e + 13]] + R[t[e + 14]] + R[t[e + 15]];
13
+ return F[t[e + 0]] + F[t[e + 1]] + F[t[e + 2]] + F[t[e + 3]] + "-" + F[t[e + 4]] + F[t[e + 5]] + "-" + F[t[e + 6]] + F[t[e + 7]] + "-" + F[t[e + 8]] + F[t[e + 9]] + "-" + F[t[e + 10]] + F[t[e + 11]] + F[t[e + 12]] + F[t[e + 13]] + F[t[e + 14]] + F[t[e + 15]];
14
14
  }
15
15
  const Jr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), On = {
16
16
  randomUUID: Jr
@@ -255,11 +255,11 @@ var re;
255
255
  (function(t) {
256
256
  t[t.CONNECTING = 0] = "CONNECTING", t[t.OPEN = 1] = "OPEN", t[t.CLOSING = 2] = "CLOSING", t[t.CLOSED = 3] = "CLOSED";
257
257
  })(re = re || (re = {}));
258
- var q;
258
+ var Z;
259
259
  (function(t) {
260
260
  t[t.ACTIVE = 0] = "ACTIVE", t[t.DEACTIVATING = 1] = "DEACTIVATING", t[t.INACTIVE = 2] = "INACTIVE";
261
- })(q = q || (q = {}));
262
- class $ {
261
+ })(Z = Z || (Z = {}));
262
+ class H {
263
263
  /**
264
264
  * Takes an array of versions, typical elements '1.2', '1.1', or '1.0'
265
265
  *
@@ -282,13 +282,13 @@ class $ {
282
282
  return this.versions.map((e) => `v${e.replace(".", "")}.stomp`);
283
283
  }
284
284
  }
285
- $.V1_0 = "1.0";
286
- $.V1_1 = "1.1";
287
- $.V1_2 = "1.2";
288
- $.default = new $([
289
- $.V1_2,
290
- $.V1_1,
291
- $.V1_0
285
+ H.V1_0 = "1.0";
286
+ H.V1_1 = "1.1";
287
+ H.V1_2 = "1.2";
288
+ H.default = new H([
289
+ H.V1_2,
290
+ H.V1_1,
291
+ H.V1_0
292
292
  ]);
293
293
  function si(t, e) {
294
294
  t.terminate = function() {
@@ -311,11 +311,11 @@ class ri {
311
311
  this._client = e, this._webSocket = n, this._connected = !1, this._serverFrameHandlers = {
312
312
  // [CONNECTED Frame](https://stomp.github.com/stomp-specification-1.2.html#CONNECTED_Frame)
313
313
  CONNECTED: (r) => {
314
- this.debug(`connected to server ${r.headers.server}`), this._connected = !0, this._connectedVersion = r.headers.version, this._connectedVersion === $.V1_2 && (this._escapeHeaderValues = !0), this._setupHeartbeat(r.headers), this.onConnect(r);
314
+ this.debug(`connected to server ${r.headers.server}`), this._connected = !0, this._connectedVersion = r.headers.version, this._connectedVersion === H.V1_2 && (this._escapeHeaderValues = !0), this._setupHeartbeat(r.headers), this.onConnect(r);
315
315
  },
316
316
  // [MESSAGE Frame](https://stomp.github.com/stomp-specification-1.2.html#MESSAGE)
317
317
  MESSAGE: (r) => {
318
- const i = r.headers.subscription, o = this._subscriptions[i] || this.onUnhandledMessage, a = r, c = this, u = this._connectedVersion === $.V1_2 ? a.headers.ack : a.headers["message-id"];
318
+ const i = r.headers.subscription, o = this._subscriptions[i] || this.onUnhandledMessage, a = r, c = this, u = this._connectedVersion === H.V1_2 ? a.headers.ack : a.headers["message-id"];
319
319
  a.ack = (l = {}) => c.ack(u, i, l), a.nack = (l = {}) => c.nack(u, i, l), o(a);
320
320
  },
321
321
  // [RECEIPT Frame](https://stomp.github.com/stomp-specification-1.2.html#RECEIPT)
@@ -366,7 +366,7 @@ class ri {
366
366
  };
367
367
  }
368
368
  _setupHeartbeat(e) {
369
- if (e.version !== $.V1_1 && e.version !== $.V1_2 || !e["heart-beat"])
369
+ if (e.version !== H.V1_1 && e.version !== H.V1_2 || !e["heart-beat"])
370
370
  return;
371
371
  const [n, s] = e["heart-beat"].split(",").map((r) => parseInt(r, 10));
372
372
  if (this.heartbeatOutgoing !== 0 && s !== 0) {
@@ -494,10 +494,10 @@ class ri {
494
494
  });
495
495
  }
496
496
  ack(e, n, s = {}) {
497
- s = Object.assign({}, s), this._connectedVersion === $.V1_2 ? s.id = e : s["message-id"] = e, s.subscription = n, this._transmit({ command: "ACK", headers: s });
497
+ s = Object.assign({}, s), this._connectedVersion === H.V1_2 ? s.id = e : s["message-id"] = e, s.subscription = n, this._transmit({ command: "ACK", headers: s });
498
498
  }
499
499
  nack(e, n, s = {}) {
500
- return s = Object.assign({}, s), this._connectedVersion === $.V1_2 ? s.id = e : s["message-id"] = e, s.subscription = n, this._transmit({ command: "NACK", headers: s });
500
+ return s = Object.assign({}, s), this._connectedVersion === H.V1_2 ? s.id = e : s["message-id"] = e, s.subscription = n, this._transmit({ command: "NACK", headers: s });
501
501
  }
502
502
  }
503
503
  class ii {
@@ -505,7 +505,7 @@ class ii {
505
505
  * Create an instance.
506
506
  */
507
507
  constructor(e = {}) {
508
- this.stompVersions = $.default, this.connectionTimeout = 0, this.reconnectDelay = 5e3, this.heartbeatIncoming = 1e4, this.heartbeatOutgoing = 1e4, this.splitLargeFrames = !1, this.maxWebSocketChunkSize = 8 * 1024, this.forceBinaryWSFrames = !1, this.appendMissingNULLonIncoming = !1, this.discardWebsocketOnCommFailure = !1, this.state = q.INACTIVE;
508
+ this.stompVersions = H.default, this.connectionTimeout = 0, this.reconnectDelay = 5e3, this.heartbeatIncoming = 1e4, this.heartbeatOutgoing = 1e4, this.splitLargeFrames = !1, this.maxWebSocketChunkSize = 8 * 1024, this.forceBinaryWSFrames = !1, this.appendMissingNULLonIncoming = !1, this.discardWebsocketOnCommFailure = !1, this.state = Z.INACTIVE;
509
509
  const n = () => {
510
510
  };
511
511
  this.debug = n, this.beforeConnect = n, this.onConnect = n, this.onDisconnect = n, this.onUnhandledMessage = n, this.onUnhandledReceipt = n, this.onUnhandledFrame = n, this.onStompError = n, this.onWebSocketClose = n, this.onWebSocketError = n, this.logRawCommunication = !1, this.onChangeState = n, this.connectHeaders = {}, this._disconnectHeaders = {}, this.configure(e);
@@ -542,7 +542,7 @@ class ii {
542
542
  * if the client is active (connected or going to reconnect)
543
543
  */
544
544
  get active() {
545
- return this.state === q.ACTIVE;
545
+ return this.state === Z.ACTIVE;
546
546
  }
547
547
  _changeState(e) {
548
548
  this.state = e, this.onChangeState(e);
@@ -566,9 +566,9 @@ class ii {
566
566
  this.debug("Already ACTIVE, ignoring request to activate");
567
567
  return;
568
568
  }
569
- this._changeState(q.ACTIVE), this._connect();
569
+ this._changeState(Z.ACTIVE), this._connect();
570
570
  };
571
- this.state === q.DEACTIVATING ? (this.debug("Waiting for deactivation to finish before activating"), this.deactivate().then(() => {
571
+ this.state === Z.DEACTIVATING ? (this.debug("Waiting for deactivation to finish before activating"), this.deactivate().then(() => {
572
572
  e();
573
573
  })) : e();
574
574
  }
@@ -612,7 +612,7 @@ class ii {
612
612
  this.onStompError(n);
613
613
  },
614
614
  onWebSocketClose: (n) => {
615
- this._stompHandler = void 0, this.state === q.DEACTIVATING && this._changeState(q.INACTIVE), this.onWebSocketClose(n), this.active && this._schedule_reconnect();
615
+ this._stompHandler = void 0, this.state === Z.DEACTIVATING && this._changeState(Z.INACTIVE), this.onWebSocketClose(n), this.active && this._schedule_reconnect();
616
616
  },
617
617
  onWebSocketError: (n) => {
618
618
  this.onWebSocketError(n);
@@ -670,9 +670,9 @@ class ii {
670
670
  var n;
671
671
  const s = e.force || !1, r = this.active;
672
672
  let i;
673
- if (this.state === q.INACTIVE)
673
+ if (this.state === Z.INACTIVE)
674
674
  return this.debug("Already INACTIVE, nothing more to do"), Promise.resolve();
675
- if (this._changeState(q.DEACTIVATING), this._reconnector && (clearTimeout(this._reconnector), this._reconnector = void 0), this._stompHandler && // @ts-ignore - if there is a _stompHandler, there is the webSocket
675
+ if (this._changeState(Z.DEACTIVATING), this._reconnector && (clearTimeout(this._reconnector), this._reconnector = void 0), this._stompHandler && // @ts-ignore - if there is a _stompHandler, there is the webSocket
676
676
  this.webSocket.readyState !== re.CLOSED) {
677
677
  const o = this._stompHandler.onWebSocketClose;
678
678
  i = new Promise((a, c) => {
@@ -681,7 +681,7 @@ class ii {
681
681
  };
682
682
  });
683
683
  } else
684
- return this._changeState(q.INACTIVE), Promise.resolve();
684
+ return this._changeState(Z.INACTIVE), Promise.resolve();
685
685
  return s ? (n = this._stompHandler) == null || n.discardWebsocket() : r && this._disposeStompHandler(), i;
686
686
  }
687
687
  /**
@@ -950,7 +950,7 @@ const me = (t, e) => {
950
950
  li
951
951
  ];
952
952
  function hi(t, e) {
953
- return W(), U("svg", ci, di);
953
+ return U(), $("svg", ci, di);
954
954
  }
955
955
  const fi = /* @__PURE__ */ me(ai, [["render", hi]]), mi = {}, yi = {
956
956
  xmlns: "http://www.w3.org/2000/svg",
@@ -962,7 +962,7 @@ const fi = /* @__PURE__ */ me(ai, [["render", hi]]), mi = {}, yi = {
962
962
  pi
963
963
  ];
964
964
  function wi(t, e) {
965
- return W(), U("svg", yi, gi);
965
+ return U(), $("svg", yi, gi);
966
966
  }
967
967
  const Si = /* @__PURE__ */ me(mi, [["render", wi]]);
968
968
  function ps(t, e) {
@@ -973,25 +973,25 @@ function ps(t, e) {
973
973
  const { toString: bi } = Object.prototype, { getPrototypeOf: an } = Object, bt = /* @__PURE__ */ ((t) => (e) => {
974
974
  const n = bi.call(e);
975
975
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
976
- })(/* @__PURE__ */ Object.create(null)), te = (t) => (t = t.toLowerCase(), (e) => bt(e) === t), kt = (t) => (e) => typeof e === t, { isArray: Me } = Array, qe = kt("undefined");
976
+ })(/* @__PURE__ */ Object.create(null)), ne = (t) => (t = t.toLowerCase(), (e) => bt(e) === t), kt = (t) => (e) => typeof e === t, { isArray: Me } = Array, qe = kt("undefined");
977
977
  function ki(t) {
978
- return t !== null && !qe(t) && t.constructor !== null && !qe(t.constructor) && G(t.constructor.isBuffer) && t.constructor.isBuffer(t);
978
+ return t !== null && !qe(t) && t.constructor !== null && !qe(t.constructor) && Y(t.constructor.isBuffer) && t.constructor.isBuffer(t);
979
979
  }
980
- const gs = te("ArrayBuffer");
980
+ const gs = ne("ArrayBuffer");
981
981
  function Ti(t) {
982
982
  let e;
983
983
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && gs(t.buffer), e;
984
984
  }
985
- const Oi = kt("string"), G = kt("function"), ws = kt("number"), Tt = (t) => t !== null && typeof t == "object", Ei = (t) => t === !0 || t === !1, ut = (t) => {
985
+ const Oi = kt("string"), Y = kt("function"), ws = kt("number"), Tt = (t) => t !== null && typeof t == "object", Ei = (t) => t === !0 || t === !1, ut = (t) => {
986
986
  if (bt(t) !== "object")
987
987
  return !1;
988
988
  const e = an(t);
989
989
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
990
- }, vi = te("Date"), _i = te("File"), Ci = te("Blob"), Ni = te("FileList"), Ii = (t) => Tt(t) && G(t.pipe), xi = (t) => {
990
+ }, vi = ne("Date"), _i = ne("File"), Ci = ne("Blob"), Ni = ne("FileList"), Ii = (t) => Tt(t) && Y(t.pipe), xi = (t) => {
991
991
  let e;
992
- return t && (typeof FormData == "function" && t instanceof FormData || G(t.append) && ((e = bt(t)) === "formdata" || // detect form-data instance
993
- e === "object" && G(t.toString) && t.toString() === "[object FormData]"));
994
- }, Di = te("URLSearchParams"), Mi = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
992
+ return t && (typeof FormData == "function" && t instanceof FormData || Y(t.append) && ((e = bt(t)) === "formdata" || // detect form-data instance
993
+ e === "object" && Y(t.toString) && t.toString() === "[object FormData]"));
994
+ }, Di = ne("URLSearchParams"), Mi = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
995
995
  function je(t, e, { allOwnKeys: n = !1 } = {}) {
996
996
  if (t === null || typeof t > "u")
997
997
  return;
@@ -1026,7 +1026,7 @@ function jt() {
1026
1026
  return e;
1027
1027
  }
1028
1028
  const Ai = (t, e, n, { allOwnKeys: s } = {}) => (je(e, (r, i) => {
1029
- n && G(r) ? t[i] = ps(r, n) : t[i] = r;
1029
+ n && Y(r) ? t[i] = ps(r, n) : t[i] = r;
1030
1030
  }, { allOwnKeys: s }), t), Fi = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ri = (t, e, n, s) => {
1031
1031
  t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
1032
1032
  value: e.prototype
@@ -1067,22 +1067,22 @@ const Ai = (t, e, n, { allOwnKeys: s } = {}) => (je(e, (r, i) => {
1067
1067
  for (; (n = t.exec(e)) !== null; )
1068
1068
  s.push(n);
1069
1069
  return s;
1070
- }, Bi = te("HTMLFormElement"), Pi = (t) => t.toLowerCase().replace(
1070
+ }, Bi = ne("HTMLFormElement"), Pi = (t) => t.toLowerCase().replace(
1071
1071
  /[-_\s]([a-z\d])(\w*)/g,
1072
1072
  function(n, s, r) {
1073
1073
  return s.toUpperCase() + r;
1074
1074
  }
1075
- ), vn = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), zi = te("RegExp"), Ts = (t, e) => {
1075
+ ), vn = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), zi = ne("RegExp"), Ts = (t, e) => {
1076
1076
  const n = Object.getOwnPropertyDescriptors(t), s = {};
1077
1077
  je(n, (r, i) => {
1078
1078
  e(r, i, t) !== !1 && (s[i] = r);
1079
1079
  }), Object.defineProperties(t, s);
1080
1080
  }, qi = (t) => {
1081
1081
  Ts(t, (e, n) => {
1082
- if (G(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
1082
+ if (Y(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
1083
1083
  return !1;
1084
1084
  const s = t[n];
1085
- if (G(s)) {
1085
+ if (Y(s)) {
1086
1086
  if (e.enumerable = !1, "writable" in e) {
1087
1087
  e.writable = !1;
1088
1088
  return;
@@ -1112,7 +1112,7 @@ const Ai = (t, e, n, { allOwnKeys: s } = {}) => (je(e, (r, i) => {
1112
1112
  return n;
1113
1113
  };
1114
1114
  function Ji(t) {
1115
- return !!(t && G(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
1115
+ return !!(t && Y(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
1116
1116
  }
1117
1117
  const Ki = (t) => {
1118
1118
  const e = new Array(10), n = (s, r) => {
@@ -1131,7 +1131,7 @@ const Ki = (t) => {
1131
1131
  return s;
1132
1132
  };
1133
1133
  return n(t, 0);
1134
- }, Qi = te("AsyncFunction"), Xi = (t) => t && (Tt(t) || G(t)) && G(t.then) && G(t.catch), d = {
1134
+ }, Qi = ne("AsyncFunction"), Xi = (t) => t && (Tt(t) || Y(t)) && Y(t.then) && Y(t.catch), d = {
1135
1135
  isArray: Me,
1136
1136
  isArrayBuffer: gs,
1137
1137
  isBuffer: ki,
@@ -1147,7 +1147,7 @@ const Ki = (t) => {
1147
1147
  isFile: _i,
1148
1148
  isBlob: Ci,
1149
1149
  isRegExp: zi,
1150
- isFunction: G,
1150
+ isFunction: Y,
1151
1151
  isStream: Ii,
1152
1152
  isURLSearchParams: Di,
1153
1153
  isTypedArray: Ui,
@@ -1160,7 +1160,7 @@ const Ki = (t) => {
1160
1160
  inherits: Ri,
1161
1161
  toFlatObject: Vi,
1162
1162
  kindOf: bt,
1163
- kindOfTest: te,
1163
+ kindOfTest: ne,
1164
1164
  endsWith: Li,
1165
1165
  toArray: Wi,
1166
1166
  forEachEntry: $i,
@@ -1280,11 +1280,11 @@ function Ot(t, e, n) {
1280
1280
  if (d.endsWith(p, "{}"))
1281
1281
  p = s ? p : p.slice(0, -2), f = JSON.stringify(f);
1282
1282
  else if (d.isArray(f) && to(f) || (d.isFileList(f) || d.endsWith(p, "[]")) && (N = d.toArray(f)))
1283
- return p = _s(p), N.forEach(function(ne, C) {
1284
- !(d.isUndefined(ne) || ne === null) && e.append(
1283
+ return p = _s(p), N.forEach(function(se, C) {
1284
+ !(d.isUndefined(se) || se === null) && e.append(
1285
1285
  // eslint-disable-next-line no-nested-ternary
1286
1286
  o === !0 ? Cn([p], C, i) : o === null ? p : p + "[]",
1287
- u(ne)
1287
+ u(se)
1288
1288
  );
1289
1289
  }), !1;
1290
1290
  }
@@ -1419,7 +1419,7 @@ const Is = {
1419
1419
  let t;
1420
1420
  return typeof navigator < "u" && ((t = navigator.product) === "ReactNative" || t === "NativeScript" || t === "NS") ? !1 : typeof window < "u" && typeof document < "u";
1421
1421
  })(), co = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1422
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ee = {
1422
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", te = {
1423
1423
  isBrowser: !0,
1424
1424
  classes: {
1425
1425
  URLSearchParams: ro,
@@ -1431,9 +1431,9 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ee
1431
1431
  protocols: ["http", "https", "file", "blob", "url", "data"]
1432
1432
  };
1433
1433
  function uo(t, e) {
1434
- return Ot(t, new ee.classes.URLSearchParams(), Object.assign({
1434
+ return Ot(t, new te.classes.URLSearchParams(), Object.assign({
1435
1435
  visitor: function(n, s, r, i) {
1436
- return ee.isNode && d.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
1436
+ return te.isNode && d.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
1437
1437
  }
1438
1438
  }, e));
1439
1439
  }
@@ -1527,8 +1527,8 @@ const Ae = {
1527
1527
  maxContentLength: -1,
1528
1528
  maxBodyLength: -1,
1529
1529
  env: {
1530
- FormData: ee.classes.FormData,
1531
- Blob: ee.classes.Blob
1530
+ FormData: te.classes.FormData,
1531
+ Blob: te.classes.Blob
1532
1532
  },
1533
1533
  validateStatus: function(e) {
1534
1534
  return e >= 200 && e < 300;
@@ -1609,7 +1609,7 @@ function bo(t, e) {
1609
1609
  });
1610
1610
  });
1611
1611
  }
1612
- class Y {
1612
+ class J {
1613
1613
  constructor(e) {
1614
1614
  e && this.set(e);
1615
1615
  }
@@ -1718,11 +1718,11 @@ class Y {
1718
1718
  return d.isArray(e) ? e.forEach(i) : i(e), this;
1719
1719
  }
1720
1720
  }
1721
- Y.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1722
- d.freezeMethods(Y.prototype);
1723
- d.freezeMethods(Y);
1721
+ J.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1722
+ d.freezeMethods(J.prototype);
1723
+ d.freezeMethods(J);
1724
1724
  function Ft(t, e) {
1725
- const n = this || Ae, s = e || n, r = Y.from(s.headers);
1725
+ const n = this || Ae, s = e || n, r = J.from(s.headers);
1726
1726
  let i = s.data;
1727
1727
  return d.forEach(t, function(a) {
1728
1728
  i = a.call(n, i, r.normalize(), e ? e.status : void 0);
@@ -1747,7 +1747,7 @@ function ko(t, e, n) {
1747
1747
  n
1748
1748
  ));
1749
1749
  }
1750
- const To = ee.isStandardBrowserEnv ? (
1750
+ const To = te.isStandardBrowserEnv ? (
1751
1751
  // Standard browser envs support document.cookie
1752
1752
  /* @__PURE__ */ function() {
1753
1753
  return {
@@ -1787,7 +1787,7 @@ function Eo(t, e) {
1787
1787
  function Ms(t, e) {
1788
1788
  return t && !Oo(e) ? Eo(t, e) : e;
1789
1789
  }
1790
- const vo = ee.isStandardBrowserEnv ? (
1790
+ const vo = te.isStandardBrowserEnv ? (
1791
1791
  // Standard browser envs have full support of the APIs needed to test
1792
1792
  // whether the request URL is of the same origin as current location.
1793
1793
  function() {
@@ -1860,12 +1860,12 @@ function Dn(t, e) {
1860
1860
  const No = typeof XMLHttpRequest < "u", Io = No && function(t) {
1861
1861
  return new Promise(function(n, s) {
1862
1862
  let r = t.data;
1863
- const i = Y.from(t.headers).normalize(), o = t.responseType;
1863
+ const i = J.from(t.headers).normalize(), o = t.responseType;
1864
1864
  let a;
1865
1865
  function c() {
1866
1866
  t.cancelToken && t.cancelToken.unsubscribe(a), t.signal && t.signal.removeEventListener("abort", a);
1867
1867
  }
1868
- d.isFormData(r) && (ee.isStandardBrowserEnv || ee.isStandardBrowserWebWorkerEnv ? i.setContentType(!1) : i.setContentType("multipart/form-data;", !1));
1868
+ d.isFormData(r) && (te.isStandardBrowserEnv || te.isStandardBrowserWebWorkerEnv ? i.setContentType(!1) : i.setContentType("multipart/form-data;", !1));
1869
1869
  let u = new XMLHttpRequest();
1870
1870
  if (t.auth) {
1871
1871
  const m = t.auth.username || "", f = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
@@ -1876,7 +1876,7 @@ const No = typeof XMLHttpRequest < "u", Io = No && function(t) {
1876
1876
  function h() {
1877
1877
  if (!u)
1878
1878
  return;
1879
- const m = Y.from(
1879
+ const m = J.from(
1880
1880
  "getAllResponseHeaders" in u && u.getAllResponseHeaders()
1881
1881
  ), p = {
1882
1882
  data: !o || o === "text" || o === "json" ? u.responseText : u.response,
@@ -1907,7 +1907,7 @@ const No = typeof XMLHttpRequest < "u", Io = No && function(t) {
1907
1907
  t,
1908
1908
  u
1909
1909
  )), u = null;
1910
- }, ee.isStandardBrowserEnv) {
1910
+ }, te.isStandardBrowserEnv) {
1911
1911
  const m = (t.withCredentials || vo(l)) && t.xsrfCookieName && To.read(t.xsrfCookieName);
1912
1912
  m && i.set(t.xsrfHeaderName, m);
1913
1913
  }
@@ -1917,7 +1917,7 @@ const No = typeof XMLHttpRequest < "u", Io = No && function(t) {
1917
1917
  u && (s(!m || m.type ? new Ge(null, t, u) : m), u.abort(), u = null);
1918
1918
  }, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
1919
1919
  const S = _o(l);
1920
- if (S && ee.protocols.indexOf(S) === -1) {
1920
+ if (S && te.protocols.indexOf(S) === -1) {
1921
1921
  s(new k("Unsupported protocol " + S + ":", k.ERR_BAD_REQUEST, t));
1922
1922
  return;
1923
1923
  }
@@ -1961,7 +1961,7 @@ function Rt(t) {
1961
1961
  throw new Ge(null, t);
1962
1962
  }
1963
1963
  function Mn(t) {
1964
- return Rt(t), t.headers = Y.from(t.headers), t.data = Ft.call(
1964
+ return Rt(t), t.headers = J.from(t.headers), t.data = Ft.call(
1965
1965
  t,
1966
1966
  t.transformRequest
1967
1967
  ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), xo.getAdapter(t.adapter || Ae.adapter)(t).then(function(s) {
@@ -1969,16 +1969,16 @@ function Mn(t) {
1969
1969
  t,
1970
1970
  t.transformResponse,
1971
1971
  s
1972
- ), s.headers = Y.from(s.headers), s;
1972
+ ), s.headers = J.from(s.headers), s;
1973
1973
  }, function(s) {
1974
1974
  return Ds(s) || (Rt(t), s && s.response && (s.response.data = Ft.call(
1975
1975
  t,
1976
1976
  t.transformResponse,
1977
1977
  s.response
1978
- ), s.response.headers = Y.from(s.response.headers))), Promise.reject(s);
1978
+ ), s.response.headers = J.from(s.response.headers))), Promise.reject(s);
1979
1979
  });
1980
1980
  }
1981
- const An = (t) => t instanceof Y ? t.toJSON() : t;
1981
+ const An = (t) => t instanceof J ? t.toJSON() : t;
1982
1982
  function xe(t, e) {
1983
1983
  e = e || {};
1984
1984
  const n = {};
@@ -2125,7 +2125,7 @@ class ke {
2125
2125
  (f) => {
2126
2126
  delete i[f];
2127
2127
  }
2128
- ), n.headers = Y.concat(o, i);
2128
+ ), n.headers = J.concat(o, i);
2129
2129
  const a = [];
2130
2130
  let c = !0;
2131
2131
  this.interceptors.request.forEach(function(p) {
@@ -2341,25 +2341,25 @@ function Fs(t) {
2341
2341
  return Fs(xe(t, r));
2342
2342
  }, n;
2343
2343
  }
2344
- const F = Fs(Ae);
2345
- F.Axios = ke;
2346
- F.CanceledError = Ge;
2347
- F.CancelToken = ln;
2348
- F.isCancel = Ds;
2349
- F.VERSION = As;
2350
- F.toFormData = Ot;
2351
- F.AxiosError = k;
2352
- F.Cancel = F.CanceledError;
2353
- F.all = function(e) {
2344
+ const A = Fs(Ae);
2345
+ A.Axios = ke;
2346
+ A.CanceledError = Ge;
2347
+ A.CancelToken = ln;
2348
+ A.isCancel = Ds;
2349
+ A.VERSION = As;
2350
+ A.toFormData = Ot;
2351
+ A.AxiosError = k;
2352
+ A.Cancel = A.CanceledError;
2353
+ A.all = function(e) {
2354
2354
  return Promise.all(e);
2355
2355
  };
2356
- F.spread = Mo;
2357
- F.isAxiosError = Ao;
2358
- F.mergeConfig = xe;
2359
- F.AxiosHeaders = Y;
2360
- F.formToJSON = (t) => xs(d.isHTMLForm(t) ? new FormData(t) : t);
2361
- F.HttpStatusCode = Jt;
2362
- F.default = F;
2356
+ A.spread = Mo;
2357
+ A.isAxiosError = Ao;
2358
+ A.mergeConfig = xe;
2359
+ A.AxiosHeaders = J;
2360
+ A.formToJSON = (t) => xs(d.isHTMLForm(t) ? new FormData(t) : t);
2361
+ A.HttpStatusCode = Jt;
2362
+ A.default = A;
2363
2363
  const Et = async function(t) {
2364
2364
  const e = t, n = window.VITE_BACKEND_URL ? window.VITE_BACKEND_URL : "https://chatadmin-gw.dev.mp.gob.bo", s = {
2365
2365
  method: e.method,
@@ -2371,7 +2371,7 @@ const Et = async function(t) {
2371
2371
  },
2372
2372
  data: e.data
2373
2373
  };
2374
- return await F(s).then(async function(r) {
2374
+ return await A(s).then(async function(r) {
2375
2375
  return await r.data;
2376
2376
  }).catch(async function(r) {
2377
2377
  console.error(r);
@@ -2447,7 +2447,7 @@ function Lt(t) {
2447
2447
  }
2448
2448
  const Uo = Lo ? window : void 0;
2449
2449
  function $o() {
2450
- const t = B(!1), e = $r();
2450
+ const t = P(!1), e = $r();
2451
2451
  return e && ys(() => {
2452
2452
  t.value = !0;
2453
2453
  }, e), t;
@@ -2468,7 +2468,7 @@ function Bo(t, e, n = {}) {
2468
2468
  return (Array.isArray(f) ? f : [f]).map(Lt).filter(Wo);
2469
2469
  });
2470
2470
  let l = Vt;
2471
- const h = B(a), S = c.value ? sn(
2471
+ const h = P(a), S = c.value ? sn(
2472
2472
  () => [u.value, Lt(s), h.value],
2473
2473
  ([f, p]) => {
2474
2474
  if (l(), !h.value || !f.length)
@@ -2532,28 +2532,28 @@ class ce extends Te {
2532
2532
  super("Zone is an abstract class");
2533
2533
  }
2534
2534
  }
2535
- const y = "numeric", X = "short", P = "long", pt = {
2535
+ const y = "numeric", ee = "short", z = "long", pt = {
2536
2536
  year: y,
2537
2537
  month: y,
2538
2538
  day: y
2539
2539
  }, Ls = {
2540
2540
  year: y,
2541
- month: X,
2541
+ month: ee,
2542
2542
  day: y
2543
2543
  }, Zo = {
2544
2544
  year: y,
2545
- month: X,
2545
+ month: ee,
2546
2546
  day: y,
2547
- weekday: X
2547
+ weekday: ee
2548
2548
  }, Ws = {
2549
2549
  year: y,
2550
- month: P,
2550
+ month: z,
2551
2551
  day: y
2552
2552
  }, Us = {
2553
2553
  year: y,
2554
- month: P,
2554
+ month: z,
2555
2555
  day: y,
2556
- weekday: P
2556
+ weekday: z
2557
2557
  }, $s = {
2558
2558
  hour: y,
2559
2559
  minute: y
@@ -2565,12 +2565,12 @@ const y = "numeric", X = "short", P = "long", pt = {
2565
2565
  hour: y,
2566
2566
  minute: y,
2567
2567
  second: y,
2568
- timeZoneName: X
2568
+ timeZoneName: ee
2569
2569
  }, Ps = {
2570
2570
  hour: y,
2571
2571
  minute: y,
2572
2572
  second: y,
2573
- timeZoneName: P
2573
+ timeZoneName: z
2574
2574
  }, zs = {
2575
2575
  hour: y,
2576
2576
  minute: y,
@@ -2585,13 +2585,13 @@ const y = "numeric", X = "short", P = "long", pt = {
2585
2585
  minute: y,
2586
2586
  second: y,
2587
2587
  hourCycle: "h23",
2588
- timeZoneName: X
2588
+ timeZoneName: ee
2589
2589
  }, js = {
2590
2590
  hour: y,
2591
2591
  minute: y,
2592
2592
  second: y,
2593
2593
  hourCycle: "h23",
2594
- timeZoneName: P
2594
+ timeZoneName: z
2595
2595
  }, Gs = {
2596
2596
  year: y,
2597
2597
  month: y,
@@ -2607,56 +2607,56 @@ const y = "numeric", X = "short", P = "long", pt = {
2607
2607
  second: y
2608
2608
  }, Js = {
2609
2609
  year: y,
2610
- month: X,
2610
+ month: ee,
2611
2611
  day: y,
2612
2612
  hour: y,
2613
2613
  minute: y
2614
2614
  }, Ks = {
2615
2615
  year: y,
2616
- month: X,
2616
+ month: ee,
2617
2617
  day: y,
2618
2618
  hour: y,
2619
2619
  minute: y,
2620
2620
  second: y
2621
2621
  }, jo = {
2622
2622
  year: y,
2623
- month: X,
2623
+ month: ee,
2624
2624
  day: y,
2625
- weekday: X,
2625
+ weekday: ee,
2626
2626
  hour: y,
2627
2627
  minute: y
2628
2628
  }, Qs = {
2629
2629
  year: y,
2630
- month: P,
2630
+ month: z,
2631
2631
  day: y,
2632
2632
  hour: y,
2633
2633
  minute: y,
2634
- timeZoneName: X
2634
+ timeZoneName: ee
2635
2635
  }, Xs = {
2636
2636
  year: y,
2637
- month: P,
2637
+ month: z,
2638
2638
  day: y,
2639
2639
  hour: y,
2640
2640
  minute: y,
2641
2641
  second: y,
2642
- timeZoneName: X
2642
+ timeZoneName: ee
2643
2643
  }, er = {
2644
2644
  year: y,
2645
- month: P,
2645
+ month: z,
2646
2646
  day: y,
2647
- weekday: P,
2647
+ weekday: z,
2648
2648
  hour: y,
2649
2649
  minute: y,
2650
- timeZoneName: P
2650
+ timeZoneName: z
2651
2651
  }, tr = {
2652
2652
  year: y,
2653
- month: P,
2653
+ month: z,
2654
2654
  day: y,
2655
- weekday: P,
2655
+ weekday: z,
2656
2656
  hour: y,
2657
2657
  minute: y,
2658
2658
  second: y,
2659
- timeZoneName: P
2659
+ timeZoneName: z
2660
2660
  };
2661
2661
  class Ye {
2662
2662
  /**
@@ -3053,7 +3053,7 @@ class ca {
3053
3053
  return this.inf.format(n);
3054
3054
  } else {
3055
3055
  const n = this.floor ? Math.floor(e) : yn(e, 3);
3056
- return A(n, this.padTo);
3056
+ return M(n, this.padTo);
3057
3057
  }
3058
3058
  }
3059
3059
  }
@@ -3232,13 +3232,13 @@ class E {
3232
3232
  }
3233
3233
  }
3234
3234
  let Ut = null;
3235
- class H extends Ye {
3235
+ class B extends Ye {
3236
3236
  /**
3237
3237
  * Get a singleton instance of UTC
3238
3238
  * @return {FixedOffsetZone}
3239
3239
  */
3240
3240
  static get utcInstance() {
3241
- return Ut === null && (Ut = new H(0)), Ut;
3241
+ return Ut === null && (Ut = new B(0)), Ut;
3242
3242
  }
3243
3243
  /**
3244
3244
  * Get an instance with a specified offset
@@ -3246,7 +3246,7 @@ class H extends Ye {
3246
3246
  * @return {FixedOffsetZone}
3247
3247
  */
3248
3248
  static instance(e) {
3249
- return e === 0 ? H.utcInstance : new H(e);
3249
+ return e === 0 ? B.utcInstance : new B(e);
3250
3250
  }
3251
3251
  /**
3252
3252
  * Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"
@@ -3260,7 +3260,7 @@ class H extends Ye {
3260
3260
  if (e) {
3261
3261
  const n = e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
3262
3262
  if (n)
3263
- return new H(Nt(n[1], n[2]));
3263
+ return new B(Nt(n[1], n[2]));
3264
3264
  }
3265
3265
  return null;
3266
3266
  }
@@ -3395,8 +3395,8 @@ function he(t, e) {
3395
3395
  return t;
3396
3396
  if (wa(t)) {
3397
3397
  const n = t.toLowerCase();
3398
- return n === "default" ? e : n === "local" || n === "system" ? vt.instance : n === "utc" || n === "gmt" ? H.utcInstance : H.parseSpecifier(n) || ie.create(t);
3399
- } else return fe(t) ? H.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new ha(t);
3398
+ return n === "default" ? e : n === "local" || n === "system" ? vt.instance : n === "utc" || n === "gmt" ? B.utcInstance : B.parseSpecifier(n) || ie.create(t);
3399
+ } else return fe(t) ? B.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new ha(t);
3400
3400
  }
3401
3401
  const dn = {
3402
3402
  arab: "[٠-٩]",
@@ -3463,7 +3463,7 @@ let _e = {};
3463
3463
  function ya() {
3464
3464
  _e = {};
3465
3465
  }
3466
- function J({ numberingSystem: t }, e = "") {
3466
+ function K({ numberingSystem: t }, e = "") {
3467
3467
  const n = t || "latn";
3468
3468
  return _e[n] || (_e[n] = {}), _e[n][e] || (_e[n][e] = new RegExp(`${dn[n]}${e}`)), _e[n][e];
3469
3469
  }
@@ -3607,7 +3607,7 @@ class D {
3607
3607
  E.resetCache(), ie.resetCache(), g.resetCache(), ya();
3608
3608
  }
3609
3609
  }
3610
- class Q {
3610
+ class X {
3611
3611
  constructor(e, n) {
3612
3612
  this.reason = e, this.explanation = n;
3613
3613
  }
@@ -3616,8 +3616,8 @@ class Q {
3616
3616
  }
3617
3617
  }
3618
3618
  const nr = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], sr = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];
3619
- function Z(t, e) {
3620
- return new Q(
3619
+ function j(t, e) {
3620
+ return new X(
3621
3621
  "unit out of range",
3622
3622
  `you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`
3623
3623
  );
@@ -3672,24 +3672,24 @@ function Jn(t, e) {
3672
3672
  return { minDaysInFirstWeek: 4, startOfWeek: 1 };
3673
3673
  }
3674
3674
  function pa(t, e = 4, n = 1) {
3675
- const s = _t(t.weekYear), r = j(
3675
+ const s = _t(t.weekYear), r = G(
3676
3676
  t.weekNumber,
3677
3677
  1,
3678
3678
  Ze(t.weekYear, e, n)
3679
- ), i = j(t.weekday, 1, 7);
3680
- return s ? r ? i ? !1 : Z("weekday", t.weekday) : Z("week", t.weekNumber) : Z("weekYear", t.weekYear);
3679
+ ), i = G(t.weekday, 1, 7);
3680
+ return s ? r ? i ? !1 : j("weekday", t.weekday) : j("week", t.weekNumber) : j("weekYear", t.weekYear);
3681
3681
  }
3682
3682
  function ga(t) {
3683
- const e = _t(t.year), n = j(t.ordinal, 1, Ne(t.year));
3684
- return e ? n ? !1 : Z("ordinal", t.ordinal) : Z("year", t.year);
3683
+ const e = _t(t.year), n = G(t.ordinal, 1, Ne(t.year));
3684
+ return e ? n ? !1 : j("ordinal", t.ordinal) : j("year", t.year);
3685
3685
  }
3686
3686
  function or(t) {
3687
- const e = _t(t.year), n = j(t.month, 1, 12), s = j(t.day, 1, wt(t.year, t.month));
3688
- return e ? n ? s ? !1 : Z("day", t.day) : Z("month", t.month) : Z("year", t.year);
3687
+ const e = _t(t.year), n = G(t.month, 1, 12), s = G(t.day, 1, wt(t.year, t.month));
3688
+ return e ? n ? s ? !1 : j("day", t.day) : j("month", t.month) : j("year", t.year);
3689
3689
  }
3690
3690
  function ar(t) {
3691
- const { hour: e, minute: n, second: s, millisecond: r } = t, i = j(e, 0, 23) || e === 24 && n === 0 && s === 0 && r === 0, o = j(n, 0, 59), a = j(s, 0, 59), c = j(r, 0, 999);
3692
- return i ? o ? a ? c ? !1 : Z("millisecond", r) : Z("second", s) : Z("minute", n) : Z("hour", e);
3691
+ const { hour: e, minute: n, second: s, millisecond: r } = t, i = G(e, 0, 23) || e === 24 && n === 0 && s === 0 && r === 0, o = G(n, 0, 59), a = G(s, 0, 59), c = G(r, 0, 999);
3692
+ return i ? o ? a ? c ? !1 : j("millisecond", r) : j("second", s) : j("minute", n) : j("hour", e);
3693
3693
  }
3694
3694
  function w(t) {
3695
3695
  return typeof t > "u";
@@ -3741,7 +3741,7 @@ function tn(t) {
3741
3741
  return null;
3742
3742
  if (typeof t != "object")
3743
3743
  throw new V("Week settings must be an object");
3744
- if (!j(t.firstDay, 1, 7) || !j(t.minimalDays, 1, 7) || !Array.isArray(t.weekend) || t.weekend.some((e) => !j(e, 1, 7)))
3744
+ if (!G(t.firstDay, 1, 7) || !G(t.minimalDays, 1, 7) || !Array.isArray(t.weekend) || t.weekend.some((e) => !G(e, 1, 7)))
3745
3745
  throw new V("Invalid week settings");
3746
3746
  return {
3747
3747
  firstDay: t.firstDay,
@@ -3749,13 +3749,13 @@ function tn(t) {
3749
3749
  weekend: Array.from(t.weekend)
3750
3750
  };
3751
3751
  }
3752
- function j(t, e, n) {
3752
+ function G(t, e, n) {
3753
3753
  return _t(t) && t >= e && t <= n;
3754
3754
  }
3755
3755
  function Ta(t, e) {
3756
3756
  return t - e * Math.floor(t / e);
3757
3757
  }
3758
- function A(t, e = 2) {
3758
+ function M(t, e = 2) {
3759
3759
  const n = t < 0;
3760
3760
  let s;
3761
3761
  return n ? s = "-" + ("" + -t).padStart(e, "0") : s = ("" + t).padStart(e, "0"), s;
@@ -3849,11 +3849,11 @@ function ze(t, e) {
3849
3849
  const n = Math.trunc(Math.abs(t / 60)), s = Math.trunc(Math.abs(t % 60)), r = t >= 0 ? "+" : "-";
3850
3850
  switch (e) {
3851
3851
  case "short":
3852
- return `${r}${A(n, 2)}:${A(s, 2)}`;
3852
+ return `${r}${M(n, 2)}:${M(s, 2)}`;
3853
3853
  case "narrow":
3854
3854
  return `${r}${n}${s > 0 ? `:${s}` : ""}`;
3855
3855
  case "techie":
3856
- return `${r}${A(n, 2)}${A(s, 2)}`;
3856
+ return `${r}${M(n, 2)}${M(s, 2)}`;
3857
3857
  default:
3858
3858
  throw new RangeError(`Value format ${e} is out of range for property format`);
3859
3859
  }
@@ -4044,7 +4044,7 @@ class L {
4044
4044
  }
4045
4045
  num(e, n = 0) {
4046
4046
  if (this.opts.forceSimple)
4047
- return A(e, n);
4047
+ return M(e, n);
4048
4048
  const s = { ...this.opts };
4049
4049
  return n > 0 && (s.padTo = n), this.loc.numberFormatter(s).format(e);
4050
4050
  }
@@ -4272,7 +4272,7 @@ function Le(t, e) {
4272
4272
  }, null, e + 4];
4273
4273
  }
4274
4274
  function Ke(t, e) {
4275
- const n = !t[e] && !t[e + 1], s = Nt(t[e + 1], t[e + 2]), r = n ? null : H.instance(s);
4275
+ const n = !t[e] && !t[e + 1], s = Nt(t[e + 1], t[e + 2]), r = n ? null : B.instance(s);
4276
4276
  return [{}, r, e + 3];
4277
4277
  }
4278
4278
  function Qe(t, e) {
@@ -4333,7 +4333,7 @@ function Ya(t) {
4333
4333
  h
4334
4334
  ] = t, S = wn(e, r, s, n, i, o, a);
4335
4335
  let m;
4336
- return c ? m = ja[c] : u ? m = 0 : m = Nt(l, h), [S, new H(m)];
4336
+ return c ? m = ja[c] : u ? m = 0 : m = Nt(l, h), [S, new B(m)];
4337
4337
  }
4338
4338
  function Ja(t) {
4339
4339
  return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
@@ -4341,11 +4341,11 @@ function Ja(t) {
4341
4341
  const Ka = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, Qa = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, Xa = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
4342
4342
  function es(t) {
4343
4343
  const [, e, n, s, r, i, o, a] = t;
4344
- return [wn(e, r, s, n, i, o, a), H.utcInstance];
4344
+ return [wn(e, r, s, n, i, o, a), B.utcInstance];
4345
4345
  }
4346
4346
  function ec(t) {
4347
4347
  const [, e, n, s, r, i, o, a] = t;
4348
- return [wn(e, a, n, s, r, i, o), H.utcInstance];
4348
+ return [wn(e, a, n, s, r, i, o), B.utcInstance];
4349
4349
  }
4350
4350
  const tc = Fe(Va, gn), nc = Fe(La, gn), sc = Fe(Wa, gn), rc = Fe(Tr), Er = Re(
4351
4351
  Pa,
@@ -4452,25 +4452,25 @@ const ts = "Invalid Duration", vr = {
4452
4452
  milliseconds: 30 * 24 * 60 * 60 * 1e3
4453
4453
  },
4454
4454
  ...vr
4455
- }, z = 146097 / 400, Oe = 146097 / 4800, Sc = {
4455
+ }, q = 146097 / 400, Oe = 146097 / 4800, Sc = {
4456
4456
  years: {
4457
4457
  quarters: 4,
4458
4458
  months: 12,
4459
- weeks: z / 7,
4460
- days: z,
4461
- hours: z * 24,
4462
- minutes: z * 24 * 60,
4463
- seconds: z * 24 * 60 * 60,
4464
- milliseconds: z * 24 * 60 * 60 * 1e3
4459
+ weeks: q / 7,
4460
+ days: q,
4461
+ hours: q * 24,
4462
+ minutes: q * 24 * 60,
4463
+ seconds: q * 24 * 60 * 60,
4464
+ milliseconds: q * 24 * 60 * 60 * 1e3
4465
4465
  },
4466
4466
  quarters: {
4467
4467
  months: 3,
4468
- weeks: z / 28,
4469
- days: z / 4,
4470
- hours: z * 24 / 4,
4471
- minutes: z * 24 * 60 / 4,
4472
- seconds: z * 24 * 60 * 60 / 4,
4473
- milliseconds: z * 24 * 60 * 60 * 1e3 / 4
4468
+ weeks: q / 28,
4469
+ days: q / 4,
4470
+ hours: q * 24 / 4,
4471
+ minutes: q * 24 * 60 / 4,
4472
+ seconds: q * 24 * 60 * 60 / 4,
4473
+ milliseconds: q * 24 * 60 * 60 * 1e3 / 4
4474
4474
  },
4475
4475
  months: {
4476
4476
  weeks: Oe / 7,
@@ -4654,7 +4654,7 @@ class b {
4654
4654
  static invalid(e, n = null) {
4655
4655
  if (!e)
4656
4656
  throw new V("need to specify a reason the Duration is invalid");
4657
- const s = e instanceof Q ? e : new Q(e, n);
4657
+ const s = e instanceof X ? e : new X(e, n);
4658
4658
  if (D.throwOnInvalid)
4659
4659
  throw new qo(s);
4660
4660
  return new b({ invalid: s });
@@ -5136,7 +5136,7 @@ class x {
5136
5136
  static invalid(e, n = null) {
5137
5137
  if (!e)
5138
5138
  throw new V("need to specify a reason the Interval is invalid");
5139
- const s = e instanceof Q ? e : new Q(e, n);
5139
+ const s = e instanceof X ? e : new X(e, n);
5140
5140
  if (D.throwOnInvalid)
5141
5141
  throw new zo(s);
5142
5142
  return new x({ invalid: s });
@@ -5773,7 +5773,7 @@ function Ec(t, e, n, s) {
5773
5773
  return u.length > 0 ? b.fromMillis(c, s).shiftTo(...u).plus(l) : l;
5774
5774
  }
5775
5775
  const vc = "missing Intl.DateTimeFormat.formatToParts support";
5776
- function T(t, e = (n) => n) {
5776
+ function O(t, e = (n) => n) {
5777
5777
  return { regex: t, deser: ([n]) => e(ma(n)) };
5778
5778
  }
5779
5779
  const _c = " ", Cr = `[ ${_c}]`, Nr = new RegExp(Cr, "g");
@@ -5783,7 +5783,7 @@ function Cc(t) {
5783
5783
  function rs(t) {
5784
5784
  return t.replace(/\./g, "").replace(Nr, " ").toLowerCase();
5785
5785
  }
5786
- function K(t, e) {
5786
+ function Q(t, e) {
5787
5787
  return t === null ? null : {
5788
5788
  regex: RegExp(t.map(Cc).join("|")),
5789
5789
  deser: ([n]) => t.findIndex((s) => rs(n) === rs(s)) + e
@@ -5799,99 +5799,99 @@ function Nc(t) {
5799
5799
  return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
5800
5800
  }
5801
5801
  function Ic(t, e) {
5802
- const n = J(e), s = J(e, "{2}"), r = J(e, "{3}"), i = J(e, "{4}"), o = J(e, "{6}"), a = J(e, "{1,2}"), c = J(e, "{1,3}"), u = J(e, "{1,6}"), l = J(e, "{1,9}"), h = J(e, "{2,4}"), S = J(e, "{4,6}"), m = (v) => ({ regex: RegExp(Nc(v.val)), deser: ([N]) => N, literal: !0 }), p = ((v) => {
5802
+ const n = K(e), s = K(e, "{2}"), r = K(e, "{3}"), i = K(e, "{4}"), o = K(e, "{6}"), a = K(e, "{1,2}"), c = K(e, "{1,3}"), u = K(e, "{1,6}"), l = K(e, "{1,9}"), h = K(e, "{2,4}"), S = K(e, "{4,6}"), m = (v) => ({ regex: RegExp(Nc(v.val)), deser: ([N]) => N, literal: !0 }), p = ((v) => {
5803
5803
  if (t.literal)
5804
5804
  return m(v);
5805
5805
  switch (v.val) {
5806
5806
  case "G":
5807
- return K(e.eras("short"), 0);
5807
+ return Q(e.eras("short"), 0);
5808
5808
  case "GG":
5809
- return K(e.eras("long"), 0);
5809
+ return Q(e.eras("long"), 0);
5810
5810
  case "y":
5811
- return T(u);
5811
+ return O(u);
5812
5812
  case "yy":
5813
- return T(h, nn);
5813
+ return O(h, nn);
5814
5814
  case "yyyy":
5815
- return T(i);
5815
+ return O(i);
5816
5816
  case "yyyyy":
5817
- return T(S);
5817
+ return O(S);
5818
5818
  case "yyyyyy":
5819
- return T(o);
5819
+ return O(o);
5820
5820
  case "M":
5821
- return T(a);
5821
+ return O(a);
5822
5822
  case "MM":
5823
- return T(s);
5823
+ return O(s);
5824
5824
  case "MMM":
5825
- return K(e.months("short", !0), 1);
5825
+ return Q(e.months("short", !0), 1);
5826
5826
  case "MMMM":
5827
- return K(e.months("long", !0), 1);
5827
+ return Q(e.months("long", !0), 1);
5828
5828
  case "L":
5829
- return T(a);
5829
+ return O(a);
5830
5830
  case "LL":
5831
- return T(s);
5831
+ return O(s);
5832
5832
  case "LLL":
5833
- return K(e.months("short", !1), 1);
5833
+ return Q(e.months("short", !1), 1);
5834
5834
  case "LLLL":
5835
- return K(e.months("long", !1), 1);
5835
+ return Q(e.months("long", !1), 1);
5836
5836
  case "d":
5837
- return T(a);
5837
+ return O(a);
5838
5838
  case "dd":
5839
- return T(s);
5839
+ return O(s);
5840
5840
  case "o":
5841
- return T(c);
5841
+ return O(c);
5842
5842
  case "ooo":
5843
- return T(r);
5843
+ return O(r);
5844
5844
  case "HH":
5845
- return T(s);
5845
+ return O(s);
5846
5846
  case "H":
5847
- return T(a);
5847
+ return O(a);
5848
5848
  case "hh":
5849
- return T(s);
5849
+ return O(s);
5850
5850
  case "h":
5851
- return T(a);
5851
+ return O(a);
5852
5852
  case "mm":
5853
- return T(s);
5853
+ return O(s);
5854
5854
  case "m":
5855
- return T(a);
5855
+ return O(a);
5856
5856
  case "q":
5857
- return T(a);
5857
+ return O(a);
5858
5858
  case "qq":
5859
- return T(s);
5859
+ return O(s);
5860
5860
  case "s":
5861
- return T(a);
5861
+ return O(a);
5862
5862
  case "ss":
5863
- return T(s);
5863
+ return O(s);
5864
5864
  case "S":
5865
- return T(c);
5865
+ return O(c);
5866
5866
  case "SSS":
5867
- return T(r);
5867
+ return O(r);
5868
5868
  case "u":
5869
5869
  return it(l);
5870
5870
  case "uu":
5871
5871
  return it(a);
5872
5872
  case "uuu":
5873
- return T(n);
5873
+ return O(n);
5874
5874
  case "a":
5875
- return K(e.meridiems(), 0);
5875
+ return Q(e.meridiems(), 0);
5876
5876
  case "kkkk":
5877
- return T(i);
5877
+ return O(i);
5878
5878
  case "kk":
5879
- return T(h, nn);
5879
+ return O(h, nn);
5880
5880
  case "W":
5881
- return T(a);
5881
+ return O(a);
5882
5882
  case "WW":
5883
- return T(s);
5883
+ return O(s);
5884
5884
  case "E":
5885
5885
  case "c":
5886
- return T(n);
5886
+ return O(n);
5887
5887
  case "EEE":
5888
- return K(e.weekdays("short", !1), 1);
5888
+ return Q(e.weekdays("short", !1), 1);
5889
5889
  case "EEEE":
5890
- return K(e.weekdays("long", !1), 1);
5890
+ return Q(e.weekdays("long", !1), 1);
5891
5891
  case "ccc":
5892
- return K(e.weekdays("short", !0), 1);
5892
+ return Q(e.weekdays("short", !0), 1);
5893
5893
  case "cccc":
5894
- return K(e.weekdays("long", !0), 1);
5894
+ return Q(e.weekdays("long", !0), 1);
5895
5895
  case "Z":
5896
5896
  case "ZZ":
5897
5897
  return is(new RegExp(`([+-]${a.source})(?::(${s.source}))?`), 2);
@@ -6022,7 +6022,7 @@ function Fc(t) {
6022
6022
  }
6023
6023
  };
6024
6024
  let n = null, s;
6025
- return w(t.z) || (n = ie.create(t.z)), w(t.Z) || (n || (n = new H(t.Z)), s = t.Z), w(t.q) || (t.M = (t.q - 1) * 3 + 1), w(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), w(t.u) || (t.S = mn(t.u)), [Object.keys(t).reduce((i, o) => {
6025
+ return w(t.z) || (n = ie.create(t.z)), w(t.Z) || (n || (n = new B(t.Z)), s = t.Z), w(t.q) || (t.M = (t.q - 1) * 3 + 1), w(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), w(t.u) || (t.S = mn(t.u)), [Object.keys(t).reduce((i, o) => {
6026
6026
  const a = e(o);
6027
6027
  return a && (i[a] = t[o]), i;
6028
6028
  }, {}), n, s];
@@ -6089,7 +6089,7 @@ function Mr(t, e) {
6089
6089
  }
6090
6090
  const Bt = "Invalid DateTime", os = 864e13;
6091
6091
  function Be(t) {
6092
- return new Q("unsupported zone", `the zone "${t.name}" is not supported`);
6092
+ return new X("unsupported zone", `the zone "${t.name}" is not supported`);
6093
6093
  }
6094
6094
  function Pt(t) {
6095
6095
  return t.weekData === null && (t.weekData = gt(t.c)), t.weekData;
@@ -6168,7 +6168,7 @@ function ve(t, e, n, s, r, i) {
6168
6168
  return o ? u : u.setZone(a);
6169
6169
  } else
6170
6170
  return g.invalid(
6171
- new Q("unparsable", `the input "${r}" can't be parsed as ${s}`)
6171
+ new X("unparsable", `the input "${r}" can't be parsed as ${s}`)
6172
6172
  );
6173
6173
  }
6174
6174
  function at(t, e, n = !0) {
@@ -6180,11 +6180,11 @@ function at(t, e, n = !0) {
6180
6180
  function qt(t, e) {
6181
6181
  const n = t.c.year > 9999 || t.c.year < 0;
6182
6182
  let s = "";
6183
- return n && t.c.year >= 0 && (s += "+"), s += A(t.c.year, n ? 6 : 4), e ? (s += "-", s += A(t.c.month), s += "-", s += A(t.c.day)) : (s += A(t.c.month), s += A(t.c.day)), s;
6183
+ return n && t.c.year >= 0 && (s += "+"), s += M(t.c.year, n ? 6 : 4), e ? (s += "-", s += M(t.c.month), s += "-", s += M(t.c.day)) : (s += M(t.c.month), s += M(t.c.day)), s;
6184
6184
  }
6185
6185
  function cs(t, e, n, s, r, i) {
6186
- let o = A(t.c.hour);
6187
- return e ? (o += ":", o += A(t.c.minute), (t.c.millisecond !== 0 || t.c.second !== 0 || !n) && (o += ":")) : o += A(t.c.minute), (t.c.millisecond !== 0 || t.c.second !== 0 || !n) && (o += A(t.c.second), (t.c.millisecond !== 0 || !s) && (o += ".", o += A(t.c.millisecond, 3))), r && (t.isOffsetFixed && t.offset === 0 && !i ? o += "Z" : t.o < 0 ? (o += "-", o += A(Math.trunc(-t.o / 60)), o += ":", o += A(Math.trunc(-t.o % 60))) : (o += "+", o += A(Math.trunc(t.o / 60)), o += ":", o += A(Math.trunc(t.o % 60)))), i && (o += "[" + t.zone.ianaName + "]"), o;
6186
+ let o = M(t.c.hour);
6187
+ return e ? (o += ":", o += M(t.c.minute), (t.c.millisecond !== 0 || t.c.second !== 0 || !n) && (o += ":")) : o += M(t.c.minute), (t.c.millisecond !== 0 || t.c.second !== 0 || !n) && (o += M(t.c.second), (t.c.millisecond !== 0 || !s) && (o += ".", o += M(t.c.millisecond, 3))), r && (t.isOffsetFixed && t.offset === 0 && !i ? o += "Z" : t.o < 0 ? (o += "-", o += M(Math.trunc(-t.o / 60)), o += ":", o += M(Math.trunc(-t.o % 60))) : (o += "+", o += M(Math.trunc(t.o / 60)), o += ":", o += M(Math.trunc(t.o % 60)))), i && (o += "[" + t.zone.ianaName + "]"), o;
6188
6188
  }
6189
6189
  const Fr = {
6190
6190
  month: 1,
@@ -6304,7 +6304,7 @@ class g {
6304
6304
  */
6305
6305
  constructor(e) {
6306
6306
  const n = e.zone || D.defaultZone;
6307
- let s = e.invalid || (Number.isNaN(e.ts) ? new Q("invalid input") : null) || (n.isValid ? null : Be(n));
6307
+ let s = e.invalid || (Number.isNaN(e.ts) ? new X("invalid input") : null) || (n.isValid ? null : Be(n));
6308
6308
  this.ts = w(e.ts) ? D.now() : e.ts;
6309
6309
  let r = null, i = null;
6310
6310
  if (!s)
@@ -6312,7 +6312,7 @@ class g {
6312
6312
  [r, i] = [e.old.c, e.old.o];
6313
6313
  else {
6314
6314
  const a = fe(e.o) && !e.old ? e.o : n.offset(this.ts);
6315
- r = ot(this.ts, a), s = Number.isNaN(r.year) ? new Q("invalid input") : null, r = s ? null : r, i = s ? null : a;
6315
+ r = ot(this.ts, a), s = Number.isNaN(r.year) ? new X("invalid input") : null, r = s ? null : r, i = s ? null : a;
6316
6316
  }
6317
6317
  this._zone = n, this.loc = e.loc || E.create(), this.invalid = s, this.weekData = null, this.localWeekData = null, this.c = r, this.o = i, this.isLuxonDateTime = !0;
6318
6318
  }
@@ -6379,7 +6379,7 @@ class g {
6379
6379
  */
6380
6380
  static utc() {
6381
6381
  const [e, n] = hs(arguments), [s, r, i, o, a, c, u] = n;
6382
- return e.zone = H.utcInstance, ls({ year: s, month: r, day: i, hour: o, minute: a, second: c, millisecond: u }, e);
6382
+ return e.zone = B.utcInstance, ls({ year: s, month: r, day: i, hour: o, minute: a, second: c, millisecond: u }, e);
6383
6383
  }
6384
6384
  /**
6385
6385
  * Create a DateTime from a JavaScript Date object. Uses the default zone.
@@ -6489,16 +6489,16 @@ class g {
6489
6489
  const p = f || i.weekday && !m;
6490
6490
  let v, N, I = ot(c, u);
6491
6491
  p ? (v = $c, N = Wc, I = gt(I, o, a)) : l ? (v = Hc, N = Uc, I = $t(I)) : (v = Rr, N = Fr);
6492
- let ne = !1;
6492
+ let se = !1;
6493
6493
  for (const pe of v) {
6494
6494
  const xt = i[pe];
6495
- w(xt) ? ne ? i[pe] = N[pe] : i[pe] = I[pe] : ne = !0;
6495
+ w(xt) ? se ? i[pe] = N[pe] : i[pe] = I[pe] : se = !0;
6496
6496
  }
6497
- const C = p ? pa(i, o, a) : l ? ga(i) : or(i), O = C || ar(i);
6498
- if (O)
6499
- return g.invalid(O);
6500
- const M = p ? Gn(i, o, a) : l ? Yn(i) : i, [se, ye] = ft(M, u, s), oe = new g({
6501
- ts: se,
6497
+ const C = p ? pa(i, o, a) : l ? ga(i) : or(i), T = C || ar(i);
6498
+ if (T)
6499
+ return g.invalid(T);
6500
+ const W = p ? Gn(i, o, a) : l ? Yn(i) : i, [R, ye] = ft(W, u, s), oe = new g({
6501
+ ts: R,
6502
6502
  zone: s,
6503
6503
  o: ye,
6504
6504
  loc: r
@@ -6632,7 +6632,7 @@ class g {
6632
6632
  static invalid(e, n = null) {
6633
6633
  if (!e)
6634
6634
  throw new V("need to specify a reason the DateTime is invalid");
6635
- const s = e instanceof Q ? e : new Q(e, n);
6635
+ const s = e instanceof X ? e : new X(e, n);
6636
6636
  if (D.throwOnInvalid)
6637
6637
  throw new Po(s);
6638
6638
  return new g({ invalid: s });
@@ -7043,7 +7043,7 @@ class g {
7043
7043
  * @return {DateTime}
7044
7044
  */
7045
7045
  toUTC(e = 0, n = {}) {
7046
- return this.setZone(H.instance(e), n);
7046
+ return this.setZone(B.instance(e), n);
7047
7047
  }
7048
7048
  /**
7049
7049
  * "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
@@ -7870,7 +7870,7 @@ const zc = {}, qc = {
7870
7870
  Zc
7871
7871
  ];
7872
7872
  function Gc(t, e) {
7873
- return W(), U("svg", qc, jc);
7873
+ return U(), $("svg", qc, jc);
7874
7874
  }
7875
7875
  const Yc = /* @__PURE__ */ me(zc, [["render", Gc]]), Jc = { class: "messages-container-list" }, Kc = { class: "message-container" }, Qc = {
7876
7876
  key: 0,
@@ -7895,7 +7895,7 @@ const Yc = /* @__PURE__ */ me(zc, [["render", Gc]]), Jc = { class: "messages-con
7895
7895
  },
7896
7896
  emits: ["loadMore", "retry"],
7897
7897
  setup(t, { emit: e }) {
7898
- const n = t, s = B(), { pause: r, resume: i } = Bo(
7898
+ const n = t, s = P(), { pause: r, resume: i } = Bo(
7899
7899
  s,
7900
7900
  ([{ isIntersecting: o }]) => {
7901
7901
  o && e("loadMore");
@@ -7912,21 +7912,21 @@ const Yc = /* @__PURE__ */ me(zc, [["render", Gc]]), Jc = { class: "messages-con
7912
7912
  }
7913
7913
  r();
7914
7914
  }
7915
- ), (o, a) => (W(), U(Sn, null, [
7915
+ ), (o, a) => (U(), $(Sn, null, [
7916
7916
  _("div", {
7917
7917
  ref_key: "target",
7918
7918
  ref: s,
7919
7919
  class: "target"
7920
7920
  }, null, 512),
7921
7921
  _("div", Jc, [
7922
- (W(!0), U(Sn, null, Br(n.messages, (c) => {
7922
+ (U(!0), $(Sn, null, Br(n.messages, (c) => {
7923
7923
  var u, l;
7924
- return W(), U("div", {
7924
+ return U(), $("div", {
7925
7925
  key: c.id,
7926
7926
  class: ct(["message", c.esCliente ? "message-right" : "message-left"])
7927
7927
  }, [
7928
7928
  _("div", Kc, [
7929
- c.error && c.esCliente ? (W(), U("div", Qc, [
7929
+ c.error && c.esCliente ? (U(), $("div", Qc, [
7930
7930
  _("button", {
7931
7931
  text: "",
7932
7932
  rounded: "",
@@ -7947,7 +7947,7 @@ const Yc = /* @__PURE__ */ me(zc, [["render", Gc]]), Jc = { class: "messages-con
7947
7947
  }, [
7948
7948
  _("div", tu, Pe(c.message), 1),
7949
7949
  _("div", nu, [
7950
- (u = c.sender) != null && u.nombreCompleto ? (W(), U("span", su, Pe(c.esCliente ? (l = c.sender) == null ? void 0 : l.nombreCompleto : "ECOSISTEMA JL"), 1)) : (W(), U("span", ru)),
7950
+ (u = c.sender) != null && u.nombreCompleto ? (U(), $("span", su, Pe(c.esCliente ? (l = c.sender) == null ? void 0 : l.nombreCompleto : "ECOSISTEMA JL"), 1)) : (U(), $("span", ru)),
7951
7951
  _("span", null, Pe(fs(g).fromISO(c.createdAt).toFormat(
7952
7952
  "dd-MM-yyyy HH:mm"
7953
7953
  )), 1)
@@ -7976,7 +7976,7 @@ const Yc = /* @__PURE__ */ me(zc, [["render", Gc]]), Jc = { class: "messages-con
7976
7976
  lu
7977
7977
  ];
7978
7978
  function hu(t, e) {
7979
- return W(), U("svg", cu, du);
7979
+ return U(), $("svg", cu, du);
7980
7980
  }
7981
7981
  const fu = /* @__PURE__ */ me(au, [["render", hu], ["__scopeId", "data-v-d9a6b2b7"]]);
7982
7982
  function mu(t, e, n) {
@@ -8014,16 +8014,16 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
8014
8014
  "not-viewed-total"
8015
8015
  ],
8016
8016
  setup(t, { emit: e }) {
8017
- const n = t, s = B(null), r = B(""), i = B(0), o = B({
8017
+ const n = t, s = P(null), r = P(""), i = P(0), o = P({
8018
8018
  data: [],
8019
8019
  canLoadMoreMessages: !1
8020
- }), a = B({ virtualhost: "" }), c = B(""), u = B(!1), l = B(null);
8020
+ }), a = P({ virtualhost: "" }), c = P(""), u = P(!1), l = P(null);
8021
8021
  sn(
8022
8022
  () => n.visible,
8023
8023
  async (C) => {
8024
8024
  if (!C || (e("clear-new-messages"), v(), i.value > 0 && Vn(c.value, n.tokenAuth), a.value && c.value)) return;
8025
- const O = await Rn(n.tokenAuth);
8026
- O && (a.value = O.virtualHost, c.value = O.appChat.id, p());
8025
+ const T = await Rn(n.tokenAuth);
8026
+ T && (a.value = T.virtualHost, c.value = T.appChat.id, p());
8027
8027
  }
8028
8028
  ), ys(async () => {
8029
8029
  if (a.value && c.value) return;
@@ -8031,8 +8031,8 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
8031
8031
  C && (a.value = C.virtualHost, c.value = C.appChat.id, e("not-viewed-total", C.appChat.totalNoVistosCliente), i.value = C.appChat.totalNoVistosCliente, m(), p());
8032
8032
  });
8033
8033
  const h = async (C) => {
8034
- var se;
8035
- if (((se = r.value) == null ? void 0 : se.length) > 300) {
8034
+ var R;
8035
+ if (((R = r.value) == null ? void 0 : R.length) > 300) {
8036
8036
  e("show-toast", {
8037
8037
  severity: "warn",
8038
8038
  summary: "Error",
@@ -8050,7 +8050,7 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
8050
8050
  });
8051
8051
  return;
8052
8052
  }
8053
- const O = {
8053
+ const T = {
8054
8054
  id: Kr(),
8055
8055
  message: r.value,
8056
8056
  visto: !0,
@@ -8064,11 +8064,11 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
8064
8064
  ci: n.user.ci,
8065
8065
  msPersonaId: n.user.msPersonaId
8066
8066
  }
8067
- }, M = o.value.data.push(O) - 1;
8067
+ }, W = o.value.data.push(T) - 1;
8068
8068
  S(r.value, c.value).then((ye) => {
8069
- ye ? o.value.data[M] = ye : (o.value.data[M].error = {
8069
+ ye ? o.value.data[W] = ye : (o.value.data[W].error = {
8070
8070
  error: !0,
8071
- id: O.id
8071
+ id: T.id
8072
8072
  }, e("show-toast", {
8073
8073
  severity: "error",
8074
8074
  summary: "Error",
@@ -8076,28 +8076,28 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
8076
8076
  life: 5e3
8077
8077
  }));
8078
8078
  }), r.value = "", v(), I.value && (I.value.style.height = "20px");
8079
- }, S = async (C, O) => Ro({
8079
+ }, S = async (C, T) => Ro({
8080
8080
  esCliente: !0,
8081
8081
  message: C,
8082
- appChatId: O
8082
+ appChatId: T
8083
8083
  }, n.tokenAuth), m = async () => {
8084
- var se, ye, oe;
8085
- const C = (se = o.value.data[0]) == null ? void 0 : se.id, O = {
8084
+ var R, ye, oe;
8085
+ const C = (R = o.value.data[0]) == null ? void 0 : R.id, T = {
8086
8086
  lastMessagesId: C,
8087
8087
  appChatId: c.value,
8088
8088
  limit: 10
8089
8089
  };
8090
8090
  u.value = !0;
8091
- const M = await Fo({ body: O, token: n.tokenAuth });
8091
+ const W = await Fo({ body: T, token: n.tokenAuth });
8092
8092
  u.value = !1, o.value.data.unshift(
8093
- ...M.data.sort((pe, xt) => -xt.createdAt.localeCompare(pe.createdAt))
8094
- ), o.value.canLoadMoreMessages = M.pagination.total > M.pagination.size, C && ((ye = l.value) != null && ye.scrollHeight) && N((oe = l.value) == null ? void 0 : oe.scrollHeight), C || v();
8093
+ ...W.data.sort((pe, xt) => -xt.createdAt.localeCompare(pe.createdAt))
8094
+ ), o.value.canLoadMoreMessages = W.pagination.total > W.pagination.size, C && ((ye = l.value) != null && ye.scrollHeight) && N((oe = l.value) == null ? void 0 : oe.scrollHeight), C || v();
8095
8095
  }, f = async (C) => {
8096
8096
  e("show-confirm", async () => {
8097
- var M;
8098
- if (!((M = C.error) != null && M.id)) return;
8099
- const O = await S(C.message, c.value);
8100
- if (!O)
8097
+ var W;
8098
+ if (!((W = C.error) != null && W.id)) return;
8099
+ const T = await S(C.message, c.value);
8100
+ if (!T)
8101
8101
  e("show-toast", {
8102
8102
  severity: "error",
8103
8103
  summary: "Error",
@@ -8105,25 +8105,26 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
8105
8105
  life: 5e3
8106
8106
  });
8107
8107
  else {
8108
- const se = mu(
8108
+ const R = mu(
8109
8109
  o.value.data,
8110
8110
  "id",
8111
8111
  C.error.id
8112
8112
  );
8113
- o.value.data[se] = { ...O, error: void 0 };
8113
+ o.value.data[R] = { ...T, error: void 0 };
8114
8114
  }
8115
8115
  v();
8116
8116
  });
8117
8117
  }, p = (C = "webchat") => {
8118
+ const { virtualhost: T } = a.value;
8118
8119
  if (!sessionStorage.getItem("tabBrowser")) {
8119
- let M = c.value;
8120
- sessionStorage.setItem("tabBrowser", `${M}`);
8120
+ let R = Date.now();
8121
+ sessionStorage.setItem("tabBrowser", `${R}`);
8121
8122
  }
8122
8123
  s.value = new oi(
8123
- "chat_virtual_host",
8124
- `webchat_${sessionStorage.getItem("tabBrowser")}`
8125
- ), s.value.connect(), s.value.subscribe(async (M) => {
8126
- M.event && M.event === Lr.NEW_MESSAGE && !M.message.esCliente && (o.value.data.push(M.message), n.visible === !0 && Vn(c.value, n.tokenAuth), n.visible === !1 && (i.value = i.value + 1, e("new-message")), v());
8124
+ `${T}`,
8125
+ `widget_chat_${sessionStorage.getItem("tabBrowser")}`
8126
+ ), s.value.connect(), s.value.subscribe(async (R) => {
8127
+ R.event && R.event === Lr.NEW_MESSAGE && !R.message.esCliente && (o.value.data.push(R.message), n.visible === !0 && Vn(c.value, n.tokenAuth), n.visible === !1 && (i.value = i.value + 1, e("new-message")), v());
8127
8128
  });
8128
8129
  }, v = () => {
8129
8130
  bn(() => {
@@ -8131,18 +8132,18 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
8131
8132
  });
8132
8133
  }, N = (C) => {
8133
8134
  bn(() => {
8134
- const O = l.value;
8135
- O && (O.scrollTop = O.scrollHeight - C);
8135
+ const T = l.value;
8136
+ T && (T.scrollTop = T.scrollHeight - C);
8136
8137
  });
8137
- }, I = B();
8138
- function ne() {
8138
+ }, I = P();
8139
+ function se() {
8139
8140
  I.value && (I.value.style.height = I.value.scrollHeight - vu + "px", I.value.scrollHeight !== I.value.clientHeight && (I.value.style.height = I.value.scrollHeight + "px"));
8140
8141
  }
8141
- return (C, O) => (W(), U("div", yu, [
8142
+ return (C, T) => (U(), $("div", yu, [
8142
8143
  _("div", pu, [
8143
8144
  _("h4", gu, Pe(t.titlePrincipal), 1),
8144
8145
  _("button", {
8145
- onClick: O[0] || (O[0] = () => t.toggleChat()),
8146
+ onClick: T[0] || (T[0] = () => t.toggleChat()),
8146
8147
  class: "btn-close"
8147
8148
  }, [
8148
8149
  Se(fi, { class: "pointer" })
@@ -8153,7 +8154,7 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
8153
8154
  ref_key: "messageContainerRef",
8154
8155
  ref: l
8155
8156
  }, [
8156
- u.value ? (W(), U("div", wu, [
8157
+ u.value ? (U(), $("div", wu, [
8157
8158
  Se(fu)
8158
8159
  ])) : on("", !0),
8159
8160
  Se(ou, {
@@ -8171,13 +8172,13 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
8171
8172
  _("div", ku, [
8172
8173
  _("div", Tu, [
8173
8174
  Zt(_("textarea", {
8174
- "onUpdate:modelValue": O[1] || (O[1] = (M) => r.value = M),
8175
+ "onUpdate:modelValue": T[1] || (T[1] = (W) => r.value = W),
8175
8176
  class: "jl2-input-chat",
8176
8177
  required: "",
8177
8178
  ref_key: "textAreaRef",
8178
8179
  ref: I,
8179
- onInput: O[2] || (O[2] = () => ne()),
8180
- onKeydown: O[3] || (O[3] = kn(Dt(() => {
8180
+ onInput: T[2] || (T[2] = () => se()),
8181
+ onKeydown: T[3] || (T[3] = kn(Dt(() => {
8181
8182
  }, ["prevent"]), ["enter"])),
8182
8183
  onKeyup: kn(Dt(h, ["prevent"]), ["enter"])
8183
8184
  }, null, 40, Ou), [
@@ -8192,7 +8193,7 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
8192
8193
  ])
8193
8194
  ]));
8194
8195
  }
8195
- }), Cu = /* @__PURE__ */ me(_u, [["__scopeId", "data-v-2ba11276"]]), Nu = {}, Iu = {
8196
+ }), Cu = /* @__PURE__ */ me(_u, [["__scopeId", "data-v-659d93d4"]]), Nu = {}, Iu = {
8196
8197
  width: "87",
8197
8198
  height: "87",
8198
8199
  viewBox: "0 0 87 87",
@@ -8202,7 +8203,7 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
8202
8203
  xu
8203
8204
  ];
8204
8205
  function Mu(t, e) {
8205
- return W(), U("svg", Iu, Du);
8206
+ return U(), $("svg", Iu, Du);
8206
8207
  }
8207
8208
  const Au = /* @__PURE__ */ me(Nu, [["render", Mu]]), Fu = {
8208
8209
  key: 0,
@@ -8223,10 +8224,10 @@ const Au = /* @__PURE__ */ me(Nu, [["render", Mu]]), Fu = {
8223
8224
  },
8224
8225
  emits: ["show-toast", "show-confirm"],
8225
8226
  setup(t, { emit: e }) {
8226
- const n = B(!1), s = B(0), r = () => {
8227
+ const n = P(!1), s = P(0), r = () => {
8227
8228
  n.value = !n.value;
8228
8229
  };
8229
- return (i, o) => (W(), U("div", {
8230
+ return (i, o) => (U(), $("div", {
8230
8231
  class: ct(["widget-css-reset widget-container", t.isDarkMode ? "chat-dark-mode" : ""])
8231
8232
  }, [
8232
8233
  Zt(_("div", {
@@ -8235,7 +8236,7 @@ const Au = /* @__PURE__ */ me(Nu, [["render", Mu]]), Fu = {
8235
8236
  onClick: r,
8236
8237
  class: "widget-container"
8237
8238
  }, [
8238
- s.value ? (W(), U("div", Fu, Pe(s.value > 9 ? "9+" : s.value), 1)) : on("", !0),
8239
+ s.value ? (U(), $("div", Fu, Pe(s.value > 9 ? "9+" : s.value), 1)) : on("", !0),
8239
8240
  Se(Au)
8240
8241
  ], 512), [
8241
8242
  [Tn, !n.value]