vue-wiguet-chatweb 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +564 -558
- package/dist/vue-wiguet-chatweb.umd.cjs +4 -4
- package/package.json +1 -1
- package/src/components/Chat.vue +2 -1
@@ -1,92 +1,92 @@
|
|
1
|
-
import { openBlock as L, createElementBlock as V, createElementVNode as w, getCurrentScope as
|
1
|
+
import { openBlock as L, createElementBlock as V, createElementVNode as w, getCurrentScope as Di, onScopeDispose as Li, unref as js, computed as Ys, ref as q, watch as En, getCurrentInstance as Fi, onMounted as Js, defineComponent as On, onBeforeMount as Vi, Fragment as Hn, renderList as Bi, normalizeClass as Ie, createVNode as he, createCommentVNode as xt, toDisplayString as Ge, pushScopeId as $i, popScopeId as Ui, nextTick as zn, onUnmounted as Pi, withModifiers as qt, withDirectives as an, withKeys as Zn, vModelText as Wi, createStaticVNode as qi, vShow as jn, createBlock as Hi } from "vue";
|
2
2
|
let ot;
|
3
|
-
const
|
4
|
-
function
|
3
|
+
const zi = new Uint8Array(16);
|
4
|
+
function Zi() {
|
5
5
|
if (!ot && (ot = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ot))
|
6
6
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
7
|
-
return ot(
|
7
|
+
return ot(zi);
|
8
8
|
}
|
9
9
|
const U = [];
|
10
10
|
for (let t = 0; t < 256; ++t)
|
11
11
|
U.push((t + 256).toString(16).slice(1));
|
12
|
-
function
|
12
|
+
function ji(t, e = 0) {
|
13
13
|
return U[t[e + 0]] + U[t[e + 1]] + U[t[e + 2]] + U[t[e + 3]] + "-" + U[t[e + 4]] + U[t[e + 5]] + "-" + U[t[e + 6]] + U[t[e + 7]] + "-" + U[t[e + 8]] + U[t[e + 9]] + "-" + U[t[e + 10]] + U[t[e + 11]] + U[t[e + 12]] + U[t[e + 13]] + U[t[e + 14]] + U[t[e + 15]];
|
14
14
|
}
|
15
|
-
const
|
16
|
-
randomUUID:
|
15
|
+
const Yi = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Yn = {
|
16
|
+
randomUUID: Yi
|
17
17
|
};
|
18
|
-
function
|
18
|
+
function Ji(t, e, n) {
|
19
19
|
if (Yn.randomUUID && !e && !t)
|
20
20
|
return Yn.randomUUID();
|
21
21
|
t = t || {};
|
22
|
-
const s = t.random || (t.rng ||
|
23
|
-
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128,
|
22
|
+
const s = t.random || (t.rng || Zi)();
|
23
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, ji(s);
|
24
24
|
}
|
25
25
|
const oe = (t, e) => {
|
26
26
|
const n = t.__vccOpts || t;
|
27
27
|
for (const [s, r] of e)
|
28
28
|
n[s] = r;
|
29
29
|
return n;
|
30
|
-
},
|
30
|
+
}, Gi = {}, Ki = {
|
31
31
|
width: "32",
|
32
32
|
height: "32",
|
33
33
|
viewBox: "0 0 32 32",
|
34
34
|
fill: "none",
|
35
35
|
xmlns: "http://www.w3.org/2000/svg"
|
36
|
-
},
|
36
|
+
}, Xi = /* @__PURE__ */ w("path", {
|
37
37
|
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",
|
38
38
|
stroke: "#B3B3B3",
|
39
39
|
"stroke-miterlimit": "10"
|
40
|
-
}, null, -1),
|
40
|
+
}, null, -1), Qi = /* @__PURE__ */ w("path", {
|
41
41
|
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",
|
42
42
|
fill: "#B3B3B3"
|
43
|
-
}, null, -1),
|
44
|
-
|
45
|
-
|
43
|
+
}, null, -1), eo = [
|
44
|
+
Xi,
|
45
|
+
Qi
|
46
46
|
];
|
47
|
-
function
|
48
|
-
return L(), V("svg",
|
47
|
+
function to(t, e) {
|
48
|
+
return L(), V("svg", Ki, eo);
|
49
49
|
}
|
50
|
-
const
|
50
|
+
const no = /* @__PURE__ */ oe(Gi, [["render", to]]), so = {}, ro = {
|
51
51
|
xmlns: "http://www.w3.org/2000/svg",
|
52
52
|
viewBox: "0 0 512 512"
|
53
|
-
},
|
53
|
+
}, io = /* @__PURE__ */ w("path", {
|
54
54
|
fill: "#F28B0C",
|
55
55
|
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"
|
56
|
-
}, null, -1),
|
57
|
-
|
56
|
+
}, null, -1), oo = [
|
57
|
+
io
|
58
58
|
];
|
59
|
-
function
|
60
|
-
return L(), V("svg",
|
59
|
+
function ao(t, e) {
|
60
|
+
return L(), V("svg", ro, oo);
|
61
61
|
}
|
62
|
-
const
|
62
|
+
const co = /* @__PURE__ */ oe(so, [["render", ao]]);
|
63
63
|
function Gs(t, e) {
|
64
64
|
return function() {
|
65
65
|
return t.apply(e, arguments);
|
66
66
|
};
|
67
67
|
}
|
68
|
-
const { toString:
|
69
|
-
const n =
|
68
|
+
const { toString: uo } = Object.prototype, { getPrototypeOf: Cn } = Object, It = /* @__PURE__ */ ((t) => (e) => {
|
69
|
+
const n = uo.call(e);
|
70
70
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
71
|
-
})(/* @__PURE__ */ Object.create(null)), le = (t) => (t = t.toLowerCase(), (e) =>
|
72
|
-
function
|
71
|
+
})(/* @__PURE__ */ Object.create(null)), le = (t) => (t = t.toLowerCase(), (e) => It(e) === t), Rt = (t) => (e) => typeof e === t, { isArray: Ve } = Array, Xe = Rt("undefined");
|
72
|
+
function lo(t) {
|
73
73
|
return t !== null && !Xe(t) && t.constructor !== null && !Xe(t.constructor) && Q(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
74
74
|
}
|
75
75
|
const Ks = le("ArrayBuffer");
|
76
|
-
function
|
76
|
+
function fo(t) {
|
77
77
|
let e;
|
78
78
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Ks(t.buffer), e;
|
79
79
|
}
|
80
|
-
const
|
81
|
-
if (
|
80
|
+
const ho = Rt("string"), Q = Rt("function"), Xs = Rt("number"), Dt = (t) => t !== null && typeof t == "object", mo = (t) => t === !0 || t === !1, gt = (t) => {
|
81
|
+
if (It(t) !== "object")
|
82
82
|
return !1;
|
83
83
|
const e = Cn(t);
|
84
84
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
85
|
-
},
|
85
|
+
}, po = le("Date"), yo = le("File"), go = le("Blob"), wo = le("FileList"), So = (t) => Dt(t) && Q(t.pipe), vo = (t) => {
|
86
86
|
let e;
|
87
|
-
return t && (typeof FormData == "function" && t instanceof FormData || Q(t.append) && ((e =
|
87
|
+
return t && (typeof FormData == "function" && t instanceof FormData || Q(t.append) && ((e = It(t)) === "formdata" || // detect form-data instance
|
88
88
|
e === "object" && Q(t.toString) && t.toString() === "[object FormData]"));
|
89
|
-
},
|
89
|
+
}, bo = le("URLSearchParams"), To = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
90
90
|
function et(t, e, { allOwnKeys: n = !1 } = {}) {
|
91
91
|
if (t === null || typeof t > "u")
|
92
92
|
return;
|
@@ -120,13 +120,13 @@ function cn() {
|
|
120
120
|
arguments[s] && et(arguments[s], n);
|
121
121
|
return e;
|
122
122
|
}
|
123
|
-
const
|
123
|
+
const ko = (t, e, n, { allOwnKeys: s } = {}) => (et(e, (r, i) => {
|
124
124
|
n && Q(r) ? t[i] = Gs(r, n) : t[i] = r;
|
125
|
-
}, { allOwnKeys: s }), t),
|
125
|
+
}, { allOwnKeys: s }), t), Eo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Oo = (t, e, n, s) => {
|
126
126
|
t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
127
127
|
value: e.prototype
|
128
128
|
}), n && Object.assign(t.prototype, n);
|
129
|
-
},
|
129
|
+
}, Co = (t, e, n, s) => {
|
130
130
|
let r, i, o;
|
131
131
|
const a = {};
|
132
132
|
if (e = e || {}, t == null) return e;
|
@@ -136,11 +136,11 @@ const To = (t, e, n, { allOwnKeys: s } = {}) => (et(e, (r, i) => {
|
|
136
136
|
t = n !== !1 && Cn(t);
|
137
137
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
138
138
|
return e;
|
139
|
-
},
|
139
|
+
}, xo = (t, e, n) => {
|
140
140
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
141
141
|
const s = t.indexOf(e, n);
|
142
142
|
return s !== -1 && s === n;
|
143
|
-
},
|
143
|
+
}, No = (t) => {
|
144
144
|
if (!t) return null;
|
145
145
|
if (Ve(t)) return t;
|
146
146
|
let e = t.length;
|
@@ -149,30 +149,30 @@ const To = (t, e, n, { allOwnKeys: s } = {}) => (et(e, (r, i) => {
|
|
149
149
|
for (; e-- > 0; )
|
150
150
|
n[e] = t[e];
|
151
151
|
return n;
|
152
|
-
},
|
152
|
+
}, _o = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Cn(Uint8Array)), Ao = (t, e) => {
|
153
153
|
const s = (t && t[Symbol.iterator]).call(t);
|
154
154
|
let r;
|
155
155
|
for (; (r = s.next()) && !r.done; ) {
|
156
156
|
const i = r.value;
|
157
157
|
e.call(t, i[0], i[1]);
|
158
158
|
}
|
159
|
-
},
|
159
|
+
}, Mo = (t, e) => {
|
160
160
|
let n;
|
161
161
|
const s = [];
|
162
162
|
for (; (n = t.exec(e)) !== null; )
|
163
163
|
s.push(n);
|
164
164
|
return s;
|
165
|
-
},
|
165
|
+
}, Io = le("HTMLFormElement"), Ro = (t) => t.toLowerCase().replace(
|
166
166
|
/[-_\s]([a-z\d])(\w*)/g,
|
167
167
|
function(n, s, r) {
|
168
168
|
return s.toUpperCase() + r;
|
169
169
|
}
|
170
|
-
), Jn = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype),
|
170
|
+
), Jn = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Do = le("RegExp"), nr = (t, e) => {
|
171
171
|
const n = Object.getOwnPropertyDescriptors(t), s = {};
|
172
172
|
et(n, (r, i) => {
|
173
173
|
e(r, i, t) !== !1 && (s[i] = r);
|
174
174
|
}), Object.defineProperties(t, s);
|
175
|
-
},
|
175
|
+
}, Lo = (t) => {
|
176
176
|
nr(t, (e, n) => {
|
177
177
|
if (Q(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
178
178
|
return !1;
|
@@ -187,29 +187,29 @@ const To = (t, e, n, { allOwnKeys: s } = {}) => (et(e, (r, i) => {
|
|
187
187
|
});
|
188
188
|
}
|
189
189
|
});
|
190
|
-
},
|
190
|
+
}, Fo = (t, e) => {
|
191
191
|
const n = {}, s = (r) => {
|
192
192
|
r.forEach((i) => {
|
193
193
|
n[i] = !0;
|
194
194
|
});
|
195
195
|
};
|
196
196
|
return Ve(t) ? s(t) : s(String(t).split(e)), n;
|
197
|
-
},
|
198
|
-
},
|
197
|
+
}, Vo = () => {
|
198
|
+
}, Bo = (t, e) => (t = +t, Number.isFinite(t) ? t : e), Ht = "abcdefghijklmnopqrstuvwxyz", Gn = "0123456789", sr = {
|
199
199
|
DIGIT: Gn,
|
200
200
|
ALPHA: Ht,
|
201
201
|
ALPHA_DIGIT: Ht + Ht.toUpperCase() + Gn
|
202
|
-
},
|
202
|
+
}, $o = (t = 16, e = sr.ALPHA_DIGIT) => {
|
203
203
|
let n = "";
|
204
204
|
const { length: s } = e;
|
205
205
|
for (; t--; )
|
206
206
|
n += e[Math.random() * s | 0];
|
207
207
|
return n;
|
208
208
|
};
|
209
|
-
function
|
209
|
+
function Uo(t) {
|
210
210
|
return !!(t && Q(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
211
211
|
}
|
212
|
-
const
|
212
|
+
const Po = (t) => {
|
213
213
|
const e = new Array(10), n = (s, r) => {
|
214
214
|
if (Dt(s)) {
|
215
215
|
if (e.indexOf(s) >= 0)
|
@@ -226,59 +226,59 @@ const Uo = (t) => {
|
|
226
226
|
return s;
|
227
227
|
};
|
228
228
|
return n(t, 0);
|
229
|
-
},
|
229
|
+
}, Wo = le("AsyncFunction"), qo = (t) => t && (Dt(t) || Q(t)) && Q(t.then) && Q(t.catch), f = {
|
230
230
|
isArray: Ve,
|
231
231
|
isArrayBuffer: Ks,
|
232
|
-
isBuffer:
|
233
|
-
isFormData:
|
234
|
-
isArrayBufferView:
|
235
|
-
isString:
|
232
|
+
isBuffer: lo,
|
233
|
+
isFormData: vo,
|
234
|
+
isArrayBufferView: fo,
|
235
|
+
isString: ho,
|
236
236
|
isNumber: Xs,
|
237
|
-
isBoolean:
|
237
|
+
isBoolean: mo,
|
238
238
|
isObject: Dt,
|
239
239
|
isPlainObject: gt,
|
240
240
|
isUndefined: Xe,
|
241
|
-
isDate:
|
242
|
-
isFile:
|
243
|
-
isBlob:
|
244
|
-
isRegExp:
|
241
|
+
isDate: po,
|
242
|
+
isFile: yo,
|
243
|
+
isBlob: go,
|
244
|
+
isRegExp: Do,
|
245
245
|
isFunction: Q,
|
246
|
-
isStream:
|
247
|
-
isURLSearchParams:
|
248
|
-
isTypedArray:
|
249
|
-
isFileList:
|
246
|
+
isStream: So,
|
247
|
+
isURLSearchParams: bo,
|
248
|
+
isTypedArray: _o,
|
249
|
+
isFileList: wo,
|
250
250
|
forEach: et,
|
251
251
|
merge: cn,
|
252
|
-
extend:
|
253
|
-
trim:
|
254
|
-
stripBOM:
|
255
|
-
inherits:
|
256
|
-
toFlatObject:
|
257
|
-
kindOf:
|
252
|
+
extend: ko,
|
253
|
+
trim: To,
|
254
|
+
stripBOM: Eo,
|
255
|
+
inherits: Oo,
|
256
|
+
toFlatObject: Co,
|
257
|
+
kindOf: It,
|
258
258
|
kindOfTest: le,
|
259
|
-
endsWith:
|
260
|
-
toArray:
|
261
|
-
forEachEntry:
|
262
|
-
matchAll:
|
263
|
-
isHTMLForm:
|
259
|
+
endsWith: xo,
|
260
|
+
toArray: No,
|
261
|
+
forEachEntry: Ao,
|
262
|
+
matchAll: Mo,
|
263
|
+
isHTMLForm: Io,
|
264
264
|
hasOwnProperty: Jn,
|
265
265
|
hasOwnProp: Jn,
|
266
266
|
// an alias to avoid ESLint no-prototype-builtins detection
|
267
267
|
reduceDescriptors: nr,
|
268
|
-
freezeMethods:
|
269
|
-
toObjectSet:
|
268
|
+
freezeMethods: Lo,
|
269
|
+
toObjectSet: Fo,
|
270
270
|
toCamelCase: Ro,
|
271
|
-
noop:
|
272
|
-
toFiniteNumber:
|
271
|
+
noop: Vo,
|
272
|
+
toFiniteNumber: Bo,
|
273
273
|
findKey: Qs,
|
274
274
|
global: er,
|
275
275
|
isContextDefined: tr,
|
276
276
|
ALPHABET: sr,
|
277
|
-
generateString:
|
278
|
-
isSpecCompliantForm:
|
279
|
-
toJSONObject:
|
280
|
-
isAsyncFn:
|
281
|
-
isThenable:
|
277
|
+
generateString: $o,
|
278
|
+
isSpecCompliantForm: Uo,
|
279
|
+
toJSONObject: Po,
|
280
|
+
isAsyncFn: Wo,
|
281
|
+
isThenable: qo
|
282
282
|
};
|
283
283
|
function E(t, e, n, s, r) {
|
284
284
|
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);
|
@@ -330,7 +330,7 @@ E.from = (t, e, n, s, r, i) => {
|
|
330
330
|
return c !== Error.prototype;
|
331
331
|
}, (a) => a !== "isAxiosError"), E.call(o, t.message, e, n, s, r), o.cause = t, o.name = t.name, i && Object.assign(o, i), o;
|
332
332
|
};
|
333
|
-
const
|
333
|
+
const Ho = null;
|
334
334
|
function un(t) {
|
335
335
|
return f.isPlainObject(t) || f.isArray(t);
|
336
336
|
}
|
@@ -342,10 +342,10 @@ function Kn(t, e, n) {
|
|
342
342
|
return r = or(r), !n && i ? "[" + r + "]" : r;
|
343
343
|
}).join(n ? "." : "") : e;
|
344
344
|
}
|
345
|
-
function
|
345
|
+
function zo(t) {
|
346
346
|
return f.isArray(t) && !t.some(un);
|
347
347
|
}
|
348
|
-
const
|
348
|
+
const Zo = f.toFlatObject(f, {}, null, function(e) {
|
349
349
|
return /^is[A-Z]/.test(e);
|
350
350
|
});
|
351
351
|
function Lt(t, e, n) {
|
@@ -374,7 +374,7 @@ function Lt(t, e, n) {
|
|
374
374
|
if (m && !_ && typeof m == "object") {
|
375
375
|
if (f.endsWith(y, "{}"))
|
376
376
|
y = s ? y : y.slice(0, -2), m = JSON.stringify(m);
|
377
|
-
else if (f.isArray(m) &&
|
377
|
+
else if (f.isArray(m) && zo(m) || (f.isFileList(m) || f.endsWith(y, "[]")) && (x = f.toArray(m)))
|
378
378
|
return y = or(y), x.forEach(function(fe, b) {
|
379
379
|
!(f.isUndefined(fe) || fe === null) && e.append(
|
380
380
|
// eslint-disable-next-line no-nested-ternary
|
@@ -385,7 +385,7 @@ function Lt(t, e, n) {
|
|
385
385
|
}
|
386
386
|
return un(m) ? !0 : (e.append(Kn(_, y, i), u(m)), !1);
|
387
387
|
}
|
388
|
-
const h = [], g = Object.assign(
|
388
|
+
const h = [], g = Object.assign(Zo, {
|
389
389
|
defaultVisitor: l,
|
390
390
|
convertValue: u,
|
391
391
|
isVisitable: un
|
@@ -394,14 +394,14 @@ function Lt(t, e, n) {
|
|
394
394
|
if (!f.isUndefined(m)) {
|
395
395
|
if (h.indexOf(m) !== -1)
|
396
396
|
throw Error("Circular reference detected in " + y.join("."));
|
397
|
-
h.push(m), f.forEach(m, function(x,
|
397
|
+
h.push(m), f.forEach(m, function(x, I) {
|
398
398
|
(!(f.isUndefined(x) || x === null) && r.call(
|
399
399
|
e,
|
400
400
|
x,
|
401
|
-
f.isString(
|
401
|
+
f.isString(I) ? I.trim() : I,
|
402
402
|
y,
|
403
403
|
g
|
404
|
-
)) === !0 && d(x, y ? y.concat(
|
404
|
+
)) === !0 && d(x, y ? y.concat(I) : [I]);
|
405
405
|
}), h.pop();
|
406
406
|
}
|
407
407
|
}
|
@@ -438,13 +438,13 @@ ar.toString = function(e) {
|
|
438
438
|
return n(r[0]) + "=" + n(r[1]);
|
439
439
|
}, "").join("&");
|
440
440
|
};
|
441
|
-
function
|
441
|
+
function jo(t) {
|
442
442
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
443
443
|
}
|
444
444
|
function cr(t, e, n) {
|
445
445
|
if (!e)
|
446
446
|
return t;
|
447
|
-
const s = n && n.encode ||
|
447
|
+
const s = n && n.encode || jo, r = n && n.serialize;
|
448
448
|
let i;
|
449
449
|
if (r ? i = r(e, n) : i = f.isURLSearchParams(e) ? e.toString() : new xn(e, n).toString(s), i) {
|
450
450
|
const o = t.indexOf("#");
|
@@ -510,32 +510,32 @@ const ur = {
|
|
510
510
|
silentJSONParsing: !0,
|
511
511
|
forcedJSONParsing: !0,
|
512
512
|
clarifyTimeoutError: !1
|
513
|
-
},
|
513
|
+
}, Yo = typeof URLSearchParams < "u" ? URLSearchParams : xn, Jo = typeof FormData < "u" ? FormData : null, Go = typeof Blob < "u" ? Blob : null, Ko = (() => {
|
514
514
|
let t;
|
515
515
|
return typeof navigator < "u" && ((t = navigator.product) === "ReactNative" || t === "NativeScript" || t === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
516
|
-
})(),
|
516
|
+
})(), Xo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
517
517
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ae = {
|
518
518
|
isBrowser: !0,
|
519
519
|
classes: {
|
520
|
-
URLSearchParams:
|
521
|
-
FormData:
|
522
|
-
Blob:
|
520
|
+
URLSearchParams: Yo,
|
521
|
+
FormData: Jo,
|
522
|
+
Blob: Go
|
523
523
|
},
|
524
|
-
isStandardBrowserEnv:
|
525
|
-
isStandardBrowserWebWorkerEnv:
|
524
|
+
isStandardBrowserEnv: Ko,
|
525
|
+
isStandardBrowserWebWorkerEnv: Xo,
|
526
526
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
527
527
|
};
|
528
|
-
function
|
528
|
+
function Qo(t, e) {
|
529
529
|
return Lt(t, new ae.classes.URLSearchParams(), Object.assign({
|
530
530
|
visitor: function(n, s, r, i) {
|
531
531
|
return ae.isNode && f.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
532
532
|
}
|
533
533
|
}, e));
|
534
534
|
}
|
535
|
-
function
|
535
|
+
function ea(t) {
|
536
536
|
return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
537
537
|
}
|
538
|
-
function
|
538
|
+
function ta(t) {
|
539
539
|
const e = {}, n = Object.keys(t);
|
540
540
|
let s;
|
541
541
|
const r = n.length;
|
@@ -548,20 +548,20 @@ function lr(t) {
|
|
548
548
|
function e(n, s, r, i) {
|
549
549
|
let o = n[i++];
|
550
550
|
const a = Number.isFinite(+o), c = i >= n.length;
|
551
|
-
return o = !o && f.isArray(r) ? r.length : o, c ? (f.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !a) : ((!r[o] || !f.isObject(r[o])) && (r[o] = []), e(n, s, r[o], i) && f.isArray(r[o]) && (r[o] =
|
551
|
+
return o = !o && f.isArray(r) ? r.length : o, c ? (f.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !a) : ((!r[o] || !f.isObject(r[o])) && (r[o] = []), e(n, s, r[o], i) && f.isArray(r[o]) && (r[o] = ta(r[o])), !a);
|
552
552
|
}
|
553
553
|
if (f.isFormData(t) && f.isFunction(t.entries)) {
|
554
554
|
const n = {};
|
555
555
|
return f.forEachEntry(t, (s, r) => {
|
556
|
-
e(
|
556
|
+
e(ea(s), r, n, 0);
|
557
557
|
}), n;
|
558
558
|
}
|
559
559
|
return null;
|
560
560
|
}
|
561
|
-
const
|
561
|
+
const na = {
|
562
562
|
"Content-Type": void 0
|
563
563
|
};
|
564
|
-
function
|
564
|
+
function sa(t, e, n) {
|
565
565
|
if (f.isString(t))
|
566
566
|
try {
|
567
567
|
return (e || JSON.parse)(t), f.trim(t);
|
@@ -587,7 +587,7 @@ const Be = {
|
|
587
587
|
let a;
|
588
588
|
if (i) {
|
589
589
|
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
590
|
-
return
|
590
|
+
return Qo(e, this.formSerializer).toString();
|
591
591
|
if ((a = f.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
|
592
592
|
const c = this.env && this.env.FormData;
|
593
593
|
return Lt(
|
@@ -597,7 +597,7 @@ const Be = {
|
|
597
597
|
);
|
598
598
|
}
|
599
599
|
}
|
600
|
-
return i || r ? (n.setContentType("application/json", !1),
|
600
|
+
return i || r ? (n.setContentType("application/json", !1), sa(e)) : e;
|
601
601
|
}],
|
602
602
|
transformResponse: [function(e) {
|
603
603
|
const n = this.transitional || Be.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
|
@@ -638,9 +638,9 @@ f.forEach(["delete", "get", "head"], function(e) {
|
|
638
638
|
Be.headers[e] = {};
|
639
639
|
});
|
640
640
|
f.forEach(["post", "put", "patch"], function(e) {
|
641
|
-
Be.headers[e] = f.merge(
|
641
|
+
Be.headers[e] = f.merge(na);
|
642
642
|
});
|
643
|
-
const
|
643
|
+
const ra = f.toObjectSet([
|
644
644
|
"age",
|
645
645
|
"authorization",
|
646
646
|
"content-length",
|
@@ -658,12 +658,12 @@ const sa = f.toObjectSet([
|
|
658
658
|
"referer",
|
659
659
|
"retry-after",
|
660
660
|
"user-agent"
|
661
|
-
]),
|
661
|
+
]), ia = (t) => {
|
662
662
|
const e = {};
|
663
663
|
let n, s, r;
|
664
664
|
return t && t.split(`
|
665
665
|
`).forEach(function(o) {
|
666
|
-
r = o.indexOf(":"), n = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!n || e[n] &&
|
666
|
+
r = o.indexOf(":"), n = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!n || e[n] && ra[n]) && (n === "set-cookie" ? e[n] ? e[n].push(s) : e[n] = [s] : e[n] = e[n] ? e[n] + ", " + s : s);
|
667
667
|
}), e;
|
668
668
|
}, es = Symbol("internals");
|
669
669
|
function He(t) {
|
@@ -672,14 +672,14 @@ function He(t) {
|
|
672
672
|
function wt(t) {
|
673
673
|
return t === !1 || t == null ? t : f.isArray(t) ? t.map(wt) : String(t);
|
674
674
|
}
|
675
|
-
function
|
675
|
+
function oa(t) {
|
676
676
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
677
677
|
let s;
|
678
678
|
for (; s = n.exec(t); )
|
679
679
|
e[s[1]] = s[2];
|
680
680
|
return e;
|
681
681
|
}
|
682
|
-
const
|
682
|
+
const aa = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
683
683
|
function zt(t, e, n, s, r) {
|
684
684
|
if (f.isFunction(s))
|
685
685
|
return s.call(this, e, n);
|
@@ -690,10 +690,10 @@ function zt(t, e, n, s, r) {
|
|
690
690
|
return s.test(e);
|
691
691
|
}
|
692
692
|
}
|
693
|
-
function
|
693
|
+
function ca(t) {
|
694
694
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, s) => n.toUpperCase() + s);
|
695
695
|
}
|
696
|
-
function
|
696
|
+
function ua(t, e) {
|
697
697
|
const n = f.toCamelCase(" " + e);
|
698
698
|
["get", "set", "has"].forEach((s) => {
|
699
699
|
Object.defineProperty(t, s + n, {
|
@@ -718,7 +718,7 @@ class ee {
|
|
718
718
|
(!h || r[h] === void 0 || u === !0 || u === void 0 && r[h] !== !1) && (r[h || c] = wt(a));
|
719
719
|
}
|
720
720
|
const o = (a, c) => f.forEach(a, (u, l) => i(u, l, c));
|
721
|
-
return f.isPlainObject(e) || e instanceof this.constructor ? o(e, n) : f.isString(e) && (e = e.trim()) && !
|
721
|
+
return f.isPlainObject(e) || e instanceof this.constructor ? o(e, n) : f.isString(e) && (e = e.trim()) && !aa(e) ? o(ia(e), n) : e != null && i(n, e, s), this;
|
722
722
|
}
|
723
723
|
get(e, n) {
|
724
724
|
if (e = He(e), e) {
|
@@ -728,7 +728,7 @@ class ee {
|
|
728
728
|
if (!n)
|
729
729
|
return r;
|
730
730
|
if (n === !0)
|
731
|
-
return
|
731
|
+
return oa(r);
|
732
732
|
if (f.isFunction(n))
|
733
733
|
return n.call(this, r, s);
|
734
734
|
if (f.isRegExp(n))
|
@@ -772,7 +772,7 @@ class ee {
|
|
772
772
|
n[o] = wt(r), delete n[i];
|
773
773
|
return;
|
774
774
|
}
|
775
|
-
const a = e ?
|
775
|
+
const a = e ? ca(i) : String(i).trim();
|
776
776
|
a !== i && delete n[i], n[a] = wt(r), s[a] = !0;
|
777
777
|
}), this;
|
778
778
|
}
|
@@ -808,7 +808,7 @@ class ee {
|
|
808
808
|
}).accessors, r = this.prototype;
|
809
809
|
function i(o) {
|
810
810
|
const a = He(o);
|
811
|
-
s[a] || (
|
811
|
+
s[a] || (ua(r, o), s[a] = !0);
|
812
812
|
}
|
813
813
|
return f.isArray(e) ? e.forEach(i) : i(e), this;
|
814
814
|
}
|
@@ -832,7 +832,7 @@ function tt(t, e, n) {
|
|
832
832
|
f.inherits(tt, E, {
|
833
833
|
__CANCEL__: !0
|
834
834
|
});
|
835
|
-
function
|
835
|
+
function la(t, e, n) {
|
836
836
|
const s = n.config.validateStatus;
|
837
837
|
!n.status || !s || s(n.status) ? t(n) : e(new E(
|
838
838
|
"Request failed with status code " + n.status,
|
@@ -842,7 +842,7 @@ function ua(t, e, n) {
|
|
842
842
|
n
|
843
843
|
));
|
844
844
|
}
|
845
|
-
const
|
845
|
+
const fa = ae.isStandardBrowserEnv ? (
|
846
846
|
// Standard browser envs support document.cookie
|
847
847
|
/* @__PURE__ */ function() {
|
848
848
|
return {
|
@@ -873,16 +873,16 @@ const la = ae.isStandardBrowserEnv ? (
|
|
873
873
|
};
|
874
874
|
}()
|
875
875
|
);
|
876
|
-
function
|
876
|
+
function ha(t) {
|
877
877
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
878
878
|
}
|
879
|
-
function
|
879
|
+
function da(t, e) {
|
880
880
|
return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
881
881
|
}
|
882
882
|
function hr(t, e) {
|
883
|
-
return t && !
|
883
|
+
return t && !ha(e) ? da(t, e) : e;
|
884
884
|
}
|
885
|
-
const
|
885
|
+
const ma = ae.isStandardBrowserEnv ? (
|
886
886
|
// Standard browser envs have full support of the APIs needed to test
|
887
887
|
// whether the request URL is of the same origin as current location.
|
888
888
|
function() {
|
@@ -914,11 +914,11 @@ const da = ae.isStandardBrowserEnv ? (
|
|
914
914
|
};
|
915
915
|
}()
|
916
916
|
);
|
917
|
-
function
|
917
|
+
function pa(t) {
|
918
918
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
919
919
|
return e && e[1] || "";
|
920
920
|
}
|
921
|
-
function
|
921
|
+
function ya(t, e) {
|
922
922
|
t = t || 10;
|
923
923
|
const n = new Array(t), s = new Array(t);
|
924
924
|
let r = 0, i = 0, o;
|
@@ -936,7 +936,7 @@ function pa(t, e) {
|
|
936
936
|
}
|
937
937
|
function ts(t, e) {
|
938
938
|
let n = 0;
|
939
|
-
const s =
|
939
|
+
const s = ya(50, 250);
|
940
940
|
return (r) => {
|
941
941
|
const i = r.loaded, o = r.lengthComputable ? r.total : void 0, a = i - n, c = s(a), u = i <= o;
|
942
942
|
n = i;
|
@@ -952,7 +952,7 @@ function ts(t, e) {
|
|
952
952
|
l[e ? "download" : "upload"] = !0, t(l);
|
953
953
|
};
|
954
954
|
}
|
955
|
-
const
|
955
|
+
const ga = typeof XMLHttpRequest < "u", wa = ga && function(t) {
|
956
956
|
return new Promise(function(n, s) {
|
957
957
|
let r = t.data;
|
958
958
|
const i = ee.from(t.headers).normalize(), o = t.responseType;
|
@@ -981,7 +981,7 @@ const ya = typeof XMLHttpRequest < "u", ga = ya && function(t) {
|
|
981
981
|
config: t,
|
982
982
|
request: u
|
983
983
|
};
|
984
|
-
|
984
|
+
la(function(x) {
|
985
985
|
n(x), c();
|
986
986
|
}, function(x) {
|
987
987
|
s(x), c();
|
@@ -1003,7 +1003,7 @@ const ya = typeof XMLHttpRequest < "u", ga = ya && function(t) {
|
|
1003
1003
|
u
|
1004
1004
|
)), u = null;
|
1005
1005
|
}, ae.isStandardBrowserEnv) {
|
1006
|
-
const d = (t.withCredentials ||
|
1006
|
+
const d = (t.withCredentials || ma(l)) && t.xsrfCookieName && fa.read(t.xsrfCookieName);
|
1007
1007
|
d && i.set(t.xsrfHeaderName, d);
|
1008
1008
|
}
|
1009
1009
|
r === void 0 && i.setContentType(null), "setRequestHeader" in u && f.forEach(i.toJSON(), function(m, y) {
|
@@ -1011,7 +1011,7 @@ const ya = typeof XMLHttpRequest < "u", ga = ya && function(t) {
|
|
1011
1011
|
}), f.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), o && o !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", ts(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", ts(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (d) => {
|
1012
1012
|
u && (s(!d || d.type ? new tt(null, t, u) : d), u.abort(), u = null);
|
1013
1013
|
}, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
|
1014
|
-
const g =
|
1014
|
+
const g = pa(l);
|
1015
1015
|
if (g && ae.protocols.indexOf(g) === -1) {
|
1016
1016
|
s(new E("Unsupported protocol " + g + ":", E.ERR_BAD_REQUEST, t));
|
1017
1017
|
return;
|
@@ -1019,8 +1019,8 @@ const ya = typeof XMLHttpRequest < "u", ga = ya && function(t) {
|
|
1019
1019
|
u.send(r || null);
|
1020
1020
|
});
|
1021
1021
|
}, St = {
|
1022
|
-
http:
|
1023
|
-
xhr:
|
1022
|
+
http: Ho,
|
1023
|
+
xhr: wa
|
1024
1024
|
};
|
1025
1025
|
f.forEach(St, (t, e) => {
|
1026
1026
|
if (t) {
|
@@ -1031,7 +1031,7 @@ f.forEach(St, (t, e) => {
|
|
1031
1031
|
Object.defineProperty(t, "adapterName", { value: e });
|
1032
1032
|
}
|
1033
1033
|
});
|
1034
|
-
const
|
1034
|
+
const Sa = {
|
1035
1035
|
getAdapter: (t) => {
|
1036
1036
|
t = f.isArray(t) ? t : [t];
|
1037
1037
|
const { length: e } = t;
|
@@ -1059,7 +1059,7 @@ function ns(t) {
|
|
1059
1059
|
return jt(t), t.headers = ee.from(t.headers), t.data = Zt.call(
|
1060
1060
|
t,
|
1061
1061
|
t.transformRequest
|
1062
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1),
|
1062
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Sa.getAdapter(t.adapter || Be.adapter)(t).then(function(s) {
|
1063
1063
|
return jt(t), s.data = Zt.call(
|
1064
1064
|
t,
|
1065
1065
|
t.transformResponse,
|
@@ -1162,7 +1162,7 @@ Nn.transitional = function(e, n, s) {
|
|
1162
1162
|
)), e ? e(i, o, a) : !0;
|
1163
1163
|
};
|
1164
1164
|
};
|
1165
|
-
function
|
1165
|
+
function va(t, e, n) {
|
1166
1166
|
if (typeof t != "object")
|
1167
1167
|
throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
|
1168
1168
|
const s = Object.keys(t);
|
@@ -1180,7 +1180,7 @@ function Sa(t, e, n) {
|
|
1180
1180
|
}
|
1181
1181
|
}
|
1182
1182
|
const ln = {
|
1183
|
-
assertOptions:
|
1183
|
+
assertOptions: va,
|
1184
1184
|
validators: Nn
|
1185
1185
|
}, me = ln.validators;
|
1186
1186
|
class ke {
|
@@ -1354,12 +1354,12 @@ class _n {
|
|
1354
1354
|
};
|
1355
1355
|
}
|
1356
1356
|
}
|
1357
|
-
function
|
1357
|
+
function ba(t) {
|
1358
1358
|
return function(n) {
|
1359
1359
|
return t.apply(null, n);
|
1360
1360
|
};
|
1361
1361
|
}
|
1362
|
-
function
|
1362
|
+
function Ta(t) {
|
1363
1363
|
return f.isObject(t) && t.isAxiosError === !0;
|
1364
1364
|
}
|
1365
1365
|
const fn = {
|
@@ -1448,8 +1448,8 @@ F.Cancel = F.CanceledError;
|
|
1448
1448
|
F.all = function(e) {
|
1449
1449
|
return Promise.all(e);
|
1450
1450
|
};
|
1451
|
-
F.spread =
|
1452
|
-
F.isAxiosError =
|
1451
|
+
F.spread = ba;
|
1452
|
+
F.isAxiosError = Ta;
|
1453
1453
|
F.mergeConfig = Le;
|
1454
1454
|
F.AxiosHeaders = ee;
|
1455
1455
|
F.formToJSON = (t) => lr(f.isHTMLForm(t) ? new FormData(t) : t);
|
@@ -1477,7 +1477,7 @@ const Ft = async function(t) {
|
|
1477
1477
|
throw i;
|
1478
1478
|
});
|
1479
1479
|
};
|
1480
|
-
async function
|
1480
|
+
async function ka(t) {
|
1481
1481
|
const e = {
|
1482
1482
|
url: "/v1/message/list-messages",
|
1483
1483
|
method: "post",
|
@@ -1492,7 +1492,7 @@ async function Ta(t) {
|
|
1492
1492
|
pagination: { total: 0, limit: 0, size: 0 }
|
1493
1493
|
};
|
1494
1494
|
}
|
1495
|
-
async function
|
1495
|
+
async function Ea(t, e) {
|
1496
1496
|
var r;
|
1497
1497
|
const s = await Ft({
|
1498
1498
|
url: "/v1/message/send-message",
|
@@ -1525,42 +1525,42 @@ async function os(t, e) {
|
|
1525
1525
|
}, r = await Ft(s).catch((o) => (console.error(o), null));
|
1526
1526
|
return (i = r == null ? void 0 : r.response) == null ? void 0 : i.data;
|
1527
1527
|
}
|
1528
|
-
function
|
1529
|
-
return
|
1528
|
+
function Oa(t) {
|
1529
|
+
return Di() ? (Li(t), !0) : !1;
|
1530
1530
|
}
|
1531
1531
|
function pr(t) {
|
1532
1532
|
return typeof t == "function" ? t() : js(t);
|
1533
1533
|
}
|
1534
|
-
const
|
1534
|
+
const Ca = typeof window < "u" && typeof document < "u";
|
1535
1535
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
1536
|
-
const
|
1536
|
+
const xa = (t) => t != null, Yt = () => {
|
1537
1537
|
};
|
1538
1538
|
function Jt(t) {
|
1539
1539
|
var e;
|
1540
1540
|
const n = pr(t);
|
1541
1541
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
1542
1542
|
}
|
1543
|
-
const
|
1544
|
-
function
|
1545
|
-
const t = q(!1), e =
|
1543
|
+
const Na = Ca ? window : void 0;
|
1544
|
+
function _a() {
|
1545
|
+
const t = q(!1), e = Fi();
|
1546
1546
|
return e && Js(() => {
|
1547
1547
|
t.value = !0;
|
1548
1548
|
}, e), t;
|
1549
1549
|
}
|
1550
|
-
function
|
1551
|
-
const e =
|
1550
|
+
function Aa(t) {
|
1551
|
+
const e = _a();
|
1552
1552
|
return Ys(() => (e.value, !!t()));
|
1553
1553
|
}
|
1554
|
-
function
|
1554
|
+
function Ma(t, e, n = {}) {
|
1555
1555
|
const {
|
1556
1556
|
root: s,
|
1557
1557
|
rootMargin: r = "0px",
|
1558
1558
|
threshold: i = 0.1,
|
1559
|
-
window: o =
|
1559
|
+
window: o = Na,
|
1560
1560
|
immediate: a = !0
|
1561
|
-
} = n, c =
|
1561
|
+
} = n, c = Aa(() => o && "IntersectionObserver" in o), u = Ys(() => {
|
1562
1562
|
const m = pr(t);
|
1563
|
-
return (Array.isArray(m) ? m : [m]).map(Jt).filter(
|
1563
|
+
return (Array.isArray(m) ? m : [m]).map(Jt).filter(xa);
|
1564
1564
|
});
|
1565
1565
|
let l = Yt;
|
1566
1566
|
const h = q(a), g = c.value ? En(
|
@@ -1584,7 +1584,7 @@ function Aa(t, e, n = {}) {
|
|
1584
1584
|
) : Yt, d = () => {
|
1585
1585
|
l(), g(), h.value = !1;
|
1586
1586
|
};
|
1587
|
-
return
|
1587
|
+
return Oa(d), {
|
1588
1588
|
isSupported: c,
|
1589
1589
|
isActive: h,
|
1590
1590
|
pause() {
|
@@ -1598,7 +1598,7 @@ function Aa(t, e, n = {}) {
|
|
1598
1598
|
}
|
1599
1599
|
class Ee extends Error {
|
1600
1600
|
}
|
1601
|
-
class
|
1601
|
+
class Ia extends Ee {
|
1602
1602
|
constructor(e) {
|
1603
1603
|
super(`Invalid DateTime: ${e.toMessage()}`);
|
1604
1604
|
}
|
@@ -1608,7 +1608,7 @@ class Ra extends Ee {
|
|
1608
1608
|
super(`Invalid Interval: ${e.toMessage()}`);
|
1609
1609
|
}
|
1610
1610
|
}
|
1611
|
-
class
|
1611
|
+
class Da extends Ee {
|
1612
1612
|
constructor(e) {
|
1613
1613
|
super(`Invalid Duration: ${e.toMessage()}`);
|
1614
1614
|
}
|
@@ -1635,7 +1635,7 @@ const p = "numeric", ie = "short", Y = "long", Nt = {
|
|
1635
1635
|
year: p,
|
1636
1636
|
month: ie,
|
1637
1637
|
day: p
|
1638
|
-
},
|
1638
|
+
}, La = {
|
1639
1639
|
year: p,
|
1640
1640
|
month: ie,
|
1641
1641
|
day: p,
|
@@ -1713,21 +1713,21 @@ const p = "numeric", ie = "short", Y = "long", Nt = {
|
|
1713
1713
|
hour: p,
|
1714
1714
|
minute: p,
|
1715
1715
|
second: p
|
1716
|
-
},
|
1716
|
+
}, Fa = {
|
1717
1717
|
year: p,
|
1718
1718
|
month: ie,
|
1719
1719
|
day: p,
|
1720
1720
|
weekday: ie,
|
1721
1721
|
hour: p,
|
1722
1722
|
minute: p
|
1723
|
-
},
|
1723
|
+
}, Ir = {
|
1724
1724
|
year: p,
|
1725
1725
|
month: Y,
|
1726
1726
|
day: p,
|
1727
1727
|
hour: p,
|
1728
1728
|
minute: p,
|
1729
1729
|
timeZoneName: ie
|
1730
|
-
},
|
1730
|
+
}, Rr = {
|
1731
1731
|
year: p,
|
1732
1732
|
month: Y,
|
1733
1733
|
day: p,
|
@@ -1880,7 +1880,7 @@ class Vt extends nt {
|
|
1880
1880
|
}
|
1881
1881
|
}
|
1882
1882
|
let vt = {};
|
1883
|
-
function
|
1883
|
+
function Va(t) {
|
1884
1884
|
return vt[t] || (vt[t] = new Intl.DateTimeFormat("en-US", {
|
1885
1885
|
hour12: !1,
|
1886
1886
|
timeZone: t,
|
@@ -1893,7 +1893,7 @@ function Fa(t) {
|
|
1893
1893
|
era: "short"
|
1894
1894
|
})), vt[t];
|
1895
1895
|
}
|
1896
|
-
const
|
1896
|
+
const Ba = {
|
1897
1897
|
year: 0,
|
1898
1898
|
month: 1,
|
1899
1899
|
day: 2,
|
@@ -1902,14 +1902,14 @@ const Va = {
|
|
1902
1902
|
minute: 5,
|
1903
1903
|
second: 6
|
1904
1904
|
};
|
1905
|
-
function
|
1905
|
+
function $a(t, e) {
|
1906
1906
|
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;
|
1907
1907
|
return [o, r, i, a, c, u, l];
|
1908
1908
|
}
|
1909
|
-
function
|
1909
|
+
function Ua(t, e) {
|
1910
1910
|
const n = t.formatToParts(e), s = [];
|
1911
1911
|
for (let r = 0; r < n.length; r++) {
|
1912
|
-
const { type: i, value: o } = n[r], a =
|
1912
|
+
const { type: i, value: o } = n[r], a = Ba[i];
|
1913
1913
|
i === "era" ? s[a] = o : v(a) || (s[a] = parseInt(o, 10));
|
1914
1914
|
}
|
1915
1915
|
return s;
|
@@ -2018,8 +2018,8 @@ class de extends nt {
|
|
2018
2018
|
offset(e) {
|
2019
2019
|
const n = new Date(e);
|
2020
2020
|
if (isNaN(n)) return NaN;
|
2021
|
-
const s =
|
2022
|
-
let [r, i, o, a, c, u, l] = s.formatToParts ?
|
2021
|
+
const s = Va(this.name);
|
2022
|
+
let [r, i, o, a, c, u, l] = s.formatToParts ? Ua(s, n) : $a(s, n);
|
2023
2023
|
a === "BC" && (r = -Math.abs(r) + 1);
|
2024
2024
|
const g = $t({
|
2025
2025
|
year: r,
|
@@ -2053,7 +2053,7 @@ class de extends nt {
|
|
2053
2053
|
}
|
2054
2054
|
}
|
2055
2055
|
let as = {};
|
2056
|
-
function
|
2056
|
+
function Pa(t, e = {}) {
|
2057
2057
|
const n = JSON.stringify([t, e]);
|
2058
2058
|
let s = as[n];
|
2059
2059
|
return s || (s = new Intl.ListFormat(t, e), as[n] = s), s;
|
@@ -2065,23 +2065,23 @@ function dn(t, e = {}) {
|
|
2065
2065
|
return s || (s = new Intl.DateTimeFormat(t, e), hn[n] = s), s;
|
2066
2066
|
}
|
2067
2067
|
let mn = {};
|
2068
|
-
function
|
2068
|
+
function Wa(t, e = {}) {
|
2069
2069
|
const n = JSON.stringify([t, e]);
|
2070
2070
|
let s = mn[n];
|
2071
2071
|
return s || (s = new Intl.NumberFormat(t, e), mn[n] = s), s;
|
2072
2072
|
}
|
2073
2073
|
let pn = {};
|
2074
|
-
function
|
2074
|
+
function qa(t, e = {}) {
|
2075
2075
|
const { base: n, ...s } = e, r = JSON.stringify([t, s]);
|
2076
2076
|
let i = pn[r];
|
2077
2077
|
return i || (i = new Intl.RelativeTimeFormat(t, e), pn[r] = i), i;
|
2078
2078
|
}
|
2079
2079
|
let je = null;
|
2080
|
-
function
|
2080
|
+
function Ha() {
|
2081
2081
|
return je || (je = new Intl.DateTimeFormat().resolvedOptions().locale, je);
|
2082
2082
|
}
|
2083
2083
|
let cs = {};
|
2084
|
-
function
|
2084
|
+
function za(t) {
|
2085
2085
|
let e = cs[t];
|
2086
2086
|
if (!e) {
|
2087
2087
|
const n = new Intl.Locale(t);
|
@@ -2089,7 +2089,7 @@ function Ha(t) {
|
|
2089
2089
|
}
|
2090
2090
|
return e;
|
2091
2091
|
}
|
2092
|
-
function
|
2092
|
+
function Za(t) {
|
2093
2093
|
const e = t.indexOf("-x-");
|
2094
2094
|
e !== -1 && (t = t.substring(0, e));
|
2095
2095
|
const n = t.indexOf("-u-");
|
@@ -2107,10 +2107,10 @@ function za(t) {
|
|
2107
2107
|
return [r, i, o];
|
2108
2108
|
}
|
2109
2109
|
}
|
2110
|
-
function
|
2110
|
+
function ja(t, e, n) {
|
2111
2111
|
return (n || e) && (t.includes("-u-") || (t += "-u"), n && (t += `-ca-${n}`), e && (t += `-nu-${e}`)), t;
|
2112
2112
|
}
|
2113
|
-
function
|
2113
|
+
function Ya(t) {
|
2114
2114
|
const e = [];
|
2115
2115
|
for (let n = 1; n <= 12; n++) {
|
2116
2116
|
const s = S.utc(2009, n, 1);
|
@@ -2118,7 +2118,7 @@ function ja(t) {
|
|
2118
2118
|
}
|
2119
2119
|
return e;
|
2120
2120
|
}
|
2121
|
-
function
|
2121
|
+
function Ja(t) {
|
2122
2122
|
const e = [];
|
2123
2123
|
for (let n = 1; n <= 7; n++) {
|
2124
2124
|
const s = S.utc(2016, 11, 13 + n);
|
@@ -2130,16 +2130,16 @@ function ct(t, e, n, s) {
|
|
2130
2130
|
const r = t.listingMode();
|
2131
2131
|
return r === "error" ? null : r === "en" ? n(e) : s(e);
|
2132
2132
|
}
|
2133
|
-
function
|
2133
|
+
function Ga(t) {
|
2134
2134
|
return t.numberingSystem && t.numberingSystem !== "latn" ? !1 : t.numberingSystem === "latn" || !t.locale || t.locale.startsWith("en") || new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem === "latn";
|
2135
2135
|
}
|
2136
|
-
class
|
2136
|
+
class Ka {
|
2137
2137
|
constructor(e, n, s) {
|
2138
2138
|
this.padTo = s.padTo || 0, this.floor = s.floor || !1;
|
2139
2139
|
const { padTo: r, floor: i, ...o } = s;
|
2140
2140
|
if (!n || Object.keys(o).length > 0) {
|
2141
2141
|
const a = { useGrouping: !1, ...s };
|
2142
|
-
s.padTo > 0 && (a.minimumIntegerDigits = s.padTo), this.inf =
|
2142
|
+
s.padTo > 0 && (a.minimumIntegerDigits = s.padTo), this.inf = Wa(e, a);
|
2143
2143
|
}
|
2144
2144
|
}
|
2145
2145
|
format(e) {
|
@@ -2148,11 +2148,11 @@ class Ga {
|
|
2148
2148
|
return this.inf.format(n);
|
2149
2149
|
} else {
|
2150
2150
|
const n = this.floor ? Math.floor(e) : Dn(e, 3);
|
2151
|
-
return
|
2151
|
+
return R(n, this.padTo);
|
2152
2152
|
}
|
2153
2153
|
}
|
2154
2154
|
}
|
2155
|
-
class
|
2155
|
+
class Xa {
|
2156
2156
|
constructor(e, n, s) {
|
2157
2157
|
this.opts = s, this.originalZone = void 0;
|
2158
2158
|
let r;
|
@@ -2188,18 +2188,18 @@ class Ka {
|
|
2188
2188
|
return this.dtf.resolvedOptions();
|
2189
2189
|
}
|
2190
2190
|
}
|
2191
|
-
class
|
2191
|
+
class Qa {
|
2192
2192
|
constructor(e, n, s) {
|
2193
|
-
this.opts = { style: "long", ...s }, !n && Wr() && (this.rtf =
|
2193
|
+
this.opts = { style: "long", ...s }, !n && Wr() && (this.rtf = qa(e, s));
|
2194
2194
|
}
|
2195
2195
|
format(e, n) {
|
2196
|
-
return this.rtf ? this.rtf.format(e, n) :
|
2196
|
+
return this.rtf ? this.rtf.format(e, n) : Tc(n, e, this.opts.numeric, this.opts.style !== "long");
|
2197
2197
|
}
|
2198
2198
|
formatToParts(e, n) {
|
2199
2199
|
return this.rtf ? this.rtf.formatToParts(e, n) : [];
|
2200
2200
|
}
|
2201
2201
|
}
|
2202
|
-
const
|
2202
|
+
const ec = {
|
2203
2203
|
firstDay: 1,
|
2204
2204
|
minimalDays: 4,
|
2205
2205
|
weekend: [6, 7]
|
@@ -2215,7 +2215,7 @@ class N {
|
|
2215
2215
|
);
|
2216
2216
|
}
|
2217
2217
|
static create(e, n, s, r, i = !1) {
|
2218
|
-
const o = e || M.defaultLocale, a = o || (i ? "en-US" :
|
2218
|
+
const o = e || M.defaultLocale, a = o || (i ? "en-US" : Ha()), c = n || M.defaultNumberingSystem, u = s || M.defaultOutputCalendar, l = yn(r) || M.defaultWeekSettings;
|
2219
2219
|
return new N(a, c, u, l, o);
|
2220
2220
|
}
|
2221
2221
|
static resetCache() {
|
@@ -2225,11 +2225,11 @@ class N {
|
|
2225
2225
|
return N.create(e, n, s, r);
|
2226
2226
|
}
|
2227
2227
|
constructor(e, n, s, r, i) {
|
2228
|
-
const [o, a, c] =
|
2229
|
-
this.locale = o, this.numberingSystem = n || a || null, this.outputCalendar = s || c || null, this.weekSettings = r, this.intl =
|
2228
|
+
const [o, a, c] = Za(e);
|
2229
|
+
this.locale = o, this.numberingSystem = n || a || null, this.outputCalendar = s || c || null, this.weekSettings = r, this.intl = ja(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;
|
2230
2230
|
}
|
2231
2231
|
get fastNumbers() {
|
2232
|
-
return this.fastNumbersCached == null && (this.fastNumbersCached =
|
2232
|
+
return this.fastNumbersCached == null && (this.fastNumbersCached = Ga(this)), this.fastNumbersCached;
|
2233
2233
|
}
|
2234
2234
|
listingMode() {
|
2235
2235
|
const e = this.isEnglish(), n = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
|
@@ -2253,13 +2253,13 @@ class N {
|
|
2253
2253
|
months(e, n = !1) {
|
2254
2254
|
return ct(this, e, jr, () => {
|
2255
2255
|
const s = n ? { month: e, day: "numeric" } : { month: e }, r = n ? "format" : "standalone";
|
2256
|
-
return this.monthsCache[r][e] || (this.monthsCache[r][e] =
|
2256
|
+
return this.monthsCache[r][e] || (this.monthsCache[r][e] = Ya((i) => this.extract(i, s, "month"))), this.monthsCache[r][e];
|
2257
2257
|
});
|
2258
2258
|
}
|
2259
2259
|
weekdays(e, n = !1) {
|
2260
2260
|
return ct(this, e, Gr, () => {
|
2261
2261
|
const s = n ? { weekday: e, year: "numeric", month: "long", day: "numeric" } : { weekday: e }, r = n ? "format" : "standalone";
|
2262
|
-
return this.weekdaysCache[r][e] || (this.weekdaysCache[r][e] =
|
2262
|
+
return this.weekdaysCache[r][e] || (this.weekdaysCache[r][e] = Ja(
|
2263
2263
|
(i) => this.extract(i, s, "weekday")
|
2264
2264
|
)), this.weekdaysCache[r][e];
|
2265
2265
|
});
|
@@ -2293,22 +2293,22 @@ class N {
|
|
2293
2293
|
return o ? o.value : null;
|
2294
2294
|
}
|
2295
2295
|
numberFormatter(e = {}) {
|
2296
|
-
return new
|
2296
|
+
return new Ka(this.intl, e.forceSimple || this.fastNumbers, e);
|
2297
2297
|
}
|
2298
2298
|
dtFormatter(e, n = {}) {
|
2299
|
-
return new
|
2299
|
+
return new Xa(e, this.intl, n);
|
2300
2300
|
}
|
2301
2301
|
relFormatter(e = {}) {
|
2302
|
-
return new
|
2302
|
+
return new Qa(this.intl, this.isEnglish(), e);
|
2303
2303
|
}
|
2304
2304
|
listFormatter(e = {}) {
|
2305
|
-
return
|
2305
|
+
return Pa(this.intl, e);
|
2306
2306
|
}
|
2307
2307
|
isEnglish() {
|
2308
2308
|
return this.locale === "en" || this.locale.toLowerCase() === "en-us" || new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us");
|
2309
2309
|
}
|
2310
2310
|
getWeekSettings() {
|
2311
|
-
return this.weekSettings ? this.weekSettings : qr() ?
|
2311
|
+
return this.weekSettings ? this.weekSettings : qr() ? za(this.locale) : ec;
|
2312
2312
|
}
|
2313
2313
|
getStartOfWeek() {
|
2314
2314
|
return this.getWeekSettings().firstDay;
|
@@ -2446,7 +2446,7 @@ class H extends nt {
|
|
2446
2446
|
return !0;
|
2447
2447
|
}
|
2448
2448
|
}
|
2449
|
-
class
|
2449
|
+
class tc extends nt {
|
2450
2450
|
constructor(e) {
|
2451
2451
|
super(), this.zoneName = e;
|
2452
2452
|
}
|
@@ -2488,10 +2488,10 @@ function we(t, e) {
|
|
2488
2488
|
return e;
|
2489
2489
|
if (t instanceof nt)
|
2490
2490
|
return t;
|
2491
|
-
if (
|
2491
|
+
if (ac(t)) {
|
2492
2492
|
const n = t.toLowerCase();
|
2493
2493
|
return n === "default" ? e : n === "local" || n === "system" ? Vt.instance : n === "utc" || n === "gmt" ? H.utcInstance : H.parseSpecifier(n) || de.create(t);
|
2494
|
-
} else return Se(t) ? H.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new
|
2494
|
+
} else return Se(t) ? H.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new tc(t);
|
2495
2495
|
}
|
2496
2496
|
const An = {
|
2497
2497
|
arab: "[٠-٩]",
|
@@ -2535,15 +2535,15 @@ const An = {
|
|
2535
2535
|
telu: [3174, 3183],
|
2536
2536
|
thai: [3664, 3673],
|
2537
2537
|
tibt: [3872, 3881]
|
2538
|
-
},
|
2539
|
-
function
|
2538
|
+
}, nc = An.hanidec.replace(/[\[|\]]/g, "").split("");
|
2539
|
+
function sc(t) {
|
2540
2540
|
let e = parseInt(t, 10);
|
2541
2541
|
if (isNaN(e)) {
|
2542
2542
|
e = "";
|
2543
2543
|
for (let n = 0; n < t.length; n++) {
|
2544
2544
|
const s = t.charCodeAt(n);
|
2545
2545
|
if (t[n].search(An.hanidec) !== -1)
|
2546
|
-
e +=
|
2546
|
+
e += nc.indexOf(t[n]);
|
2547
2547
|
else
|
2548
2548
|
for (const r in us) {
|
2549
2549
|
const [i, o] = us[r];
|
@@ -2555,7 +2555,7 @@ function nc(t) {
|
|
2555
2555
|
return e;
|
2556
2556
|
}
|
2557
2557
|
let _e = {};
|
2558
|
-
function
|
2558
|
+
function rc() {
|
2559
2559
|
_e = {};
|
2560
2560
|
}
|
2561
2561
|
function te({ numberingSystem: t }, e = "") {
|
@@ -2699,7 +2699,7 @@ class M {
|
|
2699
2699
|
* @return {void}
|
2700
2700
|
*/
|
2701
2701
|
static resetCaches() {
|
2702
|
-
N.resetCache(), de.resetCache(), S.resetCache(),
|
2702
|
+
N.resetCache(), de.resetCache(), S.resetCache(), rc();
|
2703
2703
|
}
|
2704
2704
|
}
|
2705
2705
|
class re {
|
@@ -2730,18 +2730,18 @@ function $r(t, e) {
|
|
2730
2730
|
const n = st(t) ? Vr : Fr, s = n.findIndex((i) => i < e), r = e - n[s];
|
2731
2731
|
return { month: s + 1, day: r };
|
2732
2732
|
}
|
2733
|
-
function
|
2733
|
+
function In(t, e) {
|
2734
2734
|
return (t - e + 7) % 7 + 1;
|
2735
2735
|
}
|
2736
2736
|
function _t(t, e = 4, n = 1) {
|
2737
|
-
const { year: s, month: r, day: i } = t, o = Br(s, r, i), a =
|
2737
|
+
const { year: s, month: r, day: i } = t, o = Br(s, r, i), a = In(Mn(s, r, i), n);
|
2738
2738
|
let c = Math.floor((o - a + 14 - e) / 7), u;
|
2739
2739
|
return c < 1 ? (u = s - 1, c = Qe(u, e, n)) : c > Qe(s, e, n) ? (u = s + 1, c = 1) : u = s, { weekYear: u, weekNumber: c, weekday: a, ...Pt(t) };
|
2740
2740
|
}
|
2741
2741
|
function ws(t, e = 4, n = 1) {
|
2742
|
-
const { weekYear: s, weekNumber: r, weekday: i } = t, o =
|
2742
|
+
const { weekYear: s, weekNumber: r, weekday: i } = t, o = In(Mn(s, 1, e), n), a = Re(s);
|
2743
2743
|
let c = r * 7 + i - o - 7 + e, u;
|
2744
|
-
c < 1 ? (u = s - 1, c +=
|
2744
|
+
c < 1 ? (u = s - 1, c += Re(u)) : c > a ? (u = s + 1, c -= Re(s)) : u = s;
|
2745
2745
|
const { month: l, day: h } = $r(u, c);
|
2746
2746
|
return { year: u, month: l, day: h, ...Pt(t) };
|
2747
2747
|
}
|
@@ -2766,7 +2766,7 @@ function vs(t, e) {
|
|
2766
2766
|
} else
|
2767
2767
|
return { minDaysInFirstWeek: 4, startOfWeek: 1 };
|
2768
2768
|
}
|
2769
|
-
function
|
2769
|
+
function ic(t, e = 4, n = 1) {
|
2770
2770
|
const s = Bt(t.weekYear), r = X(
|
2771
2771
|
t.weekNumber,
|
2772
2772
|
1,
|
@@ -2774,8 +2774,8 @@ function rc(t, e = 4, n = 1) {
|
|
2774
2774
|
), i = X(t.weekday, 1, 7);
|
2775
2775
|
return s ? r ? i ? !1 : K("weekday", t.weekday) : K("week", t.weekNumber) : K("weekYear", t.weekYear);
|
2776
2776
|
}
|
2777
|
-
function
|
2778
|
-
const e = Bt(t.year), n = X(t.ordinal, 1,
|
2777
|
+
function oc(t) {
|
2778
|
+
const e = Bt(t.year), n = X(t.ordinal, 1, Re(t.year));
|
2779
2779
|
return e ? n ? !1 : K("ordinal", t.ordinal) : K("year", t.year);
|
2780
2780
|
}
|
2781
2781
|
function Ur(t) {
|
@@ -2795,10 +2795,10 @@ function Se(t) {
|
|
2795
2795
|
function Bt(t) {
|
2796
2796
|
return typeof t == "number" && t % 1 === 0;
|
2797
2797
|
}
|
2798
|
-
function
|
2798
|
+
function ac(t) {
|
2799
2799
|
return typeof t == "string";
|
2800
2800
|
}
|
2801
|
-
function
|
2801
|
+
function cc(t) {
|
2802
2802
|
return Object.prototype.toString.call(t) === "[object Date]";
|
2803
2803
|
}
|
2804
2804
|
function Wr() {
|
@@ -2815,7 +2815,7 @@ function qr() {
|
|
2815
2815
|
return !1;
|
2816
2816
|
}
|
2817
2817
|
}
|
2818
|
-
function
|
2818
|
+
function uc(t) {
|
2819
2819
|
return Array.isArray(t) ? t : [t];
|
2820
2820
|
}
|
2821
2821
|
function bs(t, e, n) {
|
@@ -2825,7 +2825,7 @@ function bs(t, e, n) {
|
|
2825
2825
|
return s && n(s[0], i[0]) === s[0] ? s : i;
|
2826
2826
|
}, null)[1];
|
2827
2827
|
}
|
2828
|
-
function
|
2828
|
+
function lc(t, e) {
|
2829
2829
|
return e.reduce((n, s) => (n[s] = t[s], n), {});
|
2830
2830
|
}
|
2831
2831
|
function Fe(t, e) {
|
@@ -2847,10 +2847,10 @@ function yn(t) {
|
|
2847
2847
|
function X(t, e, n) {
|
2848
2848
|
return Bt(t) && t >= e && t <= n;
|
2849
2849
|
}
|
2850
|
-
function
|
2850
|
+
function fc(t, e) {
|
2851
2851
|
return t - e * Math.floor(t / e);
|
2852
2852
|
}
|
2853
|
-
function
|
2853
|
+
function R(t, e = 2) {
|
2854
2854
|
const n = t < 0;
|
2855
2855
|
let s;
|
2856
2856
|
return n ? s = "-" + ("" + -t).padStart(e, "0") : s = ("" + t).padStart(e, "0"), s;
|
@@ -2863,7 +2863,7 @@ function ve(t) {
|
|
2863
2863
|
if (!(v(t) || t === null || t === ""))
|
2864
2864
|
return parseFloat(t);
|
2865
2865
|
}
|
2866
|
-
function
|
2866
|
+
function Rn(t) {
|
2867
2867
|
if (!(v(t) || t === null || t === "")) {
|
2868
2868
|
const e = parseFloat("0." + t) * 1e3;
|
2869
2869
|
return Math.floor(e);
|
@@ -2876,11 +2876,11 @@ function Dn(t, e, n = !1) {
|
|
2876
2876
|
function st(t) {
|
2877
2877
|
return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
|
2878
2878
|
}
|
2879
|
-
function
|
2879
|
+
function Re(t) {
|
2880
2880
|
return st(t) ? 366 : 365;
|
2881
2881
|
}
|
2882
2882
|
function At(t, e) {
|
2883
|
-
const n =
|
2883
|
+
const n = fc(e - 1, 12) + 1, s = t + (e - n) / 12;
|
2884
2884
|
return n === 2 ? st(s) ? 29 : 28 : [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][n - 1];
|
2885
2885
|
}
|
2886
2886
|
function $t(t) {
|
@@ -2896,11 +2896,11 @@ function $t(t) {
|
|
2896
2896
|
return t.year < 100 && t.year >= 0 && (e = new Date(e), e.setUTCFullYear(t.year, t.month - 1, t.day)), +e;
|
2897
2897
|
}
|
2898
2898
|
function Ts(t, e, n) {
|
2899
|
-
return -
|
2899
|
+
return -In(Mn(t, 1, e), n) + e - 1;
|
2900
2900
|
}
|
2901
2901
|
function Qe(t, e = 4, n = 1) {
|
2902
2902
|
const s = Ts(t, e, n), r = Ts(t + 1, e, n);
|
2903
|
-
return (
|
2903
|
+
return (Re(t) - s + r) / 7;
|
2904
2904
|
}
|
2905
2905
|
function gn(t) {
|
2906
2906
|
return t > 99 ? t : t > M.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
|
@@ -2944,19 +2944,19 @@ function Ke(t, e) {
|
|
2944
2944
|
const n = Math.trunc(Math.abs(t / 60)), s = Math.trunc(Math.abs(t % 60)), r = t >= 0 ? "+" : "-";
|
2945
2945
|
switch (e) {
|
2946
2946
|
case "short":
|
2947
|
-
return `${r}${
|
2947
|
+
return `${r}${R(n, 2)}:${R(s, 2)}`;
|
2948
2948
|
case "narrow":
|
2949
2949
|
return `${r}${n}${s > 0 ? `:${s}` : ""}`;
|
2950
2950
|
case "techie":
|
2951
|
-
return `${r}${
|
2951
|
+
return `${r}${R(n, 2)}${R(s, 2)}`;
|
2952
2952
|
default:
|
2953
2953
|
throw new RangeError(`Value format ${e} is out of range for property format`);
|
2954
2954
|
}
|
2955
2955
|
}
|
2956
2956
|
function Pt(t) {
|
2957
|
-
return
|
2957
|
+
return lc(t, ["hour", "minute", "second", "millisecond"]);
|
2958
2958
|
}
|
2959
|
-
const
|
2959
|
+
const hc = [
|
2960
2960
|
"January",
|
2961
2961
|
"February",
|
2962
2962
|
"March",
|
@@ -2982,15 +2982,15 @@ const fc = [
|
|
2982
2982
|
"Oct",
|
2983
2983
|
"Nov",
|
2984
2984
|
"Dec"
|
2985
|
-
],
|
2985
|
+
], dc = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"];
|
2986
2986
|
function jr(t) {
|
2987
2987
|
switch (t) {
|
2988
2988
|
case "narrow":
|
2989
|
-
return [...
|
2989
|
+
return [...dc];
|
2990
2990
|
case "short":
|
2991
2991
|
return [...Zr];
|
2992
2992
|
case "long":
|
2993
|
-
return [...
|
2993
|
+
return [...hc];
|
2994
2994
|
case "numeric":
|
2995
2995
|
return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
2996
2996
|
case "2-digit":
|
@@ -3007,11 +3007,11 @@ const Yr = [
|
|
3007
3007
|
"Friday",
|
3008
3008
|
"Saturday",
|
3009
3009
|
"Sunday"
|
3010
|
-
], Jr = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
3010
|
+
], Jr = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], mc = ["M", "T", "W", "T", "F", "S", "S"];
|
3011
3011
|
function Gr(t) {
|
3012
3012
|
switch (t) {
|
3013
3013
|
case "narrow":
|
3014
|
-
return [...
|
3014
|
+
return [...mc];
|
3015
3015
|
case "short":
|
3016
3016
|
return [...Jr];
|
3017
3017
|
case "long":
|
@@ -3022,32 +3022,32 @@ function Gr(t) {
|
|
3022
3022
|
return null;
|
3023
3023
|
}
|
3024
3024
|
}
|
3025
|
-
const Kr = ["AM", "PM"],
|
3025
|
+
const Kr = ["AM", "PM"], pc = ["Before Christ", "Anno Domini"], yc = ["BC", "AD"], gc = ["B", "A"];
|
3026
3026
|
function Xr(t) {
|
3027
3027
|
switch (t) {
|
3028
3028
|
case "narrow":
|
3029
|
-
return [...
|
3029
|
+
return [...gc];
|
3030
3030
|
case "short":
|
3031
|
-
return [...
|
3031
|
+
return [...yc];
|
3032
3032
|
case "long":
|
3033
|
-
return [...
|
3033
|
+
return [...pc];
|
3034
3034
|
default:
|
3035
3035
|
return null;
|
3036
3036
|
}
|
3037
3037
|
}
|
3038
|
-
function
|
3038
|
+
function wc(t) {
|
3039
3039
|
return Kr[t.hour < 12 ? 0 : 1];
|
3040
3040
|
}
|
3041
|
-
function
|
3041
|
+
function Sc(t, e) {
|
3042
3042
|
return Gr(e)[t.weekday - 1];
|
3043
3043
|
}
|
3044
|
-
function
|
3044
|
+
function vc(t, e) {
|
3045
3045
|
return jr(e)[t.month - 1];
|
3046
3046
|
}
|
3047
|
-
function
|
3047
|
+
function bc(t, e) {
|
3048
3048
|
return Xr(e)[t.year < 0 ? 0 : 1];
|
3049
3049
|
}
|
3050
|
-
function
|
3050
|
+
function Tc(t, e, n = "always", s = !1) {
|
3051
3051
|
const r = {
|
3052
3052
|
years: ["year", "yr."],
|
3053
3053
|
quarters: ["quarter", "qtr."],
|
@@ -3078,7 +3078,7 @@ function ks(t, e) {
|
|
3078
3078
|
s.literal ? n += s.val : n += e(s.val);
|
3079
3079
|
return n;
|
3080
3080
|
}
|
3081
|
-
const
|
3081
|
+
const kc = {
|
3082
3082
|
D: Nt,
|
3083
3083
|
DD: gr,
|
3084
3084
|
DDD: wr,
|
@@ -3093,11 +3093,11 @@ const Tc = {
|
|
3093
3093
|
TTTT: xr,
|
3094
3094
|
f: Nr,
|
3095
3095
|
ff: Ar,
|
3096
|
-
fff:
|
3096
|
+
fff: Ir,
|
3097
3097
|
ffff: Dr,
|
3098
3098
|
F: _r,
|
3099
3099
|
FF: Mr,
|
3100
|
-
FFF:
|
3100
|
+
FFF: Rr,
|
3101
3101
|
FFFF: Lr
|
3102
3102
|
};
|
3103
3103
|
class W {
|
@@ -3114,7 +3114,7 @@ class W {
|
|
3114
3114
|
return s.length > 0 && i.push({ literal: r || /^\s+$/.test(s), val: s }), i;
|
3115
3115
|
}
|
3116
3116
|
static macroTokenToFormatOpts(e) {
|
3117
|
-
return
|
3117
|
+
return kc[e];
|
3118
3118
|
}
|
3119
3119
|
constructor(e, n) {
|
3120
3120
|
this.opts = n, this.loc = e, this.systemLoc = null;
|
@@ -3139,18 +3139,18 @@ class W {
|
|
3139
3139
|
}
|
3140
3140
|
num(e, n = 0) {
|
3141
3141
|
if (this.opts.forceSimple)
|
3142
|
-
return
|
3142
|
+
return R(e, n);
|
3143
3143
|
const s = { ...this.opts };
|
3144
3144
|
return n > 0 && (s.padTo = n), this.loc.numberFormatter(s).format(e);
|
3145
3145
|
}
|
3146
3146
|
formatDateTimeFromString(e, n) {
|
3147
|
-
const s = this.loc.listingMode() === "en", r = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (d, m) => this.loc.extract(e, d, m), o = (d) => e.isOffsetFixed && e.offset === 0 && d.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, d.format) : "", a = () => s ?
|
3147
|
+
const s = this.loc.listingMode() === "en", r = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (d, m) => this.loc.extract(e, d, m), o = (d) => e.isOffsetFixed && e.offset === 0 && d.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, d.format) : "", a = () => s ? wc(e) : i({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), c = (d, m) => s ? vc(e, d) : i(m ? { month: d } : { month: d, day: "numeric" }, "month"), u = (d, m) => s ? Sc(e, d) : i(
|
3148
3148
|
m ? { weekday: d } : { weekday: d, month: "long", day: "numeric" },
|
3149
3149
|
"weekday"
|
3150
3150
|
), l = (d) => {
|
3151
3151
|
const m = W.macroTokenToFormatOpts(d);
|
3152
3152
|
return m ? this.formatWithSystemDefault(e, m) : d;
|
3153
|
-
}, h = (d) => s ?
|
3153
|
+
}, h = (d) => s ? bc(e, d) : i({ era: d }, "era"), g = (d) => {
|
3154
3154
|
switch (d) {
|
3155
3155
|
case "S":
|
3156
3156
|
return this.num(e.millisecond);
|
@@ -3344,14 +3344,14 @@ function ei(...t) {
|
|
3344
3344
|
return [s, null, n + r];
|
3345
3345
|
};
|
3346
3346
|
}
|
3347
|
-
const ti = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,
|
3347
|
+
const ti = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, Ec = `(?:${ti.source}?(?:\\[(${Qr.source})\\])?)?`, Ln = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, ni = RegExp(`${Ln.source}${Ec}`), Fn = RegExp(`(?:T${ni.source})?`), Oc = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Cc = /(\d{4})-?W(\d\d)(?:-?(\d))?/, xc = /(\d{4})-?(\d{3})/, Nc = ei("weekYear", "weekNumber", "weekDay"), _c = ei("year", "ordinal"), Ac = /(\d{4})-(\d\d)-(\d\d)/, si = RegExp(
|
3348
3348
|
`${Ln.source} ?(?:${ti.source}|(${Qr.source}))?`
|
3349
|
-
),
|
3349
|
+
), Mc = RegExp(`(?: ${si.source})?`);
|
3350
3350
|
function De(t, e, n) {
|
3351
3351
|
const s = t[e];
|
3352
3352
|
return v(s) ? n : ge(s);
|
3353
3353
|
}
|
3354
|
-
function
|
3354
|
+
function Ic(t, e) {
|
3355
3355
|
return [{
|
3356
3356
|
year: De(t, e),
|
3357
3357
|
month: De(t, e + 1, 1),
|
@@ -3363,7 +3363,7 @@ function We(t, e) {
|
|
3363
3363
|
hours: De(t, e, 0),
|
3364
3364
|
minutes: De(t, e + 1, 0),
|
3365
3365
|
seconds: De(t, e + 2, 0),
|
3366
|
-
milliseconds:
|
3366
|
+
milliseconds: Rn(t[e + 3])
|
3367
3367
|
}, null, e + 4];
|
3368
3368
|
}
|
3369
3369
|
function rt(t, e) {
|
@@ -3374,8 +3374,8 @@ function it(t, e) {
|
|
3374
3374
|
const n = t[e] ? de.create(t[e]) : null;
|
3375
3375
|
return [{}, n, e + 1];
|
3376
3376
|
}
|
3377
|
-
const Rc = RegExp(`^T?${Ln.source}$`),
|
3378
|
-
function
|
3377
|
+
const Rc = RegExp(`^T?${Ln.source}$`), Dc = /^-?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)?)?)$/;
|
3378
|
+
function Lc(t) {
|
3379
3379
|
const [e, n, s, r, i, o, a, c, u] = t, l = e[0] === "-", h = c && c[0] === "-", g = (d, m = !1) => d !== void 0 && (m || d && l) ? -d : d;
|
3380
3380
|
return [
|
3381
3381
|
{
|
@@ -3386,11 +3386,11 @@ function Dc(t) {
|
|
3386
3386
|
hours: g(ve(o)),
|
3387
3387
|
minutes: g(ve(a)),
|
3388
3388
|
seconds: g(ve(c), c === "-0"),
|
3389
|
-
milliseconds: g(
|
3389
|
+
milliseconds: g(Rn(u), h)
|
3390
3390
|
}
|
3391
3391
|
];
|
3392
3392
|
}
|
3393
|
-
const
|
3393
|
+
const Fc = {
|
3394
3394
|
GMT: 0,
|
3395
3395
|
EDT: -4 * 60,
|
3396
3396
|
EST: -5 * 60,
|
@@ -3411,8 +3411,8 @@ function Vn(t, e, n, s, r, i, o) {
|
|
3411
3411
|
};
|
3412
3412
|
return o && (a.second = ge(o)), t && (a.weekday = t.length > 3 ? Yr.indexOf(t) + 1 : Jr.indexOf(t) + 1), a;
|
3413
3413
|
}
|
3414
|
-
const
|
3415
|
-
function
|
3414
|
+
const Vc = /^(?:(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)))$/;
|
3415
|
+
function Bc(t) {
|
3416
3416
|
const [
|
3417
3417
|
,
|
3418
3418
|
e,
|
@@ -3428,27 +3428,22 @@ function Vc(t) {
|
|
3428
3428
|
h
|
3429
3429
|
] = t, g = Vn(e, r, s, n, i, o, a);
|
3430
3430
|
let d;
|
3431
|
-
return c ? d =
|
3431
|
+
return c ? d = Fc[c] : u ? d = 0 : d = Ut(l, h), [g, new H(d)];
|
3432
3432
|
}
|
3433
|
-
function
|
3433
|
+
function $c(t) {
|
3434
3434
|
return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
3435
3435
|
}
|
3436
|
-
const
|
3436
|
+
const Uc = /^(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$/, Pc = /^(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$/, Wc = /^(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})$/;
|
3437
3437
|
function Es(t) {
|
3438
3438
|
const [, e, n, s, r, i, o, a] = t;
|
3439
3439
|
return [Vn(e, r, s, n, i, o, a), H.utcInstance];
|
3440
3440
|
}
|
3441
|
-
function
|
3441
|
+
function qc(t) {
|
3442
3442
|
const [, e, n, s, r, i, o, a] = t;
|
3443
3443
|
return [Vn(e, a, n, s, r, i, o), H.utcInstance];
|
3444
3444
|
}
|
3445
|
-
const
|
3446
|
-
|
3447
|
-
We,
|
3448
|
-
rt,
|
3449
|
-
it
|
3450
|
-
), jc = Ue(
|
3451
|
-
xc,
|
3445
|
+
const Hc = $e(Oc, Fn), zc = $e(Cc, Fn), Zc = $e(xc, Fn), jc = $e(ni), ri = Ue(
|
3446
|
+
Ic,
|
3452
3447
|
We,
|
3453
3448
|
rt,
|
3454
3449
|
it
|
@@ -3458,47 +3453,52 @@ const qc = $e(Ec, Fn), Hc = $e(Oc, Fn), zc = $e(Cc, Fn), Zc = $e(ni), ri = Ue(
|
|
3458
3453
|
rt,
|
3459
3454
|
it
|
3460
3455
|
), Jc = Ue(
|
3456
|
+
_c,
|
3457
|
+
We,
|
3458
|
+
rt,
|
3459
|
+
it
|
3460
|
+
), Gc = Ue(
|
3461
3461
|
We,
|
3462
3462
|
rt,
|
3463
3463
|
it
|
3464
3464
|
);
|
3465
|
-
function
|
3465
|
+
function Kc(t) {
|
3466
3466
|
return Pe(
|
3467
3467
|
t,
|
3468
|
-
[
|
3469
|
-
[Hc, jc],
|
3468
|
+
[Hc, ri],
|
3470
3469
|
[zc, Yc],
|
3471
|
-
[Zc, Jc]
|
3470
|
+
[Zc, Jc],
|
3471
|
+
[jc, Gc]
|
3472
3472
|
);
|
3473
3473
|
}
|
3474
|
-
function Kc(t) {
|
3475
|
-
return Pe(Bc(t), [Fc, Vc]);
|
3476
|
-
}
|
3477
3474
|
function Xc(t) {
|
3475
|
+
return Pe($c(t), [Vc, Bc]);
|
3476
|
+
}
|
3477
|
+
function Qc(t) {
|
3478
3478
|
return Pe(
|
3479
3479
|
t,
|
3480
|
-
[$c, Es],
|
3481
3480
|
[Uc, Es],
|
3482
|
-
[Pc,
|
3481
|
+
[Pc, Es],
|
3482
|
+
[Wc, qc]
|
3483
3483
|
);
|
3484
3484
|
}
|
3485
|
-
function
|
3486
|
-
return Pe(t, [
|
3485
|
+
function eu(t) {
|
3486
|
+
return Pe(t, [Dc, Lc]);
|
3487
3487
|
}
|
3488
|
-
const
|
3489
|
-
function
|
3490
|
-
return Pe(t, [Rc,
|
3488
|
+
const tu = Ue(We);
|
3489
|
+
function nu(t) {
|
3490
|
+
return Pe(t, [Rc, tu]);
|
3491
3491
|
}
|
3492
|
-
const
|
3492
|
+
const su = $e(Ac, Mc), ru = $e(si), iu = Ue(
|
3493
3493
|
We,
|
3494
3494
|
rt,
|
3495
3495
|
it
|
3496
3496
|
);
|
3497
|
-
function
|
3497
|
+
function ou(t) {
|
3498
3498
|
return Pe(
|
3499
3499
|
t,
|
3500
|
-
[
|
3501
|
-
[
|
3500
|
+
[su, ri],
|
3501
|
+
[ru, iu]
|
3502
3502
|
);
|
3503
3503
|
}
|
3504
3504
|
const Os = "Invalid Duration", ii = {
|
@@ -3518,7 +3518,7 @@ const Os = "Invalid Duration", ii = {
|
|
3518
3518
|
hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1e3 },
|
3519
3519
|
minutes: { seconds: 60, milliseconds: 60 * 1e3 },
|
3520
3520
|
seconds: { milliseconds: 1e3 }
|
3521
|
-
},
|
3521
|
+
}, au = {
|
3522
3522
|
years: {
|
3523
3523
|
quarters: 4,
|
3524
3524
|
months: 12,
|
@@ -3547,7 +3547,7 @@ const Os = "Invalid Duration", ii = {
|
|
3547
3547
|
milliseconds: 30 * 24 * 60 * 60 * 1e3
|
3548
3548
|
},
|
3549
3549
|
...ii
|
3550
|
-
}, J = 146097 / 400, Ce = 146097 / 4800,
|
3550
|
+
}, J = 146097 / 400, Ce = 146097 / 4800, cu = {
|
3551
3551
|
years: {
|
3552
3552
|
quarters: 4,
|
3553
3553
|
months: 12,
|
@@ -3586,7 +3586,7 @@ const Os = "Invalid Duration", ii = {
|
|
3586
3586
|
"minutes",
|
3587
3587
|
"seconds",
|
3588
3588
|
"milliseconds"
|
3589
|
-
],
|
3589
|
+
], uu = Te.slice(0).reverse();
|
3590
3590
|
function ye(t, e, n = !1) {
|
3591
3591
|
const s = {
|
3592
3592
|
values: n ? e.values : { ...t.values, ...e.values || {} },
|
@@ -3598,7 +3598,7 @@ function ye(t, e, n = !1) {
|
|
3598
3598
|
}
|
3599
3599
|
function oi(t, e) {
|
3600
3600
|
let n = e.milliseconds ?? 0;
|
3601
|
-
for (const s of
|
3601
|
+
for (const s of uu.slice(1))
|
3602
3602
|
e[s] && (n += e[s] * t[s].milliseconds);
|
3603
3603
|
return n;
|
3604
3604
|
}
|
@@ -3622,7 +3622,7 @@ function Cs(t, e) {
|
|
3622
3622
|
return r;
|
3623
3623
|
}, null);
|
3624
3624
|
}
|
3625
|
-
function
|
3625
|
+
function lu(t) {
|
3626
3626
|
const e = {};
|
3627
3627
|
for (const [n, s] of Object.entries(t))
|
3628
3628
|
s !== 0 && (e[n] = s);
|
@@ -3634,7 +3634,7 @@ class k {
|
|
3634
3634
|
*/
|
3635
3635
|
constructor(e) {
|
3636
3636
|
const n = e.conversionAccuracy === "longterm" || !1;
|
3637
|
-
let s = n ?
|
3637
|
+
let s = n ? cu : au;
|
3638
3638
|
e.matrix && (s = e.matrix), this.values = e.values, this.loc = e.loc || N.create(), this.conversionAccuracy = n ? "longterm" : "casual", this.invalid = e.invalid || null, this.matrix = s, this.isLuxonDuration = !0;
|
3639
3639
|
}
|
3640
3640
|
/**
|
@@ -3717,7 +3717,7 @@ class k {
|
|
3717
3717
|
* @return {Duration}
|
3718
3718
|
*/
|
3719
3719
|
static fromISO(e, n) {
|
3720
|
-
const [s] =
|
3720
|
+
const [s] = eu(e);
|
3721
3721
|
return s ? k.fromObject(s, n) : k.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
|
3722
3722
|
}
|
3723
3723
|
/**
|
@@ -3737,7 +3737,7 @@ class k {
|
|
3737
3737
|
* @return {Duration}
|
3738
3738
|
*/
|
3739
3739
|
static fromISOTime(e, n) {
|
3740
|
-
const [s] =
|
3740
|
+
const [s] = nu(e);
|
3741
3741
|
return s ? k.fromObject(s, n) : k.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
|
3742
3742
|
}
|
3743
3743
|
/**
|
@@ -3751,7 +3751,7 @@ class k {
|
|
3751
3751
|
throw new P("need to specify a reason the Duration is invalid");
|
3752
3752
|
const s = e instanceof re ? e : new re(e, n);
|
3753
3753
|
if (M.throwOnInvalid)
|
3754
|
-
throw new
|
3754
|
+
throw new Da(s);
|
3755
3755
|
return new k({ invalid: s });
|
3756
3756
|
}
|
3757
3757
|
/**
|
@@ -4047,7 +4047,7 @@ class k {
|
|
4047
4047
|
*/
|
4048
4048
|
rescale() {
|
4049
4049
|
if (!this.isValid) return this;
|
4050
|
-
const e =
|
4050
|
+
const e = lu(this.normalize().shiftToAll().toObject());
|
4051
4051
|
return ye(this, { values: e }, !0);
|
4052
4052
|
}
|
4053
4053
|
/**
|
@@ -4209,7 +4209,7 @@ class k {
|
|
4209
4209
|
}
|
4210
4210
|
}
|
4211
4211
|
const xe = "Invalid Interval";
|
4212
|
-
function
|
4212
|
+
function fu(t, e) {
|
4213
4213
|
return !t || !t.isValid ? A.invalid("missing or invalid start") : !e || !e.isValid ? A.invalid("missing or invalid end") : e < t ? A.invalid(
|
4214
4214
|
"end before start",
|
4215
4215
|
`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`
|
@@ -4243,7 +4243,7 @@ class A {
|
|
4243
4243
|
* @return {Interval}
|
4244
4244
|
*/
|
4245
4245
|
static fromDateTimes(e, n) {
|
4246
|
-
const s = ze(e), r = ze(n), i =
|
4246
|
+
const s = ze(e), r = ze(n), i = fu(s, r);
|
4247
4247
|
return i ?? new A({
|
4248
4248
|
start: s,
|
4249
4249
|
end: r
|
@@ -4839,7 +4839,7 @@ function xs(t, e) {
|
|
4839
4839
|
const n = (r) => r.toUTC(0, { keepLocalTime: !0 }).startOf("day").valueOf(), s = n(e) - n(t);
|
4840
4840
|
return Math.floor(k.fromMillis(s).as("days"));
|
4841
4841
|
}
|
4842
|
-
function
|
4842
|
+
function hu(t, e, n) {
|
4843
4843
|
const s = [
|
4844
4844
|
["years", (c, u) => u.year - c.year],
|
4845
4845
|
["quarters", (c, u) => u.quarter - c.quarter + (u.year - c.year) * 4],
|
@@ -4858,8 +4858,8 @@ function fu(t, e, n) {
|
|
4858
4858
|
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);
|
4859
4859
|
return [t, r, a, o];
|
4860
4860
|
}
|
4861
|
-
function
|
4862
|
-
let [r, i, o, a] =
|
4861
|
+
function du(t, e, n, s) {
|
4862
|
+
let [r, i, o, a] = hu(t, e, n);
|
4863
4863
|
const c = e - r, u = n.filter(
|
4864
4864
|
(h) => ["hours", "minutes", "seconds", "milliseconds"].indexOf(h) >= 0
|
4865
4865
|
);
|
@@ -4867,12 +4867,12 @@ function hu(t, e, n, s) {
|
|
4867
4867
|
const l = k.fromObject(i, s);
|
4868
4868
|
return u.length > 0 ? k.fromMillis(c, s).shiftTo(...u).plus(l) : l;
|
4869
4869
|
}
|
4870
|
-
const
|
4870
|
+
const mu = "missing Intl.DateTimeFormat.formatToParts support";
|
4871
4871
|
function C(t, e = (n) => n) {
|
4872
|
-
return { regex: t, deser: ([n]) => e(
|
4872
|
+
return { regex: t, deser: ([n]) => e(sc(n)) };
|
4873
4873
|
}
|
4874
|
-
const
|
4875
|
-
function
|
4874
|
+
const pu = " ", ai = `[ ${pu}]`, ci = new RegExp(ai, "g");
|
4875
|
+
function yu(t) {
|
4876
4876
|
return t.replace(/\./g, "\\.?").replace(ci, ai);
|
4877
4877
|
}
|
4878
4878
|
function Ns(t) {
|
@@ -4880,7 +4880,7 @@ function Ns(t) {
|
|
4880
4880
|
}
|
4881
4881
|
function ne(t, e) {
|
4882
4882
|
return t === null ? null : {
|
4883
|
-
regex: RegExp(t.map(
|
4883
|
+
regex: RegExp(t.map(yu).join("|")),
|
4884
4884
|
deser: ([n]) => t.findIndex((s) => Ns(n) === Ns(s)) + e
|
4885
4885
|
};
|
4886
4886
|
}
|
@@ -4890,11 +4890,11 @@ function _s(t, e) {
|
|
4890
4890
|
function lt(t) {
|
4891
4891
|
return { regex: t, deser: ([e]) => e };
|
4892
4892
|
}
|
4893
|
-
function
|
4893
|
+
function gu(t) {
|
4894
4894
|
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
4895
4895
|
}
|
4896
|
-
function
|
4897
|
-
const n = te(e), s = te(e, "{2}"), r = te(e, "{3}"), i = te(e, "{4}"), o = te(e, "{6}"), a = te(e, "{1,2}"), c = te(e, "{1,3}"), u = te(e, "{1,6}"), l = te(e, "{1,9}"), h = te(e, "{2,4}"), g = te(e, "{4,6}"), d = (_) => ({ regex: RegExp(
|
4896
|
+
function wu(t, e) {
|
4897
|
+
const n = te(e), s = te(e, "{2}"), r = te(e, "{3}"), i = te(e, "{4}"), o = te(e, "{6}"), a = te(e, "{1,2}"), c = te(e, "{1,3}"), u = te(e, "{1,6}"), l = te(e, "{1,9}"), h = te(e, "{2,4}"), g = te(e, "{4,6}"), d = (_) => ({ regex: RegExp(gu(_.val)), deser: ([x]) => x, literal: !0 }), y = ((_) => {
|
4898
4898
|
if (t.literal)
|
4899
4899
|
return d(_);
|
4900
4900
|
switch (_.val) {
|
@@ -5000,11 +5000,11 @@ function gu(t, e) {
|
|
5000
5000
|
return d(_);
|
5001
5001
|
}
|
5002
5002
|
})(t) || {
|
5003
|
-
invalidReason:
|
5003
|
+
invalidReason: mu
|
5004
5004
|
};
|
5005
5005
|
return y.token = t, y;
|
5006
5006
|
}
|
5007
|
-
const
|
5007
|
+
const Su = {
|
5008
5008
|
year: {
|
5009
5009
|
"2-digit": "yy",
|
5010
5010
|
numeric: "yyyyy"
|
@@ -5046,7 +5046,7 @@ const wu = {
|
|
5046
5046
|
short: "ZZZ"
|
5047
5047
|
}
|
5048
5048
|
};
|
5049
|
-
function
|
5049
|
+
function vu(t, e, n) {
|
5050
5050
|
const { type: s, value: r } = t;
|
5051
5051
|
if (s === "literal") {
|
5052
5052
|
const c = /^\s+$/.test(r);
|
@@ -5058,17 +5058,17 @@ function Su(t, e, n) {
|
|
5058
5058
|
const i = e[s];
|
5059
5059
|
let o = s;
|
5060
5060
|
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");
|
5061
|
-
let a =
|
5061
|
+
let a = Su[o];
|
5062
5062
|
if (typeof a == "object" && (a = a[i]), a)
|
5063
5063
|
return {
|
5064
5064
|
literal: !1,
|
5065
5065
|
val: a
|
5066
5066
|
};
|
5067
5067
|
}
|
5068
|
-
function
|
5068
|
+
function bu(t) {
|
5069
5069
|
return [`^${t.map((n) => n.regex).reduce((n, s) => `${n}(${s.source})`, "")}$`, t];
|
5070
5070
|
}
|
5071
|
-
function
|
5071
|
+
function Tu(t, e, n) {
|
5072
5072
|
const s = t.match(e);
|
5073
5073
|
if (s) {
|
5074
5074
|
const r = {};
|
@@ -5082,7 +5082,7 @@ function bu(t, e, n) {
|
|
5082
5082
|
} else
|
5083
5083
|
return [s, {}];
|
5084
5084
|
}
|
5085
|
-
function
|
5085
|
+
function ku(t) {
|
5086
5086
|
const e = (i) => {
|
5087
5087
|
switch (i) {
|
5088
5088
|
case "S":
|
@@ -5117,34 +5117,34 @@ function Tu(t) {
|
|
5117
5117
|
}
|
5118
5118
|
};
|
5119
5119
|
let n = null, s;
|
5120
|
-
return v(t.z) || (n = de.create(t.z)), v(t.Z) || (n || (n = new H(t.Z)), s = t.Z), v(t.q) || (t.M = (t.q - 1) * 3 + 1), v(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), v(t.u) || (t.S =
|
5120
|
+
return v(t.z) || (n = de.create(t.z)), v(t.Z) || (n || (n = new H(t.Z)), s = t.Z), v(t.q) || (t.M = (t.q - 1) * 3 + 1), v(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), v(t.u) || (t.S = Rn(t.u)), [Object.keys(t).reduce((i, o) => {
|
5121
5121
|
const a = e(o);
|
5122
5122
|
return a && (i[a] = t[o]), i;
|
5123
5123
|
}, {}), n, s];
|
5124
5124
|
}
|
5125
5125
|
let Qt = null;
|
5126
|
-
function
|
5126
|
+
function Eu() {
|
5127
5127
|
return Qt || (Qt = S.fromMillis(1555555555555)), Qt;
|
5128
5128
|
}
|
5129
|
-
function
|
5129
|
+
function Ou(t, e) {
|
5130
5130
|
if (t.literal)
|
5131
5131
|
return t;
|
5132
5132
|
const n = W.macroTokenToFormatOpts(t.val), s = hi(n, e);
|
5133
5133
|
return s == null || s.includes(void 0) ? t : s;
|
5134
5134
|
}
|
5135
5135
|
function ui(t, e) {
|
5136
|
-
return Array.prototype.concat(...t.map((n) =>
|
5136
|
+
return Array.prototype.concat(...t.map((n) => Ou(n, e)));
|
5137
5137
|
}
|
5138
5138
|
class li {
|
5139
5139
|
constructor(e, n) {
|
5140
|
-
if (this.locale = e, this.format = n, this.tokens = ui(W.parseFormat(n), e), this.units = this.tokens.map((s) =>
|
5141
|
-
const [s, r] =
|
5140
|
+
if (this.locale = e, this.format = n, this.tokens = ui(W.parseFormat(n), e), this.units = this.tokens.map((s) => wu(s, e)), this.disqualifyingUnit = this.units.find((s) => s.invalidReason), !this.disqualifyingUnit) {
|
5141
|
+
const [s, r] = bu(this.units);
|
5142
5142
|
this.regex = RegExp(s, "i"), this.handlers = r;
|
5143
5143
|
}
|
5144
5144
|
}
|
5145
5145
|
explainFromTokens(e) {
|
5146
5146
|
if (this.isValid) {
|
5147
|
-
const [n, s] =
|
5147
|
+
const [n, s] = Tu(e, this.regex, this.handlers), [r, i, o] = s ? ku(s) : [null, null, void 0];
|
5148
5148
|
if (Fe(s, "a") && Fe(s, "H"))
|
5149
5149
|
throw new Me(
|
5150
5150
|
"Can't include meridiem when specifying 24-hour format"
|
@@ -5172,15 +5172,15 @@ class li {
|
|
5172
5172
|
function fi(t, e, n) {
|
5173
5173
|
return new li(t, n).explainFromTokens(e);
|
5174
5174
|
}
|
5175
|
-
function
|
5175
|
+
function Cu(t, e, n) {
|
5176
5176
|
const { result: s, zone: r, specificOffset: i, invalidReason: o } = fi(t, e, n);
|
5177
5177
|
return [s, r, i, o];
|
5178
5178
|
}
|
5179
5179
|
function hi(t, e) {
|
5180
5180
|
if (!t)
|
5181
5181
|
return null;
|
5182
|
-
const s = W.create(e, t).dtFormatter(
|
5183
|
-
return r.map((o) =>
|
5182
|
+
const s = W.create(e, t).dtFormatter(Eu()), r = s.formatToParts(), i = s.resolvedOptions();
|
5183
|
+
return r.map((o) => vu(o, t, i));
|
5184
5184
|
}
|
5185
5185
|
const en = "Invalid DateTime", As = 864e13;
|
5186
5186
|
function Ye(t) {
|
@@ -5275,11 +5275,11 @@ function ht(t, e, n = !0) {
|
|
5275
5275
|
function sn(t, e) {
|
5276
5276
|
const n = t.c.year > 9999 || t.c.year < 0;
|
5277
5277
|
let s = "";
|
5278
|
-
return n && t.c.year >= 0 && (s += "+"), s +=
|
5278
|
+
return n && t.c.year >= 0 && (s += "+"), s += R(t.c.year, n ? 6 : 4), e ? (s += "-", s += R(t.c.month), s += "-", s += R(t.c.day)) : (s += R(t.c.month), s += R(t.c.day)), s;
|
5279
5279
|
}
|
5280
|
-
function
|
5281
|
-
let o =
|
5282
|
-
return e ? (o += ":", o +=
|
5280
|
+
function Is(t, e, n, s, r, i) {
|
5281
|
+
let o = R(t.c.hour);
|
5282
|
+
return e ? (o += ":", o += R(t.c.minute), (t.c.millisecond !== 0 || t.c.second !== 0 || !n) && (o += ":")) : o += R(t.c.minute), (t.c.millisecond !== 0 || t.c.second !== 0 || !n) && (o += R(t.c.second), (t.c.millisecond !== 0 || !s) && (o += ".", o += R(t.c.millisecond, 3))), r && (t.isOffsetFixed && t.offset === 0 && !i ? o += "Z" : t.o < 0 ? (o += "-", o += R(Math.trunc(-t.o / 60)), o += ":", o += R(Math.trunc(-t.o % 60))) : (o += "+", o += R(Math.trunc(t.o / 60)), o += ":", o += R(Math.trunc(t.o % 60)))), i && (o += "[" + t.zone.ianaName + "]"), o;
|
5283
5283
|
}
|
5284
5284
|
const mi = {
|
5285
5285
|
month: 1,
|
@@ -5288,20 +5288,20 @@ const mi = {
|
|
5288
5288
|
minute: 0,
|
5289
5289
|
second: 0,
|
5290
5290
|
millisecond: 0
|
5291
|
-
},
|
5291
|
+
}, xu = {
|
5292
5292
|
weekNumber: 1,
|
5293
5293
|
weekday: 1,
|
5294
5294
|
hour: 0,
|
5295
5295
|
minute: 0,
|
5296
5296
|
second: 0,
|
5297
5297
|
millisecond: 0
|
5298
|
-
},
|
5298
|
+
}, Nu = {
|
5299
5299
|
ordinal: 1,
|
5300
5300
|
hour: 0,
|
5301
5301
|
minute: 0,
|
5302
5302
|
second: 0,
|
5303
5303
|
millisecond: 0
|
5304
|
-
}, pi = ["year", "month", "day", "hour", "minute", "second", "millisecond"],
|
5304
|
+
}, pi = ["year", "month", "day", "hour", "minute", "second", "millisecond"], _u = [
|
5305
5305
|
"weekYear",
|
5306
5306
|
"weekNumber",
|
5307
5307
|
"weekday",
|
@@ -5309,8 +5309,8 @@ const mi = {
|
|
5309
5309
|
"minute",
|
5310
5310
|
"second",
|
5311
5311
|
"millisecond"
|
5312
|
-
],
|
5313
|
-
function
|
5312
|
+
], Au = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
|
5313
|
+
function Mu(t) {
|
5314
5314
|
const e = {
|
5315
5315
|
year: "year",
|
5316
5316
|
years: "year",
|
@@ -5340,7 +5340,7 @@ function Au(t) {
|
|
5340
5340
|
if (!e) throw new yr(t);
|
5341
5341
|
return e;
|
5342
5342
|
}
|
5343
|
-
function
|
5343
|
+
function Rs(t) {
|
5344
5344
|
switch (t.toLowerCase()) {
|
5345
5345
|
case "localweekday":
|
5346
5346
|
case "localweekdays":
|
@@ -5352,10 +5352,10 @@ function Is(t) {
|
|
5352
5352
|
case "localweekyears":
|
5353
5353
|
return "localWeekYear";
|
5354
5354
|
default:
|
5355
|
-
return
|
5355
|
+
return Mu(t);
|
5356
5356
|
}
|
5357
5357
|
}
|
5358
|
-
function
|
5358
|
+
function Iu(t) {
|
5359
5359
|
return kt[t] || (Tt === void 0 && (Tt = M.now()), kt[t] = t.offset(Tt)), kt[t];
|
5360
5360
|
}
|
5361
5361
|
function Ds(t, e) {
|
@@ -5372,7 +5372,7 @@ function Ds(t, e) {
|
|
5372
5372
|
const o = Ur(t) || Pr(t);
|
5373
5373
|
if (o)
|
5374
5374
|
return S.invalid(o);
|
5375
|
-
const a =
|
5375
|
+
const a = Iu(n);
|
5376
5376
|
[r, i] = bt(t, a, n);
|
5377
5377
|
}
|
5378
5378
|
return new S({ ts: r, zone: n, loc: s, o: i });
|
@@ -5484,7 +5484,7 @@ class S {
|
|
5484
5484
|
* @return {DateTime}
|
5485
5485
|
*/
|
5486
5486
|
static fromJSDate(e, n = {}) {
|
5487
|
-
const s =
|
5487
|
+
const s = cc(e) ? e.valueOf() : NaN;
|
5488
5488
|
if (Number.isNaN(s))
|
5489
5489
|
return S.invalid("invalid input");
|
5490
5490
|
const r = we(n.zone, M.defaultZone);
|
@@ -5574,7 +5574,7 @@ class S {
|
|
5574
5574
|
const s = we(n.zone, M.defaultZone);
|
5575
5575
|
if (!s.isValid)
|
5576
5576
|
return S.invalid(Ye(s));
|
5577
|
-
const r = N.fromObject(n), i = Mt(e,
|
5577
|
+
const r = N.fromObject(n), i = Mt(e, Rs), { minDaysInFirstWeek: o, startOfWeek: a } = vs(i, r), c = M.now(), u = v(n.specificOffset) ? s.offset(c) : n.specificOffset, l = !v(i.ordinal), h = !v(i.year), g = !v(i.month) || !v(i.day), d = h || g, m = i.weekYear || i.weekNumber;
|
5578
5578
|
if ((d || l) && m)
|
5579
5579
|
throw new Me(
|
5580
5580
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
@@ -5582,14 +5582,14 @@ class S {
|
|
5582
5582
|
if (g && l)
|
5583
5583
|
throw new Me("Can't mix ordinal dates with month/day");
|
5584
5584
|
const y = m || i.weekday && !d;
|
5585
|
-
let _, x,
|
5586
|
-
y ? (_ =
|
5585
|
+
let _, x, I = ft(c, u);
|
5586
|
+
y ? (_ = _u, x = xu, I = _t(I, o, a)) : l ? (_ = Au, x = Nu, I = Xt(I)) : (_ = pi, x = mi);
|
5587
5587
|
let fe = !1;
|
5588
5588
|
for (const Z of _) {
|
5589
5589
|
const Oe = i[Z];
|
5590
|
-
v(Oe) ? fe ? i[Z] = x[Z] : i[Z] =
|
5590
|
+
v(Oe) ? fe ? i[Z] = x[Z] : i[Z] = I[Z] : fe = !0;
|
5591
5591
|
}
|
5592
|
-
const b = y ?
|
5592
|
+
const b = y ? ic(i, o, a) : l ? oc(i) : Ur(i), O = b || Pr(i);
|
5593
5593
|
if (O)
|
5594
5594
|
return S.invalid(O);
|
5595
5595
|
const B = y ? ws(i, o, a) : l ? Ss(i) : i, [j, $] = bt(B, u, s), z = new S({
|
@@ -5621,7 +5621,7 @@ class S {
|
|
5621
5621
|
* @return {DateTime}
|
5622
5622
|
*/
|
5623
5623
|
static fromISO(e, n = {}) {
|
5624
|
-
const [s, r] =
|
5624
|
+
const [s, r] = Kc(e);
|
5625
5625
|
return Ne(s, r, n, "ISO 8601", e);
|
5626
5626
|
}
|
5627
5627
|
/**
|
@@ -5640,7 +5640,7 @@ class S {
|
|
5640
5640
|
* @return {DateTime}
|
5641
5641
|
*/
|
5642
5642
|
static fromRFC2822(e, n = {}) {
|
5643
|
-
const [s, r] =
|
5643
|
+
const [s, r] = Xc(e);
|
5644
5644
|
return Ne(s, r, n, "RFC 2822", e);
|
5645
5645
|
}
|
5646
5646
|
/**
|
@@ -5660,7 +5660,7 @@ class S {
|
|
5660
5660
|
* @return {DateTime}
|
5661
5661
|
*/
|
5662
5662
|
static fromHTTP(e, n = {}) {
|
5663
|
-
const [s, r] =
|
5663
|
+
const [s, r] = Qc(e);
|
5664
5664
|
return Ne(s, r, n, "HTTP", n);
|
5665
5665
|
}
|
5666
5666
|
/**
|
@@ -5684,7 +5684,7 @@ class S {
|
|
5684
5684
|
locale: r,
|
5685
5685
|
numberingSystem: i,
|
5686
5686
|
defaultToEN: !0
|
5687
|
-
}), [a, c, u, l] =
|
5687
|
+
}), [a, c, u, l] = Cu(o, e, n);
|
5688
5688
|
return l ? S.invalid(l) : Ne(a, c, s, `format ${n}`, e, u);
|
5689
5689
|
}
|
5690
5690
|
/**
|
@@ -5715,7 +5715,7 @@ class S {
|
|
5715
5715
|
* @return {DateTime}
|
5716
5716
|
*/
|
5717
5717
|
static fromSQL(e, n = {}) {
|
5718
|
-
const [s, r] =
|
5718
|
+
const [s, r] = ou(e);
|
5719
5719
|
return Ne(s, r, n, "SQL", e);
|
5720
5720
|
}
|
5721
5721
|
/**
|
@@ -5729,7 +5729,7 @@ class S {
|
|
5729
5729
|
throw new P("need to specify a reason the DateTime is invalid");
|
5730
5730
|
const s = e instanceof re ? e : new re(e, n);
|
5731
5731
|
if (M.throwOnInvalid)
|
5732
|
-
throw new
|
5732
|
+
throw new Ia(s);
|
5733
5733
|
return new S({ invalid: s });
|
5734
5734
|
}
|
5735
5735
|
/**
|
@@ -6090,7 +6090,7 @@ class S {
|
|
6090
6090
|
* @type {number}
|
6091
6091
|
*/
|
6092
6092
|
get daysInYear() {
|
6093
|
-
return this.isValid ?
|
6093
|
+
return this.isValid ? Re(this.year) : NaN;
|
6094
6094
|
}
|
6095
6095
|
/**
|
6096
6096
|
* Returns the number of weeks in this DateTime's year
|
@@ -6205,7 +6205,7 @@ class S {
|
|
6205
6205
|
*/
|
6206
6206
|
set(e) {
|
6207
6207
|
if (!this.isValid) return this;
|
6208
|
-
const n = Mt(e,
|
6208
|
+
const n = Mt(e, Rs), { minDaysInFirstWeek: s, startOfWeek: r } = vs(n, this.loc), i = !v(n.weekYear) || !v(n.weekNumber) || !v(n.weekday), o = !v(n.ordinal), a = !v(n.year), c = !v(n.month) || !v(n.day), u = a || c, l = n.weekYear || n.weekNumber;
|
6209
6209
|
if ((u || o) && l)
|
6210
6210
|
throw new Me(
|
6211
6211
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
@@ -6388,7 +6388,7 @@ class S {
|
|
6388
6388
|
return null;
|
6389
6389
|
const o = e === "extended";
|
6390
6390
|
let a = sn(this, o);
|
6391
|
-
return a += "T", a +=
|
6391
|
+
return a += "T", a += Is(this, o, n, s, r, i), a;
|
6392
6392
|
}
|
6393
6393
|
/**
|
6394
6394
|
* Returns an ISO 8601-compliant string representation of this DateTime's date component
|
@@ -6432,7 +6432,7 @@ class S {
|
|
6432
6432
|
extendedZone: i = !1,
|
6433
6433
|
format: o = "extended"
|
6434
6434
|
} = {}) {
|
6435
|
-
return this.isValid ? (r ? "T" : "") +
|
6435
|
+
return this.isValid ? (r ? "T" : "") + Is(
|
6436
6436
|
this,
|
6437
6437
|
o === "extended",
|
6438
6438
|
n,
|
@@ -6594,7 +6594,7 @@ class S {
|
|
6594
6594
|
diff(e, n = "milliseconds", s = {}) {
|
6595
6595
|
if (!this.isValid || !e.isValid)
|
6596
6596
|
return k.invalid("created by diffing an invalid DateTime");
|
6597
|
-
const r = { locale: this.locale, numberingSystem: this.numberingSystem, ...s }, i =
|
6597
|
+
const r = { locale: this.locale, numberingSystem: this.numberingSystem, ...s }, i = uc(n).map(k.normalizeUnit), o = e.valueOf() > this.valueOf(), a = o ? this : e, c = o ? e : this, u = du(a, c, i, r);
|
6598
6598
|
return o ? u.negate() : u;
|
6599
6599
|
}
|
6600
6600
|
/**
|
@@ -6808,7 +6808,7 @@ class S {
|
|
6808
6808
|
* @type {Object}
|
6809
6809
|
*/
|
6810
6810
|
static get DATE_MED_WITH_WEEKDAY() {
|
6811
|
-
return
|
6811
|
+
return La;
|
6812
6812
|
}
|
6813
6813
|
/**
|
6814
6814
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983'
|
@@ -6913,21 +6913,21 @@ class S {
|
|
6913
6913
|
* @type {Object}
|
6914
6914
|
*/
|
6915
6915
|
static get DATETIME_MED_WITH_WEEKDAY() {
|
6916
|
-
return
|
6916
|
+
return Fa;
|
6917
6917
|
}
|
6918
6918
|
/**
|
6919
6919
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
6920
6920
|
* @type {Object}
|
6921
6921
|
*/
|
6922
6922
|
static get DATETIME_FULL() {
|
6923
|
-
return
|
6923
|
+
return Ir;
|
6924
6924
|
}
|
6925
6925
|
/**
|
6926
6926
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
|
6927
6927
|
* @type {Object}
|
6928
6928
|
*/
|
6929
6929
|
static get DATETIME_FULL_WITH_SECONDS() {
|
6930
|
-
return
|
6930
|
+
return Rr;
|
6931
6931
|
}
|
6932
6932
|
/**
|
6933
6933
|
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
@@ -6955,28 +6955,28 @@ function ze(t) {
|
|
6955
6955
|
`Unknown datetime argument: ${t}, of type ${typeof t}`
|
6956
6956
|
);
|
6957
6957
|
}
|
6958
|
-
const Ru = {},
|
6958
|
+
const Ru = {}, Du = {
|
6959
6959
|
xmlns: "http://www.w3.org/2000/svg",
|
6960
6960
|
viewBox: "0 0 512 512"
|
6961
|
-
},
|
6961
|
+
}, Lu = /* @__PURE__ */ w("path", {
|
6962
6962
|
fill: "rgb(248 113 113)",
|
6963
6963
|
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"
|
6964
|
-
}, null, -1),
|
6965
|
-
|
6964
|
+
}, null, -1), Fu = [
|
6965
|
+
Lu
|
6966
6966
|
];
|
6967
|
-
function
|
6968
|
-
return L(), V("svg",
|
6967
|
+
function Vu(t, e) {
|
6968
|
+
return L(), V("svg", Du, Fu);
|
6969
6969
|
}
|
6970
|
-
const
|
6970
|
+
const Bu = /* @__PURE__ */ oe(Ru, [["render", Vu]]), $u = { class: "messages-container-list" }, Uu = { class: "message-container" }, Pu = {
|
6971
6971
|
key: 0,
|
6972
6972
|
class: "btn-container-widget"
|
6973
|
-
},
|
6973
|
+
}, Wu = ["onClick"], qu = { class: "chat-message" }, Hu = { class: "message-text" }, zu = { class: "detail-message flex justify-content-between" }, Zu = {
|
6974
6974
|
key: 0,
|
6975
6975
|
class: "mr-5"
|
6976
|
-
},
|
6976
|
+
}, ju = {
|
6977
6977
|
key: 1,
|
6978
6978
|
class: "mr-5"
|
6979
|
-
},
|
6979
|
+
}, Yu = /* @__PURE__ */ On({
|
6980
6980
|
__name: "MessageList",
|
6981
6981
|
props: {
|
6982
6982
|
messages: {
|
@@ -6990,13 +6990,13 @@ const Vu = /* @__PURE__ */ oe(Ru, [["render", Fu]]), Bu = { class: "messages-con
|
|
6990
6990
|
},
|
6991
6991
|
emits: ["loadMore", "retry"],
|
6992
6992
|
setup(t, { emit: e }) {
|
6993
|
-
const n = t, s = q(), { pause: r, resume: i } =
|
6993
|
+
const n = t, s = q(), { pause: r, resume: i } = Ma(
|
6994
6994
|
s,
|
6995
6995
|
([{ isIntersecting: o }]) => {
|
6996
6996
|
o && e("loadMore");
|
6997
6997
|
}
|
6998
6998
|
);
|
6999
|
-
return
|
6999
|
+
return Vi(() => {
|
7000
7000
|
n.canLoadMoreMessages || r();
|
7001
7001
|
}), En(
|
7002
7002
|
() => n.canLoadMoreMessages,
|
@@ -7013,15 +7013,15 @@ const Vu = /* @__PURE__ */ oe(Ru, [["render", Fu]]), Bu = { class: "messages-con
|
|
7013
7013
|
ref: s,
|
7014
7014
|
class: "target"
|
7015
7015
|
}, null, 512),
|
7016
|
-
w("div",
|
7017
|
-
(L(!0), V(Hn, null,
|
7016
|
+
w("div", $u, [
|
7017
|
+
(L(!0), V(Hn, null, Bi(n.messages, (c) => {
|
7018
7018
|
var u, l;
|
7019
7019
|
return L(), V("div", {
|
7020
7020
|
key: c.id,
|
7021
|
-
class:
|
7021
|
+
class: Ie(["message", c.esCliente ? "message-right" : "message-left"])
|
7022
7022
|
}, [
|
7023
|
-
w("div",
|
7024
|
-
c.error && c.esCliente ? (L(), V("div",
|
7023
|
+
w("div", Uu, [
|
7024
|
+
c.error && c.esCliente ? (L(), V("div", Pu, [
|
7025
7025
|
w("button", {
|
7026
7026
|
text: "",
|
7027
7027
|
rounded: "",
|
@@ -7030,19 +7030,19 @@ const Vu = /* @__PURE__ */ oe(Ru, [["render", Fu]]), Bu = { class: "messages-con
|
|
7030
7030
|
"aria-label": "Cancel",
|
7031
7031
|
onClick: (h) => e("retry", c)
|
7032
7032
|
}, [
|
7033
|
-
he(
|
7034
|
-
], 8,
|
7033
|
+
he(Bu)
|
7034
|
+
], 8, Wu)
|
7035
7035
|
])) : xt("", !0),
|
7036
|
-
w("div",
|
7036
|
+
w("div", qu, [
|
7037
7037
|
w("div", {
|
7038
|
-
class:
|
7038
|
+
class: Ie(["bubble", c.esCliente ? "right" : "left"])
|
7039
7039
|
}, [
|
7040
7040
|
w("div", {
|
7041
|
-
class:
|
7041
|
+
class: Ie(c.esCliente ? "content-right" : "content-left")
|
7042
7042
|
}, [
|
7043
|
-
w("div",
|
7044
|
-
w("div",
|
7045
|
-
(u = c.sender) != null && u.nombreCompleto ? (L(), V("span",
|
7043
|
+
w("div", Hu, Ge(c.message), 1),
|
7044
|
+
w("div", zu, [
|
7045
|
+
(u = c.sender) != null && u.nombreCompleto ? (L(), V("span", Zu, Ge(c.esCliente ? (l = c.sender) == null ? void 0 : l.nombreCompleto : "ECOSISTEMA JL"), 1)) : (L(), V("span", ju)),
|
7046
7046
|
w("span", null, Ge(js(S).fromISO(c.createdAt).toFormat(
|
7047
7047
|
"dd-MM-yyyy HH:mm"
|
7048
7048
|
)), 1)
|
@@ -7056,25 +7056,25 @@ const Vu = /* @__PURE__ */ oe(Ru, [["render", Fu]]), Bu = { class: "messages-con
|
|
7056
7056
|
])
|
7057
7057
|
], 64));
|
7058
7058
|
}
|
7059
|
-
}),
|
7059
|
+
}), Ju = /* @__PURE__ */ oe(Yu, [["__scopeId", "data-v-a9fc4a05"]]), Gu = {}, yi = (t) => ($i("data-v-d9a6b2b7"), t = t(), Ui(), t), Ku = {
|
7060
7060
|
viewBox: "0 0 24 24",
|
7061
7061
|
xmlns: "http://www.w3.org/2000/svg",
|
7062
7062
|
style: { width: "28px", height: "28px" }
|
7063
|
-
},
|
7063
|
+
}, Xu = /* @__PURE__ */ yi(() => /* @__PURE__ */ w("path", {
|
7064
7064
|
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",
|
7065
7065
|
opacity: ".25"
|
7066
|
-
}, null, -1)),
|
7066
|
+
}, null, -1)), Qu = /* @__PURE__ */ yi(() => /* @__PURE__ */ w("path", {
|
7067
7067
|
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",
|
7068
7068
|
class: "spinner_ajPY"
|
7069
|
-
}, null, -1)),
|
7070
|
-
|
7071
|
-
|
7069
|
+
}, null, -1)), el = [
|
7070
|
+
Xu,
|
7071
|
+
Qu
|
7072
7072
|
];
|
7073
|
-
function
|
7074
|
-
return L(), V("svg",
|
7073
|
+
function tl(t, e) {
|
7074
|
+
return L(), V("svg", Ku, el);
|
7075
7075
|
}
|
7076
|
-
const
|
7077
|
-
function
|
7076
|
+
const nl = /* @__PURE__ */ oe(Gu, [["render", tl], ["__scopeId", "data-v-d9a6b2b7"]]);
|
7077
|
+
function sl(t, e, n) {
|
7078
7078
|
for (let s = t.length - 1; s >= 0; s--)
|
7079
7079
|
if (t[s][e] === n) return s;
|
7080
7080
|
return -1;
|
@@ -7102,7 +7102,7 @@ function Bs(t) {
|
|
7102
7102
|
return t instanceof Uint8Array ? t : t instanceof ArrayBuffer ? new Uint8Array(t) : new Uint8Array(t.buffer, t.byteOffset, t.byteLength);
|
7103
7103
|
}
|
7104
7104
|
let rn;
|
7105
|
-
function
|
7105
|
+
function rl(t, e) {
|
7106
7106
|
if (gi && t.data instanceof Blob)
|
7107
7107
|
return t.data.arrayBuffer().then(Bs).then(e);
|
7108
7108
|
if (wi && (t.data instanceof ArrayBuffer || Si(t.data)))
|
@@ -7114,14 +7114,14 @@ function sl(t, e) {
|
|
7114
7114
|
const $s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Je = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
7115
7115
|
for (let t = 0; t < $s.length; t++)
|
7116
7116
|
Je[$s.charCodeAt(t)] = t;
|
7117
|
-
const
|
7117
|
+
const il = (t) => {
|
7118
7118
|
let e = t.length * 0.75, n = t.length, s, r = 0, i, o, a, c;
|
7119
7119
|
t[t.length - 1] === "=" && (e--, t[t.length - 2] === "=" && e--);
|
7120
7120
|
const u = new ArrayBuffer(e), l = new Uint8Array(u);
|
7121
7121
|
for (s = 0; s < n; s += 4)
|
7122
7122
|
i = Je[t.charCodeAt(s)], o = Je[t.charCodeAt(s + 1)], a = Je[t.charCodeAt(s + 2)], c = Je[t.charCodeAt(s + 3)], l[r++] = i << 2 | o >> 4, l[r++] = (o & 15) << 4 | a >> 2, l[r++] = (a & 3) << 6 | c & 63;
|
7123
7123
|
return u;
|
7124
|
-
},
|
7124
|
+
}, ol = typeof ArrayBuffer == "function", $n = (t, e) => {
|
7125
7125
|
if (typeof t != "string")
|
7126
7126
|
return {
|
7127
7127
|
type: "message",
|
@@ -7130,16 +7130,16 @@ const rl = (t) => {
|
|
7130
7130
|
const n = t.charAt(0);
|
7131
7131
|
return n === "b" ? {
|
7132
7132
|
type: "message",
|
7133
|
-
data:
|
7133
|
+
data: al(t.substring(1), e)
|
7134
7134
|
} : Et[n] ? t.length > 1 ? {
|
7135
7135
|
type: Et[n],
|
7136
7136
|
data: t.substring(1)
|
7137
7137
|
} : {
|
7138
7138
|
type: Et[n]
|
7139
7139
|
} : wn;
|
7140
|
-
},
|
7141
|
-
if (
|
7142
|
-
const n =
|
7140
|
+
}, al = (t, e) => {
|
7141
|
+
if (ol) {
|
7142
|
+
const n = il(t);
|
7143
7143
|
return vi(n, e);
|
7144
7144
|
} else
|
7145
7145
|
return { base64: !0, data: t };
|
@@ -7151,7 +7151,7 @@ const rl = (t) => {
|
|
7151
7151
|
default:
|
7152
7152
|
return t instanceof ArrayBuffer ? t : t.buffer;
|
7153
7153
|
}
|
7154
|
-
}, bi = "",
|
7154
|
+
}, bi = "", cl = (t, e) => {
|
7155
7155
|
const n = t.length, s = new Array(n);
|
7156
7156
|
let r = 0;
|
7157
7157
|
t.forEach((i, o) => {
|
@@ -7159,7 +7159,7 @@ const rl = (t) => {
|
|
7159
7159
|
s[o] = a, ++r === n && e(s.join(bi));
|
7160
7160
|
});
|
7161
7161
|
});
|
7162
|
-
},
|
7162
|
+
}, ul = (t, e) => {
|
7163
7163
|
const n = t.split(bi), s = [];
|
7164
7164
|
for (let r = 0; r < n.length; r++) {
|
7165
7165
|
const i = $n(n[r], e);
|
@@ -7168,10 +7168,10 @@ const rl = (t) => {
|
|
7168
7168
|
}
|
7169
7169
|
return s;
|
7170
7170
|
};
|
7171
|
-
function
|
7171
|
+
function ll() {
|
7172
7172
|
return new TransformStream({
|
7173
7173
|
transform(t, e) {
|
7174
|
-
|
7174
|
+
rl(t, (n) => {
|
7175
7175
|
const s = n.length;
|
7176
7176
|
let r;
|
7177
7177
|
if (s < 126)
|
@@ -7203,7 +7203,7 @@ function mt(t, e) {
|
|
7203
7203
|
n[r] = t[0][s++], s === t[0].length && (t.shift(), s = 0);
|
7204
7204
|
return t.length && s < t[0].length && (t[0] = t[0].slice(s)), n;
|
7205
7205
|
}
|
7206
|
-
function
|
7206
|
+
function fl(t, e) {
|
7207
7207
|
on || (on = new TextDecoder());
|
7208
7208
|
const n = [];
|
7209
7209
|
let s = 0, r = -1, i = !1;
|
@@ -7245,9 +7245,9 @@ function ll(t, e) {
|
|
7245
7245
|
}
|
7246
7246
|
const Ti = 4;
|
7247
7247
|
function D(t) {
|
7248
|
-
if (t) return
|
7248
|
+
if (t) return hl(t);
|
7249
7249
|
}
|
7250
|
-
function
|
7250
|
+
function hl(t) {
|
7251
7251
|
for (var e in D.prototype)
|
7252
7252
|
t[e] = D.prototype[e];
|
7253
7253
|
return t;
|
@@ -7297,27 +7297,27 @@ const G = typeof self < "u" ? self : typeof window < "u" ? window : Function("re
|
|
7297
7297
|
function ki(t, ...e) {
|
7298
7298
|
return e.reduce((n, s) => (t.hasOwnProperty(s) && (n[s] = t[s]), n), {});
|
7299
7299
|
}
|
7300
|
-
const
|
7300
|
+
const dl = G.setTimeout, ml = G.clearTimeout;
|
7301
7301
|
function Wt(t, e) {
|
7302
|
-
e.useNativeTimers ? (t.setTimeoutFn =
|
7303
|
-
}
|
7304
|
-
const ml = 1.33;
|
7305
|
-
function pl(t) {
|
7306
|
-
return typeof t == "string" ? yl(t) : Math.ceil((t.byteLength || t.size) * ml);
|
7302
|
+
e.useNativeTimers ? (t.setTimeoutFn = dl.bind(G), t.clearTimeoutFn = ml.bind(G)) : (t.setTimeoutFn = G.setTimeout.bind(G), t.clearTimeoutFn = G.clearTimeout.bind(G));
|
7307
7303
|
}
|
7304
|
+
const pl = 1.33;
|
7308
7305
|
function yl(t) {
|
7306
|
+
return typeof t == "string" ? gl(t) : Math.ceil((t.byteLength || t.size) * pl);
|
7307
|
+
}
|
7308
|
+
function gl(t) {
|
7309
7309
|
let e = 0, n = 0;
|
7310
7310
|
for (let s = 0, r = t.length; s < r; s++)
|
7311
7311
|
e = t.charCodeAt(s), e < 128 ? n += 1 : e < 2048 ? n += 2 : e < 55296 || e >= 57344 ? n += 3 : (s++, n += 4);
|
7312
7312
|
return n;
|
7313
7313
|
}
|
7314
|
-
function
|
7314
|
+
function wl(t) {
|
7315
7315
|
let e = "";
|
7316
7316
|
for (let n in t)
|
7317
7317
|
t.hasOwnProperty(n) && (e.length && (e += "&"), e += encodeURIComponent(n) + "=" + encodeURIComponent(t[n]));
|
7318
7318
|
return e;
|
7319
7319
|
}
|
7320
|
-
function
|
7320
|
+
function Sl(t) {
|
7321
7321
|
let e = {}, n = t.split("&");
|
7322
7322
|
for (let s = 0, r = n.length; s < r; s++) {
|
7323
7323
|
let i = n[s].split("=");
|
@@ -7325,7 +7325,7 @@ function wl(t) {
|
|
7325
7325
|
}
|
7326
7326
|
return e;
|
7327
7327
|
}
|
7328
|
-
class
|
7328
|
+
class vl extends Error {
|
7329
7329
|
constructor(e, n, s) {
|
7330
7330
|
super(e), this.description = n, this.context = s, this.type = "TransportError";
|
7331
7331
|
}
|
@@ -7350,7 +7350,7 @@ class Un extends D {
|
|
7350
7350
|
* @protected
|
7351
7351
|
*/
|
7352
7352
|
onError(e, n, s) {
|
7353
|
-
return super.emitReserved("error", new
|
7353
|
+
return super.emitReserved("error", new vl(e, n, s)), this;
|
7354
7354
|
}
|
7355
7355
|
/**
|
7356
7356
|
* Opens the transport.
|
@@ -7424,11 +7424,11 @@ class Un extends D {
|
|
7424
7424
|
return this.opts.port && (this.opts.secure && +(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80) ? ":" + this.opts.port : "";
|
7425
7425
|
}
|
7426
7426
|
_query(e) {
|
7427
|
-
const n =
|
7427
|
+
const n = wl(e);
|
7428
7428
|
return n.length ? "?" + n : "";
|
7429
7429
|
}
|
7430
7430
|
}
|
7431
|
-
const Ei = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Sn = 64,
|
7431
|
+
const Ei = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Sn = 64, bl = {};
|
7432
7432
|
let Us = 0, pt = 0, Ps;
|
7433
7433
|
function Ws(t) {
|
7434
7434
|
let e = "";
|
@@ -7442,17 +7442,17 @@ function Oi() {
|
|
7442
7442
|
return t !== Ps ? (Us = 0, Ps = t) : t + "." + Ws(Us++);
|
7443
7443
|
}
|
7444
7444
|
for (; pt < Sn; pt++)
|
7445
|
-
|
7445
|
+
bl[Ei[pt]] = pt;
|
7446
7446
|
let Ci = !1;
|
7447
7447
|
try {
|
7448
7448
|
Ci = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
|
7449
7449
|
} catch {
|
7450
7450
|
}
|
7451
|
-
const
|
7451
|
+
const Tl = Ci;
|
7452
7452
|
function xi(t) {
|
7453
7453
|
const e = t.xdomain;
|
7454
7454
|
try {
|
7455
|
-
if (typeof XMLHttpRequest < "u" && (!e ||
|
7455
|
+
if (typeof XMLHttpRequest < "u" && (!e || Tl))
|
7456
7456
|
return new XMLHttpRequest();
|
7457
7457
|
} catch {
|
7458
7458
|
}
|
@@ -7462,14 +7462,14 @@ function xi(t) {
|
|
7462
7462
|
} catch {
|
7463
7463
|
}
|
7464
7464
|
}
|
7465
|
-
function
|
7465
|
+
function kl() {
|
7466
7466
|
}
|
7467
|
-
const
|
7467
|
+
const El = function() {
|
7468
7468
|
return new xi({
|
7469
7469
|
xdomain: !1
|
7470
7470
|
}).responseType != null;
|
7471
7471
|
}();
|
7472
|
-
class
|
7472
|
+
class Ol extends Un {
|
7473
7473
|
/**
|
7474
7474
|
* XHR Polling constructor.
|
7475
7475
|
*
|
@@ -7483,7 +7483,7 @@ class El extends Un {
|
|
7483
7483
|
r || (r = s ? "443" : "80"), this.xd = typeof location < "u" && e.hostname !== location.hostname || r !== e.port;
|
7484
7484
|
}
|
7485
7485
|
const n = e && e.forceBase64;
|
7486
|
-
this.supportsBinary =
|
7486
|
+
this.supportsBinary = El && !n, this.opts.withCredentials && (this.cookieJar = void 0);
|
7487
7487
|
}
|
7488
7488
|
get name() {
|
7489
7489
|
return "polling";
|
@@ -7537,7 +7537,7 @@ class El extends Un {
|
|
7537
7537
|
return this.onClose({ description: "transport closed by the server" }), !1;
|
7538
7538
|
this.onPacket(s);
|
7539
7539
|
};
|
7540
|
-
|
7540
|
+
ul(e, this.socket.binaryType).forEach(n), this.readyState !== "closed" && (this.polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this.poll());
|
7541
7541
|
}
|
7542
7542
|
/**
|
7543
7543
|
* For polling, send a close packet.
|
@@ -7557,7 +7557,7 @@ class El extends Un {
|
|
7557
7557
|
* @protected
|
7558
7558
|
*/
|
7559
7559
|
write(e) {
|
7560
|
-
this.writable = !1,
|
7560
|
+
this.writable = !1, cl(e, (n) => {
|
7561
7561
|
this.doWrite(n, () => {
|
7562
7562
|
this.writable = !0, this.emitReserved("drain");
|
7563
7563
|
});
|
@@ -7677,7 +7677,7 @@ class ce extends D {
|
|
7677
7677
|
*/
|
7678
7678
|
cleanup(e) {
|
7679
7679
|
if (!(typeof this.xhr > "u" || this.xhr === null)) {
|
7680
|
-
if (this.xhr.onreadystatechange =
|
7680
|
+
if (this.xhr.onreadystatechange = kl, e)
|
7681
7681
|
try {
|
7682
7682
|
this.xhr.abort();
|
7683
7683
|
} catch {
|
@@ -7717,8 +7717,8 @@ function qs() {
|
|
7717
7717
|
for (let t in ce.requests)
|
7718
7718
|
ce.requests.hasOwnProperty(t) && ce.requests[t].abort();
|
7719
7719
|
}
|
7720
|
-
const Pn = typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, n) => n(e, 0), yt = G.WebSocket || G.MozWebSocket, Hs = !0,
|
7721
|
-
class
|
7720
|
+
const Pn = typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, n) => n(e, 0), yt = G.WebSocket || G.MozWebSocket, Hs = !0, Cl = "arraybuffer", zs = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
7721
|
+
class xl extends Un {
|
7722
7722
|
/**
|
7723
7723
|
* WebSocket transport constructor.
|
7724
7724
|
*
|
@@ -7794,7 +7794,7 @@ class Cl extends Un {
|
|
7794
7794
|
return !!yt;
|
7795
7795
|
}
|
7796
7796
|
}
|
7797
|
-
class
|
7797
|
+
class Nl extends Un {
|
7798
7798
|
get name() {
|
7799
7799
|
return "webtransport";
|
7800
7800
|
}
|
@@ -7805,7 +7805,7 @@ class xl extends Un {
|
|
7805
7805
|
this.onError("webtransport error", e);
|
7806
7806
|
}), this.transport.ready.then(() => {
|
7807
7807
|
this.transport.createBidirectionalStream().then((e) => {
|
7808
|
-
const n =
|
7808
|
+
const n = fl(Number.MAX_SAFE_INTEGER, this.socket.binaryType), s = e.readable.pipeThrough(n).getReader(), r = ll();
|
7809
7809
|
r.readable.pipeTo(e.writable), this.writer = r.writable.getWriter();
|
7810
7810
|
const i = () => {
|
7811
7811
|
s.read().then(({ done: a, value: c }) => {
|
@@ -7835,11 +7835,11 @@ class xl extends Un {
|
|
7835
7835
|
(e = this.transport) === null || e === void 0 || e.close();
|
7836
7836
|
}
|
7837
7837
|
}
|
7838
|
-
const
|
7839
|
-
websocket:
|
7840
|
-
webtransport:
|
7841
|
-
polling:
|
7842
|
-
},
|
7838
|
+
const _l = {
|
7839
|
+
websocket: xl,
|
7840
|
+
webtransport: Nl,
|
7841
|
+
polling: Ol
|
7842
|
+
}, Al = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, Ml = [
|
7843
7843
|
"source",
|
7844
7844
|
"protocol",
|
7845
7845
|
"authority",
|
@@ -7858,12 +7858,12 @@ const Nl = {
|
|
7858
7858
|
function vn(t) {
|
7859
7859
|
const e = t, n = t.indexOf("["), s = t.indexOf("]");
|
7860
7860
|
n != -1 && s != -1 && (t = t.substring(0, n) + t.substring(n, s).replace(/:/g, ";") + t.substring(s, t.length));
|
7861
|
-
let r =
|
7861
|
+
let r = Al.exec(t || ""), i = {}, o = 14;
|
7862
7862
|
for (; o--; )
|
7863
|
-
i[
|
7864
|
-
return n != -1 && s != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames =
|
7863
|
+
i[Ml[o]] = r[o] || "";
|
7864
|
+
return n != -1 && s != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = Il(i, i.path), i.queryKey = Rl(i, i.query), i;
|
7865
7865
|
}
|
7866
|
-
function
|
7866
|
+
function Il(t, e) {
|
7867
7867
|
const n = /\/{2,9}/g, s = e.replace(n, "/").split("/");
|
7868
7868
|
return (e.slice(0, 1) == "/" || e.length === 0) && s.splice(0, 1), e.slice(-1) == "/" && s.splice(s.length - 1, 1), s;
|
7869
7869
|
}
|
@@ -7881,7 +7881,7 @@ let Ni = class Ae extends D {
|
|
7881
7881
|
* @param {Object} opts - options
|
7882
7882
|
*/
|
7883
7883
|
constructor(e, n = {}) {
|
7884
|
-
super(), this.binaryType =
|
7884
|
+
super(), this.binaryType = Cl, this.writeBuffer = [], e && typeof e == "object" && (n = e, e = null), e ? (e = vn(e), n.hostname = e.host, n.secure = e.protocol === "https" || e.protocol === "wss", n.port = e.port, e.query && (n.query = e.query)) : n.host && (n.hostname = vn(n.host).host), Wt(this, n), this.secure = n.secure != null ? n.secure : typeof location < "u" && location.protocol === "https:", n.hostname && !n.port && (n.port = this.secure ? "443" : "80"), this.hostname = n.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = n.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = n.transports || [
|
7885
7885
|
"polling",
|
7886
7886
|
"websocket",
|
7887
7887
|
"webtransport"
|
@@ -7899,7 +7899,7 @@ let Ni = class Ae extends D {
|
|
7899
7899
|
},
|
7900
7900
|
transportOptions: {},
|
7901
7901
|
closeOnBeforeunload: !1
|
7902
|
-
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query =
|
7902
|
+
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Sl(this.opts.query)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingTimeoutTimer = null, typeof addEventListener == "function" && (this.opts.closeOnBeforeunload && (this.beforeunloadEventListener = () => {
|
7903
7903
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
7904
7904
|
}, addEventListener("beforeunload", this.beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this.offlineEventListener = () => {
|
7905
7905
|
this.onClose("transport close", {
|
@@ -7924,7 +7924,7 @@ let Ni = class Ae extends D {
|
|
7924
7924
|
secure: this.secure,
|
7925
7925
|
port: this.port
|
7926
7926
|
}, this.opts.transportOptions[e]);
|
7927
|
-
return new
|
7927
|
+
return new _l[e](s);
|
7928
7928
|
}
|
7929
7929
|
/**
|
7930
7930
|
* Initializes transport to use and starts probe.
|
@@ -8092,7 +8092,7 @@ let Ni = class Ae extends D {
|
|
8092
8092
|
let n = 1;
|
8093
8093
|
for (let s = 0; s < this.writeBuffer.length; s++) {
|
8094
8094
|
const r = this.writeBuffer[s].data;
|
8095
|
-
if (r && (n +=
|
8095
|
+
if (r && (n += yl(r)), s > 0 && n > this.maxPayload)
|
8096
8096
|
return this.writeBuffer.slice(0, s);
|
8097
8097
|
n += 2;
|
8098
8098
|
}
|
@@ -8179,15 +8179,15 @@ let Ni = class Ae extends D {
|
|
8179
8179
|
}
|
8180
8180
|
};
|
8181
8181
|
Ni.protocol = Ti;
|
8182
|
-
function
|
8182
|
+
function Dl(t, e = "", n) {
|
8183
8183
|
let s = t;
|
8184
8184
|
n = n || typeof location < "u" && location, t == null && (t = n.protocol + "//" + n.host), typeof t == "string" && (t.charAt(0) === "/" && (t.charAt(1) === "/" ? t = n.protocol + t : t = n.host + t), /^(https?|wss?):\/\//.test(t) || (typeof n < "u" ? t = n.protocol + "//" + t : t = "https://" + t), s = vn(t)), s.port || (/^(http|ws)$/.test(s.protocol) ? s.port = "80" : /^(http|ws)s$/.test(s.protocol) && (s.port = "443")), s.path = s.path || "/";
|
8185
8185
|
const i = s.host.indexOf(":") !== -1 ? "[" + s.host + "]" : s.host;
|
8186
8186
|
return s.id = s.protocol + "://" + i + ":" + s.port + e, s.href = s.protocol + "://" + i + (n && n.port === s.port ? "" : ":" + s.port), s;
|
8187
8187
|
}
|
8188
|
-
const
|
8188
|
+
const Ll = typeof ArrayBuffer == "function", Fl = (t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t.buffer instanceof ArrayBuffer, _i = Object.prototype.toString, Vl = typeof Blob == "function" || typeof Blob < "u" && _i.call(Blob) === "[object BlobConstructor]", Bl = typeof File == "function" || typeof File < "u" && _i.call(File) === "[object FileConstructor]";
|
8189
8189
|
function Wn(t) {
|
8190
|
-
return
|
8190
|
+
return Ll && (t instanceof ArrayBuffer || Fl(t)) || Vl && t instanceof Blob || Bl && t instanceof File;
|
8191
8191
|
}
|
8192
8192
|
function Ot(t, e) {
|
8193
8193
|
if (!t || typeof t != "object")
|
@@ -8207,7 +8207,7 @@ function Ot(t, e) {
|
|
8207
8207
|
return !0;
|
8208
8208
|
return !1;
|
8209
8209
|
}
|
8210
|
-
function
|
8210
|
+
function $l(t) {
|
8211
8211
|
const e = [], n = t.data, s = t;
|
8212
8212
|
return s.data = bn(n, e), s.attachments = e.length, { packet: s, buffers: e };
|
8213
8213
|
}
|
@@ -8230,7 +8230,7 @@ function bn(t, e) {
|
|
8230
8230
|
}
|
8231
8231
|
return t;
|
8232
8232
|
}
|
8233
|
-
function
|
8233
|
+
function Ul(t, e) {
|
8234
8234
|
return t.data = Tn(t.data, e), delete t.attachments, t;
|
8235
8235
|
}
|
8236
8236
|
function Tn(t, e) {
|
@@ -8248,7 +8248,7 @@ function Tn(t, e) {
|
|
8248
8248
|
Object.prototype.hasOwnProperty.call(t, n) && (t[n] = Tn(t[n], e));
|
8249
8249
|
return t;
|
8250
8250
|
}
|
8251
|
-
const
|
8251
|
+
const Pl = [
|
8252
8252
|
"connect",
|
8253
8253
|
"connect_error",
|
8254
8254
|
"disconnect",
|
@@ -8256,12 +8256,12 @@ const Ul = [
|
|
8256
8256
|
"newListener",
|
8257
8257
|
"removeListener"
|
8258
8258
|
// used by the Node.js EventEmitter
|
8259
|
-
],
|
8259
|
+
], Wl = 5;
|
8260
8260
|
var T;
|
8261
8261
|
(function(t) {
|
8262
8262
|
t[t.CONNECT = 0] = "CONNECT", t[t.DISCONNECT = 1] = "DISCONNECT", t[t.EVENT = 2] = "EVENT", t[t.ACK = 3] = "ACK", t[t.CONNECT_ERROR = 4] = "CONNECT_ERROR", t[t.BINARY_EVENT = 5] = "BINARY_EVENT", t[t.BINARY_ACK = 6] = "BINARY_ACK";
|
8263
8263
|
})(T || (T = {}));
|
8264
|
-
class
|
8264
|
+
class ql {
|
8265
8265
|
/**
|
8266
8266
|
* Encoder constructor
|
8267
8267
|
*
|
@@ -8297,7 +8297,7 @@ class Wl {
|
|
8297
8297
|
* a list of buffers.
|
8298
8298
|
*/
|
8299
8299
|
encodeAsBinary(e) {
|
8300
|
-
const n =
|
8300
|
+
const n = $l(e), s = this.encodeAsString(n.packet), r = n.buffers;
|
8301
8301
|
return r.unshift(s), r;
|
8302
8302
|
}
|
8303
8303
|
}
|
@@ -8325,7 +8325,7 @@ class qn extends D {
|
|
8325
8325
|
throw new Error("got plaintext data when reconstructing a packet");
|
8326
8326
|
n = this.decodeString(e);
|
8327
8327
|
const s = n.type === T.BINARY_EVENT;
|
8328
|
-
s || n.type === T.BINARY_ACK ? (n.type = s ? T.EVENT : T.ACK, this.reconstructor = new
|
8328
|
+
s || n.type === T.BINARY_ACK ? (n.type = s ? T.EVENT : T.ACK, this.reconstructor = new Hl(n), n.attachments === 0 && super.emitReserved("decoded", n)) : super.emitReserved("decoded", n);
|
8329
8329
|
} else if (Wn(e) || e.base64)
|
8330
8330
|
if (this.reconstructor)
|
8331
8331
|
n = this.reconstructor.takeBinaryData(e), n && (this.reconstructor = null, super.emitReserved("decoded", n));
|
@@ -8403,7 +8403,7 @@ class qn extends D {
|
|
8403
8403
|
return typeof n == "string" || Zs(n);
|
8404
8404
|
case T.EVENT:
|
8405
8405
|
case T.BINARY_EVENT:
|
8406
|
-
return Array.isArray(n) && (typeof n[0] == "number" || typeof n[0] == "string" &&
|
8406
|
+
return Array.isArray(n) && (typeof n[0] == "number" || typeof n[0] == "string" && Pl.indexOf(n[0]) === -1);
|
8407
8407
|
case T.ACK:
|
8408
8408
|
case T.BINARY_ACK:
|
8409
8409
|
return Array.isArray(n);
|
@@ -8416,7 +8416,7 @@ class qn extends D {
|
|
8416
8416
|
this.reconstructor && (this.reconstructor.finishedReconstruction(), this.reconstructor = null);
|
8417
8417
|
}
|
8418
8418
|
}
|
8419
|
-
class
|
8419
|
+
class Hl {
|
8420
8420
|
constructor(e) {
|
8421
8421
|
this.packet = e, this.buffers = [], this.reconPack = e;
|
8422
8422
|
}
|
@@ -8430,7 +8430,7 @@ class ql {
|
|
8430
8430
|
*/
|
8431
8431
|
takeBinaryData(e) {
|
8432
8432
|
if (this.buffers.push(e), this.buffers.length === this.reconPack.attachments) {
|
8433
|
-
const n =
|
8433
|
+
const n = Ul(this.reconPack, this.buffers);
|
8434
8434
|
return this.finishedReconstruction(), n;
|
8435
8435
|
}
|
8436
8436
|
return null;
|
@@ -8442,21 +8442,21 @@ class ql {
|
|
8442
8442
|
this.reconPack = null, this.buffers = [];
|
8443
8443
|
}
|
8444
8444
|
}
|
8445
|
-
const
|
8445
|
+
const zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8446
8446
|
__proto__: null,
|
8447
8447
|
Decoder: qn,
|
8448
|
-
Encoder:
|
8448
|
+
Encoder: ql,
|
8449
8449
|
get PacketType() {
|
8450
8450
|
return T;
|
8451
8451
|
},
|
8452
|
-
protocol:
|
8452
|
+
protocol: Wl
|
8453
8453
|
}, Symbol.toStringTag, { value: "Module" }));
|
8454
8454
|
function se(t, e, n) {
|
8455
8455
|
return t.on(e, n), function() {
|
8456
8456
|
t.off(e, n);
|
8457
8457
|
};
|
8458
8458
|
}
|
8459
|
-
const
|
8459
|
+
const Zl = Object.freeze({
|
8460
8460
|
connect: 1,
|
8461
8461
|
connect_error: 1,
|
8462
8462
|
disconnect: 1,
|
@@ -8580,7 +8580,7 @@ class Ai extends D {
|
|
8580
8580
|
* @return self
|
8581
8581
|
*/
|
8582
8582
|
emit(e, ...n) {
|
8583
|
-
if (
|
8583
|
+
if (Zl.hasOwnProperty(e))
|
8584
8584
|
throw new Error('"' + e.toString() + '" is a reserved event name');
|
8585
8585
|
if (n.unshift(e), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
|
8586
8586
|
return this._addToQueue(n), this;
|
@@ -9073,7 +9073,7 @@ class kn extends D {
|
|
9073
9073
|
max: this.reconnectionDelayMax(),
|
9074
9074
|
jitter: this.randomizationFactor()
|
9075
9075
|
}), this.timeout(n.timeout == null ? 2e4 : n.timeout), this._readyState = "closed", this.uri = e;
|
9076
|
-
const r = n.parser ||
|
9076
|
+
const r = n.parser || zl;
|
9077
9077
|
this.encoder = new r.Encoder(), this.decoder = new r.Decoder(), this._autoConnect = n.autoConnect !== !1, this._autoConnect && this.open();
|
9078
9078
|
}
|
9079
9079
|
reconnection(e) {
|
@@ -9294,7 +9294,7 @@ class kn extends D {
|
|
9294
9294
|
const Ze = {};
|
9295
9295
|
function Ct(t, e) {
|
9296
9296
|
typeof t == "object" && (e = t, t = void 0), e = e || {};
|
9297
|
-
const n =
|
9297
|
+
const n = Dl(t, e.path || "/socket.io"), s = n.source, r = n.id, i = n.path, o = Ze[r] && i in Ze[r].nsps, a = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
|
9298
9298
|
let c;
|
9299
9299
|
return a ? c = new kn(s, e) : (Ze[r] || (Ze[r] = new kn(s, e)), c = Ze[r]), n.query && !e.query && (e.query = n.queryKey), c.socket(n.path, e);
|
9300
9300
|
}
|
@@ -9305,13 +9305,13 @@ Object.assign(Ct, {
|
|
9305
9305
|
connect: Ct
|
9306
9306
|
});
|
9307
9307
|
var Mi = /* @__PURE__ */ ((t) => (t.WEBCHAT = "webchat", t.CENTRAL = "central", t.WHATSAPP = "whatsapp", t.TELEGRAM = "telegram", t.SMS = "sms", t))(Mi || {});
|
9308
|
-
const
|
9308
|
+
const jl = { class: "widget" }, Yl = { class: "header-widget" }, Jl = { class: "title-chat" }, Gl = {
|
9309
9309
|
key: 0,
|
9310
9310
|
class: "loader"
|
9311
|
-
},
|
9311
|
+
}, Kl = { class: "w-full" }, Xl = ["onSubmit"], Ql = { class: "form-message" }, ef = { class: "jl-inputgroup-chat" }, tf = ["onKeyup"], nf = {
|
9312
9312
|
type: "submit",
|
9313
9313
|
class: "pointer btn-primary"
|
9314
|
-
},
|
9314
|
+
}, sf = 14, rf = /* @__PURE__ */ On({
|
9315
9315
|
__name: "Chat",
|
9316
9316
|
props: {
|
9317
9317
|
titlePrincipal: {
|
@@ -9367,8 +9367,8 @@ const Zl = { class: "widget" }, jl = { class: "header-widget" }, Yl = { class: "
|
|
9367
9367
|
return;
|
9368
9368
|
}
|
9369
9369
|
const O = {
|
9370
|
-
id:
|
9371
|
-
chatId: (z = ($ =
|
9370
|
+
id: Ji(),
|
9371
|
+
chatId: (z = ($ = I.value) == null ? void 0 : $.chat) == null ? void 0 : z.id,
|
9372
9372
|
message: s.value,
|
9373
9373
|
visto: !0,
|
9374
9374
|
multimedia: !1,
|
@@ -9384,23 +9384,29 @@ const Zl = { class: "widget" }, jl = { class: "header-widget" }, Yl = { class: "
|
|
9384
9384
|
}, B = i.value.data.push(O) - 1;
|
9385
9385
|
l(s.value, o.value).then((Z) => {
|
9386
9386
|
var Oe;
|
9387
|
-
|
9388
|
-
|
9389
|
-
|
9390
|
-
|
9391
|
-
|
9392
|
-
|
9393
|
-
|
9394
|
-
|
9395
|
-
|
9396
|
-
|
9397
|
-
|
9398
|
-
|
9399
|
-
|
9400
|
-
|
9401
|
-
|
9387
|
+
if (!Z)
|
9388
|
+
i.value.data[B].error = {
|
9389
|
+
error: !0,
|
9390
|
+
id: O.id
|
9391
|
+
}, e("show-toast", {
|
9392
|
+
severity: "error",
|
9393
|
+
summary: "Error",
|
9394
|
+
detail: "Ocurrio un error al enviar el mensaje, intente nuevamente",
|
9395
|
+
life: 5e3
|
9396
|
+
});
|
9397
|
+
else {
|
9398
|
+
i.value.data[B] = Z;
|
9399
|
+
const Ii = { ...Z, chaId: O.chatId };
|
9400
|
+
x.value.emit(
|
9401
|
+
"sendMessage",
|
9402
|
+
{ roomId: (Oe = I == null ? void 0 : I.value) == null ? void 0 : Oe.appChat.id, message: Ii },
|
9403
|
+
(Ri) => {
|
9404
|
+
console.log("🚀 ~ socketService.value.emit ~ response:", Ri);
|
9405
|
+
}
|
9406
|
+
);
|
9407
|
+
}
|
9402
9408
|
}), s.value = "", d(), y.value && (y.value.style.height = "20px");
|
9403
|
-
}, l = async (b, O) =>
|
9409
|
+
}, l = async (b, O) => Ea({
|
9404
9410
|
esCliente: !0,
|
9405
9411
|
message: b,
|
9406
9412
|
appChatId: O
|
@@ -9412,7 +9418,7 @@ const Zl = { class: "widget" }, jl = { class: "header-widget" }, Yl = { class: "
|
|
9412
9418
|
limit: 10
|
9413
9419
|
};
|
9414
9420
|
a.value = !0;
|
9415
|
-
const B = await
|
9421
|
+
const B = await ka({ body: O, token: n.tokenAuth });
|
9416
9422
|
a.value = !1, i.value.data.unshift(
|
9417
9423
|
...B.data.sort((Z, Oe) => -Oe.createdAt.localeCompare(Z.createdAt))
|
9418
9424
|
), i.value.canLoadMoreMessages = B.pagination.total > B.pagination.size, b && (($ = c.value) != null && $.scrollHeight) && m((z = c.value) == null ? void 0 : z.scrollHeight), b || d();
|
@@ -9429,14 +9435,14 @@ const Zl = { class: "widget" }, jl = { class: "header-widget" }, Yl = { class: "
|
|
9429
9435
|
life: 5e3
|
9430
9436
|
});
|
9431
9437
|
else {
|
9432
|
-
const $ =
|
9438
|
+
const $ = sl(
|
9433
9439
|
i.value.data,
|
9434
9440
|
"id",
|
9435
9441
|
b.error.id
|
9436
9442
|
);
|
9437
9443
|
i.value.data[$] = { ...O, error: void 0 }, x.value.emit(
|
9438
9444
|
"sendMessage",
|
9439
|
-
{ roomId: (j =
|
9445
|
+
{ roomId: (j = I == null ? void 0 : I.value) == null ? void 0 : j.appChat.id, message: b }
|
9440
9446
|
);
|
9441
9447
|
}
|
9442
9448
|
d();
|
@@ -9452,9 +9458,9 @@ const Zl = { class: "widget" }, jl = { class: "header-widget" }, Yl = { class: "
|
|
9452
9458
|
});
|
9453
9459
|
}, y = q();
|
9454
9460
|
function _() {
|
9455
|
-
y.value && (y.value.style.height = y.value.scrollHeight -
|
9461
|
+
y.value && (y.value.style.height = y.value.scrollHeight - sf + "px", y.value.scrollHeight !== y.value.clientHeight && (y.value.style.height = y.value.scrollHeight + "px"));
|
9456
9462
|
}
|
9457
|
-
const x = q(),
|
9463
|
+
const x = q(), I = q();
|
9458
9464
|
function fe(b, O = Mi.WEBCHAT) {
|
9459
9465
|
var B, j;
|
9460
9466
|
if (!b) throw new Error("user chat is required");
|
@@ -9481,17 +9487,17 @@ const Zl = { class: "widget" }, jl = { class: "header-widget" }, Yl = { class: "
|
|
9481
9487
|
return Js(async () => {
|
9482
9488
|
if (o.value) return;
|
9483
9489
|
const b = await is(n.tokenAuth);
|
9484
|
-
b && (
|
9485
|
-
}),
|
9490
|
+
b && (I.value = b, o.value = b.appChat.id, r.value = b.appChat.totalNoVistosCliente, fe(b), h(), e("not-viewed-total", b.appChat.totalNoVistosCliente));
|
9491
|
+
}), Pi(() => {
|
9486
9492
|
x.value.off();
|
9487
|
-
}), (b, O) => (L(), V("div",
|
9488
|
-
w("div",
|
9489
|
-
w("h4",
|
9493
|
+
}), (b, O) => (L(), V("div", jl, [
|
9494
|
+
w("div", Yl, [
|
9495
|
+
w("h4", Jl, Ge(t.titlePrincipal), 1),
|
9490
9496
|
w("button", {
|
9491
9497
|
onClick: O[0] || (O[0] = () => t.toggleChat()),
|
9492
9498
|
class: "btn-close"
|
9493
9499
|
}, [
|
9494
|
-
he(
|
9500
|
+
he(no, { class: "pointer" })
|
9495
9501
|
])
|
9496
9502
|
]),
|
9497
9503
|
w("div", {
|
@@ -9499,23 +9505,23 @@ const Zl = { class: "widget" }, jl = { class: "header-widget" }, Yl = { class: "
|
|
9499
9505
|
ref_key: "messageContainerRef",
|
9500
9506
|
ref: c
|
9501
9507
|
}, [
|
9502
|
-
a.value ? (L(), V("div",
|
9503
|
-
he(
|
9508
|
+
a.value ? (L(), V("div", Gl, [
|
9509
|
+
he(nl)
|
9504
9510
|
])) : xt("", !0),
|
9505
|
-
he(
|
9511
|
+
he(Ju, {
|
9506
9512
|
messages: i.value.data,
|
9507
9513
|
canLoadMoreMessages: i.value.canLoadMoreMessages,
|
9508
9514
|
onLoadMore: h,
|
9509
9515
|
onRetry: g
|
9510
9516
|
}, null, 8, ["messages", "canLoadMoreMessages"])
|
9511
9517
|
], 512),
|
9512
|
-
w("div",
|
9518
|
+
w("div", Kl, [
|
9513
9519
|
w("form", {
|
9514
9520
|
class: "message-send",
|
9515
9521
|
onSubmit: qt(u, ["prevent"])
|
9516
9522
|
}, [
|
9517
|
-
w("div",
|
9518
|
-
w("div",
|
9523
|
+
w("div", Ql, [
|
9524
|
+
w("div", ef, [
|
9519
9525
|
an(w("textarea", {
|
9520
9526
|
"onUpdate:modelValue": O[1] || (O[1] = (B) => s.value = B),
|
9521
9527
|
class: "jl2-input-chat",
|
@@ -9526,37 +9532,37 @@ const Zl = { class: "widget" }, jl = { class: "header-widget" }, Yl = { class: "
|
|
9526
9532
|
onKeydown: O[3] || (O[3] = Zn(qt(() => {
|
9527
9533
|
}, ["prevent"]), ["enter"])),
|
9528
9534
|
onKeyup: Zn(qt(u, ["prevent"]), ["enter"])
|
9529
|
-
}, null, 40,
|
9530
|
-
[
|
9535
|
+
}, null, 40, tf), [
|
9536
|
+
[Wi, s.value]
|
9531
9537
|
]),
|
9532
|
-
w("button",
|
9533
|
-
he(
|
9538
|
+
w("button", nf, [
|
9539
|
+
he(co, { style: { width: "20px", height: "20px" } })
|
9534
9540
|
])
|
9535
9541
|
])
|
9536
9542
|
])
|
9537
|
-
], 40,
|
9543
|
+
], 40, Xl)
|
9538
9544
|
])
|
9539
9545
|
]));
|
9540
9546
|
}
|
9541
|
-
}),
|
9547
|
+
}), of = /* @__PURE__ */ oe(rf, [["__scopeId", "data-v-0a7d2dff"]]), af = {}, cf = {
|
9542
9548
|
width: "87",
|
9543
9549
|
height: "87",
|
9544
9550
|
viewBox: "0 0 87 87",
|
9545
9551
|
fill: "none",
|
9546
9552
|
xmlns: "http://www.w3.org/2000/svg"
|
9547
|
-
},
|
9548
|
-
|
9553
|
+
}, uf = /* @__PURE__ */ qi('<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), lf = [
|
9554
|
+
uf
|
9549
9555
|
];
|
9550
|
-
function
|
9551
|
-
return L(), V("svg",
|
9556
|
+
function ff(t, e) {
|
9557
|
+
return L(), V("svg", cf, lf);
|
9552
9558
|
}
|
9553
|
-
const
|
9559
|
+
const hf = /* @__PURE__ */ oe(af, [["render", ff]]), df = {}, mf = {
|
9554
9560
|
viewBox: "0 0 256 256",
|
9555
9561
|
version: "1.1",
|
9556
9562
|
xmlns: "http://www.w3.org/2000/svg",
|
9557
9563
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
9558
9564
|
preserveAspectRatio: "xMidYMid"
|
9559
|
-
},
|
9565
|
+
}, pf = /* @__PURE__ */ w("g", null, [
|
9560
9566
|
/* @__PURE__ */ w("path", {
|
9561
9567
|
d: "M128,0 C57.307,0 0,57.307 0,128 L0,128 C0,198.693 57.307,256 128,256 L128,256 C198.693,256 256,198.693 256,128 L256,128 C256,57.307 198.693,0 128,0 L128,0 Z",
|
9562
9568
|
fill: "#40B3E0"
|
@@ -9573,20 +9579,20 @@ const ff = /* @__PURE__ */ oe(of, [["render", lf]]), hf = {}, df = {
|
|
9573
9579
|
d: "M122.9015,168.1154 L102.0335,187.1414 C102.0335,187.1414 100.4025,188.3794 98.6175,187.6034 L102.6135,152.2624",
|
9574
9580
|
fill: "#B5CFE4"
|
9575
9581
|
})
|
9576
|
-
], -1),
|
9577
|
-
|
9582
|
+
], -1), yf = [
|
9583
|
+
pf
|
9578
9584
|
];
|
9579
|
-
function
|
9580
|
-
return L(), V("svg",
|
9585
|
+
function gf(t, e) {
|
9586
|
+
return L(), V("svg", mf, yf);
|
9581
9587
|
}
|
9582
|
-
const
|
9588
|
+
const wf = /* @__PURE__ */ oe(df, [["render", gf]]), Sf = {}, vf = {
|
9583
9589
|
version: "1.1",
|
9584
9590
|
id: "Capa_1",
|
9585
9591
|
xmlns: "http://www.w3.org/2000/svg",
|
9586
9592
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
9587
9593
|
viewBox: "0 0 455.731 455.731",
|
9588
9594
|
"xml:space": "preserve"
|
9589
|
-
},
|
9595
|
+
}, bf = /* @__PURE__ */ w("g", null, [
|
9590
9596
|
/* @__PURE__ */ w("rect", {
|
9591
9597
|
x: "0",
|
9592
9598
|
y: "0",
|
@@ -9613,20 +9619,20 @@ const gf = /* @__PURE__ */ oe(hf, [["render", yf]]), wf = {}, Sf = {
|
|
9613
9619
|
c1.338-1.547,1.676-3.722,0.872-5.602l-15.046-35.201C187.187,154.774,185.392,153.518,183.359,153.407z`
|
9614
9620
|
})
|
9615
9621
|
])
|
9616
|
-
], -1),
|
9617
|
-
|
9622
|
+
], -1), Tf = [
|
9623
|
+
bf
|
9618
9624
|
];
|
9619
|
-
function
|
9620
|
-
return L(), V("svg",
|
9625
|
+
function kf(t, e) {
|
9626
|
+
return L(), V("svg", vf, Tf);
|
9621
9627
|
}
|
9622
|
-
const
|
9628
|
+
const Ef = /* @__PURE__ */ oe(Sf, [["render", kf]]), Of = {}, Cf = {
|
9623
9629
|
version: "1.1",
|
9624
9630
|
id: "Capa_1",
|
9625
9631
|
xmlns: "http://www.w3.org/2000/svg",
|
9626
9632
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
9627
9633
|
viewBox: "-10 -10 78 78",
|
9628
9634
|
"xml:space": "preserve"
|
9629
|
-
},
|
9635
|
+
}, xf = /* @__PURE__ */ w("g", null, [
|
9630
9636
|
/* @__PURE__ */ w("path", {
|
9631
9637
|
style: { fill: "orange" },
|
9632
9638
|
d: `M29,1.5c-16.016,0-29,11.641-29,26c0,5.292,1.768,10.211,4.796,14.318
|
@@ -9652,19 +9658,19 @@ const kf = /* @__PURE__ */ oe(wf, [["render", Tf]]), Ef = {}, Of = {
|
|
9652
9658
|
cy: "27.5",
|
9653
9659
|
r: "3"
|
9654
9660
|
})
|
9655
|
-
], -1),
|
9656
|
-
|
9661
|
+
], -1), Nf = [
|
9662
|
+
xf
|
9657
9663
|
];
|
9658
|
-
function
|
9659
|
-
return L(), V("svg",
|
9664
|
+
function _f(t, e) {
|
9665
|
+
return L(), V("svg", Cf, Nf);
|
9660
9666
|
}
|
9661
|
-
const
|
9667
|
+
const Af = /* @__PURE__ */ oe(Of, [["render", _f]]), Mf = {
|
9662
9668
|
id: "chat-circle",
|
9663
9669
|
class: "widget-container"
|
9664
|
-
},
|
9670
|
+
}, If = {
|
9665
9671
|
key: 0,
|
9666
9672
|
class: "new-message-badge"
|
9667
|
-
}, Rf = { class: "chat-box" },
|
9673
|
+
}, Rf = { class: "chat-box" }, Df = /* @__PURE__ */ On({
|
9668
9674
|
__name: "Widget",
|
9669
9675
|
props: {
|
9670
9676
|
tokenAuth: { type: String, required: !0 },
|
@@ -9700,11 +9706,11 @@ const _f = /* @__PURE__ */ oe(Ef, [["render", Nf]]), Af = {
|
|
9700
9706
|
r.value = !r.value;
|
9701
9707
|
};
|
9702
9708
|
return (c, u) => (L(), V("div", {
|
9703
|
-
class:
|
9709
|
+
class: Ie(["widget-css-reset widget-container", t.isDarkMode ? "chat-dark-mode" : ""])
|
9704
9710
|
}, [
|
9705
|
-
an(w("div",
|
9711
|
+
an(w("div", Mf, [
|
9706
9712
|
w("div", {
|
9707
|
-
class:
|
9713
|
+
class: Ie(["container-buttons-chat", { active: o.value }])
|
9708
9714
|
}, [
|
9709
9715
|
w("a", {
|
9710
9716
|
href: "javascript:;",
|
@@ -9714,7 +9720,7 @@ const _f = /* @__PURE__ */ oe(Ef, [["render", Nf]]), Af = {
|
|
9714
9720
|
/* WHATSAPP */
|
9715
9721
|
))
|
9716
9722
|
}, [
|
9717
|
-
he(
|
9723
|
+
he(Ef)
|
9718
9724
|
]),
|
9719
9725
|
w("a", {
|
9720
9726
|
href: "javascript:;",
|
@@ -9724,29 +9730,29 @@ const _f = /* @__PURE__ */ oe(Ef, [["render", Nf]]), Af = {
|
|
9724
9730
|
/* TELEGRAM */
|
9725
9731
|
))
|
9726
9732
|
}, [
|
9727
|
-
he(
|
9733
|
+
he(wf)
|
9728
9734
|
]),
|
9729
9735
|
w("a", {
|
9730
9736
|
href: "javascript:;",
|
9731
|
-
class:
|
9737
|
+
class: Ie(["button webchat", { disabled: n.tokenAuth.length < 10 }]),
|
9732
9738
|
title: "Debe estar autenticado",
|
9733
9739
|
onClick: u[2] || (u[2] = (l) => o.value && n.tokenAuth.length > 10 && a())
|
9734
9740
|
}, [
|
9735
|
-
he(
|
9741
|
+
he(Af)
|
9736
9742
|
], 2)
|
9737
9743
|
], 2),
|
9738
|
-
i.value ? (L(), V("div",
|
9744
|
+
i.value ? (L(), V("div", If, Ge(i.value > 9 ? "9+" : i.value), 1)) : xt("", !0),
|
9739
9745
|
w("a", {
|
9740
9746
|
href: "javascript:;",
|
9741
9747
|
onClick: u[3] || (u[3] = (l) => o.value = !o.value)
|
9742
9748
|
}, [
|
9743
|
-
he(
|
9749
|
+
he(hf)
|
9744
9750
|
])
|
9745
9751
|
], 512), [
|
9746
9752
|
[jn, !r.value]
|
9747
9753
|
]),
|
9748
9754
|
an(w("div", Rf, [
|
9749
|
-
t.tokenAuth ? (L(),
|
9755
|
+
t.tokenAuth ? (L(), Hi(of, {
|
9750
9756
|
key: 0,
|
9751
9757
|
visible: r.value,
|
9752
9758
|
titlePrincipal: t.titlePrincipal,
|
@@ -9764,12 +9770,12 @@ const _f = /* @__PURE__ */ oe(Ef, [["render", Nf]]), Af = {
|
|
9764
9770
|
])
|
9765
9771
|
], 2));
|
9766
9772
|
}
|
9767
|
-
}),
|
9773
|
+
}), Ff = /* @__PURE__ */ oe(Df, [["__scopeId", "data-v-e2e1f135"]]), Vf = {
|
9768
9774
|
install(t, e) {
|
9769
9775
|
window.VITE_BACKEND_URL = e.VITE_BACKEND_URL, window.VITE_SOCKET_URI = e.VITE_SOCKET_URI, window.VITE_CELLPHONE_NUMBERS = e.VITE_CELLPHONE_NUMBERS;
|
9770
9776
|
}
|
9771
9777
|
};
|
9772
9778
|
export {
|
9773
|
-
|
9774
|
-
|
9779
|
+
Ff as Widget,
|
9780
|
+
Vf as default
|
9775
9781
|
};
|