vue-wiguet-chatweb 0.0.16 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,34 +1,34 @@
1
- import { openBlock as B, createElementBlock as P, createElementVNode as O, getCurrentScope as Rr, onScopeDispose as Vr, unref as ls, computed as ds, ref as $, watch as tn, getCurrentInstance as Lr, onMounted as hs, defineComponent as nn, onBeforeMount as Wr, Fragment as gn, renderList as Ur, normalizeClass as it, createVNode as ge, toDisplayString as Ue, pushScopeId as $r, popScopeId as Hr, nextTick as wn, createCommentVNode as fs, withModifiers as Br, withDirectives as zt, vModelText as Pr, createStaticVNode as zr, vShow as Sn } from "vue";
1
+ import { openBlock as W, createElementBlock as U, createElementVNode as E, getCurrentScope as Rr, onScopeDispose as Vr, unref as ds, computed as hs, ref as B, watch as tn, getCurrentInstance as Lr, onMounted as fs, defineComponent as nn, onBeforeMount as Wr, Fragment as wn, renderList as Ur, normalizeClass as it, createVNode as ge, createCommentVNode as sn, toDisplayString as Ue, pushScopeId as $r, popScopeId as Hr, nextTick as Sn, withModifiers as Br, withDirectives as zt, withKeys as Pr, vModelText as zr, createStaticVNode as Zr, vShow as bn } from "vue";
2
2
  let Ye;
3
- const Zr = new Uint8Array(16);
4
- function qr() {
3
+ const qr = new Uint8Array(16);
4
+ function jr() {
5
5
  if (!Ye && (Ye = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ye))
6
6
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
7
- return Ye(Zr);
7
+ return Ye(qr);
8
8
  }
9
9
  const V = [];
10
10
  for (let t = 0; t < 256; ++t)
11
11
  V.push((t + 256).toString(16).slice(1));
12
- function jr(t, e = 0) {
12
+ function Gr(t, e = 0) {
13
13
  return V[t[e + 0]] + V[t[e + 1]] + V[t[e + 2]] + V[t[e + 3]] + "-" + V[t[e + 4]] + V[t[e + 5]] + "-" + V[t[e + 6]] + V[t[e + 7]] + "-" + V[t[e + 8]] + V[t[e + 9]] + "-" + V[t[e + 10]] + V[t[e + 11]] + V[t[e + 12]] + V[t[e + 13]] + V[t[e + 14]] + V[t[e + 15]];
14
14
  }
15
- const Gr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), bn = {
16
- randomUUID: Gr
15
+ const Yr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), kn = {
16
+ randomUUID: Yr
17
17
  };
18
- function Yr(t, e, n) {
19
- if (bn.randomUUID && !e && !t)
20
- return bn.randomUUID();
18
+ function Jr(t, e, n) {
19
+ if (kn.randomUUID && !e && !t)
20
+ return kn.randomUUID();
21
21
  t = t || {};
22
- const s = t.random || (t.rng || qr)();
22
+ const s = t.random || (t.rng || jr)();
23
23
  if (s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, e) {
24
24
  n = n || 0;
25
25
  for (let r = 0; r < 16; ++r)
26
26
  e[n + r] = s[r];
27
27
  return e;
28
28
  }
29
- return jr(s);
29
+ return Gr(s);
30
30
  }
31
- var Jr = Object.defineProperty, Kr = (t, e, n) => e in t ? Jr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Qr = (t, e, n) => (Kr(t, typeof e != "symbol" ? e + "" : e, n), n);
31
+ var Kr = Object.defineProperty, Qr = (t, e, n) => e in t ? Kr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Xr = (t, e, n) => (Qr(t, typeof e != "symbol" ? e + "" : e, n), n);
32
32
  const Le = {
33
33
  // LINEFEED byte (octet 10)
34
34
  LF: `
@@ -144,8 +144,8 @@ class le {
144
144
  `).replace(/\\c/g, ":").replace(/\\\\/g, "\\");
145
145
  }
146
146
  }
