vue-wiguet-chatweb 0.1.38 → 0.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +886 -887
- package/dist/vue-wiguet-chatweb.umd.cjs +10 -10
- package/package.json +1 -1
- package/src/components/Chat.vue +5 -8
@@ -1,16 +1,16 @@
|
|
1
|
-
import { createElementBlock as I, openBlock as A, createElementVNode as b, unref as
|
2
|
-
let
|
1
|
+
import { createElementBlock as I, openBlock as A, createElementVNode as b, unref as Fe, getCurrentScope as vo, onScopeDispose as bo, computed as ts, ref as U, watch as ns, getCurrentInstance as To, onMounted as ss, defineComponent as en, onBeforeMount as So, Fragment as dt, renderList as Fn, normalizeClass as Ve, createCommentVNode as ke, createVNode as le, toDisplayString as Ye, createBlock as rs, Teleport as ko, withModifiers as Ce, renderSlot as Eo, nextTick as ot, reactive as Oo, onUnmounted as _o, withDirectives as jt, withKeys as Ot, vModelText as Ss, normalizeProps as Co, guardReactiveProps as xo, withCtx as No, createStaticVNode as Ao, vShow as ks } from "vue";
|
2
|
+
let _t;
|
3
3
|
const Ro = new Uint8Array(16);
|
4
4
|
function Io() {
|
5
|
-
if (!
|
5
|
+
if (!_t && (_t = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !_t))
|
6
6
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
7
|
-
return
|
7
|
+
return _t(Ro);
|
8
8
|
}
|
9
|
-
const
|
9
|
+
const Y = [];
|
10
10
|
for (let t = 0; t < 256; ++t)
|
11
|
-
|
11
|
+
Y.push((t + 256).toString(16).slice(1));
|
12
12
|
function Mo(t, e = 0) {
|
13
|
-
return
|
13
|
+
return Y[t[e + 0]] + Y[t[e + 1]] + Y[t[e + 2]] + Y[t[e + 3]] + "-" + Y[t[e + 4]] + Y[t[e + 5]] + "-" + Y[t[e + 6]] + Y[t[e + 7]] + "-" + Y[t[e + 8]] + Y[t[e + 9]] + "-" + Y[t[e + 10]] + Y[t[e + 11]] + Y[t[e + 12]] + Y[t[e + 13]] + Y[t[e + 14]] + Y[t[e + 15]];
|
14
14
|
}
|
15
15
|
const Do = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Es = {
|
16
16
|
randomUUID: Do
|
@@ -65,33 +65,33 @@ function xr(t, e) {
|
|
65
65
|
return t.apply(e, arguments);
|
66
66
|
};
|
67
67
|
}
|
68
|
-
const { toString: qo } = Object.prototype, { getPrototypeOf:
|
68
|
+
const { toString: qo } = Object.prototype, { getPrototypeOf: is } = Object, tn = /* @__PURE__ */ ((t) => (e) => {
|
69
69
|
const n = qo.call(e);
|
70
70
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
71
|
-
})(/* @__PURE__ */ Object.create(null)), we = (t) => (t = t.toLowerCase(), (e) =>
|
71
|
+
})(/* @__PURE__ */ Object.create(null)), we = (t) => (t = t.toLowerCase(), (e) => tn(e) === t), nn = (t) => (e) => typeof e === t, { isArray: Xe } = Array, pt = nn("undefined");
|
72
72
|
function Wo(t) {
|
73
|
-
return t !== null && !
|
73
|
+
return t !== null && !pt(t) && t.constructor !== null && !pt(t.constructor) && se(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
74
74
|
}
|
75
75
|
const Nr = we("ArrayBuffer");
|
76
76
|
function zo(t) {
|
77
77
|
let e;
|
78
78
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Nr(t.buffer), e;
|
79
79
|
}
|
80
|
-
const Ho =
|
81
|
-
if (
|
80
|
+
const Ho = nn("string"), se = nn("function"), Ar = nn("number"), sn = (t) => t !== null && typeof t == "object", Zo = (t) => t === !0 || t === !1, Lt = (t) => {
|
81
|
+
if (tn(t) !== "object")
|
82
82
|
return !1;
|
83
|
-
const e =
|
83
|
+
const e = is(t);
|
84
84
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
85
|
-
}, jo = we("Date"), Yo = we("File"), Jo = we("Blob"), Go = we("FileList"), Ko = (t) =>
|
85
|
+
}, jo = we("Date"), Yo = we("File"), Jo = we("Blob"), Go = we("FileList"), Ko = (t) => sn(t) && se(t.pipe), Qo = (t) => {
|
86
86
|
let e;
|
87
|
-
return t && (typeof FormData == "function" && t instanceof FormData || se(t.append) && ((e =
|
87
|
+
return t && (typeof FormData == "function" && t instanceof FormData || se(t.append) && ((e = tn(t)) === "formdata" || // detect form-data instance
|
88
88
|
e === "object" && se(t.toString) && t.toString() === "[object FormData]"));
|
89
89
|
}, Xo = we("URLSearchParams"), [e2, t2, n2, s2] = ["ReadableStream", "Request", "Response", "Headers"].map(we), r2 = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
90
|
-
function
|
90
|
+
function gt(t, e, { allOwnKeys: n = !1 } = {}) {
|
91
91
|
if (t === null || typeof t > "u")
|
92
92
|
return;
|
93
93
|
let s, r;
|
94
|
-
if (typeof t != "object" && (t = [t]),
|
94
|
+
if (typeof t != "object" && (t = [t]), Xe(t))
|
95
95
|
for (s = 0, r = t.length; s < r; s++)
|
96
96
|
e.call(null, t[s], s, t);
|
97
97
|
else {
|
@@ -110,17 +110,17 @@ function Rr(t, e) {
|
|
110
110
|
return r;
|
111
111
|
return null;
|
112
112
|
}
|
113
|
-
const
|
114
|
-
function
|
113
|
+
const Be = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ir = (t) => !pt(t) && t !== Be;
|
114
|
+
function Vn() {
|
115
115
|
const { caseless: t } = Ir(this) && this || {}, e = {}, n = (s, r) => {
|
116
116
|
const i = t && Rr(e, r) || r;
|
117
|
-
|
117
|
+
Lt(e[i]) && Lt(s) ? e[i] = Vn(e[i], s) : Lt(s) ? e[i] = Vn({}, s) : Xe(s) ? e[i] = s.slice() : e[i] = s;
|
118
118
|
};
|
119
119
|
for (let s = 0, r = arguments.length; s < r; s++)
|
120
|
-
arguments[s] &&
|
120
|
+
arguments[s] && gt(arguments[s], n);
|
121
121
|
return e;
|
122
122
|
}
|
123
|
-
const i2 = (t, e, n, { allOwnKeys: s } = {}) => (
|
123
|
+
const i2 = (t, e, n, { allOwnKeys: s } = {}) => (gt(e, (r, i) => {
|
124
124
|
n && se(r) ? t[i] = xr(r, n) : t[i] = r;
|
125
125
|
}, { allOwnKeys: s }), t), o2 = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), a2 = (t, e, n, s) => {
|
126
126
|
t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
@@ -133,7 +133,7 @@ const i2 = (t, e, n, { allOwnKeys: s } = {}) => (vt(e, (r, i) => {
|
|
133
133
|
do {
|
134
134
|
for (r = Object.getOwnPropertyNames(t), i = r.length; i-- > 0; )
|
135
135
|
o = r[i], (!s || s(o, t, e)) && !a[o] && (e[o] = t[o], a[o] = !0);
|
136
|
-
t = n !== !1 &&
|
136
|
+
t = n !== !1 && is(t);
|
137
137
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
138
138
|
return e;
|
139
139
|
}, u2 = (t, e, n) => {
|
@@ -142,14 +142,14 @@ const i2 = (t, e, n, { allOwnKeys: s } = {}) => (vt(e, (r, i) => {
|
|
142
142
|
return s !== -1 && s === n;
|
143
143
|
}, c2 = (t) => {
|
144
144
|
if (!t) return null;
|
145
|
-
if (
|
145
|
+
if (Xe(t)) return t;
|
146
146
|
let e = t.length;
|
147
147
|
if (!Ar(e)) return null;
|
148
148
|
const n = new Array(e);
|
149
149
|
for (; e-- > 0; )
|
150
150
|
n[e] = t[e];
|
151
151
|
return n;
|
152
|
-
}, f2 = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
152
|
+
}, f2 = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && is(Uint8Array)), h2 = (t, e) => {
|
153
153
|
const s = (t && t[Symbol.iterator]).call(t);
|
154
154
|
let r;
|
155
155
|
for (; (r = s.next()) && !r.done; ) {
|
@@ -169,7 +169,7 @@ const i2 = (t, e, n, { allOwnKeys: s } = {}) => (vt(e, (r, i) => {
|
|
169
169
|
}
|
170
170
|
), _s = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), y2 = we("RegExp"), Mr = (t, e) => {
|
171
171
|
const n = Object.getOwnPropertyDescriptors(t), s = {};
|
172
|
-
|
172
|
+
gt(n, (r, i) => {
|
173
173
|
let o;
|
174
174
|
(o = e(r, i, t)) !== !1 && (s[i] = o || r);
|
175
175
|
}), Object.defineProperties(t, s);
|
@@ -194,12 +194,12 @@ const i2 = (t, e, n, { allOwnKeys: s } = {}) => (vt(e, (r, i) => {
|
|
194
194
|
n[i] = !0;
|
195
195
|
});
|
196
196
|
};
|
197
|
-
return
|
197
|
+
return Xe(t) ? s(t) : s(String(t).split(e)), n;
|
198
198
|
}, v2 = () => {
|
199
|
-
}, b2 = (t, e) => t != null && Number.isFinite(t = +t) ? t : e,
|
199
|
+
}, b2 = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, vn = "abcdefghijklmnopqrstuvwxyz", Cs = "0123456789", Dr = {
|
200
200
|
DIGIT: Cs,
|
201
|
-
ALPHA:
|
202
|
-
ALPHA_DIGIT:
|
201
|
+
ALPHA: vn,
|
202
|
+
ALPHA_DIGIT: vn + vn.toUpperCase() + Cs
|
203
203
|
}, T2 = (t = 16, e = Dr.ALPHA_DIGIT) => {
|
204
204
|
let n = "";
|
205
205
|
const { length: s } = e;
|
@@ -212,30 +212,30 @@ function S2(t) {
|
|
212
212
|
}
|
213
213
|
const k2 = (t) => {
|
214
214
|
const e = new Array(10), n = (s, r) => {
|
215
|
-
if (
|
215
|
+
if (sn(s)) {
|
216
216
|
if (e.indexOf(s) >= 0)
|
217
217
|
return;
|
218
218
|
if (!("toJSON" in s)) {
|
219
219
|
e[r] = s;
|
220
|
-
const i =
|
221
|
-
return
|
220
|
+
const i = Xe(s) ? [] : {};
|
221
|
+
return gt(s, (o, a) => {
|
222
222
|
const l = n(o, r + 1);
|
223
|
-
!
|
223
|
+
!pt(l) && (i[a] = l);
|
224
224
|
}), e[r] = void 0, i;
|
225
225
|
}
|
226
226
|
}
|
227
227
|
return s;
|
228
228
|
};
|
229
229
|
return n(t, 0);
|
230
|
-
}, E2 = we("AsyncFunction"), O2 = (t) => t && (
|
231
|
-
r ===
|
230
|
+
}, E2 = we("AsyncFunction"), O2 = (t) => t && (sn(t) || se(t)) && se(t.then) && se(t.catch), Lr = ((t, e) => t ? setImmediate : e ? ((n, s) => (Be.addEventListener("message", ({ source: r, data: i }) => {
|
231
|
+
r === Be && i === n && s.length && s.shift()();
|
232
232
|
}, !1), (r) => {
|
233
|
-
s.push(r),
|
233
|
+
s.push(r), Be.postMessage(n, "*");
|
234
234
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
235
235
|
typeof setImmediate == "function",
|
236
|
-
se(
|
237
|
-
), _2 = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
238
|
-
isArray:
|
236
|
+
se(Be.postMessage)
|
237
|
+
), _2 = typeof queueMicrotask < "u" ? queueMicrotask.bind(Be) : typeof process < "u" && process.nextTick || Lr, h = {
|
238
|
+
isArray: Xe,
|
239
239
|
isArrayBuffer: Nr,
|
240
240
|
isBuffer: Wo,
|
241
241
|
isFormData: Qo,
|
@@ -243,13 +243,13 @@ const k2 = (t) => {
|
|
243
243
|
isString: Ho,
|
244
244
|
isNumber: Ar,
|
245
245
|
isBoolean: Zo,
|
246
|
-
isObject:
|
247
|
-
isPlainObject:
|
246
|
+
isObject: sn,
|
247
|
+
isPlainObject: Lt,
|
248
248
|
isReadableStream: e2,
|
249
249
|
isRequest: t2,
|
250
250
|
isResponse: n2,
|
251
251
|
isHeaders: s2,
|
252
|
-
isUndefined:
|
252
|
+
isUndefined: pt,
|
253
253
|
isDate: jo,
|
254
254
|
isFile: Yo,
|
255
255
|
isBlob: Jo,
|
@@ -259,14 +259,14 @@ const k2 = (t) => {
|
|
259
259
|
isURLSearchParams: Xo,
|
260
260
|
isTypedArray: f2,
|
261
261
|
isFileList: Go,
|
262
|
-
forEach:
|
263
|
-
merge:
|
262
|
+
forEach: gt,
|
263
|
+
merge: Vn,
|
264
264
|
extend: i2,
|
265
265
|
trim: r2,
|
266
266
|
stripBOM: o2,
|
267
267
|
inherits: a2,
|
268
268
|
toFlatObject: l2,
|
269
|
-
kindOf:
|
269
|
+
kindOf: tn,
|
270
270
|
kindOfTest: we,
|
271
271
|
endsWith: u2,
|
272
272
|
toArray: c2,
|
@@ -283,7 +283,7 @@ const k2 = (t) => {
|
|
283
283
|
noop: v2,
|
284
284
|
toFiniteNumber: b2,
|
285
285
|
findKey: Rr,
|
286
|
-
global:
|
286
|
+
global: Be,
|
287
287
|
isContextDefined: Ir,
|
288
288
|
ALPHABET: Dr,
|
289
289
|
generateString: T2,
|
@@ -345,7 +345,7 @@ _.from = (t, e, n, s, r, i) => {
|
|
345
345
|
}, (a) => a !== "isAxiosError"), _.call(o, t.message, e, n, s, r), o.cause = t, o.name = t.name, i && Object.assign(o, i), o;
|
346
346
|
};
|
347
347
|
const C2 = null;
|
348
|
-
function
|
348
|
+
function Bn(t) {
|
349
349
|
return h.isPlainObject(t) || h.isArray(t);
|
350
350
|
}
|
351
351
|
function Br(t) {
|
@@ -357,12 +357,12 @@ function xs(t, e, n) {
|
|
357
357
|
}).join(n ? "." : "") : e;
|
358
358
|
}
|
359
359
|
function x2(t) {
|
360
|
-
return h.isArray(t) && !t.some(
|
360
|
+
return h.isArray(t) && !t.some(Bn);
|
361
361
|
}
|
362
362
|
const N2 = h.toFlatObject(h, {}, null, function(e) {
|
363
363
|
return /^is[A-Z]/.test(e);
|
364
364
|
});
|
365
|
-
function
|
365
|
+
function rn(t, e, n) {
|
366
366
|
if (!h.isObject(t))
|
367
367
|
throw new TypeError("target must be an object");
|
368
368
|
e = e || new FormData(), n = h.toFlatObject(n, {
|
@@ -389,33 +389,33 @@ function on(t, e, n) {
|
|
389
389
|
if (h.endsWith(S, "{}"))
|
390
390
|
S = s ? S : S.slice(0, -2), d = JSON.stringify(d);
|
391
391
|
else if (h.isArray(d) && x2(d) || (h.isFileList(d) || h.endsWith(S, "[]")) && (O = h.toArray(d)))
|
392
|
-
return S = Br(S), O.forEach(function(V,
|
392
|
+
return S = Br(S), O.forEach(function(V, te) {
|
393
393
|
!(h.isUndefined(V) || V === null) && e.append(
|
394
394
|
// eslint-disable-next-line no-nested-ternary
|
395
|
-
o === !0 ? xs([S],
|
395
|
+
o === !0 ? xs([S], te, i) : o === null ? S : S + "[]",
|
396
396
|
u(V)
|
397
397
|
);
|
398
398
|
}), !1;
|
399
399
|
}
|
400
|
-
return
|
400
|
+
return Bn(d) ? !0 : (e.append(xs(w, S, i), u(d)), !1);
|
401
401
|
}
|
402
402
|
const f = [], g = Object.assign(N2, {
|
403
403
|
defaultVisitor: c,
|
404
404
|
convertValue: u,
|
405
|
-
isVisitable:
|
405
|
+
isVisitable: Bn
|
406
406
|
});
|
407
407
|
function y(d, S) {
|
408
408
|
if (!h.isUndefined(d)) {
|
409
409
|
if (f.indexOf(d) !== -1)
|
410
410
|
throw Error("Circular reference detected in " + S.join("."));
|
411
|
-
f.push(d), h.forEach(d, function(O,
|
411
|
+
f.push(d), h.forEach(d, function(O, C) {
|
412
412
|
(!(h.isUndefined(O) || O === null) && r.call(
|
413
413
|
e,
|
414
414
|
O,
|
415
|
-
h.isString(
|
415
|
+
h.isString(C) ? C.trim() : C,
|
416
416
|
S,
|
417
417
|
g
|
418
|
-
)) === !0 && y(O, S ? S.concat(
|
418
|
+
)) === !0 && y(O, S ? S.concat(C) : [C]);
|
419
419
|
}), f.pop();
|
420
420
|
}
|
421
421
|
}
|
@@ -437,10 +437,10 @@ function Ns(t) {
|
|
437
437
|
return e[s];
|
438
438
|
});
|
439
439
|
}
|
440
|
-
function
|
441
|
-
this._pairs = [], t &&
|
440
|
+
function os(t, e) {
|
441
|
+
this._pairs = [], t && rn(t, this, e);
|
442
442
|
}
|
443
|
-
const Ur =
|
443
|
+
const Ur = os.prototype;
|
444
444
|
Ur.append = function(e, n) {
|
445
445
|
this._pairs.push([e, n]);
|
446
446
|
};
|
@@ -464,7 +464,7 @@ function $r(t, e, n) {
|
|
464
464
|
});
|
465
465
|
const r = n && n.serialize;
|
466
466
|
let i;
|
467
|
-
if (r ? i = r(e, n) : i = h.isURLSearchParams(e) ? e.toString() : new
|
467
|
+
if (r ? i = r(e, n) : i = h.isURLSearchParams(e) ? e.toString() : new os(e, n).toString(s), i) {
|
468
468
|
const o = t.indexOf("#");
|
469
469
|
o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
|
470
470
|
}
|
@@ -528,7 +528,7 @@ const Pr = {
|
|
528
528
|
silentJSONParsing: !0,
|
529
529
|
forcedJSONParsing: !0,
|
530
530
|
clarifyTimeoutError: !1
|
531
|
-
}, R2 = typeof URLSearchParams < "u" ? URLSearchParams :
|
531
|
+
}, R2 = typeof URLSearchParams < "u" ? URLSearchParams : os, I2 = typeof FormData < "u" ? FormData : null, M2 = typeof Blob < "u" ? Blob : null, D2 = {
|
532
532
|
isBrowser: !0,
|
533
533
|
classes: {
|
534
534
|
URLSearchParams: R2,
|
@@ -536,22 +536,22 @@ const Pr = {
|
|
536
536
|
Blob: M2
|
537
537
|
},
|
538
538
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
539
|
-
},
|
540
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", V2 =
|
539
|
+
}, as = typeof window < "u" && typeof document < "u", Un = typeof navigator == "object" && navigator || void 0, L2 = as && (!Un || ["ReactNative", "NativeScript", "NS"].indexOf(Un.product) < 0), F2 = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
540
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", V2 = as && window.location.href || "http://localhost", B2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
541
541
|
__proto__: null,
|
542
|
-
hasBrowserEnv:
|
542
|
+
hasBrowserEnv: as,
|
543
543
|
hasStandardBrowserEnv: L2,
|
544
544
|
hasStandardBrowserWebWorkerEnv: F2,
|
545
|
-
navigator:
|
545
|
+
navigator: Un,
|
546
546
|
origin: V2
|
547
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
547
|
+
}, Symbol.toStringTag, { value: "Module" })), G = {
|
548
548
|
...B2,
|
549
549
|
...D2
|
550
550
|
};
|
551
551
|
function U2(t, e) {
|
552
|
-
return
|
552
|
+
return rn(t, new G.classes.URLSearchParams(), Object.assign({
|
553
553
|
visitor: function(n, s, r, i) {
|
554
|
-
return
|
554
|
+
return G.isNode && h.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
555
555
|
}
|
556
556
|
}, e));
|
557
557
|
}
|
@@ -592,7 +592,7 @@ function q2(t, e, n) {
|
|
592
592
|
}
|
593
593
|
return (n || JSON.stringify)(t);
|
594
594
|
}
|
595
|
-
const
|
595
|
+
const wt = {
|
596
596
|
transitional: Pr,
|
597
597
|
adapter: ["xhr", "http", "fetch"],
|
598
598
|
transformRequest: [function(e, n) {
|
@@ -611,7 +611,7 @@ const bt = {
|
|
611
611
|
return U2(e, this.formSerializer).toString();
|
612
612
|
if ((a = h.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
|
613
613
|
const l = this.env && this.env.FormData;
|
614
|
-
return
|
614
|
+
return rn(
|
615
615
|
a ? { "files[]": e } : e,
|
616
616
|
l && new l(),
|
617
617
|
this.formSerializer
|
@@ -621,7 +621,7 @@ const bt = {
|
|
621
621
|
return i || r ? (n.setContentType("application/json", !1), q2(e)) : e;
|
622
622
|
}],
|
623
623
|
transformResponse: [function(e) {
|
624
|
-
const n = this.transitional ||
|
624
|
+
const n = this.transitional || wt.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
|
625
625
|
if (h.isResponse(e) || h.isReadableStream(e))
|
626
626
|
return e;
|
627
627
|
if (e && h.isString(e) && (s && !this.responseType || r)) {
|
@@ -645,8 +645,8 @@ const bt = {
|
|
645
645
|
maxContentLength: -1,
|
646
646
|
maxBodyLength: -1,
|
647
647
|
env: {
|
648
|
-
FormData:
|
649
|
-
Blob:
|
648
|
+
FormData: G.classes.FormData,
|
649
|
+
Blob: G.classes.Blob
|
650
650
|
},
|
651
651
|
validateStatus: function(e) {
|
652
652
|
return e >= 200 && e < 300;
|
@@ -659,7 +659,7 @@ const bt = {
|
|
659
659
|
}
|
660
660
|
};
|
661
661
|
h.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
662
|
-
|
662
|
+
wt.headers[t] = {};
|
663
663
|
});
|
664
664
|
const W2 = h.toObjectSet([
|
665
665
|
"age",
|
@@ -687,11 +687,11 @@ const W2 = h.toObjectSet([
|
|
687
687
|
r = o.indexOf(":"), n = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!n || e[n] && W2[n]) && (n === "set-cookie" ? e[n] ? e[n].push(s) : e[n] = [s] : e[n] = e[n] ? e[n] + ", " + s : s);
|
688
688
|
}), e;
|
689
689
|
}, Rs = Symbol("internals");
|
690
|
-
function
|
690
|
+
function at(t) {
|
691
691
|
return t && String(t).trim().toLowerCase();
|
692
692
|
}
|
693
|
-
function
|
694
|
-
return t === !1 || t == null ? t : h.isArray(t) ? t.map(
|
693
|
+
function Ft(t) {
|
694
|
+
return t === !1 || t == null ? t : h.isArray(t) ? t.map(Ft) : String(t);
|
695
695
|
}
|
696
696
|
function H2(t) {
|
697
697
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
@@ -701,7 +701,7 @@ function H2(t) {
|
|
701
701
|
return e;
|
702
702
|
}
|
703
703
|
const Z2 = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
704
|
-
function
|
704
|
+
function bn(t, e, n, s, r) {
|
705
705
|
if (h.isFunction(s))
|
706
706
|
return s.call(this, e, n);
|
707
707
|
if (r && (e = n), !!h.isString(e)) {
|
@@ -725,18 +725,18 @@ function Y2(t, e) {
|
|
725
725
|
});
|
726
726
|
});
|
727
727
|
}
|
728
|
-
let
|
728
|
+
let ee = class {
|
729
729
|
constructor(e) {
|
730
730
|
e && this.set(e);
|
731
731
|
}
|
732
732
|
set(e, n, s) {
|
733
733
|
const r = this;
|
734
734
|
function i(a, l, u) {
|
735
|
-
const c =
|
735
|
+
const c = at(l);
|
736
736
|
if (!c)
|
737
737
|
throw new Error("header name must be a non-empty string");
|
738
738
|
const f = h.findKey(r, c);
|
739
|
-
(!f || r[f] === void 0 || u === !0 || u === void 0 && r[f] !== !1) && (r[f || l] =
|
739
|
+
(!f || r[f] === void 0 || u === !0 || u === void 0 && r[f] !== !1) && (r[f || l] = Ft(a));
|
740
740
|
}
|
741
741
|
const o = (a, l) => h.forEach(a, (u, c) => i(u, c, l));
|
742
742
|
if (h.isPlainObject(e) || e instanceof this.constructor)
|
@@ -751,7 +751,7 @@ let X = class {
|
|
751
751
|
return this;
|
752
752
|
}
|
753
753
|
get(e, n) {
|
754
|
-
if (e =
|
754
|
+
if (e = at(e), e) {
|
755
755
|
const s = h.findKey(this, e);
|
756
756
|
if (s) {
|
757
757
|
const r = this[s];
|
@@ -768,9 +768,9 @@ let X = class {
|
|
768
768
|
}
|
769
769
|
}
|
770
770
|
has(e, n) {
|
771
|
-
if (e =
|
771
|
+
if (e = at(e), e) {
|
772
772
|
const s = h.findKey(this, e);
|
773
|
-
return !!(s && this[s] !== void 0 && (!n ||
|
773
|
+
return !!(s && this[s] !== void 0 && (!n || bn(this, this[s], s, n)));
|
774
774
|
}
|
775
775
|
return !1;
|
776
776
|
}
|
@@ -778,9 +778,9 @@ let X = class {
|
|
778
778
|
const s = this;
|
779
779
|
let r = !1;
|
780
780
|
function i(o) {
|
781
|
-
if (o =
|
781
|
+
if (o = at(o), o) {
|
782
782
|
const a = h.findKey(s, o);
|
783
|
-
a && (!n ||
|
783
|
+
a && (!n || bn(s, s[a], a, n)) && (delete s[a], r = !0);
|
784
784
|
}
|
785
785
|
}
|
786
786
|
return h.isArray(e) ? e.forEach(i) : i(e), r;
|
@@ -790,7 +790,7 @@ let X = class {
|
|
790
790
|
let s = n.length, r = !1;
|
791
791
|
for (; s--; ) {
|
792
792
|
const i = n[s];
|
793
|
-
(!e ||
|
793
|
+
(!e || bn(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
794
794
|
}
|
795
795
|
return r;
|
796
796
|
}
|
@@ -799,11 +799,11 @@ let X = class {
|
|
799
799
|
return h.forEach(this, (r, i) => {
|
800
800
|
const o = h.findKey(s, i);
|
801
801
|
if (o) {
|
802
|
-
n[o] =
|
802
|
+
n[o] = Ft(r), delete n[i];
|
803
803
|
return;
|
804
804
|
}
|
805
805
|
const a = e ? j2(i) : String(i).trim();
|
806
|
-
a !== i && delete n[i], n[a] =
|
806
|
+
a !== i && delete n[i], n[a] = Ft(r), s[a] = !0;
|
807
807
|
}), this;
|
808
808
|
}
|
809
809
|
concat(...e) {
|
@@ -837,14 +837,14 @@ let X = class {
|
|
837
837
|
accessors: {}
|
838
838
|
}).accessors, r = this.prototype;
|
839
839
|
function i(o) {
|
840
|
-
const a =
|
840
|
+
const a = at(o);
|
841
841
|
s[a] || (Y2(r, o), s[a] = !0);
|
842
842
|
}
|
843
843
|
return h.isArray(e) ? e.forEach(i) : i(e), this;
|
844
844
|
}
|
845
845
|
};
|
846
|
-
|
847
|
-
h.reduceDescriptors(
|
846
|
+
ee.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
847
|
+
h.reduceDescriptors(ee.prototype, ({ value: t }, e) => {
|
848
848
|
let n = e[0].toUpperCase() + e.slice(1);
|
849
849
|
return {
|
850
850
|
get: () => t,
|
@@ -853,9 +853,9 @@ h.reduceDescriptors(X.prototype, ({ value: t }, e) => {
|
|
853
853
|
}
|
854
854
|
};
|
855
855
|
});
|
856
|
-
h.freezeMethods(
|
857
|
-
function
|
858
|
-
const n = this ||
|
856
|
+
h.freezeMethods(ee);
|
857
|
+
function Tn(t, e) {
|
858
|
+
const n = this || wt, s = e || n, r = ee.from(s.headers);
|
859
859
|
let i = s.data;
|
860
860
|
return h.forEach(t, function(a) {
|
861
861
|
i = a.call(n, i, r.normalize(), e ? e.status : void 0);
|
@@ -864,10 +864,10 @@ function Sn(t, e) {
|
|
864
864
|
function Wr(t) {
|
865
865
|
return !!(t && t.__CANCEL__);
|
866
866
|
}
|
867
|
-
function
|
867
|
+
function et(t, e, n) {
|
868
868
|
_.call(this, t ?? "canceled", _.ERR_CANCELED, e, n), this.name = "CanceledError";
|
869
869
|
}
|
870
|
-
h.inherits(
|
870
|
+
h.inherits(et, _, {
|
871
871
|
__CANCEL__: !0
|
872
872
|
});
|
873
873
|
function zr(t, e, n) {
|
@@ -912,7 +912,7 @@ function K2(t, e) {
|
|
912
912
|
}, s - f)));
|
913
913
|
}, () => r && o(r)];
|
914
914
|
}
|
915
|
-
const
|
915
|
+
const Yt = (t, e, n = 3) => {
|
916
916
|
let s = 0;
|
917
917
|
const r = G2(50, 250);
|
918
918
|
return K2((i) => {
|
@@ -938,10 +938,10 @@ const Jt = (t, e, n = 3) => {
|
|
938
938
|
total: t,
|
939
939
|
loaded: s
|
940
940
|
}), e[1]];
|
941
|
-
}, Ms = (t) => (...e) => h.asap(() => t(...e)), Q2 =
|
942
|
-
new URL(
|
943
|
-
|
944
|
-
) : () => !0, X2 =
|
941
|
+
}, Ms = (t) => (...e) => h.asap(() => t(...e)), Q2 = G.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, G.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
942
|
+
new URL(G.origin),
|
943
|
+
G.navigator && /(msie|trident)/i.test(G.navigator.userAgent)
|
944
|
+
) : () => !0, X2 = G.hasStandardBrowserEnv ? (
|
945
945
|
// Standard browser envs support document.cookie
|
946
946
|
{
|
947
947
|
write(t, e, n, s, r, i) {
|
@@ -977,8 +977,8 @@ function ta(t, e) {
|
|
977
977
|
function Hr(t, e) {
|
978
978
|
return t && !ea(e) ? ta(t, e) : e;
|
979
979
|
}
|
980
|
-
const Ds = (t) => t instanceof
|
981
|
-
function
|
980
|
+
const Ds = (t) => t instanceof ee ? { ...t } : t;
|
981
|
+
function Pe(t, e) {
|
982
982
|
e = e || {};
|
983
983
|
const n = {};
|
984
984
|
function s(u, c, f, g) {
|
@@ -1043,22 +1043,22 @@ function qe(t, e) {
|
|
1043
1043
|
}), n;
|
1044
1044
|
}
|
1045
1045
|
const Zr = (t) => {
|
1046
|
-
const e =
|
1046
|
+
const e = Pe({}, t);
|
1047
1047
|
let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: i, headers: o, auth: a } = e;
|
1048
|
-
e.headers = o =
|
1048
|
+
e.headers = o = ee.from(o), e.url = $r(Hr(e.baseURL, e.url), t.params, t.paramsSerializer), a && o.set(
|
1049
1049
|
"Authorization",
|
1050
1050
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
1051
1051
|
);
|
1052
1052
|
let l;
|
1053
1053
|
if (h.isFormData(n)) {
|
1054
|
-
if (
|
1054
|
+
if (G.hasStandardBrowserEnv || G.hasStandardBrowserWebWorkerEnv)
|
1055
1055
|
o.setContentType(void 0);
|
1056
1056
|
else if ((l = o.getContentType()) !== !1) {
|
1057
1057
|
const [u, ...c] = l ? l.split(";").map((f) => f.trim()).filter(Boolean) : [];
|
1058
1058
|
o.setContentType([u || "multipart/form-data", ...c].join("; "));
|
1059
1059
|
}
|
1060
1060
|
}
|
1061
|
-
if (
|
1061
|
+
if (G.hasStandardBrowserEnv && (s && h.isFunction(s) && (s = s(e)), s || s !== !1 && Q2(e.url))) {
|
1062
1062
|
const u = r && i && X2.read(i);
|
1063
1063
|
u && o.set(r, u);
|
1064
1064
|
}
|
@@ -1067,7 +1067,7 @@ const Zr = (t) => {
|
|
1067
1067
|
return new Promise(function(n, s) {
|
1068
1068
|
const r = Zr(t);
|
1069
1069
|
let i = r.data;
|
1070
|
-
const o =
|
1070
|
+
const o = ee.from(r.headers).normalize();
|
1071
1071
|
let { responseType: a, onUploadProgress: l, onDownloadProgress: u } = r, c, f, g, y, d;
|
1072
1072
|
function S() {
|
1073
1073
|
y && y(), d && d(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
|
@@ -1077,7 +1077,7 @@ const Zr = (t) => {
|
|
1077
1077
|
function O() {
|
1078
1078
|
if (!w)
|
1079
1079
|
return;
|
1080
|
-
const V =
|
1080
|
+
const V = ee.from(
|
1081
1081
|
"getAllResponseHeaders" in w && w.getAllResponseHeaders()
|
1082
1082
|
), $ = {
|
1083
1083
|
data: !a || a === "text" || a === "json" ? w.responseText : w.response,
|
@@ -1100,22 +1100,22 @@ const Zr = (t) => {
|
|
1100
1100
|
}, w.onerror = function() {
|
1101
1101
|
s(new _("Network Error", _.ERR_NETWORK, t, w)), w = null;
|
1102
1102
|
}, w.ontimeout = function() {
|
1103
|
-
let
|
1103
|
+
let te = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
1104
1104
|
const $ = r.transitional || Pr;
|
1105
|
-
r.timeoutErrorMessage && (
|
1106
|
-
|
1105
|
+
r.timeoutErrorMessage && (te = r.timeoutErrorMessage), s(new _(
|
1106
|
+
te,
|
1107
1107
|
$.clarifyTimeoutError ? _.ETIMEDOUT : _.ECONNABORTED,
|
1108
1108
|
t,
|
1109
1109
|
w
|
1110
1110
|
)), w = null;
|
1111
|
-
}, i === void 0 && o.setContentType(null), "setRequestHeader" in w && h.forEach(o.toJSON(), function(
|
1112
|
-
w.setRequestHeader($,
|
1113
|
-
}), h.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), a && a !== "json" && (w.responseType = r.responseType), u && ([g, d] =
|
1114
|
-
w && (s(!V || V.type ? new
|
1111
|
+
}, i === void 0 && o.setContentType(null), "setRequestHeader" in w && h.forEach(o.toJSON(), function(te, $) {
|
1112
|
+
w.setRequestHeader($, te);
|
1113
|
+
}), h.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), a && a !== "json" && (w.responseType = r.responseType), u && ([g, d] = Yt(u, !0), w.addEventListener("progress", g)), l && w.upload && ([f, y] = Yt(l), w.upload.addEventListener("progress", f), w.upload.addEventListener("loadend", y)), (r.cancelToken || r.signal) && (c = (V) => {
|
1114
|
+
w && (s(!V || V.type ? new et(null, t, w) : V), w.abort(), w = null);
|
1115
1115
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
1116
|
-
const
|
1117
|
-
if (
|
1118
|
-
s(new _("Unsupported protocol " +
|
1116
|
+
const C = J2(r.url);
|
1117
|
+
if (C && G.protocols.indexOf(C) === -1) {
|
1118
|
+
s(new _("Unsupported protocol " + C + ":", _.ERR_BAD_REQUEST, t));
|
1119
1119
|
return;
|
1120
1120
|
}
|
1121
1121
|
w.send(i || null);
|
@@ -1128,7 +1128,7 @@ const Zr = (t) => {
|
|
1128
1128
|
if (!r) {
|
1129
1129
|
r = !0, a();
|
1130
1130
|
const c = u instanceof Error ? u : this.reason;
|
1131
|
-
s.abort(c instanceof _ ? c : new
|
1131
|
+
s.abort(c instanceof _ ? c : new et(c instanceof Error ? c.message : c));
|
1132
1132
|
}
|
1133
1133
|
};
|
1134
1134
|
let o = e && setTimeout(() => {
|
@@ -1200,7 +1200,7 @@ const Zr = (t) => {
|
|
1200
1200
|
}, {
|
1201
1201
|
highWaterMark: 2
|
1202
1202
|
});
|
1203
|
-
},
|
1203
|
+
}, on = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", jr = on && typeof ReadableStream == "function", la = on && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), Yr = (t, ...e) => {
|
1204
1204
|
try {
|
1205
1205
|
return !!t(...e);
|
1206
1206
|
} catch {
|
@@ -1208,7 +1208,7 @@ const Zr = (t) => {
|
|
1208
1208
|
}
|
1209
1209
|
}, ua = jr && Yr(() => {
|
1210
1210
|
let t = !1;
|
1211
|
-
const e = new Request(
|
1211
|
+
const e = new Request(G.origin, {
|
1212
1212
|
body: new ReadableStream(),
|
1213
1213
|
method: "POST",
|
1214
1214
|
get duplex() {
|
@@ -1216,12 +1216,12 @@ const Zr = (t) => {
|
|
1216
1216
|
}
|
1217
1217
|
}).headers.has("Content-Type");
|
1218
1218
|
return t && !e;
|
1219
|
-
}), Fs = 64 * 1024,
|
1220
|
-
stream:
|
1219
|
+
}), Fs = 64 * 1024, $n = jr && Yr(() => h.isReadableStream(new Response("").body)), Jt = {
|
1220
|
+
stream: $n && ((t) => t.body)
|
1221
1221
|
};
|
1222
|
-
|
1222
|
+
on && ((t) => {
|
1223
1223
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
1224
|
-
!
|
1224
|
+
!Jt[e] && (Jt[e] = h.isFunction(t[e]) ? (n) => n[e]() : (n, s) => {
|
1225
1225
|
throw new _(`Response type '${e}' is not supported`, _.ERR_NOT_SUPPORT, s);
|
1226
1226
|
});
|
1227
1227
|
});
|
@@ -1232,7 +1232,7 @@ const ca = async (t) => {
|
|
1232
1232
|
if (h.isBlob(t))
|
1233
1233
|
return t.size;
|
1234
1234
|
if (h.isSpecCompliantForm(t))
|
1235
|
-
return (await new Request(
|
1235
|
+
return (await new Request(G.origin, {
|
1236
1236
|
method: "POST",
|
1237
1237
|
body: t
|
1238
1238
|
}).arrayBuffer()).byteLength;
|
@@ -1243,7 +1243,7 @@ const ca = async (t) => {
|
|
1243
1243
|
}, fa = async (t, e) => {
|
1244
1244
|
const n = h.toFiniteNumber(t.getContentLength());
|
1245
1245
|
return n ?? ca(e);
|
1246
|
-
}, ha =
|
1246
|
+
}, ha = on && (async (t) => {
|
1247
1247
|
let {
|
1248
1248
|
url: e,
|
1249
1249
|
method: n,
|
@@ -1274,7 +1274,7 @@ const ca = async (t) => {
|
|
1274
1274
|
if (h.isFormData(s) && (oe = $.headers.get("content-type")) && c.setContentType(oe), $.body) {
|
1275
1275
|
const [B, he] = Is(
|
1276
1276
|
w,
|
1277
|
-
|
1277
|
+
Yt(Ms(l))
|
1278
1278
|
);
|
1279
1279
|
s = Ls($.body, Fs, B, he);
|
1280
1280
|
}
|
@@ -1290,32 +1290,32 @@ const ca = async (t) => {
|
|
1290
1290
|
duplex: "half",
|
1291
1291
|
credentials: O ? f : void 0
|
1292
1292
|
});
|
1293
|
-
let
|
1294
|
-
const V =
|
1295
|
-
if (
|
1293
|
+
let C = await fetch(d);
|
1294
|
+
const V = $n && (u === "stream" || u === "response");
|
1295
|
+
if ($n && (a || V && S)) {
|
1296
1296
|
const $ = {};
|
1297
1297
|
["status", "statusText", "headers"].forEach((Z) => {
|
1298
|
-
$[Z] =
|
1298
|
+
$[Z] = C[Z];
|
1299
1299
|
});
|
1300
|
-
const oe = h.toFiniteNumber(
|
1300
|
+
const oe = h.toFiniteNumber(C.headers.get("content-length")), [B, he] = a && Is(
|
1301
1301
|
oe,
|
1302
|
-
|
1302
|
+
Yt(Ms(a), !0)
|
1303
1303
|
) || [];
|
1304
|
-
|
1305
|
-
Ls(
|
1304
|
+
C = new Response(
|
1305
|
+
Ls(C.body, Fs, B, () => {
|
1306
1306
|
he && he(), S && S();
|
1307
1307
|
}),
|
1308
1308
|
$
|
1309
1309
|
);
|
1310
1310
|
}
|
1311
1311
|
u = u || "text";
|
1312
|
-
let
|
1312
|
+
let te = await Jt[h.findKey(Jt, u) || "text"](C, t);
|
1313
1313
|
return !V && S && S(), await new Promise(($, oe) => {
|
1314
1314
|
zr($, oe, {
|
1315
|
-
data:
|
1316
|
-
headers:
|
1317
|
-
status:
|
1318
|
-
statusText:
|
1315
|
+
data: te,
|
1316
|
+
headers: ee.from(C.headers),
|
1317
|
+
status: C.status,
|
1318
|
+
statusText: C.statusText,
|
1319
1319
|
config: t,
|
1320
1320
|
request: d
|
1321
1321
|
});
|
@@ -1328,12 +1328,12 @@ const ca = async (t) => {
|
|
1328
1328
|
}
|
1329
1329
|
) : _.from(O, O && O.code, t, d);
|
1330
1330
|
}
|
1331
|
-
}),
|
1331
|
+
}), Pn = {
|
1332
1332
|
http: C2,
|
1333
1333
|
xhr: sa,
|
1334
1334
|
fetch: ha
|
1335
1335
|
};
|
1336
|
-
h.forEach(
|
1336
|
+
h.forEach(Pn, (t, e) => {
|
1337
1337
|
if (t) {
|
1338
1338
|
try {
|
1339
1339
|
Object.defineProperty(t, "name", { value: e });
|
@@ -1351,7 +1351,7 @@ const Vs = (t) => `- ${t}`, da = (t) => h.isFunction(t) || t === null || t === !
|
|
1351
1351
|
for (let i = 0; i < e; i++) {
|
1352
1352
|
n = t[i];
|
1353
1353
|
let o;
|
1354
|
-
if (s = n, !da(n) && (s =
|
1354
|
+
if (s = n, !da(n) && (s = Pn[(o = String(n)).toLowerCase()], s === void 0))
|
1355
1355
|
throw new _(`Unknown adapter '${o}'`);
|
1356
1356
|
if (s)
|
1357
1357
|
break;
|
@@ -1371,38 +1371,38 @@ const Vs = (t) => `- ${t}`, da = (t) => h.isFunction(t) || t === null || t === !
|
|
1371
1371
|
}
|
1372
1372
|
return s;
|
1373
1373
|
},
|
1374
|
-
adapters:
|
1374
|
+
adapters: Pn
|
1375
1375
|
};
|
1376
|
-
function
|
1376
|
+
function Sn(t) {
|
1377
1377
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
1378
|
-
throw new
|
1378
|
+
throw new et(null, t);
|
1379
1379
|
}
|
1380
1380
|
function Bs(t) {
|
1381
|
-
return
|
1381
|
+
return Sn(t), t.headers = ee.from(t.headers), t.data = Tn.call(
|
1382
1382
|
t,
|
1383
1383
|
t.transformRequest
|
1384
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Jr.getAdapter(t.adapter ||
|
1385
|
-
return
|
1384
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Jr.getAdapter(t.adapter || wt.adapter)(t).then(function(s) {
|
1385
|
+
return Sn(t), s.data = Tn.call(
|
1386
1386
|
t,
|
1387
1387
|
t.transformResponse,
|
1388
1388
|
s
|
1389
|
-
), s.headers =
|
1389
|
+
), s.headers = ee.from(s.headers), s;
|
1390
1390
|
}, function(s) {
|
1391
|
-
return Wr(s) || (
|
1391
|
+
return Wr(s) || (Sn(t), s && s.response && (s.response.data = Tn.call(
|
1392
1392
|
t,
|
1393
1393
|
t.transformResponse,
|
1394
1394
|
s.response
|
1395
|
-
), s.response.headers =
|
1395
|
+
), s.response.headers = ee.from(s.response.headers))), Promise.reject(s);
|
1396
1396
|
});
|
1397
1397
|
}
|
1398
|
-
const Gr = "1.7.9",
|
1398
|
+
const Gr = "1.7.9", an = {};
|
1399
1399
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
1400
|
-
|
1400
|
+
an[t] = function(s) {
|
1401
1401
|
return typeof s === t || "a" + (e < 1 ? "n " : " ") + t;
|
1402
1402
|
};
|
1403
1403
|
});
|
1404
1404
|
const Us = {};
|
1405
|
-
|
1405
|
+
an.transitional = function(e, n, s) {
|
1406
1406
|
function r(i, o) {
|
1407
1407
|
return "[Axios v" + Gr + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
|
1408
1408
|
}
|
@@ -1420,7 +1420,7 @@ ln.transitional = function(e, n, s) {
|
|
1420
1420
|
)), e ? e(i, o, a) : !0;
|
1421
1421
|
};
|
1422
1422
|
};
|
1423
|
-
|
1423
|
+
an.spelling = function(e) {
|
1424
1424
|
return (n, s) => (console.warn(`${s} is likely a misspelling of ${e}`), !0);
|
1425
1425
|
};
|
1426
1426
|
function ma(t, e, n) {
|
@@ -1440,11 +1440,11 @@ function ma(t, e, n) {
|
|
1440
1440
|
throw new _("Unknown option " + i, _.ERR_BAD_OPTION);
|
1441
1441
|
}
|
1442
1442
|
}
|
1443
|
-
const
|
1443
|
+
const Vt = {
|
1444
1444
|
assertOptions: ma,
|
1445
|
-
validators:
|
1446
|
-
}, be =
|
1447
|
-
let
|
1445
|
+
validators: an
|
1446
|
+
}, be = Vt.validators;
|
1447
|
+
let $e = class {
|
1448
1448
|
constructor(e) {
|
1449
1449
|
this.defaults = e, this.interceptors = {
|
1450
1450
|
request: new As(),
|
@@ -1477,18 +1477,18 @@ let Pe = class {
|
|
1477
1477
|
}
|
1478
1478
|
}
|
1479
1479
|
_request(e, n) {
|
1480
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
1480
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Pe(this.defaults, n);
|
1481
1481
|
const { transitional: s, paramsSerializer: r, headers: i } = n;
|
1482
|
-
s !== void 0 &&
|
1482
|
+
s !== void 0 && Vt.assertOptions(s, {
|
1483
1483
|
silentJSONParsing: be.transitional(be.boolean),
|
1484
1484
|
forcedJSONParsing: be.transitional(be.boolean),
|
1485
1485
|
clarifyTimeoutError: be.transitional(be.boolean)
|
1486
1486
|
}, !1), r != null && (h.isFunction(r) ? n.paramsSerializer = {
|
1487
1487
|
serialize: r
|
1488
|
-
} :
|
1488
|
+
} : Vt.assertOptions(r, {
|
1489
1489
|
encode: be.function,
|
1490
1490
|
serialize: be.function
|
1491
|
-
}, !0)),
|
1491
|
+
}, !0)), Vt.assertOptions(n, {
|
1492
1492
|
baseUrl: be.spelling("baseURL"),
|
1493
1493
|
withXsrfToken: be.spelling("withXSRFToken")
|
1494
1494
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
@@ -1501,7 +1501,7 @@ let Pe = class {
|
|
1501
1501
|
(d) => {
|
1502
1502
|
delete i[d];
|
1503
1503
|
}
|
1504
|
-
), n.headers =
|
1504
|
+
), n.headers = ee.concat(o, i);
|
1505
1505
|
const a = [];
|
1506
1506
|
let l = !0;
|
1507
1507
|
this.interceptors.request.forEach(function(S) {
|
@@ -1539,14 +1539,14 @@ let Pe = class {
|
|
1539
1539
|
return c;
|
1540
1540
|
}
|
1541
1541
|
getUri(e) {
|
1542
|
-
e =
|
1542
|
+
e = Pe(this.defaults, e);
|
1543
1543
|
const n = Hr(e.baseURL, e.url);
|
1544
1544
|
return $r(n, e.params, e.paramsSerializer);
|
1545
1545
|
}
|
1546
1546
|
};
|
1547
1547
|
h.forEach(["delete", "get", "head", "options"], function(e) {
|
1548
|
-
|
1549
|
-
return this.request(
|
1548
|
+
$e.prototype[e] = function(n, s) {
|
1549
|
+
return this.request(Pe(s || {}, {
|
1550
1550
|
method: e,
|
1551
1551
|
url: n,
|
1552
1552
|
data: (s || {}).data
|
@@ -1556,7 +1556,7 @@ h.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1556
1556
|
h.forEach(["post", "put", "patch"], function(e) {
|
1557
1557
|
function n(s) {
|
1558
1558
|
return function(i, o, a) {
|
1559
|
-
return this.request(
|
1559
|
+
return this.request(Pe(a || {}, {
|
1560
1560
|
method: e,
|
1561
1561
|
headers: s ? {
|
1562
1562
|
"Content-Type": "multipart/form-data"
|
@@ -1566,7 +1566,7 @@ h.forEach(["post", "put", "patch"], function(e) {
|
|
1566
1566
|
}));
|
1567
1567
|
};
|
1568
1568
|
}
|
1569
|
-
|
1569
|
+
$e.prototype[e] = n(), $e.prototype[e + "Form"] = n(!0);
|
1570
1570
|
});
|
1571
1571
|
let pa = class Kr {
|
1572
1572
|
constructor(e) {
|
@@ -1592,7 +1592,7 @@ let pa = class Kr {
|
|
1592
1592
|
s.unsubscribe(i);
|
1593
1593
|
}, o;
|
1594
1594
|
}, e(function(i, o, a) {
|
1595
|
-
s.reason || (s.reason = new
|
1595
|
+
s.reason || (s.reason = new et(i, o, a), n(s.reason));
|
1596
1596
|
});
|
1597
1597
|
}
|
1598
1598
|
/**
|
@@ -1649,7 +1649,7 @@ function ya(t) {
|
|
1649
1649
|
function ga(t) {
|
1650
1650
|
return h.isObject(t) && t.isAxiosError === !0;
|
1651
1651
|
}
|
1652
|
-
const
|
1652
|
+
const qn = {
|
1653
1653
|
Continue: 100,
|
1654
1654
|
SwitchingProtocols: 101,
|
1655
1655
|
Processing: 102,
|
@@ -1714,22 +1714,22 @@ const Wn = {
|
|
1714
1714
|
NotExtended: 510,
|
1715
1715
|
NetworkAuthenticationRequired: 511
|
1716
1716
|
};
|
1717
|
-
Object.entries(
|
1718
|
-
|
1717
|
+
Object.entries(qn).forEach(([t, e]) => {
|
1718
|
+
qn[e] = t;
|
1719
1719
|
});
|
1720
1720
|
function Qr(t) {
|
1721
|
-
const e = new
|
1722
|
-
return h.extend(n,
|
1723
|
-
return Qr(
|
1721
|
+
const e = new $e(t), n = xr($e.prototype.request, e);
|
1722
|
+
return h.extend(n, $e.prototype, e, { allOwnKeys: !0 }), h.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(r) {
|
1723
|
+
return Qr(Pe(t, r));
|
1724
1724
|
}, n;
|
1725
1725
|
}
|
1726
|
-
const W = Qr(
|
1727
|
-
W.Axios =
|
1728
|
-
W.CanceledError =
|
1726
|
+
const W = Qr(wt);
|
1727
|
+
W.Axios = $e;
|
1728
|
+
W.CanceledError = et;
|
1729
1729
|
W.CancelToken = pa;
|
1730
1730
|
W.isCancel = Wr;
|
1731
1731
|
W.VERSION = Gr;
|
1732
|
-
W.toFormData =
|
1732
|
+
W.toFormData = rn;
|
1733
1733
|
W.AxiosError = _;
|
1734
1734
|
W.Cancel = W.CanceledError;
|
1735
1735
|
W.all = function(e) {
|
@@ -1737,11 +1737,11 @@ W.all = function(e) {
|
|
1737
1737
|
};
|
1738
1738
|
W.spread = ya;
|
1739
1739
|
W.isAxiosError = ga;
|
1740
|
-
W.mergeConfig =
|
1741
|
-
W.AxiosHeaders =
|
1740
|
+
W.mergeConfig = Pe;
|
1741
|
+
W.AxiosHeaders = ee;
|
1742
1742
|
W.formToJSON = (t) => qr(h.isHTMLForm(t) ? new FormData(t) : t);
|
1743
1743
|
W.getAdapter = Jr.getAdapter;
|
1744
|
-
W.HttpStatusCode =
|
1744
|
+
W.HttpStatusCode = qn;
|
1745
1745
|
W.default = W;
|
1746
1746
|
const {
|
1747
1747
|
Axios: Xc,
|
@@ -1760,8 +1760,8 @@ const {
|
|
1760
1760
|
formToJSON: h1,
|
1761
1761
|
getAdapter: d1,
|
1762
1762
|
mergeConfig: m1
|
1763
|
-
} = W,
|
1764
|
-
const e = t, n = window.VITE_BACKEND_URL ? window.VITE_BACKEND_URL : "
|
1763
|
+
} = W, ln = async function(t) {
|
1764
|
+
const e = t, n = window.VITE_BACKEND_URL ? window.VITE_BACKEND_URL : "http://127.0.0.1:3000", s = {
|
1765
1765
|
method: e.method,
|
1766
1766
|
url: `${n}${e.url}`,
|
1767
1767
|
headers: {
|
@@ -1789,7 +1789,7 @@ async function wa(t) {
|
|
1789
1789
|
method: "post",
|
1790
1790
|
data: t.body,
|
1791
1791
|
token: t.token
|
1792
|
-
}, n = await
|
1792
|
+
}, n = await ln(e).catch((r) => (console.error(r), null)), s = n == null ? void 0 : n.response;
|
1793
1793
|
return s != null && s.data ? {
|
1794
1794
|
data: s.data,
|
1795
1795
|
pagination: s.pagination
|
@@ -1804,7 +1804,7 @@ async function va(t, e) {
|
|
1804
1804
|
n.append("body", JSON.stringify(t)), s.forEach((a) => {
|
1805
1805
|
n.append("files", a);
|
1806
1806
|
});
|
1807
|
-
const i = await
|
1807
|
+
const i = await ln({
|
1808
1808
|
url: "/v1/message/send-message",
|
1809
1809
|
method: "POST",
|
1810
1810
|
data: n,
|
@@ -1815,7 +1815,7 @@ async function va(t, e) {
|
|
1815
1815
|
}
|
1816
1816
|
async function $s(t) {
|
1817
1817
|
var s;
|
1818
|
-
const n = await
|
1818
|
+
const n = await ln({
|
1819
1819
|
url: "/v1/app-chats/web-chat",
|
1820
1820
|
method: "get",
|
1821
1821
|
token: t
|
@@ -1833,20 +1833,20 @@ async function Ps(t, e) {
|
|
1833
1833
|
method: "PATCH",
|
1834
1834
|
data: n,
|
1835
1835
|
token: e
|
1836
|
-
}, r = await
|
1836
|
+
}, r = await ln(s).catch((o) => (console.error(o), null));
|
1837
1837
|
return (i = r == null ? void 0 : r.response) == null ? void 0 : i.data;
|
1838
1838
|
}
|
1839
1839
|
function ba(t) {
|
1840
1840
|
return vo() ? (bo(t), !0) : !1;
|
1841
1841
|
}
|
1842
1842
|
function Xr(t) {
|
1843
|
-
return typeof t == "function" ? t() :
|
1843
|
+
return typeof t == "function" ? t() : Fe(t);
|
1844
1844
|
}
|
1845
1845
|
const Ta = typeof window < "u" && typeof document < "u";
|
1846
1846
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
1847
|
-
const Sa = (t) => t != null,
|
1847
|
+
const Sa = (t) => t != null, kn = () => {
|
1848
1848
|
};
|
1849
|
-
function
|
1849
|
+
function En(t) {
|
1850
1850
|
var e;
|
1851
1851
|
const n = Xr(t);
|
1852
1852
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
@@ -1854,13 +1854,13 @@ function On(t) {
|
|
1854
1854
|
const ka = Ta ? window : void 0;
|
1855
1855
|
function Ea() {
|
1856
1856
|
const t = U(!1), e = To();
|
1857
|
-
return e &&
|
1857
|
+
return e && ss(() => {
|
1858
1858
|
t.value = !0;
|
1859
1859
|
}, e), t;
|
1860
1860
|
}
|
1861
1861
|
function Oa(t) {
|
1862
1862
|
const e = Ea();
|
1863
|
-
return
|
1863
|
+
return ts(() => (e.value, !!t()));
|
1864
1864
|
}
|
1865
1865
|
function _a(t, e, n = {}) {
|
1866
1866
|
const {
|
@@ -1869,30 +1869,30 @@ function _a(t, e, n = {}) {
|
|
1869
1869
|
threshold: i = 0.1,
|
1870
1870
|
window: o = ka,
|
1871
1871
|
immediate: a = !0
|
1872
|
-
} = n, l = Oa(() => o && "IntersectionObserver" in o), u =
|
1872
|
+
} = n, l = Oa(() => o && "IntersectionObserver" in o), u = ts(() => {
|
1873
1873
|
const d = Xr(t);
|
1874
|
-
return (Array.isArray(d) ? d : [d]).map(
|
1874
|
+
return (Array.isArray(d) ? d : [d]).map(En).filter(Sa);
|
1875
1875
|
});
|
1876
|
-
let c =
|
1877
|
-
const f = U(a), g = l.value ?
|
1878
|
-
() => [u.value,
|
1876
|
+
let c = kn;
|
1877
|
+
const f = U(a), g = l.value ? ns(
|
1878
|
+
() => [u.value, En(s), f.value],
|
1879
1879
|
([d, S]) => {
|
1880
1880
|
if (c(), !f.value || !d.length)
|
1881
1881
|
return;
|
1882
1882
|
const w = new IntersectionObserver(
|
1883
1883
|
e,
|
1884
1884
|
{
|
1885
|
-
root:
|
1885
|
+
root: En(S),
|
1886
1886
|
rootMargin: r,
|
1887
1887
|
threshold: i
|
1888
1888
|
}
|
1889
1889
|
);
|
1890
1890
|
d.forEach((O) => O && w.observe(O)), c = () => {
|
1891
|
-
w.disconnect(), c =
|
1891
|
+
w.disconnect(), c = kn;
|
1892
1892
|
};
|
1893
1893
|
},
|
1894
1894
|
{ immediate: a, flush: "post" }
|
1895
|
-
) :
|
1895
|
+
) : kn, y = () => {
|
1896
1896
|
c(), g(), f.value = !1;
|
1897
1897
|
};
|
1898
1898
|
return ba(y), {
|
@@ -1907,38 +1907,38 @@ function _a(t, e, n = {}) {
|
|
1907
1907
|
stop: y
|
1908
1908
|
};
|
1909
1909
|
}
|
1910
|
-
class
|
1910
|
+
class qe extends Error {
|
1911
1911
|
}
|
1912
|
-
class Ca extends
|
1912
|
+
class Ca extends qe {
|
1913
1913
|
constructor(e) {
|
1914
1914
|
super(`Invalid DateTime: ${e.toMessage()}`);
|
1915
1915
|
}
|
1916
1916
|
}
|
1917
|
-
class xa extends
|
1917
|
+
class xa extends qe {
|
1918
1918
|
constructor(e) {
|
1919
1919
|
super(`Invalid Interval: ${e.toMessage()}`);
|
1920
1920
|
}
|
1921
1921
|
}
|
1922
|
-
class Na extends
|
1922
|
+
class Na extends qe {
|
1923
1923
|
constructor(e) {
|
1924
1924
|
super(`Invalid Duration: ${e.toMessage()}`);
|
1925
1925
|
}
|
1926
1926
|
}
|
1927
|
-
class
|
1927
|
+
class je extends qe {
|
1928
1928
|
}
|
1929
|
-
class ei extends
|
1929
|
+
class ei extends qe {
|
1930
1930
|
constructor(e) {
|
1931
1931
|
super(`Invalid unit ${e}`);
|
1932
1932
|
}
|
1933
1933
|
}
|
1934
|
-
class
|
1934
|
+
class J extends qe {
|
1935
1935
|
}
|
1936
|
-
class
|
1936
|
+
class Oe extends qe {
|
1937
1937
|
constructor() {
|
1938
1938
|
super("Zone is an abstract class");
|
1939
1939
|
}
|
1940
1940
|
}
|
1941
|
-
const v = "numeric", ge = "short", re = "long",
|
1941
|
+
const v = "numeric", ge = "short", re = "long", Gt = {
|
1942
1942
|
year: v,
|
1943
1943
|
month: v,
|
1944
1944
|
day: v
|
@@ -2064,14 +2064,14 @@ const v = "numeric", ge = "short", re = "long", Kt = {
|
|
2064
2064
|
second: v,
|
2065
2065
|
timeZoneName: re
|
2066
2066
|
};
|
2067
|
-
class
|
2067
|
+
class vt {
|
2068
2068
|
/**
|
2069
2069
|
* The type of zone
|
2070
2070
|
* @abstract
|
2071
2071
|
* @type {string}
|
2072
2072
|
*/
|
2073
2073
|
get type() {
|
2074
|
-
throw new
|
2074
|
+
throw new Oe();
|
2075
2075
|
}
|
2076
2076
|
/**
|
2077
2077
|
* The name of this zone.
|
@@ -2079,7 +2079,7 @@ class Tt {
|
|
2079
2079
|
* @type {string}
|
2080
2080
|
*/
|
2081
2081
|
get name() {
|
2082
|
-
throw new
|
2082
|
+
throw new Oe();
|
2083
2083
|
}
|
2084
2084
|
/**
|
2085
2085
|
* The IANA name of this zone.
|
@@ -2096,7 +2096,7 @@ class Tt {
|
|
2096
2096
|
* @type {boolean}
|
2097
2097
|
*/
|
2098
2098
|
get isUniversal() {
|
2099
|
-
throw new
|
2099
|
+
throw new Oe();
|
2100
2100
|
}
|
2101
2101
|
/**
|
2102
2102
|
* Returns the offset's common name (such as EST) at the specified timestamp
|
@@ -2108,7 +2108,7 @@ class Tt {
|
|
2108
2108
|
* @return {string}
|
2109
2109
|
*/
|
2110
2110
|
offsetName(e, n) {
|
2111
|
-
throw new
|
2111
|
+
throw new Oe();
|
2112
2112
|
}
|
2113
2113
|
/**
|
2114
2114
|
* Returns the offset's value as a string
|
@@ -2119,7 +2119,7 @@ class Tt {
|
|
2119
2119
|
* @return {string}
|
2120
2120
|
*/
|
2121
2121
|
formatOffset(e, n) {
|
2122
|
-
throw new
|
2122
|
+
throw new Oe();
|
2123
2123
|
}
|
2124
2124
|
/**
|
2125
2125
|
* Return the offset in minutes for this zone at the specified timestamp.
|
@@ -2128,7 +2128,7 @@ class Tt {
|
|
2128
2128
|
* @return {number}
|
2129
2129
|
*/
|
2130
2130
|
offset(e) {
|
2131
|
-
throw new
|
2131
|
+
throw new Oe();
|
2132
2132
|
}
|
2133
2133
|
/**
|
2134
2134
|
* Return whether this Zone is equal to another zone
|
@@ -2137,7 +2137,7 @@ class Tt {
|
|
2137
2137
|
* @return {boolean}
|
2138
2138
|
*/
|
2139
2139
|
equals(e) {
|
2140
|
-
throw new
|
2140
|
+
throw new Oe();
|
2141
2141
|
}
|
2142
2142
|
/**
|
2143
2143
|
* Return whether this Zone is valid.
|
@@ -2145,17 +2145,17 @@ class Tt {
|
|
2145
2145
|
* @type {boolean}
|
2146
2146
|
*/
|
2147
2147
|
get isValid() {
|
2148
|
-
throw new
|
2148
|
+
throw new Oe();
|
2149
2149
|
}
|
2150
2150
|
}
|
2151
|
-
let
|
2152
|
-
class
|
2151
|
+
let On = null;
|
2152
|
+
class un extends vt {
|
2153
2153
|
/**
|
2154
2154
|
* Get a singleton instance of the local zone
|
2155
2155
|
* @return {SystemZone}
|
2156
2156
|
*/
|
2157
2157
|
static get instance() {
|
2158
|
-
return
|
2158
|
+
return On === null && (On = new un()), On;
|
2159
2159
|
}
|
2160
2160
|
/** @override **/
|
2161
2161
|
get type() {
|
@@ -2175,7 +2175,7 @@ class cn extends Tt {
|
|
2175
2175
|
}
|
2176
2176
|
/** @override **/
|
2177
2177
|
formatOffset(e, n) {
|
2178
|
-
return
|
2178
|
+
return mt(this.offset(e), n);
|
2179
2179
|
}
|
2180
2180
|
/** @override **/
|
2181
2181
|
offset(e) {
|
@@ -2190,9 +2190,9 @@ class cn extends Tt {
|
|
2190
2190
|
return !0;
|
2191
2191
|
}
|
2192
2192
|
}
|
2193
|
-
let
|
2193
|
+
let Bt = {};
|
2194
2194
|
function Ia(t) {
|
2195
|
-
return
|
2195
|
+
return Bt[t] || (Bt[t] = new Intl.DateTimeFormat("en-US", {
|
2196
2196
|
hour12: !1,
|
2197
2197
|
timeZone: t,
|
2198
2198
|
year: "numeric",
|
@@ -2202,7 +2202,7 @@ function Ia(t) {
|
|
2202
2202
|
minute: "2-digit",
|
2203
2203
|
second: "2-digit",
|
2204
2204
|
era: "short"
|
2205
|
-
})),
|
2205
|
+
})), Bt[t];
|
2206
2206
|
}
|
2207
2207
|
const Ma = {
|
2208
2208
|
year: 0,
|
@@ -2225,21 +2225,21 @@ function La(t, e) {
|
|
2225
2225
|
}
|
2226
2226
|
return s;
|
2227
2227
|
}
|
2228
|
-
let
|
2229
|
-
class
|
2228
|
+
let Ct = {};
|
2229
|
+
class Ee extends vt {
|
2230
2230
|
/**
|
2231
2231
|
* @param {string} name - Zone name
|
2232
2232
|
* @return {IANAZone}
|
2233
2233
|
*/
|
2234
2234
|
static create(e) {
|
2235
|
-
return
|
2235
|
+
return Ct[e] || (Ct[e] = new Ee(e)), Ct[e];
|
2236
2236
|
}
|
2237
2237
|
/**
|
2238
2238
|
* Reset local caches. Should only be necessary in testing scenarios.
|
2239
2239
|
* @return {void}
|
2240
2240
|
*/
|
2241
2241
|
static resetCache() {
|
2242
|
-
|
2242
|
+
Ct = {}, Bt = {};
|
2243
2243
|
}
|
2244
2244
|
/**
|
2245
2245
|
* Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.
|
@@ -2270,7 +2270,7 @@ class _e extends Tt {
|
|
2270
2270
|
}
|
2271
2271
|
}
|
2272
2272
|
constructor(e) {
|
2273
|
-
super(), this.zoneName = e, this.valid =
|
2273
|
+
super(), this.zoneName = e, this.valid = Ee.isValidZone(e);
|
2274
2274
|
}
|
2275
2275
|
/**
|
2276
2276
|
* The type of zone. `iana` for all instances of `IANAZone`.
|
@@ -2318,7 +2318,7 @@ class _e extends Tt {
|
|
2318
2318
|
* @return {string}
|
2319
2319
|
*/
|
2320
2320
|
formatOffset(e, n) {
|
2321
|
-
return
|
2321
|
+
return mt(this.offset(e), n);
|
2322
2322
|
}
|
2323
2323
|
/**
|
2324
2324
|
* Return the offset in minutes for this zone at the specified timestamp.
|
@@ -2332,7 +2332,7 @@ class _e extends Tt {
|
|
2332
2332
|
const s = Ia(this.name);
|
2333
2333
|
let [r, i, o, a, l, u, c] = s.formatToParts ? La(s, n) : Da(s, n);
|
2334
2334
|
a === "BC" && (r = -Math.abs(r) + 1);
|
2335
|
-
const g =
|
2335
|
+
const g = fn({
|
2336
2336
|
year: r,
|
2337
2337
|
month: i,
|
2338
2338
|
day: o,
|
@@ -2369,27 +2369,27 @@ function Fa(t, e = {}) {
|
|
2369
2369
|
let s = qs[n];
|
2370
2370
|
return s || (s = new Intl.ListFormat(t, e), qs[n] = s), s;
|
2371
2371
|
}
|
2372
|
-
let
|
2373
|
-
function
|
2372
|
+
let Wn = {};
|
2373
|
+
function zn(t, e = {}) {
|
2374
2374
|
const n = JSON.stringify([t, e]);
|
2375
|
-
let s =
|
2376
|
-
return s || (s = new Intl.DateTimeFormat(t, e),
|
2375
|
+
let s = Wn[n];
|
2376
|
+
return s || (s = new Intl.DateTimeFormat(t, e), Wn[n] = s), s;
|
2377
2377
|
}
|
2378
|
-
let
|
2378
|
+
let Hn = {};
|
2379
2379
|
function Va(t, e = {}) {
|
2380
2380
|
const n = JSON.stringify([t, e]);
|
2381
|
-
let s =
|
2382
|
-
return s || (s = new Intl.NumberFormat(t, e),
|
2381
|
+
let s = Hn[n];
|
2382
|
+
return s || (s = new Intl.NumberFormat(t, e), Hn[n] = s), s;
|
2383
2383
|
}
|
2384
|
-
let
|
2384
|
+
let Zn = {};
|
2385
2385
|
function Ba(t, e = {}) {
|
2386
2386
|
const { base: n, ...s } = e, r = JSON.stringify([t, s]);
|
2387
|
-
let i =
|
2388
|
-
return i || (i = new Intl.RelativeTimeFormat(t, e),
|
2387
|
+
let i = Zn[r];
|
2388
|
+
return i || (i = new Intl.RelativeTimeFormat(t, e), Zn[r] = i), i;
|
2389
2389
|
}
|
2390
|
-
let
|
2390
|
+
let ct = null;
|
2391
2391
|
function Ua() {
|
2392
|
-
return
|
2392
|
+
return ct || (ct = new Intl.DateTimeFormat().resolvedOptions().locale, ct);
|
2393
2393
|
}
|
2394
2394
|
let Ws = {};
|
2395
2395
|
function $a(t) {
|
@@ -2409,10 +2409,10 @@ function Pa(t) {
|
|
2409
2409
|
{
|
2410
2410
|
let s, r;
|
2411
2411
|
try {
|
2412
|
-
s =
|
2412
|
+
s = zn(t).resolvedOptions(), r = t;
|
2413
2413
|
} catch {
|
2414
2414
|
const l = t.substring(0, n);
|
2415
|
-
s =
|
2415
|
+
s = zn(l).resolvedOptions(), r = l;
|
2416
2416
|
}
|
2417
2417
|
const { numberingSystem: i, calendar: o } = s;
|
2418
2418
|
return [r, i, o];
|
@@ -2437,7 +2437,7 @@ function za(t) {
|
|
2437
2437
|
}
|
2438
2438
|
return e;
|
2439
2439
|
}
|
2440
|
-
function
|
2440
|
+
function xt(t, e, n, s) {
|
2441
2441
|
const r = t.listingMode();
|
2442
2442
|
return r === "error" ? null : r === "en" ? n(e) : s(e);
|
2443
2443
|
}
|
@@ -2458,7 +2458,7 @@ class Za {
|
|
2458
2458
|
const n = this.floor ? Math.floor(e) : e;
|
2459
2459
|
return this.inf.format(n);
|
2460
2460
|
} else {
|
2461
|
-
const n = this.floor ? Math.floor(e) :
|
2461
|
+
const n = this.floor ? Math.floor(e) : hs(e, 3);
|
2462
2462
|
return z(n, this.padTo);
|
2463
2463
|
}
|
2464
2464
|
}
|
@@ -2471,10 +2471,10 @@ class ja {
|
|
2471
2471
|
this.dt = e;
|
2472
2472
|
else if (e.zone.type === "fixed") {
|
2473
2473
|
const o = -1 * (e.offset / 60), a = o >= 0 ? `Etc/GMT+${o}` : `Etc/GMT${o}`;
|
2474
|
-
e.offset !== 0 &&
|
2474
|
+
e.offset !== 0 && Ee.create(a).valid ? (r = a, this.dt = e) : (r = "UTC", this.dt = e.offset === 0 ? e : e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
2475
2475
|
} else e.zone.type === "system" ? this.dt = e : e.zone.type === "iana" ? (this.dt = e, r = e.zone.name) : (r = "UTC", this.dt = e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
2476
2476
|
const i = { ...this.opts };
|
2477
|
-
i.timeZone = i.timeZone || r, this.dtf =
|
2477
|
+
i.timeZone = i.timeZone || r, this.dtf = zn(n, i);
|
2478
2478
|
}
|
2479
2479
|
format() {
|
2480
2480
|
return this.originalZone ? this.formatToParts().map(({ value: e }) => e).join("") : this.dtf.format(this.dt.toJSDate());
|
@@ -2526,11 +2526,11 @@ class F {
|
|
2526
2526
|
);
|
2527
2527
|
}
|
2528
2528
|
static create(e, n, s, r, i = !1) {
|
2529
|
-
const o = e || q.defaultLocale, a = o || (i ? "en-US" : Ua()), l = n || q.defaultNumberingSystem, u = s || q.defaultOutputCalendar, c =
|
2529
|
+
const o = e || q.defaultLocale, a = o || (i ? "en-US" : Ua()), l = n || q.defaultNumberingSystem, u = s || q.defaultOutputCalendar, c = jn(r) || q.defaultWeekSettings;
|
2530
2530
|
return new F(a, l, u, c, o);
|
2531
2531
|
}
|
2532
2532
|
static resetCache() {
|
2533
|
-
|
2533
|
+
ct = null, Wn = {}, Hn = {}, Zn = {};
|
2534
2534
|
}
|
2535
2535
|
static fromObject({ locale: e, numberingSystem: n, outputCalendar: s, weekSettings: r } = {}) {
|
2536
2536
|
return F.create(e, n, s, r);
|
@@ -2551,7 +2551,7 @@ class F {
|
|
2551
2551
|
e.locale || this.specifiedLocale,
|
2552
2552
|
e.numberingSystem || this.numberingSystem,
|
2553
2553
|
e.outputCalendar || this.outputCalendar,
|
2554
|
-
|
2554
|
+
jn(e.weekSettings) || this.weekSettings,
|
2555
2555
|
e.defaultToEN || !1
|
2556
2556
|
);
|
2557
2557
|
}
|
@@ -2562,13 +2562,13 @@ class F {
|
|
2562
2562
|
return this.clone({ ...e, defaultToEN: !1 });
|
2563
2563
|
}
|
2564
2564
|
months(e, n = !1) {
|
2565
|
-
return
|
2565
|
+
return xt(this, e, Ri, () => {
|
2566
2566
|
const s = n ? { month: e, day: "numeric" } : { month: e }, r = n ? "format" : "standalone";
|
2567
2567
|
return this.monthsCache[r][e] || (this.monthsCache[r][e] = Wa((i) => this.extract(i, s, "month"))), this.monthsCache[r][e];
|
2568
2568
|
});
|
2569
2569
|
}
|
2570
2570
|
weekdays(e, n = !1) {
|
2571
|
-
return
|
2571
|
+
return xt(this, e, Di, () => {
|
2572
2572
|
const s = n ? { weekday: e, year: "numeric", month: "long", day: "numeric" } : { weekday: e }, r = n ? "format" : "standalone";
|
2573
2573
|
return this.weekdaysCache[r][e] || (this.weekdaysCache[r][e] = za(
|
2574
2574
|
(i) => this.extract(i, s, "weekday")
|
@@ -2576,7 +2576,7 @@ class F {
|
|
2576
2576
|
});
|
2577
2577
|
}
|
2578
2578
|
meridiems() {
|
2579
|
-
return
|
2579
|
+
return xt(
|
2580
2580
|
this,
|
2581
2581
|
void 0,
|
2582
2582
|
() => Li,
|
@@ -2592,7 +2592,7 @@ class F {
|
|
2592
2592
|
);
|
2593
2593
|
}
|
2594
2594
|
eras(e) {
|
2595
|
-
return
|
2595
|
+
return xt(this, e, Fi, () => {
|
2596
2596
|
const n = { era: e };
|
2597
2597
|
return this.eraCache[e] || (this.eraCache[e] = [k.utc(-40, 1, 1), k.utc(2017, 1, 1)].map(
|
2598
2598
|
(s) => this.extract(s, n, "era")
|
@@ -2637,14 +2637,14 @@ class F {
|
|
2637
2637
|
return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;
|
2638
2638
|
}
|
2639
2639
|
}
|
2640
|
-
let
|
2641
|
-
class
|
2640
|
+
let _n = null;
|
2641
|
+
class Q extends vt {
|
2642
2642
|
/**
|
2643
2643
|
* Get a singleton instance of UTC
|
2644
2644
|
* @return {FixedOffsetZone}
|
2645
2645
|
*/
|
2646
2646
|
static get utcInstance() {
|
2647
|
-
return
|
2647
|
+
return _n === null && (_n = new Q(0)), _n;
|
2648
2648
|
}
|
2649
2649
|
/**
|
2650
2650
|
* Get an instance with a specified offset
|
@@ -2652,7 +2652,7 @@ class K extends Tt {
|
|
2652
2652
|
* @return {FixedOffsetZone}
|
2653
2653
|
*/
|
2654
2654
|
static instance(e) {
|
2655
|
-
return e === 0 ?
|
2655
|
+
return e === 0 ? Q.utcInstance : new Q(e);
|
2656
2656
|
}
|
2657
2657
|
/**
|
2658
2658
|
* Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"
|
@@ -2666,7 +2666,7 @@ class K extends Tt {
|
|
2666
2666
|
if (e) {
|
2667
2667
|
const n = e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
|
2668
2668
|
if (n)
|
2669
|
-
return new
|
2669
|
+
return new Q(hn(n[1], n[2]));
|
2670
2670
|
}
|
2671
2671
|
return null;
|
2672
2672
|
}
|
@@ -2688,7 +2688,7 @@ class K extends Tt {
|
|
2688
2688
|
* @type {string}
|
2689
2689
|
*/
|
2690
2690
|
get name() {
|
2691
|
-
return this.fixed === 0 ? "UTC" : `UTC${
|
2691
|
+
return this.fixed === 0 ? "UTC" : `UTC${mt(this.fixed, "narrow")}`;
|
2692
2692
|
}
|
2693
2693
|
/**
|
2694
2694
|
* The IANA name of this zone, i.e. `Etc/UTC` or `Etc/GMT+/-nn`
|
@@ -2697,7 +2697,7 @@ class K extends Tt {
|
|
2697
2697
|
* @type {string}
|
2698
2698
|
*/
|
2699
2699
|
get ianaName() {
|
2700
|
-
return this.fixed === 0 ? "Etc/UTC" : `Etc/GMT${
|
2700
|
+
return this.fixed === 0 ? "Etc/UTC" : `Etc/GMT${mt(-this.fixed, "narrow")}`;
|
2701
2701
|
}
|
2702
2702
|
/**
|
2703
2703
|
* Returns the offset's common name at the specified timestamp.
|
@@ -2717,7 +2717,7 @@ class K extends Tt {
|
|
2717
2717
|
* @return {string}
|
2718
2718
|
*/
|
2719
2719
|
formatOffset(e, n) {
|
2720
|
-
return
|
2720
|
+
return mt(this.fixed, n);
|
2721
2721
|
}
|
2722
2722
|
/**
|
2723
2723
|
* Returns whether the offset is known to be fixed for the whole year:
|
@@ -2757,7 +2757,7 @@ class K extends Tt {
|
|
2757
2757
|
return !0;
|
2758
2758
|
}
|
2759
2759
|
}
|
2760
|
-
class Ga extends
|
2760
|
+
class Ga extends vt {
|
2761
2761
|
constructor(e) {
|
2762
2762
|
super(), this.zoneName = e;
|
2763
2763
|
}
|
@@ -2794,17 +2794,17 @@ class Ga extends Tt {
|
|
2794
2794
|
return !1;
|
2795
2795
|
}
|
2796
2796
|
}
|
2797
|
-
function
|
2797
|
+
function Ne(t, e) {
|
2798
2798
|
if (E(t) || t === null)
|
2799
2799
|
return e;
|
2800
|
-
if (t instanceof
|
2800
|
+
if (t instanceof vt)
|
2801
2801
|
return t;
|
2802
2802
|
if (n0(t)) {
|
2803
2803
|
const n = t.toLowerCase();
|
2804
|
-
return n === "default" ? e : n === "local" || n === "system" ?
|
2805
|
-
} else return
|
2804
|
+
return n === "default" ? e : n === "local" || n === "system" ? un.instance : n === "utc" || n === "gmt" ? Q.utcInstance : Q.parseSpecifier(n) || Ee.create(t);
|
2805
|
+
} else return Ae(t) ? Q.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new Ga(t);
|
2806
2806
|
}
|
2807
|
-
const
|
2807
|
+
const ls = {
|
2808
2808
|
arab: "[٠-٩]",
|
2809
2809
|
arabext: "[۰-۹]",
|
2810
2810
|
bali: "[᭐-᭙]",
|
@@ -2846,14 +2846,14 @@ const us = {
|
|
2846
2846
|
telu: [3174, 3183],
|
2847
2847
|
thai: [3664, 3673],
|
2848
2848
|
tibt: [3872, 3881]
|
2849
|
-
}, Ka =
|
2849
|
+
}, Ka = ls.hanidec.replace(/[\[|\]]/g, "").split("");
|
2850
2850
|
function Qa(t) {
|
2851
2851
|
let e = parseInt(t, 10);
|
2852
2852
|
if (isNaN(e)) {
|
2853
2853
|
e = "";
|
2854
2854
|
for (let n = 0; n < t.length; n++) {
|
2855
2855
|
const s = t.charCodeAt(n);
|
2856
|
-
if (t[n].search(
|
2856
|
+
if (t[n].search(ls.hanidec) !== -1)
|
2857
2857
|
e += Ka.indexOf(t[n]);
|
2858
2858
|
else
|
2859
2859
|
for (const r in zs) {
|
@@ -2865,13 +2865,13 @@ function Qa(t) {
|
|
2865
2865
|
} else
|
2866
2866
|
return e;
|
2867
2867
|
}
|
2868
|
-
let
|
2868
|
+
let Ze = {};
|
2869
2869
|
function Xa() {
|
2870
|
-
|
2870
|
+
Ze = {};
|
2871
2871
|
}
|
2872
2872
|
function de({ numberingSystem: t }, e = "") {
|
2873
2873
|
const n = t || "latn";
|
2874
|
-
return
|
2874
|
+
return Ze[n] || (Ze[n] = {}), Ze[n][e] || (Ze[n][e] = new RegExp(`${ls[n]}${e}`)), Ze[n][e];
|
2875
2875
|
}
|
2876
2876
|
let Hs = () => Date.now(), Zs = "system", js = null, Ys = null, Js = null, Gs = 60, Ks, Qs = null;
|
2877
2877
|
class q {
|
@@ -2906,7 +2906,7 @@ class q {
|
|
2906
2906
|
* @type {Zone}
|
2907
2907
|
*/
|
2908
2908
|
static get defaultZone() {
|
2909
|
-
return
|
2909
|
+
return Ne(Zs, un.instance);
|
2910
2910
|
}
|
2911
2911
|
/**
|
2912
2912
|
* Get the default locale to create DateTimes with. Does not affect existing instances.
|
@@ -2970,7 +2970,7 @@ class q {
|
|
2970
2970
|
* @param {WeekSettings|null} weekSettings
|
2971
2971
|
*/
|
2972
2972
|
static set defaultWeekSettings(e) {
|
2973
|
-
Qs =
|
2973
|
+
Qs = jn(e);
|
2974
2974
|
}
|
2975
2975
|
/**
|
2976
2976
|
* Get the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.
|
@@ -3010,7 +3010,7 @@ class q {
|
|
3010
3010
|
* @return {void}
|
3011
3011
|
*/
|
3012
3012
|
static resetCaches() {
|
3013
|
-
F.resetCache(),
|
3013
|
+
F.resetCache(), Ee.resetCache(), k.resetCache(), Xa();
|
3014
3014
|
}
|
3015
3015
|
}
|
3016
3016
|
class ye {
|
@@ -3028,46 +3028,46 @@ function ce(t, e) {
|
|
3028
3028
|
`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`
|
3029
3029
|
);
|
3030
3030
|
}
|
3031
|
-
function
|
3031
|
+
function us(t, e, n) {
|
3032
3032
|
const s = new Date(Date.UTC(t, e - 1, n));
|
3033
3033
|
t < 100 && t >= 0 && s.setUTCFullYear(s.getUTCFullYear() - 1900);
|
3034
3034
|
const r = s.getUTCDay();
|
3035
3035
|
return r === 0 ? 7 : r;
|
3036
3036
|
}
|
3037
3037
|
function Si(t, e, n) {
|
3038
|
-
return n + (
|
3038
|
+
return n + (bt(t) ? Ti : bi)[e - 1];
|
3039
3039
|
}
|
3040
3040
|
function ki(t, e) {
|
3041
|
-
const n =
|
3041
|
+
const n = bt(t) ? Ti : bi, s = n.findIndex((i) => i < e), r = e - n[s];
|
3042
3042
|
return { month: s + 1, day: r };
|
3043
3043
|
}
|
3044
|
-
function
|
3044
|
+
function cs(t, e) {
|
3045
3045
|
return (t - e + 7) % 7 + 1;
|
3046
3046
|
}
|
3047
|
-
function
|
3048
|
-
const { year: s, month: r, day: i } = t, o = Si(s, r, i), a =
|
3047
|
+
function Kt(t, e = 4, n = 1) {
|
3048
|
+
const { year: s, month: r, day: i } = t, o = Si(s, r, i), a = cs(us(s, r, i), n);
|
3049
3049
|
let l = Math.floor((o - a + 14 - e) / 7), u;
|
3050
|
-
return l < 1 ? (u = s - 1, l =
|
3050
|
+
return l < 1 ? (u = s - 1, l = yt(u, e, n)) : l > yt(s, e, n) ? (u = s + 1, l = 1) : u = s, { weekYear: u, weekNumber: l, weekday: a, ...dn(t) };
|
3051
3051
|
}
|
3052
3052
|
function Xs(t, e = 4, n = 1) {
|
3053
|
-
const { weekYear: s, weekNumber: r, weekday: i } = t, o =
|
3053
|
+
const { weekYear: s, weekNumber: r, weekday: i } = t, o = cs(us(s, 1, e), n), a = Je(s);
|
3054
3054
|
let l = r * 7 + i - o - 7 + e, u;
|
3055
|
-
l < 1 ? (u = s - 1, l +=
|
3055
|
+
l < 1 ? (u = s - 1, l += Je(u)) : l > a ? (u = s + 1, l -= Je(s)) : u = s;
|
3056
3056
|
const { month: c, day: f } = ki(u, l);
|
3057
|
-
return { year: u, month: c, day: f, ...
|
3057
|
+
return { year: u, month: c, day: f, ...dn(t) };
|
3058
3058
|
}
|
3059
|
-
function
|
3059
|
+
function Cn(t) {
|
3060
3060
|
const { year: e, month: n, day: s } = t, r = Si(e, n, s);
|
3061
|
-
return { year: e, ordinal: r, ...
|
3061
|
+
return { year: e, ordinal: r, ...dn(t) };
|
3062
3062
|
}
|
3063
3063
|
function er(t) {
|
3064
3064
|
const { year: e, ordinal: n } = t, { month: s, day: r } = ki(e, n);
|
3065
|
-
return { year: e, month: s, day: r, ...
|
3065
|
+
return { year: e, month: s, day: r, ...dn(t) };
|
3066
3066
|
}
|
3067
3067
|
function tr(t, e) {
|
3068
3068
|
if (!E(t.localWeekday) || !E(t.localWeekNumber) || !E(t.localWeekYear)) {
|
3069
3069
|
if (!E(t.weekday) || !E(t.weekNumber) || !E(t.weekYear))
|
3070
|
-
throw new
|
3070
|
+
throw new je(
|
3071
3071
|
"Cannot mix locale-based week fields with ISO-based week fields"
|
3072
3072
|
);
|
3073
3073
|
return E(t.localWeekday) || (t.weekday = t.localWeekday), E(t.localWeekNumber) || (t.weekNumber = t.localWeekNumber), E(t.localWeekYear) || (t.weekYear = t.localWeekYear), delete t.localWeekday, delete t.localWeekNumber, delete t.localWeekYear, {
|
@@ -3078,19 +3078,19 @@ function tr(t, e) {
|
|
3078
3078
|
return { minDaysInFirstWeek: 4, startOfWeek: 1 };
|
3079
3079
|
}
|
3080
3080
|
function e0(t, e = 4, n = 1) {
|
3081
|
-
const s =
|
3081
|
+
const s = cn(t.weekYear), r = fe(
|
3082
3082
|
t.weekNumber,
|
3083
3083
|
1,
|
3084
|
-
|
3084
|
+
yt(t.weekYear, e, n)
|
3085
3085
|
), i = fe(t.weekday, 1, 7);
|
3086
3086
|
return s ? r ? i ? !1 : ce("weekday", t.weekday) : ce("week", t.weekNumber) : ce("weekYear", t.weekYear);
|
3087
3087
|
}
|
3088
3088
|
function t0(t) {
|
3089
|
-
const e =
|
3089
|
+
const e = cn(t.year), n = fe(t.ordinal, 1, Je(t.year));
|
3090
3090
|
return e ? n ? !1 : ce("ordinal", t.ordinal) : ce("year", t.year);
|
3091
3091
|
}
|
3092
3092
|
function Ei(t) {
|
3093
|
-
const e =
|
3093
|
+
const e = cn(t.year), n = fe(t.month, 1, 12), s = fe(t.day, 1, Qt(t.year, t.month));
|
3094
3094
|
return e ? n ? s ? !1 : ce("day", t.day) : ce("month", t.month) : ce("year", t.year);
|
3095
3095
|
}
|
3096
3096
|
function Oi(t) {
|
@@ -3100,10 +3100,10 @@ function Oi(t) {
|
|
3100
3100
|
function E(t) {
|
3101
3101
|
return typeof t > "u";
|
3102
3102
|
}
|
3103
|
-
function
|
3103
|
+
function Ae(t) {
|
3104
3104
|
return typeof t == "number";
|
3105
3105
|
}
|
3106
|
-
function
|
3106
|
+
function cn(t) {
|
3107
3107
|
return typeof t == "number" && t % 1 === 0;
|
3108
3108
|
}
|
3109
3109
|
function n0(t) {
|
@@ -3139,16 +3139,16 @@ function nr(t, e, n) {
|
|
3139
3139
|
function i0(t, e) {
|
3140
3140
|
return e.reduce((n, s) => (n[s] = t[s], n), {});
|
3141
3141
|
}
|
3142
|
-
function
|
3142
|
+
function Qe(t, e) {
|
3143
3143
|
return Object.prototype.hasOwnProperty.call(t, e);
|
3144
3144
|
}
|
3145
|
-
function
|
3145
|
+
function jn(t) {
|
3146
3146
|
if (t == null)
|
3147
3147
|
return null;
|
3148
3148
|
if (typeof t != "object")
|
3149
|
-
throw new
|
3149
|
+
throw new J("Week settings must be an object");
|
3150
3150
|
if (!fe(t.firstDay, 1, 7) || !fe(t.minimalDays, 1, 7) || !Array.isArray(t.weekend) || t.weekend.some((e) => !fe(e, 1, 7)))
|
3151
|
-
throw new
|
3151
|
+
throw new J("Invalid week settings");
|
3152
3152
|
return {
|
3153
3153
|
firstDay: t.firstDay,
|
3154
3154
|
minimalDays: t.minimalDays,
|
@@ -3156,7 +3156,7 @@ function Yn(t) {
|
|
3156
3156
|
};
|
3157
3157
|
}
|
3158
3158
|
function fe(t, e, n) {
|
3159
|
-
return
|
3159
|
+
return cn(t) && t >= e && t <= n;
|
3160
3160
|
}
|
3161
3161
|
function o0(t, e) {
|
3162
3162
|
return t - e * Math.floor(t / e);
|
@@ -3166,35 +3166,35 @@ function z(t, e = 2) {
|
|
3166
3166
|
let s;
|
3167
3167
|
return n ? s = "-" + ("" + -t).padStart(e, "0") : s = ("" + t).padStart(e, "0"), s;
|
3168
3168
|
}
|
3169
|
-
function
|
3169
|
+
function xe(t) {
|
3170
3170
|
if (!(E(t) || t === null || t === ""))
|
3171
3171
|
return parseInt(t, 10);
|
3172
3172
|
}
|
3173
|
-
function
|
3173
|
+
function Me(t) {
|
3174
3174
|
if (!(E(t) || t === null || t === ""))
|
3175
3175
|
return parseFloat(t);
|
3176
3176
|
}
|
3177
|
-
function
|
3177
|
+
function fs(t) {
|
3178
3178
|
if (!(E(t) || t === null || t === "")) {
|
3179
3179
|
const e = parseFloat("0." + t) * 1e3;
|
3180
3180
|
return Math.floor(e);
|
3181
3181
|
}
|
3182
3182
|
}
|
3183
|
-
function
|
3183
|
+
function hs(t, e, n = !1) {
|
3184
3184
|
const s = 10 ** e;
|
3185
3185
|
return (n ? Math.trunc : Math.round)(t * s) / s;
|
3186
3186
|
}
|
3187
|
-
function
|
3187
|
+
function bt(t) {
|
3188
3188
|
return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
|
3189
3189
|
}
|
3190
|
-
function
|
3191
|
-
return
|
3190
|
+
function Je(t) {
|
3191
|
+
return bt(t) ? 366 : 365;
|
3192
3192
|
}
|
3193
|
-
function
|
3193
|
+
function Qt(t, e) {
|
3194
3194
|
const n = o0(e - 1, 12) + 1, s = t + (e - n) / 12;
|
3195
|
-
return n === 2 ?
|
3195
|
+
return n === 2 ? bt(s) ? 29 : 28 : [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][n - 1];
|
3196
3196
|
}
|
3197
|
-
function
|
3197
|
+
function fn(t) {
|
3198
3198
|
let e = Date.UTC(
|
3199
3199
|
t.year,
|
3200
3200
|
t.month - 1,
|
@@ -3207,13 +3207,13 @@ function hn(t) {
|
|
3207
3207
|
return t.year < 100 && t.year >= 0 && (e = new Date(e), e.setUTCFullYear(t.year, t.month - 1, t.day)), +e;
|
3208
3208
|
}
|
3209
3209
|
function sr(t, e, n) {
|
3210
|
-
return -
|
3210
|
+
return -cs(us(t, 1, e), n) + e - 1;
|
3211
3211
|
}
|
3212
|
-
function
|
3212
|
+
function yt(t, e = 4, n = 1) {
|
3213
3213
|
const s = sr(t, e, n), r = sr(t + 1, e, n);
|
3214
|
-
return (
|
3214
|
+
return (Je(t) - s + r) / 7;
|
3215
3215
|
}
|
3216
|
-
function
|
3216
|
+
function Yn(t) {
|
3217
3217
|
return t > 99 ? t : t > q.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
|
3218
3218
|
}
|
3219
3219
|
function xi(t, e, n, s = null) {
|
@@ -3229,7 +3229,7 @@ function xi(t, e, n, s = null) {
|
|
3229
3229
|
const o = { timeZoneName: e, ...i }, a = new Intl.DateTimeFormat(n, o).formatToParts(r).find((l) => l.type.toLowerCase() === "timezonename");
|
3230
3230
|
return a ? a.value : null;
|
3231
3231
|
}
|
3232
|
-
function
|
3232
|
+
function hn(t, e) {
|
3233
3233
|
let n = parseInt(t, 10);
|
3234
3234
|
Number.isNaN(n) && (n = 0);
|
3235
3235
|
const s = parseInt(e, 10) || 0, r = n < 0 || Object.is(n, -0) ? -s : s;
|
@@ -3238,20 +3238,20 @@ function dn(t, e) {
|
|
3238
3238
|
function Ni(t) {
|
3239
3239
|
const e = Number(t);
|
3240
3240
|
if (typeof t == "boolean" || t === "" || Number.isNaN(e))
|
3241
|
-
throw new
|
3241
|
+
throw new J(`Invalid unit value ${t}`);
|
3242
3242
|
return e;
|
3243
3243
|
}
|
3244
|
-
function
|
3244
|
+
function Xt(t, e) {
|
3245
3245
|
const n = {};
|
3246
3246
|
for (const s in t)
|
3247
|
-
if (
|
3247
|
+
if (Qe(t, s)) {
|
3248
3248
|
const r = t[s];
|
3249
3249
|
if (r == null) continue;
|
3250
3250
|
n[e(s)] = Ni(r);
|
3251
3251
|
}
|
3252
3252
|
return n;
|
3253
3253
|
}
|
3254
|
-
function
|
3254
|
+
function mt(t, e) {
|
3255
3255
|
const n = Math.trunc(Math.abs(t / 60)), s = Math.trunc(Math.abs(t % 60)), r = t >= 0 ? "+" : "-";
|
3256
3256
|
switch (e) {
|
3257
3257
|
case "short":
|
@@ -3264,7 +3264,7 @@ function yt(t, e) {
|
|
3264
3264
|
throw new RangeError(`Value format ${e} is out of range for property format`);
|
3265
3265
|
}
|
3266
3266
|
}
|
3267
|
-
function
|
3267
|
+
function dn(t) {
|
3268
3268
|
return i0(t, ["hour", "minute", "second", "millisecond"]);
|
3269
3269
|
}
|
3270
3270
|
const a0 = [
|
@@ -3390,7 +3390,7 @@ function rr(t, e) {
|
|
3390
3390
|
return n;
|
3391
3391
|
}
|
3392
3392
|
const w0 = {
|
3393
|
-
D:
|
3393
|
+
D: Gt,
|
3394
3394
|
DD: ti,
|
3395
3395
|
DDD: ni,
|
3396
3396
|
DDDD: si,
|
@@ -3411,9 +3411,9 @@ const w0 = {
|
|
3411
3411
|
FFF: gi,
|
3412
3412
|
FFFF: vi
|
3413
3413
|
};
|
3414
|
-
class
|
3414
|
+
class K {
|
3415
3415
|
static create(e, n = {}) {
|
3416
|
-
return new
|
3416
|
+
return new K(e, n);
|
3417
3417
|
}
|
3418
3418
|
static parseFormat(e) {
|
3419
3419
|
let n = null, s = "", r = !1;
|
@@ -3459,7 +3459,7 @@ class G {
|
|
3459
3459
|
d ? { weekday: y } : { weekday: y, month: "long", day: "numeric" },
|
3460
3460
|
"weekday"
|
3461
3461
|
), c = (y) => {
|
3462
|
-
const d =
|
3462
|
+
const d = K.macroTokenToFormatOpts(y);
|
3463
3463
|
return d ? this.formatWithSystemDefault(e, d) : y;
|
3464
3464
|
}, f = (y) => s ? y0(e, y) : i({ era: y }, "era"), g = (y) => {
|
3465
3465
|
switch (y) {
|
@@ -3588,7 +3588,7 @@ class G {
|
|
3588
3588
|
return c(y);
|
3589
3589
|
}
|
3590
3590
|
};
|
3591
|
-
return rr(
|
3591
|
+
return rr(K.parseFormat(n), g);
|
3592
3592
|
}
|
3593
3593
|
formatDurationFromString(e, n) {
|
3594
3594
|
const s = (l) => {
|
@@ -3615,7 +3615,7 @@ class G {
|
|
3615
3615
|
}, r = (l) => (u) => {
|
3616
3616
|
const c = s(u);
|
3617
3617
|
return c ? this.num(l.get(c), u.length) : u;
|
3618
|
-
}, i =
|
3618
|
+
}, i = K.parseFormat(n), o = i.reduce(
|
3619
3619
|
(l, { literal: u, val: c }) => u ? l : l.concat(c),
|
3620
3620
|
[]
|
3621
3621
|
), a = e.shiftTo(...o.map(s).filter((l) => l));
|
@@ -3623,11 +3623,11 @@ class G {
|
|
3623
3623
|
}
|
3624
3624
|
}
|
3625
3625
|
const Vi = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
|
3626
|
-
function
|
3626
|
+
function tt(...t) {
|
3627
3627
|
const e = t.reduce((n, s) => n + s.source, "");
|
3628
3628
|
return RegExp(`^${e}$`);
|
3629
3629
|
}
|
3630
|
-
function
|
3630
|
+
function nt(...t) {
|
3631
3631
|
return (e) => t.reduce(
|
3632
3632
|
([n, s, r], i) => {
|
3633
3633
|
const [o, a, l] = i(e, r);
|
@@ -3636,7 +3636,7 @@ function st(...t) {
|
|
3636
3636
|
[{}, null, 1]
|
3637
3637
|
).slice(0, 2);
|
3638
3638
|
}
|
3639
|
-
function
|
3639
|
+
function st(t, ...e) {
|
3640
3640
|
if (t == null)
|
3641
3641
|
return [null, null];
|
3642
3642
|
for (const [n, s] of e) {
|
@@ -3651,53 +3651,53 @@ function Bi(...t) {
|
|
3651
3651
|
const s = {};
|
3652
3652
|
let r;
|
3653
3653
|
for (r = 0; r < t.length; r++)
|
3654
|
-
s[t[r]] =
|
3654
|
+
s[t[r]] = xe(e[n + r]);
|
3655
3655
|
return [s, null, n + r];
|
3656
3656
|
};
|
3657
3657
|
}
|
3658
|
-
const Ui = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, v0 = `(?:${Ui.source}?(?:\\[(${Vi.source})\\])?)?`,
|
3659
|
-
`${
|
3658
|
+
const Ui = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, v0 = `(?:${Ui.source}?(?:\\[(${Vi.source})\\])?)?`, ds = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, $i = RegExp(`${ds.source}${v0}`), ms = RegExp(`(?:T${$i.source})?`), b0 = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, T0 = /(\d{4})-?W(\d\d)(?:-?(\d))?/, S0 = /(\d{4})-?(\d{3})/, k0 = Bi("weekYear", "weekNumber", "weekDay"), E0 = Bi("year", "ordinal"), O0 = /(\d{4})-(\d\d)-(\d\d)/, Pi = RegExp(
|
3659
|
+
`${ds.source} ?(?:${Ui.source}|(${Vi.source}))?`
|
3660
3660
|
), _0 = RegExp(`(?: ${Pi.source})?`);
|
3661
|
-
function
|
3661
|
+
function Ge(t, e, n) {
|
3662
3662
|
const s = t[e];
|
3663
|
-
return E(s) ? n :
|
3663
|
+
return E(s) ? n : xe(s);
|
3664
3664
|
}
|
3665
3665
|
function C0(t, e) {
|
3666
3666
|
return [{
|
3667
|
-
year:
|
3668
|
-
month:
|
3669
|
-
day:
|
3667
|
+
year: Ge(t, e),
|
3668
|
+
month: Ge(t, e + 1, 1),
|
3669
|
+
day: Ge(t, e + 2, 1)
|
3670
3670
|
}, null, e + 3];
|
3671
3671
|
}
|
3672
|
-
function
|
3672
|
+
function rt(t, e) {
|
3673
3673
|
return [{
|
3674
|
-
hours:
|
3675
|
-
minutes:
|
3676
|
-
seconds:
|
3677
|
-
milliseconds:
|
3674
|
+
hours: Ge(t, e, 0),
|
3675
|
+
minutes: Ge(t, e + 1, 0),
|
3676
|
+
seconds: Ge(t, e + 2, 0),
|
3677
|
+
milliseconds: fs(t[e + 3])
|
3678
3678
|
}, null, e + 4];
|
3679
3679
|
}
|
3680
|
-
function
|
3681
|
-
const n = !t[e] && !t[e + 1], s =
|
3680
|
+
function Tt(t, e) {
|
3681
|
+
const n = !t[e] && !t[e + 1], s = hn(t[e + 1], t[e + 2]), r = n ? null : Q.instance(s);
|
3682
3682
|
return [{}, r, e + 3];
|
3683
3683
|
}
|
3684
|
-
function
|
3685
|
-
const n = t[e] ?
|
3684
|
+
function St(t, e) {
|
3685
|
+
const n = t[e] ? Ee.create(t[e]) : null;
|
3686
3686
|
return [{}, n, e + 1];
|
3687
3687
|
}
|
3688
|
-
const x0 = RegExp(`^T?${
|
3688
|
+
const x0 = RegExp(`^T?${ds.source}$`), N0 = /^-?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)?)?)$/;
|
3689
3689
|
function A0(t) {
|
3690
3690
|
const [e, n, s, r, i, o, a, l, u] = t, c = e[0] === "-", f = l && l[0] === "-", g = (y, d = !1) => y !== void 0 && (d || y && c) ? -y : y;
|
3691
3691
|
return [
|
3692
3692
|
{
|
3693
|
-
years: g(
|
3694
|
-
months: g(
|
3695
|
-
weeks: g(
|
3696
|
-
days: g(
|
3697
|
-
hours: g(
|
3698
|
-
minutes: g(
|
3699
|
-
seconds: g(
|
3700
|
-
milliseconds: g(
|
3693
|
+
years: g(Me(n)),
|
3694
|
+
months: g(Me(s)),
|
3695
|
+
weeks: g(Me(r)),
|
3696
|
+
days: g(Me(i)),
|
3697
|
+
hours: g(Me(o)),
|
3698
|
+
minutes: g(Me(a)),
|
3699
|
+
seconds: g(Me(l), l === "-0"),
|
3700
|
+
milliseconds: g(fs(u), f)
|
3701
3701
|
}
|
3702
3702
|
];
|
3703
3703
|
}
|
@@ -3712,15 +3712,15 @@ const R0 = {
|
|
3712
3712
|
PDT: -7 * 60,
|
3713
3713
|
PST: -8 * 60
|
3714
3714
|
};
|
3715
|
-
function
|
3715
|
+
function ps(t, e, n, s, r, i, o) {
|
3716
3716
|
const a = {
|
3717
|
-
year: e.length === 2 ?
|
3717
|
+
year: e.length === 2 ? Yn(xe(e)) : xe(e),
|
3718
3718
|
month: Ai.indexOf(n) + 1,
|
3719
|
-
day:
|
3720
|
-
hour:
|
3721
|
-
minute:
|
3719
|
+
day: xe(s),
|
3720
|
+
hour: xe(r),
|
3721
|
+
minute: xe(i)
|
3722
3722
|
};
|
3723
|
-
return o && (a.second =
|
3723
|
+
return o && (a.second = xe(o)), t && (a.weekday = t.length > 3 ? Ii.indexOf(t) + 1 : Mi.indexOf(t) + 1), a;
|
3724
3724
|
}
|
3725
3725
|
const I0 = /^(?:(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)))$/;
|
3726
3726
|
function M0(t) {
|
@@ -3737,9 +3737,9 @@ function M0(t) {
|
|
3737
3737
|
u,
|
3738
3738
|
c,
|
3739
3739
|
f
|
3740
|
-
] = t, g =
|
3740
|
+
] = t, g = ps(e, r, s, n, i, o, a);
|
3741
3741
|
let y;
|
3742
|
-
return l ? y = R0[l] : u ? y = 0 : y =
|
3742
|
+
return l ? y = R0[l] : u ? y = 0 : y = hn(c, f), [g, new Q(y)];
|
3743
3743
|
}
|
3744
3744
|
function D0(t) {
|
3745
3745
|
return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
@@ -3747,34 +3747,34 @@ function D0(t) {
|
|
3747
3747
|
const L0 = /^(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$/, F0 = /^(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$/, V0 = /^(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})$/;
|
3748
3748
|
function ir(t) {
|
3749
3749
|
const [, e, n, s, r, i, o, a] = t;
|
3750
|
-
return [
|
3750
|
+
return [ps(e, r, s, n, i, o, a), Q.utcInstance];
|
3751
3751
|
}
|
3752
3752
|
function B0(t) {
|
3753
3753
|
const [, e, n, s, r, i, o, a] = t;
|
3754
|
-
return [
|
3754
|
+
return [ps(e, a, n, s, r, i, o), Q.utcInstance];
|
3755
3755
|
}
|
3756
|
-
const U0 =
|
3756
|
+
const U0 = tt(b0, ms), $0 = tt(T0, ms), P0 = tt(S0, ms), q0 = tt($i), qi = nt(
|
3757
3757
|
C0,
|
3758
|
-
|
3759
|
-
|
3760
|
-
|
3761
|
-
), W0 =
|
3758
|
+
rt,
|
3759
|
+
Tt,
|
3760
|
+
St
|
3761
|
+
), W0 = nt(
|
3762
3762
|
k0,
|
3763
|
-
|
3764
|
-
|
3765
|
-
|
3766
|
-
), z0 =
|
3763
|
+
rt,
|
3764
|
+
Tt,
|
3765
|
+
St
|
3766
|
+
), z0 = nt(
|
3767
3767
|
E0,
|
3768
|
-
|
3769
|
-
|
3770
|
-
|
3771
|
-
), H0 =
|
3772
|
-
|
3773
|
-
|
3774
|
-
|
3768
|
+
rt,
|
3769
|
+
Tt,
|
3770
|
+
St
|
3771
|
+
), H0 = nt(
|
3772
|
+
rt,
|
3773
|
+
Tt,
|
3774
|
+
St
|
3775
3775
|
);
|
3776
3776
|
function Z0(t) {
|
3777
|
-
return
|
3777
|
+
return st(
|
3778
3778
|
t,
|
3779
3779
|
[U0, qi],
|
3780
3780
|
[$0, W0],
|
@@ -3783,10 +3783,10 @@ function Z0(t) {
|
|
3783
3783
|
);
|
3784
3784
|
}
|
3785
3785
|
function j0(t) {
|
3786
|
-
return
|
3786
|
+
return st(D0(t), [I0, M0]);
|
3787
3787
|
}
|
3788
3788
|
function Y0(t) {
|
3789
|
-
return
|
3789
|
+
return st(
|
3790
3790
|
t,
|
3791
3791
|
[L0, ir],
|
3792
3792
|
[F0, ir],
|
@@ -3794,19 +3794,19 @@ function Y0(t) {
|
|
3794
3794
|
);
|
3795
3795
|
}
|
3796
3796
|
function J0(t) {
|
3797
|
-
return
|
3797
|
+
return st(t, [N0, A0]);
|
3798
3798
|
}
|
3799
|
-
const G0 =
|
3799
|
+
const G0 = nt(rt);
|
3800
3800
|
function K0(t) {
|
3801
|
-
return
|
3801
|
+
return st(t, [x0, G0]);
|
3802
3802
|
}
|
3803
|
-
const Q0 =
|
3804
|
-
|
3805
|
-
|
3806
|
-
|
3803
|
+
const Q0 = tt(O0, _0), X0 = tt(Pi), el = nt(
|
3804
|
+
rt,
|
3805
|
+
Tt,
|
3806
|
+
St
|
3807
3807
|
);
|
3808
3808
|
function tl(t) {
|
3809
|
-
return
|
3809
|
+
return st(
|
3810
3810
|
t,
|
3811
3811
|
[Q0, qi],
|
3812
3812
|
[X0, el]
|
@@ -3858,7 +3858,7 @@ const or = "Invalid Duration", Wi = {
|
|
3858
3858
|
milliseconds: 30 * 24 * 60 * 60 * 1e3
|
3859
3859
|
},
|
3860
3860
|
...Wi
|
3861
|
-
}, ae = 146097 / 400,
|
3861
|
+
}, ae = 146097 / 400, We = 146097 / 4800, sl = {
|
3862
3862
|
years: {
|
3863
3863
|
quarters: 4,
|
3864
3864
|
months: 12,
|
@@ -3879,15 +3879,15 @@ const or = "Invalid Duration", Wi = {
|
|
3879
3879
|
milliseconds: ae * 24 * 60 * 60 * 1e3 / 4
|
3880
3880
|
},
|
3881
3881
|
months: {
|
3882
|
-
weeks:
|
3883
|
-
days:
|
3884
|
-
hours:
|
3885
|
-
minutes:
|
3886
|
-
seconds:
|
3887
|
-
milliseconds:
|
3882
|
+
weeks: We / 7,
|
3883
|
+
days: We,
|
3884
|
+
hours: We * 24,
|
3885
|
+
minutes: We * 24 * 60,
|
3886
|
+
seconds: We * 24 * 60 * 60,
|
3887
|
+
milliseconds: We * 24 * 60 * 60 * 1e3
|
3888
3888
|
},
|
3889
3889
|
...Wi
|
3890
|
-
},
|
3890
|
+
}, Ue = [
|
3891
3891
|
"years",
|
3892
3892
|
"quarters",
|
3893
3893
|
"months",
|
@@ -3897,8 +3897,8 @@ const or = "Invalid Duration", Wi = {
|
|
3897
3897
|
"minutes",
|
3898
3898
|
"seconds",
|
3899
3899
|
"milliseconds"
|
3900
|
-
], rl =
|
3901
|
-
function
|
3900
|
+
], rl = Ue.slice(0).reverse();
|
3901
|
+
function _e(t, e, n = !1) {
|
3902
3902
|
const s = {
|
3903
3903
|
values: n ? e.values : { ...t.values, ...e.values || {} },
|
3904
3904
|
loc: t.loc.clone(e.loc),
|
@@ -3915,7 +3915,7 @@ function zi(t, e) {
|
|
3915
3915
|
}
|
3916
3916
|
function ar(t, e) {
|
3917
3917
|
const n = zi(t, e) < 0 ? -1 : 1;
|
3918
|
-
|
3918
|
+
Ue.reduceRight((s, r) => {
|
3919
3919
|
if (E(e[r]))
|
3920
3920
|
return s;
|
3921
3921
|
if (s) {
|
@@ -3923,7 +3923,7 @@ function ar(t, e) {
|
|
3923
3923
|
e[r] += a * n, e[s] -= a * o * n;
|
3924
3924
|
}
|
3925
3925
|
return r;
|
3926
|
-
}, null),
|
3926
|
+
}, null), Ue.reduce((s, r) => {
|
3927
3927
|
if (E(e[r]))
|
3928
3928
|
return s;
|
3929
3929
|
if (s) {
|
@@ -3982,11 +3982,11 @@ class M {
|
|
3982
3982
|
*/
|
3983
3983
|
static fromObject(e, n = {}) {
|
3984
3984
|
if (e == null || typeof e != "object")
|
3985
|
-
throw new
|
3985
|
+
throw new J(
|
3986
3986
|
`Duration.fromObject: argument expected to be an object, got ${e === null ? "null" : typeof e}`
|
3987
3987
|
);
|
3988
3988
|
return new M({
|
3989
|
-
values:
|
3989
|
+
values: Xt(e, M.normalizeUnit),
|
3990
3990
|
loc: F.fromObject(n),
|
3991
3991
|
conversionAccuracy: n.conversionAccuracy,
|
3992
3992
|
matrix: n.matrix
|
@@ -4003,13 +4003,13 @@ class M {
|
|
4003
4003
|
* @return {Duration}
|
4004
4004
|
*/
|
4005
4005
|
static fromDurationLike(e) {
|
4006
|
-
if (
|
4006
|
+
if (Ae(e))
|
4007
4007
|
return M.fromMillis(e);
|
4008
4008
|
if (M.isDuration(e))
|
4009
4009
|
return e;
|
4010
4010
|
if (typeof e == "object")
|
4011
4011
|
return M.fromObject(e);
|
4012
|
-
throw new
|
4012
|
+
throw new J(
|
4013
4013
|
`Unknown duration argument ${e} of type ${typeof e}`
|
4014
4014
|
);
|
4015
4015
|
}
|
@@ -4059,7 +4059,7 @@ class M {
|
|
4059
4059
|
*/
|
4060
4060
|
static invalid(e, n = null) {
|
4061
4061
|
if (!e)
|
4062
|
-
throw new
|
4062
|
+
throw new J("need to specify a reason the Duration is invalid");
|
4063
4063
|
const s = e instanceof ye ? e : new ye(e, n);
|
4064
4064
|
if (q.throwOnInvalid)
|
4065
4065
|
throw new Na(s);
|
@@ -4142,7 +4142,7 @@ class M {
|
|
4142
4142
|
...n,
|
4143
4143
|
floor: n.round !== !1 && n.floor !== !1
|
4144
4144
|
};
|
4145
|
-
return this.isValid ?
|
4145
|
+
return this.isValid ? K.create(this.loc, s).formatDurationFromString(this, e) : or;
|
4146
4146
|
}
|
4147
4147
|
/**
|
4148
4148
|
* Returns a string representation of a Duration with all units included.
|
@@ -4160,7 +4160,7 @@ class M {
|
|
4160
4160
|
*/
|
4161
4161
|
toHuman(e = {}) {
|
4162
4162
|
if (!this.isValid) return or;
|
4163
|
-
const n =
|
4163
|
+
const n = Ue.map((s) => {
|
4164
4164
|
const r = this.values[s];
|
4165
4165
|
return E(r) ? null : this.loc.numberFormatter({ style: "unit", unitDisplay: "long", ...e, unit: s.slice(0, -1) }).format(r);
|
4166
4166
|
}).filter((s) => s);
|
@@ -4187,7 +4187,7 @@ class M {
|
|
4187
4187
|
toISO() {
|
4188
4188
|
if (!this.isValid) return null;
|
4189
4189
|
let e = "P";
|
4190
|
-
return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e +=
|
4190
|
+
return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e += hs(this.seconds + this.milliseconds / 1e3, 3) + "S"), e === "P" && (e += "T0S"), e;
|
4191
4191
|
}
|
4192
4192
|
/**
|
4193
4193
|
* Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.
|
@@ -4260,9 +4260,9 @@ class M {
|
|
4260
4260
|
plus(e) {
|
4261
4261
|
if (!this.isValid) return this;
|
4262
4262
|
const n = M.fromDurationLike(e), s = {};
|
4263
|
-
for (const r of
|
4264
|
-
(
|
4265
|
-
return
|
4263
|
+
for (const r of Ue)
|
4264
|
+
(Qe(n.values, r) || Qe(this.values, r)) && (s[r] = n.get(r) + this.get(r));
|
4265
|
+
return _e(this, { values: s }, !0);
|
4266
4266
|
}
|
4267
4267
|
/**
|
4268
4268
|
* Make this Duration shorter by the specified amount. Return a newly-constructed Duration.
|
@@ -4286,7 +4286,7 @@ class M {
|
|
4286
4286
|
const n = {};
|
4287
4287
|
for (const s of Object.keys(this.values))
|
4288
4288
|
n[s] = Ni(e(this.values[s], s));
|
4289
|
-
return
|
4289
|
+
return _e(this, { values: n }, !0);
|
4290
4290
|
}
|
4291
4291
|
/**
|
4292
4292
|
* Get the value of unit.
|
@@ -4308,8 +4308,8 @@ class M {
|
|
4308
4308
|
*/
|
4309
4309
|
set(e) {
|
4310
4310
|
if (!this.isValid) return this;
|
4311
|
-
const n = { ...this.values, ...
|
4312
|
-
return
|
4311
|
+
const n = { ...this.values, ...Xt(e, M.normalizeUnit) };
|
4312
|
+
return _e(this, { values: n });
|
4313
4313
|
}
|
4314
4314
|
/**
|
4315
4315
|
* "Set" the locale and/or numberingSystem. Returns a newly-constructed Duration.
|
@@ -4318,7 +4318,7 @@ class M {
|
|
4318
4318
|
*/
|
4319
4319
|
reconfigure({ locale: e, numberingSystem: n, conversionAccuracy: s, matrix: r } = {}) {
|
4320
4320
|
const o = { loc: this.loc.clone({ locale: e, numberingSystem: n }), matrix: r, conversionAccuracy: s };
|
4321
|
-
return
|
4321
|
+
return _e(this, o);
|
4322
4322
|
}
|
4323
4323
|
/**
|
4324
4324
|
* Return the length of the duration in the specified unit.
|
@@ -4349,7 +4349,7 @@ class M {
|
|
4349
4349
|
normalize() {
|
4350
4350
|
if (!this.isValid) return this;
|
4351
4351
|
const e = this.toObject();
|
4352
|
-
return ar(this.matrix, e),
|
4352
|
+
return ar(this.matrix, e), _e(this, { values: e }, !0);
|
4353
4353
|
}
|
4354
4354
|
/**
|
4355
4355
|
* Rescale units to its largest representation
|
@@ -4359,7 +4359,7 @@ class M {
|
|
4359
4359
|
rescale() {
|
4360
4360
|
if (!this.isValid) return this;
|
4361
4361
|
const e = il(this.normalize().shiftToAll().toObject());
|
4362
|
-
return
|
4362
|
+
return _e(this, { values: e }, !0);
|
4363
4363
|
}
|
4364
4364
|
/**
|
4365
4365
|
* Convert this Duration into its representation in a different set of units.
|
@@ -4373,19 +4373,19 @@ class M {
|
|
4373
4373
|
e = e.map((o) => M.normalizeUnit(o));
|
4374
4374
|
const n = {}, s = {}, r = this.toObject();
|
4375
4375
|
let i;
|
4376
|
-
for (const o of
|
4376
|
+
for (const o of Ue)
|
4377
4377
|
if (e.indexOf(o) >= 0) {
|
4378
4378
|
i = o;
|
4379
4379
|
let a = 0;
|
4380
4380
|
for (const u in s)
|
4381
4381
|
a += this.matrix[u][o] * s[u], s[u] = 0;
|
4382
|
-
|
4382
|
+
Ae(r[o]) && (a += r[o]);
|
4383
4383
|
const l = Math.trunc(a);
|
4384
4384
|
n[o] = l, s[o] = (a * 1e3 - l * 1e3) / 1e3;
|
4385
|
-
} else
|
4385
|
+
} else Ae(r[o]) && (s[o] = r[o]);
|
4386
4386
|
for (const o in s)
|
4387
4387
|
s[o] !== 0 && (n[i] += o === i ? s[o] : s[o] / this.matrix[i][o]);
|
4388
|
-
return ar(this.matrix, n),
|
4388
|
+
return ar(this.matrix, n), _e(this, { values: n }, !0);
|
4389
4389
|
}
|
4390
4390
|
/**
|
4391
4391
|
* Shift this Duration to all available units.
|
@@ -4414,7 +4414,7 @@ class M {
|
|
4414
4414
|
const e = {};
|
4415
4415
|
for (const n of Object.keys(this.values))
|
4416
4416
|
e[n] = this.values[n] === 0 ? 0 : -this.values[n];
|
4417
|
-
return
|
4417
|
+
return _e(this, { values: e }, !0);
|
4418
4418
|
}
|
4419
4419
|
/**
|
4420
4420
|
* Get the years.
|
@@ -4513,13 +4513,13 @@ class M {
|
|
4513
4513
|
function n(s, r) {
|
4514
4514
|
return s === void 0 || s === 0 ? r === void 0 || r === 0 : s === r;
|
4515
4515
|
}
|
4516
|
-
for (const s of
|
4516
|
+
for (const s of Ue)
|
4517
4517
|
if (!n(this.values[s], e.values[s]))
|
4518
4518
|
return !1;
|
4519
4519
|
return !0;
|
4520
4520
|
}
|
4521
4521
|
}
|
4522
|
-
const
|
4522
|
+
const ze = "Invalid Interval";
|
4523
4523
|
function ol(t, e) {
|
4524
4524
|
return !t || !t.isValid ? P.invalid("missing or invalid start") : !e || !e.isValid ? P.invalid("missing or invalid end") : e < t ? P.invalid(
|
4525
4525
|
"end before start",
|
@@ -4541,7 +4541,7 @@ class P {
|
|
4541
4541
|
*/
|
4542
4542
|
static invalid(e, n = null) {
|
4543
4543
|
if (!e)
|
4544
|
-
throw new
|
4544
|
+
throw new J("need to specify a reason the Interval is invalid");
|
4545
4545
|
const s = e instanceof ye ? e : new ye(e, n);
|
4546
4546
|
if (q.throwOnInvalid)
|
4547
4547
|
throw new xa(s);
|
@@ -4554,7 +4554,7 @@ class P {
|
|
4554
4554
|
* @return {Interval}
|
4555
4555
|
*/
|
4556
4556
|
static fromDateTimes(e, n) {
|
4557
|
-
const s =
|
4557
|
+
const s = lt(e), r = lt(n), i = ol(s, r);
|
4558
4558
|
return i ?? new P({
|
4559
4559
|
start: s,
|
4560
4560
|
end: r
|
@@ -4567,7 +4567,7 @@ class P {
|
|
4567
4567
|
* @return {Interval}
|
4568
4568
|
*/
|
4569
4569
|
static after(e, n) {
|
4570
|
-
const s = M.fromDurationLike(n), r =
|
4570
|
+
const s = M.fromDurationLike(n), r = lt(e);
|
4571
4571
|
return P.fromDateTimes(r, r.plus(s));
|
4572
4572
|
}
|
4573
4573
|
/**
|
@@ -4577,7 +4577,7 @@ class P {
|
|
4577
4577
|
* @return {Interval}
|
4578
4578
|
*/
|
4579
4579
|
static before(e, n) {
|
4580
|
-
const s = M.fromDurationLike(n), r =
|
4580
|
+
const s = M.fromDurationLike(n), r = lt(e);
|
4581
4581
|
return P.fromDateTimes(r.minus(s), r);
|
4582
4582
|
}
|
4583
4583
|
/**
|
@@ -4739,7 +4739,7 @@ class P {
|
|
4739
4739
|
*/
|
4740
4740
|
splitAt(...e) {
|
4741
4741
|
if (!this.isValid) return [];
|
4742
|
-
const n = e.map(
|
4742
|
+
const n = e.map(lt).filter((o) => this.contains(o)).sort((o, a) => o.toMillis() - a.toMillis()), s = [];
|
4743
4743
|
let { s: r } = this, i = 0;
|
4744
4744
|
for (; r < this.e; ) {
|
4745
4745
|
const o = n[i] || this.e, a = +o > +this.e ? this.e : o;
|
@@ -4877,7 +4877,7 @@ class P {
|
|
4877
4877
|
* @return {string}
|
4878
4878
|
*/
|
4879
4879
|
toString() {
|
4880
|
-
return this.isValid ? `[${this.s.toISO()} – ${this.e.toISO()})` :
|
4880
|
+
return this.isValid ? `[${this.s.toISO()} – ${this.e.toISO()})` : ze;
|
4881
4881
|
}
|
4882
4882
|
/**
|
4883
4883
|
* Returns a string representation of this Interval appropriate for the REPL.
|
@@ -4904,8 +4904,8 @@ class P {
|
|
4904
4904
|
* @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p
|
4905
4905
|
* @return {string}
|
4906
4906
|
*/
|
4907
|
-
toLocaleString(e =
|
4908
|
-
return this.isValid ?
|
4907
|
+
toLocaleString(e = Gt, n = {}) {
|
4908
|
+
return this.isValid ? K.create(this.s.loc.clone(n), e).formatInterval(this) : ze;
|
4909
4909
|
}
|
4910
4910
|
/**
|
4911
4911
|
* Returns an ISO 8601-compliant string representation of this Interval.
|
@@ -4914,7 +4914,7 @@ class P {
|
|
4914
4914
|
* @return {string}
|
4915
4915
|
*/
|
4916
4916
|
toISO(e) {
|
4917
|
-
return this.isValid ? `${this.s.toISO(e)}/${this.e.toISO(e)}` :
|
4917
|
+
return this.isValid ? `${this.s.toISO(e)}/${this.e.toISO(e)}` : ze;
|
4918
4918
|
}
|
4919
4919
|
/**
|
4920
4920
|
* Returns an ISO 8601-compliant string representation of date of this Interval.
|
@@ -4923,7 +4923,7 @@ class P {
|
|
4923
4923
|
* @return {string}
|
4924
4924
|
*/
|
4925
4925
|
toISODate() {
|
4926
|
-
return this.isValid ? `${this.s.toISODate()}/${this.e.toISODate()}` :
|
4926
|
+
return this.isValid ? `${this.s.toISODate()}/${this.e.toISODate()}` : ze;
|
4927
4927
|
}
|
4928
4928
|
/**
|
4929
4929
|
* Returns an ISO 8601-compliant string representation of time of this Interval.
|
@@ -4933,7 +4933,7 @@ class P {
|
|
4933
4933
|
* @return {string}
|
4934
4934
|
*/
|
4935
4935
|
toISOTime(e) {
|
4936
|
-
return this.isValid ? `${this.s.toISOTime(e)}/${this.e.toISOTime(e)}` :
|
4936
|
+
return this.isValid ? `${this.s.toISOTime(e)}/${this.e.toISOTime(e)}` : ze;
|
4937
4937
|
}
|
4938
4938
|
/**
|
4939
4939
|
* Returns a string representation of this Interval formatted according to the specified format
|
@@ -4947,7 +4947,7 @@ class P {
|
|
4947
4947
|
* @return {string}
|
4948
4948
|
*/
|
4949
4949
|
toFormat(e, { separator: n = " – " } = {}) {
|
4950
|
-
return this.isValid ? `${this.s.toFormat(e)}${n}${this.e.toFormat(e)}` :
|
4950
|
+
return this.isValid ? `${this.s.toFormat(e)}${n}${this.e.toFormat(e)}` : ze;
|
4951
4951
|
}
|
4952
4952
|
/**
|
4953
4953
|
* Return a Duration representing the time spanned by this interval.
|
@@ -4975,7 +4975,7 @@ class P {
|
|
4975
4975
|
return P.fromDateTimes(e(this.s), e(this.e));
|
4976
4976
|
}
|
4977
4977
|
}
|
4978
|
-
class
|
4978
|
+
class Nt {
|
4979
4979
|
/**
|
4980
4980
|
* Return whether the specified zone contains a DST.
|
4981
4981
|
* @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
|
@@ -4991,7 +4991,7 @@ class At {
|
|
4991
4991
|
* @return {boolean}
|
4992
4992
|
*/
|
4993
4993
|
static isValidIANAZone(e) {
|
4994
|
-
return
|
4994
|
+
return Ee.isValidZone(e);
|
4995
4995
|
}
|
4996
4996
|
/**
|
4997
4997
|
* Converts the input into a {@link Zone} instance.
|
@@ -5008,7 +5008,7 @@ class At {
|
|
5008
5008
|
* @return {Zone}
|
5009
5009
|
*/
|
5010
5010
|
static normalizeZone(e) {
|
5011
|
-
return
|
5011
|
+
return Ne(e, q.defaultZone);
|
5012
5012
|
}
|
5013
5013
|
/**
|
5014
5014
|
* Get the weekday on which the week starts according to the given locale.
|
@@ -5179,7 +5179,7 @@ function ll(t, e, n, s) {
|
|
5179
5179
|
return u.length > 0 ? M.fromMillis(l, s).shiftTo(...u).plus(c) : c;
|
5180
5180
|
}
|
5181
5181
|
const ul = "missing Intl.DateTimeFormat.formatToParts support";
|
5182
|
-
function
|
5182
|
+
function D(t, e = (n) => n) {
|
5183
5183
|
return { regex: t, deser: ([n]) => e(Qa(n)) };
|
5184
5184
|
}
|
5185
5185
|
const cl = " ", Hi = `[ ${cl}]`, Zi = new RegExp(Hi, "g");
|
@@ -5196,9 +5196,9 @@ function me(t, e) {
|
|
5196
5196
|
};
|
5197
5197
|
}
|
5198
5198
|
function cr(t, e) {
|
5199
|
-
return { regex: t, deser: ([, n, s]) =>
|
5199
|
+
return { regex: t, deser: ([, n, s]) => hn(n, s), groups: e };
|
5200
5200
|
}
|
5201
|
-
function
|
5201
|
+
function At(t) {
|
5202
5202
|
return { regex: t, deser: ([e]) => e };
|
5203
5203
|
}
|
5204
5204
|
function hl(t) {
|
@@ -5214,82 +5214,82 @@ function dl(t, e) {
|
|
5214
5214
|
case "GG":
|
5215
5215
|
return me(e.eras("long"), 0);
|
5216
5216
|
case "y":
|
5217
|
-
return
|
5217
|
+
return D(u);
|
5218
5218
|
case "yy":
|
5219
|
-
return
|
5219
|
+
return D(f, Yn);
|
5220
5220
|
case "yyyy":
|
5221
|
-
return
|
5221
|
+
return D(i);
|
5222
5222
|
case "yyyyy":
|
5223
|
-
return
|
5223
|
+
return D(g);
|
5224
5224
|
case "yyyyyy":
|
5225
|
-
return
|
5225
|
+
return D(o);
|
5226
5226
|
case "M":
|
5227
|
-
return
|
5227
|
+
return D(a);
|
5228
5228
|
case "MM":
|
5229
|
-
return
|
5229
|
+
return D(s);
|
5230
5230
|
case "MMM":
|
5231
5231
|
return me(e.months("short", !0), 1);
|
5232
5232
|
case "MMMM":
|
5233
5233
|
return me(e.months("long", !0), 1);
|
5234
5234
|
case "L":
|
5235
|
-
return
|
5235
|
+
return D(a);
|
5236
5236
|
case "LL":
|
5237
|
-
return
|
5237
|
+
return D(s);
|
5238
5238
|
case "LLL":
|
5239
5239
|
return me(e.months("short", !1), 1);
|
5240
5240
|
case "LLLL":
|
5241
5241
|
return me(e.months("long", !1), 1);
|
5242
5242
|
case "d":
|
5243
|
-
return
|
5243
|
+
return D(a);
|
5244
5244
|
case "dd":
|
5245
|
-
return
|
5245
|
+
return D(s);
|
5246
5246
|
case "o":
|
5247
|
-
return
|
5247
|
+
return D(l);
|
5248
5248
|
case "ooo":
|
5249
|
-
return
|
5249
|
+
return D(r);
|
5250
5250
|
case "HH":
|
5251
|
-
return
|
5251
|
+
return D(s);
|
5252
5252
|
case "H":
|
5253
|
-
return
|
5253
|
+
return D(a);
|
5254
5254
|
case "hh":
|
5255
|
-
return
|
5255
|
+
return D(s);
|
5256
5256
|
case "h":
|
5257
|
-
return
|
5257
|
+
return D(a);
|
5258
5258
|
case "mm":
|
5259
|
-
return
|
5259
|
+
return D(s);
|
5260
5260
|
case "m":
|
5261
|
-
return
|
5261
|
+
return D(a);
|
5262
5262
|
case "q":
|
5263
|
-
return
|
5263
|
+
return D(a);
|
5264
5264
|
case "qq":
|
5265
|
-
return
|
5265
|
+
return D(s);
|
5266
5266
|
case "s":
|
5267
|
-
return
|
5267
|
+
return D(a);
|
5268
5268
|
case "ss":
|
5269
|
-
return
|
5269
|
+
return D(s);
|
5270
5270
|
case "S":
|
5271
|
-
return
|
5271
|
+
return D(l);
|
5272
5272
|
case "SSS":
|
5273
|
-
return
|
5273
|
+
return D(r);
|
5274
5274
|
case "u":
|
5275
|
-
return
|
5275
|
+
return At(c);
|
5276
5276
|
case "uu":
|
5277
|
-
return
|
5277
|
+
return At(a);
|
5278
5278
|
case "uuu":
|
5279
|
-
return
|
5279
|
+
return D(n);
|
5280
5280
|
case "a":
|
5281
5281
|
return me(e.meridiems(), 0);
|
5282
5282
|
case "kkkk":
|
5283
|
-
return
|
5283
|
+
return D(i);
|
5284
5284
|
case "kk":
|
5285
|
-
return
|
5285
|
+
return D(f, Yn);
|
5286
5286
|
case "W":
|
5287
|
-
return
|
5287
|
+
return D(a);
|
5288
5288
|
case "WW":
|
5289
|
-
return
|
5289
|
+
return D(s);
|
5290
5290
|
case "E":
|
5291
5291
|
case "c":
|
5292
|
-
return
|
5292
|
+
return D(n);
|
5293
5293
|
case "EEE":
|
5294
5294
|
return me(e.weekdays("short", !1), 1);
|
5295
5295
|
case "EEEE":
|
@@ -5304,9 +5304,9 @@ function dl(t, e) {
|
|
5304
5304
|
case "ZZZ":
|
5305
5305
|
return cr(new RegExp(`([+-]${a.source})(${s.source})?`), 2);
|
5306
5306
|
case "z":
|
5307
|
-
return
|
5307
|
+
return At(/[a-z_+-/]{1,256}?/i);
|
5308
5308
|
case " ":
|
5309
|
-
return
|
5309
|
+
return At(/[^\S\n\r]/);
|
5310
5310
|
default:
|
5311
5311
|
return y(w);
|
5312
5312
|
}
|
@@ -5385,7 +5385,7 @@ function gl(t, e, n) {
|
|
5385
5385
|
const r = {};
|
5386
5386
|
let i = 1;
|
5387
5387
|
for (const o in n)
|
5388
|
-
if (
|
5388
|
+
if (Qe(n, o)) {
|
5389
5389
|
const a = n[o], l = a.groups ? a.groups + 1 : 1;
|
5390
5390
|
!a.literal && a.token && (r[a.token.val[0]] = a.deser(s.slice(i, i + l))), i += l;
|
5391
5391
|
}
|
@@ -5428,19 +5428,19 @@ function wl(t) {
|
|
5428
5428
|
}
|
5429
5429
|
};
|
5430
5430
|
let n = null, s;
|
5431
|
-
return E(t.z) || (n =
|
5431
|
+
return E(t.z) || (n = Ee.create(t.z)), E(t.Z) || (n || (n = new Q(t.Z)), s = t.Z), E(t.q) || (t.M = (t.q - 1) * 3 + 1), E(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), E(t.u) || (t.S = fs(t.u)), [Object.keys(t).reduce((i, o) => {
|
5432
5432
|
const a = e(o);
|
5433
5433
|
return a && (i[a] = t[o]), i;
|
5434
5434
|
}, {}), n, s];
|
5435
5435
|
}
|
5436
|
-
let
|
5436
|
+
let xn = null;
|
5437
5437
|
function vl() {
|
5438
|
-
return
|
5438
|
+
return xn || (xn = k.fromMillis(1555555555555)), xn;
|
5439
5439
|
}
|
5440
5440
|
function bl(t, e) {
|
5441
5441
|
if (t.literal)
|
5442
5442
|
return t;
|
5443
|
-
const n =
|
5443
|
+
const n = K.macroTokenToFormatOpts(t.val), s = Gi(n, e);
|
5444
5444
|
return s == null || s.includes(void 0) ? t : s;
|
5445
5445
|
}
|
5446
5446
|
function ji(t, e) {
|
@@ -5448,7 +5448,7 @@ function ji(t, e) {
|
|
5448
5448
|
}
|
5449
5449
|
class Yi {
|
5450
5450
|
constructor(e, n) {
|
5451
|
-
if (this.locale = e, this.format = n, this.tokens = ji(
|
5451
|
+
if (this.locale = e, this.format = n, this.tokens = ji(K.parseFormat(n), e), this.units = this.tokens.map((s) => dl(s, e)), this.disqualifyingUnit = this.units.find((s) => s.invalidReason), !this.disqualifyingUnit) {
|
5452
5452
|
const [s, r] = yl(this.units);
|
5453
5453
|
this.regex = RegExp(s, "i"), this.handlers = r;
|
5454
5454
|
}
|
@@ -5456,8 +5456,8 @@ class Yi {
|
|
5456
5456
|
explainFromTokens(e) {
|
5457
5457
|
if (this.isValid) {
|
5458
5458
|
const [n, s] = gl(e, this.regex, this.handlers), [r, i, o] = s ? wl(s) : [null, null, void 0];
|
5459
|
-
if (
|
5460
|
-
throw new
|
5459
|
+
if (Qe(s, "a") && Qe(s, "H"))
|
5460
|
+
throw new je(
|
5461
5461
|
"Can't include meridiem when specifying 24-hour format"
|
5462
5462
|
);
|
5463
5463
|
return {
|
@@ -5490,24 +5490,24 @@ function Tl(t, e, n) {
|
|
5490
5490
|
function Gi(t, e) {
|
5491
5491
|
if (!t)
|
5492
5492
|
return null;
|
5493
|
-
const s =
|
5493
|
+
const s = K.create(e, t).dtFormatter(vl()), r = s.formatToParts(), i = s.resolvedOptions();
|
5494
5494
|
return r.map((o) => pl(o, t, i));
|
5495
5495
|
}
|
5496
|
-
const
|
5497
|
-
function
|
5496
|
+
const Nn = "Invalid DateTime", Sl = 864e13;
|
5497
|
+
function ft(t) {
|
5498
5498
|
return new ye("unsupported zone", `the zone "${t.name}" is not supported`);
|
5499
5499
|
}
|
5500
|
-
function
|
5501
|
-
return t.weekData === null && (t.weekData =
|
5500
|
+
function An(t) {
|
5501
|
+
return t.weekData === null && (t.weekData = Kt(t.c)), t.weekData;
|
5502
5502
|
}
|
5503
|
-
function
|
5504
|
-
return t.localWeekData === null && (t.localWeekData =
|
5503
|
+
function Rn(t) {
|
5504
|
+
return t.localWeekData === null && (t.localWeekData = Kt(
|
5505
5505
|
t.c,
|
5506
5506
|
t.loc.getMinDaysInFirstWeek(),
|
5507
5507
|
t.loc.getStartOfWeek()
|
5508
5508
|
)), t.localWeekData;
|
5509
5509
|
}
|
5510
|
-
function
|
5510
|
+
function De(t, e) {
|
5511
5511
|
const n = {
|
5512
5512
|
ts: t.ts,
|
5513
5513
|
zone: t.zone,
|
@@ -5527,7 +5527,7 @@ function Ki(t, e, n) {
|
|
5527
5527
|
const i = n.offset(s);
|
5528
5528
|
return r === i ? [s, r] : [t - Math.min(r, i) * 60 * 1e3, Math.max(r, i)];
|
5529
5529
|
}
|
5530
|
-
function
|
5530
|
+
function Rt(t, e) {
|
5531
5531
|
t += e * 60 * 1e3;
|
5532
5532
|
const n = new Date(t);
|
5533
5533
|
return {
|
@@ -5540,15 +5540,15 @@ function It(t, e) {
|
|
5540
5540
|
millisecond: n.getUTCMilliseconds()
|
5541
5541
|
};
|
5542
5542
|
}
|
5543
|
-
function
|
5544
|
-
return Ki(
|
5543
|
+
function Ut(t, e, n) {
|
5544
|
+
return Ki(fn(t), e, n);
|
5545
5545
|
}
|
5546
5546
|
function fr(t, e) {
|
5547
5547
|
const n = t.o, s = t.c.year + Math.trunc(e.years), r = t.c.month + Math.trunc(e.months) + Math.trunc(e.quarters) * 3, i = {
|
5548
5548
|
...t.c,
|
5549
5549
|
year: s,
|
5550
5550
|
month: r,
|
5551
|
-
day: Math.min(t.c.day,
|
5551
|
+
day: Math.min(t.c.day, Qt(s, r)) + Math.trunc(e.days) + Math.trunc(e.weeks) * 7
|
5552
5552
|
}, o = M.fromObject({
|
5553
5553
|
years: e.years - Math.trunc(e.years),
|
5554
5554
|
quarters: e.quarters - Math.trunc(e.quarters),
|
@@ -5559,11 +5559,11 @@ function fr(t, e) {
|
|
5559
5559
|
minutes: e.minutes,
|
5560
5560
|
seconds: e.seconds,
|
5561
5561
|
milliseconds: e.milliseconds
|
5562
|
-
}).as("milliseconds"), a =
|
5562
|
+
}).as("milliseconds"), a = fn(i);
|
5563
5563
|
let [l, u] = Ki(a, n, t.zone);
|
5564
5564
|
return o !== 0 && (l += o, u = t.zone.offset(l)), { ts: l, o: u };
|
5565
5565
|
}
|
5566
|
-
function
|
5566
|
+
function He(t, e, n, s, r, i) {
|
5567
5567
|
const { setZone: o, zone: a } = n;
|
5568
5568
|
if (t && Object.keys(t).length !== 0 || e) {
|
5569
5569
|
const l = e || a, u = k.fromObject(t, {
|
@@ -5577,13 +5577,13 @@ function Ze(t, e, n, s, r, i) {
|
|
5577
5577
|
new ye("unparsable", `the input "${r}" can't be parsed as ${s}`)
|
5578
5578
|
);
|
5579
5579
|
}
|
5580
|
-
function
|
5581
|
-
return t.isValid ?
|
5580
|
+
function It(t, e, n = !0) {
|
5581
|
+
return t.isValid ? K.create(F.create("en-US"), {
|
5582
5582
|
allowZ: n,
|
5583
5583
|
forceSimple: !0
|
5584
5584
|
}).formatDateTimeFromString(t, e) : null;
|
5585
5585
|
}
|
5586
|
-
function
|
5586
|
+
function In(t, e) {
|
5587
5587
|
const n = t.c.year > 9999 || t.c.year < 0;
|
5588
5588
|
let s = "";
|
5589
5589
|
return n && t.c.year >= 0 && (s += "+"), s += z(t.c.year, n ? 6 : 4), e ? (s += "-", s += z(t.c.month), s += "-", s += z(t.c.day)) : (s += z(t.c.month), s += z(t.c.day)), s;
|
@@ -5667,12 +5667,12 @@ function dr(t) {
|
|
5667
5667
|
}
|
5668
5668
|
}
|
5669
5669
|
function xl(t) {
|
5670
|
-
return
|
5670
|
+
return Pt[t] || ($t === void 0 && ($t = q.now()), Pt[t] = t.offset($t)), Pt[t];
|
5671
5671
|
}
|
5672
5672
|
function mr(t, e) {
|
5673
|
-
const n =
|
5673
|
+
const n = Ne(e.zone, q.defaultZone);
|
5674
5674
|
if (!n.isValid)
|
5675
|
-
return k.invalid(
|
5675
|
+
return k.invalid(ft(n));
|
5676
5676
|
const s = F.fromObject(e);
|
5677
5677
|
let r, i;
|
5678
5678
|
if (E(t.year))
|
@@ -5684,12 +5684,12 @@ function mr(t, e) {
|
|
5684
5684
|
if (o)
|
5685
5685
|
return k.invalid(o);
|
5686
5686
|
const a = xl(n);
|
5687
|
-
[r, i] =
|
5687
|
+
[r, i] = Ut(t, a, n);
|
5688
5688
|
}
|
5689
5689
|
return new k({ ts: r, zone: n, loc: s, o: i });
|
5690
5690
|
}
|
5691
5691
|
function pr(t, e, n) {
|
5692
|
-
const s = E(n.round) ? !0 : n.round, r = (o, a) => (o =
|
5692
|
+
const s = E(n.round) ? !0 : n.round, r = (o, a) => (o = hs(o, s || n.calendary ? 0 : 2, !0), e.loc.clone(n).relFormatter(n).format(o, a)), i = (o) => n.calendary ? e.hasSame(t, o) ? 0 : e.startOf(o).diff(t.startOf(o), o).get(o) : e.diff(t, o).get(o);
|
5693
5693
|
if (n.unit)
|
5694
5694
|
return r(i(n.unit), n.unit);
|
5695
5695
|
for (const o of n.units) {
|
@@ -5703,22 +5703,22 @@ function yr(t) {
|
|
5703
5703
|
let e = {}, n;
|
5704
5704
|
return t.length > 0 && typeof t[t.length - 1] == "object" ? (e = t[t.length - 1], n = Array.from(t).slice(0, t.length - 1)) : n = Array.from(t), [e, n];
|
5705
5705
|
}
|
5706
|
-
let
|
5706
|
+
let $t, Pt = {};
|
5707
5707
|
class k {
|
5708
5708
|
/**
|
5709
5709
|
* @access private
|
5710
5710
|
*/
|
5711
5711
|
constructor(e) {
|
5712
5712
|
const n = e.zone || q.defaultZone;
|
5713
|
-
let s = e.invalid || (Number.isNaN(e.ts) ? new ye("invalid input") : null) || (n.isValid ? null :
|
5713
|
+
let s = e.invalid || (Number.isNaN(e.ts) ? new ye("invalid input") : null) || (n.isValid ? null : ft(n));
|
5714
5714
|
this.ts = E(e.ts) ? q.now() : e.ts;
|
5715
5715
|
let r = null, i = null;
|
5716
5716
|
if (!s)
|
5717
5717
|
if (e.old && e.old.ts === this.ts && e.old.zone.equals(n))
|
5718
5718
|
[r, i] = [e.old.c, e.old.o];
|
5719
5719
|
else {
|
5720
|
-
const a =
|
5721
|
-
r =
|
5720
|
+
const a = Ae(e.o) && !e.old ? e.o : n.offset(this.ts);
|
5721
|
+
r = Rt(this.ts, a), s = Number.isNaN(r.year) ? new ye("invalid input") : null, r = s ? null : r, i = s ? null : a;
|
5722
5722
|
}
|
5723
5723
|
this._zone = n, this.loc = e.loc || F.create(), this.invalid = s, this.weekData = null, this.localWeekData = null, this.c = r, this.o = i, this.isLuxonDateTime = !0;
|
5724
5724
|
}
|
@@ -5785,7 +5785,7 @@ class k {
|
|
5785
5785
|
*/
|
5786
5786
|
static utc() {
|
5787
5787
|
const [e, n] = yr(arguments), [s, r, i, o, a, l, u] = n;
|
5788
|
-
return e.zone =
|
5788
|
+
return e.zone = Q.utcInstance, mr({ year: s, month: r, day: i, hour: o, minute: a, second: l, millisecond: u }, e);
|
5789
5789
|
}
|
5790
5790
|
/**
|
5791
5791
|
* Create a DateTime from a JavaScript Date object. Uses the default zone.
|
@@ -5798,12 +5798,12 @@ class k {
|
|
5798
5798
|
const s = s0(e) ? e.valueOf() : NaN;
|
5799
5799
|
if (Number.isNaN(s))
|
5800
5800
|
return k.invalid("invalid input");
|
5801
|
-
const r =
|
5801
|
+
const r = Ne(n.zone, q.defaultZone);
|
5802
5802
|
return r.isValid ? new k({
|
5803
5803
|
ts: s,
|
5804
5804
|
zone: r,
|
5805
5805
|
loc: F.fromObject(n)
|
5806
|
-
}) : k.invalid(
|
5806
|
+
}) : k.invalid(ft(r));
|
5807
5807
|
}
|
5808
5808
|
/**
|
5809
5809
|
* Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
|
@@ -5817,13 +5817,13 @@ class k {
|
|
5817
5817
|
* @return {DateTime}
|
5818
5818
|
*/
|
5819
5819
|
static fromMillis(e, n = {}) {
|
5820
|
-
if (
|
5820
|
+
if (Ae(e))
|
5821
5821
|
return e < -864e13 || e > Sl ? k.invalid("Timestamp out of range") : new k({
|
5822
5822
|
ts: e,
|
5823
|
-
zone:
|
5823
|
+
zone: Ne(n.zone, q.defaultZone),
|
5824
5824
|
loc: F.fromObject(n)
|
5825
5825
|
});
|
5826
|
-
throw new
|
5826
|
+
throw new J(
|
5827
5827
|
`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`
|
5828
5828
|
);
|
5829
5829
|
}
|
@@ -5839,13 +5839,13 @@ class k {
|
|
5839
5839
|
* @return {DateTime}
|
5840
5840
|
*/
|
5841
5841
|
static fromSeconds(e, n = {}) {
|
5842
|
-
if (
|
5842
|
+
if (Ae(e))
|
5843
5843
|
return new k({
|
5844
5844
|
ts: e * 1e3,
|
5845
|
-
zone:
|
5845
|
+
zone: Ne(n.zone, q.defaultZone),
|
5846
5846
|
loc: F.fromObject(n)
|
5847
5847
|
});
|
5848
|
-
throw new
|
5848
|
+
throw new J("fromSeconds requires a numerical input");
|
5849
5849
|
}
|
5850
5850
|
/**
|
5851
5851
|
* Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.
|
@@ -5882,28 +5882,28 @@ class k {
|
|
5882
5882
|
*/
|
5883
5883
|
static fromObject(e, n = {}) {
|
5884
5884
|
e = e || {};
|
5885
|
-
const s =
|
5885
|
+
const s = Ne(n.zone, q.defaultZone);
|
5886
5886
|
if (!s.isValid)
|
5887
|
-
return k.invalid(
|
5888
|
-
const r = F.fromObject(n), i =
|
5887
|
+
return k.invalid(ft(s));
|
5888
|
+
const r = F.fromObject(n), i = Xt(e, dr), { minDaysInFirstWeek: o, startOfWeek: a } = tr(i, r), l = q.now(), u = E(n.specificOffset) ? s.offset(l) : n.specificOffset, c = !E(i.ordinal), f = !E(i.year), g = !E(i.month) || !E(i.day), y = f || g, d = i.weekYear || i.weekNumber;
|
5889
5889
|
if ((y || c) && d)
|
5890
|
-
throw new
|
5890
|
+
throw new je(
|
5891
5891
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
5892
5892
|
);
|
5893
5893
|
if (g && c)
|
5894
|
-
throw new
|
5894
|
+
throw new je("Can't mix ordinal dates with month/day");
|
5895
5895
|
const S = d || i.weekday && !y;
|
5896
|
-
let w, O,
|
5897
|
-
S ? (w = Ol, O = kl,
|
5896
|
+
let w, O, C = Rt(l, u);
|
5897
|
+
S ? (w = Ol, O = kl, C = Kt(C, o, a)) : c ? (w = _l, O = El, C = Cn(C)) : (w = Xi, O = Qi);
|
5898
5898
|
let V = !1;
|
5899
|
-
for (const
|
5900
|
-
const
|
5901
|
-
E(
|
5899
|
+
for (const X of w) {
|
5900
|
+
const yn = i[X];
|
5901
|
+
E(yn) ? V ? i[X] = O[X] : i[X] = C[X] : V = !0;
|
5902
5902
|
}
|
5903
|
-
const
|
5903
|
+
const te = S ? e0(i, o, a) : c ? t0(i) : Ei(i), $ = te || Oi(i);
|
5904
5904
|
if ($)
|
5905
5905
|
return k.invalid($);
|
5906
|
-
const oe = S ? Xs(i, o, a) : c ? er(i) : i, [B, he] =
|
5906
|
+
const oe = S ? Xs(i, o, a) : c ? er(i) : i, [B, he] = Ut(oe, u, s), Z = new k({
|
5907
5907
|
ts: B,
|
5908
5908
|
zone: s,
|
5909
5909
|
o: he,
|
@@ -5933,7 +5933,7 @@ class k {
|
|
5933
5933
|
*/
|
5934
5934
|
static fromISO(e, n = {}) {
|
5935
5935
|
const [s, r] = Z0(e);
|
5936
|
-
return
|
5936
|
+
return He(s, r, n, "ISO 8601", e);
|
5937
5937
|
}
|
5938
5938
|
/**
|
5939
5939
|
* Create a DateTime from an RFC 2822 string
|
@@ -5952,7 +5952,7 @@ class k {
|
|
5952
5952
|
*/
|
5953
5953
|
static fromRFC2822(e, n = {}) {
|
5954
5954
|
const [s, r] = j0(e);
|
5955
|
-
return
|
5955
|
+
return He(s, r, n, "RFC 2822", e);
|
5956
5956
|
}
|
5957
5957
|
/**
|
5958
5958
|
* Create a DateTime from an HTTP header date
|
@@ -5972,7 +5972,7 @@ class k {
|
|
5972
5972
|
*/
|
5973
5973
|
static fromHTTP(e, n = {}) {
|
5974
5974
|
const [s, r] = Y0(e);
|
5975
|
-
return
|
5975
|
+
return He(s, r, n, "HTTP", n);
|
5976
5976
|
}
|
5977
5977
|
/**
|
5978
5978
|
* Create a DateTime from an input string and format string.
|
@@ -5990,13 +5990,13 @@ class k {
|
|
5990
5990
|
*/
|
5991
5991
|
static fromFormat(e, n, s = {}) {
|
5992
5992
|
if (E(e) || E(n))
|
5993
|
-
throw new
|
5993
|
+
throw new J("fromFormat requires an input string and a format");
|
5994
5994
|
const { locale: r = null, numberingSystem: i = null } = s, o = F.fromOpts({
|
5995
5995
|
locale: r,
|
5996
5996
|
numberingSystem: i,
|
5997
5997
|
defaultToEN: !0
|
5998
5998
|
}), [a, l, u, c] = Tl(o, e, n);
|
5999
|
-
return c ? k.invalid(c) :
|
5999
|
+
return c ? k.invalid(c) : He(a, l, s, `format ${n}`, e, u);
|
6000
6000
|
}
|
6001
6001
|
/**
|
6002
6002
|
* @deprecated use fromFormat instead
|
@@ -6027,7 +6027,7 @@ class k {
|
|
6027
6027
|
*/
|
6028
6028
|
static fromSQL(e, n = {}) {
|
6029
6029
|
const [s, r] = tl(e);
|
6030
|
-
return
|
6030
|
+
return He(s, r, n, "SQL", e);
|
6031
6031
|
}
|
6032
6032
|
/**
|
6033
6033
|
* Create an invalid DateTime.
|
@@ -6037,7 +6037,7 @@ class k {
|
|
6037
6037
|
*/
|
6038
6038
|
static invalid(e, n = null) {
|
6039
6039
|
if (!e)
|
6040
|
-
throw new
|
6040
|
+
throw new J("need to specify a reason the DateTime is invalid");
|
6041
6041
|
const s = e instanceof ye ? e : new ye(e, n);
|
6042
6042
|
if (q.throwOnInvalid)
|
6043
6043
|
throw new Ca(s);
|
@@ -6069,10 +6069,10 @@ class k {
|
|
6069
6069
|
* @returns {string}
|
6070
6070
|
*/
|
6071
6071
|
static expandFormat(e, n = {}) {
|
6072
|
-
return ji(
|
6072
|
+
return ji(K.parseFormat(e), F.fromObject(n)).map((r) => r.val).join("");
|
6073
6073
|
}
|
6074
6074
|
static resetCache() {
|
6075
|
-
|
6075
|
+
$t = void 0, Pt = {};
|
6076
6076
|
}
|
6077
6077
|
// INFO
|
6078
6078
|
/**
|
@@ -6217,7 +6217,7 @@ class k {
|
|
6217
6217
|
* @type {number}
|
6218
6218
|
*/
|
6219
6219
|
get weekYear() {
|
6220
|
-
return this.isValid ?
|
6220
|
+
return this.isValid ? An(this).weekYear : NaN;
|
6221
6221
|
}
|
6222
6222
|
/**
|
6223
6223
|
* Get the week number of the week year (1-52ish).
|
@@ -6226,7 +6226,7 @@ class k {
|
|
6226
6226
|
* @type {number}
|
6227
6227
|
*/
|
6228
6228
|
get weekNumber() {
|
6229
|
-
return this.isValid ?
|
6229
|
+
return this.isValid ? An(this).weekNumber : NaN;
|
6230
6230
|
}
|
6231
6231
|
/**
|
6232
6232
|
* Get the day of the week.
|
@@ -6236,7 +6236,7 @@ class k {
|
|
6236
6236
|
* @type {number}
|
6237
6237
|
*/
|
6238
6238
|
get weekday() {
|
6239
|
-
return this.isValid ?
|
6239
|
+
return this.isValid ? An(this).weekday : NaN;
|
6240
6240
|
}
|
6241
6241
|
/**
|
6242
6242
|
* Returns true if this date is on a weekend according to the locale, false otherwise
|
@@ -6252,7 +6252,7 @@ class k {
|
|
6252
6252
|
* @returns {number}
|
6253
6253
|
*/
|
6254
6254
|
get localWeekday() {
|
6255
|
-
return this.isValid ?
|
6255
|
+
return this.isValid ? Rn(this).weekday : NaN;
|
6256
6256
|
}
|
6257
6257
|
/**
|
6258
6258
|
* Get the week number of the week year according to the locale. Different locales assign week numbers differently,
|
@@ -6261,7 +6261,7 @@ class k {
|
|
6261
6261
|
* @returns {number}
|
6262
6262
|
*/
|
6263
6263
|
get localWeekNumber() {
|
6264
|
-
return this.isValid ?
|
6264
|
+
return this.isValid ? Rn(this).weekNumber : NaN;
|
6265
6265
|
}
|
6266
6266
|
/**
|
6267
6267
|
* Get the week year according to the locale. Different locales assign week numbers (and therefor week years)
|
@@ -6269,7 +6269,7 @@ class k {
|
|
6269
6269
|
* @returns {number}
|
6270
6270
|
*/
|
6271
6271
|
get localWeekYear() {
|
6272
|
-
return this.isValid ?
|
6272
|
+
return this.isValid ? Rn(this).weekYear : NaN;
|
6273
6273
|
}
|
6274
6274
|
/**
|
6275
6275
|
* Get the ordinal (meaning the day of the year)
|
@@ -6277,7 +6277,7 @@ class k {
|
|
6277
6277
|
* @type {number|DateTime}
|
6278
6278
|
*/
|
6279
6279
|
get ordinal() {
|
6280
|
-
return this.isValid ?
|
6280
|
+
return this.isValid ? Cn(this.c).ordinal : NaN;
|
6281
6281
|
}
|
6282
6282
|
/**
|
6283
6283
|
* Get the human readable short month name, such as 'Oct'.
|
@@ -6286,7 +6286,7 @@ class k {
|
|
6286
6286
|
* @type {string}
|
6287
6287
|
*/
|
6288
6288
|
get monthShort() {
|
6289
|
-
return this.isValid ?
|
6289
|
+
return this.isValid ? Nt.months("short", { locObj: this.loc })[this.month - 1] : null;
|
6290
6290
|
}
|
6291
6291
|
/**
|
6292
6292
|
* Get the human readable long month name, such as 'October'.
|
@@ -6295,7 +6295,7 @@ class k {
|
|
6295
6295
|
* @type {string}
|
6296
6296
|
*/
|
6297
6297
|
get monthLong() {
|
6298
|
-
return this.isValid ?
|
6298
|
+
return this.isValid ? Nt.months("long", { locObj: this.loc })[this.month - 1] : null;
|
6299
6299
|
}
|
6300
6300
|
/**
|
6301
6301
|
* Get the human readable short weekday, such as 'Mon'.
|
@@ -6304,7 +6304,7 @@ class k {
|
|
6304
6304
|
* @type {string}
|
6305
6305
|
*/
|
6306
6306
|
get weekdayShort() {
|
6307
|
-
return this.isValid ?
|
6307
|
+
return this.isValid ? Nt.weekdays("short", { locObj: this.loc })[this.weekday - 1] : null;
|
6308
6308
|
}
|
6309
6309
|
/**
|
6310
6310
|
* Get the human readable long weekday, such as 'Monday'.
|
@@ -6313,7 +6313,7 @@ class k {
|
|
6313
6313
|
* @type {string}
|
6314
6314
|
*/
|
6315
6315
|
get weekdayLong() {
|
6316
|
-
return this.isValid ?
|
6316
|
+
return this.isValid ? Nt.weekdays("long", { locObj: this.loc })[this.weekday - 1] : null;
|
6317
6317
|
}
|
6318
6318
|
/**
|
6319
6319
|
* Get the UTC offset of this DateTime in minutes
|
@@ -6370,11 +6370,11 @@ class k {
|
|
6370
6370
|
getPossibleOffsets() {
|
6371
6371
|
if (!this.isValid || this.isOffsetFixed)
|
6372
6372
|
return [this];
|
6373
|
-
const e = 864e5, n = 6e4, s =
|
6373
|
+
const e = 864e5, n = 6e4, s = fn(this.c), r = this.zone.offset(s - e), i = this.zone.offset(s + e), o = this.zone.offset(s - r * n), a = this.zone.offset(s - i * n);
|
6374
6374
|
if (o === a)
|
6375
6375
|
return [this];
|
6376
|
-
const l = s - o * n, u = s - a * n, c =
|
6377
|
-
return c.hour === f.hour && c.minute === f.minute && c.second === f.second && c.millisecond === f.millisecond ? [
|
6376
|
+
const l = s - o * n, u = s - a * n, c = Rt(l, o), f = Rt(u, a);
|
6377
|
+
return c.hour === f.hour && c.minute === f.minute && c.second === f.second && c.millisecond === f.millisecond ? [De(this, { ts: l }), De(this, { ts: u })] : [this];
|
6378
6378
|
}
|
6379
6379
|
/**
|
6380
6380
|
* Returns true if this DateTime is in a leap year, false otherwise
|
@@ -6383,7 +6383,7 @@ class k {
|
|
6383
6383
|
* @type {boolean}
|
6384
6384
|
*/
|
6385
6385
|
get isInLeapYear() {
|
6386
|
-
return
|
6386
|
+
return bt(this.year);
|
6387
6387
|
}
|
6388
6388
|
/**
|
6389
6389
|
* Returns the number of days in this DateTime's month
|
@@ -6392,7 +6392,7 @@ class k {
|
|
6392
6392
|
* @type {number}
|
6393
6393
|
*/
|
6394
6394
|
get daysInMonth() {
|
6395
|
-
return
|
6395
|
+
return Qt(this.year, this.month);
|
6396
6396
|
}
|
6397
6397
|
/**
|
6398
6398
|
* Returns the number of days in this DateTime's year
|
@@ -6401,7 +6401,7 @@ class k {
|
|
6401
6401
|
* @type {number}
|
6402
6402
|
*/
|
6403
6403
|
get daysInYear() {
|
6404
|
-
return this.isValid ?
|
6404
|
+
return this.isValid ? Je(this.year) : NaN;
|
6405
6405
|
}
|
6406
6406
|
/**
|
6407
6407
|
* Returns the number of weeks in this DateTime's year
|
@@ -6411,7 +6411,7 @@ class k {
|
|
6411
6411
|
* @type {number}
|
6412
6412
|
*/
|
6413
6413
|
get weeksInWeekYear() {
|
6414
|
-
return this.isValid ?
|
6414
|
+
return this.isValid ? yt(this.weekYear) : NaN;
|
6415
6415
|
}
|
6416
6416
|
/**
|
6417
6417
|
* Returns the number of weeks in this DateTime's local week year
|
@@ -6420,7 +6420,7 @@ class k {
|
|
6420
6420
|
* @type {number}
|
6421
6421
|
*/
|
6422
6422
|
get weeksInLocalWeekYear() {
|
6423
|
-
return this.isValid ?
|
6423
|
+
return this.isValid ? yt(
|
6424
6424
|
this.localWeekYear,
|
6425
6425
|
this.loc.getMinDaysInFirstWeek(),
|
6426
6426
|
this.loc.getStartOfWeek()
|
@@ -6433,7 +6433,7 @@ class k {
|
|
6433
6433
|
* @return {Object}
|
6434
6434
|
*/
|
6435
6435
|
resolvedLocaleOptions(e = {}) {
|
6436
|
-
const { locale: n, numberingSystem: s, calendar: r } =
|
6436
|
+
const { locale: n, numberingSystem: s, calendar: r } = K.create(
|
6437
6437
|
this.loc.clone(e),
|
6438
6438
|
e
|
6439
6439
|
).resolvedOptions(this);
|
@@ -6449,7 +6449,7 @@ class k {
|
|
6449
6449
|
* @return {DateTime}
|
6450
6450
|
*/
|
6451
6451
|
toUTC(e = 0, n = {}) {
|
6452
|
-
return this.setZone(
|
6452
|
+
return this.setZone(Q.instance(e), n);
|
6453
6453
|
}
|
6454
6454
|
/**
|
6455
6455
|
* "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
|
@@ -6470,17 +6470,17 @@ class k {
|
|
6470
6470
|
* @return {DateTime}
|
6471
6471
|
*/
|
6472
6472
|
setZone(e, { keepLocalTime: n = !1, keepCalendarTime: s = !1 } = {}) {
|
6473
|
-
if (e =
|
6473
|
+
if (e = Ne(e, q.defaultZone), e.equals(this.zone))
|
6474
6474
|
return this;
|
6475
6475
|
if (e.isValid) {
|
6476
6476
|
let r = this.ts;
|
6477
6477
|
if (n || s) {
|
6478
6478
|
const i = e.offset(this.ts), o = this.toObject();
|
6479
|
-
[r] =
|
6479
|
+
[r] = Ut(o, i, e);
|
6480
6480
|
}
|
6481
|
-
return
|
6481
|
+
return De(this, { ts: r, zone: e });
|
6482
6482
|
} else
|
6483
|
-
return k.invalid(
|
6483
|
+
return k.invalid(ft(e));
|
6484
6484
|
}
|
6485
6485
|
/**
|
6486
6486
|
* "Set" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.
|
@@ -6490,7 +6490,7 @@ class k {
|
|
6490
6490
|
*/
|
6491
6491
|
reconfigure({ locale: e, numberingSystem: n, outputCalendar: s } = {}) {
|
6492
6492
|
const r = this.loc.clone({ locale: e, numberingSystem: n, outputCalendar: s });
|
6493
|
-
return
|
6493
|
+
return De(this, { loc: r });
|
6494
6494
|
}
|
6495
6495
|
/**
|
6496
6496
|
* "Set" the locale. Returns a newly-constructed DateTime.
|
@@ -6516,21 +6516,21 @@ class k {
|
|
6516
6516
|
*/
|
6517
6517
|
set(e) {
|
6518
6518
|
if (!this.isValid) return this;
|
6519
|
-
const n =
|
6519
|
+
const n = Xt(e, dr), { minDaysInFirstWeek: s, startOfWeek: r } = tr(n, this.loc), i = !E(n.weekYear) || !E(n.weekNumber) || !E(n.weekday), o = !E(n.ordinal), a = !E(n.year), l = !E(n.month) || !E(n.day), u = a || l, c = n.weekYear || n.weekNumber;
|
6520
6520
|
if ((u || o) && c)
|
6521
|
-
throw new
|
6521
|
+
throw new je(
|
6522
6522
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
6523
6523
|
);
|
6524
6524
|
if (l && o)
|
6525
|
-
throw new
|
6525
|
+
throw new je("Can't mix ordinal dates with month/day");
|
6526
6526
|
let f;
|
6527
6527
|
i ? f = Xs(
|
6528
|
-
{ ...
|
6528
|
+
{ ...Kt(this.c, s, r), ...n },
|
6529
6529
|
s,
|
6530
6530
|
r
|
6531
|
-
) : E(n.ordinal) ? (f = { ...this.toObject(), ...n }, E(n.day) && (f.day = Math.min(
|
6532
|
-
const [g, y] =
|
6533
|
-
return
|
6531
|
+
) : E(n.ordinal) ? (f = { ...this.toObject(), ...n }, E(n.day) && (f.day = Math.min(Qt(f.year, f.month), f.day))) : f = er({ ...Cn(this.c), ...n });
|
6532
|
+
const [g, y] = Ut(f, this.o, this.zone);
|
6533
|
+
return De(this, { ts: g, o: y });
|
6534
6534
|
}
|
6535
6535
|
/**
|
6536
6536
|
* Add a period of time to this DateTime and return the resulting DateTime
|
@@ -6548,7 +6548,7 @@ class k {
|
|
6548
6548
|
plus(e) {
|
6549
6549
|
if (!this.isValid) return this;
|
6550
6550
|
const n = M.fromDurationLike(e);
|
6551
|
-
return
|
6551
|
+
return De(this, fr(this, n));
|
6552
6552
|
}
|
6553
6553
|
/**
|
6554
6554
|
* Subtract a period of time to this DateTime and return the resulting DateTime
|
@@ -6559,7 +6559,7 @@ class k {
|
|
6559
6559
|
minus(e) {
|
6560
6560
|
if (!this.isValid) return this;
|
6561
6561
|
const n = M.fromDurationLike(e).negate();
|
6562
|
-
return
|
6562
|
+
return De(this, fr(this, n));
|
6563
6563
|
}
|
6564
6564
|
/**
|
6565
6565
|
* "Set" this DateTime to the beginning of a unit of time.
|
@@ -6634,7 +6634,7 @@ class k {
|
|
6634
6634
|
* @return {string}
|
6635
6635
|
*/
|
6636
6636
|
toFormat(e, n = {}) {
|
6637
|
-
return this.isValid ?
|
6637
|
+
return this.isValid ? K.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this, e) : Nn;
|
6638
6638
|
}
|
6639
6639
|
/**
|
6640
6640
|
* Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
|
@@ -6655,8 +6655,8 @@ class k {
|
|
6655
6655
|
* @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'
|
6656
6656
|
* @return {string}
|
6657
6657
|
*/
|
6658
|
-
toLocaleString(e =
|
6659
|
-
return this.isValid ?
|
6658
|
+
toLocaleString(e = Gt, n = {}) {
|
6659
|
+
return this.isValid ? K.create(this.loc.clone(n), e).formatDateTime(this) : Nn;
|
6660
6660
|
}
|
6661
6661
|
/**
|
6662
6662
|
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
@@ -6672,7 +6672,7 @@ class k {
|
|
6672
6672
|
* //=> ]
|
6673
6673
|
*/
|
6674
6674
|
toLocaleParts(e = {}) {
|
6675
|
-
return this.isValid ?
|
6675
|
+
return this.isValid ? K.create(this.loc.clone(e), e).formatDateTimeParts(this) : [];
|
6676
6676
|
}
|
6677
6677
|
/**
|
6678
6678
|
* Returns an ISO 8601-compliant string representation of this DateTime
|
@@ -6698,7 +6698,7 @@ class k {
|
|
6698
6698
|
if (!this.isValid)
|
6699
6699
|
return null;
|
6700
6700
|
const o = e === "extended";
|
6701
|
-
let a =
|
6701
|
+
let a = In(this, o);
|
6702
6702
|
return a += "T", a += hr(this, o, n, s, r, i), a;
|
6703
6703
|
}
|
6704
6704
|
/**
|
@@ -6710,7 +6710,7 @@ class k {
|
|
6710
6710
|
* @return {string}
|
6711
6711
|
*/
|
6712
6712
|
toISODate({ format: e = "extended" } = {}) {
|
6713
|
-
return this.isValid ?
|
6713
|
+
return this.isValid ? In(this, e === "extended") : null;
|
6714
6714
|
}
|
6715
6715
|
/**
|
6716
6716
|
* Returns an ISO 8601-compliant string representation of this DateTime's week date
|
@@ -6718,7 +6718,7 @@ class k {
|
|
6718
6718
|
* @return {string}
|
6719
6719
|
*/
|
6720
6720
|
toISOWeekDate() {
|
6721
|
-
return
|
6721
|
+
return It(this, "kkkk-'W'WW-c");
|
6722
6722
|
}
|
6723
6723
|
/**
|
6724
6724
|
* Returns an ISO 8601-compliant string representation of this DateTime's time component
|
@@ -6759,7 +6759,7 @@ class k {
|
|
6759
6759
|
* @return {string}
|
6760
6760
|
*/
|
6761
6761
|
toRFC2822() {
|
6762
|
-
return
|
6762
|
+
return It(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", !1);
|
6763
6763
|
}
|
6764
6764
|
/**
|
6765
6765
|
* Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.
|
@@ -6770,7 +6770,7 @@ class k {
|
|
6770
6770
|
* @return {string}
|
6771
6771
|
*/
|
6772
6772
|
toHTTP() {
|
6773
|
-
return
|
6773
|
+
return It(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'");
|
6774
6774
|
}
|
6775
6775
|
/**
|
6776
6776
|
* Returns a string representation of this DateTime appropriate for use in SQL Date
|
@@ -6778,7 +6778,7 @@ class k {
|
|
6778
6778
|
* @return {string}
|
6779
6779
|
*/
|
6780
6780
|
toSQLDate() {
|
6781
|
-
return this.isValid ?
|
6781
|
+
return this.isValid ? In(this, !0) : null;
|
6782
6782
|
}
|
6783
6783
|
/**
|
6784
6784
|
* Returns a string representation of this DateTime appropriate for use in SQL Time
|
@@ -6794,7 +6794,7 @@ class k {
|
|
6794
6794
|
*/
|
6795
6795
|
toSQLTime({ includeOffset: e = !0, includeZone: n = !1, includeOffsetSpace: s = !0 } = {}) {
|
6796
6796
|
let r = "HH:mm:ss.SSS";
|
6797
|
-
return (n || e) && (s && (r += " "), n ? r += "z" : e && (r += "ZZ")),
|
6797
|
+
return (n || e) && (s && (r += " "), n ? r += "z" : e && (r += "ZZ")), It(this, r, !0);
|
6798
6798
|
}
|
6799
6799
|
/**
|
6800
6800
|
* Returns a string representation of this DateTime appropriate for use in SQL DateTime
|
@@ -6816,7 +6816,7 @@ class k {
|
|
6816
6816
|
* @return {string}
|
6817
6817
|
*/
|
6818
6818
|
toString() {
|
6819
|
-
return this.isValid ? this.toISO() :
|
6819
|
+
return this.isValid ? this.toISO() : Nn;
|
6820
6820
|
}
|
6821
6821
|
/**
|
6822
6822
|
* Returns a string representation of this DateTime appropriate for the REPL.
|
@@ -7010,7 +7010,7 @@ class k {
|
|
7010
7010
|
*/
|
7011
7011
|
static min(...e) {
|
7012
7012
|
if (!e.every(k.isDateTime))
|
7013
|
-
throw new
|
7013
|
+
throw new J("min requires all arguments be DateTimes");
|
7014
7014
|
return nr(e, (n) => n.valueOf(), Math.min);
|
7015
7015
|
}
|
7016
7016
|
/**
|
@@ -7020,7 +7020,7 @@ class k {
|
|
7020
7020
|
*/
|
7021
7021
|
static max(...e) {
|
7022
7022
|
if (!e.every(k.isDateTime))
|
7023
|
-
throw new
|
7023
|
+
throw new J("max requires all arguments be DateTimes");
|
7024
7024
|
return nr(e, (n) => n.valueOf(), Math.max);
|
7025
7025
|
}
|
7026
7026
|
// MISC
|
@@ -7077,7 +7077,7 @@ class k {
|
|
7077
7077
|
*/
|
7078
7078
|
static fromFormatParser(e, n, s = {}) {
|
7079
7079
|
if (E(e) || E(n))
|
7080
|
-
throw new
|
7080
|
+
throw new J(
|
7081
7081
|
"fromFormatParser requires an input string and a format parser"
|
7082
7082
|
);
|
7083
7083
|
const { locale: r = null, numberingSystem: i = null } = s, o = F.fromOpts({
|
@@ -7086,11 +7086,11 @@ class k {
|
|
7086
7086
|
defaultToEN: !0
|
7087
7087
|
});
|
7088
7088
|
if (!o.equals(n.locale))
|
7089
|
-
throw new
|
7089
|
+
throw new J(
|
7090
7090
|
`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`
|
7091
7091
|
);
|
7092
7092
|
const { result: a, zone: l, specificOffset: u, invalidReason: c } = n.explainFromTokens(e);
|
7093
|
-
return c ? k.invalid(c) :
|
7093
|
+
return c ? k.invalid(c) : He(
|
7094
7094
|
a,
|
7095
7095
|
l,
|
7096
7096
|
s,
|
@@ -7105,7 +7105,7 @@ class k {
|
|
7105
7105
|
* @type {Object}
|
7106
7106
|
*/
|
7107
7107
|
static get DATE_SHORT() {
|
7108
|
-
return
|
7108
|
+
return Gt;
|
7109
7109
|
}
|
7110
7110
|
/**
|
7111
7111
|
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983'
|
@@ -7255,14 +7255,14 @@ class k {
|
|
7255
7255
|
return vi;
|
7256
7256
|
}
|
7257
7257
|
}
|
7258
|
-
function
|
7258
|
+
function lt(t) {
|
7259
7259
|
if (k.isDateTime(t))
|
7260
7260
|
return t;
|
7261
|
-
if (t && t.valueOf &&
|
7261
|
+
if (t && t.valueOf && Ae(t.valueOf()))
|
7262
7262
|
return k.fromJSDate(t);
|
7263
7263
|
if (t && typeof t == "object")
|
7264
7264
|
return k.fromObject(t);
|
7265
|
-
throw new
|
7265
|
+
throw new J(
|
7266
7266
|
`Unknown datetime argument: ${t}, of type ${typeof t}`
|
7267
7267
|
);
|
7268
7268
|
}
|
@@ -7278,7 +7278,7 @@ function Rl(t, e) {
|
|
7278
7278
|
}, null, -1)
|
7279
7279
|
]));
|
7280
7280
|
}
|
7281
|
-
const Il = /* @__PURE__ */ ie(Nl, [["render", Rl]]), gr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-424%20640-2%202-24%202-4%202-22%202-6%202-15%203-1%201-12%202-4%202-12%202-4%202-12%202-11%205-11%203-14%206-11%203-6%202-10%204-52%2026-18%2010-8%205-12%207-8%205-9%205-10%209-6%203-10%209-6%203-10%209-6%203-12%2011-19%2019-5%202-10%209-7%208-2%205-3%203v2h-2l-3%2011-2%203v32l9%2017%208%209%208%207%208%205%203%201v2l2%201%2014%201v2l4%201h8l5-3%2012-1%2011-6%2011-9%206-4%2017-17%208-7%205-4%206-4%2010-8%2016-12%206-4%2013-8%207-4%2010-6%2017-9%205-4%2010-3%2019-10%208-4%209-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%203-2%2013-2%206-2%2014-2%206-2%2014-2%207-2%2019-1%207-2%201-1h110l1%202%2010%201%2022%201v2l20%203%207%202%2013%202%205%202%2011%202%208%203%2016%205%208%203%2016%205%208%203%2013%206%2048%2024%2010%206%208%205%209%205%204%202%201%203%2011%207%209%206%2011%209%209%206%205%205h2l2%204h2l2%204h2l2%204h2l2%204h2v2l8%207%2011%207%206%204h3v2l2%201h9l5%202%203%202%208-1%202-2%2012-1%2016-8%209-7%204-5%205-5%204-8%205-11v-30l-3-6-2-7-6-8-3-5-9-10-7-6-6-3-25-25-5-4-6-3-10-9-6-3-10-9-6-3-10-9-7-3-8-5-5-4-14-7-6-5-23-11-17-9-23-11-10-5-10-3-35-12-14-5-51-13-22-4-21-3-19-2-7-2z'%20fill='%23C66021'/%3e%3c/svg%3e", wr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-424%20579-18%201-19%2010-12%2012-4%207-7%2014v35l9%2017%2011%2012%208%207%209%206%207%207%208%207%209%206%206%205%205%205%209%206%206%205%205%205%209%206%205%205h2v2l9%206%208%207%205%205h2v2l9%206%208%207%202%202%201%205-4%202-5%205-6%203-10%209-24%2024v2h-2l-3%207-6%207-3%206-6%209-7%2014-6%2020-2%203-2%2013-2%202v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-8-16-6-10-6-7-4-6-9-10-26-26-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-10-10-7-4-8-7-9-8-6-3-10-10-7-4-11-9-5-3-13-7zm1006%201-19%2010-8%208-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-5%203-10%209-8%208-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-5%205-5%202-12%2011-7%207-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-36%2036-4%207-7%2010-12%2024-3%2010-4%2012-2%2010-2%205-1%201v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-7-14-6-8-3-5-5-7-3-5-9-10-22-22-5-4-6-3-5-5h-2l-1-4%203-5%208-6%206-4%208-7v-2l4-2%206-5%206-4%2012-11%208-5%2012-11%208-5%2012-11%208-5%207-6%205-5%206-5%209-6v-2l4-2%201-3%204-2%207-9%207-14%201-4v-32l-8-17-12-13-8-6-14-7zm-495%20827-4%204-53%201-3%202-23%202-5%202-16%202-5%202-15%202-4%202-15%203-42%2014-10%204-19%209-3%202-8%202-20%2011-4%203-14%207-18%2010-7%207-8%204-11%208-7%205-5%203-10%209-7%207-6%203-10%209-16%2016-4%207-7%2013v36l9%2017%209%2010h2v2l9%206%2013%207h34l19-9%2013-12%209-6%209-9%209-7%2018-12%208-7%2023-12%209-6%2016-8%205-3%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%203-2%2013-2%203-2%2013-2%204-2%2016-1%205-2%201-1h110l1%202%204%201%2016%201%208%203%2012%202%205%202%2011%202%208%203%2016%205%208%203%2016%207%2011%204%2016%208%209%206%2019%2010%206%204%203%201%201%203%2011%207%209%206%208%207%206%205%205%205%209%206%205%205h2v2l9%206%2013%207h34l19-9%2010-9%207-9%207-14%201-3v-34l-9-17-11-12-13-13-5-4-6-3-14-14-7-4-9-7-6-3-6-5-6-3-6-5-6-3-6-5-21-10-7-6-16-8-9-2-28-14-10-3-36-12-30-7-29-6-23-2-7-2-51-1-2-4z'%20fill='%23CA2E22'/%3e%3c/svg%3e", vr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(988)'%20d='m0%200h72l44%202%2048%205%2035%205%2044%208%2035%208%2042%2011%2029%209%2021%207%2023%208%2010%204%2032%2013%2019%208%2015%207%2032%2016%2027%2014%2023%2013%2023%2014%2019%2012%2012%208%2016%2011%2017%2012%206%204v2l5%202%2014%2011%2010%208%2014%2011%2013%2011%2012%2011%2011%209%208%208%208%207%2048%2048%207%208%2011%2012%207%208%2011%2013%2011%2014%2010%2012%2010%2013%205%207v2h2l12%2017%2011%2016%2010%2015%2014%2022%209%2015%2011%2019%209%2016%2015%2029%2013%2026%2013%2029%2011%2027%208%2020%209%2026%207%2021%2011%2037%207%2027%206%2025%208%2040%206%2039%203%2024%204%2038%202%2044v72l-2%2044-5%2048-5%2035-8%2044-8%2035-11%2042-9%2029-7%2021-10%2028-15%2037-11%2025-16%2033-12%2024-11%2020-14%2024-13%2021-9%2014-10%2015-9%2013-13%2018-1%202h-2l-2%205-11%2014-8%2010-11%2014-11%2013-10%2011-9%2011-9%209-7%208-48%2048-8%207-11%2010-8%207-10%209-9%207-16%2013-14%2011-11%208h-2v2l-17%2012-16%2011-15%2010-19%2012-18%2011-17%2010-10%206-12%206-19%2010-32%2016-29%2013-27%2011-15%206-17%206-20%207-25%208-34%2010-36%209-39%208-41%207-32%204-38%204-44%202h-72l-44-2-48-5-35-5-44-8-35-8-42-11-29-9-21-7-23-8-10-4-32-13-19-8-15-7-32-16-27-14-23-13-23-14-19-12-12-8-16-11-17-12-6-4v-2l-5-2-14-11-10-8-14-11-13-11-12-11-11-9-8-8-8-7-48-48-7-8-11-12-7-8-11-13-11-14-10-12-10-13-5-7v-2h-2l-12-17-11-16-10-15-14-22-9-15-11-19-9-16-15-29-13-26-13-29-11-27-8-20-9-26-7-21-11-37-7-27-6-25-8-40-6-39-3-24-4-38-2-44v-72l2-44%205-48%205-35%208-44%208-35%2011-42%209-29%207-21%2010-28%2015-37%2011-25%2016-33%2013-26%2010-18%2014-24%2013-21%209-14%2010-15%209-13%2013-18%201-2h2l2-5%2011-14%208-10%2011-14%2011-13%2010-11%209-11%209-9%207-8%2048-48%208-7%2011-10%208-7%2010-9%209-7%2016-13%2014-11%2011-8h2v-2l17-12%2016-11%2015-10%2019-12%2021-13%2023-13%2022-12%2032-16%2021-10%2030-13%2030-12%2017-6%2020-7%2025-8%2034-10%2036-9%2039-8%2041-7%2032-4%2038-4zm-288%20579-17%203-20%206-16%208-14%209-13%2011-8%208-10%2013-10%2017-6%2015-5%2018-2%2013v25l3%2018%207%2021%2011%2021%2010%2013%2011%2012%2011%209%2013%209%2019%209%2016%205%2016%203h33l16-3%2018-6%2016-8%2011-7%2010-8%2016-16%209-13%206-10%208-19%205-18%202-16v-18l-2-15-6-21-5-12-7-13-11-15-12-13-14-11-13-8-17-8-21-6-13-2zm623%200-17%203-17%205-21%2010-13%209-14%2012-10%2011-12%2018-8%2017-5%2016-3%2016-1%208v18l2%2015%206%2021%208%2018%207%2011%209%2012%2017%2017%2013%209%2010%206%2019%208%2018%205%208%201h33l16-3%2016-5%2019-9%2017-12%2014-13%2011-14%208-13%208-17%206-21%202-13v-25l-3-18-7-21-8-16-8-12-11-13-8-8-13-10-17-10-15-6-18-5-13-2zm-859%20378-16%203-12%205-10%207-9%208-7%2010-6%2013-2%206-1%207v34l1%2021%205%2044%205%2028%206%2028%205%2020%209%2028%2010%2029%2013%2031%207%2015%2014%2027%2012%2021%206%209%205%209%2013%2019%2012%2017%2011%2014%2014%2017%2011%2012%209%2011%2030%2030%2011%209%207%207%2011%209%2016%2013%2019%2014%2027%2018%2031%2019%2014%207%2019%2010%2029%2013%2025%2010%2033%2011%2021%206%2028%207%2031%206%2020%203%2036%204%2021%201h52l21-1%2044-5%2028-5%2028-6%2020-5%2028-9%2029-10%2031-13%2015-7%2029-15%2019-11%209-6%209-5%2019-13%2017-12%2014-11%2017-14%2012-11%2011-9%2030-30%209-11%207-7%209-11%2013-16%2014-19%2018-27%208-13%2010-17%2014-26%209-19%2013-30%2011-30%208-26%205-18%208-36%206-36%204-36%201-21v-34l-2-10-5-13-7-10-8-9-10-7-12-6-12-3-14-1-17%203-16%208-6%204v2l-3%201v2l-4%202-8%2011-5%2010-3%2010-1%208-2%2046-3%2028-6%2035-8%2032-12%2036-13%2031-13%2027-9%2016-14%2023-20%2028-8%2010-9%2011-13%2015-32%2032-11%209-12%2010-14%2011-13%209-15%2010-25%2015-29%2015-19%208-11%205-23%208-15%205-25%207-29%206-19%203-28%203-22%201h-36l-34-2-35-5-29-6-29-8-34-12-25-11-25-12-18-10-19-12-12-8-22-16-11-9-15-13-8-7-30-30-9-11-10-12-10-13-10-14-10-15-9-15-8-14-13-25-14-33-7-20-5-15-7-26-4-18-5-29-3-28-2-46-2-12-5-13-7-10-5-6h-2l-1-3h-2v-2l-13-8-13-5-13-2z'%20fill='%233A8C03'/%3e%3c/svg%3e", br = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-676%20764-2%202-17%202-19%2010-12%2012-4%207-6%2011-1%205v31l5%2012%205%208%208%209h2v2l9%206%2014%207%2017%201v2l4%201h628l8-1%201-2%2015-1%2011-5%209-5%2010-9v-2h2l6-10%205-10%201-3v-33l-8-17-12-13-8-6-14-7-11-1h-7v-2l-2-1z'%20fill='%23E8A654'/%3e%3c/svg%3e", Tr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(932)'%20d='m0%200h184v3h15l18%201%203%201v2l28%201%209%203%2016%201%208%203%2012%201%208%203%2011%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%2010%203%209%202%208%203%2016%205%209%203%207%203%2021%207%2011%205%2011%204%209%204%2011%204%2024%2012%2010%203%2046%2023%208%206%2016%208%209%206%2016%209%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%2012%208v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2l4%202v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%206%207%2013%2013%203%206%206%206v2h2v2h2l7%208%205%206%203%205%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%208%2014%207%2011%206%209%208%2015%206%2012%206%209%208%2015%209%2019%206%2012%206%2016%208%2016%2011%2027%208%2020%2010%2030%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2014%202%202%202%2018%202%202%202%2018%202%201%202%2023%202%201%201%207v25l4%201%201%2035h3v183l-3%202-1%2030-2%205-1%201-1%2022-1%208-2%202-1%2018-2%205-1%201-1%2015-1%204h-2l-1%2012-3%205-1%2015-1%204h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-3%2010-4%2012-3%2010-6%2013-4%2011-10%2024-8%2016-8%2020-8%2016-10%2019-4%207-6%2010-9%2017-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-10%2011-2%205-7%207-1%202h-2l-2%204-8%207-4%208-93%2093h-5l-2%204-8%207-12%2012-6%203-10%209-6%203-10%209-4%204-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-9%206-11%206-9%206-12%206-13%208-19%2010-26%2013-20%208-22%2011-17%206-7%203-17%206-15%206-36%2012-23%207-11%203-24%206-54%2012-23%204-14%202-13%202-22%203-29%202-1%203h-184l-1-3-34-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-15-6-17-6-10-5-9-2-16-8-11-6-9-2-32-16-17-9-6-5-21-10-7-6-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-9-9-5-4-6-3-10-9-6-3-17-17-5-4-5-2-92-92-3-6-11-12-10-10-3-6-9-10-3-6-11-12-3-4-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-7-14-12-20-13-26-5-12-4-10-11-22-5-12-5-13-6-16-5-14-4-10-15-45-3-12-6-20-5-22-3-10-4-18-1-8-2-5-2-15-2-6-2-18-2-9-1-17-2-7-1-4-1-32-3-1v-183l3-3%201-26%202-8%201-3%201-23%203-7%201-17%203-11%202-13%202-6%202-14%205-18%208-32%205-16%203-12%2020-60%204-8%204-12%204-8%204-12%2012-24%203-10%2011-23%2011-20%203-6%205-7%208-16%207-13%205-7%206-12%206-8%206-9%207-11%207-10%204-5%203-6%208-9%206-10%203-3%203-6%2012-13%205-8%208-9%203-6%208-9h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%205-6%205-5h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2010-8%208-6%2010-9%2010-6%2011-8%209-7%2048-32%2014-8%2010-6%2019-10%207-4%2010-6%2019-10%2023-11%2010-3%2019-10%208-4%209-2%2011-6%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%202-2%2011-1%206-3%2013-1%205-2%201-1%2017-1%206-2%201-1%2015-1%204-2%206-1%2026-1%201-3%2034-1zm-219%20608-2%202-17%202-3%202-10%202-2%202-9%202-11%206-5%204-9%206-18%2018-4%207-7%2010-8%2015-5%2013-3%208v55l3%207%205%2017%209%2017%209%2010%203%206%204%205%2011%207%204%202%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm600%200-2%202-17%202-3%202-10%202-2%202-9%202-8%206-7%204-4%203v2l-5%201-12%2011-7%207-4%207-7%2010-8%2015-5%2013-3%2010v53l3%207%206%2018%204%208%206%209%2012%2015%203%205%205%204%206%204%203%201%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm-807%20604-19%2010-12%2012-4%207-6%2012-2%2012-3%205v8l3%205%201%2011%205%209%209%2010%203%206%205%205%208%209h2l2%204h2l2%204%2012%2012%203%206%2010%2010%2010%207%209%209h2l2%204h2l2%204h2l2%204h2v2l8%207%209%206%205%205h2v2l9%206%205%204h2v2l9%206%2010%207%206%204%208%207%2014%207%208%206%2013%207%209%206%2062%2031%209%203%209%204%2010%205%209%202%208%203%2016%205%208%203%2016%205%209%203%208%203%2011%202%205%202%2011%202%207%202%2013%202%207%202%2015%201%207%203%2023%201v2l9%201%2030%201%201%202%204%201h77l7-2%201-1%2028-1%2010-1%202-2%2021-1%206-2%201-1%2017-1%206-2%201-1%2018-2%202-2%2014-2%202-2%2014-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2010-2%202-2%207-3%2011-3%202-2%208-3%207-2%2023-11%2038-19%2015-8%209-6%2011-6%209-6%2011-6%209-8%208-5%2011-7%209-8%208-5%2012-11%208-5%2013-13%206-5%205-5v-2l4-2%205-5%206-3%2012-12%202-5%2011-11%205-6%206-5%207-8%205-5%203-6%208-9%205-10%201-11%203-4v-7l-3-7-2-11-8-16-11-12-8-6-14-7h-33l-2%202-9%202-11%206-14%2014-3%207-42%2042v2l-4%202-18%2018-5%202-12%2011-4%203-7%204-7%207-6%203-10%209-6%203-9%206-14%208-4%203-12%206-13%208-19%2010-9%203-19%209-14%205-10%204-7%203-11%203-6%202-7%203-12%202-8%203-9%203-15%202-4%202-16%202-4%202-21%202-3%202-31%202h-7l-1%203h-70l-10-1-2-2-24-1-34-5-44-9-29-8-35-12-25-10-5-3-7-3-6-2-5-2-4-2-1-3-10-2-3-3h-2v-2l-17-8-8-5-5-4-7-3-10-6-3-3-6-3-7-6-3-3-6-3-7-6-3-3-6-3-9-9-5-4-5-2-63-63-3-6-9-10-7-4-9-7-9-2-3-2z'%20fill='%238CBF50'/%3e%3c/svg%3e", Fe = {
|
7281
|
+
const Il = /* @__PURE__ */ ie(Nl, [["render", Rl]]), gr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-424%20640-2%202-24%202-4%202-22%202-6%202-15%203-1%201-12%202-4%202-12%202-4%202-12%202-11%205-11%203-14%206-11%203-6%202-10%204-52%2026-18%2010-8%205-12%207-8%205-9%205-10%209-6%203-10%209-6%203-10%209-6%203-12%2011-19%2019-5%202-10%209-7%208-2%205-3%203v2h-2l-3%2011-2%203v32l9%2017%208%209%208%207%208%205%203%201v2l2%201%2014%201v2l4%201h8l5-3%2012-1%2011-6%2011-9%206-4%2017-17%208-7%205-4%206-4%2010-8%2016-12%206-4%2013-8%207-4%2010-6%2017-9%205-4%2010-3%2019-10%208-4%209-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%203-2%2013-2%206-2%2014-2%206-2%2014-2%207-2%2019-1%207-2%201-1h110l1%202%2010%201%2022%201v2l20%203%207%202%2013%202%205%202%2011%202%208%203%2016%205%208%203%2016%205%208%203%2013%206%2048%2024%2010%206%208%205%209%205%204%202%201%203%2011%207%209%206%2011%209%209%206%205%205h2l2%204h2l2%204h2l2%204h2l2%204h2v2l8%207%2011%207%206%204h3v2l2%201h9l5%202%203%202%208-1%202-2%2012-1%2016-8%209-7%204-5%205-5%204-8%205-11v-30l-3-6-2-7-6-8-3-5-9-10-7-6-6-3-25-25-5-4-6-3-10-9-6-3-10-9-6-3-10-9-7-3-8-5-5-4-14-7-6-5-23-11-17-9-23-11-10-5-10-3-35-12-14-5-51-13-22-4-21-3-19-2-7-2z'%20fill='%23C66021'/%3e%3c/svg%3e", wr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-424%20579-18%201-19%2010-12%2012-4%207-7%2014v35l9%2017%2011%2012%208%207%209%206%207%207%208%207%209%206%206%205%205%205%209%206%206%205%205%205%209%206%205%205h2v2l9%206%208%207%205%205h2v2l9%206%208%207%202%202%201%205-4%202-5%205-6%203-10%209-24%2024v2h-2l-3%207-6%207-3%206-6%209-7%2014-6%2020-2%203-2%2013-2%202v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-8-16-6-10-6-7-4-6-9-10-26-26-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-10-10-7-4-8-7-9-8-6-3-10-10-7-4-11-9-5-3-13-7zm1006%201-19%2010-8%208-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-5%203-10%209-8%208-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-5%205-5%202-12%2011-7%207-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-36%2036-4%207-7%2010-12%2024-3%2010-4%2012-2%2010-2%205-1%201v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-7-14-6-8-3-5-5-7-3-5-9-10-22-22-5-4-6-3-5-5h-2l-1-4%203-5%208-6%206-4%208-7v-2l4-2%206-5%206-4%2012-11%208-5%2012-11%208-5%2012-11%208-5%207-6%205-5%206-5%209-6v-2l4-2%201-3%204-2%207-9%207-14%201-4v-32l-8-17-12-13-8-6-14-7zm-495%20827-4%204-53%201-3%202-23%202-5%202-16%202-5%202-15%202-4%202-15%203-42%2014-10%204-19%209-3%202-8%202-20%2011-4%203-14%207-18%2010-7%207-8%204-11%208-7%205-5%203-10%209-7%207-6%203-10%209-16%2016-4%207-7%2013v36l9%2017%209%2010h2v2l9%206%2013%207h34l19-9%2013-12%209-6%209-9%209-7%2018-12%208-7%2023-12%209-6%2016-8%205-3%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%203-2%2013-2%203-2%2013-2%204-2%2016-1%205-2%201-1h110l1%202%204%201%2016%201%208%203%2012%202%205%202%2011%202%208%203%2016%205%208%203%2016%207%2011%204%2016%208%209%206%2019%2010%206%204%203%201%201%203%2011%207%209%206%208%207%206%205%205%205%209%206%205%205h2v2l9%206%2013%207h34l19-9%2010-9%207-9%207-14%201-3v-34l-9-17-11-12-13-13-5-4-6-3-14-14-7-4-9-7-6-3-6-5-6-3-6-5-6-3-6-5-21-10-7-6-16-8-9-2-28-14-10-3-36-12-30-7-29-6-23-2-7-2-51-1-2-4z'%20fill='%23CA2E22'/%3e%3c/svg%3e", vr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(988)'%20d='m0%200h72l44%202%2048%205%2035%205%2044%208%2035%208%2042%2011%2029%209%2021%207%2023%208%2010%204%2032%2013%2019%208%2015%207%2032%2016%2027%2014%2023%2013%2023%2014%2019%2012%2012%208%2016%2011%2017%2012%206%204v2l5%202%2014%2011%2010%208%2014%2011%2013%2011%2012%2011%2011%209%208%208%208%207%2048%2048%207%208%2011%2012%207%208%2011%2013%2011%2014%2010%2012%2010%2013%205%207v2h2l12%2017%2011%2016%2010%2015%2014%2022%209%2015%2011%2019%209%2016%2015%2029%2013%2026%2013%2029%2011%2027%208%2020%209%2026%207%2021%2011%2037%207%2027%206%2025%208%2040%206%2039%203%2024%204%2038%202%2044v72l-2%2044-5%2048-5%2035-8%2044-8%2035-11%2042-9%2029-7%2021-10%2028-15%2037-11%2025-16%2033-12%2024-11%2020-14%2024-13%2021-9%2014-10%2015-9%2013-13%2018-1%202h-2l-2%205-11%2014-8%2010-11%2014-11%2013-10%2011-9%2011-9%209-7%208-48%2048-8%207-11%2010-8%207-10%209-9%207-16%2013-14%2011-11%208h-2v2l-17%2012-16%2011-15%2010-19%2012-18%2011-17%2010-10%206-12%206-19%2010-32%2016-29%2013-27%2011-15%206-17%206-20%207-25%208-34%2010-36%209-39%208-41%207-32%204-38%204-44%202h-72l-44-2-48-5-35-5-44-8-35-8-42-11-29-9-21-7-23-8-10-4-32-13-19-8-15-7-32-16-27-14-23-13-23-14-19-12-12-8-16-11-17-12-6-4v-2l-5-2-14-11-10-8-14-11-13-11-12-11-11-9-8-8-8-7-48-48-7-8-11-12-7-8-11-13-11-14-10-12-10-13-5-7v-2h-2l-12-17-11-16-10-15-14-22-9-15-11-19-9-16-15-29-13-26-13-29-11-27-8-20-9-26-7-21-11-37-7-27-6-25-8-40-6-39-3-24-4-38-2-44v-72l2-44%205-48%205-35%208-44%208-35%2011-42%209-29%207-21%2010-28%2015-37%2011-25%2016-33%2013-26%2010-18%2014-24%2013-21%209-14%2010-15%209-13%2013-18%201-2h2l2-5%2011-14%208-10%2011-14%2011-13%2010-11%209-11%209-9%207-8%2048-48%208-7%2011-10%208-7%2010-9%209-7%2016-13%2014-11%2011-8h2v-2l17-12%2016-11%2015-10%2019-12%2021-13%2023-13%2022-12%2032-16%2021-10%2030-13%2030-12%2017-6%2020-7%2025-8%2034-10%2036-9%2039-8%2041-7%2032-4%2038-4zm-288%20579-17%203-20%206-16%208-14%209-13%2011-8%208-10%2013-10%2017-6%2015-5%2018-2%2013v25l3%2018%207%2021%2011%2021%2010%2013%2011%2012%2011%209%2013%209%2019%209%2016%205%2016%203h33l16-3%2018-6%2016-8%2011-7%2010-8%2016-16%209-13%206-10%208-19%205-18%202-16v-18l-2-15-6-21-5-12-7-13-11-15-12-13-14-11-13-8-17-8-21-6-13-2zm623%200-17%203-17%205-21%2010-13%209-14%2012-10%2011-12%2018-8%2017-5%2016-3%2016-1%208v18l2%2015%206%2021%208%2018%207%2011%209%2012%2017%2017%2013%209%2010%206%2019%208%2018%205%208%201h33l16-3%2016-5%2019-9%2017-12%2014-13%2011-14%208-13%208-17%206-21%202-13v-25l-3-18-7-21-8-16-8-12-11-13-8-8-13-10-17-10-15-6-18-5-13-2zm-859%20378-16%203-12%205-10%207-9%208-7%2010-6%2013-2%206-1%207v34l1%2021%205%2044%205%2028%206%2028%205%2020%209%2028%2010%2029%2013%2031%207%2015%2014%2027%2012%2021%206%209%205%209%2013%2019%2012%2017%2011%2014%2014%2017%2011%2012%209%2011%2030%2030%2011%209%207%207%2011%209%2016%2013%2019%2014%2027%2018%2031%2019%2014%207%2019%2010%2029%2013%2025%2010%2033%2011%2021%206%2028%207%2031%206%2020%203%2036%204%2021%201h52l21-1%2044-5%2028-5%2028-6%2020-5%2028-9%2029-10%2031-13%2015-7%2029-15%2019-11%209-6%209-5%2019-13%2017-12%2014-11%2017-14%2012-11%2011-9%2030-30%209-11%207-7%209-11%2013-16%2014-19%2018-27%208-13%2010-17%2014-26%209-19%2013-30%2011-30%208-26%205-18%208-36%206-36%204-36%201-21v-34l-2-10-5-13-7-10-8-9-10-7-12-6-12-3-14-1-17%203-16%208-6%204v2l-3%201v2l-4%202-8%2011-5%2010-3%2010-1%208-2%2046-3%2028-6%2035-8%2032-12%2036-13%2031-13%2027-9%2016-14%2023-20%2028-8%2010-9%2011-13%2015-32%2032-11%209-12%2010-14%2011-13%209-15%2010-25%2015-29%2015-19%208-11%205-23%208-15%205-25%207-29%206-19%203-28%203-22%201h-36l-34-2-35-5-29-6-29-8-34-12-25-11-25-12-18-10-19-12-12-8-22-16-11-9-15-13-8-7-30-30-9-11-10-12-10-13-10-14-10-15-9-15-8-14-13-25-14-33-7-20-5-15-7-26-4-18-5-29-3-28-2-46-2-12-5-13-7-10-5-6h-2l-1-3h-2v-2l-13-8-13-5-13-2z'%20fill='%233A8C03'/%3e%3c/svg%3e", br = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-676%20764-2%202-17%202-19%2010-12%2012-4%207-6%2011-1%205v31l5%2012%205%208%208%209h2v2l9%206%2014%207%2017%201v2l4%201h628l8-1%201-2%2015-1%2011-5%209-5%2010-9v-2h2l6-10%205-10%201-3v-33l-8-17-12-13-8-6-14-7-11-1h-7v-2l-2-1z'%20fill='%23E8A654'/%3e%3c/svg%3e", Tr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(932)'%20d='m0%200h184v3h15l18%201%203%201v2l28%201%209%203%2016%201%208%203%2012%201%208%203%2011%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%2010%203%209%202%208%203%2016%205%209%203%207%203%2021%207%2011%205%2011%204%209%204%2011%204%2024%2012%2010%203%2046%2023%208%206%2016%208%209%206%2016%209%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%2012%208v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2l4%202v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%206%207%2013%2013%203%206%206%206v2h2v2h2l7%208%205%206%203%205%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%208%2014%207%2011%206%209%208%2015%206%2012%206%209%208%2015%209%2019%206%2012%206%2016%208%2016%2011%2027%208%2020%2010%2030%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2014%202%202%202%2018%202%202%202%2018%202%201%202%2023%202%201%201%207v25l4%201%201%2035h3v183l-3%202-1%2030-2%205-1%201-1%2022-1%208-2%202-1%2018-2%205-1%201-1%2015-1%204h-2l-1%2012-3%205-1%2015-1%204h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-3%2010-4%2012-3%2010-6%2013-4%2011-10%2024-8%2016-8%2020-8%2016-10%2019-4%207-6%2010-9%2017-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-10%2011-2%205-7%207-1%202h-2l-2%204-8%207-4%208-93%2093h-5l-2%204-8%207-12%2012-6%203-10%209-6%203-10%209-4%204-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-9%206-11%206-9%206-12%206-13%208-19%2010-26%2013-20%208-22%2011-17%206-7%203-17%206-15%206-36%2012-23%207-11%203-24%206-54%2012-23%204-14%202-13%202-22%203-29%202-1%203h-184l-1-3-34-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-15-6-17-6-10-5-9-2-16-8-11-6-9-2-32-16-17-9-6-5-21-10-7-6-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-9-9-5-4-6-3-10-9-6-3-17-17-5-4-5-2-92-92-3-6-11-12-10-10-3-6-9-10-3-6-11-12-3-4-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-7-14-12-20-13-26-5-12-4-10-11-22-5-12-5-13-6-16-5-14-4-10-15-45-3-12-6-20-5-22-3-10-4-18-1-8-2-5-2-15-2-6-2-18-2-9-1-17-2-7-1-4-1-32-3-1v-183l3-3%201-26%202-8%201-3%201-23%203-7%201-17%203-11%202-13%202-6%202-14%205-18%208-32%205-16%203-12%2020-60%204-8%204-12%204-8%204-12%2012-24%203-10%2011-23%2011-20%203-6%205-7%208-16%207-13%205-7%206-12%206-8%206-9%207-11%207-10%204-5%203-6%208-9%206-10%203-3%203-6%2012-13%205-8%208-9%203-6%208-9h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%205-6%205-5h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2010-8%208-6%2010-9%2010-6%2011-8%209-7%2048-32%2014-8%2010-6%2019-10%207-4%2010-6%2019-10%2023-11%2010-3%2019-10%208-4%209-2%2011-6%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%202-2%2011-1%206-3%2013-1%205-2%201-1%2017-1%206-2%201-1%2015-1%204-2%206-1%2026-1%201-3%2034-1zm-219%20608-2%202-17%202-3%202-10%202-2%202-9%202-11%206-5%204-9%206-18%2018-4%207-7%2010-8%2015-5%2013-3%208v55l3%207%205%2017%209%2017%209%2010%203%206%204%205%2011%207%204%202%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm600%200-2%202-17%202-3%202-10%202-2%202-9%202-8%206-7%204-4%203v2l-5%201-12%2011-7%207-4%207-7%2010-8%2015-5%2013-3%2010v53l3%207%206%2018%204%208%206%209%2012%2015%203%205%205%204%206%204%203%201%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm-807%20604-19%2010-12%2012-4%207-6%2012-2%2012-3%205v8l3%205%201%2011%205%209%209%2010%203%206%205%205%208%209h2l2%204h2l2%204%2012%2012%203%206%2010%2010%2010%207%209%209h2l2%204h2l2%204h2l2%204h2v2l8%207%209%206%205%205h2v2l9%206%205%204h2v2l9%206%2010%207%206%204%208%207%2014%207%208%206%2013%207%209%206%2062%2031%209%203%209%204%2010%205%209%202%208%203%2016%205%208%203%2016%205%209%203%208%203%2011%202%205%202%2011%202%207%202%2013%202%207%202%2015%201%207%203%2023%201v2l9%201%2030%201%201%202%204%201h77l7-2%201-1%2028-1%2010-1%202-2%2021-1%206-2%201-1%2017-1%206-2%201-1%2018-2%202-2%2014-2%202-2%2014-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2010-2%202-2%207-3%2011-3%202-2%208-3%207-2%2023-11%2038-19%2015-8%209-6%2011-6%209-6%2011-6%209-8%208-5%2011-7%209-8%208-5%2012-11%208-5%2013-13%206-5%205-5v-2l4-2%205-5%206-3%2012-12%202-5%2011-11%205-6%206-5%207-8%205-5%203-6%208-9%205-10%201-11%203-4v-7l-3-7-2-11-8-16-11-12-8-6-14-7h-33l-2%202-9%202-11%206-14%2014-3%207-42%2042v2l-4%202-18%2018-5%202-12%2011-4%203-7%204-7%207-6%203-10%209-6%203-9%206-14%208-4%203-12%206-13%208-19%2010-9%203-19%209-14%205-10%204-7%203-11%203-6%202-7%203-12%202-8%203-9%203-15%202-4%202-16%202-4%202-21%202-3%202-31%202h-7l-1%203h-70l-10-1-2-2-24-1-34-5-44-9-29-8-35-12-25-10-5-3-7-3-6-2-5-2-4-2-1-3-10-2-3-3h-2v-2l-17-8-8-5-5-4-7-3-10-6-3-3-6-3-7-6-3-3-6-3-7-6-3-3-6-3-9-9-5-4-5-2-63-63-3-6-9-10-7-4-9-7-9-2-3-2z'%20fill='%238CBF50'/%3e%3c/svg%3e", Le = {
|
7282
7282
|
PREGUNTA: 1,
|
7283
7283
|
IMAGEN: 2,
|
7284
7284
|
AUDIO: 3,
|
@@ -7302,7 +7302,7 @@ const Il = /* @__PURE__ */ ie(Nl, [["render", Rl]]), gr = "data:image/svg+xml,%3
|
|
7302
7302
|
}, Ql = {
|
7303
7303
|
key: 1,
|
7304
7304
|
class: "mr-5"
|
7305
|
-
}, Xl = /* @__PURE__ */
|
7305
|
+
}, Xl = /* @__PURE__ */ en({
|
7306
7306
|
__name: "MessageList",
|
7307
7307
|
props: {
|
7308
7308
|
messages: {
|
@@ -7327,7 +7327,7 @@ const Il = /* @__PURE__ */ ie(Nl, [["render", Rl]]), gr = "data:image/svg+xml,%3
|
|
7327
7327
|
}
|
7328
7328
|
So(() => {
|
7329
7329
|
s.canLoadMoreMessages || i();
|
7330
|
-
}),
|
7330
|
+
}), ns(
|
7331
7331
|
() => s.canLoadMoreMessages,
|
7332
7332
|
(g) => {
|
7333
7333
|
if (g) {
|
@@ -7348,7 +7348,7 @@ const Il = /* @__PURE__ */ ie(Nl, [["render", Rl]]), gr = "data:image/svg+xml,%3
|
|
7348
7348
|
};
|
7349
7349
|
function u(g) {
|
7350
7350
|
const y = Object.values(l);
|
7351
|
-
return !y || Array.isArray(y) && y.length === 0 ? g : y.reduce((S, w) => S.replace(w.regex, (O,
|
7351
|
+
return !y || Array.isArray(y) && y.length === 0 ? g : y.reduce((S, w) => S.replace(w.regex, (O, C) => /--custom-tag/.test(O) ? O : w.tag.replace(/{val}/g, C)), g).replace(/--custom-tag/g, "");
|
7352
7352
|
}
|
7353
7353
|
const c = [
|
7354
7354
|
{ label: "Excelente", value: 1, icon: vr, iconUnicode: "😊" },
|
@@ -7364,18 +7364,18 @@ const Il = /* @__PURE__ */ ie(Nl, [["render", Rl]]), gr = "data:image/svg+xml,%3
|
|
7364
7364
|
"🙁": wr,
|
7365
7365
|
"": null
|
7366
7366
|
};
|
7367
|
-
return (g, y) => (A(), I(
|
7367
|
+
return (g, y) => (A(), I(dt, null, [
|
7368
7368
|
b("div", {
|
7369
7369
|
ref_key: "target",
|
7370
7370
|
ref: r,
|
7371
7371
|
class: "target"
|
7372
7372
|
}, null, 512),
|
7373
7373
|
b("div", Ml, [
|
7374
|
-
(A(!0), I(
|
7374
|
+
(A(!0), I(dt, null, Fn(s.messages, (d) => {
|
7375
7375
|
var S, w, O;
|
7376
7376
|
return A(), I("div", {
|
7377
7377
|
key: d.id,
|
7378
|
-
class:
|
7378
|
+
class: Ve(["message", d.esCliente ? "message-right" : "message-left"])
|
7379
7379
|
}, [
|
7380
7380
|
b("div", Dl, [
|
7381
7381
|
d.error && d.esCliente ? (A(), I("div", Ll, [
|
@@ -7385,17 +7385,17 @@ const Il = /* @__PURE__ */ ie(Nl, [["render", Rl]]), gr = "data:image/svg+xml,%3
|
|
7385
7385
|
class: "btn-danger",
|
7386
7386
|
icon: "fa-solid fa-circle-exclamation",
|
7387
7387
|
"aria-label": "Cancel",
|
7388
|
-
onClick: (
|
7388
|
+
onClick: (C) => n("retry", d)
|
7389
7389
|
}, [
|
7390
7390
|
le(Il)
|
7391
7391
|
], 8, Fl)
|
7392
|
-
])) :
|
7392
|
+
])) : ke("", !0),
|
7393
7393
|
b("div", Vl, [
|
7394
7394
|
b("div", {
|
7395
|
-
class:
|
7395
|
+
class: Ve(["bubble", d.esCliente ? "right" : "left"])
|
7396
7396
|
}, [
|
7397
7397
|
b("div", {
|
7398
|
-
class:
|
7398
|
+
class: Ve(d.esCliente ? "content-right" : "content-left")
|
7399
7399
|
}, [
|
7400
7400
|
d.message === "😊😄🙂😐🙁" ? (A(), I("div", Bl, [
|
7401
7401
|
y[0] || (y[0] = b("div", { class: "mb-2" }, [
|
@@ -7403,28 +7403,28 @@ const Il = /* @__PURE__ */ ie(Nl, [["render", Rl]]), gr = "data:image/svg+xml,%3
|
|
7403
7403
|
b("span", null, "¿Que le pareció la atención?")
|
7404
7404
|
], -1)),
|
7405
7405
|
b("div", Ul, [
|
7406
|
-
(A(), I(
|
7407
|
-
key:
|
7406
|
+
(A(), I(dt, null, Fn(c, (C) => b("a", {
|
7407
|
+
key: C.value,
|
7408
7408
|
href: d.response ? void 0 : "javascript:",
|
7409
|
-
class:
|
7410
|
-
onClick: (V) => !d.response && n("onQualifying", { message: d, emoji:
|
7409
|
+
class: Ve(["btn-icon", { "content-disabled": !a(d, C) }]),
|
7410
|
+
onClick: (V) => !d.response && n("onQualifying", { message: d, emoji: C })
|
7411
7411
|
}, [
|
7412
7412
|
b("div", Pl, [
|
7413
7413
|
b("img", {
|
7414
|
-
src:
|
7414
|
+
src: C.icon,
|
7415
7415
|
alt: "icono",
|
7416
7416
|
class: "icon"
|
7417
7417
|
}, null, 8, ql),
|
7418
|
-
b("span", null,
|
7418
|
+
b("span", null, Ye(C.label), 1)
|
7419
7419
|
])
|
7420
7420
|
], 10, $l)), 64))
|
7421
7421
|
])
|
7422
7422
|
])) : (A(), I("div", Wl, [
|
7423
|
-
((S = d.messageType) == null ? void 0 : S.code) ===
|
7423
|
+
((S = d.messageType) == null ? void 0 : S.code) === Fe(Le).IMAGEN ? (A(), I("div", zl, [
|
7424
7424
|
b("a", {
|
7425
7425
|
href: "javascript:",
|
7426
7426
|
class: "btn-icon",
|
7427
|
-
onClick: (
|
7427
|
+
onClick: (C) => n("see", d)
|
7428
7428
|
}, [
|
7429
7429
|
b("img", {
|
7430
7430
|
src: d.thumbnailFile ?? d.urlFile,
|
@@ -7432,7 +7432,7 @@ const Il = /* @__PURE__ */ ie(Nl, [["render", Rl]]), gr = "data:image/svg+xml,%3
|
|
7432
7432
|
width: "150"
|
7433
7433
|
}, null, 8, Zl)
|
7434
7434
|
], 8, Hl)
|
7435
|
-
])) :
|
7435
|
+
])) : ke("", !0),
|
7436
7436
|
f[d.message ?? ""] ? (A(), I("div", jl, [
|
7437
7437
|
b("img", {
|
7438
7438
|
src: f[d.message],
|
@@ -7447,8 +7447,8 @@ const Il = /* @__PURE__ */ ie(Nl, [["render", Rl]]), gr = "data:image/svg+xml,%3
|
|
7447
7447
|
}, null, 8, Jl))
|
7448
7448
|
])),
|
7449
7449
|
b("div", Gl, [
|
7450
|
-
(w = d.sender) != null && w.nombreCompleto ? (A(), I("span", Kl,
|
7451
|
-
b("span", null,
|
7450
|
+
(w = d.sender) != null && w.nombreCompleto ? (A(), I("span", Kl, Ye(d.esCliente ? (O = d.sender) == null ? void 0 : O.nombreCompleto : "ECOSISTEMA JL"), 1)) : (A(), I("span", Ql)),
|
7451
|
+
b("span", null, Ye(Fe(k).fromISO(d.createdAt).toFormat(
|
7452
7452
|
"dd-MM-yyyy HH:mm"
|
7453
7453
|
)), 1)
|
7454
7454
|
])
|
@@ -7492,11 +7492,11 @@ Te.pong = "3";
|
|
7492
7492
|
Te.message = "4";
|
7493
7493
|
Te.upgrade = "5";
|
7494
7494
|
Te.noop = "6";
|
7495
|
-
const
|
7495
|
+
const qt = /* @__PURE__ */ Object.create(null);
|
7496
7496
|
Object.keys(Te).forEach((t) => {
|
7497
|
-
|
7497
|
+
qt[Te[t]] = t;
|
7498
7498
|
});
|
7499
|
-
const
|
7499
|
+
const Jn = { type: "error", data: "parser error" }, eo = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", to = typeof ArrayBuffer == "function", no = (t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t && t.buffer instanceof ArrayBuffer, ys = ({ type: t, data: e }, n, s) => eo && e instanceof Blob ? n ? s(e) : Sr(e, s) : to && (e instanceof ArrayBuffer || no(e)) ? n ? s(e) : Sr(new Blob([e]), s) : s(Te[t] + (e || "")), Sr = (t, e) => {
|
7500
7500
|
const n = new FileReader();
|
7501
7501
|
return n.onload = function() {
|
7502
7502
|
const s = n.result.split(",")[1];
|
@@ -7506,27 +7506,27 @@ const Gn = { type: "error", data: "parser error" }, eo = typeof Blob == "functio
|
|
7506
7506
|
function kr(t) {
|
7507
7507
|
return t instanceof Uint8Array ? t : t instanceof ArrayBuffer ? new Uint8Array(t) : new Uint8Array(t.buffer, t.byteOffset, t.byteLength);
|
7508
7508
|
}
|
7509
|
-
let
|
7509
|
+
let Mn;
|
7510
7510
|
function ou(t, e) {
|
7511
7511
|
if (eo && t.data instanceof Blob)
|
7512
7512
|
return t.data.arrayBuffer().then(kr).then(e);
|
7513
7513
|
if (to && (t.data instanceof ArrayBuffer || no(t.data)))
|
7514
7514
|
return e(kr(t.data));
|
7515
|
-
|
7516
|
-
|
7515
|
+
ys(t, !1, (n) => {
|
7516
|
+
Mn || (Mn = new TextEncoder()), e(Mn.encode(n));
|
7517
7517
|
});
|
7518
7518
|
}
|
7519
|
-
const Er = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
7519
|
+
const Er = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ht = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
7520
7520
|
for (let t = 0; t < Er.length; t++)
|
7521
|
-
|
7521
|
+
ht[Er.charCodeAt(t)] = t;
|
7522
7522
|
const au = (t) => {
|
7523
7523
|
let e = t.length * 0.75, n = t.length, s, r = 0, i, o, a, l;
|
7524
7524
|
t[t.length - 1] === "=" && (e--, t[t.length - 2] === "=" && e--);
|
7525
7525
|
const u = new ArrayBuffer(e), c = new Uint8Array(u);
|
7526
7526
|
for (s = 0; s < n; s += 4)
|
7527
|
-
i =
|
7527
|
+
i = ht[t.charCodeAt(s)], o = ht[t.charCodeAt(s + 1)], a = ht[t.charCodeAt(s + 2)], l = ht[t.charCodeAt(s + 3)], c[r++] = i << 2 | o >> 4, c[r++] = (o & 15) << 4 | a >> 2, c[r++] = (a & 3) << 6 | l & 63;
|
7528
7528
|
return u;
|
7529
|
-
}, lu = typeof ArrayBuffer == "function",
|
7529
|
+
}, lu = typeof ArrayBuffer == "function", gs = (t, e) => {
|
7530
7530
|
if (typeof t != "string")
|
7531
7531
|
return {
|
7532
7532
|
type: "message",
|
@@ -7536,12 +7536,12 @@ const au = (t) => {
|
|
7536
7536
|
return n === "b" ? {
|
7537
7537
|
type: "message",
|
7538
7538
|
data: uu(t.substring(1), e)
|
7539
|
-
} :
|
7540
|
-
type:
|
7539
|
+
} : qt[n] ? t.length > 1 ? {
|
7540
|
+
type: qt[n],
|
7541
7541
|
data: t.substring(1)
|
7542
7542
|
} : {
|
7543
|
-
type:
|
7544
|
-
} :
|
7543
|
+
type: qt[n]
|
7544
|
+
} : Jn;
|
7545
7545
|
}, uu = (t, e) => {
|
7546
7546
|
if (lu) {
|
7547
7547
|
const n = au(t);
|
@@ -7560,14 +7560,14 @@ const au = (t) => {
|
|
7560
7560
|
const n = t.length, s = new Array(n);
|
7561
7561
|
let r = 0;
|
7562
7562
|
t.forEach((i, o) => {
|
7563
|
-
|
7563
|
+
ys(i, !1, (a) => {
|
7564
7564
|
s[o] = a, ++r === n && e(s.join(ro));
|
7565
7565
|
});
|
7566
7566
|
});
|
7567
7567
|
}, fu = (t, e) => {
|
7568
7568
|
const n = t.split(ro), s = [];
|
7569
7569
|
for (let r = 0; r < n.length; r++) {
|
7570
|
-
const i =
|
7570
|
+
const i = gs(n[r], e);
|
7571
7571
|
if (s.push(i), i.type === "error")
|
7572
7572
|
break;
|
7573
7573
|
}
|
@@ -7595,11 +7595,11 @@ function hu() {
|
|
7595
7595
|
}
|
7596
7596
|
});
|
7597
7597
|
}
|
7598
|
-
let
|
7599
|
-
function
|
7598
|
+
let Dn;
|
7599
|
+
function Mt(t) {
|
7600
7600
|
return t.reduce((e, n) => e + n.length, 0);
|
7601
7601
|
}
|
7602
|
-
function
|
7602
|
+
function Dt(t, e) {
|
7603
7603
|
if (t[0].length === e)
|
7604
7604
|
return t.shift();
|
7605
7605
|
const n = new Uint8Array(e);
|
@@ -7609,39 +7609,39 @@ function Lt(t, e) {
|
|
7609
7609
|
return t.length && s < t[0].length && (t[0] = t[0].slice(s)), n;
|
7610
7610
|
}
|
7611
7611
|
function du(t, e) {
|
7612
|
-
|
7612
|
+
Dn || (Dn = new TextDecoder());
|
7613
7613
|
const n = [];
|
7614
7614
|
let s = 0, r = -1, i = !1;
|
7615
7615
|
return new TransformStream({
|
7616
7616
|
transform(o, a) {
|
7617
7617
|
for (n.push(o); ; ) {
|
7618
7618
|
if (s === 0) {
|
7619
|
-
if (
|
7619
|
+
if (Mt(n) < 1)
|
7620
7620
|
break;
|
7621
|
-
const l =
|
7621
|
+
const l = Dt(n, 1);
|
7622
7622
|
i = (l[0] & 128) === 128, r = l[0] & 127, r < 126 ? s = 3 : r === 126 ? s = 1 : s = 2;
|
7623
7623
|
} else if (s === 1) {
|
7624
|
-
if (
|
7624
|
+
if (Mt(n) < 2)
|
7625
7625
|
break;
|
7626
|
-
const l =
|
7626
|
+
const l = Dt(n, 2);
|
7627
7627
|
r = new DataView(l.buffer, l.byteOffset, l.length).getUint16(0), s = 3;
|
7628
7628
|
} else if (s === 2) {
|
7629
|
-
if (
|
7629
|
+
if (Mt(n) < 8)
|
7630
7630
|
break;
|
7631
|
-
const l =
|
7631
|
+
const l = Dt(n, 8), u = new DataView(l.buffer, l.byteOffset, l.length), c = u.getUint32(0);
|
7632
7632
|
if (c > Math.pow(2, 21) - 1) {
|
7633
|
-
a.enqueue(
|
7633
|
+
a.enqueue(Jn);
|
7634
7634
|
break;
|
7635
7635
|
}
|
7636
7636
|
r = c * Math.pow(2, 32) + u.getUint32(4), s = 3;
|
7637
7637
|
} else {
|
7638
|
-
if (
|
7638
|
+
if (Mt(n) < r)
|
7639
7639
|
break;
|
7640
|
-
const l =
|
7641
|
-
a.enqueue(
|
7640
|
+
const l = Dt(n, r);
|
7641
|
+
a.enqueue(gs(i ? l : Dn.decode(l), e)), s = 0;
|
7642
7642
|
}
|
7643
7643
|
if (r === 0 || r > t) {
|
7644
|
-
a.enqueue(
|
7644
|
+
a.enqueue(Jn);
|
7645
7645
|
break;
|
7646
7646
|
}
|
7647
7647
|
}
|
@@ -7698,12 +7698,12 @@ H.prototype.listeners = function(t) {
|
|
7698
7698
|
H.prototype.hasListeners = function(t) {
|
7699
7699
|
return !!this.listeners(t).length;
|
7700
7700
|
};
|
7701
|
-
const
|
7701
|
+
const mn = typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, n) => n(e, 0), ue = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(), pu = "arraybuffer";
|
7702
7702
|
function oo(t, ...e) {
|
7703
7703
|
return e.reduce((n, s) => (t.hasOwnProperty(s) && (n[s] = t[s]), n), {});
|
7704
7704
|
}
|
7705
7705
|
const yu = ue.setTimeout, gu = ue.clearTimeout;
|
7706
|
-
function
|
7706
|
+
function pn(t, e) {
|
7707
7707
|
e.useNativeTimers ? (t.setTimeoutFn = yu.bind(ue), t.clearTimeoutFn = gu.bind(ue)) : (t.setTimeoutFn = ue.setTimeout.bind(ue), t.clearTimeoutFn = ue.clearTimeout.bind(ue));
|
7708
7708
|
}
|
7709
7709
|
const wu = 1.33;
|
@@ -7738,7 +7738,7 @@ class ku extends Error {
|
|
7738
7738
|
super(e), this.description = n, this.context = s, this.type = "TransportError";
|
7739
7739
|
}
|
7740
7740
|
}
|
7741
|
-
class
|
7741
|
+
class ws extends H {
|
7742
7742
|
/**
|
7743
7743
|
* Transport abstract constructor.
|
7744
7744
|
*
|
@@ -7746,7 +7746,7 @@ class vs extends H {
|
|
7746
7746
|
* @protected
|
7747
7747
|
*/
|
7748
7748
|
constructor(e) {
|
7749
|
-
super(), this.writable = !1,
|
7749
|
+
super(), this.writable = !1, pn(this, e), this.opts = e, this.query = e.query, this.socket = e.socket, this.supportsBinary = !e.forceBase64;
|
7750
7750
|
}
|
7751
7751
|
/**
|
7752
7752
|
* Emits an error.
|
@@ -7795,7 +7795,7 @@ class vs extends H {
|
|
7795
7795
|
* @protected
|
7796
7796
|
*/
|
7797
7797
|
onData(e) {
|
7798
|
-
const n =
|
7798
|
+
const n = gs(e, this.socket.binaryType);
|
7799
7799
|
this.onPacket(n);
|
7800
7800
|
}
|
7801
7801
|
/**
|
@@ -7836,7 +7836,7 @@ class vs extends H {
|
|
7836
7836
|
return n.length ? "?" + n : "";
|
7837
7837
|
}
|
7838
7838
|
}
|
7839
|
-
class Eu extends
|
7839
|
+
class Eu extends ws {
|
7840
7840
|
constructor() {
|
7841
7841
|
super(...arguments), this._polling = !1;
|
7842
7842
|
}
|
@@ -7978,7 +7978,7 @@ class Cu extends Eu {
|
|
7978
7978
|
}), this.pollXhr = e;
|
7979
7979
|
}
|
7980
7980
|
}
|
7981
|
-
let
|
7981
|
+
let Ke = class Wt extends H {
|
7982
7982
|
/**
|
7983
7983
|
* Request constructor
|
7984
7984
|
*
|
@@ -7986,7 +7986,7 @@ let Qe = class zt extends H {
|
|
7986
7986
|
* @package
|
7987
7987
|
*/
|
7988
7988
|
constructor(e, n, s) {
|
7989
|
-
super(), this.createRequest = e,
|
7989
|
+
super(), this.createRequest = e, pn(this, s), this._opts = s, this._method = s.method || "GET", this._uri = n, this._data = s.data !== void 0 ? s.data : null, this._create();
|
7990
7990
|
}
|
7991
7991
|
/**
|
7992
7992
|
* Creates the XHR object and sends the request.
|
@@ -8032,7 +8032,7 @@ let Qe = class zt extends H {
|
|
8032
8032
|
}, 0);
|
8033
8033
|
return;
|
8034
8034
|
}
|
8035
|
-
typeof document < "u" && (this._index =
|
8035
|
+
typeof document < "u" && (this._index = Wt.requestsCount++, Wt.requests[this._index] = this);
|
8036
8036
|
}
|
8037
8037
|
/**
|
8038
8038
|
* Called upon error.
|
@@ -8054,7 +8054,7 @@ let Qe = class zt extends H {
|
|
8054
8054
|
this._xhr.abort();
|
8055
8055
|
} catch {
|
8056
8056
|
}
|
8057
|
-
typeof document < "u" && delete
|
8057
|
+
typeof document < "u" && delete Wt.requests[this._index], this._xhr = null;
|
8058
8058
|
}
|
8059
8059
|
}
|
8060
8060
|
/**
|
@@ -8075,8 +8075,8 @@ let Qe = class zt extends H {
|
|
8075
8075
|
this._cleanup();
|
8076
8076
|
}
|
8077
8077
|
};
|
8078
|
-
|
8079
|
-
|
8078
|
+
Ke.requestsCount = 0;
|
8079
|
+
Ke.requests = {};
|
8080
8080
|
if (typeof document < "u") {
|
8081
8081
|
if (typeof attachEvent == "function")
|
8082
8082
|
attachEvent("onunload", Or);
|
@@ -8086,8 +8086,8 @@ if (typeof document < "u") {
|
|
8086
8086
|
}
|
8087
8087
|
}
|
8088
8088
|
function Or() {
|
8089
|
-
for (let t in
|
8090
|
-
|
8089
|
+
for (let t in Ke.requests)
|
8090
|
+
Ke.requests.hasOwnProperty(t) && Ke.requests[t].abort();
|
8091
8091
|
}
|
8092
8092
|
const xu = function() {
|
8093
8093
|
const t = uo({
|
@@ -8102,7 +8102,7 @@ class Nu extends Cu {
|
|
8102
8102
|
this.supportsBinary = xu && !n;
|
8103
8103
|
}
|
8104
8104
|
request(e = {}) {
|
8105
|
-
return Object.assign(e, { xd: this.xd }, this.opts), new
|
8105
|
+
return Object.assign(e, { xd: this.xd }, this.opts), new Ke(uo, this.uri(), e);
|
8106
8106
|
}
|
8107
8107
|
}
|
8108
8108
|
function uo(t) {
|
@@ -8119,7 +8119,7 @@ function uo(t) {
|
|
8119
8119
|
}
|
8120
8120
|
}
|
8121
8121
|
const co = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
8122
|
-
class Au extends
|
8122
|
+
class Au extends ws {
|
8123
8123
|
get name() {
|
8124
8124
|
return "websocket";
|
8125
8125
|
}
|
@@ -8150,12 +8150,12 @@ class Au extends vs {
|
|
8150
8150
|
this.writable = !1;
|
8151
8151
|
for (let n = 0; n < e.length; n++) {
|
8152
8152
|
const s = e[n], r = n === e.length - 1;
|
8153
|
-
|
8153
|
+
ys(s, this.supportsBinary, (i) => {
|
8154
8154
|
try {
|
8155
8155
|
this.doWrite(s, i);
|
8156
8156
|
} catch {
|
8157
8157
|
}
|
8158
|
-
r &&
|
8158
|
+
r && mn(() => {
|
8159
8159
|
this.writable = !0, this.emitReserved("drain");
|
8160
8160
|
}, this.setTimeoutFn);
|
8161
8161
|
});
|
@@ -8175,16 +8175,16 @@ class Au extends vs {
|
|
8175
8175
|
return this.opts.timestampRequests && (n[this.opts.timestampParam] = ao()), this.supportsBinary || (n.b64 = 1), this.createUri(e, n);
|
8176
8176
|
}
|
8177
8177
|
}
|
8178
|
-
const
|
8178
|
+
const Ln = ue.WebSocket || ue.MozWebSocket;
|
8179
8179
|
class Ru extends Au {
|
8180
8180
|
createSocket(e, n, s) {
|
8181
|
-
return co ? new
|
8181
|
+
return co ? new Ln(e, n, s) : n ? new Ln(e, n) : new Ln(e);
|
8182
8182
|
}
|
8183
8183
|
doWrite(e, n) {
|
8184
8184
|
this.ws.send(n);
|
8185
8185
|
}
|
8186
8186
|
}
|
8187
|
-
class Iu extends
|
8187
|
+
class Iu extends ws {
|
8188
8188
|
get name() {
|
8189
8189
|
return "webtransport";
|
8190
8190
|
}
|
@@ -8219,7 +8219,7 @@ class Iu extends vs {
|
|
8219
8219
|
for (let n = 0; n < e.length; n++) {
|
8220
8220
|
const s = e[n], r = n === e.length - 1;
|
8221
8221
|
this._writer.write(s).then(() => {
|
8222
|
-
r &&
|
8222
|
+
r && mn(() => {
|
8223
8223
|
this.writable = !0, this.emitReserved("drain");
|
8224
8224
|
}, this.setTimeoutFn);
|
8225
8225
|
});
|
@@ -8250,7 +8250,7 @@ const Mu = {
|
|
8250
8250
|
"query",
|
8251
8251
|
"anchor"
|
8252
8252
|
];
|
8253
|
-
function
|
8253
|
+
function Gn(t) {
|
8254
8254
|
if (t.length > 8e3)
|
8255
8255
|
throw "URI too long";
|
8256
8256
|
const e = t, n = t.indexOf("["), s = t.indexOf("]");
|
@@ -8270,11 +8270,11 @@ function Vu(t, e) {
|
|
8270
8270
|
r && (n[r] = i);
|
8271
8271
|
}), n;
|
8272
8272
|
}
|
8273
|
-
const
|
8274
|
-
|
8275
|
-
|
8273
|
+
const Kn = typeof addEventListener == "function" && typeof removeEventListener == "function", zt = [];
|
8274
|
+
Kn && addEventListener("offline", () => {
|
8275
|
+
zt.forEach((t) => t());
|
8276
8276
|
}, !1);
|
8277
|
-
class
|
8277
|
+
class Re extends H {
|
8278
8278
|
/**
|
8279
8279
|
* Socket constructor.
|
8280
8280
|
*
|
@@ -8283,10 +8283,10 @@ class Ie extends H {
|
|
8283
8283
|
*/
|
8284
8284
|
constructor(e, n) {
|
8285
8285
|
if (super(), this.binaryType = pu, this.writeBuffer = [], this._prevBufferLen = 0, this._pingInterval = -1, this._pingTimeout = -1, this._maxPayload = -1, this._pingTimeoutTime = 1 / 0, e && typeof e == "object" && (n = e, e = null), e) {
|
8286
|
-
const s =
|
8286
|
+
const s = Gn(e);
|
8287
8287
|
n.hostname = s.host, n.secure = s.protocol === "https" || s.protocol === "wss", n.port = s.port, s.query && (n.query = s.query);
|
8288
|
-
} else n.host && (n.hostname =
|
8289
|
-
|
8288
|
+
} else n.host && (n.hostname = Gn(n.host).host);
|
8289
|
+
pn(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 = [], this._transportsByName = {}, n.transports.forEach((s) => {
|
8290
8290
|
const r = s.prototype.name;
|
8291
8291
|
this.transports.push(r), this._transportsByName[r] = s;
|
8292
8292
|
}), this.opts = Object.assign({
|
@@ -8303,13 +8303,13 @@ class Ie extends H {
|
|
8303
8303
|
},
|
8304
8304
|
transportOptions: {},
|
8305
8305
|
closeOnBeforeunload: !1
|
8306
|
-
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Su(this.opts.query)),
|
8306
|
+
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Su(this.opts.query)), Kn && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
|
8307
8307
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
8308
8308
|
}, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
|
8309
8309
|
this._onClose("transport close", {
|
8310
8310
|
description: "network connection lost"
|
8311
8311
|
});
|
8312
|
-
},
|
8312
|
+
}, zt.push(this._offlineEventListener))), this.opts.withCredentials && (this._cookieJar = void 0), this._open();
|
8313
8313
|
}
|
8314
8314
|
/**
|
8315
8315
|
* Creates transport of the given type.
|
@@ -8342,7 +8342,7 @@ class Ie extends H {
|
|
8342
8342
|
}, 0);
|
8343
8343
|
return;
|
8344
8344
|
}
|
8345
|
-
const e = this.opts.rememberUpgrade &&
|
8345
|
+
const e = this.opts.rememberUpgrade && Re.priorWebsocketSuccess && this.transports.indexOf("websocket") !== -1 ? "websocket" : this.transports[0];
|
8346
8346
|
this.readyState = "opening";
|
8347
8347
|
const n = this.createTransport(e);
|
8348
8348
|
n.open(), this.setTransport(n);
|
@@ -8361,7 +8361,7 @@ class Ie extends H {
|
|
8361
8361
|
* @private
|
8362
8362
|
*/
|
8363
8363
|
onOpen() {
|
8364
|
-
this.readyState = "open",
|
8364
|
+
this.readyState = "open", Re.priorWebsocketSuccess = this.transport.name === "websocket", this.emitReserved("open"), this.flush();
|
8365
8365
|
}
|
8366
8366
|
/**
|
8367
8367
|
* Handles a packet.
|
@@ -8458,7 +8458,7 @@ class Ie extends H {
|
|
8458
8458
|
if (!this._pingTimeoutTime)
|
8459
8459
|
return !0;
|
8460
8460
|
const e = Date.now() > this._pingTimeoutTime;
|
8461
|
-
return e && (this._pingTimeoutTime = 0,
|
8461
|
+
return e && (this._pingTimeoutTime = 0, mn(() => {
|
8462
8462
|
this._onClose("ping timeout");
|
8463
8463
|
}, this.setTimeoutFn)), e;
|
8464
8464
|
}
|
@@ -8525,7 +8525,7 @@ class Ie extends H {
|
|
8525
8525
|
* @private
|
8526
8526
|
*/
|
8527
8527
|
_onError(e) {
|
8528
|
-
if (
|
8528
|
+
if (Re.priorWebsocketSuccess = !1, this.opts.tryAllTransports && this.transports.length > 1 && this.readyState === "opening")
|
8529
8529
|
return this.transports.shift(), this._open();
|
8530
8530
|
this.emitReserved("error", e), this._onClose("transport error", e);
|
8531
8531
|
}
|
@@ -8536,16 +8536,16 @@ class Ie extends H {
|
|
8536
8536
|
*/
|
8537
8537
|
_onClose(e, n) {
|
8538
8538
|
if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
|
8539
|
-
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(),
|
8540
|
-
const s =
|
8541
|
-
s !== -1 &&
|
8539
|
+
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), Kn && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
|
8540
|
+
const s = zt.indexOf(this._offlineEventListener);
|
8541
|
+
s !== -1 && zt.splice(s, 1);
|
8542
8542
|
}
|
8543
8543
|
this.readyState = "closed", this.id = null, this.emitReserved("close", e, n), this.writeBuffer = [], this._prevBufferLen = 0;
|
8544
8544
|
}
|
8545
8545
|
}
|
8546
8546
|
}
|
8547
|
-
|
8548
|
-
class Bu extends
|
8547
|
+
Re.protocol = io;
|
8548
|
+
class Bu extends Re {
|
8549
8549
|
constructor() {
|
8550
8550
|
super(...arguments), this._upgrades = [];
|
8551
8551
|
}
|
@@ -8562,14 +8562,14 @@ class Bu extends Ie {
|
|
8562
8562
|
*/
|
8563
8563
|
_probe(e) {
|
8564
8564
|
let n = this.createTransport(e), s = !1;
|
8565
|
-
|
8565
|
+
Re.priorWebsocketSuccess = !1;
|
8566
8566
|
const r = () => {
|
8567
8567
|
s || (n.send([{ type: "ping", data: "probe" }]), n.once("packet", (f) => {
|
8568
8568
|
if (!s)
|
8569
8569
|
if (f.type === "pong" && f.data === "probe") {
|
8570
8570
|
if (this.upgrading = !0, this.emitReserved("upgrading", n), !n)
|
8571
8571
|
return;
|
8572
|
-
|
8572
|
+
Re.priorWebsocketSuccess = n.name === "websocket", this.transport.pause(() => {
|
8573
8573
|
s || this.readyState !== "closed" && (c(), this.setTransport(n), n.send([{ type: "upgrade" }]), this.emitReserved("upgrade", n), n = null, this.upgrading = !1, this.flush());
|
8574
8574
|
});
|
8575
8575
|
} else {
|
@@ -8625,59 +8625,59 @@ let Uu = class extends Bu {
|
|
8625
8625
|
};
|
8626
8626
|
function $u(t, e = "", n) {
|
8627
8627
|
let s = t;
|
8628
|
-
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 =
|
8628
|
+
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 = Gn(t)), s.port || (/^(http|ws)$/.test(s.protocol) ? s.port = "80" : /^(http|ws)s$/.test(s.protocol) && (s.port = "443")), s.path = s.path || "/";
|
8629
8629
|
const i = s.host.indexOf(":") !== -1 ? "[" + s.host + "]" : s.host;
|
8630
8630
|
return s.id = s.protocol + "://" + i + ":" + s.port + e, s.href = s.protocol + "://" + i + (n && n.port === s.port ? "" : ":" + s.port), s;
|
8631
8631
|
}
|
8632
8632
|
const Pu = typeof ArrayBuffer == "function", qu = (t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t.buffer instanceof ArrayBuffer, fo = Object.prototype.toString, Wu = typeof Blob == "function" || typeof Blob < "u" && fo.call(Blob) === "[object BlobConstructor]", zu = typeof File == "function" || typeof File < "u" && fo.call(File) === "[object FileConstructor]";
|
8633
|
-
function
|
8633
|
+
function vs(t) {
|
8634
8634
|
return Pu && (t instanceof ArrayBuffer || qu(t)) || Wu && t instanceof Blob || zu && t instanceof File;
|
8635
8635
|
}
|
8636
|
-
function
|
8636
|
+
function Ht(t, e) {
|
8637
8637
|
if (!t || typeof t != "object")
|
8638
8638
|
return !1;
|
8639
8639
|
if (Array.isArray(t)) {
|
8640
8640
|
for (let n = 0, s = t.length; n < s; n++)
|
8641
|
-
if (
|
8641
|
+
if (Ht(t[n]))
|
8642
8642
|
return !0;
|
8643
8643
|
return !1;
|
8644
8644
|
}
|
8645
|
-
if (
|
8645
|
+
if (vs(t))
|
8646
8646
|
return !0;
|
8647
8647
|
if (t.toJSON && typeof t.toJSON == "function" && arguments.length === 1)
|
8648
|
-
return
|
8648
|
+
return Ht(t.toJSON(), !0);
|
8649
8649
|
for (const n in t)
|
8650
|
-
if (Object.prototype.hasOwnProperty.call(t, n) &&
|
8650
|
+
if (Object.prototype.hasOwnProperty.call(t, n) && Ht(t[n]))
|
8651
8651
|
return !0;
|
8652
8652
|
return !1;
|
8653
8653
|
}
|
8654
8654
|
function Hu(t) {
|
8655
8655
|
const e = [], n = t.data, s = t;
|
8656
|
-
return s.data =
|
8656
|
+
return s.data = Qn(n, e), s.attachments = e.length, { packet: s, buffers: e };
|
8657
8657
|
}
|
8658
|
-
function
|
8658
|
+
function Qn(t, e) {
|
8659
8659
|
if (!t)
|
8660
8660
|
return t;
|
8661
|
-
if (
|
8661
|
+
if (vs(t)) {
|
8662
8662
|
const n = { _placeholder: !0, num: e.length };
|
8663
8663
|
return e.push(t), n;
|
8664
8664
|
} else if (Array.isArray(t)) {
|
8665
8665
|
const n = new Array(t.length);
|
8666
8666
|
for (let s = 0; s < t.length; s++)
|
8667
|
-
n[s] =
|
8667
|
+
n[s] = Qn(t[s], e);
|
8668
8668
|
return n;
|
8669
8669
|
} else if (typeof t == "object" && !(t instanceof Date)) {
|
8670
8670
|
const n = {};
|
8671
8671
|
for (const s in t)
|
8672
|
-
Object.prototype.hasOwnProperty.call(t, s) && (n[s] =
|
8672
|
+
Object.prototype.hasOwnProperty.call(t, s) && (n[s] = Qn(t[s], e));
|
8673
8673
|
return n;
|
8674
8674
|
}
|
8675
8675
|
return t;
|
8676
8676
|
}
|
8677
8677
|
function Zu(t, e) {
|
8678
|
-
return t.data =
|
8678
|
+
return t.data = Xn(t.data, e), delete t.attachments, t;
|
8679
8679
|
}
|
8680
|
-
function
|
8680
|
+
function Xn(t, e) {
|
8681
8681
|
if (!t)
|
8682
8682
|
return t;
|
8683
8683
|
if (t && t._placeholder === !0) {
|
@@ -8686,10 +8686,10 @@ function es(t, e) {
|
|
8686
8686
|
throw new Error("illegal attachments");
|
8687
8687
|
} else if (Array.isArray(t))
|
8688
8688
|
for (let n = 0; n < t.length; n++)
|
8689
|
-
t[n] =
|
8689
|
+
t[n] = Xn(t[n], e);
|
8690
8690
|
else if (typeof t == "object")
|
8691
8691
|
for (const n in t)
|
8692
|
-
Object.prototype.hasOwnProperty.call(t, n) && (t[n] =
|
8692
|
+
Object.prototype.hasOwnProperty.call(t, n) && (t[n] = Xn(t[n], e));
|
8693
8693
|
return t;
|
8694
8694
|
}
|
8695
8695
|
const ju = [
|
@@ -8721,7 +8721,7 @@ class Ju {
|
|
8721
8721
|
* @param {Object} obj - packet object
|
8722
8722
|
*/
|
8723
8723
|
encode(e) {
|
8724
|
-
return (e.type === R.EVENT || e.type === R.ACK) &&
|
8724
|
+
return (e.type === R.EVENT || e.type === R.ACK) && Ht(e) ? this.encodeAsBinary({
|
8725
8725
|
type: e.type === R.EVENT ? R.BINARY_EVENT : R.BINARY_ACK,
|
8726
8726
|
nsp: e.nsp,
|
8727
8727
|
data: e.data,
|
@@ -8748,7 +8748,7 @@ class Ju {
|
|
8748
8748
|
function _r(t) {
|
8749
8749
|
return Object.prototype.toString.call(t) === "[object Object]";
|
8750
8750
|
}
|
8751
|
-
class
|
8751
|
+
class bs extends H {
|
8752
8752
|
/**
|
8753
8753
|
* Decoder constructor
|
8754
8754
|
*
|
@@ -8770,7 +8770,7 @@ class Ts extends H {
|
|
8770
8770
|
n = this.decodeString(e);
|
8771
8771
|
const s = n.type === R.BINARY_EVENT;
|
8772
8772
|
s || n.type === R.BINARY_ACK ? (n.type = s ? R.EVENT : R.ACK, this.reconstructor = new Gu(n), n.attachments === 0 && super.emitReserved("decoded", n)) : super.emitReserved("decoded", n);
|
8773
|
-
} else if (
|
8773
|
+
} else if (vs(e) || e.base64)
|
8774
8774
|
if (this.reconstructor)
|
8775
8775
|
n = this.reconstructor.takeBinaryData(e), n && (this.reconstructor = null, super.emitReserved("decoded", n));
|
8776
8776
|
else
|
@@ -8823,7 +8823,7 @@ class Ts extends H {
|
|
8823
8823
|
}
|
8824
8824
|
if (e.charAt(++n)) {
|
8825
8825
|
const i = this.tryParse(e.substr(n));
|
8826
|
-
if (
|
8826
|
+
if (bs.isPayloadValid(s.type, i))
|
8827
8827
|
s.data = i;
|
8828
8828
|
else
|
8829
8829
|
throw new Error("invalid payload");
|
@@ -8888,7 +8888,7 @@ class Gu {
|
|
8888
8888
|
}
|
8889
8889
|
const Ku = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8890
8890
|
__proto__: null,
|
8891
|
-
Decoder:
|
8891
|
+
Decoder: bs,
|
8892
8892
|
Encoder: Ju,
|
8893
8893
|
get PacketType() {
|
8894
8894
|
return R;
|
@@ -9501,10 +9501,10 @@ class ho extends H {
|
|
9501
9501
|
}
|
9502
9502
|
}
|
9503
9503
|
}
|
9504
|
-
function
|
9504
|
+
function it(t) {
|
9505
9505
|
t = t || {}, this.ms = t.min || 100, this.max = t.max || 1e4, this.factor = t.factor || 2, this.jitter = t.jitter > 0 && t.jitter <= 1 ? t.jitter : 0, this.attempts = 0;
|
9506
9506
|
}
|
9507
|
-
|
9507
|
+
it.prototype.duration = function() {
|
9508
9508
|
var t = this.ms * Math.pow(this.factor, this.attempts++);
|
9509
9509
|
if (this.jitter) {
|
9510
9510
|
var e = Math.random(), n = Math.floor(e * this.jitter * t);
|
@@ -9512,22 +9512,22 @@ ot.prototype.duration = function() {
|
|
9512
9512
|
}
|
9513
9513
|
return Math.min(t, this.max) | 0;
|
9514
9514
|
};
|
9515
|
-
|
9515
|
+
it.prototype.reset = function() {
|
9516
9516
|
this.attempts = 0;
|
9517
9517
|
};
|
9518
|
-
|
9518
|
+
it.prototype.setMin = function(t) {
|
9519
9519
|
this.ms = t;
|
9520
9520
|
};
|
9521
|
-
|
9521
|
+
it.prototype.setMax = function(t) {
|
9522
9522
|
this.max = t;
|
9523
9523
|
};
|
9524
|
-
|
9524
|
+
it.prototype.setJitter = function(t) {
|
9525
9525
|
this.jitter = t;
|
9526
9526
|
};
|
9527
|
-
class
|
9527
|
+
class es extends H {
|
9528
9528
|
constructor(e, n) {
|
9529
9529
|
var s;
|
9530
|
-
super(), this.nsps = {}, this.subs = [], e && typeof e == "object" && (n = e, e = void 0), n = n || {}, n.path = n.path || "/socket.io", this.opts = n,
|
9530
|
+
super(), this.nsps = {}, this.subs = [], e && typeof e == "object" && (n = e, e = void 0), n = n || {}, n.path = n.path || "/socket.io", this.opts = n, pn(this, n), this.reconnection(n.reconnection !== !1), this.reconnectionAttempts(n.reconnectionAttempts || 1 / 0), this.reconnectionDelay(n.reconnectionDelay || 1e3), this.reconnectionDelayMax(n.reconnectionDelayMax || 5e3), this.randomizationFactor((s = n.randomizationFactor) !== null && s !== void 0 ? s : 0.5), this.backoff = new it({
|
9531
9531
|
min: this.reconnectionDelay(),
|
9532
9532
|
max: this.reconnectionDelayMax(),
|
9533
9533
|
jitter: this.randomizationFactor()
|
@@ -9645,7 +9645,7 @@ class ts extends H {
|
|
9645
9645
|
* @private
|
9646
9646
|
*/
|
9647
9647
|
ondecoded(e) {
|
9648
|
-
|
9648
|
+
mn(() => {
|
9649
9649
|
this.emitReserved("packet", e);
|
9650
9650
|
}, this.setTimeoutFn);
|
9651
9651
|
}
|
@@ -9762,22 +9762,22 @@ class ts extends H {
|
|
9762
9762
|
this._reconnecting = !1, this.backoff.reset(), this.emitReserved("reconnect", e);
|
9763
9763
|
}
|
9764
9764
|
}
|
9765
|
-
const
|
9766
|
-
function
|
9765
|
+
const ut = {};
|
9766
|
+
function Zt(t, e) {
|
9767
9767
|
typeof t == "object" && (e = t, t = void 0), e = e || {};
|
9768
|
-
const n = $u(t, e.path || "/socket.io"), s = n.source, r = n.id, i = n.path, o =
|
9768
|
+
const n = $u(t, e.path || "/socket.io"), s = n.source, r = n.id, i = n.path, o = ut[r] && i in ut[r].nsps, a = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
|
9769
9769
|
let l;
|
9770
|
-
return a ? l = new
|
9770
|
+
return a ? l = new es(s, e) : (ut[r] || (ut[r] = new es(s, e)), l = ut[r]), n.query && !e.query && (e.query = n.queryKey), l.socket(n.path, e);
|
9771
9771
|
}
|
9772
|
-
Object.assign(
|
9773
|
-
Manager:
|
9772
|
+
Object.assign(Zt, {
|
9773
|
+
Manager: es,
|
9774
9774
|
Socket: ho,
|
9775
|
-
io:
|
9776
|
-
connect:
|
9775
|
+
io: Zt,
|
9776
|
+
connect: Zt
|
9777
9777
|
});
|
9778
9778
|
var mo = /* @__PURE__ */ ((t) => (t.WEBCHAT = "webchat", t.CENTRAL = "central", t.WHATSAPP = "whatsapp", t.TELEGRAM = "telegram", t.SMS = "sms", t))(mo || {});
|
9779
9779
|
function Xu() {
|
9780
|
-
const t =
|
9780
|
+
const t = ts(() => [
|
9781
9781
|
"Android",
|
9782
9782
|
"iPhone"
|
9783
9783
|
/* IOS */
|
@@ -9820,7 +9820,7 @@ function nc(t, e) {
|
|
9820
9820
|
const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
9821
9821
|
key: 0,
|
9822
9822
|
class: "dialog-overlay"
|
9823
|
-
}, ic = { class: "header-widget" }, oc = { class: "title-chat" }, ac = /* @__PURE__ */
|
9823
|
+
}, ic = { class: "header-widget" }, oc = { class: "title-chat" }, ac = /* @__PURE__ */ en({
|
9824
9824
|
__name: "ODialog",
|
9825
9825
|
props: {
|
9826
9826
|
modelValue: { type: Boolean },
|
@@ -9832,23 +9832,23 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
9832
9832
|
const n = t, s = e, r = U(!1), i = () => {
|
9833
9833
|
s("update:modelValue", !1);
|
9834
9834
|
};
|
9835
|
-
return
|
9835
|
+
return ss(() => {
|
9836
9836
|
const o = document.getElementById("app");
|
9837
9837
|
if (!o) throw new Error("app is required");
|
9838
9838
|
let a = document.getElementById("dialogs");
|
9839
9839
|
a || (a = document.createElement("div"), a.id = "dialogs", a.classList.add("widget-component"), o.appendChild(a), r.value = !0);
|
9840
|
-
}), (o, a) => r.value ? (A(),
|
9840
|
+
}), (o, a) => r.value ? (A(), rs(ko, {
|
9841
9841
|
key: 0,
|
9842
9842
|
to: "#dialogs"
|
9843
9843
|
}, [
|
9844
9844
|
n.modelValue ? (A(), I("div", rc, [
|
9845
9845
|
b("div", {
|
9846
9846
|
class: "dialog-content",
|
9847
|
-
onClick: a[1] || (a[1] =
|
9847
|
+
onClick: a[1] || (a[1] = Ce(() => {
|
9848
9848
|
}, ["stop"]))
|
9849
9849
|
}, [
|
9850
9850
|
b("div", ic, [
|
9851
|
-
b("h4", oc,
|
9851
|
+
b("h4", oc, Ye(o.title), 1),
|
9852
9852
|
b("button", {
|
9853
9853
|
onClick: a[0] || (a[0] = () => i()),
|
9854
9854
|
class: "btn-close"
|
@@ -9860,8 +9860,8 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
9860
9860
|
Eo(o.$slots, "default", {}, void 0, !0)
|
9861
9861
|
])
|
9862
9862
|
])
|
9863
|
-
])) :
|
9864
|
-
])) :
|
9863
|
+
])) : ke("", !0)
|
9864
|
+
])) : ke("", !0);
|
9865
9865
|
}
|
9866
9866
|
}), lc = /* @__PURE__ */ ie(ac, [["__scopeId", "data-v-532e0111"]]), uc = { class: "widget" }, cc = { class: "header-widget flex-0" }, fc = { class: "title-chat" }, hc = {
|
9867
9867
|
class: "flex-1",
|
@@ -9884,7 +9884,7 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
9884
9884
|
}, Tc = ["src"], Sc = { class: "form-message" }, kc = { class: "jl-inputgroup-chat" }, Ec = {
|
9885
9885
|
type: "submit",
|
9886
9886
|
class: "pointer btn-primary"
|
9887
|
-
}, Oc = { key: 1 }, _c = ["src"], Cc = 14, xc = /* @__PURE__ */
|
9887
|
+
}, Oc = { key: 1 }, _c = ["src"], Cc = 14, xc = /* @__PURE__ */ en({
|
9888
9888
|
__name: "Chat",
|
9889
9889
|
props: {
|
9890
9890
|
titlePrincipal: {
|
@@ -9915,7 +9915,7 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
9915
9915
|
data: [],
|
9916
9916
|
canLoadMoreMessages: !1
|
9917
9917
|
}), u = U(""), c = U(!1), f = e, g = t, y = U(null);
|
9918
|
-
|
9918
|
+
ns(
|
9919
9919
|
() => g.visible,
|
9920
9920
|
async (p) => {
|
9921
9921
|
if (!p || (f("clear-new-messages"), $(), s.value > 0 && Ps(u.value, g.tokenAuth), u.value)) return;
|
@@ -9925,20 +9925,20 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
9925
9925
|
);
|
9926
9926
|
function d(p, m) {
|
9927
9927
|
var T;
|
9928
|
-
if (
|
9928
|
+
if (gn.value) {
|
9929
9929
|
he();
|
9930
9930
|
return;
|
9931
9931
|
}
|
9932
9932
|
if (p.key === "Enter" && p.shiftKey) {
|
9933
|
-
const
|
9934
|
-
p.target.value =
|
9933
|
+
const x = ((T = p.target) == null ? void 0 : T.value) || "";
|
9934
|
+
p.target.value = x + `
|
9935
9935
|
`, he();
|
9936
9936
|
return;
|
9937
9937
|
}
|
9938
9938
|
O({ codigoTipoMensaje: m }), ve.modelValue = !1;
|
9939
9939
|
}
|
9940
9940
|
function S(p, m) {
|
9941
|
-
var
|
9941
|
+
var N, L, j, ne;
|
9942
9942
|
if ((p == null ? void 0 : p.length) > 300) {
|
9943
9943
|
f("show-toast", {
|
9944
9944
|
severity: "warn",
|
@@ -9948,7 +9948,7 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
9948
9948
|
});
|
9949
9949
|
return;
|
9950
9950
|
}
|
9951
|
-
if (!p.trim() && m !==
|
9951
|
+
if (!p.trim() && m !== Le.IMAGEN) {
|
9952
9952
|
f("show-toast", {
|
9953
9953
|
severity: "warn",
|
9954
9954
|
summary: "Error",
|
@@ -9962,7 +9962,7 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
9962
9962
|
} : void 0;
|
9963
9963
|
return {
|
9964
9964
|
id: Lo(),
|
9965
|
-
chatId: (
|
9965
|
+
chatId: (L = (N = X.value) == null ? void 0 : N.chat) == null ? void 0 : L.id,
|
9966
9966
|
message: p,
|
9967
9967
|
visto: !0,
|
9968
9968
|
multimedia: !1,
|
@@ -9970,7 +9970,7 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
9970
9970
|
appChatId: u.value,
|
9971
9971
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
9972
9972
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
9973
|
-
file: (
|
9973
|
+
file: (j = Ie.value) == null ? void 0 : j[0],
|
9974
9974
|
urlFile: (ne = Se.value) == null ? void 0 : ne[0],
|
9975
9975
|
messageType: T,
|
9976
9976
|
sender: {
|
@@ -9981,12 +9981,12 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
9981
9981
|
response: void 0
|
9982
9982
|
};
|
9983
9983
|
}
|
9984
|
-
function w(p, m, T,
|
9984
|
+
function w(p, m, T, x) {
|
9985
9985
|
if (m == null) throw new Error("idx is required");
|
9986
9986
|
if (!T) {
|
9987
|
-
if (
|
9988
|
-
const
|
9989
|
-
|
9987
|
+
if (x) {
|
9988
|
+
const L = l.value.data[m];
|
9989
|
+
L.response = void 0;
|
9990
9990
|
} else
|
9991
9991
|
l.value.data[m].error = {
|
9992
9992
|
error: !0,
|
@@ -10000,78 +10000,78 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10000
10000
|
});
|
10001
10001
|
return;
|
10002
10002
|
}
|
10003
|
-
let
|
10004
|
-
if (
|
10005
|
-
const
|
10006
|
-
|
10003
|
+
let N = { ...T, chatId: p == null ? void 0 : p.chatId };
|
10004
|
+
if (x) {
|
10005
|
+
const L = l.value.data[m];
|
10006
|
+
L.response = T, N = { ...L, chatId: p == null ? void 0 : p.chatId };
|
10007
10007
|
} else {
|
10008
|
-
const
|
10009
|
-
|
10008
|
+
const L = { ...N };
|
10009
|
+
L.urlFile = l.value.data[m].urlFile, delete L.thumbnailFile, l.value.data[m] = L;
|
10010
10010
|
}
|
10011
|
-
return
|
10011
|
+
return N;
|
10012
10012
|
}
|
10013
10013
|
const O = async (p) => {
|
10014
10014
|
const m = S(n.value, p == null ? void 0 : p.codigoTipoMensaje);
|
10015
10015
|
if (!m) return;
|
10016
10016
|
let T = -1;
|
10017
10017
|
if (p != null && p.tipoCalificacionId) {
|
10018
|
-
T = l.value.data.findIndex((
|
10019
|
-
const
|
10020
|
-
|
10018
|
+
T = l.value.data.findIndex((L) => L.id === (p == null ? void 0 : p.mensajeARespondeId));
|
10019
|
+
const N = l.value.data[T];
|
10020
|
+
N && (N.response = m);
|
10021
10021
|
} else
|
10022
10022
|
T = l.value.data.push(m) - 1;
|
10023
|
-
const
|
10023
|
+
const x = {
|
10024
10024
|
message: n.value,
|
10025
10025
|
appChatId: u.value,
|
10026
10026
|
...p,
|
10027
10027
|
codigoTipoMensaje: p == null ? void 0 : p.codigoTipoMensaje,
|
10028
|
-
files:
|
10028
|
+
files: Ie.value
|
10029
10029
|
};
|
10030
|
-
n.value = "", x
|
10031
|
-
var
|
10032
|
-
let
|
10030
|
+
n.value = "", C(x).then((N) => {
|
10031
|
+
var j, ne;
|
10032
|
+
let L = w(
|
10033
10033
|
m,
|
10034
10034
|
T,
|
10035
|
-
|
10035
|
+
N,
|
10036
10036
|
p == null ? void 0 : p.tipoCalificacionId
|
10037
10037
|
);
|
10038
|
-
|
10039
|
-
var
|
10040
|
-
return ((
|
10038
|
+
L && (kt.value = !!l.value.data.find((Et) => {
|
10039
|
+
var Ts;
|
10040
|
+
return ((Ts = Et.messageType) == null ? void 0 : Ts.code) === Le.PREGUNTA && Et.response == null;
|
10041
10041
|
}), (ne = Z.value) == null || ne.emit(
|
10042
10042
|
"sendMessage",
|
10043
|
-
{ roomId: (
|
10044
|
-
(
|
10045
|
-
console.log("🚀 ~ socketService.value.emit ~ response:",
|
10043
|
+
{ roomId: (j = X == null ? void 0 : X.value) == null ? void 0 : j.appChat.id, message: L },
|
10044
|
+
(Et) => {
|
10045
|
+
console.log("🚀 ~ socketService.value.emit ~ response:", Et);
|
10046
10046
|
}
|
10047
10047
|
));
|
10048
10048
|
}), n.value = "", $(), B.value && (B.value.style.height = "20px");
|
10049
|
-
},
|
10049
|
+
}, C = async (p) => {
|
10050
10050
|
const m = {
|
10051
10051
|
...p,
|
10052
10052
|
esCliente: !0
|
10053
10053
|
};
|
10054
10054
|
return va(m, g.tokenAuth);
|
10055
10055
|
}, V = async () => {
|
10056
|
-
var
|
10057
|
-
const p = (
|
10056
|
+
var x, N, L;
|
10057
|
+
const p = (x = l.value.data[0]) == null ? void 0 : x.id, m = {
|
10058
10058
|
lastMessagesId: p,
|
10059
10059
|
appChatId: u.value,
|
10060
10060
|
limit: 10
|
10061
10061
|
};
|
10062
10062
|
c.value = !0;
|
10063
10063
|
const T = await wa({ body: m, token: g.tokenAuth });
|
10064
|
-
c.value = !1,
|
10064
|
+
c.value = !1, kt.value = !!T.data.find((j) => {
|
10065
10065
|
var ne;
|
10066
|
-
return ((ne =
|
10066
|
+
return ((ne = j.messageType) == null ? void 0 : ne.code) === Le.PREGUNTA && j.response == null;
|
10067
10067
|
}), l.value.data.unshift(
|
10068
|
-
...T.data.sort((
|
10069
|
-
), l.value.canLoadMoreMessages = T.pagination.total > T.pagination.size, p && ((
|
10070
|
-
},
|
10068
|
+
...T.data.sort((j, ne) => -ne.createdAt.localeCompare(j.createdAt))
|
10069
|
+
), l.value.canLoadMoreMessages = T.pagination.total > T.pagination.size, p && ((N = y.value) != null && N.scrollHeight) && oe((L = y.value) == null ? void 0 : L.scrollHeight), p || $();
|
10070
|
+
}, te = async (p) => {
|
10071
10071
|
f("show-confirm", async () => {
|
10072
|
-
var T,
|
10072
|
+
var T, x, N;
|
10073
10073
|
if (!((T = p.error) != null && T.id)) return;
|
10074
|
-
const m = await
|
10074
|
+
const m = await C({
|
10075
10075
|
message: p.message,
|
10076
10076
|
appChatId: u.value
|
10077
10077
|
});
|
@@ -10083,24 +10083,24 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10083
10083
|
life: 5e3
|
10084
10084
|
});
|
10085
10085
|
else {
|
10086
|
-
const
|
10086
|
+
const L = iu(
|
10087
10087
|
l.value.data,
|
10088
10088
|
"id",
|
10089
10089
|
p.error.id
|
10090
|
-
);
|
10091
|
-
l.value.data[
|
10092
|
-
roomId: (
|
10093
|
-
message:
|
10090
|
+
), j = { ...m, error: void 0 };
|
10091
|
+
l.value.data[L] = j, (N = Z.value) == null || N.emit("sendMessage", {
|
10092
|
+
roomId: (x = X == null ? void 0 : X.value) == null ? void 0 : x.appChat.id,
|
10093
|
+
message: j
|
10094
10094
|
});
|
10095
10095
|
}
|
10096
10096
|
$();
|
10097
10097
|
});
|
10098
10098
|
}, $ = () => {
|
10099
|
-
|
10099
|
+
ot(() => {
|
10100
10100
|
y.value && (y.value.scrollTop = y.value.scrollHeight);
|
10101
10101
|
});
|
10102
10102
|
}, oe = (p) => {
|
10103
|
-
|
10103
|
+
ot(() => {
|
10104
10104
|
const m = y.value;
|
10105
10105
|
m && (m.scrollTop = m.scrollHeight - p);
|
10106
10106
|
});
|
@@ -10108,33 +10108,32 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10108
10108
|
function he() {
|
10109
10109
|
B.value && (B.value.style.height = B.value.scrollHeight - Cc + "px", B.value.scrollHeight !== B.value.clientHeight && (B.value.style.height = B.value.scrollHeight + "px"));
|
10110
10110
|
}
|
10111
|
-
const Z = U(),
|
10112
|
-
function
|
10113
|
-
var T,
|
10111
|
+
const Z = U(), X = U();
|
10112
|
+
function yn(p, m = mo.WEBCHAT) {
|
10113
|
+
var T, x;
|
10114
10114
|
if (!p) throw new Error("user chat is required");
|
10115
|
-
Z.value =
|
10115
|
+
Z.value = Zt(window.VITE_SOCKET_URI, {
|
10116
10116
|
query: {
|
10117
10117
|
// TODO: confirmar si se quita o no
|
10118
|
-
usuarioId: `${(
|
10118
|
+
usuarioId: `${(x = (T = p == null ? void 0 : p.chat) == null ? void 0 : T.persona) == null ? void 0 : x.funcionarioId}`,
|
10119
10119
|
aplicacion: m
|
10120
10120
|
},
|
10121
10121
|
extraHeaders: { Authorization: g.tokenAuth }
|
10122
10122
|
}), Z.value.removeAllListeners(), Z.value.on("connect", () => {
|
10123
|
-
var
|
10124
|
-
console.log("Conectado al servidor de sockets"), (
|
10123
|
+
var N, L;
|
10124
|
+
console.log("Conectado al servidor de sockets"), (L = Z.value) == null || L.emit("joinRoom", `${(N = p == null ? void 0 : p.appChat) == null ? void 0 : N.id}`);
|
10125
10125
|
}), Z.value.on("disconnect", () => {
|
10126
10126
|
console.log("Desconectado del servidor de sockets");
|
10127
|
-
}), Z.value.on("receiveMessage", (
|
10128
|
-
|
10129
|
-
|
10130
|
-
|
10131
|
-
|
10132
|
-
|
10133
|
-
|
10134
|
-
}), Ps(C.message.appChatId, g.tokenAuth), $(), !g.visible && f("new-message"));
|
10127
|
+
}), Z.value.on("receiveMessage", (N) => {
|
10128
|
+
console.log("Mensaje recibido:", N.message, p);
|
10129
|
+
const L = l.value.data.findIndex((j) => j.id === N.message.id);
|
10130
|
+
L !== -1 ? l.value.data[L].response = N.message.response : l.value.data.push(N.message), kt.value = !!l.value.data.find((j) => {
|
10131
|
+
var ne;
|
10132
|
+
return ((ne = j.messageType) == null ? void 0 : ne.code) === Le.PREGUNTA && j.response == null;
|
10133
|
+
}), Ps(N.message.appChatId, g.tokenAuth), $(), !g.visible && f("new-message");
|
10135
10134
|
});
|
10136
10135
|
}
|
10137
|
-
const { isMobile:
|
10136
|
+
const { isMobile: gn } = Xu();
|
10138
10137
|
function po({ message: p, emoji: m }) {
|
10139
10138
|
const T = async () => {
|
10140
10139
|
!p.id || !m || (n.value = m.iconUnicode, O({
|
@@ -10144,13 +10143,13 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10144
10143
|
};
|
10145
10144
|
f("onQualifying", { message: m.iconUnicode, callback: T });
|
10146
10145
|
}
|
10147
|
-
const
|
10146
|
+
const kt = U(!1), wn = ["image/png", "image/jpeg", "image/jpg", "image/webp"];
|
10148
10147
|
function yo() {
|
10149
10148
|
var T;
|
10150
|
-
|
10149
|
+
Ie.value = [], Se.value = [];
|
10151
10150
|
const p = Array.from((T = r.value) == null ? void 0 : T.files) ?? [], m = p == null ? void 0 : p[0];
|
10152
|
-
if (
|
10153
|
-
if (!
|
10151
|
+
if (Ie.value = p, !!m) {
|
10152
|
+
if (!wn.includes(m.type)) {
|
10154
10153
|
f("show-toast", {
|
10155
10154
|
severity: "warn",
|
10156
10155
|
summary: "Error",
|
@@ -10168,29 +10167,29 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10168
10167
|
});
|
10169
10168
|
return;
|
10170
10169
|
}
|
10171
|
-
Se.value.push(URL.createObjectURL(m)), i.value = 0, ve.title = "Vista previa", ve.modelValue = !0,
|
10172
|
-
var
|
10173
|
-
(
|
10170
|
+
Se.value.push(URL.createObjectURL(m)), i.value = 0, ve.title = "Vista previa", ve.modelValue = !0, ot(() => {
|
10171
|
+
var x;
|
10172
|
+
(x = B.value) == null || x.focus();
|
10174
10173
|
});
|
10175
10174
|
}
|
10176
10175
|
}
|
10177
10176
|
const go = (p) => {
|
10178
|
-
var
|
10179
|
-
const m = ((
|
10177
|
+
var x, N;
|
10178
|
+
const m = ((x = p.clipboardData) == null ? void 0 : x.files) ?? ((N = window.clipboardData) == null ? void 0 : N.files) ?? [];
|
10180
10179
|
if (m.length === 0) return;
|
10181
10180
|
const T = m == null ? void 0 : m[0];
|
10182
|
-
T &&
|
10183
|
-
var
|
10184
|
-
(
|
10181
|
+
T && wn.includes(T == null ? void 0 : T.type) && (p.preventDefault(), i.value = 0, Se.value = [], Ie.value = [T], Se.value.push(URL.createObjectURL(T)), ve.modelValue = !0, ot(() => {
|
10182
|
+
var L;
|
10183
|
+
(L = B.value) == null || L.focus();
|
10185
10184
|
}));
|
10186
10185
|
};
|
10187
10186
|
function wo(p) {
|
10188
10187
|
var m;
|
10189
10188
|
(m = p.dataTransfer) != null && m.items && (i.value = 0, Array.from(p.dataTransfer.items).forEach((T) => {
|
10190
10189
|
if (T.kind === "file") {
|
10191
|
-
const
|
10192
|
-
if (!
|
10193
|
-
if (!
|
10190
|
+
const x = T.getAsFile();
|
10191
|
+
if (!x) return;
|
10192
|
+
if (!wn.includes(x.type)) {
|
10194
10193
|
f("show-toast", {
|
10195
10194
|
severity: "error",
|
10196
10195
|
summary: "Error",
|
@@ -10199,31 +10198,31 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10199
10198
|
});
|
10200
10199
|
return;
|
10201
10200
|
}
|
10202
|
-
|
10201
|
+
Ie.value = [x], Se.value = [], Se.value.push(URL.createObjectURL(x)), ve.modelValue = !0;
|
10203
10202
|
}
|
10204
|
-
}),
|
10203
|
+
}), ot(() => {
|
10205
10204
|
var T;
|
10206
10205
|
(T = B.value) == null || T.focus();
|
10207
10206
|
}));
|
10208
10207
|
}
|
10209
|
-
const
|
10208
|
+
const Ie = U([]), Se = U([]), ve = Oo({
|
10210
10209
|
modelValue: !1,
|
10211
10210
|
"onUpdate:modelValue": (p) => {
|
10212
|
-
ve.modelValue = p, !p && (Se.value = [],
|
10211
|
+
ve.modelValue = p, !p && (Se.value = [], Ie.value = []);
|
10213
10212
|
},
|
10214
10213
|
title: "Preparar imagen"
|
10215
10214
|
});
|
10216
|
-
return
|
10215
|
+
return ss(async () => {
|
10217
10216
|
if (u.value) return;
|
10218
10217
|
const p = await $s(g.tokenAuth);
|
10219
|
-
p && (
|
10218
|
+
p && (X.value = p, u.value = p.appChat.id, s.value = p.appChat.totalNoVistosCliente, yn(p), V(), f("not-viewed-total", p.appChat.totalNoVistosCliente));
|
10220
10219
|
}), _o(() => {
|
10221
10220
|
var p;
|
10222
10221
|
(p = Z.value) == null || p.off();
|
10223
|
-
}), (p, m) => (A(), I(
|
10222
|
+
}), (p, m) => (A(), I(dt, null, [
|
10224
10223
|
b("div", uc, [
|
10225
10224
|
b("div", cc, [
|
10226
|
-
b("h4", fc,
|
10225
|
+
b("h4", fc, Ye(t.titlePrincipal), 1),
|
10227
10226
|
b("button", {
|
10228
10227
|
onClick: m[0] || (m[0] = () => t.toggleChat()),
|
10229
10228
|
class: "btn-close"
|
@@ -10235,28 +10234,28 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10235
10234
|
b("div", {
|
10236
10235
|
ref_key: "dropZoneRef",
|
10237
10236
|
ref: a,
|
10238
|
-
onDrop: m[1] || (m[1] =
|
10237
|
+
onDrop: m[1] || (m[1] = Ce(
|
10239
10238
|
(T) => {
|
10240
|
-
var
|
10241
|
-
wo(T), (
|
10239
|
+
var x, N;
|
10240
|
+
wo(T), (N = (x = T.target) == null ? void 0 : x.classList) == null || N.remove("drop-over"), T.target.style.zIndex = "-1";
|
10242
10241
|
},
|
10243
10242
|
["self", "prevent"]
|
10244
10243
|
)),
|
10245
|
-
onDragenter: m[2] || (m[2] =
|
10244
|
+
onDragenter: m[2] || (m[2] = Ce(
|
10246
10245
|
(T) => {
|
10247
|
-
var
|
10248
|
-
(
|
10246
|
+
var x, N;
|
10247
|
+
(N = (x = T.target) == null ? void 0 : x.classList) == null || N.add("drop-over");
|
10249
10248
|
},
|
10250
10249
|
["self"]
|
10251
10250
|
)),
|
10252
|
-
onDragleave: m[3] || (m[3] =
|
10251
|
+
onDragleave: m[3] || (m[3] = Ce(
|
10253
10252
|
(T) => {
|
10254
|
-
var
|
10255
|
-
(
|
10253
|
+
var x, N;
|
10254
|
+
(N = (x = T.target) == null ? void 0 : x.classList) == null || N.remove("drop-over"), T.target.style.zIndex = "-1";
|
10256
10255
|
},
|
10257
10256
|
["self"]
|
10258
10257
|
)),
|
10259
|
-
onDragover: m[4] || (m[4] =
|
10258
|
+
onDragover: m[4] || (m[4] = Ce(() => {
|
10260
10259
|
}, ["prevent"])),
|
10261
10260
|
style: { position: "absolute", bottom: "0", left: "0", right: "0", top: "0", "z-index": "-1" }
|
10262
10261
|
}, null, 544),
|
@@ -10264,17 +10263,17 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10264
10263
|
class: "messages-container",
|
10265
10264
|
ref_key: "messageContainerRef",
|
10266
10265
|
ref: y,
|
10267
|
-
onDragenter: m[7] || (m[7] =
|
10266
|
+
onDragenter: m[7] || (m[7] = Ce((T) => a.value.style.zIndex = "1", ["prevent"]))
|
10268
10267
|
}, [
|
10269
10268
|
c.value ? (A(), I("div", dc, [
|
10270
10269
|
le(ru)
|
10271
|
-
])) :
|
10272
|
-
l.value.data.length > 0 ? (A(),
|
10270
|
+
])) : ke("", !0),
|
10271
|
+
l.value.data.length > 0 ? (A(), rs(eu, {
|
10273
10272
|
key: 1,
|
10274
10273
|
messages: l.value.data,
|
10275
10274
|
canLoadMoreMessages: l.value.canLoadMoreMessages,
|
10276
10275
|
onLoadMore: V,
|
10277
|
-
onRetry:
|
10276
|
+
onRetry: te,
|
10278
10277
|
onOnQualifying: m[5] || (m[5] = (T) => po(T)),
|
10279
10278
|
onSee: m[6] || (m[6] = (T) => {
|
10280
10279
|
i.value = 1, o.value = T.urlFile, ve.title = "Imagen", ve.modelValue = !0;
|
@@ -10285,14 +10284,14 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10285
10284
|
], 544)
|
10286
10285
|
]),
|
10287
10286
|
b("div", pc, [
|
10288
|
-
|
10287
|
+
kt.value ? (A(), I("span", vc, " Necesitamos que nos califique la atención para continuar ")) : (A(), I("form", {
|
10289
10288
|
key: 0,
|
10290
10289
|
class: "message-send",
|
10291
|
-
onSubmit: m[12] || (m[12] =
|
10290
|
+
onSubmit: m[12] || (m[12] = Ce((T) => O(), ["prevent"]))
|
10292
10291
|
}, [
|
10293
10292
|
b("div", yc, [
|
10294
10293
|
b("div", gc, [
|
10295
|
-
|
10294
|
+
jt(b("textarea", {
|
10296
10295
|
"onUpdate:modelValue": m[8] || (m[8] = (T) => n.value = T),
|
10297
10296
|
class: "jl2-input-chat",
|
10298
10297
|
placeholder: "Escribe tu mensaje",
|
@@ -10300,14 +10299,14 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10300
10299
|
ref_key: "textAreaRef",
|
10301
10300
|
ref: B,
|
10302
10301
|
onInput: m[9] || (m[9] = () => he()),
|
10303
|
-
onKeydown: m[10] || (m[10] =
|
10302
|
+
onKeydown: m[10] || (m[10] = Ot(
|
10304
10303
|
(T) => {
|
10305
|
-
!
|
10304
|
+
!Fe(gn) && T.preventDefault();
|
10306
10305
|
},
|
10307
10306
|
["enter"]
|
10308
10307
|
)),
|
10309
|
-
onKeyup:
|
10310
|
-
onPaste:
|
10308
|
+
onKeyup: Ot(d, ["enter"]),
|
10309
|
+
onPaste: go
|
10311
10310
|
}, null, 544), [
|
10312
10311
|
[Ss, n.value]
|
10313
10312
|
]),
|
@@ -10341,24 +10340,24 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10341
10340
|
le(lc, Co(xo(ve)), {
|
10342
10341
|
default: No(() => [
|
10343
10342
|
i.value === 0 ? (A(), I("div", bc, [
|
10344
|
-
(A(!0), I(
|
10345
|
-
key:
|
10343
|
+
(A(!0), I(dt, null, Fn(Se.value, (T, x) => (A(), I("img", {
|
10344
|
+
key: x,
|
10346
10345
|
src: T.toString(),
|
10347
10346
|
alt: "Image",
|
10348
10347
|
width: "400"
|
10349
10348
|
}, null, 8, Tc))), 128)),
|
10350
10349
|
b("form", {
|
10351
10350
|
class: "message-send",
|
10352
|
-
onSubmit: m[17] || (m[17] =
|
10351
|
+
onSubmit: m[17] || (m[17] = Ce(
|
10353
10352
|
(T) => {
|
10354
|
-
O({ codigoTipoMensaje:
|
10353
|
+
O({ codigoTipoMensaje: Fe(Le).IMAGEN }), ve.modelValue = !1;
|
10355
10354
|
},
|
10356
10355
|
["prevent"]
|
10357
10356
|
))
|
10358
10357
|
}, [
|
10359
10358
|
b("div", Sc, [
|
10360
10359
|
b("div", kc, [
|
10361
|
-
|
10360
|
+
jt(b("textarea", {
|
10362
10361
|
"onUpdate:modelValue": m[13] || (m[13] = (T) => n.value = T),
|
10363
10362
|
autofocus: "",
|
10364
10363
|
class: "jl2-input-chat",
|
@@ -10366,14 +10365,14 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10366
10365
|
ref_key: "textAreaRef",
|
10367
10366
|
ref: B,
|
10368
10367
|
onInput: m[14] || (m[14] = () => he()),
|
10369
|
-
onKeydown: m[15] || (m[15] =
|
10368
|
+
onKeydown: m[15] || (m[15] = Ot(
|
10370
10369
|
(T) => {
|
10371
|
-
!
|
10370
|
+
!Fe(gn) && T.preventDefault();
|
10372
10371
|
},
|
10373
10372
|
["enter"]
|
10374
10373
|
)),
|
10375
|
-
onKeyup: m[16] || (m[16] =
|
10376
|
-
d(T,
|
10374
|
+
onKeyup: m[16] || (m[16] = Ot((T) => {
|
10375
|
+
d(T, Fe(Le).IMAGEN);
|
10377
10376
|
}, ["enter"]))
|
10378
10377
|
}, null, 544), [
|
10379
10378
|
[Ss, n.value]
|
@@ -10390,14 +10389,14 @@ const sc = /* @__PURE__ */ ie(ec, [["render", nc]]), rc = {
|
|
10390
10389
|
src: o.value,
|
10391
10390
|
alt: "Image",
|
10392
10391
|
style: { "max-height": "85vh" }
|
10393
|
-
}, null, 8, _c)) :
|
10392
|
+
}, null, 8, _c)) : ke("", !0)
|
10394
10393
|
]))
|
10395
10394
|
]),
|
10396
10395
|
_: 1
|
10397
10396
|
}, 16)
|
10398
10397
|
], 64));
|
10399
10398
|
}
|
10400
|
-
}), Nc = /* @__PURE__ */ ie(xc, [["__scopeId", "data-v-
|
10399
|
+
}), Nc = /* @__PURE__ */ ie(xc, [["__scopeId", "data-v-37a059c2"]]), Ac = {}, Rc = {
|
10401
10400
|
width: "87",
|
10402
10401
|
height: "87",
|
10403
10402
|
viewBox: "0 0 87 87",
|
@@ -10524,7 +10523,7 @@ const Hc = /* @__PURE__ */ ie(qc, [["render", zc]]), Zc = {
|
|
10524
10523
|
}, jc = {
|
10525
10524
|
key: 0,
|
10526
10525
|
class: "new-message-badge"
|
10527
|
-
}, Yc = { class: "chat-box" }, Jc = /* @__PURE__ */
|
10526
|
+
}, Yc = { class: "chat-box" }, Jc = /* @__PURE__ */ en({
|
10528
10527
|
__name: "Widget",
|
10529
10528
|
props: {
|
10530
10529
|
tokenAuth: { type: String, required: !0 },
|
@@ -10561,11 +10560,11 @@ const Hc = /* @__PURE__ */ ie(qc, [["render", zc]]), Zc = {
|
|
10561
10560
|
r.value = !r.value;
|
10562
10561
|
}, l = t;
|
10563
10562
|
return (u, c) => (A(), I("div", {
|
10564
|
-
class:
|
10563
|
+
class: Ve(["widget-component widget-css-reset widget-container", t.isDarkMode ? "chat-dark-mode" : ""])
|
10565
10564
|
}, [
|
10566
|
-
l.tokenAuth.length > 10 ?
|
10565
|
+
l.tokenAuth.length > 10 ? jt((A(), I("div", Zc, [
|
10567
10566
|
b("div", {
|
10568
|
-
class:
|
10567
|
+
class: Ve(["container-buttons-chat", { active: o.value }])
|
10569
10568
|
}, [
|
10570
10569
|
b("a", {
|
10571
10570
|
href: "javascript:;",
|
@@ -10589,14 +10588,14 @@ const Hc = /* @__PURE__ */ ie(qc, [["render", zc]]), Zc = {
|
|
10589
10588
|
]),
|
10590
10589
|
b("a", {
|
10591
10590
|
href: "javascript:;",
|
10592
|
-
class:
|
10591
|
+
class: Ve(["button webchat", { disabled: l.tokenAuth.length < 10 }]),
|
10593
10592
|
title: "Debe estar autenticado",
|
10594
10593
|
onClick: c[2] || (c[2] = (f) => o.value && l.tokenAuth.length > 10 && a())
|
10595
10594
|
}, [
|
10596
10595
|
le(Hc)
|
10597
10596
|
], 2)
|
10598
10597
|
], 2),
|
10599
|
-
i.value ? (A(), I("div", jc,
|
10598
|
+
i.value ? (A(), I("div", jc, Ye(i.value > 9 ? "9+" : i.value), 1)) : ke("", !0),
|
10600
10599
|
b("a", {
|
10601
10600
|
href: "javascript:;",
|
10602
10601
|
onClick: c[3] || (c[3] = (f) => l.tokenAuth.length > 10 && a()),
|
@@ -10606,9 +10605,9 @@ const Hc = /* @__PURE__ */ ie(qc, [["render", zc]]), Zc = {
|
|
10606
10605
|
])
|
10607
10606
|
], 512)), [
|
10608
10607
|
[ks, !r.value]
|
10609
|
-
]) :
|
10610
|
-
|
10611
|
-
t.tokenAuth ? (A(),
|
10608
|
+
]) : ke("", !0),
|
10609
|
+
jt(b("div", Yc, [
|
10610
|
+
t.tokenAuth ? (A(), rs(Nc, {
|
10612
10611
|
key: 0,
|
10613
10612
|
visible: r.value,
|
10614
10613
|
titlePrincipal: t.titlePrincipal,
|
@@ -10621,7 +10620,7 @@ const Hc = /* @__PURE__ */ ie(qc, [["render", zc]]), Zc = {
|
|
10621
10620
|
onNewMessage: c[7] || (c[7] = () => i.value++),
|
10622
10621
|
onNotViewedTotal: c[8] || (c[8] = (f) => i.value = f),
|
10623
10622
|
onOnQualifying: c[9] || (c[9] = (f) => n("onQualifying", f))
|
10624
|
-
}, null, 8, ["visible", "titlePrincipal", "tokenAuth", "user"])) :
|
10623
|
+
}, null, 8, ["visible", "titlePrincipal", "tokenAuth", "user"])) : ke("", !0)
|
10625
10624
|
], 512), [
|
10626
10625
|
[ks, r.value]
|
10627
10626
|
])
|