147
- const kn = 0, Je = 10, Ke = 13, Xr = 58;
148
- class ei {
147
+ const Tn = 0, Je = 10, Ke = 13, ei = 58;
148
+ class ti {
149
149
  constructor(e, n) {
150
150
  this.onFrame = e, this.onIncomingPing = n, this._encoder = new TextEncoder(), this._decoder = new TextDecoder(), this._token = [], this._initState();
151
151
  }
@@ -163,7 +163,7 @@ class ei {
163
163
  // The following implements a simple Rec Descent Parser.
164
164
  // The grammar is simple and just one byte tells what should be the next state
165
165
  _collectFrame(e) {
166
- if (e !== kn && e !== Ke) {
166
+ if (e !== Tn && e !== Ke) {
167
167
  if (e === Je) {
168
168
  this.onIncomingPing();
169
169
  return;
@@ -193,7 +193,7 @@ class ei {
193
193
  this._onByte(e);
194
194
  }
195
195
  _collectHeaderKey(e) {
196
- if (e === Xr) {
196
+ if (e === ei) {
197
197
  this._headerKey = this._consumeTokenAsUTF8(), this._onByte = this._collectHeaderValue;
198
198
  return;
199
199
  }
@@ -216,7 +216,7 @@ class ei {
216
216
  e ? (this._bodyBytesRemaining = parseInt(e[1], 10), this._onByte = this._collectBodyFixedSize) : this._onByte = this._collectBodyNullTerminated;
217
217
  }
218
218
  _collectBodyNullTerminated(e) {
219
- if (e === kn) {
219
+ if (e === Tn) {
220
220
  this._retrievedBody();
221
221
  return;
222
222
  }
@@ -265,7 +265,7 @@ var q;
265
265
  (function(t) {
266
266
  t[t.ACTIVE = 0] = "ACTIVE", t[t.DEACTIVATING = 1] = "DEACTIVATING", t[t.INACTIVE = 2] = "INACTIVE";
267
267
  })(q = q || (q = {}));
268
- class W {
268
+ class $ {
269
269
  /**
270
270
  * Takes an array of versions, typical elements '1.2', '1.1', or '1.0'
271
271
  *
@@ -288,15 +288,15 @@ class W {
288
288
  return this.versions.map((e) => `v${e.replace(".", "")}.stomp`);
289
289
  }
290
290
  }
291
- W.V1_0 = "1.0";
292
- W.V1_1 = "1.1";
293
- W.V1_2 = "1.2";
294
- W.default = new W([
295
- W.V1_2,
296
- W.V1_1,
297
- W.V1_0
291
+ $.V1_0 = "1.0";
292
+ $.V1_1 = "1.1";
293
+ $.V1_2 = "1.2";
294
+ $.default = new $([
295
+ $.V1_2,
296
+ $.V1_1,
297
+ $.V1_0
298
298
  ]);
299
- function ti(t, e) {
299
+ function ni(t, e) {
300
300
  t.terminate = function() {
301
301
  const n = () => {
302
302
  };
@@ -312,16 +312,16 @@ function ti(t, e) {
312
312
  });
313
313
  };
314
314
  }
315
- class ni {
315
+ class si {
316
316
  constructor(e, n, s) {
317
317
  this._client = e, this._webSocket = n, this._connected = !1, this._serverFrameHandlers = {
318
318
  // [CONNECTED Frame](https://stomp.github.com/stomp-specification-1.2.html#CONNECTED_Frame)
319
319
  CONNECTED: (r) => {
320
- this.debug(`connected to server ${r.headers.server}`), this._connected = !0, this._connectedVersion = r.headers.version, this._connectedVersion === W.V1_2 && (this._escapeHeaderValues = !0), this._setupHeartbeat(r.headers), this.onConnect(r);
320
+ 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);
321
321
  },
322
322
  // [MESSAGE Frame](https://stomp.github.com/stomp-specification-1.2.html#MESSAGE)
323
323
  MESSAGE: (r) => {
324
- const i = r.headers.subscription, o = this._subscriptions[i] || this.onUnhandledMessage, a = r, c = this, u = this._connectedVersion === W.V1_2 ? a.headers.ack : a.headers["message-id"];
324
+ 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"];
325
325
  a.ack = (l = {}) => c.ack(u, i, l), a.nack = (l = {}) => c.nack(u, i, l), o(a);
326
326
  },
327
327
  // [RECEIPT Frame](https://stomp.github.com/stomp-specification-1.2.html#RECEIPT)
@@ -342,7 +342,7 @@ class ni {
342
342
  return this._connected;
343
343
  }
344
344
  start() {
345
- const e = new ei(
345
+ const e = new ti(
346
346
  // On Frame
347
347
  (n) => {
348
348
  const s = le.fromRawFrame(n, this._escapeHeaderValues);
@@ -372,7 +372,7 @@ class ni {
372
372
  };
373
373
  }
374
374
  _setupHeartbeat(e) {
375
- if (e.version !== W.V1_1 && e.version !== W.V1_2 || !e["heart-beat"])
375
+ if (e.version !== $.V1_1 && e.version !== $.V1_2 || !e["heart-beat"])
376
376
  return;
377
377
  const [n, s] = e["heart-beat"].split(",").map((r) => parseInt(r, 10));
378
378
  if (this.heartbeatOutgoing !== 0 && s !== 0) {
@@ -400,7 +400,7 @@ class ni {
400
400
  }, this._webSocket.close();
401
401
  }
402
402
  discardWebsocket() {
403
- typeof this._webSocket.terminate != "function" && ti(this._webSocket, (e) => this.debug(e)), this._webSocket.terminate();
403
+ typeof this._webSocket.terminate != "function" && ni(this._webSocket, (e) => this.debug(e)), this._webSocket.terminate();
404
404
  }
405
405
  _transmit(e) {
406
406
  const { command: n, headers: s, body: r, binaryBody: i, skipContentLengthHeader: o } = e, a = new le({
@@ -500,18 +500,18 @@ class ni {
500
500
  });
501
501
  }
502
502
  ack(e, n, s = {}) {
503
- s = Object.assign({}, s), this._connectedVersion === W.V1_2 ? s.id = e : s["message-id"] = e, s.subscription = n, this._transmit({ command: "ACK", headers: s });
503
+ s = Object.assign({}, s), this._connectedVersion === $.V1_2 ? s.id = e : s["message-id"] = e, s.subscription = n, this._transmit({ command: "ACK", headers: s });
504
504
  }
505
505
  nack(e, n, s = {}) {
506
- return s = Object.assign({}, s), this._connectedVersion === W.V1_2 ? s.id = e : s["message-id"] = e, s.subscription = n, this._transmit({ command: "NACK", headers: s });
506
+ 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 });
507
507
  }
508
508
  }
509
- class si {
509
+ class ri {
510
510
  /**
511
511
  * Create an instance.
512
512
  */
513
513
  constructor(e = {}) {
514
- this.stompVersions = W.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;
514
+ 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;
515
515
  const n = () => {
516
516
  };
517
517
  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);
@@ -591,7 +591,7 @@ class si {
591
591
  this.connected || (this.debug(`Connection not established in ${this.connectionTimeout}ms, closing socket`), this.forceDisconnect());
592
592
  }, this.connectionTimeout)), this.debug("Opening Web Socket...");
593
593
  const e = this._createWebSocket();
594
- this._stompHandler = new ni(this, e, {
594
+ this._stompHandler = new si(this, e, {
595
595
  debug: this.debug,
596
596
  stompVersions: this.stompVersions,
597
597
  connectHeaders: this.connectHeaders,
@@ -896,9 +896,9 @@ class si {
896
896
  this._checkConnection(), this._stompHandler.nack(e, n, s);
897
897
  }
898
898
  }
899
- class ri {
899
+ class ii {
900
900
  constructor(e, n) {
901
- Qr(this, "client"), this.virtualHost = e, this.queue = n, this.client = new si({
901
+ Xr(this, "client"), this.virtualHost = e, this.queue = n, this.client = new ri({
902
902
  brokerURL: window.VITE_BROKER_URL ? window.VITE_BROKER_URL : "ws://192.168.20.107:15674/ws",
903
903
  connectHeaders: {
904
904
  login: window.VITE_USERNAME ? window.VITE_USERNAME : "admin",
@@ -939,66 +939,66 @@ const he = (t, e) => {
939
939
  for (const [s, r] of e)
940
940
  n[s] = r;
941
941
  return n;
942
- }, ii = {}, oi = {
942
+ }, oi = {}, ai = {
943
943
  width: "32",
944
944
  height: "32",
945
945
  viewBox: "0 0 32 32",
946
946
  fill: "none",
947
947
  xmlns: "http://www.w3.org/2000/svg"
948
- }, ai = /* @__PURE__ */ O("path", {
948
+ }, ci = /* @__PURE__ */ E("path", {
949
949
  d: "M16 31C24.2843 31 31 24.2843 31 16C31 7.71573 24.2843 1 16 1C7.71573 1 1 7.71573 1 16C1 24.2843 7.71573 31 16 31Z",
950
950
  stroke: "#B3B3B3",
951
951
  "stroke-miterlimit": "10"
952
- }, null, -1), ci = /* @__PURE__ */ O("path", {
952
+ }, null, -1), ui = /* @__PURE__ */ E("path", {
953
953
  d: "M19.78 22.3L15.98 16.63H15.9601L12.2001 22.3H11.0701L15.37 15.8899L11.25 9.69995H12.38L15.98 15.08H16L19.67 9.69995H20.8L16.55 15.82L20.92 22.3H19.77H19.78Z",
954
954
  fill: "#B3B3B3"
955
- }, null, -1), ui = [
956
- ai,
957
- ci
955
+ }, null, -1), li = [
956
+ ci,
957
+ ui
958
958
  ];
959
- function li(t, e) {
960
- return B(), P("svg", oi, ui);
959
+ function di(t, e) {
960
+ return W(), U("svg", ai, li);
961
961
  }
962
- const di = /* @__PURE__ */ he(ii, [["render", li]]), hi = {}, fi = {
962
+ const hi = /* @__PURE__ */ he(oi, [["render", di]]), fi = {}, mi = {
963
963
  xmlns: "http://www.w3.org/2000/svg",
964
964
  viewBox: "0 0 512 512"
965
- }, mi = /* @__PURE__ */ O("path", {
965
+ }, yi = /* @__PURE__ */ E("path", {
966
966
  fill: "#F28B0C",
967
967
  d: "M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376V479.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"
968
- }, null, -1), yi = [
969
- mi
968
+ }, null, -1), pi = [
969
+ yi
970
970
  ];
971
- function pi(t, e) {
972
- return B(), P("svg", fi, yi);
971
+ function gi(t, e) {
972
+ return W(), U("svg", mi, pi);
973
973
  }
974
- const gi = /* @__PURE__ */ he(hi, [["render", pi]]);
974
+ const wi = /* @__PURE__ */ he(fi, [["render", gi]]);
975
975
  function ys(t, e) {
976
976
  return function() {
977
977
  return t.apply(e, arguments);
978
978
  };
979
979
  }
980
- const { toString: wi } = Object.prototype, { getPrototypeOf: sn } = Object, gt = ((t) => (e) => {
981
- const n = wi.call(e);
980
+ const { toString: Si } = Object.prototype, { getPrototypeOf: rn } = Object, gt = ((t) => (e) => {
981
+ const n = Si.call(e);
982
982
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
983
983
  })(/* @__PURE__ */ Object.create(null)), te = (t) => (t = t.toLowerCase(), (e) => gt(e) === t), wt = (t) => (e) => typeof e === t, { isArray: Ie } = Array, He = wt("undefined");
984
- function Si(t) {
984
+ function bi(t) {
985
985
  return t !== null && !He(t) && t.constructor !== null && !He(t.constructor) && Y(t.constructor.isBuffer) && t.constructor.isBuffer(t);
986
986
  }
987
987
  const ps = te("ArrayBuffer");
988
- function bi(t) {
988
+ function ki(t) {
989
989
  let e;
990
990
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && ps(t.buffer), e;
991
991
  }
992
- const ki = wt("string"), Y = wt("function"), gs = wt("number"), St = (t) => t !== null && typeof t == "object", Ti = (t) => t === !0 || t === !1, ot = (t) => {
992
+ const Ti = wt("string"), Y = wt("function"), gs = wt("number"), St = (t) => t !== null && typeof t == "object", _i = (t) => t === !0 || t === !1, ot = (t) => {
993
993
  if (gt(t) !== "object")
994
994
  return !1;
995
- const e = sn(t);
995
+ const e = rn(t);
996
996
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
997
- }, _i = te("Date"), Oi = te("File"), Ei = te("Blob"), vi = te("FileList"), Ci = (t) => St(t) && Y(t.pipe), Ni = (t) => {
997
+ }, Oi = te("Date"), Ei = te("File"), vi = te("Blob"), Ci = te("FileList"), Ni = (t) => St(t) && Y(t.pipe), Ii = (t) => {
998
998
  let e;
999
999
  return t && (typeof FormData == "function" && t instanceof FormData || Y(t.append) && ((e = gt(t)) === "formdata" || // detect form-data instance
1000
1000
  e === "object" && Y(t.toString) && t.toString() === "[object FormData]"));
1001
- }, Ii = te("URLSearchParams"), xi = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1001
+ }, xi = te("URLSearchParams"), Di = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1002
1002
  function Pe(t, e, { allOwnKeys: n = !1 } = {}) {
1003
1003
  if (t === null || typeof t > "u")
1004
1004
  return;
@@ -1032,13 +1032,13 @@ function Zt() {
1032
1032
  arguments[s] && Pe(arguments[s], n);
1033
1033
  return e;
1034
1034
  }
1035
- const Di = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (r, i) => {
1035
+ const Mi = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (r, i) => {
1036
1036
  n && Y(r) ? t[i] = ys(r, n) : t[i] = r;
1037
- }, { allOwnKeys: s }), t), Mi = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ai = (t, e, n, s) => {
1037
+ }, { allOwnKeys: s }), t), Ai = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Fi = (t, e, n, s) => {
1038
1038
  t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
1039
1039
  value: e.prototype
1040
1040
  }), n && Object.assign(t.prototype, n);
1041
- }, Fi = (t, e, n, s) => {
1041
+ }, Ri = (t, e, n, s) => {
1042
1042
  let r, i, o;
1043
1043
  const a = {};
1044
1044
  if (e = e || {}, t == null)
@@ -1046,14 +1046,14 @@ const Di = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (r, i) => {
1046
1046
  do {
1047
1047
  for (r = Object.getOwnPropertyNames(t), i = r.length; i-- > 0; )
1048
1048
  o = r[i], (!s || s(o, t, e)) && !a[o] && (e[o] = t[o], a[o] = !0);
1049
- t = n !== !1 && sn(t);
1049
+ t = n !== !1 && rn(t);
1050
1050
  } while (t && (!n || n(t, e)) && t !== Object.prototype);
1051
1051
  return e;
1052
- }, Ri = (t, e, n) => {
1052
+ }, Vi = (t, e, n) => {
1053
1053
  t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
1054
1054
  const s = t.indexOf(e, n);
1055
1055
  return s !== -1 && s === n;
1056
- }, Vi = (t) => {
1056
+ }, Li = (t) => {
1057
1057
  if (!t)
1058
1058
  return null;
1059
1059
  if (Ie(t))
@@ -1065,30 +1065,30 @@ const Di = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (r, i) => {
1065
1065
  for (; e-- > 0; )
1066
1066
  n[e] = t[e];
1067
1067
  return n;
1068
- }, Li = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && sn(Uint8Array)), Wi = (t, e) => {
1068
+ }, Wi = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && rn(Uint8Array)), Ui = (t, e) => {
1069
1069
  const s = (t && t[Symbol.iterator]).call(t);
1070
1070
  let r;
1071
1071
  for (; (r = s.next()) && !r.done; ) {
1072
1072
  const i = r.value;
1073
1073
  e.call(t, i[0], i[1]);
1074
1074
  }
1075
- }, Ui = (t, e) => {
1075
+ }, $i = (t, e) => {
1076
1076
  let n;
1077
1077
  const s = [];
1078
1078
  for (; (n = t.exec(e)) !== null; )
1079
1079
  s.push(n);
1080
1080
  return s;
1081
- }, $i = te("HTMLFormElement"), Hi = (t) => t.toLowerCase().replace(
1081
+ }, Hi = te("HTMLFormElement"), Bi = (t) => t.toLowerCase().replace(
1082
1082
  /[-_\s]([a-z\d])(\w*)/g,
1083
1083
  function(n, s, r) {
1084
1084
  return s.toUpperCase() + r;
1085
1085
  }
1086
- ), Tn = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Bi = te("RegExp"), ks = (t, e) => {
1086
+ ), _n = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Pi = te("RegExp"), ks = (t, e) => {
1087
1087
  const n = Object.getOwnPropertyDescriptors(t), s = {};
1088
1088
  Pe(n, (r, i) => {
1089
1089
  e(r, i, t) !== !1 && (s[i] = r);
1090
1090
  }), Object.defineProperties(t, s);
1091
- }, Pi = (t) => {
1091
+ }, zi = (t) => {
1092
1092
  ks(t, (e, n) => {
1093
1093
  if (Y(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
1094
1094
  return !1;
@@ -1103,29 +1103,29 @@ const Di = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (r, i) => {
1103
1103
  });
1104
1104
  }
1105
1105
  });
1106
- }, zi = (t, e) => {
1106
+ }, Zi = (t, e) => {
1107
1107
  const n = {}, s = (r) => {
1108
1108
  r.forEach((i) => {
1109
1109
  n[i] = !0;
1110
1110
  });
1111
1111
  };
1112
1112
  return Ie(t) ? s(t) : s(String(t).split(e)), n;
1113
- }, Zi = () => {
1114
- }, qi = (t, e) => (t = +t, Number.isFinite(t) ? t : e), xt = "abcdefghijklmnopqrstuvwxyz", _n = "0123456789", Ts = {
1115
- DIGIT: _n,
1113
+ }, qi = () => {
1114
+ }, ji = (t, e) => (t = +t, Number.isFinite(t) ? t : e), xt = "abcdefghijklmnopqrstuvwxyz", On = "0123456789", Ts = {
1115
+ DIGIT: On,
1116
1116
  ALPHA: xt,
1117
- ALPHA_DIGIT: xt + xt.toUpperCase() + _n
1118
- }, ji = (t = 16, e = Ts.ALPHA_DIGIT) => {
1117
+ ALPHA_DIGIT: xt + xt.toUpperCase() + On
1118
+ }, Gi = (t = 16, e = Ts.ALPHA_DIGIT) => {
1119
1119
  let n = "";
1120
1120
  const { length: s } = e;
1121
1121
  for (; t--; )
1122
1122
  n += e[Math.random() * s | 0];
1123
1123
  return n;
1124
1124
  };
1125
- function Gi(t) {
1125
+ function Yi(t) {
1126
1126
  return !!(t && Y(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
1127
1127
  }
1128
- const Yi = (t) => {
1128
+ const Ji = (t) => {
1129
1129
  const e = new Array(10), n = (s, r) => {
1130
1130
  if (St(s)) {
1131
1131
  if (e.indexOf(s) >= 0)
@@ -1142,64 +1142,64 @@ const Yi = (t) => {
1142
1142
  return s;
1143
1143
  };
1144
1144
  return n(t, 0);
1145
- }, Ji = te("AsyncFunction"), Ki = (t) => t && (St(t) || Y(t)) && Y(t.then) && Y(t.catch), d = {
1145
+ }, Ki = te("AsyncFunction"), Qi = (t) => t && (St(t) || Y(t)) && Y(t.then) && Y(t.catch), d = {
1146
1146
  isArray: Ie,
1147
1147
  isArrayBuffer: ps,
1148
- isBuffer: Si,
1149
- isFormData: Ni,
1150
- isArrayBufferView: bi,
1151
- isString: ki,
1148
+ isBuffer: bi,
1149
+ isFormData: Ii,
1150
+ isArrayBufferView: ki,
1151
+ isString: Ti,
1152
1152
  isNumber: gs,
1153
- isBoolean: Ti,
1153
+ isBoolean: _i,
1154
1154
  isObject: St,
1155
1155
  isPlainObject: ot,
1156
1156
  isUndefined: He,
1157
- isDate: _i,
1158
- isFile: Oi,
1159
- isBlob: Ei,
1160
- isRegExp: Bi,
1157
+ isDate: Oi,
1158
+ isFile: Ei,
1159
+ isBlob: vi,
1160
+ isRegExp: Pi,
1161
1161
  isFunction: Y,
1162
- isStream: Ci,
1163
- isURLSearchParams: Ii,
1164
- isTypedArray: Li,
1165
- isFileList: vi,
1162
+ isStream: Ni,
1163
+ isURLSearchParams: xi,
1164
+ isTypedArray: Wi,
1165
+ isFileList: Ci,
1166
1166
  forEach: Pe,
1167
1167
  merge: Zt,
1168
- extend: Di,
1169
- trim: xi,
1170
- stripBOM: Mi,
1171
- inherits: Ai,
1172
- toFlatObject: Fi,
1168
+ extend: Mi,
1169
+ trim: Di,
1170
+ stripBOM: Ai,
1171
+ inherits: Fi,
1172
+ toFlatObject: Ri,
1173
1173
  kindOf: gt,
1174
1174
  kindOfTest: te,
1175
- endsWith: Ri,
1176
- toArray: Vi,
1177
- forEachEntry: Wi,
1178
- matchAll: Ui,
1179
- isHTMLForm: $i,
1180
- hasOwnProperty: Tn,
1181
- hasOwnProp: Tn,
1175
+ endsWith: Vi,
1176
+ toArray: Li,
1177
+ forEachEntry: Ui,
1178
+ matchAll: $i,
1179
+ isHTMLForm: Hi,
1180
+ hasOwnProperty: _n,
1181
+ hasOwnProp: _n,
1182
1182
  // an alias to avoid ESLint no-prototype-builtins detection
1183
1183
  reduceDescriptors: ks,
1184
- freezeMethods: Pi,
1185
- toObjectSet: zi,
1186
- toCamelCase: Hi,
1187
- noop: Zi,
1188
- toFiniteNumber: qi,
1184
+ freezeMethods: zi,
1185
+ toObjectSet: Zi,
1186
+ toCamelCase: Bi,
1187
+ noop: qi,
1188
+ toFiniteNumber: ji,
1189
1189
  findKey: ws,
1190
1190
  global: Ss,
1191
1191
  isContextDefined: bs,
1192
1192
  ALPHABET: Ts,
1193
- generateString: ji,
1194
- isSpecCompliantForm: Gi,
1195
- toJSONObject: Yi,
1196
- isAsyncFn: Ji,
1197
- isThenable: Ki
1193
+ generateString: Gi,
1194
+ isSpecCompliantForm: Yi,
1195
+ toJSONObject: Ji,
1196
+ isAsyncFn: Ki,
1197
+ isThenable: Qi
1198
1198
  };
1199
- function k(t, e, n, s, r) {
1199
+ function T(t, e, n, s, r) {
1200
1200
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), s && (this.request = s), r && (this.response = r);
1201
1201
  }
1202
- d.inherits(k, Error, {
1202
+ d.inherits(T, Error, {
1203
1203
  toJSON: function() {
1204
1204
  return {
1205
1205
  // Standard
@@ -1220,7 +1220,7 @@ d.inherits(k, Error, {
1220
1220
  };
1221
1221
  }
1222
1222
  });
1223
- const _s = k.prototype, Os = {};
1223
+ const _s = T.prototype, Os = {};
1224
1224
  [
1225
1225
  "ERR_BAD_OPTION_VALUE",
1226
1226
  "ERR_BAD_OPTION",
@@ -1238,30 +1238,30 @@ const _s = k.prototype, Os = {};
1238
1238
  ].forEach((t) => {
1239
1239
  Os[t] = { value: t };
1240
1240
  });
1241
- Object.defineProperties(k, Os);
1241
+ Object.defineProperties(T, Os);
1242
1242
  Object.defineProperty(_s, "isAxiosError", { value: !0 });
1243
- k.from = (t, e, n, s, r, i) => {
1243
+ T.from = (t, e, n, s, r, i) => {
1244
1244
  const o = Object.create(_s);
1245
1245
  return d.toFlatObject(t, o, function(c) {
1246
1246
  return c !== Error.prototype;
1247
- }, (a) => a !== "isAxiosError"), k.call(o, t.message, e, n, s, r), o.cause = t, o.name = t.name, i && Object.assign(o, i), o;
1247
+ }, (a) => a !== "isAxiosError"), T.call(o, t.message, e, n, s, r), o.cause = t, o.name = t.name, i && Object.assign(o, i), o;
1248
1248
  };
1249
- const Qi = null;
1249
+ const Xi = null;
1250
1250
  function qt(t) {
1251
1251
  return d.isPlainObject(t) || d.isArray(t);
1252
1252
  }
1253
1253
  function Es(t) {
1254
1254
  return d.endsWith(t, "[]") ? t.slice(0, -2) : t;
1255
1255
  }
1256
- function On(t, e, n) {
1256
+ function En(t, e, n) {
1257
1257
  return t ? t.concat(e).map(function(r, i) {
1258
1258
  return r = Es(r), !n && i ? "[" + r + "]" : r;
1259
1259
  }).join(n ? "." : "") : e;
1260
1260
  }
1261
- function Xi(t) {
1261
+ function eo(t) {
1262
1262
  return d.isArray(t) && !t.some(qt);
1263
1263
  }
1264
- const eo = d.toFlatObject(d, {}, null, function(e) {
1264
+ const to = d.toFlatObject(d, {}, null, function(e) {
1265
1265
  return /^is[A-Z]/.test(e);
1266
1266
  });
1267
1267
  function bt(t, e, n) {
@@ -1271,8 +1271,8 @@ function bt(t, e, n) {
1271
1271
  metaTokens: !0,
1272
1272
  dots: !1,
1273
1273
  indexes: !1
1274
- }, !1, function(g, E) {
1275
- return !d.isUndefined(E[g]);
1274
+ }, !1, function(g, O) {
1275
+ return !d.isUndefined(O[g]);
1276
1276
  });
1277
1277
  const s = n.metaTokens, r = n.visitor || l, i = n.dots, o = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(e);
1278
1278
  if (!d.isFunction(r))
@@ -1283,26 +1283,26 @@ function bt(t, e, n) {
1283
1283
  if (d.isDate(f))
1284
1284
  return f.toISOString();
1285
1285
  if (!c && d.isBlob(f))
1286
- throw new k("Blob is not supported. Use a Buffer instead.");
1286
+ throw new T("Blob is not supported. Use a Buffer instead.");
1287
1287
  return d.isArrayBuffer(f) || d.isTypedArray(f) ? c && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
1288
1288
  }
1289
- function l(f, g, E) {
1289
+ function l(f, g, O) {
1290
1290
  let C = f;
1291
- if (f && !E && typeof f == "object") {
1291
+ if (f && !O && typeof f == "object") {
1292
1292
  if (d.endsWith(g, "{}"))
1293
1293
  g = s ? g : g.slice(0, -2), f = JSON.stringify(f);
1294
- else if (d.isArray(f) && Xi(f) || (d.isFileList(f) || d.endsWith(g, "[]")) && (C = d.toArray(f)))
1294
+ else if (d.isArray(f) && eo(f) || (d.isFileList(f) || d.endsWith(g, "[]")) && (C = d.toArray(f)))
1295
1295
  return g = Es(g), C.forEach(function(ne, I) {
1296
1296
  !(d.isUndefined(ne) || ne === null) && e.append(
1297
1297
  // eslint-disable-next-line no-nested-ternary
1298
- o === !0 ? On([g], I, i) : o === null ? g : g + "[]",
1298
+ o === !0 ? En([g], I, i) : o === null ? g : g + "[]",
1299
1299
  u(ne)
1300
1300
  );
1301
1301
  }), !1;
1302
1302
  }
1303
- return qt(f) ? !0 : (e.append(On(E, g, i), u(f)), !1);
1303
+ return qt(f) ? !0 : (e.append(En(O, g, i), u(f)), !1);
1304
1304
  }
1305
- const h = [], p = Object.assign(eo, {
1305
+ const h = [], p = Object.assign(to, {
1306
1306
  defaultVisitor: l,
1307
1307
  convertValue: u,
1308
1308
  isVisitable: qt
@@ -1326,7 +1326,7 @@ function bt(t, e, n) {
1326
1326
  throw new TypeError("data must be an object");
1327
1327
  return m(t), e;
1328
1328
  }
1329
- function En(t) {
1329
+ function vn(t) {
1330
1330
  const e = {
1331
1331
  "!": "%21",
1332
1332
  "'": "%27",
@@ -1340,36 +1340,36 @@ function En(t) {
1340
1340
  return e[s];
1341
1341
  });
1342
1342
  }
1343
- function rn(t, e) {
1343
+ function on(t, e) {
1344
1344
  this._pairs = [], t && bt(t, this, e);
1345
1345
  }
1346
- const vs = rn.prototype;
1346
+ const vs = on.prototype;
1347
1347
  vs.append = function(e, n) {
1348
1348
  this._pairs.push([e, n]);
1349
1349
  };
1350
1350
  vs.toString = function(e) {
1351
1351
  const n = e ? function(s) {
1352
- return e.call(this, s, En);
1353
- } : En;
1352
+ return e.call(this, s, vn);
1353
+ } : vn;
1354
1354
  return this._pairs.map(function(r) {
1355
1355
  return n(r[0]) + "=" + n(r[1]);
1356
1356
  }, "").join("&");
1357
1357
  };
1358
- function to(t) {
1358
+ function no(t) {
1359
1359
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1360
1360
  }
1361
1361
  function Cs(t, e, n) {
1362
1362
  if (!e)
1363
1363
  return t;
1364
- const s = n && n.encode || to, r = n && n.serialize;
1364
+ const s = n && n.encode || no, r = n && n.serialize;
1365
1365
  let i;
1366
- if (r ? i = r(e, n) : i = d.isURLSearchParams(e) ? e.toString() : new rn(e, n).toString(s), i) {
1366
+ if (r ? i = r(e, n) : i = d.isURLSearchParams(e) ? e.toString() : new on(e, n).toString(s), i) {
1367
1367
  const o = t.indexOf("#");
1368
1368
  o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
1369
1369
  }
1370
1370
  return t;
1371
1371
  }
1372
- class no {
1372
+ class so {
1373
1373
  constructor() {
1374
1374
  this.handlers = [];
1375
1375
  }
@@ -1423,36 +1423,36 @@ class no {
1423
1423
  });
1424
1424
  }
1425
1425
  }
1426
- const vn = no, Ns = {
1426
+ const Cn = so, Ns = {
1427
1427
  silentJSONParsing: !0,
1428
1428
  forcedJSONParsing: !0,
1429
1429
  clarifyTimeoutError: !1
1430
- }, so = typeof URLSearchParams < "u" ? URLSearchParams : rn, ro = typeof FormData < "u" ? FormData : null, io = typeof Blob < "u" ? Blob : null, oo = (() => {
1430
+ }, ro = typeof URLSearchParams < "u" ? URLSearchParams : on, io = typeof FormData < "u" ? FormData : null, oo = typeof Blob < "u" ? Blob : null, ao = (() => {
1431
1431
  let t;
1432
1432
  return typeof navigator < "u" && ((t = navigator.product) === "ReactNative" || t === "NativeScript" || t === "NS") ? !1 : typeof window < "u" && typeof document < "u";
1433
- })(), ao = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1433
+ })(), co = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1434
1434
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), ee = {
1435
1435
  isBrowser: !0,
1436
1436
  classes: {
1437
- URLSearchParams: so,
1438
- FormData: ro,
1439
- Blob: io
1437
+ URLSearchParams: ro,
1438
+ FormData: io,
1439
+ Blob: oo
1440
1440
  },
1441
- isStandardBrowserEnv: oo,
1442
- isStandardBrowserWebWorkerEnv: ao,
1441
+ isStandardBrowserEnv: ao,
1442
+ isStandardBrowserWebWorkerEnv: co,
1443
1443
  protocols: ["http", "https", "file", "blob", "url", "data"]
1444
1444
  };
1445
- function co(t, e) {
1445
+ function uo(t, e) {
1446
1446
  return bt(t, new ee.classes.URLSearchParams(), Object.assign({
1447
1447
  visitor: function(n, s, r, i) {
1448
1448
  return ee.isNode && d.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
1449
1449
  }
1450
1450
  }, e));
1451
1451
  }
1452
- function uo(t) {
1452
+ function lo(t) {
1453
1453
  return d.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
1454
1454
  }
1455
- function lo(t) {
1455
+ function ho(t) {
1456
1456
  const e = {}, n = Object.keys(t);
1457
1457
  let s;
1458
1458
  const r = n.length;
@@ -1465,20 +1465,20 @@ function Is(t) {
1465
1465
  function e(n, s, r, i) {
1466
1466
  let o = n[i++];
1467
1467
  const a = Number.isFinite(+o), c = i >= n.length;
1468
- return o = !o && d.isArray(r) ? r.length : o, c ? (d.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !a) : ((!r[o] || !d.isObject(r[o])) && (r[o] = []), e(n, s, r[o], i) && d.isArray(r[o]) && (r[o] = lo(r[o])), !a);
1468
+ return o = !o && d.isArray(r) ? r.length : o, c ? (d.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !a) : ((!r[o] || !d.isObject(r[o])) && (r[o] = []), e(n, s, r[o], i) && d.isArray(r[o]) && (r[o] = ho(r[o])), !a);
1469
1469
  }
1470
1470
  if (d.isFormData(t) && d.isFunction(t.entries)) {
1471
1471
  const n = {};
1472
1472
  return d.forEachEntry(t, (s, r) => {
1473
- e(uo(s), r, n, 0);
1473
+ e(lo(s), r, n, 0);
1474
1474
  }), n;
1475
1475
  }
1476
1476
  return null;
1477
1477
  }
1478
- const ho = {
1478
+ const fo = {
1479
1479
  "Content-Type": void 0
1480
1480
  };
1481
- function fo(t, e, n) {
1481
+ function mo(t, e, n) {
1482
1482
  if (d.isString(t))
1483
1483
  try {
1484
1484
  return (e || JSON.parse)(t), d.trim(t);
@@ -1504,7 +1504,7 @@ const kt = {
1504
1504
  let a;
1505
1505
  if (i) {
1506
1506
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
1507
- return co(e, this.formSerializer).toString();
1507
+ return uo(e, this.formSerializer).toString();
1508
1508
  if ((a = d.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
1509
1509
  const c = this.env && this.env.FormData;
1510
1510
  return bt(
@@ -1514,7 +1514,7 @@ const kt = {
1514
1514
  );
1515
1515
  }
1516
1516
  }
1517
- return i || r ? (n.setContentType("application/json", !1), fo(e)) : e;
1517
+ return i || r ? (n.setContentType("application/json", !1), mo(e)) : e;
1518
1518
  }],
1519
1519
  transformResponse: [function(e) {
1520
1520
  const n = this.transitional || kt.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
@@ -1524,7 +1524,7 @@ const kt = {
1524
1524
  return JSON.parse(e);
1525
1525
  } catch (a) {
1526
1526
  if (o)
1527
- throw a.name === "SyntaxError" ? k.from(a, k.ERR_BAD_RESPONSE, this, null, this.response) : a;
1527
+ throw a.name === "SyntaxError" ? T.from(a, T.ERR_BAD_RESPONSE, this, null, this.response) : a;
1528
1528
  }
1529
1529
  }
1530
1530
  return e;
@@ -1555,9 +1555,9 @@ d.forEach(["delete", "get", "head"], function(e) {
1555
1555
  kt.headers[e] = {};
1556
1556
  });
1557
1557
  d.forEach(["post", "put", "patch"], function(e) {
1558
- kt.headers[e] = d.merge(ho);
1558
+ kt.headers[e] = d.merge(fo);
1559
1559
  });
1560
- const on = kt, mo = d.toObjectSet([
1560
+ const an = kt, yo = d.toObjectSet([
1561
1561
  "age",
1562
1562
  "authorization",
1563
1563
  "content-length",
@@ -1575,28 +1575,28 @@ const on = kt, mo = d.toObjectSet([
1575
1575
  "referer",
1576
1576
  "retry-after",
1577
1577
  "user-agent"
1578
- ]), yo = (t) => {
1578
+ ]), po = (t) => {
1579
1579
  const e = {};
1580
1580
  let n, s, r;
1581
1581
  return t && t.split(`
1582
1582
  `).forEach(function(o) {
1583
- r = o.indexOf(":"), n = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!n || e[n] && mo[n]) && (n === "set-cookie" ? e[n] ? e[n].push(s) : e[n] = [s] : e[n] = e[n] ? e[n] + ", " + s : s);
1583
+ r = o.indexOf(":"), n = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!n || e[n] && yo[n]) && (n === "set-cookie" ? e[n] ? e[n].push(s) : e[n] = [s] : e[n] = e[n] ? e[n] + ", " + s : s);
1584
1584
  }), e;
1585
- }, Cn = Symbol("internals");
1585
+ }, Nn = Symbol("internals");
1586
1586
  function Fe(t) {
1587
1587
  return t && String(t).trim().toLowerCase();
1588
1588
  }
1589
1589
  function at(t) {
1590
1590
  return t === !1 || t == null ? t : d.isArray(t) ? t.map(at) : String(t);
1591
1591
  }
1592
- function po(t) {
1592
+ function go(t) {
1593
1593
  const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1594
1594
  let s;
1595
1595
  for (; s = n.exec(t); )
1596
1596
  e[s[1]] = s[2];
1597
1597
  return e;
1598
1598
  }
1599
- const go = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
1599
+ const wo = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
1600
1600
  function Dt(t, e, n, s, r) {
1601
1601
  if (d.isFunction(s))
1602
1602
  return s.call(this, e, n);
@@ -1607,10 +1607,10 @@ function Dt(t, e, n, s, r) {
1607
1607
  return s.test(e);
1608
1608
  }
1609
1609
  }
1610
- function wo(t) {
1610
+ function So(t) {
1611
1611
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, s) => n.toUpperCase() + s);
1612
1612
  }
1613
- function So(t, e) {
1613
+ function bo(t, e) {
1614
1614
  const n = d.toCamelCase(" " + e);
1615
1615
  ["get", "set", "has"].forEach((s) => {
1616
1616
  Object.defineProperty(t, s + n, {
@@ -1635,7 +1635,7 @@ class Tt {
1635
1635
  (!h || r[h] === void 0 || u === !0 || u === void 0 && r[h] !== !1) && (r[h || c] = at(a));
1636
1636
  }
1637
1637
  const o = (a, c) => d.forEach(a, (u, l) => i(u, l, c));
1638
- return d.isPlainObject(e) || e instanceof this.constructor ? o(e, n) : d.isString(e) && (e = e.trim()) && !go(e) ? o(yo(e), n) : e != null && i(n, e, s), this;
1638
+ return d.isPlainObject(e) || e instanceof this.constructor ? o(e, n) : d.isString(e) && (e = e.trim()) && !wo(e) ? o(po(e), n) : e != null && i(n, e, s), this;
1639
1639
  }
1640
1640
  get(e, n) {
1641
1641
  if (e = Fe(e), e) {
@@ -1645,7 +1645,7 @@ class Tt {
1645
1645
  if (!n)
1646
1646
  return r;
1647
1647
  if (n === !0)
1648
- return po(r);
1648
+ return go(r);
1649
1649
  if (d.isFunction(n))
1650
1650
  return n.call(this, r, s);
1651
1651
  if (d.isRegExp(n))
@@ -1689,7 +1689,7 @@ class Tt {
1689
1689
  n[o] = at(r), delete n[i];
1690
1690
  return;
1691
1691
  }
1692
- const a = e ? wo(i) : String(i).trim();
1692
+ const a = e ? So(i) : String(i).trim();
1693
1693
  a !== i && delete n[i], n[a] = at(r), s[a] = !0;
1694
1694
  }), this;
1695
1695
  }
@@ -1720,12 +1720,12 @@ class Tt {
1720
1720
  return n.forEach((r) => s.set(r)), s;
1721
1721
  }
1722
1722
  static accessor(e) {
1723
- const s = (this[Cn] = this[Cn] = {
1723
+ const s = (this[Nn] = this[Nn] = {
1724
1724
  accessors: {}
1725
1725
  }).accessors, r = this.prototype;
1726
1726
  function i(o) {
1727
1727
  const a = Fe(o);
1728
- s[a] || (So(r, o), s[a] = !0);
1728
+ s[a] || (bo(r, o), s[a] = !0);
1729
1729
  }
1730
1730
  return d.isArray(e) ? e.forEach(i) : i(e), this;
1731
1731
  }
@@ -1735,7 +1735,7 @@ d.freezeMethods(Tt.prototype);
1735
1735
  d.freezeMethods(Tt);
1736
1736
  const re = Tt;
1737
1737
  function Mt(t, e) {
1738
- const n = this || on, s = e || n, r = re.from(s.headers);
1738
+ const n = this || an, s = e || n, r = re.from(s.headers);
1739
1739
  let i = s.data;
1740
1740
  return d.forEach(t, function(a) {
1741
1741
  i = a.call(n, i, r.normalize(), e ? e.status : void 0);
@@ -1745,22 +1745,22 @@ function xs(t) {
1745
1745
  return !!(t && t.__CANCEL__);
1746
1746
  }
1747
1747
  function ze(t, e, n) {
1748
- k.call(this, t ?? "canceled", k.ERR_CANCELED, e, n), this.name = "CanceledError";
1748
+ T.call(this, t ?? "canceled", T.ERR_CANCELED, e, n), this.name = "CanceledError";
1749
1749
  }
1750
- d.inherits(ze, k, {
1750
+ d.inherits(ze, T, {
1751
1751
  __CANCEL__: !0
1752
1752
  });
1753
- function bo(t, e, n) {
1753
+ function ko(t, e, n) {
1754
1754
  const s = n.config.validateStatus;
1755
- !n.status || !s || s(n.status) ? t(n) : e(new k(
1755
+ !n.status || !s || s(n.status) ? t(n) : e(new T(
1756
1756
  "Request failed with status code " + n.status,
1757
- [k.ERR_BAD_REQUEST, k.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1757
+ [T.ERR_BAD_REQUEST, T.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1758
1758
  n.config,
1759
1759
  n.request,
1760
1760
  n
1761
1761
  ));
1762
1762
  }
1763
- const ko = ee.isStandardBrowserEnv ? (
1763
+ const To = ee.isStandardBrowserEnv ? (
1764
1764
  // Standard browser envs support document.cookie
1765
1765
  function() {
1766
1766
  return {
@@ -1791,16 +1791,16 @@ const ko = ee.isStandardBrowserEnv ? (
1791
1791
  };
1792
1792
  }()
1793
1793
  );
1794
- function To(t) {
1794
+ function _o(t) {
1795
1795
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
1796
1796
  }
1797
- function _o(t, e) {
1797
+ function Oo(t, e) {
1798
1798
  return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t;
1799
1799
  }
1800
1800
  function Ds(t, e) {
1801
- return t && !To(e) ? _o(t, e) : e;
1801
+ return t && !_o(e) ? Oo(t, e) : e;
1802
1802
  }
1803
- const Oo = ee.isStandardBrowserEnv ? (
1803
+ const Eo = ee.isStandardBrowserEnv ? (
1804
1804
  // Standard browser envs have full support of the APIs needed to test
1805
1805
  // whether the request URL is of the same origin as current location.
1806
1806
  function() {
@@ -1832,11 +1832,11 @@ const Oo = ee.isStandardBrowserEnv ? (
1832
1832
  };
1833
1833
  }()
1834
1834
  );
1835
- function Eo(t) {
1835
+ function vo(t) {
1836
1836
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
1837
1837
  return e && e[1] || "";
1838
1838
  }
1839
- function vo(t, e) {
1839
+ function Co(t, e) {
1840
1840
  t = t || 10;
1841
1841
  const n = new Array(t), s = new Array(t);
1842
1842
  let r = 0, i = 0, o;
@@ -1852,9 +1852,9 @@ function vo(t, e) {
1852
1852
  return m ? Math.round(p * 1e3 / m) : void 0;
1853
1853
  };
1854
1854
  }
1855
- function Nn(t, e) {
1855
+ function In(t, e) {
1856
1856
  let n = 0;
1857
- const s = vo(50, 250);
1857
+ const s = Co(50, 250);
1858
1858
  return (r) => {
1859
1859
  const i = r.loaded, o = r.lengthComputable ? r.total : void 0, a = i - n, c = s(a), u = i <= o;
1860
1860
  n = i;
@@ -1870,7 +1870,7 @@ function Nn(t, e) {
1870
1870
  l[e ? "download" : "upload"] = !0, t(l);
1871
1871
  };
1872
1872
  }
1873
- const Co = typeof XMLHttpRequest < "u", No = Co && function(t) {
1873
+ const No = typeof XMLHttpRequest < "u", Io = No && function(t) {
1874
1874
  return new Promise(function(n, s) {
1875
1875
  let r = t.data;
1876
1876
  const i = re.from(t.headers).normalize(), o = t.responseType;
@@ -1899,7 +1899,7 @@ const Co = typeof XMLHttpRequest < "u", No = Co && function(t) {
1899
1899
  config: t,
1900
1900
  request: u
1901
1901
  };
1902
- bo(function(C) {
1902
+ ko(function(C) {
1903
1903
  n(C), c();
1904
1904
  }, function(C) {
1905
1905
  s(C), c();
@@ -1908,37 +1908,37 @@ const Co = typeof XMLHttpRequest < "u", No = Co && function(t) {
1908
1908
  if ("onloadend" in u ? u.onloadend = h : u.onreadystatechange = function() {
1909
1909
  !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(h);
1910
1910
  }, u.onabort = function() {
1911
- u && (s(new k("Request aborted", k.ECONNABORTED, t, u)), u = null);
1911
+ u && (s(new T("Request aborted", T.ECONNABORTED, t, u)), u = null);
1912
1912
  }, u.onerror = function() {
1913
- s(new k("Network Error", k.ERR_NETWORK, t, u)), u = null;
1913
+ s(new T("Network Error", T.ERR_NETWORK, t, u)), u = null;
1914
1914
  }, u.ontimeout = function() {
1915
1915
  let f = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
1916
1916
  const g = t.transitional || Ns;
1917
- t.timeoutErrorMessage && (f = t.timeoutErrorMessage), s(new k(
1917
+ t.timeoutErrorMessage && (f = t.timeoutErrorMessage), s(new T(
1918
1918
  f,
1919
- g.clarifyTimeoutError ? k.ETIMEDOUT : k.ECONNABORTED,
1919
+ g.clarifyTimeoutError ? T.ETIMEDOUT : T.ECONNABORTED,
1920
1920
  t,
1921
1921
  u
1922
1922
  )), u = null;
1923
1923
  }, ee.isStandardBrowserEnv) {
1924
- const m = (t.withCredentials || Oo(l)) && t.xsrfCookieName && ko.read(t.xsrfCookieName);
1924
+ const m = (t.withCredentials || Eo(l)) && t.xsrfCookieName && To.read(t.xsrfCookieName);
1925
1925
  m && i.set(t.xsrfHeaderName, m);
1926
1926
  }
1927
1927
  r === void 0 && i.setContentType(null), "setRequestHeader" in u && d.forEach(i.toJSON(), function(f, g) {
1928
1928
  u.setRequestHeader(g, f);
1929
- }), d.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), o && o !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", Nn(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Nn(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (m) => {
1929
+ }), d.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), o && o !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", In(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", In(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (m) => {
1930
1930
  u && (s(!m || m.type ? new ze(null, t, u) : m), u.abort(), u = null);
1931
1931
  }, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
1932
- const p = Eo(l);
1932
+ const p = vo(l);
1933
1933
  if (p && ee.protocols.indexOf(p) === -1) {
1934
- s(new k("Unsupported protocol " + p + ":", k.ERR_BAD_REQUEST, t));
1934
+ s(new T("Unsupported protocol " + p + ":", T.ERR_BAD_REQUEST, t));
1935
1935
  return;
1936
1936
  }
1937
1937
  u.send(r || null);
1938
1938
  });
1939
1939
  }, ct = {
1940
- http: Qi,
1941
- xhr: No
1940
+ http: Xi,
1941
+ xhr: Io
1942
1942
  };
1943
1943
  d.forEach(ct, (t, e) => {
1944
1944
  if (t) {
@@ -1949,7 +1949,7 @@ d.forEach(ct, (t, e) => {
1949
1949
  Object.defineProperty(t, "adapterName", { value: e });
1950
1950
  }
1951
1951
  });
1952
- const Io = {
1952
+ const xo = {
1953
1953
  getAdapter: (t) => {
1954
1954
  t = d.isArray(t) ? t : [t];
1955
1955
  const { length: e } = t;
@@ -1957,7 +1957,7 @@ const Io = {
1957
1957
  for (let r = 0; r < e && (n = t[r], !(s = d.isString(n) ? ct[n.toLowerCase()] : n)); r++)
1958
1958
  ;
1959
1959
  if (!s)
1960
- throw s === !1 ? new k(
1960
+ throw s === !1 ? new T(
1961
1961
  `Adapter ${n} is not supported by the environment`,
1962
1962
  "ERR_NOT_SUPPORT"
1963
1963
  ) : new Error(
@@ -1973,11 +1973,11 @@ function At(t) {
1973
1973
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1974
1974
  throw new ze(null, t);
1975
1975
  }
1976
- function In(t) {
1976
+ function xn(t) {
1977
1977
  return At(t), t.headers = re.from(t.headers), t.data = Mt.call(
1978
1978
  t,
1979
1979
  t.transformRequest
1980
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Io.getAdapter(t.adapter || on.adapter)(t).then(function(s) {
1980
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), xo.getAdapter(t.adapter || an.adapter)(t).then(function(s) {
1981
1981
  return At(t), s.data = Mt.call(
1982
1982
  t,
1983
1983
  t.transformResponse,
@@ -1991,7 +1991,7 @@ function In(t) {
1991
1991
  ), s.response.headers = re.from(s.response.headers))), Promise.reject(s);
1992
1992
  });
1993
1993
  }
1994
- const xn = (t) => t instanceof re ? t.toJSON() : t;
1994
+ const Dn = (t) => t instanceof re ? t.toJSON() : t;
1995
1995
  function Ce(t, e) {
1996
1996
  e = e || {};
1997
1997
  const n = {};
@@ -2050,31 +2050,31 @@ function Ce(t, e) {
2050
2050
  socketPath: o,
2051
2051
  responseEncoding: o,
2052
2052
  validateStatus: a,
2053
- headers: (u, l) => r(xn(u), xn(l), !0)
2053
+ headers: (u, l) => r(Dn(u), Dn(l), !0)
2054
2054
  };
2055
2055
  return d.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
2056
2056
  const h = c[l] || r, p = h(t[l], e[l], l);
2057
2057
  d.isUndefined(p) && h !== a || (n[l] = p);
2058
2058
  }), n;
2059
2059
  }
2060
- const Ms = "1.4.0", an = {};
2060
+ const Ms = "1.4.0", cn = {};
2061
2061
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
2062
- an[t] = function(s) {
2062
+ cn[t] = function(s) {
2063
2063
  return typeof s === t || "a" + (e < 1 ? "n " : " ") + t;
2064
2064
  };
2065
2065
  });
2066
- const Dn = {};
2067
- an.transitional = function(e, n, s) {
2066
+ const Mn = {};
2067
+ cn.transitional = function(e, n, s) {
2068
2068
  function r(i, o) {
2069
2069
  return "[Axios v" + Ms + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
2070
2070
  }
2071
2071
  return (i, o, a) => {
2072
2072
  if (e === !1)
2073
- throw new k(
2073
+ throw new T(
2074
2074
  r(o, " has been removed" + (n ? " in " + n : "")),
2075
- k.ERR_DEPRECATED
2075
+ T.ERR_DEPRECATED
2076
2076
  );
2077
- return n && !Dn[o] && (Dn[o] = !0, console.warn(
2077
+ return n && !Mn[o] && (Mn[o] = !0, console.warn(
2078
2078
  r(
2079
2079
  o,
2080
2080
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -2082,9 +2082,9 @@ an.transitional = function(e, n, s) {
2082
2082
  )), e ? e(i, o, a) : !0;
2083
2083
  };
2084
2084
  };
2085
- function xo(t, e, n) {
2085
+ function Do(t, e, n) {
2086
2086
  if (typeof t != "object")
2087
- throw new k("options must be an object", k.ERR_BAD_OPTION_VALUE);
2087
+ throw new T("options must be an object", T.ERR_BAD_OPTION_VALUE);
2088
2088
  const s = Object.keys(t);
2089
2089
  let r = s.length;
2090
2090
  for (; r-- > 0; ) {
@@ -2092,22 +2092,22 @@ function xo(t, e, n) {
2092
2092
  if (o) {
2093
2093
  const a = t[i], c = a === void 0 || o(a, i, t);
2094
2094
  if (c !== !0)
2095
- throw new k("option " + i + " must be " + c, k.ERR_BAD_OPTION_VALUE);
2095
+ throw new T("option " + i + " must be " + c, T.ERR_BAD_OPTION_VALUE);
2096
2096
  continue;
2097
2097
  }
2098
2098
  if (n !== !0)
2099
- throw new k("Unknown option " + i, k.ERR_BAD_OPTION);
2099
+ throw new T("Unknown option " + i, T.ERR_BAD_OPTION);
2100
2100
  }
2101
2101
  }
2102
2102
  const jt = {
2103
- assertOptions: xo,
2104
- validators: an
2103
+ assertOptions: Do,
2104
+ validators: cn
2105
2105
  }, oe = jt.validators;
2106
2106
  class ht {
2107
2107
  constructor(e) {
2108
2108
  this.defaults = e, this.interceptors = {
2109
- request: new vn(),
2110
- response: new vn()
2109
+ request: new Cn(),
2110
+ response: new Cn()
2111
2111
  };
2112
2112
  }
2113
2113
  /**
@@ -2152,7 +2152,7 @@ class ht {
2152
2152
  });
2153
2153
  let l, h = 0, p;
2154
2154
  if (!c) {
2155
- const f = [In.bind(this), void 0];
2155
+ const f = [xn.bind(this), void 0];
2156
2156
  for (f.unshift.apply(f, a), f.push.apply(f, u), p = f.length, l = Promise.resolve(n); h < p; )
2157
2157
  l = l.then(f[h++], f[h++]);
2158
2158
  return l;
@@ -2163,13 +2163,13 @@ class ht {
2163
2163
  const f = a[h++], g = a[h++];
2164
2164
  try {
2165
2165
  m = f(m);
2166
- } catch (E) {
2167
- g.call(this, E);
2166
+ } catch (O) {
2167
+ g.call(this, O);
2168
2168
  break;
2169
2169
  }
2170
2170
  }
2171
2171
  try {
2172
- l = In.call(this, m);
2172
+ l = xn.call(this, m);
2173
2173
  } catch (f) {
2174
2174
  return Promise.reject(f);
2175
2175
  }
@@ -2208,7 +2208,7 @@ d.forEach(["post", "put", "patch"], function(e) {
2208
2208
  ht.prototype[e] = n(), ht.prototype[e + "Form"] = n(!0);
2209
2209
  });
2210
2210
  const ut = ht;
2211
- class cn {
2211
+ class un {
2212
2212
  constructor(e) {
2213
2213
  if (typeof e != "function")
2214
2214
  throw new TypeError("executor must be a function.");
@@ -2269,20 +2269,20 @@ class cn {
2269
2269
  static source() {
2270
2270
  let e;
2271
2271
  return {
2272
- token: new cn(function(r) {
2272
+ token: new un(function(r) {
2273
2273
  e = r;
2274
2274
  }),
2275
2275
  cancel: e
2276
2276
  };
2277
2277
  }
2278
2278
  }
2279
- const Do = cn;
2280
- function Mo(t) {
2279
+ const Mo = un;
2280
+ function Ao(t) {
2281
2281
  return function(n) {
2282
2282
  return t.apply(null, n);
2283
2283
  };
2284
2284
  }
2285
- function Ao(t) {
2285
+ function Fo(t) {
2286
2286
  return d.isObject(t) && t.isAxiosError === !0;
2287
2287
  }
2288
2288
  const Gt = {
@@ -2353,34 +2353,34 @@ const Gt = {
2353
2353
  Object.entries(Gt).forEach(([t, e]) => {
2354
2354
  Gt[e] = t;
2355
2355
  });
2356
- const Fo = Gt;
2356
+ const Ro = Gt;
2357
2357
  function As(t) {
2358
2358
  const e = new ut(t), n = ys(ut.prototype.request, e);
2359
2359
  return d.extend(n, ut.prototype, e, { allOwnKeys: !0 }), d.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(r) {
2360
2360
  return As(Ce(t, r));
2361
2361
  }, n;
2362
2362
  }
2363
- const F = As(on);
2364
- F.Axios = ut;
2365
- F.CanceledError = ze;
2366
- F.CancelToken = Do;
2367
- F.isCancel = xs;
2368
- F.VERSION = Ms;
2369
- F.toFormData = bt;
2370
- F.AxiosError = k;
2371
- F.Cancel = F.CanceledError;
2372
- F.all = function(e) {
2363
+ const R = As(an);
2364
+ R.Axios = ut;
2365
+ R.CanceledError = ze;
2366
+ R.CancelToken = Mo;
2367
+ R.isCancel = xs;
2368
+ R.VERSION = Ms;
2369
+ R.toFormData = bt;
2370
+ R.AxiosError = T;
2371
+ R.Cancel = R.CanceledError;
2372
+ R.all = function(e) {
2373
2373
  return Promise.all(e);
2374
2374
  };
2375
- F.spread = Mo;
2376
- F.isAxiosError = Ao;
2377
- F.mergeConfig = Ce;
2378
- F.AxiosHeaders = re;
2379
- F.formToJSON = (t) => Is(d.isHTMLForm(t) ? new FormData(t) : t);
2380
- F.HttpStatusCode = Fo;
2381
- F.default = F;
2382
- const Ro = F, _t = async function(t) {
2383
- const e = t, n = window.VITE_BACKEND_URL ? window.VITE_BACKEND_URL : "http://172.27.39.27:3000", s = {
2375
+ R.spread = Ao;
2376
+ R.isAxiosError = Fo;
2377
+ R.mergeConfig = Ce;
2378
+ R.AxiosHeaders = re;
2379
+ R.formToJSON = (t) => Is(d.isHTMLForm(t) ? new FormData(t) : t);
2380
+ R.HttpStatusCode = Ro;
2381
+ R.default = R;
2382
+ const Vo = R, _t = async function(t) {
2383
+ const e = t, n = window.VITE_BACKEND_URL ? window.VITE_BACKEND_URL : "https://chatadmin-gw.dev.mp.gob.bo", s = {
2384
2384
  method: e.method,
2385
2385
  url: `${n}${e.url}`,
2386
2386
  headers: {
@@ -2390,12 +2390,12 @@ const Ro = F, _t = async function(t) {
2390
2390
  },
2391
2391
  data: e.data
2392
2392
  };
2393
- return Ro(s).then(async function(r) {
2393
+ return Vo(s).then(async function(r) {
2394
2394
  return r.data;
2395
2395
  }).catch(async function(r) {
2396
2396
  console.error(r);
2397
2397
  });
2398
- }, Vo = async (t) => {
2398
+ }, Lo = async (t) => {
2399
2399
  const e = {
2400
2400
  url: "/v1/message/list-messages",
2401
2401
  method: "POST",
@@ -2405,20 +2405,20 @@ const Ro = F, _t = async function(t) {
2405
2405
  return await _t(e).then((n) => n.response).catch((n) => {
2406
2406
  console.error(n);
2407
2407
  });
2408
- }, Lo = async (t, e) => await _t({
2408
+ }, Wo = async (t, e) => await _t({
2409
2409
  url: "/v1/message/send-message",
2410
2410
  method: "POST",
2411
2411
  data: t,
2412
2412
  token: e
2413
2413
  }).then((s) => s).catch((s) => {
2414
2414
  console.error(s);
2415
- }), Mn = async (t) => _t({
2415
+ }), An = async (t) => _t({
2416
2416
  url: "/v1/app-chats/web-chat",
2417
2417
  method: "GET",
2418
2418
  token: t
2419
2419
  }).then((n) => n).catch((n) => {
2420
2420
  console.error(n);
2421
- }), An = async (t, e) => {
2421
+ }), Fn = async (t, e) => {
2422
2422
  const n = {
2423
2423
  totalNoVistosCliente: 0,
2424
2424
  esCliente: !1
@@ -2432,50 +2432,50 @@ const Ro = F, _t = async function(t) {
2432
2432
  console.error(r);
2433
2433
  });
2434
2434
  };
2435
- function Wo(t) {
2435
+ function Uo(t) {
2436
2436
  return Rr() ? (Vr(t), !0) : !1;
2437
2437
  }
2438
2438
  function Fs(t) {
2439
- return typeof t == "function" ? t() : ls(t);
2439
+ return typeof t == "function" ? t() : ds(t);
2440
2440
  }
2441
- const Uo = typeof window < "u" && typeof document < "u";
2441
+ const $o = typeof window < "u" && typeof document < "u";
2442
2442
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2443
- const $o = (t) => t != null, Ft = () => {
2443
+ const Ho = (t) => t != null, Ft = () => {
2444
2444
  };
2445
2445
  function Rt(t) {
2446
2446
  var e;
2447
2447
  const n = Fs(t);
2448
2448
  return (e = n == null ? void 0 : n.$el) != null ? e : n;
2449
2449
  }
2450
- const Ho = Uo ? window : void 0;
2451
- function Bo() {
2452
- const t = $(!1), e = Lr();
2453
- return e && hs(() => {
2450
+ const Bo = $o ? window : void 0;
2451
+ function Po() {
2452
+ const t = B(!1), e = Lr();
2453
+ return e && fs(() => {
2454
2454
  t.value = !0;
2455
2455
  }, e), t;
2456
2456
  }
2457
- function Po(t) {
2458
- const e = Bo();
2459
- return ds(() => (e.value, !!t()));
2457
+ function zo(t) {
2458
+ const e = Po();
2459
+ return hs(() => (e.value, !!t()));
2460
2460
  }
2461
- function zo(t, e, n = {}) {
2461
+ function Zo(t, e, n = {}) {
2462
2462
  const {
2463
2463
  root: s,
2464
2464
  rootMargin: r = "0px",
2465
2465
  threshold: i = 0.1,
2466
- window: o = Ho,
2466
+ window: o = Bo,
2467
2467
  immediate: a = !0
2468
- } = n, c = Po(() => o && "IntersectionObserver" in o), u = ds(() => {
2468
+ } = n, c = zo(() => o && "IntersectionObserver" in o), u = hs(() => {
2469
2469
  const f = Fs(t);
2470
- return (Array.isArray(f) ? f : [f]).map(Rt).filter($o);
2470
+ return (Array.isArray(f) ? f : [f]).map(Rt).filter(Ho);
2471
2471
  });
2472
2472
  let l = Ft;
2473
- const h = $(a), p = c.value ? tn(
2473
+ const h = B(a), p = c.value ? tn(
2474
2474
  () => [u.value, Rt(s), h.value],
2475
2475
  ([f, g]) => {
2476
2476
  if (l(), !h.value || !f.length)
2477
2477
  return;
2478
- const E = new IntersectionObserver(
2478
+ const O = new IntersectionObserver(
2479
2479
  e,
2480
2480
  {
2481
2481
  root: Rt(g),
@@ -2483,15 +2483,15 @@ function zo(t, e, n = {}) {
2483
2483
  threshold: i
2484
2484
  }
2485
2485
  );
2486
- f.forEach((C) => C && E.observe(C)), l = () => {
2487
- E.disconnect(), l = Ft;
2486
+ f.forEach((C) => C && O.observe(C)), l = () => {
2487
+ O.disconnect(), l = Ft;
2488
2488
  };
2489
2489
  },
2490
2490
  { immediate: a, flush: "post" }
2491
2491
  ) : Ft, m = () => {
2492
2492
  l(), p(), h.value = !1;
2493
2493
  };
2494
- return Wo(m), {
2494
+ return Uo(m), {
2495
2495
  isSupported: c,
2496
2496
  isActive: h,
2497
2497
  pause() {
@@ -2505,17 +2505,17 @@ function zo(t, e, n = {}) {
2505
2505
  }
2506
2506
  class be extends Error {
2507
2507
  }
2508
- class Zo extends be {
2508
+ class qo extends be {
2509
2509
  constructor(e) {
2510
2510
  super(`Invalid DateTime: ${e.toMessage()}`);
2511
2511
  }
2512
2512
  }
2513
- class qo extends be {
2513
+ class jo extends be {
2514
2514
  constructor(e) {
2515
2515
  super(`Invalid Interval: ${e.toMessage()}`);
2516
2516
  }
2517
2517
  }
2518
- class jo extends be {
2518
+ class Go extends be {
2519
2519
  constructor(e) {
2520
2520
  super(`Invalid Duration: ${e.toMessage()}`);
2521
2521
  }
@@ -2527,7 +2527,7 @@ class Rs extends be {
2527
2527
  super(`Invalid unit ${e}`);
2528
2528
  }
2529
2529
  }
2530
- class H extends be {
2530
+ class P extends be {
2531
2531
  }
2532
2532
  class ae extends be {
2533
2533
  constructor() {
@@ -2542,7 +2542,7 @@ const y = "numeric", X = "short", z = "long", ft = {
2542
2542
  year: y,
2543
2543
  month: X,
2544
2544
  day: y
2545
- }, Go = {
2545
+ }, Yo = {
2546
2546
  year: y,
2547
2547
  month: X,
2548
2548
  day: y,
@@ -2620,7 +2620,7 @@ const y = "numeric", X = "short", z = "long", ft = {
2620
2620
  hour: y,
2621
2621
  minute: y,
2622
2622
  second: y
2623
- }, Yo = {
2623
+ }, Jo = {
2624
2624
  year: y,
2625
2625
  month: X,
2626
2626
  day: y,
@@ -2781,7 +2781,7 @@ class Ot extends Ze {
2781
2781
  }
2782
2782
  }
2783
2783
  let lt = {};
2784
- function Jo(t) {
2784
+ function Ko(t) {
2785
2785
  return lt[t] || (lt[t] = new Intl.DateTimeFormat("en-US", {
2786
2786
  hour12: !1,
2787
2787
  timeZone: t,
@@ -2794,7 +2794,7 @@ function Jo(t) {
2794
2794
  era: "short"
2795
2795
  })), lt[t];
2796
2796
  }
2797
- const Ko = {
2797
+ const Qo = {
2798
2798
  year: 0,
2799
2799
  month: 1,
2800
2800
  day: 2,
@@ -2803,14 +2803,14 @@ const Ko = {
2803
2803
  minute: 5,
2804
2804
  second: 6
2805
2805
  };
2806
- function Qo(t, e) {
2806
+ function Xo(t, e) {
2807
2807
  const n = t.format(e).replace(/\u200E/g, ""), s = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n), [, r, i, o, a, c, u, l] = s;
2808
2808
  return [o, r, i, a, c, u, l];
2809
2809
  }
2810
- function Xo(t, e) {
2810
+ function ea(t, e) {
2811
2811
  const n = t.formatToParts(e), s = [];
2812
2812
  for (let r = 0; r < n.length; r++) {
2813
- const { type: i, value: o } = n[r], a = Ko[i];
2813
+ const { type: i, value: o } = n[r], a = Qo[i];
2814
2814
  i === "era" ? s[a] = o : w(a) || (s[a] = parseInt(o, 10));
2815
2815
  }
2816
2816
  return s;
@@ -2887,8 +2887,8 @@ class ie extends Ze {
2887
2887
  const n = new Date(e);
2888
2888
  if (isNaN(n))
2889
2889
  return NaN;
2890
- const s = Jo(this.name);
2891
- let [r, i, o, a, c, u, l] = s.formatToParts ? Xo(s, n) : Qo(s, n);
2890
+ const s = Ko(this.name);
2891
+ let [r, i, o, a, c, u, l] = s.formatToParts ? ea(s, n) : Xo(s, n);
2892
2892
  a === "BC" && (r = -Math.abs(r) + 1);
2893
2893
  const p = vt({
2894
2894
  year: r,
@@ -2912,11 +2912,11 @@ class ie extends Ze {
2912
2912
  return this.valid;
2913
2913
  }
2914
2914
  }
2915
- let Fn = {};
2916
- function ea(t, e = {}) {
2915
+ let Rn = {};
2916
+ function ta(t, e = {}) {
2917
2917
  const n = JSON.stringify([t, e]);
2918
- let s = Fn[n];
2919
- return s || (s = new Intl.ListFormat(t, e), Fn[n] = s), s;
2918
+ let s = Rn[n];
2919
+ return s || (s = new Intl.ListFormat(t, e), Rn[n] = s), s;
2920
2920
  }
2921
2921
  let Yt = {};
2922
2922
  function Jt(t, e = {}) {
@@ -2925,31 +2925,31 @@ function Jt(t, e = {}) {
2925
2925
  return s || (s = new Intl.DateTimeFormat(t, e), Yt[n] = s), s;
2926
2926
  }
2927
2927
  let Kt = {};
2928
- function ta(t, e = {}) {
2928
+ function na(t, e = {}) {
2929
2929
  const n = JSON.stringify([t, e]);
2930
2930
  let s = Kt[n];
2931
2931
  return s || (s = new Intl.NumberFormat(t, e), Kt[n] = s), s;
2932
2932
  }
2933
2933
  let Qt = {};
2934
- function na(t, e = {}) {
2934
+ function sa(t, e = {}) {
2935
2935
  const { base: n, ...s } = e, r = JSON.stringify([t, s]);
2936
2936
  let i = Qt[r];
2937
2937
  return i || (i = new Intl.RelativeTimeFormat(t, e), Qt[r] = i), i;
2938
2938
  }
2939
2939
  let We = null;
2940
- function sa() {
2940
+ function ra() {
2941
2941
  return We || (We = new Intl.DateTimeFormat().resolvedOptions().locale, We);
2942
2942
  }
2943
- let Rn = {};
2944
- function ra(t) {
2945
- let e = Rn[t];
2943
+ let Vn = {};
2944
+ function ia(t) {
2945
+ let e = Vn[t];
2946
2946
  if (!e) {
2947
2947
  const n = new Intl.Locale(t);
2948
- e = "getWeekInfo" in n ? n.getWeekInfo() : n.weekInfo, Rn[t] = e;
2948
+ e = "getWeekInfo" in n ? n.getWeekInfo() : n.weekInfo, Vn[t] = e;
2949
2949
  }
2950
2950
  return e;
2951
2951
  }
2952
- function ia(t) {
2952
+ function oa(t) {
2953
2953
  const e = t.indexOf("-x-");
2954
2954
  e !== -1 && (t = t.substring(0, e));
2955
2955
  const n = t.indexOf("-u-");
@@ -2967,10 +2967,10 @@ function ia(t) {
2967
2967
  return [r, i, o];
2968
2968
  }
2969
2969
  }
2970
- function oa(t, e, n) {
2970
+ function aa(t, e, n) {
2971
2971
  return (n || e) && (t.includes("-u-") || (t += "-u"), n && (t += `-ca-${n}`), e && (t += `-nu-${e}`)), t;
2972
2972
  }
2973
- function aa(t) {
2973
+ function ca(t) {
2974
2974
  const e = [];
2975
2975
  for (let n = 1; n <= 12; n++) {
2976
2976
  const s = S.utc(2009, n, 1);
@@ -2978,7 +2978,7 @@ function aa(t) {
2978
2978
  }
2979
2979
  return e;
2980
2980
  }
2981
- function ca(t) {
2981
+ function ua(t) {
2982
2982
  const e = [];
2983
2983
  for (let n = 1; n <= 7; n++) {
2984
2984
  const s = S.utc(2016, 11, 13 + n);
@@ -2990,16 +2990,16 @@ function Xe(t, e, n, s) {
2990
2990
  const r = t.listingMode();
2991
2991
  return r === "error" ? null : r === "en" ? n(e) : s(e);
2992
2992
  }
2993
- function ua(t) {
2993
+ function la(t) {
2994
2994
  return t.numberingSystem && t.numberingSystem !== "latn" ? !1 : t.numberingSystem === "latn" || !t.locale || t.locale.startsWith("en") || new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem === "latn";
2995
2995
  }
2996
- class la {
2996
+ class da {
2997
2997
  constructor(e, n, s) {
2998
2998
  this.padTo = s.padTo || 0, this.floor = s.floor || !1;
2999
2999
  const { padTo: r, floor: i, ...o } = s;
3000
3000
  if (!n || Object.keys(o).length > 0) {
3001
3001
  const a = { useGrouping: !1, ...s };
3002
- s.padTo > 0 && (a.minimumIntegerDigits = s.padTo), this.inf = ta(e, a);
3002
+ s.padTo > 0 && (a.minimumIntegerDigits = s.padTo), this.inf = na(e, a);
3003
3003
  }
3004
3004
  }
3005
3005
  format(e) {
@@ -3007,12 +3007,12 @@ class la {
3007
3007
  const n = this.floor ? Math.floor(e) : e;
3008
3008
  return this.inf.format(n);
3009
3009
  } else {
3010
- const n = this.floor ? Math.floor(e) : hn(e, 3);
3010
+ const n = this.floor ? Math.floor(e) : fn(e, 3);
3011
3011
  return M(n, this.padTo);
3012
3012
  }
3013
3013
  }
3014
3014
  }
3015
- class da {
3015
+ class ha {
3016
3016
  constructor(e, n, s) {
3017
3017
  this.opts = s, this.originalZone = void 0;
3018
3018
  let r;
@@ -3049,18 +3049,18 @@ class da {
3049
3049
  return this.dtf.resolvedOptions();
3050
3050
  }
3051
3051
  }
3052
- class ha {
3052
+ class fa {
3053
3053
  constructor(e, n, s) {
3054
- this.opts = { style: "long", ...s }, !n && ar() && (this.rtf = na(e, s));
3054
+ this.opts = { style: "long", ...s }, !n && ar() && (this.rtf = sa(e, s));
3055
3055
  }
3056
3056
  format(e, n) {
3057
- return this.rtf ? this.rtf.format(e, n) : Ma(n, e, this.opts.numeric, this.opts.style !== "long");
3057
+ return this.rtf ? this.rtf.format(e, n) : Aa(n, e, this.opts.numeric, this.opts.style !== "long");
3058
3058
  }
3059
3059
  formatToParts(e, n) {
3060
3060
  return this.rtf ? this.rtf.formatToParts(e, n) : [];
3061
3061
  }
3062
3062
  }
3063
- const fa = {
3063
+ const ma = {
3064
3064
  firstDay: 1,
3065
3065
  minimalDays: 4,
3066
3066
  weekend: [6, 7]
@@ -3076,7 +3076,7 @@ class v {
3076
3076
  );
3077
3077
  }
3078
3078
  static create(e, n, s, r, i = !1) {
3079
- const o = e || x.defaultLocale, a = o || (i ? "en-US" : sa()), c = n || x.defaultNumberingSystem, u = s || x.defaultOutputCalendar, l = Xt(r) || x.defaultWeekSettings;
3079
+ const o = e || x.defaultLocale, a = o || (i ? "en-US" : ra()), c = n || x.defaultNumberingSystem, u = s || x.defaultOutputCalendar, l = Xt(r) || x.defaultWeekSettings;
3080
3080
  return new v(a, c, u, l, o);
3081
3081
  }
3082
3082
  static resetCache() {
@@ -3086,11 +3086,11 @@ class v {
3086
3086
  return v.create(e, n, s, r);
3087
3087
  }
3088
3088
  constructor(e, n, s, r, i) {
3089
- const [o, a, c] = ia(e);
3090
- this.locale = o, this.numberingSystem = n || a || null, this.outputCalendar = s || c || null, this.weekSettings = r, this.intl = oa(this.locale, this.numberingSystem, this.outputCalendar), this.weekdaysCache = { format: {}, standalone: {} }, this.monthsCache = { format: {}, standalone: {} }, this.meridiemCache = null, this.eraCache = {}, this.specifiedLocale = i, this.fastNumbersCached = null;
3089
+ const [o, a, c] = oa(e);
3090
+ this.locale = o, this.numberingSystem = n || a || null, this.outputCalendar = s || c || null, this.weekSettings = r, this.intl = aa(this.locale, this.numberingSystem, this.outputCalendar), this.weekdaysCache = { format: {}, standalone: {} }, this.monthsCache = { format: {}, standalone: {} }, this.meridiemCache = null, this.eraCache = {}, this.specifiedLocale = i, this.fastNumbersCached = null;
3091
3091
  }
3092
3092
  get fastNumbers() {
3093
- return this.fastNumbersCached == null && (this.fastNumbersCached = ua(this)), this.fastNumbersCached;
3093
+ return this.fastNumbersCached == null && (this.fastNumbersCached = la(this)), this.fastNumbersCached;
3094
3094
  }
3095
3095
  listingMode() {
3096
3096
  const e = this.isEnglish(), n = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
@@ -3114,13 +3114,13 @@ class v {
3114
3114
  months(e, n = !1) {
3115
3115
  return Xe(this, e, hr, () => {
3116
3116
  const s = n ? { month: e, day: "numeric" } : { month: e }, r = n ? "format" : "standalone";
3117
- return this.monthsCache[r][e] || (this.monthsCache[r][e] = aa((i) => this.extract(i, s, "month"))), this.monthsCache[r][e];
3117
+ return this.monthsCache[r][e] || (this.monthsCache[r][e] = ca((i) => this.extract(i, s, "month"))), this.monthsCache[r][e];
3118
3118
  });
3119
3119
  }
3120
3120
  weekdays(e, n = !1) {
3121
3121
  return Xe(this, e, yr, () => {
3122
3122
  const s = n ? { weekday: e, year: "numeric", month: "long", day: "numeric" } : { weekday: e }, r = n ? "format" : "standalone";
3123
- return this.weekdaysCache[r][e] || (this.weekdaysCache[r][e] = ca(
3123
+ return this.weekdaysCache[r][e] || (this.weekdaysCache[r][e] = ua(
3124
3124
  (i) => this.extract(i, s, "weekday")
3125
3125
  )), this.weekdaysCache[r][e];
3126
3126
  });
@@ -3154,22 +3154,22 @@ class v {
3154
3154
  return o ? o.value : null;
3155
3155
  }
3156
3156
  numberFormatter(e = {}) {
3157
- return new la(this.intl, e.forceSimple || this.fastNumbers, e);
3157
+ return new da(this.intl, e.forceSimple || this.fastNumbers, e);
3158
3158
  }
3159
3159
  dtFormatter(e, n = {}) {
3160
- return new da(e, this.intl, n);
3160
+ return new ha(e, this.intl, n);
3161
3161
  }
3162
3162
  relFormatter(e = {}) {
3163
- return new ha(this.intl, this.isEnglish(), e);
3163
+ return new fa(this.intl, this.isEnglish(), e);
3164
3164
  }
3165
3165
  listFormatter(e = {}) {
3166
- return ea(this.intl, e);
3166
+ return ta(this.intl, e);
3167
3167
  }
3168
3168
  isEnglish() {
3169
3169
  return this.locale === "en" || this.locale.toLowerCase() === "en-us" || new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us");
3170
3170
  }
3171
3171
  getWeekSettings() {
3172
- return this.weekSettings ? this.weekSettings : cr() ? ra(this.locale) : fa;
3172
+ return this.weekSettings ? this.weekSettings : cr() ? ia(this.locale) : ma;
3173
3173
  }
3174
3174
  getStartOfWeek() {
3175
3175
  return this.getWeekSettings().firstDay;
@@ -3185,13 +3185,13 @@ class v {
3185
3185
  }
3186
3186
  }
3187
3187
  let Lt = null;
3188
- class U extends Ze {
3188
+ class H extends Ze {
3189
3189
  /**
3190
3190
  * Get a singleton instance of UTC
3191
3191
  * @return {FixedOffsetZone}
3192
3192
  */
3193
3193
  static get utcInstance() {
3194
- return Lt === null && (Lt = new U(0)), Lt;
3194
+ return Lt === null && (Lt = new H(0)), Lt;
3195
3195
  }
3196
3196
  /**
3197
3197
  * Get an instance with a specified offset
@@ -3199,7 +3199,7 @@ class U extends Ze {
3199
3199
  * @return {FixedOffsetZone}
3200
3200
  */
3201
3201
  static instance(e) {
3202
- return e === 0 ? U.utcInstance : new U(e);
3202
+ return e === 0 ? H.utcInstance : new H(e);
3203
3203
  }
3204
3204
  /**
3205
3205
  * Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"
@@ -3213,7 +3213,7 @@ class U extends Ze {
3213
3213
  if (e) {
3214
3214
  const n = e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
3215
3215
  if (n)
3216
- return new U(Ct(n[1], n[2]));
3216
+ return new H(Ct(n[1], n[2]));
3217
3217
  }
3218
3218
  return null;
3219
3219
  }
@@ -3256,7 +3256,7 @@ class U extends Ze {
3256
3256
  return !0;
3257
3257
  }
3258
3258
  }
3259
- class ma extends Ze {
3259
+ class ya extends Ze {
3260
3260
  constructor(e) {
3261
3261
  super(), this.zoneName = e;
3262
3262
  }
@@ -3298,20 +3298,20 @@ function de(t, e) {
3298
3298
  return e;
3299
3299
  if (t instanceof Ze)
3300
3300
  return t;
3301
- if (ga(t)) {
3301
+ if (wa(t)) {
3302
3302
  const n = t.toLowerCase();
3303
- return n === "default" ? e : n === "local" || n === "system" ? Ot.instance : n === "utc" || n === "gmt" ? U.utcInstance : U.parseSpecifier(n) || ie.create(t);
3303
+ return n === "default" ? e : n === "local" || n === "system" ? Ot.instance : n === "utc" || n === "gmt" ? H.utcInstance : H.parseSpecifier(n) || ie.create(t);
3304
3304
  } else
3305
- return Se(t) ? U.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new ma(t);
3305
+ return Se(t) ? H.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new ya(t);
3306
3306
  }
3307
- let Vn = () => Date.now(), Ln = "system", Wn = null, Un = null, $n = null, Hn = 60, Bn, Pn = null;
3307
+ let Ln = () => Date.now(), Wn = "system", Un = null, $n = null, Hn = null, Bn = 60, Pn, zn = null;
3308
3308
  class x {
3309
3309
  /**
3310
3310
  * Get the callback for returning the current timestamp.
3311
3311
  * @type {function}
3312
3312
  */
3313
3313
  static get now() {
3314
- return Vn;
3314
+ return Ln;
3315
3315
  }
3316
3316
  /**
3317
3317
  * Set the callback for returning the current timestamp.
@@ -3321,7 +3321,7 @@ class x {
3321
3321
  * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time
3322
3322
  */
3323
3323
  static set now(e) {
3324
- Vn = e;
3324
+ Ln = e;
3325
3325
  }
3326
3326
  /**
3327
3327
  * Set the default time zone to create DateTimes in. Does not affect existing instances.
@@ -3329,7 +3329,7 @@ class x {
3329
3329
  * @type {string}
3330
3330
  */
3331
3331
  static set defaultZone(e) {
3332
- Ln = e;
3332
+ Wn = e;
3333
3333
  }
3334
3334
  /**
3335
3335
  * Get the default time zone object currently used to create DateTimes. Does not affect existing instances.
@@ -3337,49 +3337,49 @@ class x {
3337
3337
  * @type {Zone}
3338
3338
  */
3339
3339
  static get defaultZone() {
3340
- return de(Ln, Ot.instance);
3340
+ return de(Wn, Ot.instance);
3341
3341
  }
3342
3342
  /**
3343
3343
  * Get the default locale to create DateTimes with. Does not affect existing instances.
3344
3344
  * @type {string}
3345
3345
  */
3346
3346
  static get defaultLocale() {
3347
- return Wn;
3347
+ return Un;
3348
3348
  }
3349
3349
  /**
3350
3350
  * Set the default locale to create DateTimes with. Does not affect existing instances.
3351
3351
  * @type {string}
3352
3352
  */
3353
3353
  static set defaultLocale(e) {
3354
- Wn = e;
3354
+ Un = e;
3355
3355
  }
3356
3356
  /**
3357
3357
  * Get the default numbering system to create DateTimes with. Does not affect existing instances.
3358
3358
  * @type {string}
3359
3359
  */
3360
3360
  static get defaultNumberingSystem() {
3361
- return Un;
3361
+ return $n;
3362
3362
  }
3363
3363
  /**
3364
3364
  * Set the default numbering system to create DateTimes with. Does not affect existing instances.
3365
3365
  * @type {string}
3366
3366
  */
3367
3367
  static set defaultNumberingSystem(e) {
3368
- Un = e;
3368
+ $n = e;
3369
3369
  }
3370
3370
  /**
3371
3371
  * Get the default output calendar to create DateTimes with. Does not affect existing instances.
3372
3372
  * @type {string}
3373
3373
  */
3374
3374
  static get defaultOutputCalendar() {
3375
- return $n;
3375
+ return Hn;
3376
3376
  }
3377
3377
  /**
3378
3378
  * Set the default output calendar to create DateTimes with. Does not affect existing instances.
3379
3379
  * @type {string}
3380
3380
  */
3381
3381
  static set defaultOutputCalendar(e) {
3382
- $n = e;
3382
+ Hn = e;
3383
3383
  }
3384
3384
  /**
3385
3385
  * @typedef {Object} WeekSettings
@@ -3391,7 +3391,7 @@ class x {
3391
3391
  * @return {WeekSettings|null}
3392
3392
  */
3393
3393
  static get defaultWeekSettings() {
3394
- return Pn;
3394
+ return zn;
3395
3395
  }
3396
3396
  /**
3397
3397
  * Allows overriding the default locale week settings, i.e. the start of the week, the weekend and
@@ -3401,14 +3401,14 @@ class x {
3401
3401
  * @param {WeekSettings|null} weekSettings
3402
3402
  */
3403
3403
  static set defaultWeekSettings(e) {
3404
- Pn = Xt(e);
3404
+ zn = Xt(e);
3405
3405
  }
3406
3406
  /**
3407
3407
  * Get the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century.
3408
3408
  * @type {number}
3409
3409
  */
3410
3410
  static get twoDigitCutoffYear() {
3411
- return Hn;
3411
+ return Bn;
3412
3412
  }
3413
3413
  /**
3414
3414
  * Set the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century.
@@ -3419,21 +3419,21 @@ class x {
3419
3419
  * @example Settings.twoDigitCutoffYear = 2050 // ALSO interpreted as 50
3420
3420
  */
3421
3421
  static set twoDigitCutoffYear(e) {
3422
- Hn = e % 100;
3422
+ Bn = e % 100;
3423
3423
  }
3424
3424
  /**
3425
3425
  * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals
3426
3426
  * @type {boolean}
3427
3427
  */
3428
3428
  static get throwOnInvalid() {
3429
- return Bn;
3429
+ return Pn;
3430
3430
  }
3431
3431
  /**
3432
3432
  * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals
3433
3433
  * @type {boolean}
3434
3434
  */
3435
3435
  static set throwOnInvalid(e) {
3436
- Bn = e;
3436
+ Pn = e;
3437
3437
  }
3438
3438
  /**
3439
3439
  * Reset Luxon's global caches. Should only be necessary in testing scenarios.
@@ -3458,7 +3458,7 @@ function j(t, e) {
3458
3458
  `you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`
3459
3459
  );
3460
3460
  }
3461
- function un(t, e, n) {
3461
+ function ln(t, e, n) {
3462
3462
  const s = new Date(Date.UTC(t, e - 1, n));
3463
3463
  t < 100 && t >= 0 && s.setUTCFullYear(s.getUTCFullYear() - 1900);
3464
3464
  const r = s.getUTCDay();
@@ -3471,16 +3471,16 @@ function rr(t, e) {
3471
3471
  const n = qe(t) ? nr : tr, s = n.findIndex((i) => i < e), r = e - n[s];
3472
3472
  return { month: s + 1, day: r };
3473
3473
  }
3474
- function ln(t, e) {
3474
+ function dn(t, e) {
3475
3475
  return (t - e + 7) % 7 + 1;
3476
3476
  }
3477
3477
  function mt(t, e = 4, n = 1) {
3478
- const { year: s, month: r, day: i } = t, o = sr(s, r, i), a = ln(un(s, r, i), n);
3478
+ const { year: s, month: r, day: i } = t, o = sr(s, r, i), a = dn(ln(s, r, i), n);
3479
3479
  let c = Math.floor((o - a + 14 - e) / 7), u;
3480
3480
  return c < 1 ? (u = s - 1, c = Be(u, e, n)) : c > Be(s, e, n) ? (u = s + 1, c = 1) : u = s, { weekYear: u, weekNumber: c, weekday: a, ...Nt(t) };
3481
3481
  }
3482
- function zn(t, e = 4, n = 1) {
3483
- const { weekYear: s, weekNumber: r, weekday: i } = t, o = ln(un(s, 1, e), n), a = Ee(s);
3482
+ function Zn(t, e = 4, n = 1) {
3483
+ const { weekYear: s, weekNumber: r, weekday: i } = t, o = dn(ln(s, 1, e), n), a = Ee(s);
3484
3484
  let c = r * 7 + i - o - 7 + e, u;
3485
3485
  c < 1 ? (u = s - 1, c += Ee(u)) : c > a ? (u = s + 1, c -= Ee(s)) : u = s;
3486
3486
  const { month: l, day: h } = rr(u, c);
@@ -3490,11 +3490,11 @@ function Wt(t) {
3490
3490
  const { year: e, month: n, day: s } = t, r = sr(e, n, s);
3491
3491
  return { year: e, ordinal: r, ...Nt(t) };
3492
3492
  }
3493
- function Zn(t) {
3493
+ function qn(t) {
3494
3494
  const { year: e, ordinal: n } = t, { month: s, day: r } = rr(e, n);
3495
3495
  return { year: e, month: s, day: r, ...Nt(t) };
3496
3496
  }
3497
- function qn(t, e) {
3497
+ function jn(t, e) {
3498
3498
  if (!w(t.localWeekday) || !w(t.localWeekNumber) || !w(t.localWeekYear)) {
3499
3499
  if (!w(t.weekday) || !w(t.weekNumber) || !w(t.weekYear))
3500
3500
  throw new Oe(
@@ -3507,7 +3507,7 @@ function qn(t, e) {
3507
3507
  } else
3508
3508
  return { minDaysInFirstWeek: 4, startOfWeek: 1 };
3509
3509
  }
3510
- function ya(t, e = 4, n = 1) {
3510
+ function pa(t, e = 4, n = 1) {
3511
3511
  const s = Et(t.weekYear), r = G(
3512
3512
  t.weekNumber,
3513
3513
  1,
@@ -3515,7 +3515,7 @@ function ya(t, e = 4, n = 1) {
3515
3515
  ), i = G(t.weekday, 1, 7);
3516
3516
  return s ? r ? i ? !1 : j("weekday", t.weekday) : j("week", t.weekNumber) : j("weekYear", t.weekYear);
3517
3517
  }
3518
- function pa(t) {
3518
+ function ga(t) {
3519
3519
  const e = Et(t.year), n = G(t.ordinal, 1, Ee(t.year));
3520
3520
  return e ? n ? !1 : j("ordinal", t.ordinal) : j("year", t.year);
3521
3521
  }
@@ -3536,10 +3536,10 @@ function Se(t) {
3536
3536
  function Et(t) {
3537
3537
  return typeof t == "number" && t % 1 === 0;
3538
3538
  }
3539
- function ga(t) {
3539
+ function wa(t) {
3540
3540
  return typeof t == "string";
3541
3541
  }
3542
- function wa(t) {
3542
+ function Sa(t) {
3543
3543
  return Object.prototype.toString.call(t) === "[object Date]";
3544
3544
  }
3545
3545
  function ar() {
@@ -3556,17 +3556,17 @@ function cr() {
3556
3556
  return !1;
3557
3557
  }
3558
3558
  }
3559
- function Sa(t) {
3559
+ function ba(t) {
3560
3560
  return Array.isArray(t) ? t : [t];
3561
3561
  }
3562
- function jn(t, e, n) {
3562
+ function Gn(t, e, n) {
3563
3563
  if (t.length !== 0)
3564
3564
  return t.reduce((s, r) => {
3565
3565
  const i = [e(r), r];
3566
3566
  return s && n(s[0], i[0]) === s[0] ? s : i;
3567
3567
  }, null)[1];
3568
3568
  }
3569
- function ba(t, e) {
3569
+ function ka(t, e) {
3570
3570
  return e.reduce((n, s) => (n[s] = t[s], n), {});
3571
3571
  }
3572
3572
  function Ne(t, e) {
@@ -3576,9 +3576,9 @@ function Xt(t) {
3576
3576
  if (t == null)
3577
3577
  return null;
3578
3578
  if (typeof t != "object")
3579
- throw new H("Week settings must be an object");
3579
+ throw new P("Week settings must be an object");
3580
3580
  if (!G(t.firstDay, 1, 7) || !G(t.minimalDays, 1, 7) || !Array.isArray(t.weekend) || t.weekend.some((e) => !G(e, 1, 7)))
3581
- throw new H("Invalid week settings");
3581
+ throw new P("Invalid week settings");
3582
3582
  return {
3583
3583
  firstDay: t.firstDay,
3584
3584
  minimalDays: t.minimalDays,
@@ -3588,7 +3588,7 @@ function Xt(t) {
3588
3588
  function G(t, e, n) {
3589
3589
  return Et(t) && t >= e && t <= n;
3590
3590
  }
3591
- function ka(t, e) {
3591
+ function Ta(t, e) {
3592
3592
  return t - e * Math.floor(t / e);
3593
3593
  }
3594
3594
  function M(t, e = 2) {
@@ -3604,13 +3604,13 @@ function ye(t) {
3604
3604
  if (!(w(t) || t === null || t === ""))
3605
3605
  return parseFloat(t);
3606
3606
  }
3607
- function dn(t) {
3607
+ function hn(t) {
3608
3608
  if (!(w(t) || t === null || t === "")) {
3609
3609
  const e = parseFloat("0." + t) * 1e3;
3610
3610
  return Math.floor(e);
3611
3611
  }
3612
3612
  }
3613
- function hn(t, e, n = !1) {
3613
+ function fn(t, e, n = !1) {
3614
3614
  const s = 10 ** e;
3615
3615
  return (n ? Math.trunc : Math.round)(t * s) / s;
3616
3616
  }
@@ -3621,7 +3621,7 @@ function Ee(t) {
3621
3621
  return qe(t) ? 366 : 365;
3622
3622
  }
3623
3623
  function yt(t, e) {
3624
- const n = ka(e - 1, 12) + 1, s = t + (e - n) / 12;
3624
+ const n = Ta(e - 1, 12) + 1, s = t + (e - n) / 12;
3625
3625
  return n === 2 ? qe(s) ? 29 : 28 : [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][n - 1];
3626
3626
  }
3627
3627
  function vt(t) {
@@ -3636,11 +3636,11 @@ function vt(t) {
3636
3636
  );
3637
3637
  return t.year < 100 && t.year >= 0 && (e = new Date(e), e.setUTCFullYear(t.year, t.month - 1, t.day)), +e;
3638
3638
  }
3639
- function Gn(t, e, n) {
3640
- return -ln(un(t, 1, e), n) + e - 1;
3639
+ function Yn(t, e, n) {
3640
+ return -dn(ln(t, 1, e), n) + e - 1;
3641
3641
  }
3642
3642
  function Be(t, e = 4, n = 1) {
3643
- const s = Gn(t, e, n), r = Gn(t + 1, e, n);
3643
+ const s = Yn(t, e, n), r = Yn(t + 1, e, n);
3644
3644
  return (Ee(t) - s + r) / 7;
3645
3645
  }
3646
3646
  function en(t) {
@@ -3668,7 +3668,7 @@ function Ct(t, e) {
3668
3668
  function lr(t) {
3669
3669
  const e = Number(t);
3670
3670
  if (typeof t == "boolean" || t === "" || Number.isNaN(e))
3671
- throw new H(`Invalid unit value ${t}`);
3671
+ throw new P(`Invalid unit value ${t}`);
3672
3672
  return e;
3673
3673
  }
3674
3674
  function pt(t, e) {
@@ -3696,9 +3696,9 @@ function $e(t, e) {
3696
3696
  }
3697
3697
  }
3698
3698
  function Nt(t) {
3699
- return ba(t, ["hour", "minute", "second", "millisecond"]);
3699
+ return ka(t, ["hour", "minute", "second", "millisecond"]);
3700
3700
  }
3701
- const Ta = [
3701
+ const _a = [
3702
3702
  "January",
3703
3703
  "February",
3704
3704
  "March",
@@ -3724,15 +3724,15 @@ const Ta = [
3724
3724
  "Oct",
3725
3725
  "Nov",
3726
3726
  "Dec"
3727
- ], _a = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"];
3727
+ ], Oa = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"];
3728
3728
  function hr(t) {
3729
3729
  switch (t) {
3730
3730
  case "narrow":
3731
- return [..._a];
3731
+ return [...Oa];
3732
3732
  case "short":
3733
3733
  return [...dr];
3734
3734
  case "long":
3735
- return [...Ta];
3735
+ return [..._a];
3736
3736
  case "numeric":
3737
3737
  return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
3738
3738
  case "2-digit":
@@ -3749,11 +3749,11 @@ const fr = [
3749
3749
  "Friday",
3750
3750
  "Saturday",
3751
3751
  "Sunday"
3752
- ], mr = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Oa = ["M", "T", "W", "T", "F", "S", "S"];
3752
+ ], mr = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Ea = ["M", "T", "W", "T", "F", "S", "S"];
3753
3753
  function yr(t) {
3754
3754
  switch (t) {
3755
3755
  case "narrow":
3756
- return [...Oa];
3756
+ return [...Ea];
3757
3757
  case "short":
3758
3758
  return [...mr];
3759
3759
  case "long":
@@ -3764,32 +3764,32 @@ function yr(t) {
3764
3764
  return null;
3765
3765
  }
3766
3766
  }
3767
- const pr = ["AM", "PM"], Ea = ["Before Christ", "Anno Domini"], va = ["BC", "AD"], Ca = ["B", "A"];
3767
+ const pr = ["AM", "PM"], va = ["Before Christ", "Anno Domini"], Ca = ["BC", "AD"], Na = ["B", "A"];
3768
3768
  function gr(t) {
3769
3769
  switch (t) {
3770
3770
  case "narrow":
3771
- return [...Ca];
3771
+ return [...Na];
3772
3772
  case "short":
3773
- return [...va];
3773
+ return [...Ca];
3774
3774
  case "long":
3775
- return [...Ea];
3775
+ return [...va];
3776
3776
  default:
3777
3777
  return null;
3778
3778
  }
3779
3779
  }
3780
- function Na(t) {
3780
+ function Ia(t) {
3781
3781
  return pr[t.hour < 12 ? 0 : 1];
3782
3782
  }
3783
- function Ia(t, e) {
3783
+ function xa(t, e) {
3784
3784
  return yr(e)[t.weekday - 1];
3785
3785
  }
3786
- function xa(t, e) {
3786
+ function Da(t, e) {
3787
3787
  return hr(e)[t.month - 1];
3788
3788
  }
3789
- function Da(t, e) {
3789
+ function Ma(t, e) {
3790
3790
  return gr(e)[t.year < 0 ? 0 : 1];
3791
3791
  }
3792
- function Ma(t, e, n = "always", s = !1) {
3792
+ function Aa(t, e, n = "always", s = !1) {
3793
3793
  const r = {
3794
3794
  years: ["year", "yr."],
3795
3795
  quarters: ["quarter", "qtr."],
@@ -3814,13 +3814,13 @@ function Ma(t, e, n = "always", s = !1) {
3814
3814
  const o = Object.is(e, -0) || e < 0, a = Math.abs(e), c = a === 1, u = r[t], l = s ? c ? u[1] : u[2] || u[1] : c ? r[t][0] : t;
3815
3815
  return o ? `${a} ${l} ago` : `in ${a} ${l}`;
3816
3816
  }
3817
- function Yn(t, e) {
3817
+ function Jn(t, e) {
3818
3818
  let n = "";
3819
3819
  for (const s of t)
3820
3820
  s.literal ? n += s.val : n += e(s.val);
3821
3821
  return n;
3822
3822
  }
3823
- const Aa = {
3823
+ const Fa = {
3824
3824
  D: ft,
3825
3825
  DD: Vs,
3826
3826
  DDD: Ls,
@@ -3856,7 +3856,7 @@ class L {
3856
3856
  return s.length > 0 && i.push({ literal: r || /^\s+$/.test(s), val: s }), i;
3857
3857
  }
3858
3858
  static macroTokenToFormatOpts(e) {
3859
- return Aa[e];
3859
+ return Fa[e];
3860
3860
  }
3861
3861
  constructor(e, n) {
3862
3862
  this.opts = n, this.loc = e, this.systemLoc = null;
@@ -3886,13 +3886,13 @@ class L {
3886
3886
  return n > 0 && (s.padTo = n), this.loc.numberFormatter(s).format(e);
3887
3887
  }
3888
3888
  formatDateTimeFromString(e, n) {
3889
- const s = this.loc.listingMode() === "en", r = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (m, f) => this.loc.extract(e, m, f), o = (m) => e.isOffsetFixed && e.offset === 0 && m.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, m.format) : "", a = () => s ? Na(e) : i({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), c = (m, f) => s ? xa(e, m) : i(f ? { month: m } : { month: m, day: "numeric" }, "month"), u = (m, f) => s ? Ia(e, m) : i(
3889
+ const s = this.loc.listingMode() === "en", r = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (m, f) => this.loc.extract(e, m, f), o = (m) => e.isOffsetFixed && e.offset === 0 && m.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, m.format) : "", a = () => s ? Ia(e) : i({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), c = (m, f) => s ? Da(e, m) : i(f ? { month: m } : { month: m, day: "numeric" }, "month"), u = (m, f) => s ? xa(e, m) : i(
3890
3890
  f ? { weekday: m } : { weekday: m, month: "long", day: "numeric" },
3891
3891
  "weekday"
3892
3892
  ), l = (m) => {
3893
3893
  const f = L.macroTokenToFormatOpts(m);
3894
3894
  return f ? this.formatWithSystemDefault(e, f) : m;
3895
- }, h = (m) => s ? Da(e, m) : i({ era: m }, "era"), p = (m) => {
3895
+ }, h = (m) => s ? Ma(e, m) : i({ era: m }, "era"), p = (m) => {
3896
3896
  switch (m) {
3897
3897
  case "S":
3898
3898
  return this.num(e.millisecond);
@@ -4019,7 +4019,7 @@ class L {
4019
4019
  return l(m);
4020
4020
  }
4021
4021
  };
4022
- return Yn(L.parseFormat(n), p);
4022
+ return Jn(L.parseFormat(n), p);
4023
4023
  }
4024
4024
  formatDurationFromString(e, n) {
4025
4025
  const s = (c) => {
@@ -4050,7 +4050,7 @@ class L {
4050
4050
  (c, { literal: u, val: l }) => u ? c : c.concat(l),
4051
4051
  []
4052
4052
  ), a = e.shiftTo(...o.map(s).filter((c) => c));
4053
- return Yn(i, r(a));
4053
+ return Jn(i, r(a));
4054
4054
  }
4055
4055
  }
4056
4056
  const wr = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
@@ -4086,14 +4086,14 @@ function Sr(...t) {
4086
4086
  return [s, null, n + r];
4087
4087
  };
4088
4088
  }
4089
- const br = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, Fa = `(?:${br.source}?(?:\\[(${wr.source})\\])?)?`, fn = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, kr = RegExp(`${fn.source}${Fa}`), mn = RegExp(`(?:T${kr.source})?`), Ra = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Va = /(\d{4})-?W(\d\d)(?:-?(\d))?/, La = /(\d{4})-?(\d{3})/, Wa = Sr("weekYear", "weekNumber", "weekDay"), Ua = Sr("year", "ordinal"), $a = /(\d{4})-(\d\d)-(\d\d)/, Tr = RegExp(
4090
- `${fn.source} ?(?:${br.source}|(${wr.source}))?`
4091
- ), Ha = RegExp(`(?: ${Tr.source})?`);
4089
+ const br = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, Ra = `(?:${br.source}?(?:\\[(${wr.source})\\])?)?`, mn = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, kr = RegExp(`${mn.source}${Ra}`), yn = RegExp(`(?:T${kr.source})?`), Va = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, La = /(\d{4})-?W(\d\d)(?:-?(\d))?/, Wa = /(\d{4})-?(\d{3})/, Ua = Sr("weekYear", "weekNumber", "weekDay"), $a = Sr("year", "ordinal"), Ha = /(\d{4})-(\d\d)-(\d\d)/, Tr = RegExp(
4090
+ `${mn.source} ?(?:${br.source}|(${wr.source}))?`
4091
+ ), Ba = RegExp(`(?: ${Tr.source})?`);
4092
4092
  function ve(t, e, n) {
4093
4093
  const s = t[e];
4094
4094
  return w(s) ? n : ue(s);
4095
4095
  }
4096
- function Ba(t, e) {
4096
+ function Pa(t, e) {
4097
4097
  return [{
4098
4098
  year: ve(t, e),
4099
4099
  month: ve(t, e + 1, 1),
@@ -4105,19 +4105,19 @@ function Ae(t, e) {
4105
4105
  hours: ve(t, e, 0),
4106
4106
  minutes: ve(t, e + 1, 0),
4107
4107
  seconds: ve(t, e + 2, 0),
4108
- milliseconds: dn(t[e + 3])
4108
+ milliseconds: hn(t[e + 3])
4109
4109
  }, null, e + 4];
4110
4110
  }
4111
4111
  function je(t, e) {
4112
- const n = !t[e] && !t[e + 1], s = Ct(t[e + 1], t[e + 2]), r = n ? null : U.instance(s);
4112
+ const n = !t[e] && !t[e + 1], s = Ct(t[e + 1], t[e + 2]), r = n ? null : H.instance(s);
4113
4113
  return [{}, r, e + 3];
4114
4114
  }
4115
4115
  function Ge(t, e) {
4116
4116
  const n = t[e] ? ie.create(t[e]) : null;
4117
4117
  return [{}, n, e + 1];
4118
4118
  }
4119
- const Pa = RegExp(`^T?${fn.source}$`), za = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
4120
- function Za(t) {
4119
+ const za = RegExp(`^T?${mn.source}$`), Za = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
4120
+ function qa(t) {
4121
4121
  const [e, n, s, r, i, o, a, c, u] = t, l = e[0] === "-", h = c && c[0] === "-", p = (m, f = !1) => m !== void 0 && (f || m && l) ? -m : m;
4122
4122
  return [
4123
4123
  {
@@ -4128,11 +4128,11 @@ function Za(t) {
4128
4128
  hours: p(ye(o)),
4129
4129
  minutes: p(ye(a)),
4130
4130
  seconds: p(ye(c), c === "-0"),
4131
- milliseconds: p(dn(u), h)
4131
+ milliseconds: p(hn(u), h)
4132
4132
  }
4133
4133
  ];
4134
4134
  }
4135
- const qa = {
4135
+ const ja = {
4136
4136
  GMT: 0,
4137
4137
  EDT: -4 * 60,
4138
4138
  EST: -5 * 60,
@@ -4143,7 +4143,7 @@ const qa = {
4143
4143
  PDT: -7 * 60,
4144
4144
  PST: -8 * 60
4145
4145
  };
4146
- function yn(t, e, n, s, r, i, o) {
4146
+ function pn(t, e, n, s, r, i, o) {
4147
4147
  const a = {
4148
4148
  year: e.length === 2 ? en(ue(e)) : ue(e),
4149
4149
  month: dr.indexOf(n) + 1,
@@ -4153,8 +4153,8 @@ function yn(t, e, n, s, r, i, o) {
4153
4153
  };
4154
4154
  return o && (a.second = ue(o)), t && (a.weekday = t.length > 3 ? fr.indexOf(t) + 1 : mr.indexOf(t) + 1), a;
4155
4155
  }
4156
- const ja = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
4157
- function Ga(t) {
4156
+ const Ga = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
4157
+ function Ya(t) {
4158
4158
  const [
4159
4159
  ,
4160
4160
  e,
@@ -4168,29 +4168,24 @@ function Ga(t) {
4168
4168
  u,
4169
4169
  l,
4170
4170
  h
4171
- ] = t, p = yn(e, r, s, n, i, o, a);
4171
+ ] = t, p = pn(e, r, s, n, i, o, a);
4172
4172
  let m;
4173
- return c ? m = qa[c] : u ? m = 0 : m = Ct(l, h), [p, new U(m)];
4173
+ return c ? m = ja[c] : u ? m = 0 : m = Ct(l, h), [p, new H(m)];
4174
4174
  }
4175
- function Ya(t) {
4175
+ function Ja(t) {
4176
4176
  return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
4177
4177
  }
4178
- const Ja = /^(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$/, Ka = /^(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$/, Qa = /^(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})$/;
4179
- function Jn(t) {
4178
+ 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})$/;
4179
+ function Kn(t) {
4180
4180
  const [, e, n, s, r, i, o, a] = t;
4181
- return [yn(e, r, s, n, i, o, a), U.utcInstance];
4181
+ return [pn(e, r, s, n, i, o, a), H.utcInstance];
4182
4182
  }
4183
- function Xa(t) {
4183
+ function ec(t) {
4184
4184
  const [, e, n, s, r, i, o, a] = t;
4185
- return [yn(e, a, n, s, r, i, o), U.utcInstance];
4185
+ return [pn(e, a, n, s, r, i, o), H.utcInstance];
4186
4186
  }
4187
- const ec = xe(Ra, mn), tc = xe(Va, mn), nc = xe(La, mn), sc = xe(kr), _r = De(
4188
- Ba,
4189
- Ae,
4190
- je,
4191
- Ge
4192
- ), rc = De(
4193
- Wa,
4187
+ const tc = xe(Va, yn), nc = xe(La, yn), sc = xe(Wa, yn), rc = xe(kr), _r = De(
4188
+ Pa,
4194
4189
  Ae,
4195
4190
  je,
4196
4191
  Ge
@@ -4200,50 +4195,55 @@ const ec = xe(Ra, mn), tc = xe(Va, mn), nc = xe(La, mn), sc = xe(kr), _r = De(
4200
4195
  je,
4201
4196
  Ge
4202
4197
  ), oc = De(
4198
+ $a,
4199
+ Ae,
4200
+ je,
4201
+ Ge
4202
+ ), ac = De(
4203
4203
  Ae,
4204
4204
  je,
4205
4205
  Ge
4206
4206
  );
4207
- function ac(t) {
4207
+ function cc(t) {
4208
4208
  return Me(
4209
4209
  t,
4210
- [ec, _r],
4211
- [tc, rc],
4210
+ [tc, _r],
4212
4211
  [nc, ic],
4213
- [sc, oc]
4212
+ [sc, oc],
4213
+ [rc, ac]
4214
4214
  );
4215
4215
  }
4216
- function cc(t) {
4217
- return Me(Ya(t), [ja, Ga]);
4218
- }
4219
4216
  function uc(t) {
4217
+ return Me(Ja(t), [Ga, Ya]);
4218
+ }
4219
+ function lc(t) {
4220
4220
  return Me(
4221
4221
  t,
4222
- [Ja, Jn],
4223
- [Ka, Jn],
4224
- [Qa, Xa]
4222
+ [Ka, Kn],
4223
+ [Qa, Kn],
4224
+ [Xa, ec]
4225
4225
  );
4226
4226
  }
4227
- function lc(t) {
4228
- return Me(t, [za, Za]);
4227
+ function dc(t) {
4228
+ return Me(t, [Za, qa]);
4229
4229
  }
4230
- const dc = De(Ae);
4231
- function hc(t) {
4232
- return Me(t, [Pa, dc]);
4230
+ const hc = De(Ae);
4231
+ function fc(t) {
4232
+ return Me(t, [za, hc]);
4233
4233
  }
4234
- const fc = xe($a, Ha), mc = xe(Tr), yc = De(
4234
+ const mc = xe(Ha, Ba), yc = xe(Tr), pc = De(
4235
4235
  Ae,
4236
4236
  je,
4237
4237
  Ge
4238
4238
  );
4239
- function pc(t) {
4239
+ function gc(t) {
4240
4240
  return Me(
4241
4241
  t,
4242
- [fc, _r],
4243
- [mc, yc]
4242
+ [mc, _r],
4243
+ [yc, pc]
4244
4244
  );
4245
4245
  }
4246
- const Kn = "Invalid Duration", Or = {
4246
+ const Qn = "Invalid Duration", Or = {
4247
4247
  weeks: {
4248
4248
  days: 7,
4249
4249
  hours: 7 * 24,
@@ -4260,7 +4260,7 @@ const Kn = "Invalid Duration", Or = {
4260
4260
  hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1e3 },
4261
4261
  minutes: { seconds: 60, milliseconds: 60 * 1e3 },
4262
4262
  seconds: { milliseconds: 1e3 }
4263
- }, gc = {
4263
+ }, wc = {
4264
4264
  years: {
4265
4265
  quarters: 4,
4266
4266
  months: 12,
@@ -4289,7 +4289,7 @@ const Kn = "Invalid Duration", Or = {
4289
4289
  milliseconds: 30 * 24 * 60 * 60 * 1e3
4290
4290
  },
4291
4291
  ...Or
4292
- }, Z = 146097 / 400, Te = 146097 / 4800, wc = {
4292
+ }, Z = 146097 / 400, Te = 146097 / 4800, Sc = {
4293
4293
  years: {
4294
4294
  quarters: 4,
4295
4295
  months: 12,
@@ -4328,7 +4328,7 @@ const Kn = "Invalid Duration", Or = {
4328
4328
  "minutes",
4329
4329
  "seconds",
4330
4330
  "milliseconds"
4331
- ], Sc = we.slice(0).reverse();
4331
+ ], bc = we.slice(0).reverse();
4332
4332
  function ce(t, e, n = !1) {
4333
4333
  const s = {
4334
4334
  values: n ? e.values : { ...t.values, ...e.values || {} },
@@ -4336,15 +4336,15 @@ function ce(t, e, n = !1) {
4336
4336
  conversionAccuracy: e.conversionAccuracy || t.conversionAccuracy,
4337
4337
  matrix: e.matrix || t.matrix
4338
4338
  };
4339
- return new b(s);
4339
+ return new k(s);
4340
4340
  }
4341
4341
  function Er(t, e) {
4342
4342
  let n = e.milliseconds ?? 0;
4343
- for (const s of Sc.slice(1))
4343
+ for (const s of bc.slice(1))
4344
4344
  e[s] && (n += e[s] * t[s].milliseconds);
4345
4345
  return n;
4346
4346
  }
4347
- function Qn(t, e) {
4347
+ function Xn(t, e) {
4348
4348
  const n = Er(t, e) < 0 ? -1 : 1;
4349
4349
  we.reduceRight((s, r) => {
4350
4350
  if (w(e[r]))
@@ -4364,19 +4364,19 @@ function Qn(t, e) {
4364
4364
  return r;
4365
4365
  }, null);
4366
4366
  }
4367
- function bc(t) {
4367
+ function kc(t) {
4368
4368
  const e = {};
4369
4369
  for (const [n, s] of Object.entries(t))
4370
4370
  s !== 0 && (e[n] = s);
4371
4371
  return e;
4372
4372
  }
4373
- class b {
4373
+ class k {
4374
4374
  /**
4375
4375
  * @private
4376
4376
  */
4377
4377
  constructor(e) {
4378
4378
  const n = e.conversionAccuracy === "longterm" || !1;
4379
- let s = n ? wc : gc;
4379
+ let s = n ? Sc : wc;
4380
4380
  e.matrix && (s = e.matrix), this.values = e.values, this.loc = e.loc || v.create(), this.conversionAccuracy = n ? "longterm" : "casual", this.invalid = e.invalid || null, this.matrix = s, this.isLuxonDuration = !0;
4381
4381
  }
4382
4382
  /**
@@ -4389,7 +4389,7 @@ class b {
4389
4389
  * @return {Duration}
4390
4390
  */
4391
4391
  static fromMillis(e, n) {
4392
- return b.fromObject({ milliseconds: e }, n);
4392
+ return k.fromObject({ milliseconds: e }, n);
4393
4393
  }
4394
4394
  /**
4395
4395
  * Create a Duration from a JavaScript object with keys like 'years' and 'hours'.
@@ -4413,11 +4413,11 @@ class b {
4413
4413
  */
4414
4414
  static fromObject(e, n = {}) {
4415
4415
  if (e == null || typeof e != "object")
4416
- throw new H(
4416
+ throw new P(
4417
4417
  `Duration.fromObject: argument expected to be an object, got ${e === null ? "null" : typeof e}`
4418
4418
  );
4419
- return new b({
4420
- values: pt(e, b.normalizeUnit),
4419
+ return new k({
4420
+ values: pt(e, k.normalizeUnit),
4421
4421
  loc: v.fromObject(n),
4422
4422
  conversionAccuracy: n.conversionAccuracy,
4423
4423
  matrix: n.matrix
@@ -4435,12 +4435,12 @@ class b {
4435
4435
  */
4436
4436
  static fromDurationLike(e) {
4437
4437
  if (Se(e))
4438
- return b.fromMillis(e);
4439
- if (b.isDuration(e))
4438
+ return k.fromMillis(e);
4439
+ if (k.isDuration(e))
4440
4440
  return e;
4441
4441
  if (typeof e == "object")
4442
- return b.fromObject(e);
4443
- throw new H(
4442
+ return k.fromObject(e);
4443
+ throw new P(
4444
4444
  `Unknown duration argument ${e} of type ${typeof e}`
4445
4445
  );
4446
4446
  }
@@ -4459,8 +4459,8 @@ class b {
4459
4459
  * @return {Duration}
4460
4460
  */
4461
4461
  static fromISO(e, n) {
4462
- const [s] = lc(e);
4463
- return s ? b.fromObject(s, n) : b.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
4462
+ const [s] = dc(e);
4463
+ return s ? k.fromObject(s, n) : k.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
4464
4464
  }
4465
4465
  /**
4466
4466
  * Create a Duration from an ISO 8601 time string.
@@ -4479,8 +4479,8 @@ class b {
4479
4479
  * @return {Duration}
4480
4480
  */
4481
4481
  static fromISOTime(e, n) {
4482
- const [s] = hc(e);
4483
- return s ? b.fromObject(s, n) : b.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
4482
+ const [s] = fc(e);
4483
+ return s ? k.fromObject(s, n) : k.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
4484
4484
  }
4485
4485
  /**
4486
4486
  * Create an invalid Duration.
@@ -4490,11 +4490,11 @@ class b {
4490
4490
  */
4491
4491
  static invalid(e, n = null) {
4492
4492
  if (!e)
4493
- throw new H("need to specify a reason the Duration is invalid");
4493
+ throw new P("need to specify a reason the Duration is invalid");
4494
4494
  const s = e instanceof Q ? e : new Q(e, n);
4495
4495
  if (x.throwOnInvalid)
4496
- throw new jo(s);
4497
- return new b({ invalid: s });
4496
+ throw new Go(s);
4497
+ return new k({ invalid: s });
4498
4498
  }
4499
4499
  /**
4500
4500
  * @private
@@ -4574,7 +4574,7 @@ class b {
4574
4574
  ...n,
4575
4575
  floor: n.round !== !1 && n.floor !== !1
4576
4576
  };
4577
- return this.isValid ? L.create(this.loc, s).formatDurationFromString(this, e) : Kn;
4577
+ return this.isValid ? L.create(this.loc, s).formatDurationFromString(this, e) : Qn;
4578
4578
  }
4579
4579
  /**
4580
4580
  * Returns a string representation of a Duration with all units included.
@@ -4592,7 +4592,7 @@ class b {
4592
4592
  */
4593
4593
  toHuman(e = {}) {
4594
4594
  if (!this.isValid)
4595
- return Kn;
4595
+ return Qn;
4596
4596
  const n = we.map((s) => {
4597
4597
  const r = this.values[s];
4598
4598
  return w(r) ? null : this.loc.numberFormatter({ style: "unit", unitDisplay: "long", ...e, unit: s.slice(0, -1) }).format(r);
@@ -4621,7 +4621,7 @@ class b {
4621
4621
  if (!this.isValid)
4622
4622
  return null;
4623
4623
  let e = "P";
4624
- return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e += hn(this.seconds + this.milliseconds / 1e3, 3) + "S"), e === "P" && (e += "T0S"), e;
4624
+ return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e += fn(this.seconds + this.milliseconds / 1e3, 3) + "S"), e === "P" && (e += "T0S"), e;
4625
4625
  }
4626
4626
  /**
4627
4627
  * Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.
@@ -4695,7 +4695,7 @@ class b {
4695
4695
  plus(e) {
4696
4696
  if (!this.isValid)
4697
4697
  return this;
4698
- const n = b.fromDurationLike(e), s = {};
4698
+ const n = k.fromDurationLike(e), s = {};
4699
4699
  for (const r of we)
4700
4700
  (Ne(n.values, r) || Ne(this.values, r)) && (s[r] = n.get(r) + this.get(r));
4701
4701
  return ce(this, { values: s }, !0);
@@ -4708,7 +4708,7 @@ class b {
4708
4708
  minus(e) {
4709
4709
  if (!this.isValid)
4710
4710
  return this;
4711
- const n = b.fromDurationLike(e);
4711
+ const n = k.fromDurationLike(e);
4712
4712
  return this.plus(n.negate());
4713
4713
  }
4714
4714
  /**
@@ -4735,7 +4735,7 @@ class b {
4735
4735
  * @return {number}
4736
4736
  */
4737
4737
  get(e) {
4738
- return this[b.normalizeUnit(e)];
4738
+ return this[k.normalizeUnit(e)];
4739
4739
  }
4740
4740
  /**
4741
4741
  * "Set" the values of specified units. Return a newly-constructed Duration.
@@ -4747,7 +4747,7 @@ class b {
4747
4747
  set(e) {
4748
4748
  if (!this.isValid)
4749
4749
  return this;
4750
- const n = { ...this.values, ...pt(e, b.normalizeUnit) };
4750
+ const n = { ...this.values, ...pt(e, k.normalizeUnit) };
4751
4751
  return ce(this, { values: n });
4752
4752
  }
4753
4753
  /**
@@ -4789,7 +4789,7 @@ class b {
4789
4789
  if (!this.isValid)
4790
4790
  return this;
4791
4791
  const e = this.toObject();
4792
- return Qn(this.matrix, e), ce(this, { values: e }, !0);
4792
+ return Xn(this.matrix, e), ce(this, { values: e }, !0);
4793
4793
  }
4794
4794
  /**
4795
4795
  * Rescale units to its largest representation
@@ -4799,7 +4799,7 @@ class b {
4799
4799
  rescale() {
4800
4800
  if (!this.isValid)
4801
4801
  return this;
4802
- const e = bc(this.normalize().shiftToAll().toObject());
4802
+ const e = kc(this.normalize().shiftToAll().toObject());
4803
4803
  return ce(this, { values: e }, !0);
4804
4804
  }
4805
4805
  /**
@@ -4812,7 +4812,7 @@ class b {
4812
4812
  return this;
4813
4813
  if (e.length === 0)
4814
4814
  return this;
4815
- e = e.map((o) => b.normalizeUnit(o));
4815
+ e = e.map((o) => k.normalizeUnit(o));
4816
4816
  const n = {}, s = {}, r = this.toObject();
4817
4817
  let i;
4818
4818
  for (const o of we)
@@ -4828,7 +4828,7 @@ class b {
4828
4828
  Se(r[o]) && (s[o] = r[o]);
4829
4829
  for (const o in s)
4830
4830
  s[o] !== 0 && (n[i] += o === i ? s[o] : s[o] / this.matrix[i][o]);
4831
- return Qn(this.matrix, n), ce(this, { values: n }, !0);
4831
+ return Xn(this.matrix, n), ce(this, { values: n }, !0);
4832
4832
  }
4833
4833
  /**
4834
4834
  * Shift this Duration to all available units.
@@ -4964,7 +4964,7 @@ class b {
4964
4964
  }
4965
4965
  }
4966
4966
  const _e = "Invalid Interval";
4967
- function kc(t, e) {
4967
+ function Tc(t, e) {
4968
4968
  return !t || !t.isValid ? N.invalid("missing or invalid start") : !e || !e.isValid ? N.invalid("missing or invalid end") : e < t ? N.invalid(
4969
4969
  "end before start",
4970
4970
  `The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`
@@ -4985,10 +4985,10 @@ class N {
4985
4985
  */
4986
4986
  static invalid(e, n = null) {
4987
4987
  if (!e)
4988
- throw new H("need to specify a reason the Interval is invalid");
4988
+ throw new P("need to specify a reason the Interval is invalid");
4989
4989
  const s = e instanceof Q ? e : new Q(e, n);
4990
4990
  if (x.throwOnInvalid)
4991
- throw new qo(s);
4991
+ throw new jo(s);
4992
4992
  return new N({ invalid: s });
4993
4993
  }
4994
4994
  /**
@@ -4998,7 +4998,7 @@ class N {
4998
4998
  * @return {Interval}
4999
4999
  */
5000
5000
  static fromDateTimes(e, n) {
5001
- const s = Ve(e), r = Ve(n), i = kc(s, r);
5001
+ const s = Ve(e), r = Ve(n), i = Tc(s, r);
5002
5002
  return i ?? new N({
5003
5003
  start: s,
5004
5004
  end: r
@@ -5011,7 +5011,7 @@ class N {
5011
5011
  * @return {Interval}
5012
5012
  */
5013
5013
  static after(e, n) {
5014
- const s = b.fromDurationLike(n), r = Ve(e);
5014
+ const s = k.fromDurationLike(n), r = Ve(e);
5015
5015
  return N.fromDateTimes(r, r.plus(s));
5016
5016
  }
5017
5017
  /**
@@ -5021,7 +5021,7 @@ class N {
5021
5021
  * @return {Interval}
5022
5022
  */
5023
5023
  static before(e, n) {
5024
- const s = b.fromDurationLike(n), r = Ve(e);
5024
+ const s = k.fromDurationLike(n), r = Ve(e);
5025
5025
  return N.fromDateTimes(r.minus(s), r);
5026
5026
  }
5027
5027
  /**
@@ -5050,11 +5050,11 @@ class N {
5050
5050
  if (o && c)
5051
5051
  return N.fromDateTimes(i, a);
5052
5052
  if (o) {
5053
- const u = b.fromISO(r, n);
5053
+ const u = k.fromISO(r, n);
5054
5054
  if (u.isValid)
5055
5055
  return N.after(i, u);
5056
5056
  } else if (c) {
5057
- const u = b.fromISO(s, n);
5057
+ const u = k.fromISO(s, n);
5058
5058
  if (u.isValid)
5059
5059
  return N.before(a, u);
5060
5060
  }
@@ -5200,7 +5200,7 @@ class N {
5200
5200
  * @return {Array}
5201
5201
  */
5202
5202
  splitBy(e) {
5203
- const n = b.fromDurationLike(e);
5203
+ const n = k.fromDurationLike(e);
5204
5204
  if (!this.isValid || !n.isValid || n.as("milliseconds") === 0)
5205
5205
  return [];
5206
5206
  let { s } = this, r = 1, i;
@@ -5410,7 +5410,7 @@ class N {
5410
5410
  * @return {Duration}
5411
5411
  */
5412
5412
  toDuration(e, n) {
5413
- return this.isValid ? this.e.diff(this.s, e, n) : b.invalid(this.invalidReason);
5413
+ return this.isValid ? this.e.diff(this.s, e, n) : k.invalid(this.invalidReason);
5414
5414
  }
5415
5415
  /**
5416
5416
  * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes
@@ -5594,11 +5594,11 @@ class et {
5594
5594
  return { relative: ar(), localeWeek: cr() };
5595
5595
  }
5596
5596
  }
5597
- function Xn(t, e) {
5597
+ function es(t, e) {
5598
5598
  const n = (r) => r.toUTC(0, { keepLocalTime: !0 }).startOf("day").valueOf(), s = n(e) - n(t);
5599
- return Math.floor(b.fromMillis(s).as("days"));
5599
+ return Math.floor(k.fromMillis(s).as("days"));
5600
5600
  }
5601
- function Tc(t, e, n) {
5601
+ function _c(t, e, n) {
5602
5602
  const s = [
5603
5603
  ["years", (c, u) => u.year - c.year],
5604
5604
  ["quarters", (c, u) => u.quarter - c.quarter + (u.year - c.year) * 4],
@@ -5606,27 +5606,27 @@ function Tc(t, e, n) {
5606
5606
  [
5607
5607
  "weeks",
5608
5608
  (c, u) => {
5609
- const l = Xn(c, u);
5609
+ const l = es(c, u);
5610
5610
  return (l - l % 7) / 7;
5611
5611
  }
5612
5612
  ],
5613
- ["days", Xn]
5613
+ ["days", es]
5614
5614
  ], r = {}, i = t;
5615
5615
  let o, a;
5616
5616
  for (const [c, u] of s)
5617
5617
  n.indexOf(c) >= 0 && (o = c, r[c] = u(t, e), a = i.plus(r), a > e ? (r[c]--, t = i.plus(r), t > e && (a = t, r[c]--, t = i.plus(r))) : t = a);
5618
5618
  return [t, r, a, o];
5619
5619
  }
5620
- function _c(t, e, n, s) {
5621
- let [r, i, o, a] = Tc(t, e, n);
5620
+ function Oc(t, e, n, s) {
5621
+ let [r, i, o, a] = _c(t, e, n);
5622
5622
  const c = e - r, u = n.filter(
5623
5623
  (h) => ["hours", "minutes", "seconds", "milliseconds"].indexOf(h) >= 0
5624
5624
  );
5625
5625
  u.length === 0 && (o < e && (o = r.plus({ [a]: 1 })), o !== r && (i[a] = (i[a] || 0) + c / (o - r)));
5626
- const l = b.fromObject(i, s);
5627
- return u.length > 0 ? b.fromMillis(c, s).shiftTo(...u).plus(l) : l;
5626
+ const l = k.fromObject(i, s);
5627
+ return u.length > 0 ? k.fromMillis(c, s).shiftTo(...u).plus(l) : l;
5628
5628
  }
5629
- const pn = {
5629
+ const gn = {
5630
5630
  arab: "[٠-٩]",
5631
5631
  arabext: "[۰-۹]",
5632
5632
  bali: "[᭐-᭙]",
@@ -5648,7 +5648,7 @@ const pn = {
5648
5648
  thai: "[๐-๙]",
5649
5649
  tibt: "[༠-༩]",
5650
5650
  latn: "\\d"
5651
- }, es = {
5651
+ }, ts = {
5652
5652
  arab: [1632, 1641],
5653
5653
  arabext: [1776, 1785],
5654
5654
  bali: [6992, 7001],
@@ -5668,18 +5668,18 @@ const pn = {
5668
5668
  telu: [3174, 3183],
5669
5669
  thai: [3664, 3673],
5670
5670
  tibt: [3872, 3881]
5671
- }, Oc = pn.hanidec.replace(/[\[|\]]/g, "").split("");
5672
- function Ec(t) {
5671
+ }, Ec = gn.hanidec.replace(/[\[|\]]/g, "").split("");
5672
+ function vc(t) {
5673
5673
  let e = parseInt(t, 10);
5674
5674
  if (isNaN(e)) {
5675
5675
  e = "";
5676
5676
  for (let n = 0; n < t.length; n++) {
5677
5677
  const s = t.charCodeAt(n);
5678
- if (t[n].search(pn.hanidec) !== -1)
5679
- e += Oc.indexOf(t[n]);
5678
+ if (t[n].search(gn.hanidec) !== -1)
5679
+ e += Ec.indexOf(t[n]);
5680
5680
  else
5681
- for (const r in es) {
5682
- const [i, o] = es[r];
5681
+ for (const r in ts) {
5682
+ const [i, o] = ts[r];
5683
5683
  s >= i && s <= o && (e += s - i);
5684
5684
  }
5685
5685
  }
@@ -5688,39 +5688,39 @@ function Ec(t) {
5688
5688
  return e;
5689
5689
  }
5690
5690
  function J({ numberingSystem: t }, e = "") {
5691
- return new RegExp(`${pn[t || "latn"]}${e}`);
5691
+ return new RegExp(`${gn[t || "latn"]}${e}`);
5692
5692
  }
5693
- const vc = "missing Intl.DateTimeFormat.formatToParts support";
5693
+ const Cc = "missing Intl.DateTimeFormat.formatToParts support";
5694
5694
  function _(t, e = (n) => n) {
5695
- return { regex: t, deser: ([n]) => e(Ec(n)) };
5695
+ return { regex: t, deser: ([n]) => e(vc(n)) };
5696
5696
  }
5697
- const Cc = String.fromCharCode(160), vr = `[ ${Cc}]`, Cr = new RegExp(vr, "g");
5698
- function Nc(t) {
5697
+ const Nc = String.fromCharCode(160), vr = `[ ${Nc}]`, Cr = new RegExp(vr, "g");
5698
+ function Ic(t) {
5699
5699
  return t.replace(/\./g, "\\.?").replace(Cr, vr);
5700
5700
  }
5701
- function ts(t) {
5701
+ function ns(t) {
5702
5702
  return t.replace(/\./g, "").replace(Cr, " ").toLowerCase();
5703
5703
  }
5704
5704
  function K(t, e) {
5705
5705
  return t === null ? null : {
5706
- regex: RegExp(t.map(Nc).join("|")),
5707
- deser: ([n]) => t.findIndex((s) => ts(n) === ts(s)) + e
5706
+ regex: RegExp(t.map(Ic).join("|")),
5707
+ deser: ([n]) => t.findIndex((s) => ns(n) === ns(s)) + e
5708
5708
  };
5709
5709
  }
5710
- function ns(t, e) {
5710
+ function ss(t, e) {
5711
5711
  return { regex: t, deser: ([, n, s]) => Ct(n, s), groups: e };
5712
5712
  }
5713
5713
  function tt(t) {
5714
5714
  return { regex: t, deser: ([e]) => e };
5715
5715
  }
5716
- function Ic(t) {
5716
+ function xc(t) {
5717
5717
  return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
5718
5718
  }
5719
- function xc(t, e) {
5720
- 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}"), p = J(e, "{4,6}"), m = (E) => ({ regex: RegExp(Ic(E.val)), deser: ([C]) => C, literal: !0 }), g = ((E) => {
5719
+ function Dc(t, e) {
5720
+ 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}"), p = J(e, "{4,6}"), m = (O) => ({ regex: RegExp(xc(O.val)), deser: ([C]) => C, literal: !0 }), g = ((O) => {
5721
5721
  if (t.literal)
5722
- return m(E);
5723
- switch (E.val) {
5722
+ return m(O);
5723
+ switch (O.val) {
5724
5724
  case "G":
5725
5725
  return K(e.eras("short"), 0);
5726
5726
  case "GG":
@@ -5812,22 +5812,22 @@ function xc(t, e) {
5812
5812
  return K(e.weekdays("long", !0), 1);
5813
5813
  case "Z":
5814
5814
  case "ZZ":
5815
- return ns(new RegExp(`([+-]${a.source})(?::(${s.source}))?`), 2);
5815
+ return ss(new RegExp(`([+-]${a.source})(?::(${s.source}))?`), 2);
5816
5816
  case "ZZZ":
5817
- return ns(new RegExp(`([+-]${a.source})(${s.source})?`), 2);
5817
+ return ss(new RegExp(`([+-]${a.source})(${s.source})?`), 2);
5818
5818
  case "z":
5819
5819
  return tt(/[a-z_+-/]{1,256}?/i);
5820
5820
  case " ":
5821
5821
  return tt(/[^\S\n\r]/);
5822
5822
  default:
5823
- return m(E);
5823
+ return m(O);
5824
5824
  }
5825
5825
  })(t) || {
5826
- invalidReason: vc
5826
+ invalidReason: Cc
5827
5827
  };
5828
5828
  return g.token = t, g;
5829
5829
  }
5830
- const Dc = {
5830
+ const Mc = {
5831
5831
  year: {
5832
5832
  "2-digit": "yy",
5833
5833
  numeric: "yyyyy"
@@ -5869,7 +5869,7 @@ const Dc = {
5869
5869
  short: "ZZZ"
5870
5870
  }
5871
5871
  };
5872
- function Mc(t, e, n) {
5872
+ function Ac(t, e, n) {
5873
5873
  const { type: s, value: r } = t;
5874
5874
  if (s === "literal") {
5875
5875
  const c = /^\s+$/.test(r);
@@ -5881,17 +5881,17 @@ function Mc(t, e, n) {
5881
5881
  const i = e[s];
5882
5882
  let o = s;
5883
5883
  s === "hour" && (e.hour12 != null ? o = e.hour12 ? "hour12" : "hour24" : e.hourCycle != null ? e.hourCycle === "h11" || e.hourCycle === "h12" ? o = "hour12" : o = "hour24" : o = n.hour12 ? "hour12" : "hour24");
5884
- let a = Dc[o];
5884
+ let a = Mc[o];
5885
5885
  if (typeof a == "object" && (a = a[i]), a)
5886
5886
  return {
5887
5887
  literal: !1,
5888
5888
  val: a
5889
5889
  };
5890
5890
  }
5891
- function Ac(t) {
5891
+ function Fc(t) {
5892
5892
  return [`^${t.map((n) => n.regex).reduce((n, s) => `${n}(${s.source})`, "")}$`, t];
5893
5893
  }
5894
- function Fc(t, e, n) {
5894
+ function Rc(t, e, n) {
5895
5895
  const s = t.match(e);
5896
5896
  if (s) {
5897
5897
  const r = {};
@@ -5905,7 +5905,7 @@ function Fc(t, e, n) {
5905
5905
  } else
5906
5906
  return [s, {}];
5907
5907
  }
5908
- function Rc(t) {
5908
+ function Vc(t) {
5909
5909
  const e = (i) => {
5910
5910
  switch (i) {
5911
5911
  case "S":
@@ -5940,30 +5940,30 @@ function Rc(t) {
5940
5940
  }
5941
5941
  };
5942
5942
  let n = null, s;
5943
- return w(t.z) || (n = ie.create(t.z)), w(t.Z) || (n || (n = new U(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 = dn(t.u)), [Object.keys(t).reduce((i, o) => {
5943
+ 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 = hn(t.u)), [Object.keys(t).reduce((i, o) => {
5944
5944
  const a = e(o);
5945
5945
  return a && (i[a] = t[o]), i;
5946
5946
  }, {}), n, s];
5947
5947
  }
5948
5948
  let Ut = null;
5949
- function Vc() {
5949
+ function Lc() {
5950
5950
  return Ut || (Ut = S.fromMillis(1555555555555)), Ut;
5951
5951
  }
5952
- function Lc(t, e) {
5952
+ function Wc(t, e) {
5953
5953
  if (t.literal)
5954
5954
  return t;
5955
5955
  const n = L.macroTokenToFormatOpts(t.val), s = xr(n, e);
5956
5956
  return s == null || s.includes(void 0) ? t : s;
5957
5957
  }
5958
5958
  function Nr(t, e) {
5959
- return Array.prototype.concat(...t.map((n) => Lc(n, e)));
5959
+ return Array.prototype.concat(...t.map((n) => Wc(n, e)));
5960
5960
  }
5961
5961
  function Ir(t, e, n) {
5962
- const s = Nr(L.parseFormat(n), t), r = s.map((o) => xc(o, t)), i = r.find((o) => o.invalidReason);
5962
+ const s = Nr(L.parseFormat(n), t), r = s.map((o) => Dc(o, t)), i = r.find((o) => o.invalidReason);
5963
5963
  if (i)
5964
5964
  return { input: e, tokens: s, invalidReason: i.invalidReason };
5965
5965
  {
5966
- const [o, a] = Ac(r), c = RegExp(o, "i"), [u, l] = Fc(e, c, a), [h, p, m] = l ? Rc(l) : [null, null, void 0];
5966
+ const [o, a] = Fc(r), c = RegExp(o, "i"), [u, l] = Rc(e, c, a), [h, p, m] = l ? Vc(l) : [null, null, void 0];
5967
5967
  if (Ne(l, "a") && Ne(l, "H"))
5968
5968
  throw new Oe(
5969
5969
  "Can't include meridiem when specifying 24-hour format"
@@ -5971,17 +5971,17 @@ function Ir(t, e, n) {
5971
5971
  return { input: e, tokens: s, regex: c, rawMatches: u, matches: l, result: h, zone: p, specificOffset: m };
5972
5972
  }
5973
5973
  }
5974
- function Wc(t, e, n) {
5974
+ function Uc(t, e, n) {
5975
5975
  const { result: s, zone: r, specificOffset: i, invalidReason: o } = Ir(t, e, n);
5976
5976
  return [s, r, i, o];
5977
5977
  }
5978
5978
  function xr(t, e) {
5979
5979
  if (!t)
5980
5980
  return null;
5981
- const s = L.create(e, t).dtFormatter(Vc()), r = s.formatToParts(), i = s.resolvedOptions();
5982
- return r.map((o) => Mc(o, t, i));
5981
+ const s = L.create(e, t).dtFormatter(Lc()), r = s.formatToParts(), i = s.resolvedOptions();
5982
+ return r.map((o) => Ac(o, t, i));
5983
5983
  }
5984
- const $t = "Invalid DateTime", ss = 864e13;
5984
+ const $t = "Invalid DateTime", rs = 864e13;
5985
5985
  function nt(t) {
5986
5986
  return new Q("unsupported zone", `the zone "${t.name}" is not supported`);
5987
5987
  }
@@ -6031,13 +6031,13 @@ function st(t, e) {
6031
6031
  function dt(t, e, n) {
6032
6032
  return Dr(vt(t), e, n);
6033
6033
  }
6034
- function rs(t, e) {
6034
+ function is(t, e) {
6035
6035
  const n = t.o, s = t.c.year + Math.trunc(e.years), r = t.c.month + Math.trunc(e.months) + Math.trunc(e.quarters) * 3, i = {
6036
6036
  ...t.c,
6037
6037
  year: s,
6038
6038
  month: r,
6039
6039
  day: Math.min(t.c.day, yt(s, r)) + Math.trunc(e.days) + Math.trunc(e.weeks) * 7
6040
- }, o = b.fromObject({
6040
+ }, o = k.fromObject({
6041
6041
  years: e.years - Math.trunc(e.years),
6042
6042
  quarters: e.quarters - Math.trunc(e.quarters),
6043
6043
  months: e.months - Math.trunc(e.months),
@@ -6076,7 +6076,7 @@ function Pt(t, e) {
6076
6076
  let s = "";
6077
6077
  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;
6078
6078
  }
6079
- function is(t, e, n, s, r, i) {
6079
+ function os(t, e, n, s, r, i) {
6080
6080
  let o = M(t.c.hour);
6081
6081
  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;
6082
6082
  }
@@ -6087,20 +6087,20 @@ const Mr = {
6087
6087
  minute: 0,
6088
6088
  second: 0,
6089
6089
  millisecond: 0
6090
- }, Uc = {
6090
+ }, $c = {
6091
6091
  weekNumber: 1,
6092
6092
  weekday: 1,
6093
6093
  hour: 0,
6094
6094
  minute: 0,
6095
6095
  second: 0,
6096
6096
  millisecond: 0
6097
- }, $c = {
6097
+ }, Hc = {
6098
6098
  ordinal: 1,
6099
6099
  hour: 0,
6100
6100
  minute: 0,
6101
6101
  second: 0,
6102
6102
  millisecond: 0
6103
- }, Ar = ["year", "month", "day", "hour", "minute", "second", "millisecond"], Hc = [
6103
+ }, Ar = ["year", "month", "day", "hour", "minute", "second", "millisecond"], Bc = [
6104
6104
  "weekYear",
6105
6105
  "weekNumber",
6106
6106
  "weekday",
@@ -6108,8 +6108,8 @@ const Mr = {
6108
6108
  "minute",
6109
6109
  "second",
6110
6110
  "millisecond"
6111
- ], Bc = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
6112
- function Pc(t) {
6111
+ ], Pc = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
6112
+ function zc(t) {
6113
6113
  const e = {
6114
6114
  year: "year",
6115
6115
  years: "year",
@@ -6140,7 +6140,7 @@ function Pc(t) {
6140
6140
  throw new Rs(t);
6141
6141
  return e;
6142
6142
  }
6143
- function os(t) {
6143
+ function as(t) {
6144
6144
  switch (t.toLowerCase()) {
6145
6145
  case "localweekday":
6146
6146
  case "localweekdays":
@@ -6152,10 +6152,10 @@ function os(t) {
6152
6152
  case "localweekyears":
6153
6153
  return "localWeekYear";
6154
6154
  default:
6155
- return Pc(t);
6155
+ return zc(t);
6156
6156
  }
6157
6157
  }
6158
- function as(t, e) {
6158
+ function cs(t, e) {
6159
6159
  const n = de(e.zone, x.defaultZone), s = v.fromObject(e), r = x.now();
6160
6160
  let i, o;
6161
6161
  if (w(t.year))
@@ -6171,8 +6171,8 @@ function as(t, e) {
6171
6171
  }
6172
6172
  return new S({ ts: i, zone: n, loc: s, o });
6173
6173
  }
6174
- function cs(t, e, n) {
6175
- const s = w(n.round) ? !0 : n.round, r = (o, a) => (o = hn(o, s || n.calendary ? 0 : 2, !0), e.loc.clone(n).relFormatter(n).format(o, a)), i = (o) => n.calendary ? e.hasSame(t, o) ? 0 : e.startOf(o).diff(t.startOf(o), o).get(o) : e.diff(t, o).get(o);
6174
+ function us(t, e, n) {
6175
+ const s = w(n.round) ? !0 : n.round, r = (o, a) => (o = fn(o, s || n.calendary ? 0 : 2, !0), e.loc.clone(n).relFormatter(n).format(o, a)), i = (o) => n.calendary ? e.hasSame(t, o) ? 0 : e.startOf(o).diff(t.startOf(o), o).get(o) : e.diff(t, o).get(o);
6176
6176
  if (n.unit)
6177
6177
  return r(i(n.unit), n.unit);
6178
6178
  for (const o of n.units) {
@@ -6182,7 +6182,7 @@ function cs(t, e, n) {
6182
6182
  }
6183
6183
  return r(t > e ? -0 : 0, n.units[n.units.length - 1]);
6184
6184
  }
6185
- function us(t) {
6185
+ function ls(t) {
6186
6186
  let e = {}, n;
6187
6187
  return t.length > 0 && typeof t[t.length - 1] == "object" ? (e = t[t.length - 1], n = Array.from(t).slice(0, t.length - 1)) : n = Array.from(t), [e, n];
6188
6188
  }
@@ -6237,8 +6237,8 @@ class S {
6237
6237
  * @return {DateTime}
6238
6238
  */
6239
6239
  static local() {
6240
- const [e, n] = us(arguments), [s, r, i, o, a, c, u] = n;
6241
- return as({ year: s, month: r, day: i, hour: o, minute: a, second: c, millisecond: u }, e);
6240
+ const [e, n] = ls(arguments), [s, r, i, o, a, c, u] = n;
6241
+ return cs({ year: s, month: r, day: i, hour: o, minute: a, second: c, millisecond: u }, e);
6242
6242
  }
6243
6243
  /**
6244
6244
  * Create a DateTime in UTC
@@ -6265,8 +6265,8 @@ class S {
6265
6265
  * @return {DateTime}
6266
6266
  */
6267
6267
  static utc() {
6268
- const [e, n] = us(arguments), [s, r, i, o, a, c, u] = n;
6269
- return e.zone = U.utcInstance, as({ year: s, month: r, day: i, hour: o, minute: a, second: c, millisecond: u }, e);
6268
+ const [e, n] = ls(arguments), [s, r, i, o, a, c, u] = n;
6269
+ return e.zone = H.utcInstance, cs({ year: s, month: r, day: i, hour: o, minute: a, second: c, millisecond: u }, e);
6270
6270
  }
6271
6271
  /**
6272
6272
  * Create a DateTime from a JavaScript Date object. Uses the default zone.
@@ -6276,7 +6276,7 @@ class S {
6276
6276
  * @return {DateTime}
6277
6277
  */
6278
6278
  static fromJSDate(e, n = {}) {
6279
- const s = wa(e) ? e.valueOf() : NaN;
6279
+ const s = Sa(e) ? e.valueOf() : NaN;
6280
6280
  if (Number.isNaN(s))
6281
6281
  return S.invalid("invalid input");
6282
6282
  const r = de(n.zone, x.defaultZone);
@@ -6298,12 +6298,12 @@ class S {
6298
6298
  */
6299
6299
  static fromMillis(e, n = {}) {
6300
6300
  if (Se(e))
6301
- return e < -ss || e > ss ? S.invalid("Timestamp out of range") : new S({
6301
+ return e < -rs || e > rs ? S.invalid("Timestamp out of range") : new S({
6302
6302
  ts: e,
6303
6303
  zone: de(n.zone, x.defaultZone),
6304
6304
  loc: v.fromObject(n)
6305
6305
  });
6306
- throw new H(
6306
+ throw new P(
6307
6307
  `fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`
6308
6308
  );
6309
6309
  }
@@ -6324,7 +6324,7 @@ class S {
6324
6324
  zone: de(n.zone, x.defaultZone),
6325
6325
  loc: v.fromObject(n)
6326
6326
  });
6327
- throw new H("fromSeconds requires a numerical input");
6327
+ throw new P("fromSeconds requires a numerical input");
6328
6328
  }
6329
6329
  /**
6330
6330
  * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.
@@ -6363,7 +6363,7 @@ class S {
6363
6363
  const s = de(n.zone, x.defaultZone);
6364
6364
  if (!s.isValid)
6365
6365
  return S.invalid(nt(s));
6366
- const r = v.fromObject(n), i = pt(e, os), { minDaysInFirstWeek: o, startOfWeek: a } = qn(i, r), c = x.now(), u = w(n.specificOffset) ? s.offset(c) : n.specificOffset, l = !w(i.ordinal), h = !w(i.year), p = !w(i.month) || !w(i.day), m = h || p, f = i.weekYear || i.weekNumber;
6366
+ const r = v.fromObject(n), i = pt(e, as), { minDaysInFirstWeek: o, startOfWeek: a } = jn(i, r), c = x.now(), u = w(n.specificOffset) ? s.offset(c) : n.specificOffset, l = !w(i.ordinal), h = !w(i.year), p = !w(i.month) || !w(i.day), m = h || p, f = i.weekYear || i.weekNumber;
6367
6367
  if ((m || l) && f)
6368
6368
  throw new Oe(
6369
6369
  "Can't mix weekYear/weekNumber units with year/month/day or ordinals"
@@ -6371,18 +6371,18 @@ class S {
6371
6371
  if (p && l)
6372
6372
  throw new Oe("Can't mix ordinal dates with month/day");
6373
6373
  const g = f || i.weekday && !m;
6374
- let E, C, D = st(c, u);
6375
- g ? (E = Hc, C = Uc, D = mt(D, o, a)) : l ? (E = Bc, C = $c, D = Wt(D)) : (E = Ar, C = Mr);
6374
+ let O, C, D = st(c, u);
6375
+ g ? (O = Bc, C = $c, D = mt(D, o, a)) : l ? (O = Pc, C = Hc, D = Wt(D)) : (O = Ar, C = Mr);
6376
6376
  let ne = !1;
6377
- for (const me of E) {
6377
+ for (const me of O) {
6378
6378
  const It = i[me];
6379
6379
  w(It) ? ne ? i[me] = C[me] : i[me] = D[me] : ne = !0;
6380
6380
  }
6381
- const I = g ? ya(i, o, a) : l ? pa(i) : ir(i), T = I || or(i);
6382
- if (T)
6383
- return S.invalid(T);
6384
- const R = g ? zn(i, o, a) : l ? Zn(i) : i, [A, ke] = dt(R, u, s), fe = new S({
6385
- ts: A,
6381
+ const I = g ? pa(i, o, a) : l ? ga(i) : ir(i), b = I || or(i);
6382
+ if (b)
6383
+ return S.invalid(b);
6384
+ const A = g ? Zn(i, o, a) : l ? qn(i) : i, [F, ke] = dt(A, u, s), fe = new S({
6385
+ ts: F,
6386
6386
  zone: s,
6387
6387
  o: ke,
6388
6388
  loc: r
@@ -6409,7 +6409,7 @@ class S {
6409
6409
  * @return {DateTime}
6410
6410
  */
6411
6411
  static fromISO(e, n = {}) {
6412
- const [s, r] = ac(e);
6412
+ const [s, r] = cc(e);
6413
6413
  return Re(s, r, n, "ISO 8601", e);
6414
6414
  }
6415
6415
  /**
@@ -6427,7 +6427,7 @@ class S {
6427
6427
  * @return {DateTime}
6428
6428
  */
6429
6429
  static fromRFC2822(e, n = {}) {
6430
- const [s, r] = cc(e);
6430
+ const [s, r] = uc(e);
6431
6431
  return Re(s, r, n, "RFC 2822", e);
6432
6432
  }
6433
6433
  /**
@@ -6446,7 +6446,7 @@ class S {
6446
6446
  * @return {DateTime}
6447
6447
  */
6448
6448
  static fromHTTP(e, n = {}) {
6449
- const [s, r] = uc(e);
6449
+ const [s, r] = lc(e);
6450
6450
  return Re(s, r, n, "HTTP", n);
6451
6451
  }
6452
6452
  /**
@@ -6464,12 +6464,12 @@ class S {
6464
6464
  */
6465
6465
  static fromFormat(e, n, s = {}) {
6466
6466
  if (w(e) || w(n))
6467
- throw new H("fromFormat requires an input string and a format");
6467
+ throw new P("fromFormat requires an input string and a format");
6468
6468
  const { locale: r = null, numberingSystem: i = null } = s, o = v.fromOpts({
6469
6469
  locale: r,
6470
6470
  numberingSystem: i,
6471
6471
  defaultToEN: !0
6472
- }), [a, c, u, l] = Wc(o, e, n);
6472
+ }), [a, c, u, l] = Uc(o, e, n);
6473
6473
  return l ? S.invalid(l) : Re(a, c, s, `format ${n}`, e, u);
6474
6474
  }
6475
6475
  /**
@@ -6499,7 +6499,7 @@ class S {
6499
6499
  * @return {DateTime}
6500
6500
  */
6501
6501
  static fromSQL(e, n = {}) {
6502
- const [s, r] = pc(e);
6502
+ const [s, r] = gc(e);
6503
6503
  return Re(s, r, n, "SQL", e);
6504
6504
  }
6505
6505
  /**
@@ -6510,10 +6510,10 @@ class S {
6510
6510
  */
6511
6511
  static invalid(e, n = null) {
6512
6512
  if (!e)
6513
- throw new H("need to specify a reason the DateTime is invalid");
6513
+ throw new P("need to specify a reason the DateTime is invalid");
6514
6514
  const s = e instanceof Q ? e : new Q(e, n);
6515
6515
  if (x.throwOnInvalid)
6516
- throw new Zo(s);
6516
+ throw new qo(s);
6517
6517
  return new S({ invalid: s });
6518
6518
  }
6519
6519
  /**
@@ -6919,7 +6919,7 @@ class S {
6919
6919
  * @return {DateTime}
6920
6920
  */
6921
6921
  toUTC(e = 0, n = {}) {
6922
- return this.setZone(U.instance(e), n);
6922
+ return this.setZone(H.instance(e), n);
6923
6923
  }
6924
6924
  /**
6925
6925
  * "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
@@ -6987,7 +6987,7 @@ class S {
6987
6987
  set(e) {
6988
6988
  if (!this.isValid)
6989
6989
  return this;
6990
- const n = pt(e, os), { minDaysInFirstWeek: s, startOfWeek: r } = qn(n, this.loc), i = !w(n.weekYear) || !w(n.weekNumber) || !w(n.weekday), o = !w(n.ordinal), a = !w(n.year), c = !w(n.month) || !w(n.day), u = a || c, l = n.weekYear || n.weekNumber;
6990
+ const n = pt(e, as), { minDaysInFirstWeek: s, startOfWeek: r } = jn(n, this.loc), i = !w(n.weekYear) || !w(n.weekNumber) || !w(n.weekday), o = !w(n.ordinal), a = !w(n.year), c = !w(n.month) || !w(n.day), u = a || c, l = n.weekYear || n.weekNumber;
6991
6991
  if ((u || o) && l)
6992
6992
  throw new Oe(
6993
6993
  "Can't mix weekYear/weekNumber units with year/month/day or ordinals"
@@ -6995,11 +6995,11 @@ class S {
6995
6995
  if (c && o)
6996
6996
  throw new Oe("Can't mix ordinal dates with month/day");
6997
6997
  let h;
6998
- i ? h = zn(
6998
+ i ? h = Zn(
6999
6999
  { ...mt(this.c, s, r), ...n },
7000
7000
  s,
7001
7001
  r
7002
- ) : w(n.ordinal) ? (h = { ...this.toObject(), ...n }, w(n.day) && (h.day = Math.min(yt(h.year, h.month), h.day))) : h = Zn({ ...Wt(this.c), ...n });
7002
+ ) : w(n.ordinal) ? (h = { ...this.toObject(), ...n }, w(n.day) && (h.day = Math.min(yt(h.year, h.month), h.day))) : h = qn({ ...Wt(this.c), ...n });
7003
7003
  const [p, m] = dt(h, this.o, this.zone);
7004
7004
  return pe(this, { ts: p, o: m });
7005
7005
  }
@@ -7019,8 +7019,8 @@ class S {
7019
7019
  plus(e) {
7020
7020
  if (!this.isValid)
7021
7021
  return this;
7022
- const n = b.fromDurationLike(e);
7023
- return pe(this, rs(this, n));
7022
+ const n = k.fromDurationLike(e);
7023
+ return pe(this, is(this, n));
7024
7024
  }
7025
7025
  /**
7026
7026
  * Subtract a period of time to this DateTime and return the resulting DateTime
@@ -7031,8 +7031,8 @@ class S {
7031
7031
  minus(e) {
7032
7032
  if (!this.isValid)
7033
7033
  return this;
7034
- const n = b.fromDurationLike(e).negate();
7035
- return pe(this, rs(this, n));
7034
+ const n = k.fromDurationLike(e).negate();
7035
+ return pe(this, is(this, n));
7036
7036
  }
7037
7037
  /**
7038
7038
  * "Set" this DateTime to the beginning of a unit of time.
@@ -7049,7 +7049,7 @@ class S {
7049
7049
  startOf(e, { useLocaleWeeks: n = !1 } = {}) {
7050
7050
  if (!this.isValid)
7051
7051
  return this;
7052
- const s = {}, r = b.normalizeUnit(e);
7052
+ const s = {}, r = k.normalizeUnit(e);
7053
7053
  switch (r) {
7054
7054
  case "years":
7055
7055
  s.month = 1;
@@ -7173,7 +7173,7 @@ class S {
7173
7173
  return null;
7174
7174
  const o = e === "extended";
7175
7175
  let a = Pt(this, o);
7176
- return a += "T", a += is(this, o, n, s, r, i), a;
7176
+ return a += "T", a += os(this, o, n, s, r, i), a;
7177
7177
  }
7178
7178
  /**
7179
7179
  * Returns an ISO 8601-compliant string representation of this DateTime's date component
@@ -7217,7 +7217,7 @@ class S {
7217
7217
  extendedZone: i = !1,
7218
7218
  format: o = "extended"
7219
7219
  } = {}) {
7220
- return this.isValid ? (r ? "T" : "") + is(
7220
+ return this.isValid ? (r ? "T" : "") + os(
7221
7221
  this,
7222
7222
  o === "extended",
7223
7223
  n,
@@ -7379,8 +7379,8 @@ class S {
7379
7379
  */
7380
7380
  diff(e, n = "milliseconds", s = {}) {
7381
7381
  if (!this.isValid || !e.isValid)
7382
- return b.invalid("created by diffing an invalid DateTime");
7383
- const r = { locale: this.locale, numberingSystem: this.numberingSystem, ...s }, i = Sa(n).map(b.normalizeUnit), o = e.valueOf() > this.valueOf(), a = o ? this : e, c = o ? e : this, u = _c(a, c, i, r);
7382
+ return k.invalid("created by diffing an invalid DateTime");
7383
+ const r = { locale: this.locale, numberingSystem: this.numberingSystem, ...s }, i = ba(n).map(k.normalizeUnit), o = e.valueOf() > this.valueOf(), a = o ? this : e, c = o ? e : this, u = Oc(a, c, i, r);
7384
7384
  return o ? u.negate() : u;
7385
7385
  }
7386
7386
  /**
@@ -7452,7 +7452,7 @@ class S {
7452
7452
  return null;
7453
7453
  const n = e.base || S.fromObject({}, { zone: this.zone }), s = e.padding ? this < n ? -e.padding : e.padding : 0;
7454
7454
  let r = ["years", "months", "days", "hours", "minutes", "seconds"], i = e.unit;
7455
- return Array.isArray(e.unit) && (r = e.unit, i = void 0), cs(n, this.plus(s), {
7455
+ return Array.isArray(e.unit) && (r = e.unit, i = void 0), us(n, this.plus(s), {
7456
7456
  ...e,
7457
7457
  numeric: "always",
7458
7458
  units: r,
@@ -7473,7 +7473,7 @@ class S {
7473
7473
  * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago"
7474
7474
  */
7475
7475
  toRelativeCalendar(e = {}) {
7476
- return this.isValid ? cs(e.base || S.fromObject({}, { zone: this.zone }), this, {
7476
+ return this.isValid ? us(e.base || S.fromObject({}, { zone: this.zone }), this, {
7477
7477
  ...e,
7478
7478
  numeric: "auto",
7479
7479
  units: ["years", "months", "days"],
@@ -7487,8 +7487,8 @@ class S {
7487
7487
  */
7488
7488
  static min(...e) {
7489
7489
  if (!e.every(S.isDateTime))
7490
- throw new H("min requires all arguments be DateTimes");
7491
- return jn(e, (n) => n.valueOf(), Math.min);
7490
+ throw new P("min requires all arguments be DateTimes");
7491
+ return Gn(e, (n) => n.valueOf(), Math.min);
7492
7492
  }
7493
7493
  /**
7494
7494
  * Return the max of several date times
@@ -7497,8 +7497,8 @@ class S {
7497
7497
  */
7498
7498
  static max(...e) {
7499
7499
  if (!e.every(S.isDateTime))
7500
- throw new H("max requires all arguments be DateTimes");
7501
- return jn(e, (n) => n.valueOf(), Math.max);
7500
+ throw new P("max requires all arguments be DateTimes");
7501
+ return Gn(e, (n) => n.valueOf(), Math.max);
7502
7502
  }
7503
7503
  // MISC
7504
7504
  /**
@@ -7542,7 +7542,7 @@ class S {
7542
7542
  * @type {Object}
7543
7543
  */
7544
7544
  static get DATE_MED_WITH_WEEKDAY() {
7545
- return Go;
7545
+ return Yo;
7546
7546
  }
7547
7547
  /**
7548
7548
  * {@link DateTime#toLocaleString} format like 'October 14, 1983'
@@ -7647,7 +7647,7 @@ class S {
7647
7647
  * @type {Object}
7648
7648
  */
7649
7649
  static get DATETIME_MED_WITH_WEEKDAY() {
7650
- return Yo;
7650
+ return Jo;
7651
7651
  }
7652
7652
  /**
7653
7653
  * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
@@ -7685,29 +7685,32 @@ function Ve(t) {
7685
7685
  return S.fromJSDate(t);
7686
7686
  if (t && typeof t == "object")
7687
7687
  return S.fromObject(t);
7688
- throw new H(
7688
+ throw new P(
7689
7689
  `Unknown datetime argument: ${t}, of type ${typeof t}`
7690
7690
  );
7691
7691
  }
7692
- const zc = {}, Zc = {
7692
+ const Zc = {}, qc = {
7693
7693
  xmlns: "http://www.w3.org/2000/svg",
7694
7694
  viewBox: "0 0 512 512"
7695
- }, qc = /* @__PURE__ */ O("path", {
7695
+ }, jc = /* @__PURE__ */ E("path", {
7696
7696
  fill: "rgb(248 113 113)",
7697
7697
  d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"
7698
- }, null, -1), jc = [
7699
- qc
7698
+ }, null, -1), Gc = [
7699
+ jc
7700
7700
  ];
7701
- function Gc(t, e) {
7702
- return B(), P("svg", Zc, jc);
7701
+ function Yc(t, e) {
7702
+ return W(), U("svg", qc, Gc);
7703
7703
  }
7704
- const Yc = /* @__PURE__ */ he(zc, [["render", Gc]]), Jc = { class: "messages-container-list" }, Kc = { class: "message-container" }, Qc = { class: "widget-btn-container" }, Xc = ["onClick"], eu = { class: "chat-message" }, tu = { class: "message-text" }, nu = { class: "detail-message flex justify-content-between" }, su = {
7704
+ const Jc = /* @__PURE__ */ he(Zc, [["render", Yc]]), Kc = { class: "messages-container-list" }, Qc = { class: "message-container" }, Xc = {
7705
+ key: 0,
7706
+ class: "btn-container-widget"
7707
+ }, eu = ["onClick"], tu = { class: "chat-message" }, nu = { class: "message-text" }, su = { class: "detail-message flex justify-content-between" }, ru = {
7705
7708
  key: 0,
7706
7709
  class: "mr-5"
7707
- }, ru = {
7710
+ }, iu = {
7708
7711
  key: 1,
7709
7712
  class: "mr-5"
7710
- }, iu = /* @__PURE__ */ nn({
7713
+ }, ou = /* @__PURE__ */ nn({
7711
7714
  __name: "MessageList",
7712
7715
  props: {
7713
7716
  messages: {
@@ -7721,7 +7724,7 @@ const Yc = /* @__PURE__ */ he(zc, [["render", Gc]]), Jc = { class: "messages-con
7721
7724
  },
7722
7725
  emits: ["loadMore", "retry"],
7723
7726
  setup(t, { emit: e }) {
7724
- const n = t, s = $(), { pause: r, resume: i } = zo(
7727
+ const n = t, s = B(), { pause: r, resume: i } = Zo(
7725
7728
  s,
7726
7729
  ([{ isIntersecting: o }]) => {
7727
7730
  o && e("loadMore");
@@ -7738,22 +7741,22 @@ const Yc = /* @__PURE__ */ he(zc, [["render", Gc]]), Jc = { class: "messages-con
7738
7741
  }
7739
7742
  r();
7740
7743
  }
7741
- ), (o, a) => (B(), P(gn, null, [
7742
- O("div", {
7744
+ ), (o, a) => (W(), U(wn, null, [
7745
+ E("div", {
7743
7746
  ref_key: "target",
7744
7747
  ref: s,
7745
7748
  class: "target"
7746
7749
  }, null, 512),
7747
- O("div", Jc, [
7748
- (B(!0), P(gn, null, Ur(n.messages, (c) => {
7750
+ E("div", Kc, [
7751
+ (W(!0), U(wn, null, Ur(n.messages, (c) => {
7749
7752
  var u, l;
7750
- return B(), P("div", {
7753
+ return W(), U("div", {
7751
7754
  key: c.id,
7752
7755
  class: it(["message", c.esCliente ? "message-left" : "message-right"])
7753
7756
  }, [
7754
- O("div", Kc, [
7755
- O("div", Qc, [
7756
- O("button", {
7757
+ E("div", Qc, [
7758
+ c.error && c.esCliente ? (W(), U("div", Xc, [
7759
+ E("button", {
7757
7760
  text: "",
7758
7761
  rounded: "",
7759
7762
  class: "btn-danger",
@@ -7761,20 +7764,20 @@ const Yc = /* @__PURE__ */ he(zc, [["render", Gc]]), Jc = { class: "messages-con
7761
7764
  "aria-label": "Cancel",
7762
7765
  onClick: (h) => e("retry", c)
7763
7766
  }, [
7764
- ge(Yc)
7765
- ], 8, Xc)
7766
- ]),
7767
- O("div", eu, [
7768
- O("div", {
7767
+ ge(Jc)
7768
+ ], 8, eu)
7769
+ ])) : sn("", !0),
7770
+ E("div", tu, [
7771
+ E("div", {
7769
7772
  class: it(["bubble", c.esCliente ? "left" : "right"])
7770
7773
  }, [
7771
- O("div", {
7774
+ E("div", {
7772
7775
  class: it(c.esCliente ? "content-left" : "content-right")
7773
7776
  }, [
7774
- O("div", tu, Ue(c.message), 1),
7775
- O("div", nu, [
7776
- (u = c.sender) != null && u.nombreCompleto ? (B(), P("span", su, Ue((l = c.sender) == null ? void 0 : l.nombreCompleto), 1)) : (B(), P("span", ru)),
7777
- O("span", null, Ue(ls(S).fromISO(c.createdAt).toFormat(
7777
+ E("div", nu, Ue(c.message), 1),
7778
+ E("div", su, [
7779
+ (u = c.sender) != null && u.nombreCompleto ? (W(), U("span", ru, Ue((l = c.sender) == null ? void 0 : l.nombreCompleto), 1)) : (W(), U("span", iu)),
7780
+ E("span", null, Ue(ds(S).fromISO(c.createdAt).toFormat(
7778
7781
  "dd-MM-yyyy HH:mm"
7779
7782
  )), 1)
7780
7783
  ])
@@ -7788,38 +7791,38 @@ const Yc = /* @__PURE__ */ he(zc, [["render", Gc]]), Jc = { class: "messages-con
7788
7791
  ], 64));
7789
7792
  }
7790
7793
  });
7791
- const ou = /* @__PURE__ */ he(iu, [["__scopeId", "data-v-91f000f4"]]);
7792
- const au = {}, Fr = (t) => ($r("data-v-d9a6b2b7"), t = t(), Hr(), t), cu = {
7794
+ const au = /* @__PURE__ */ he(ou, [["__scopeId", "data-v-306b8452"]]);
7795
+ const cu = {}, Fr = (t) => ($r("data-v-d9a6b2b7"), t = t(), Hr(), t), uu = {
7793
7796
  viewBox: "0 0 24 24",
7794
7797
  xmlns: "http://www.w3.org/2000/svg",
7795
7798
  style: { width: "28px", height: "28px" }
7796
- }, uu = /* @__PURE__ */ Fr(() => /* @__PURE__ */ O("path", {
7799
+ }, lu = /* @__PURE__ */ Fr(() => /* @__PURE__ */ E("path", {
7797
7800
  d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",
7798
7801
  opacity: ".25"
7799
- }, null, -1)), lu = /* @__PURE__ */ Fr(() => /* @__PURE__ */ O("path", {
7802
+ }, null, -1)), du = /* @__PURE__ */ Fr(() => /* @__PURE__ */ E("path", {
7800
7803
  d: "M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z",
7801
7804
  class: "spinner_ajPY"
7802
- }, null, -1)), du = [
7803
- uu,
7804
- lu
7805
+ }, null, -1)), hu = [
7806
+ lu,
7807
+ du
7805
7808
  ];
7806
- function hu(t, e) {
7807
- return B(), P("svg", cu, du);
7809
+ function fu(t, e) {
7810
+ return W(), U("svg", uu, hu);
7808
7811
  }
7809
- const fu = /* @__PURE__ */ he(au, [["render", hu], ["__scopeId", "data-v-d9a6b2b7"]]);
7810
- function mu(t, e, n) {
7812
+ const mu = /* @__PURE__ */ he(cu, [["render", fu], ["__scopeId", "data-v-d9a6b2b7"]]);
7813
+ function yu(t, e, n) {
7811
7814
  for (let s = t.length - 1; s >= 0; s--)
7812
7815
  if (t[s][e] === n)
7813
7816
  return s;
7814
7817
  return -1;
7815
7818
  }
7816
- const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "title-chat" }, wu = {
7819
+ const pu = { class: "widget" }, gu = { class: "header-widget" }, wu = { class: "title-chat" }, Su = {
7817
7820
  key: 0,
7818
7821
  class: "loader"
7819
- }, Su = { class: "w-full" }, bu = ["onSubmit"], ku = { class: "form-message" }, Tu = { class: "jl-inputgroup-chat" }, _u = {
7822
+ }, bu = { class: "w-full" }, ku = ["onSubmit"], Tu = { class: "form-message" }, _u = { class: "jl-inputgroup-chat" }, Ou = {
7820
7823
  type: "submit",
7821
7824
  class: "pointer btn-primary"
7822
- }, Ou = /* @__PURE__ */ nn({
7825
+ }, Eu = /* @__PURE__ */ nn({
7823
7826
  __name: "Chat",
7824
7827
  props: {
7825
7828
  titlePrincipal: {
@@ -7842,30 +7845,30 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
7842
7845
  "not-viewed-total"
7843
7846
  ],
7844
7847
  setup(t, { emit: e }) {
7845
- const n = t, s = $(null), r = $(""), i = $(0), o = $({
7848
+ const n = t, s = B(null), r = B(""), i = B(0), o = B({
7846
7849
  data: [],
7847
7850
  canLoadMoreMessages: !1
7848
- }), a = $({ virtualhost: "" }), c = $(""), u = $(!1), l = $(null);
7851
+ }), a = B({ virtualhost: "" }), c = B(""), u = B(!1), l = B(null);
7849
7852
  tn(
7850
7853
  () => n.visible,
7851
7854
  async (I) => {
7852
7855
  if (I) {
7853
- if (e("clear-new-messages"), E(), !a.value || !c.value) {
7854
- const R = (await Mn(n.tokenAuth)).response.data;
7855
- a.value = R.virtualHost, c.value = R.appChat.id, g();
7856
+ if (e("clear-new-messages"), O(), !a.value || !c.value) {
7857
+ const A = (await An(n.tokenAuth)).response.data;
7858
+ a.value = A.virtualHost, c.value = A.appChat.id, g();
7856
7859
  }
7857
- i.value > 0 && An(c.value, n.tokenAuth);
7860
+ i.value > 0 && Fn(c.value, n.tokenAuth);
7858
7861
  }
7859
7862
  }
7860
- ), hs(async () => {
7863
+ ), fs(async () => {
7861
7864
  if (!a.value || !c.value) {
7862
- const T = (await Mn(n.tokenAuth)).response.data;
7863
- a.value = T.virtualHost, c.value = T.appChat.id, e("not-viewed-total", T.appChat.totalNoVistosCliente), i.value = T.appChat.totalNoVistosCliente, m(), g();
7865
+ const b = (await An(n.tokenAuth)).response.data;
7866
+ a.value = b.virtualHost, c.value = b.appChat.id, e("not-viewed-total", b.appChat.totalNoVistosCliente), i.value = b.appChat.totalNoVistosCliente, m(), g();
7864
7867
  }
7865
7868
  });
7866
7869
  const h = async (I) => {
7867
- var A;
7868
- if (I.preventDefault(), ((A = r.value) == null ? void 0 : A.length) > 300) {
7870
+ var F;
7871
+ if (I.preventDefault(), ((F = r.value) == null ? void 0 : F.length) > 300) {
7869
7872
  e("show-toast", {
7870
7873
  severity: "warn",
7871
7874
  summary: "Error",
@@ -7883,8 +7886,8 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
7883
7886
  });
7884
7887
  return;
7885
7888
  }
7886
- const T = {
7887
- id: Yr(),
7889
+ const b = {
7890
+ id: Jr(),
7888
7891
  message: r.value,
7889
7892
  visto: !0,
7890
7893
  multimedia: !1,
@@ -7897,14 +7900,14 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
7897
7900
  ci: n.user.ci,
7898
7901
  msPersonaId: n.user.msPersonaId
7899
7902
  }
7900
- }, R = o.value.data.push(T) - 1;
7903
+ }, A = o.value.data.push(b) - 1;
7901
7904
  try {
7902
7905
  const ke = await p(r.value, c.value);
7903
- o.value.data[R] = ke.response.data;
7906
+ o.value.data[A] = ke.response.data;
7904
7907
  } catch {
7905
- o.value.data[R].error = {
7908
+ o.value.data[A].error = {
7906
7909
  error: !0,
7907
- id: T.id
7910
+ id: b.id
7908
7911
  }, e("show-toast", {
7909
7912
  severity: "error",
7910
7913
  summary: "Error",
@@ -7912,41 +7915,41 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
7912
7915
  life: 5e3
7913
7916
  });
7914
7917
  } finally {
7915
- r.value = "", E();
7918
+ r.value = "", O();
7916
7919
  }
7917
- }, p = async (I, T) => Lo({
7920
+ }, p = async (I, b) => Wo({
7918
7921
  esCliente: !0,
7919
7922
  message: I,
7920
- appChatId: T
7923
+ appChatId: b
7921
7924
  }, n.tokenAuth), m = async () => {
7922
- var I, T, R;
7925
+ var I, b, A;
7923
7926
  try {
7924
7927
  u.value = !0;
7925
- const A = (I = o.value.data[0]) == null ? void 0 : I.id, ke = {
7928
+ const F = (I = o.value.data[0]) == null ? void 0 : I.id, ke = {
7926
7929
  limit: 10,
7927
- lastMessagesId: A,
7930
+ lastMessagesId: F,
7928
7931
  appChatId: c.value
7929
- }, fe = await Vo({ body: ke, token: n.tokenAuth });
7932
+ }, fe = await Lo({ body: ke, token: n.tokenAuth });
7930
7933
  o.value.data.unshift(
7931
7934
  ...fe.data.sort((me, It) => -It.createdAt.localeCompare(me.createdAt))
7932
- ), o.value.canLoadMoreMessages = fe.pagination.total > fe.pagination.limit, A && ((T = l.value) != null && T.scrollHeight) && C((R = l.value) == null ? void 0 : R.scrollHeight), A || E();
7933
- } catch (A) {
7934
- throw u.value = !1, A;
7935
+ ), o.value.canLoadMoreMessages = fe.pagination.total > fe.pagination.limit, F && ((b = l.value) != null && b.scrollHeight) && C((A = l.value) == null ? void 0 : A.scrollHeight), F || O();
7936
+ } catch (F) {
7937
+ throw u.value = !1, F;
7935
7938
  } finally {
7936
7939
  u.value = !1;
7937
7940
  }
7938
7941
  }, f = async (I) => {
7939
7942
  e("show-confirm", async () => {
7940
- var T;
7943
+ var b;
7941
7944
  try {
7942
- if (!((T = I.error) != null && T.id))
7945
+ if (!((b = I.error) != null && b.id))
7943
7946
  return;
7944
- const R = await p(I.message, c.value), A = mu(
7947
+ const A = await p(I.message, c.value), F = yu(
7945
7948
  o.value.data,
7946
7949
  "id",
7947
7950
  I.error.id
7948
7951
  );
7949
- o.value.data[A] = { ...R.response.data, error: void 0 };
7952
+ o.value.data[F] = { ...A.response.data, error: void 0 };
7950
7953
  } catch {
7951
7954
  e("show-toast", {
7952
7955
  severity: "error",
@@ -7955,102 +7958,103 @@ const yu = { class: "widget" }, pu = { class: "header-widget" }, gu = { class: "
7955
7958
  life: 5e3
7956
7959
  });
7957
7960
  } finally {
7958
- E();
7961
+ O();
7959
7962
  }
7960
7963
  });
7961
7964
  }, g = (I = "webchat") => {
7962
- const { virtualhost: T } = a.value;
7965
+ const { virtualhost: b } = a.value;
7963
7966
  if (!sessionStorage.getItem("tabBrowser")) {
7964
- let A = Date.now();
7965
- sessionStorage.setItem("tabBrowser", `${A}`);
7967
+ let F = Date.now();
7968
+ sessionStorage.setItem("tabBrowser", `${F}`);
7966
7969
  }
7967
- s.value = new ri(
7968
- `${T}`,
7970
+ s.value = new ii(
7971
+ `${b}`,
7969
7972
  `widget_chat_${sessionStorage.getItem("tabBrowser")}`
7970
- ), s.value.connect(), s.value.subscribe(async (A) => {
7971
- A.event && A.event === ms.NEW_MESSAGE && !A.message.esCliente && (o.value.data.push(A.message), n.visible === !0 && An(c.value, n.tokenAuth), n.visible === !1 && (i.value = i.value + 1, e("new-message")));
7973
+ ), s.value.connect(), s.value.subscribe(async (F) => {
7974
+ F.event && F.event === ms.NEW_MESSAGE && !F.message.esCliente && (o.value.data.push(F.message), n.visible === !0 && Fn(c.value, n.tokenAuth), n.visible === !1 && (i.value = i.value + 1, e("new-message")));
7972
7975
  });
7973
- }, E = () => {
7974
- wn(() => {
7976
+ }, O = () => {
7977
+ Sn(() => {
7975
7978
  l.value && (l.value.scrollTop = l.value.scrollHeight);
7976
7979
  });
7977
7980
  }, C = (I) => {
7978
- wn(() => {
7979
- const T = l.value;
7980
- T && (T.scrollTop = T.scrollHeight - I);
7981
+ Sn(() => {
7982
+ const b = l.value;
7983
+ b && (b.scrollTop = b.scrollHeight - I);
7981
7984
  });
7982
- }, D = $();
7985
+ }, D = B();
7983
7986
  function ne() {
7984
7987
  D.value && (D.value.style.height = "auto", D.value.style.height = D.value.scrollHeight === 54 ? D.value.scrollHeight - 12 + "px" : D.value.scrollHeight + "px");
7985
7988
  }
7986
- return (I, T) => (B(), P("div", yu, [
7987
- O("div", pu, [
7988
- O("h4", gu, Ue(t.titlePrincipal), 1),
7989
- O("button", {
7990
- onClick: T[0] || (T[0] = () => t.toggleChat()),
7989
+ return (I, b) => (W(), U("div", pu, [
7990
+ E("div", gu, [
7991
+ E("h4", wu, Ue(t.titlePrincipal), 1),
7992
+ E("button", {
7993
+ onClick: b[0] || (b[0] = () => t.toggleChat()),
7991
7994
  class: "btn-close"
7992
7995
  }, [
7993
- ge(di, { class: "pointer" })
7996
+ ge(hi, { class: "pointer" })
7994
7997
  ])
7995
7998
  ]),
7996
- O("div", {
7999
+ E("div", {
7997
8000
  class: "messages-container",
7998
8001
  ref_key: "messageContainerRef",
7999
8002
  ref: l
8000
8003
  }, [
8001
- u.value ? (B(), P("div", wu, [
8002
- ge(fu)
8003
- ])) : fs("", !0),
8004
- ge(ou, {
8004
+ u.value ? (W(), U("div", Su, [
8005
+ ge(mu)
8006
+ ])) : sn("", !0),
8007
+ ge(au, {
8005
8008
  messages: o.value.data,
8006
8009
  canLoadMoreMessages: o.value.canLoadMoreMessages,
8007
8010
  onLoadMore: m,
8008
8011
  onRetry: f
8009
8012
  }, null, 8, ["messages", "canLoadMoreMessages"])
8010
8013
  ], 512),
8011
- O("div", Su, [
8012
- O("form", {
8014
+ E("div", bu, [
8015
+ E("form", {
8013
8016
  class: "message-send",
8014
8017
  onSubmit: Br(h, ["prevent"])
8015
8018
  }, [
8016
- O("div", ku, [
8017
- O("div", Tu, [
8018
- zt(O("textarea", {
8019
- "onUpdate:modelValue": T[1] || (T[1] = (R) => r.value = R),
8019
+ E("div", Tu, [
8020
+ E("div", _u, [
8021
+ zt(E("textarea", {
8022
+ "onUpdate:modelValue": b[1] || (b[1] = (A) => r.value = A),
8020
8023
  class: "jl2-input-chat",
8021
8024
  required: "",
8022
8025
  ref_key: "textArea",
8023
8026
  ref: D,
8024
- onInput: T[2] || (T[2] = () => ne())
8027
+ onInput: b[2] || (b[2] = () => ne()),
8028
+ onKeyup: b[3] || (b[3] = Pr((A) => h(A), ["enter"]))
8025
8029
  }, null, 544), [
8026
- [Pr, r.value]
8030
+ [zr, r.value]
8027
8031
  ]),
8028
- O("button", _u, [
8029
- ge(gi, { style: { width: "20px", height: "20px" } })
8032
+ E("button", Ou, [
8033
+ ge(wi, { style: { width: "20px", height: "20px" } })
8030
8034
  ])
8031
8035
  ])
8032
8036
  ])
8033
- ], 40, bu)
8037
+ ], 40, ku)
8034
8038
  ])
8035
8039
  ]));
8036
8040
  }
8037
8041
  });
8038
- const Eu = /* @__PURE__ */ he(Ou, [["__scopeId", "data-v-ce8f6ad6"]]), vu = {}, Cu = {
8042
+ const vu = /* @__PURE__ */ he(Eu, [["__scopeId", "data-v-6b37ca7d"]]), Cu = {}, Nu = {
8039
8043
  width: "87",
8040
8044
  height: "87",
8041
8045
  viewBox: "0 0 87 87",
8042
8046
  fill: "none",
8043
8047
  xmlns: "http://www.w3.org/2000/svg"
8044
- }, Nu = /* @__PURE__ */ zr('<g filter="url(#filter0_d_4007_3488)"><path d="M43.5 77C64.2107 77 81 60.2107 81 39.5C81 18.7893 64.2107 2 43.5 2C22.7893 2 6 18.7893 6 39.5C6 60.2107 22.7893 77 43.5 77Z" fill="white" stroke="#F28B0C" stroke-width="3" stroke-miterlimit="10"></path><path d="M39.705 38.885C40.6908 38.885 41.49 38.0858 41.49 37.1C41.49 36.1142 40.6908 35.315 39.705 35.315C38.7192 35.315 37.92 36.1142 37.92 37.1C37.92 38.0858 38.7192 38.885 39.705 38.885Z" fill="#F28B0C"></path><path d="M45.075 38.885C46.0608 38.885 46.86 38.0858 46.86 37.1C46.86 36.1142 46.0608 35.315 45.075 35.315C44.0892 35.315 43.29 36.1142 43.29 37.1C43.29 38.0858 44.0892 38.885 45.075 38.885Z" fill="#F28B0C"></path><path d="M50.445 38.885C51.4308 38.885 52.23 38.0858 52.23 37.1C52.23 36.1142 51.4308 35.315 50.445 35.315C49.4592 35.315 48.66 36.1142 48.66 37.1C48.66 38.0858 49.4592 38.885 50.445 38.885Z" fill="#F28B0C"></path><path d="M63.27 58.235L58.755 47.78C61.125 44.765 62.415 40.97 62.415 37.175C62.415 26.435 52.665 18.185 41.925 20.12C39.99 19.325 37.98 18.905 35.835 18.905C26.955 18.905 19.785 26.135 19.785 34.955C19.785 38.54 21 41.975 23.145 44.765L18.99 54.44C18.84 54.8 18.915 55.235 19.2 55.445C19.485 55.73 19.92 55.73 20.205 55.595L30.6 50.15C31.89 50.585 33.255 50.87 34.68 50.945C39.48 54.53 45.57 55.25 50.655 53.45L61.905 59.33C62.265 59.48 62.625 59.48 62.91 59.18C63.345 58.97 63.405 58.61 63.27 58.25V58.235ZM51.24 51.71C51.03 51.56 50.745 51.56 50.52 51.635C48.795 52.28 46.935 52.64 45.15 52.64C36.69 52.64 29.61 45.755 29.61 37.1C29.61 29.72 34.845 23.345 42.075 21.845C51.75 19.91 60.705 27.29 60.705 37.1C60.705 40.685 59.415 44.27 57.12 46.985C56.91 47.27 56.835 47.63 56.97 47.915L60.69 56.585L51.24 51.71Z" fill="#F28B0C"></path></g><defs><filter id="filter0_d_4007_3488" x="0.5" y="0.5" width="86" height="86" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4007_3488"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4007_3488" result="shape"></feBlend></filter></defs>', 2), Iu = [
8045
- Nu
8048
+ }, Iu = /* @__PURE__ */ Zr('<g filter="url(#filter0_d_4007_3488)"><path d="M43.5 77C64.2107 77 81 60.2107 81 39.5C81 18.7893 64.2107 2 43.5 2C22.7893 2 6 18.7893 6 39.5C6 60.2107 22.7893 77 43.5 77Z" fill="white" stroke="#F28B0C" stroke-width="3" stroke-miterlimit="10"></path><path d="M39.705 38.885C40.6908 38.885 41.49 38.0858 41.49 37.1C41.49 36.1142 40.6908 35.315 39.705 35.315C38.7192 35.315 37.92 36.1142 37.92 37.1C37.92 38.0858 38.7192 38.885 39.705 38.885Z" fill="#F28B0C"></path><path d="M45.075 38.885C46.0608 38.885 46.86 38.0858 46.86 37.1C46.86 36.1142 46.0608 35.315 45.075 35.315C44.0892 35.315 43.29 36.1142 43.29 37.1C43.29 38.0858 44.0892 38.885 45.075 38.885Z" fill="#F28B0C"></path><path d="M50.445 38.885C51.4308 38.885 52.23 38.0858 52.23 37.1C52.23 36.1142 51.4308 35.315 50.445 35.315C49.4592 35.315 48.66 36.1142 48.66 37.1C48.66 38.0858 49.4592 38.885 50.445 38.885Z" fill="#F28B0C"></path><path d="M63.27 58.235L58.755 47.78C61.125 44.765 62.415 40.97 62.415 37.175C62.415 26.435 52.665 18.185 41.925 20.12C39.99 19.325 37.98 18.905 35.835 18.905C26.955 18.905 19.785 26.135 19.785 34.955C19.785 38.54 21 41.975 23.145 44.765L18.99 54.44C18.84 54.8 18.915 55.235 19.2 55.445C19.485 55.73 19.92 55.73 20.205 55.595L30.6 50.15C31.89 50.585 33.255 50.87 34.68 50.945C39.48 54.53 45.57 55.25 50.655 53.45L61.905 59.33C62.265 59.48 62.625 59.48 62.91 59.18C63.345 58.97 63.405 58.61 63.27 58.25V58.235ZM51.24 51.71C51.03 51.56 50.745 51.56 50.52 51.635C48.795 52.28 46.935 52.64 45.15 52.64C36.69 52.64 29.61 45.755 29.61 37.1C29.61 29.72 34.845 23.345 42.075 21.845C51.75 19.91 60.705 27.29 60.705 37.1C60.705 40.685 59.415 44.27 57.12 46.985C56.91 47.27 56.835 47.63 56.97 47.915L60.69 56.585L51.24 51.71Z" fill="#F28B0C"></path></g><defs><filter id="filter0_d_4007_3488" x="0.5" y="0.5" width="86" height="86" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4007_3488"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4007_3488" result="shape"></feBlend></filter></defs>', 2), xu = [
8049
+ Iu
8046
8050
  ];
8047
- function xu(t, e) {
8048
- return B(), P("svg", Cu, Iu);
8051
+ function Du(t, e) {
8052
+ return W(), U("svg", Nu, xu);
8049
8053
  }
8050
- const Du = /* @__PURE__ */ he(vu, [["render", xu]]), Mu = {
8054
+ const Mu = /* @__PURE__ */ he(Cu, [["render", Du]]), Au = {
8051
8055
  key: 0,
8052
8056
  class: "new-message-badge"
8053
- }, Au = { class: "chat-box" }, Fu = /* @__PURE__ */ nn({
8057
+ }, Fu = { class: "chat-box" }, Ru = /* @__PURE__ */ nn({
8054
8058
  __name: "Widget",
8055
8059
  props: {
8056
8060
  tokenAuth: { type: String, required: !0 },
@@ -8066,24 +8070,24 @@ const Du = /* @__PURE__ */ he(vu, [["render", xu]]), Mu = {
8066
8070
  },
8067
8071
  emits: ["show-toast", "show-confirm"],
8068
8072
  setup(t, { emit: e }) {
8069
- const n = $(!1), s = $(0), r = () => {
8073
+ const n = B(!1), s = B(0), r = () => {
8070
8074
  n.value = !n.value;
8071
8075
  };
8072
- return (i, o) => (B(), P("div", {
8076
+ return (i, o) => (W(), U("div", {
8073
8077
  class: it(["widget-css-reset widget-container", t.isDarkMode ? "chat-dark-mode" : ""])
8074
8078
  }, [
8075
- zt(O("div", {
8079
+ zt(E("div", {
8076
8080
  id: "chat-circle",
8077
8081
  onClick: r,
8078
8082
  class: "widget-container"
8079
8083
  }, [
8080
- s.value ? (B(), P("div", Mu, Ue(s.value > 9 ? "9+" : s.value), 1)) : fs("", !0),
8081
- ge(Du)
8084
+ s.value ? (W(), U("div", Au, Ue(s.value > 9 ? "9+" : s.value), 1)) : sn("", !0),
8085
+ ge(Mu)
8082
8086
  ], 512), [
8083
- [Sn, !n.value]
8087
+ [bn, !n.value]
8084
8088
  ]),
8085
- zt(O("div", Au, [
8086
- ge(Eu, {
8089
+ zt(E("div", Fu, [
8090
+ ge(vu, {
8087
8091
  visible: n.value,
8088
8092
  titlePrincipal: t.titlePrincipal,
8089
8093
  toggleChat: r,
@@ -8096,17 +8100,17 @@ const Du = /* @__PURE__ */ he(vu, [["render", xu]]), Mu = {
8096
8100
  onNotViewedTotal: o[4] || (o[4] = (a) => s.value = a)
8097
8101
  }, null, 8, ["visible", "titlePrincipal", "tokenAuth", "user"])
8098
8102
  ], 512), [
8099
- [Sn, n.value]
8103
+ [bn, n.value]
8100
8104
  ])
8101
8105
  ], 2));
8102
8106
  }
8103
8107
  });
8104
- const Vu = /* @__PURE__ */ he(Fu, [["__scopeId", "data-v-e10a4b97"]]), Lu = {
8108
+ const Lu = /* @__PURE__ */ he(Ru, [["__scopeId", "data-v-e10a4b97"]]), Wu = {
8105
8109
  install(t, e) {
8106
8110
  window.VITE_BACKEND_URL = e.VITE_BACKEND_URL, window.VITE_BROKER_URL = e.VITE_BROKER_URL, window.VITE_USERNAME = e.VITE_USERNAME, window.VITE_PASSWORD = e.VITE_PASSWORD;
8107
8111
  }
8108
8112
  };
8109
8113
  export {
8110
- Vu as Widget,
8111
- Lu as default
8114
+ Lu as Widget,
8115
+ Wu as default
8112
8116
  };