@orderingstack/front-hooks 6.2.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +180 -178
- package/dist/index.es.js.map +1 -1
- package/dist/packages/auth/dist/deps/AuthProvider.cjs.d.ts +73 -0
- package/dist/packages/auth/dist/deps/AuthProvider.cjs.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/AuthProvider.es.d.ts +71 -0
- package/dist/packages/auth/dist/deps/AuthProvider.es.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.cjs.d.ts +10 -0
- package/dist/packages/auth/dist/deps/web.cjs.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.cjs2.d.ts +16 -0
- package/dist/packages/auth/dist/deps/web.cjs2.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.cjs3.d.ts +40 -0
- package/dist/packages/auth/dist/deps/web.cjs3.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.cjs4.d.ts +27 -0
- package/dist/packages/auth/dist/deps/web.cjs4.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.cjs5.d.ts +35 -0
- package/dist/packages/auth/dist/deps/web.cjs5.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.es.d.ts +10 -0
- package/dist/packages/auth/dist/deps/web.es.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.es2.d.ts +16 -0
- package/dist/packages/auth/dist/deps/web.es2.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.es3.d.ts +40 -0
- package/dist/packages/auth/dist/deps/web.es3.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.es4.d.ts +27 -0
- package/dist/packages/auth/dist/deps/web.es4.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.es5.d.ts +35 -0
- package/dist/packages/auth/dist/deps/web.es5.d.ts.map +1 -0
- package/dist/packages/auth/dist/legacy.cjs.d.ts +7 -0
- package/dist/packages/auth/dist/legacy.cjs.d.ts.map +1 -0
- package/dist/packages/auth/dist/legacy.es.d.ts +8 -0
- package/dist/packages/auth/dist/legacy.es.d.ts.map +1 -0
- package/dist/packages/auth/dist/v6.cjs.d.ts +6 -0
- package/dist/packages/auth/dist/v6.cjs.d.ts.map +1 -0
- package/dist/packages/auth/dist/v6.es.d.ts +8 -0
- package/dist/packages/auth/dist/v6.es.d.ts.map +1 -0
- package/dist/packages/auth/src/AuthContext.d.ts +2 -1
- package/dist/packages/auth/src/AuthContext.d.ts.map +1 -1
- package/dist/packages/auth/src/AuthProvider.d.ts.map +1 -1
- package/dist/packages/auth/src/AuthProviderCommon.d.ts +2 -0
- package/dist/packages/auth/src/AuthProviderCommon.d.ts.map +1 -1
- package/dist/packages/auth/vite.config.d.ts.map +1 -1
- package/dist/packages/mparticle-plugin/dist/index.cjs.d.ts +3 -3
- package/dist/packages/mparticle-plugin/dist/index.cjs.d.ts.map +1 -1
- package/dist/packages/mparticle-plugin/dist/index.es.d.ts +4 -4
- package/dist/packages/mparticle-plugin/dist/index.es.d.ts.map +1 -1
- package/dist/packages/mparticle-plugin/src/index.d.ts.map +1 -1
- package/dist/packages/mparticle-plugin/vite.config.d.ts.map +1 -1
- package/dist/src/utils/build.d.ts +2 -0
- package/dist/src/utils/build.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -62,9 +62,9 @@ var Nn = wn, Ln = Object.prototype, jn = Ln.toString;
|
|
|
62
62
|
function Rn(t) {
|
|
63
63
|
return jn.call(t);
|
|
64
64
|
}
|
|
65
|
-
var Un = Rn, _r = Ct, Pn = Nn, Mn = Un,
|
|
65
|
+
var Un = Rn, _r = Ct, Pn = Nn, Mn = Un, Fn = "[object Null]", xn = "[object Undefined]", br = _r ? _r.toStringTag : void 0;
|
|
66
66
|
function Bn(t) {
|
|
67
|
-
return t == null ? t === void 0 ?
|
|
67
|
+
return t == null ? t === void 0 ? xn : Fn : br && br in Object(t) ? Pn(t) : Mn(t);
|
|
68
68
|
}
|
|
69
69
|
var wt = Bn;
|
|
70
70
|
function Yn(t) {
|
|
@@ -117,9 +117,9 @@ function ba(t, r) {
|
|
|
117
117
|
var e = _a(t, r);
|
|
118
118
|
return ya(e) ? e : void 0;
|
|
119
119
|
}
|
|
120
|
-
var rt = ba, Aa = rt, ma = q, Ta = Aa(ma, "DataView"), Ea = Ta, Ia = rt, Oa = q, Sa = Ia(Oa, "Map"), nr = Sa, Da = rt, Ca = q, wa = Da(Ca, "Promise"), Na = wa, La = rt, ja = q, Ra = La(ja, "Set"), Te = Ra, Ua = rt, Pa = q, Ma = Ua(Pa, "WeakMap"),
|
|
120
|
+
var rt = ba, Aa = rt, ma = q, Ta = Aa(ma, "DataView"), Ea = Ta, Ia = rt, Oa = q, Sa = Ia(Oa, "Map"), nr = Sa, Da = rt, Ca = q, wa = Da(Ca, "Promise"), Na = wa, La = rt, ja = q, Ra = La(ja, "Set"), Te = Ra, Ua = rt, Pa = q, Ma = Ua(Pa, "WeakMap"), Fa = Ma, Yt = Ea, Gt = nr, Wt = Na, Ht = Te, Kt = Fa, Ee = wt, nt = me, mr = "[object Map]", xa = "[object Object]", Tr = "[object Promise]", Er = "[object Set]", Ir = "[object WeakMap]", Or = "[object DataView]", Ba = nt(Yt), Ya = nt(Gt), Ga = nt(Wt), Wa = nt(Ht), Ha = nt(Kt), X = Ee;
|
|
121
121
|
(Yt && X(new Yt(new ArrayBuffer(1))) != Or || Gt && X(new Gt()) != mr || Wt && X(Wt.resolve()) != Tr || Ht && X(new Ht()) != Er || Kt && X(new Kt()) != Ir) && (X = function(t) {
|
|
122
|
-
var r = Ee(t), e = r ==
|
|
122
|
+
var r = Ee(t), e = r == xa ? t.constructor : void 0, n = e ? nt(e) : "";
|
|
123
123
|
if (n)
|
|
124
124
|
switch (n) {
|
|
125
125
|
case Ba:
|
|
@@ -172,12 +172,12 @@ function Pi(t) {
|
|
|
172
172
|
return li(t) && fi(t.length) && !!M[ui(t)];
|
|
173
173
|
}
|
|
174
174
|
var Mi = Pi;
|
|
175
|
-
function
|
|
175
|
+
function Fi(t) {
|
|
176
176
|
return function(r) {
|
|
177
177
|
return t(r);
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
var ir =
|
|
180
|
+
var ir = Fi, mt = { exports: {} };
|
|
181
181
|
mt.exports;
|
|
182
182
|
(function(t, r) {
|
|
183
183
|
var e = _e, n = r && !r.nodeType && r, i = n && !0 && t && !t.nodeType && t, a = i && i.exports === n, s = a && e.process, c = function() {
|
|
@@ -189,7 +189,7 @@ mt.exports;
|
|
|
189
189
|
}();
|
|
190
190
|
t.exports = c;
|
|
191
191
|
})(mt, mt.exports);
|
|
192
|
-
var sr = mt.exports,
|
|
192
|
+
var sr = mt.exports, xi = Mi, Bi = ir, Dr = sr, Cr = Dr && Dr.isTypedArray, Yi = Cr ? Bi(Cr) : xi, or = Yi, Gi = ye, Wi = gt, Hi = Oe, Ki = vt, qi = ar, Zi = Nt, Vi = Dt, zi = or, Ji = "[object Map]", ki = "[object Set]", Qi = Object.prototype, Xi = Qi.hasOwnProperty;
|
|
193
193
|
function ts(t) {
|
|
194
194
|
if (t == null)
|
|
195
195
|
return !0;
|
|
@@ -268,9 +268,9 @@ var De = { exports: {} };
|
|
|
268
268
|
}, l.toString = function() {
|
|
269
269
|
return this.toDate().toUTCString();
|
|
270
270
|
};
|
|
271
|
-
var
|
|
271
|
+
var _ = l.toDate;
|
|
272
272
|
l.toDate = function(v) {
|
|
273
|
-
return v === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
273
|
+
return v === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : _.call(this);
|
|
274
274
|
};
|
|
275
275
|
var T = l.diff;
|
|
276
276
|
l.diff = function(v, E, S) {
|
|
@@ -290,43 +290,43 @@ var Ce = { exports: {} };
|
|
|
290
290
|
})(z, function() {
|
|
291
291
|
var e = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, n = {};
|
|
292
292
|
return function(i, a, s) {
|
|
293
|
-
var c, l = function(y,
|
|
293
|
+
var c, l = function(y, _, T) {
|
|
294
294
|
T === void 0 && (T = {});
|
|
295
295
|
var v = new Date(y), E = function(S, o) {
|
|
296
296
|
o === void 0 && (o = {});
|
|
297
297
|
var f = o.timeZoneName || "short", h = S + "|" + f, u = n[h];
|
|
298
298
|
return u || (u = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: S, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: f }), n[h] = u), u;
|
|
299
|
-
}(
|
|
299
|
+
}(_, T);
|
|
300
300
|
return E.formatToParts(v);
|
|
301
|
-
}, d = function(y,
|
|
302
|
-
for (var T = l(y,
|
|
301
|
+
}, d = function(y, _) {
|
|
302
|
+
for (var T = l(y, _), v = [], E = 0; E < T.length; E += 1) {
|
|
303
303
|
var S = T[E], o = S.type, f = S.value, h = e[o];
|
|
304
304
|
h >= 0 && (v[h] = parseInt(f, 10));
|
|
305
305
|
}
|
|
306
306
|
var u = v[3], g = u === 24 ? 0 : u, D = v[0] + "-" + v[1] + "-" + v[2] + " " + g + ":" + v[4] + ":" + v[5] + ":000", O = +y;
|
|
307
307
|
return (s.utc(D).valueOf() - (O -= O % 1e3)) / 6e4;
|
|
308
308
|
}, $ = a.prototype;
|
|
309
|
-
$.tz = function(y,
|
|
309
|
+
$.tz = function(y, _) {
|
|
310
310
|
y === void 0 && (y = c);
|
|
311
311
|
var T = this.utcOffset(), v = this.toDate(), E = v.toLocaleString("en-US", { timeZone: y }), S = Math.round((v - new Date(E)) / 1e3 / 60), o = s(E, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(v.getTimezoneOffset() / 15) - S, !0);
|
|
312
|
-
if (
|
|
312
|
+
if (_) {
|
|
313
313
|
var f = o.utcOffset();
|
|
314
314
|
o = o.add(T - f, "minute");
|
|
315
315
|
}
|
|
316
316
|
return o.$x.$timezone = y, o;
|
|
317
317
|
}, $.offsetName = function(y) {
|
|
318
|
-
var
|
|
318
|
+
var _ = this.$x.$timezone || s.tz.guess(), T = l(this.valueOf(), _, { timeZoneName: y }).find(function(v) {
|
|
319
319
|
return v.type.toLowerCase() === "timezonename";
|
|
320
320
|
});
|
|
321
321
|
return T && T.value;
|
|
322
322
|
};
|
|
323
323
|
var p = $.startOf;
|
|
324
|
-
$.startOf = function(y,
|
|
325
|
-
if (!this.$x || !this.$x.$timezone) return p.call(this, y,
|
|
324
|
+
$.startOf = function(y, _) {
|
|
325
|
+
if (!this.$x || !this.$x.$timezone) return p.call(this, y, _);
|
|
326
326
|
var T = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
327
|
-
return p.call(T, y,
|
|
328
|
-
}, s.tz = function(y,
|
|
329
|
-
var v = T &&
|
|
327
|
+
return p.call(T, y, _).tz(this.$x.$timezone, !0);
|
|
328
|
+
}, s.tz = function(y, _, T) {
|
|
329
|
+
var v = T && _, E = T || _ || c, S = d(+s(), E);
|
|
330
330
|
if (typeof y != "string") return s(y).tz(E);
|
|
331
331
|
var o = function(g, D, O) {
|
|
332
332
|
var j = g - 60 * D * 1e3, R = d(j, O);
|
|
@@ -350,35 +350,35 @@ var we = { exports: {} };
|
|
|
350
350
|
(function(e, n) {
|
|
351
351
|
t.exports = n();
|
|
352
352
|
})(z, function() {
|
|
353
|
-
var e = 1e3, n = 6e4, i = 36e5, a = "millisecond", s = "second", c = "minute", l = "hour", d = "day", $ = "week", p = "month", y = "quarter",
|
|
354
|
-
var m = ["th", "st", "nd", "rd"],
|
|
355
|
-
return "[" + C + (m[(
|
|
356
|
-
} }, f = function(C, m,
|
|
353
|
+
var e = 1e3, n = 6e4, i = 36e5, a = "millisecond", s = "second", c = "minute", l = "hour", d = "day", $ = "week", p = "month", y = "quarter", _ = "year", T = "date", v = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, S = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, o = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(C) {
|
|
354
|
+
var m = ["th", "st", "nd", "rd"], b = C % 100;
|
|
355
|
+
return "[" + C + (m[(b - 20) % 10] || m[b] || m[0]) + "]";
|
|
356
|
+
} }, f = function(C, m, b) {
|
|
357
357
|
var I = String(C);
|
|
358
|
-
return !I || I.length >= m ? C : "" + Array(m + 1 - I.length).join(
|
|
358
|
+
return !I || I.length >= m ? C : "" + Array(m + 1 - I.length).join(b) + C;
|
|
359
359
|
}, h = { s: f, z: function(C) {
|
|
360
|
-
var m = -C.utcOffset(),
|
|
360
|
+
var m = -C.utcOffset(), b = Math.abs(m), I = Math.floor(b / 60), A = b % 60;
|
|
361
361
|
return (m <= 0 ? "+" : "-") + f(I, 2, "0") + ":" + f(A, 2, "0");
|
|
362
|
-
}, m: function C(m,
|
|
363
|
-
if (m.date() <
|
|
364
|
-
var I = 12 * (
|
|
365
|
-
return +(-(I + (
|
|
362
|
+
}, m: function C(m, b) {
|
|
363
|
+
if (m.date() < b.date()) return -C(b, m);
|
|
364
|
+
var I = 12 * (b.year() - m.year()) + (b.month() - m.month()), A = m.clone().add(I, p), w = b - A < 0, N = m.clone().add(I + (w ? -1 : 1), p);
|
|
365
|
+
return +(-(I + (b - A) / (w ? A - N : N - A)) || 0);
|
|
366
366
|
}, a: function(C) {
|
|
367
367
|
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
368
368
|
}, p: function(C) {
|
|
369
|
-
return { M: p, y:
|
|
369
|
+
return { M: p, y: _, w: $, d, D: T, h: l, m: c, s, ms: a, Q: y }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
370
370
|
}, u: function(C) {
|
|
371
371
|
return C === void 0;
|
|
372
372
|
} }, u = "en", g = {};
|
|
373
373
|
g[u] = o;
|
|
374
374
|
var D = "$isDayjsObject", O = function(C) {
|
|
375
375
|
return C instanceof dt || !(!C || !C[D]);
|
|
376
|
-
}, j = function C(m,
|
|
376
|
+
}, j = function C(m, b, I) {
|
|
377
377
|
var A;
|
|
378
378
|
if (!m) return u;
|
|
379
379
|
if (typeof m == "string") {
|
|
380
380
|
var w = m.toLowerCase();
|
|
381
|
-
g[w] && (A = w),
|
|
381
|
+
g[w] && (A = w), b && (g[w] = b, A = w);
|
|
382
382
|
var N = m.split("-");
|
|
383
383
|
if (!A && N.length > 1) return C(N[0]);
|
|
384
384
|
} else {
|
|
@@ -388,18 +388,18 @@ var we = { exports: {} };
|
|
|
388
388
|
return !I && A && (u = A), A || !I && u;
|
|
389
389
|
}, R = function(C, m) {
|
|
390
390
|
if (O(C)) return C.clone();
|
|
391
|
-
var
|
|
392
|
-
return
|
|
391
|
+
var b = typeof m == "object" ? m : {};
|
|
392
|
+
return b.date = C, b.args = arguments, new dt(b);
|
|
393
393
|
}, L = h;
|
|
394
394
|
L.l = j, L.i = O, L.w = function(C, m) {
|
|
395
395
|
return R(C, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
|
|
396
396
|
};
|
|
397
397
|
var dt = function() {
|
|
398
|
-
function C(
|
|
399
|
-
this.$L = j(
|
|
398
|
+
function C(b) {
|
|
399
|
+
this.$L = j(b.locale, null, !0), this.parse(b), this.$x = this.$x || b.x || {}, this[D] = !0;
|
|
400
400
|
}
|
|
401
401
|
var m = C.prototype;
|
|
402
|
-
return m.parse = function(
|
|
402
|
+
return m.parse = function(b) {
|
|
403
403
|
this.$d = function(I) {
|
|
404
404
|
var A = I.date, w = I.utc;
|
|
405
405
|
if (A === null) return /* @__PURE__ */ new Date(NaN);
|
|
@@ -408,41 +408,41 @@ var we = { exports: {} };
|
|
|
408
408
|
if (typeof A == "string" && !/Z$/i.test(A)) {
|
|
409
409
|
var N = A.match(E);
|
|
410
410
|
if (N) {
|
|
411
|
-
var U = N[2] - 1 || 0,
|
|
412
|
-
return w ? new Date(Date.UTC(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0,
|
|
411
|
+
var U = N[2] - 1 || 0, x = (N[7] || "0").substring(0, 3);
|
|
412
|
+
return w ? new Date(Date.UTC(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, x)) : new Date(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, x);
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
return new Date(A);
|
|
416
|
-
}(
|
|
416
|
+
}(b), this.init();
|
|
417
417
|
}, m.init = function() {
|
|
418
|
-
var
|
|
419
|
-
this.$y =
|
|
418
|
+
var b = this.$d;
|
|
419
|
+
this.$y = b.getFullYear(), this.$M = b.getMonth(), this.$D = b.getDate(), this.$W = b.getDay(), this.$H = b.getHours(), this.$m = b.getMinutes(), this.$s = b.getSeconds(), this.$ms = b.getMilliseconds();
|
|
420
420
|
}, m.$utils = function() {
|
|
421
421
|
return L;
|
|
422
422
|
}, m.isValid = function() {
|
|
423
423
|
return this.$d.toString() !== v;
|
|
424
|
-
}, m.isSame = function(
|
|
425
|
-
var A = R(
|
|
424
|
+
}, m.isSame = function(b, I) {
|
|
425
|
+
var A = R(b);
|
|
426
426
|
return this.startOf(I) <= A && A <= this.endOf(I);
|
|
427
|
-
}, m.isAfter = function(
|
|
428
|
-
return R(
|
|
429
|
-
}, m.isBefore = function(
|
|
430
|
-
return this.endOf(I) < R(
|
|
431
|
-
}, m.$g = function(
|
|
432
|
-
return L.u(
|
|
427
|
+
}, m.isAfter = function(b, I) {
|
|
428
|
+
return R(b) < this.startOf(I);
|
|
429
|
+
}, m.isBefore = function(b, I) {
|
|
430
|
+
return this.endOf(I) < R(b);
|
|
431
|
+
}, m.$g = function(b, I, A) {
|
|
432
|
+
return L.u(b) ? this[I] : this.set(A, b);
|
|
433
433
|
}, m.unix = function() {
|
|
434
434
|
return Math.floor(this.valueOf() / 1e3);
|
|
435
435
|
}, m.valueOf = function() {
|
|
436
436
|
return this.$d.getTime();
|
|
437
|
-
}, m.startOf = function(
|
|
438
|
-
var A = this, w = !!L.u(I) || I, N = L.p(
|
|
437
|
+
}, m.startOf = function(b, I) {
|
|
438
|
+
var A = this, w = !!L.u(I) || I, N = L.p(b), U = function(Q, G) {
|
|
439
439
|
var V = L.w(A.$u ? Date.UTC(A.$y, G, Q) : new Date(A.$y, G, Q), A);
|
|
440
440
|
return w ? V : V.endOf(d);
|
|
441
|
-
},
|
|
441
|
+
}, x = function(Q, G) {
|
|
442
442
|
return L.w(A.toDate()[Q].apply(A.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), A);
|
|
443
443
|
}, B = this.$W, Y = this.$M, W = this.$D, et = "set" + (this.$u ? "UTC" : "");
|
|
444
444
|
switch (N) {
|
|
445
|
-
case
|
|
445
|
+
case _:
|
|
446
446
|
return w ? U(1, 0) : U(31, 11);
|
|
447
447
|
case p:
|
|
448
448
|
return w ? U(1, Y) : U(0, Y + 1);
|
|
@@ -451,48 +451,48 @@ var we = { exports: {} };
|
|
|
451
451
|
return U(w ? W - ut : W + (6 - ut), Y);
|
|
452
452
|
case d:
|
|
453
453
|
case T:
|
|
454
|
-
return
|
|
454
|
+
return x(et + "Hours", 0);
|
|
455
455
|
case l:
|
|
456
|
-
return
|
|
456
|
+
return x(et + "Minutes", 1);
|
|
457
457
|
case c:
|
|
458
|
-
return
|
|
458
|
+
return x(et + "Seconds", 2);
|
|
459
459
|
case s:
|
|
460
|
-
return
|
|
460
|
+
return x(et + "Milliseconds", 3);
|
|
461
461
|
default:
|
|
462
462
|
return this.clone();
|
|
463
463
|
}
|
|
464
|
-
}, m.endOf = function(
|
|
465
|
-
return this.startOf(
|
|
466
|
-
}, m.$set = function(
|
|
467
|
-
var A, w = L.p(
|
|
468
|
-
if (w === p || w ===
|
|
464
|
+
}, m.endOf = function(b) {
|
|
465
|
+
return this.startOf(b, !1);
|
|
466
|
+
}, m.$set = function(b, I) {
|
|
467
|
+
var A, w = L.p(b), N = "set" + (this.$u ? "UTC" : ""), U = (A = {}, A[d] = N + "Date", A[T] = N + "Date", A[p] = N + "Month", A[_] = N + "FullYear", A[l] = N + "Hours", A[c] = N + "Minutes", A[s] = N + "Seconds", A[a] = N + "Milliseconds", A)[w], x = w === d ? this.$D + (I - this.$W) : I;
|
|
468
|
+
if (w === p || w === _) {
|
|
469
469
|
var B = this.clone().set(T, 1);
|
|
470
|
-
B.$d[U](
|
|
471
|
-
} else U && this.$d[U](
|
|
470
|
+
B.$d[U](x), B.init(), this.$d = B.set(T, Math.min(this.$D, B.daysInMonth())).$d;
|
|
471
|
+
} else U && this.$d[U](x);
|
|
472
472
|
return this.init(), this;
|
|
473
|
-
}, m.set = function(
|
|
474
|
-
return this.clone().$set(
|
|
475
|
-
}, m.get = function(
|
|
476
|
-
return this[L.p(
|
|
477
|
-
}, m.add = function(
|
|
473
|
+
}, m.set = function(b, I) {
|
|
474
|
+
return this.clone().$set(b, I);
|
|
475
|
+
}, m.get = function(b) {
|
|
476
|
+
return this[L.p(b)]();
|
|
477
|
+
}, m.add = function(b, I) {
|
|
478
478
|
var A, w = this;
|
|
479
|
-
|
|
479
|
+
b = Number(b);
|
|
480
480
|
var N = L.p(I), U = function(Y) {
|
|
481
481
|
var W = R(w);
|
|
482
|
-
return L.w(W.date(W.date() + Math.round(Y *
|
|
482
|
+
return L.w(W.date(W.date() + Math.round(Y * b)), w);
|
|
483
483
|
};
|
|
484
|
-
if (N === p) return this.set(p, this.$M +
|
|
485
|
-
if (N ===
|
|
484
|
+
if (N === p) return this.set(p, this.$M + b);
|
|
485
|
+
if (N === _) return this.set(_, this.$y + b);
|
|
486
486
|
if (N === d) return U(1);
|
|
487
487
|
if (N === $) return U(7);
|
|
488
|
-
var
|
|
488
|
+
var x = (A = {}, A[c] = n, A[l] = i, A[s] = e, A)[N] || 1, B = this.$d.getTime() + b * x;
|
|
489
489
|
return L.w(B, this);
|
|
490
|
-
}, m.subtract = function(
|
|
491
|
-
return this.add(-1 *
|
|
492
|
-
}, m.format = function(
|
|
490
|
+
}, m.subtract = function(b, I) {
|
|
491
|
+
return this.add(-1 * b, I);
|
|
492
|
+
}, m.format = function(b) {
|
|
493
493
|
var I = this, A = this.$locale();
|
|
494
494
|
if (!this.isValid()) return A.invalidDate || v;
|
|
495
|
-
var w =
|
|
495
|
+
var w = b || "YYYY-MM-DDTHH:mm:ssZ", N = L.z(this), U = this.$H, x = this.$m, B = this.$M, Y = A.weekdays, W = A.months, et = A.meridiem, k = function(G, V, ft, pt) {
|
|
496
496
|
return G && (G[V] || G(I, w)) || ft[V].slice(0, pt);
|
|
497
497
|
}, ut = function(G) {
|
|
498
498
|
return L.s(U % 12 || 12, G, "0");
|
|
@@ -536,13 +536,13 @@ var we = { exports: {} };
|
|
|
536
536
|
case "hh":
|
|
537
537
|
return ut(2);
|
|
538
538
|
case "a":
|
|
539
|
-
return Q(U,
|
|
539
|
+
return Q(U, x, !0);
|
|
540
540
|
case "A":
|
|
541
|
-
return Q(U,
|
|
541
|
+
return Q(U, x, !1);
|
|
542
542
|
case "m":
|
|
543
|
-
return String(
|
|
543
|
+
return String(x);
|
|
544
544
|
case "mm":
|
|
545
|
-
return L.s(
|
|
545
|
+
return L.s(x, 2, "0");
|
|
546
546
|
case "s":
|
|
547
547
|
return String(I.$s);
|
|
548
548
|
case "ss":
|
|
@@ -557,12 +557,12 @@ var we = { exports: {} };
|
|
|
557
557
|
});
|
|
558
558
|
}, m.utcOffset = function() {
|
|
559
559
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
560
|
-
}, m.diff = function(
|
|
561
|
-
var w, N = this, U = L.p(I),
|
|
562
|
-
return L.m(N,
|
|
560
|
+
}, m.diff = function(b, I, A) {
|
|
561
|
+
var w, N = this, U = L.p(I), x = R(b), B = (x.utcOffset() - this.utcOffset()) * n, Y = this - x, W = function() {
|
|
562
|
+
return L.m(N, x);
|
|
563
563
|
};
|
|
564
564
|
switch (U) {
|
|
565
|
-
case
|
|
565
|
+
case _:
|
|
566
566
|
w = W() / 12;
|
|
567
567
|
break;
|
|
568
568
|
case p:
|
|
@@ -594,9 +594,9 @@ var we = { exports: {} };
|
|
|
594
594
|
return this.endOf(p).$D;
|
|
595
595
|
}, m.$locale = function() {
|
|
596
596
|
return g[this.$L];
|
|
597
|
-
}, m.locale = function(
|
|
598
|
-
if (!
|
|
599
|
-
var A = this.clone(), w = j(
|
|
597
|
+
}, m.locale = function(b, I) {
|
|
598
|
+
if (!b) return this.$L;
|
|
599
|
+
var A = this.clone(), w = j(b, I, !0);
|
|
600
600
|
return w && (A.$L = w), A;
|
|
601
601
|
}, m.clone = function() {
|
|
602
602
|
return L.w(this.$d, this);
|
|
@@ -610,7 +610,7 @@ var we = { exports: {} };
|
|
|
610
610
|
return this.$d.toUTCString();
|
|
611
611
|
}, C;
|
|
612
612
|
}(), pr = dt.prototype;
|
|
613
|
-
return R.prototype = pr, [["$ms", a], ["$s", s], ["$m", c], ["$H", l], ["$W", d], ["$M", p], ["$y",
|
|
613
|
+
return R.prototype = pr, [["$ms", a], ["$s", s], ["$m", c], ["$H", l], ["$W", d], ["$M", p], ["$y", _], ["$D", T]].forEach(function(C) {
|
|
614
614
|
pr[C[1]] = function(m) {
|
|
615
615
|
return this.$g(m, C[0], C[1]);
|
|
616
616
|
};
|
|
@@ -641,13 +641,15 @@ const Ne = [
|
|
|
641
641
|
};
|
|
642
642
|
};
|
|
643
643
|
function qt(t, r, e) {
|
|
644
|
+
var l;
|
|
644
645
|
const { availability: n } = t;
|
|
645
646
|
if (!n) return !0;
|
|
646
647
|
if ($t(n)) return !1;
|
|
647
648
|
const i = e ? Z(e).tz(r) : Z().tz(r), a = i.day(), s = n[Ne[a]];
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
649
|
+
return !Array.isArray(s) || s.length % 2 !== 0 ? !1 : ((l = s == null ? void 0 : s.map((d, $) => $ % 2 === 0 ? [d, s[$ + 1]] : void 0)) == null ? void 0 : l.filter((d) => d !== void 0)).some((d) => {
|
|
650
|
+
const $ = i.minute(), p = i.hour(), y = Tt((d == null ? void 0 : d[0]) || "0"), _ = Tt((d == null ? void 0 : d[1]) || "0");
|
|
651
|
+
return (p > y.hour || p === y.hour && $ >= y.minutes) && (p < _.hour || p === _.hour && $ <= _.minutes);
|
|
652
|
+
});
|
|
651
653
|
}
|
|
652
654
|
const Zt = (t, r = void 0, e = void 0, n = !1) => n ? t.map((a) => {
|
|
653
655
|
let s;
|
|
@@ -780,11 +782,11 @@ function Ms(t) {
|
|
|
780
782
|
var r = this.__data__, e = r.delete(t);
|
|
781
783
|
return this.size = r.size, e;
|
|
782
784
|
}
|
|
783
|
-
var
|
|
784
|
-
function
|
|
785
|
+
var Fs = Ms;
|
|
786
|
+
function xs(t) {
|
|
785
787
|
return this.__data__.get(t);
|
|
786
788
|
}
|
|
787
|
-
var Bs =
|
|
789
|
+
var Bs = xs;
|
|
788
790
|
function Ys(t) {
|
|
789
791
|
return this.__data__.has(t);
|
|
790
792
|
}
|
|
@@ -865,7 +867,7 @@ function Uo(t, r) {
|
|
|
865
867
|
var e = Ro(this, t), n = e.size;
|
|
866
868
|
return e.set(t, r), this.size += e.size == n ? 0 : 1, this;
|
|
867
869
|
}
|
|
868
|
-
var Po = Uo, Mo = bo,
|
|
870
|
+
var Po = Uo, Mo = bo, Fo = So, xo = wo, Bo = jo, Yo = Po;
|
|
869
871
|
function ot(t) {
|
|
870
872
|
var r = -1, e = t == null ? 0 : t.length;
|
|
871
873
|
for (this.clear(); ++r < e; ) {
|
|
@@ -874,8 +876,8 @@ function ot(t) {
|
|
|
874
876
|
}
|
|
875
877
|
}
|
|
876
878
|
ot.prototype.clear = Mo;
|
|
877
|
-
ot.prototype.delete =
|
|
878
|
-
ot.prototype.get =
|
|
879
|
+
ot.prototype.delete = Fo;
|
|
880
|
+
ot.prototype.get = xo;
|
|
879
881
|
ot.prototype.has = Bo;
|
|
880
882
|
ot.prototype.set = Yo;
|
|
881
883
|
var je = ot, Go = jt, Wo = nr, Ho = je, Ko = 200;
|
|
@@ -889,7 +891,7 @@ function qo(t, r) {
|
|
|
889
891
|
}
|
|
890
892
|
return e.set(t, r), this.size = e.size, this;
|
|
891
893
|
}
|
|
892
|
-
var Zo = qo, Vo = jt, zo = Ps, Jo =
|
|
894
|
+
var Zo = qo, Vo = jt, zo = Ps, Jo = Fs, ko = Bs, Qo = Gs, Xo = Zo;
|
|
893
895
|
function ct(t) {
|
|
894
896
|
var r = this.__data__ = new Vo(t);
|
|
895
897
|
this.size = r.size;
|
|
@@ -973,9 +975,9 @@ function Mc(t) {
|
|
|
973
975
|
r.push(e);
|
|
974
976
|
return r;
|
|
975
977
|
}
|
|
976
|
-
var
|
|
978
|
+
var Fc = Mc, xc = ht, Bc = Dt, Yc = Fc, Gc = Object.prototype, Wc = Gc.hasOwnProperty;
|
|
977
979
|
function Hc(t) {
|
|
978
|
-
if (!
|
|
980
|
+
if (!xc(t))
|
|
979
981
|
return Yc(t);
|
|
980
982
|
var r = Bc(t), e = [];
|
|
981
983
|
for (var n in t)
|
|
@@ -1021,7 +1023,7 @@ var au = nu;
|
|
|
1021
1023
|
function iu() {
|
|
1022
1024
|
return [];
|
|
1023
1025
|
}
|
|
1024
|
-
var
|
|
1026
|
+
var Fe = iu, su = au, ou = Fe, cu = Object.prototype, uu = cu.propertyIsEnumerable, jr = Object.getOwnPropertySymbols, fu = jr ? function(t) {
|
|
1025
1027
|
return t == null ? [] : (t = Object(t), su(jr(t), function(r) {
|
|
1026
1028
|
return uu.call(t, r);
|
|
1027
1029
|
}));
|
|
@@ -1035,7 +1037,7 @@ function $u(t, r) {
|
|
|
1035
1037
|
t[i + e] = r[e];
|
|
1036
1038
|
return t;
|
|
1037
1039
|
}
|
|
1038
|
-
var
|
|
1040
|
+
var xe = $u, du = pe, pu = du(Object.getPrototypeOf, Object), Be = pu, yu = xe, _u = Be, bu = lr, Au = Fe, mu = Object.getOwnPropertySymbols, Tu = mu ? function(t) {
|
|
1039
1041
|
for (var r = []; t; )
|
|
1040
1042
|
yu(r, bu(t)), t = _u(t);
|
|
1041
1043
|
return r;
|
|
@@ -1043,7 +1045,7 @@ var Fe = $u, du = pe, pu = du(Object.getPrototypeOf, Object), Be = pu, yu = Fe,
|
|
|
1043
1045
|
function Ou(t, r) {
|
|
1044
1046
|
return Eu(t, Iu(t), r);
|
|
1045
1047
|
}
|
|
1046
|
-
var Su = Ou, Du =
|
|
1048
|
+
var Su = Ou, Du = xe, Cu = vt;
|
|
1047
1049
|
function wu(t, r, e) {
|
|
1048
1050
|
var n = r(t);
|
|
1049
1051
|
return Cu(t) ? n : Du(n, e(t));
|
|
@@ -1053,10 +1055,10 @@ function Ru(t) {
|
|
|
1053
1055
|
return Nu(t, ju, Lu);
|
|
1054
1056
|
}
|
|
1055
1057
|
var We = Ru, Uu = Ge, Pu = Ye, Mu = fr;
|
|
1056
|
-
function
|
|
1058
|
+
function Fu(t) {
|
|
1057
1059
|
return Uu(t, Mu, Pu);
|
|
1058
1060
|
}
|
|
1059
|
-
var
|
|
1061
|
+
var xu = Fu, Bu = Object.prototype, Yu = Bu.hasOwnProperty;
|
|
1060
1062
|
function Gu(t) {
|
|
1061
1063
|
var r = t.length, e = new t.constructor(r);
|
|
1062
1064
|
return r && typeof t[0] == "string" && Yu.call(t, "index") && (e.index = t.index, e.input = t.input), e;
|
|
@@ -1119,14 +1121,14 @@ function Cf(t, r, e) {
|
|
|
1119
1121
|
return cf(t);
|
|
1120
1122
|
}
|
|
1121
1123
|
}
|
|
1122
|
-
var wf = Cf, Nf = ht,
|
|
1124
|
+
var wf = Cf, Nf = ht, Fr = Object.create, Lf = /* @__PURE__ */ function() {
|
|
1123
1125
|
function t() {
|
|
1124
1126
|
}
|
|
1125
1127
|
return function(r) {
|
|
1126
1128
|
if (!Nf(r))
|
|
1127
1129
|
return {};
|
|
1128
|
-
if (
|
|
1129
|
-
return
|
|
1130
|
+
if (Fr)
|
|
1131
|
+
return Fr(r);
|
|
1130
1132
|
t.prototype = r;
|
|
1131
1133
|
var e = new t();
|
|
1132
1134
|
return t.prototype = void 0, e;
|
|
@@ -1135,17 +1137,17 @@ var wf = Cf, Nf = ht, xr = Object.create, Lf = /* @__PURE__ */ function() {
|
|
|
1135
1137
|
function Mf(t) {
|
|
1136
1138
|
return typeof t.constructor == "function" && !Pf(t) ? Rf(Uf(t)) : {};
|
|
1137
1139
|
}
|
|
1138
|
-
var
|
|
1140
|
+
var Ff = Mf, xf = gt, Bf = at, Yf = "[object Map]";
|
|
1139
1141
|
function Gf(t) {
|
|
1140
|
-
return Bf(t) &&
|
|
1142
|
+
return Bf(t) && xf(t) == Yf;
|
|
1141
1143
|
}
|
|
1142
|
-
var Wf = Gf, Hf = Wf, Kf = ir,
|
|
1144
|
+
var Wf = Gf, Hf = Wf, Kf = ir, xr = sr, Br = xr && xr.isMap, qf = Br ? Kf(Br) : Hf, Zf = qf, Vf = gt, zf = at, Jf = "[object Set]";
|
|
1143
1145
|
function kf(t) {
|
|
1144
1146
|
return zf(t) && Vf(t) == Jf;
|
|
1145
1147
|
}
|
|
1146
|
-
var Qf = kf, Xf = Qf, tl = ir, Yr = sr, Gr = Yr && Yr.isSet, rl = Gr ? tl(Gr) : Xf, el = rl, nl = Re, al = rc, il = Pe, sl = Pc, ol = Xc, cl = tu, ul = eu, fl = vu, ll = Su, hl = We, gl =
|
|
1147
|
-
P[Ke] = P[Dl] = P[Bl] = P[Yl] = P[Cl] = P[wl] = P[Gl] = P[Wl] = P[Hl] = P[Kl] = P[ql] = P[jl] = P[Rl] = P[Ze] = P[Ul] = P[Pl] = P[Ml] = P[
|
|
1148
|
-
P[Nl] = P[qe] = P[
|
|
1148
|
+
var Qf = kf, Xf = Qf, tl = ir, Yr = sr, Gr = Yr && Yr.isSet, rl = Gr ? tl(Gr) : Xf, el = rl, nl = Re, al = rc, il = Pe, sl = Pc, ol = Xc, cl = tu, ul = eu, fl = vu, ll = Su, hl = We, gl = xu, vl = gt, $l = Wu, dl = wf, pl = Ff, yl = vt, _l = Nt, bl = Zf, Al = ht, ml = el, Tl = ur, El = fr, Il = 1, Ol = 2, Sl = 4, Ke = "[object Arguments]", Dl = "[object Array]", Cl = "[object Boolean]", wl = "[object Date]", Nl = "[object Error]", qe = "[object Function]", Ll = "[object GeneratorFunction]", jl = "[object Map]", Rl = "[object Number]", Ze = "[object Object]", Ul = "[object RegExp]", Pl = "[object Set]", Ml = "[object String]", Fl = "[object Symbol]", xl = "[object WeakMap]", Bl = "[object ArrayBuffer]", Yl = "[object DataView]", Gl = "[object Float32Array]", Wl = "[object Float64Array]", Hl = "[object Int8Array]", Kl = "[object Int16Array]", ql = "[object Int32Array]", Zl = "[object Uint8Array]", Vl = "[object Uint8ClampedArray]", zl = "[object Uint16Array]", Jl = "[object Uint32Array]", P = {};
|
|
1149
|
+
P[Ke] = P[Dl] = P[Bl] = P[Yl] = P[Cl] = P[wl] = P[Gl] = P[Wl] = P[Hl] = P[Kl] = P[ql] = P[jl] = P[Rl] = P[Ze] = P[Ul] = P[Pl] = P[Ml] = P[Fl] = P[Zl] = P[Vl] = P[zl] = P[Jl] = !0;
|
|
1150
|
+
P[Nl] = P[qe] = P[xl] = !1;
|
|
1149
1151
|
function bt(t, r, e, n, i, a) {
|
|
1150
1152
|
var s, c = r & Il, l = r & Ol, d = r & Sl;
|
|
1151
1153
|
if (e && (s = i ? e(t, n, i, a) : e(t)), s !== void 0)
|
|
@@ -1170,9 +1172,9 @@ function bt(t, r, e, n, i, a) {
|
|
|
1170
1172
|
}
|
|
1171
1173
|
}
|
|
1172
1174
|
a || (a = new nl());
|
|
1173
|
-
var
|
|
1174
|
-
if (
|
|
1175
|
-
return
|
|
1175
|
+
var _ = a.get(t);
|
|
1176
|
+
if (_)
|
|
1177
|
+
return _;
|
|
1176
1178
|
a.set(t, s), ml(t) ? t.forEach(function(E) {
|
|
1177
1179
|
s.add(bt(E, r, e, E, t, a));
|
|
1178
1180
|
}) : bl(t) && t.forEach(function(E, S) {
|
|
@@ -1224,7 +1226,7 @@ function _h(t, r, e, n, i, a) {
|
|
|
1224
1226
|
var d = a.get(t), $ = a.get(r);
|
|
1225
1227
|
if (d && $)
|
|
1226
1228
|
return d == r && $ == t;
|
|
1227
|
-
var p = -1, y = !0,
|
|
1229
|
+
var p = -1, y = !0, _ = e & yh ? new vh() : void 0;
|
|
1228
1230
|
for (a.set(t, r), a.set(r, t); ++p < c; ) {
|
|
1229
1231
|
var T = t[p], v = r[p];
|
|
1230
1232
|
if (n)
|
|
@@ -1235,10 +1237,10 @@ function _h(t, r, e, n, i, a) {
|
|
|
1235
1237
|
y = !1;
|
|
1236
1238
|
break;
|
|
1237
1239
|
}
|
|
1238
|
-
if (
|
|
1240
|
+
if (_) {
|
|
1239
1241
|
if (!$h(r, function(S, o) {
|
|
1240
|
-
if (!dh(
|
|
1241
|
-
return
|
|
1242
|
+
if (!dh(_, o) && (T === S || i(T, S, e, n, a)))
|
|
1243
|
+
return _.push(o);
|
|
1242
1244
|
})) {
|
|
1243
1245
|
y = !1;
|
|
1244
1246
|
break;
|
|
@@ -1264,14 +1266,14 @@ function mh(t) {
|
|
|
1264
1266
|
e[++r] = n;
|
|
1265
1267
|
}), e;
|
|
1266
1268
|
}
|
|
1267
|
-
var vr = mh, Wr = Ct, Hr = He, Th = cr, Eh = Je, Ih = Ah, Oh = vr, Sh = 1, Dh = 2, Ch = "[object Boolean]", wh = "[object Date]", Nh = "[object Error]", Lh = "[object Map]", jh = "[object Number]", Rh = "[object RegExp]", Uh = "[object Set]", Ph = "[object String]", Mh = "[object Symbol]",
|
|
1269
|
+
var vr = mh, Wr = Ct, Hr = He, Th = cr, Eh = Je, Ih = Ah, Oh = vr, Sh = 1, Dh = 2, Ch = "[object Boolean]", wh = "[object Date]", Nh = "[object Error]", Lh = "[object Map]", jh = "[object Number]", Rh = "[object RegExp]", Uh = "[object Set]", Ph = "[object String]", Mh = "[object Symbol]", Fh = "[object ArrayBuffer]", xh = "[object DataView]", Kr = Wr ? Wr.prototype : void 0, Ft = Kr ? Kr.valueOf : void 0;
|
|
1268
1270
|
function Bh(t, r, e, n, i, a, s) {
|
|
1269
1271
|
switch (e) {
|
|
1270
|
-
case
|
|
1272
|
+
case xh:
|
|
1271
1273
|
if (t.byteLength != r.byteLength || t.byteOffset != r.byteOffset)
|
|
1272
1274
|
return !1;
|
|
1273
1275
|
t = t.buffer, r = r.buffer;
|
|
1274
|
-
case
|
|
1276
|
+
case Fh:
|
|
1275
1277
|
return !(t.byteLength != r.byteLength || !a(new Hr(t), new Hr(r)));
|
|
1276
1278
|
case Ch:
|
|
1277
1279
|
case wh:
|
|
@@ -1295,8 +1297,8 @@ function Bh(t, r, e, n, i, a, s) {
|
|
|
1295
1297
|
var $ = Eh(c(t), c(r), n, i, a, s);
|
|
1296
1298
|
return s.delete(t), $;
|
|
1297
1299
|
case Mh:
|
|
1298
|
-
if (
|
|
1299
|
-
return
|
|
1300
|
+
if (Ft)
|
|
1301
|
+
return Ft.call(t) == Ft.call(r);
|
|
1300
1302
|
}
|
|
1301
1303
|
return !1;
|
|
1302
1304
|
}
|
|
@@ -1310,9 +1312,9 @@ function Kh(t, r, e, n, i, a) {
|
|
|
1310
1312
|
if (!(s ? y in r : Hh.call(r, y)))
|
|
1311
1313
|
return !1;
|
|
1312
1314
|
}
|
|
1313
|
-
var
|
|
1314
|
-
if (
|
|
1315
|
-
return
|
|
1315
|
+
var _ = a.get(t), T = a.get(r);
|
|
1316
|
+
if (_ && T)
|
|
1317
|
+
return _ == r && T == t;
|
|
1316
1318
|
var v = !0;
|
|
1317
1319
|
a.set(t, r), a.set(r, t);
|
|
1318
1320
|
for (var E = s; ++p < l; ) {
|
|
@@ -1332,7 +1334,7 @@ function Kh(t, r, e, n, i, a) {
|
|
|
1332
1334
|
}
|
|
1333
1335
|
return a.delete(t), a.delete(r), v;
|
|
1334
1336
|
}
|
|
1335
|
-
var qh = Kh,
|
|
1337
|
+
var qh = Kh, xt = Re, Zh = Je, Vh = Yh, zh = qh, Zr = gt, Vr = vt, zr = Nt, Jh = or, kh = 1, Jr = "[object Arguments]", kr = "[object Array]", _t = "[object Object]", Qh = Object.prototype, Qr = Qh.hasOwnProperty;
|
|
1336
1338
|
function Xh(t, r, e, n, i, a) {
|
|
1337
1339
|
var s = Vr(t), c = Vr(r), l = s ? kr : Zr(t), d = c ? kr : Zr(r);
|
|
1338
1340
|
l = l == Jr ? _t : l, d = d == Jr ? _t : d;
|
|
@@ -1343,15 +1345,15 @@ function Xh(t, r, e, n, i, a) {
|
|
|
1343
1345
|
s = !0, $ = !1;
|
|
1344
1346
|
}
|
|
1345
1347
|
if (y && !$)
|
|
1346
|
-
return a || (a = new
|
|
1348
|
+
return a || (a = new xt()), s || Jh(t) ? Zh(t, r, e, n, i, a) : Vh(t, r, l, e, n, i, a);
|
|
1347
1349
|
if (!(e & kh)) {
|
|
1348
|
-
var
|
|
1349
|
-
if (
|
|
1350
|
-
var v =
|
|
1351
|
-
return a || (a = new
|
|
1350
|
+
var _ = $ && Qr.call(t, "__wrapped__"), T = p && Qr.call(r, "__wrapped__");
|
|
1351
|
+
if (_ || T) {
|
|
1352
|
+
var v = _ ? t.value() : t, E = T ? r.value() : r;
|
|
1353
|
+
return a || (a = new xt()), i(v, E, e, n, a);
|
|
1352
1354
|
}
|
|
1353
1355
|
}
|
|
1354
|
-
return y ? (a || (a = new
|
|
1356
|
+
return y ? (a || (a = new xt()), zh(t, r, e, n, i, a)) : !1;
|
|
1355
1357
|
}
|
|
1356
1358
|
var tg = Xh, rg = tg, Xr = at;
|
|
1357
1359
|
function ke(t, r, e, n, i) {
|
|
@@ -1494,13 +1496,13 @@ const St = (t, r, e = !1, n = 0, i) => {
|
|
|
1494
1496
|
let l = e ? c : s;
|
|
1495
1497
|
if (!(r != null && r.selected) || $t(r.selected)) return l;
|
|
1496
1498
|
const { items: d } = t, $ = gr(r);
|
|
1497
|
-
return tn(t, $) && Array.isArray(d) && d.forEach((
|
|
1499
|
+
return tn(t, $) && Array.isArray(d) && d.forEach((_) => {
|
|
1498
1500
|
let T = 0;
|
|
1499
|
-
if (
|
|
1500
|
-
T = St(
|
|
1501
|
+
if (_.kind !== "3e/product")
|
|
1502
|
+
T = St(_, $, e, n + 1, i);
|
|
1501
1503
|
else {
|
|
1502
|
-
const { selected: v = {} } = $, { selCtx: E, id: S } =
|
|
1503
|
-
v[E] && E in v && S in v[E] && (T = St(
|
|
1504
|
+
const { selected: v = {} } = $, { selCtx: E, id: S } = _;
|
|
1505
|
+
v[E] && E in v && S in v[E] && (T = St(_, $, e, n + 1, i) * Number(v[E][S]), delete $.selected[E][S]);
|
|
1504
1506
|
}
|
|
1505
1507
|
l += T;
|
|
1506
1508
|
}), Math.round(100 * l) / 100;
|
|
@@ -1517,8 +1519,8 @@ const St = (t, r, e = !1, n = 0, i) => {
|
|
|
1517
1519
|
if (p.kind !== "3e/product")
|
|
1518
1520
|
y = zt(p, l, e + 1, n);
|
|
1519
1521
|
else {
|
|
1520
|
-
const { selected:
|
|
1521
|
-
T in
|
|
1522
|
+
const { selected: _ = {} } = l, { selCtx: T, id: v } = p;
|
|
1523
|
+
T in _ && v in _[T] && (y = zt(p, l, e + 1, n) * Number(_[T][v]), delete l.selected[T][v]);
|
|
1522
1524
|
}
|
|
1523
1525
|
s += y;
|
|
1524
1526
|
}), Math.round(100 * s) / 100;
|
|
@@ -1579,7 +1581,7 @@ function Eg() {
|
|
|
1579
1581
|
var Ig = Eg, Bt = Te, Og = Ig, Sg = vr, Dg = 1 / 0, Cg = Bt && 1 / Sg(new Bt([, -0]))[1] == Dg ? function(t) {
|
|
1580
1582
|
return new Bt(t);
|
|
1581
1583
|
} : Og, wg = Cg, Ng = Ve, Lg = Ag, jg = Tg, Rg = ze, Ug = wg, Pg = vr, Mg = 200;
|
|
1582
|
-
function
|
|
1584
|
+
function Fg(t, r, e) {
|
|
1583
1585
|
var n = -1, i = Lg, a = t.length, s = !0, c = [], l = c;
|
|
1584
1586
|
if (e)
|
|
1585
1587
|
s = !1, i = jg;
|
|
@@ -1602,7 +1604,7 @@ function xg(t, r, e) {
|
|
|
1602
1604
|
}
|
|
1603
1605
|
return c;
|
|
1604
1606
|
}
|
|
1605
|
-
var
|
|
1607
|
+
var xg = Fg, Bg = xg;
|
|
1606
1608
|
function Yg(t) {
|
|
1607
1609
|
return t && t.length ? Bg(t) : [];
|
|
1608
1610
|
}
|
|
@@ -1716,15 +1718,15 @@ function dr(t, r = 600, e = !0, n, i) {
|
|
|
1716
1718
|
throw new Error("baseUrl or tenant was not provided");
|
|
1717
1719
|
const a = `${t}_${i}_${n}`, s = `${n.endsWith("/") ? n.slice(0, -1) : n}/cms-api/content/${i}/${t}`, c = ((f = S()) == null ? void 0 : f.value) || null, [l, d] = J(
|
|
1718
1720
|
((h = S()) == null ? void 0 : h.timestamp) || 0
|
|
1719
|
-
), [$, p] = J(c || null), [y,
|
|
1721
|
+
), [$, p] = J(c || null), [y, _] = J(!1);
|
|
1720
1722
|
async function T(u) {
|
|
1721
1723
|
return de.get(s, { signal: u }).then((g) => {
|
|
1722
1724
|
let D;
|
|
1723
1725
|
if ($t(g.data))
|
|
1724
1726
|
throw p(null), E(), new Error(`CMS data '${t}' is an empty object`);
|
|
1725
|
-
return $r(g.data, $) ? D = !1 : (p(g.data), D = !0), y &&
|
|
1727
|
+
return $r(g.data, $) ? D = !1 : (p(g.data), D = !0), y && _(!1), e && v(g.data), D;
|
|
1726
1728
|
}).catch((g) => {
|
|
1727
|
-
g.code !== "ERR_CANCELED" && (console.warn(g),
|
|
1729
|
+
g.code !== "ERR_CANCELED" && (console.warn(g), _(!0));
|
|
1728
1730
|
});
|
|
1729
1731
|
}
|
|
1730
1732
|
function v(u) {
|
|
@@ -1813,7 +1815,7 @@ function Tv(t, r, e, n = 300, i = !0) {
|
|
|
1813
1815
|
);
|
|
1814
1816
|
}
|
|
1815
1817
|
function kg(t, r, e, n = 300, i = !0, a, s) {
|
|
1816
|
-
var y,
|
|
1818
|
+
var y, _, T, v;
|
|
1817
1819
|
if (!a || !s || !r)
|
|
1818
1820
|
throw new Error("baseUrl, tenant or venue was not provided");
|
|
1819
1821
|
const { value: c, isError: l, refresh: d } = Jg(
|
|
@@ -1825,7 +1827,7 @@ function kg(t, r, e, n = 300, i = !0, a, s) {
|
|
|
1825
1827
|
r
|
|
1826
1828
|
);
|
|
1827
1829
|
let $ = null, p = null;
|
|
1828
|
-
return c && ((y = c == null ? void 0 : c.url) == null ? void 0 : y.length) > 0 && ($ = ((
|
|
1830
|
+
return c && ((y = c == null ? void 0 : c.url) == null ? void 0 : y.length) > 0 && ($ = ((_ = c.url.find((E) => E.locale === e)) == null ? void 0 : _.value) || ((T = c.url.find((E) => E.locale === "*")) == null ? void 0 : T.value) || null), !$ && c && ((v = c == null ? void 0 : c.url) == null ? void 0 : v.length) > 0 && (p = c.url[0].value), {
|
|
1829
1831
|
url: $,
|
|
1830
1832
|
fallbackUrl: p,
|
|
1831
1833
|
isError: l,
|
|
@@ -1853,7 +1855,7 @@ function Qg({
|
|
|
1853
1855
|
), y = fn(
|
|
1854
1856
|
() => (l == null ? void 0 : l[r]) || [],
|
|
1855
1857
|
[l, r]
|
|
1856
|
-
), [
|
|
1858
|
+
), [_, T] = J(
|
|
1857
1859
|
kt(y, s)
|
|
1858
1860
|
);
|
|
1859
1861
|
tt(() => {
|
|
@@ -1863,21 +1865,21 @@ function Qg({
|
|
|
1863
1865
|
y,
|
|
1864
1866
|
s
|
|
1865
1867
|
);
|
|
1866
|
-
return $r(f,
|
|
1868
|
+
return $r(f, _) || T(f), () => clearInterval(o);
|
|
1867
1869
|
}, 6e4);
|
|
1868
1870
|
}
|
|
1869
|
-
}, [y,
|
|
1871
|
+
}, [y, _, s]);
|
|
1870
1872
|
const v = nn(
|
|
1871
|
-
|
|
1873
|
+
_,
|
|
1872
1874
|
c
|
|
1873
|
-
), E = !v &&
|
|
1875
|
+
), E = !v && _ && ((S = _ == null ? void 0 : _.url) == null ? void 0 : S.length) > 0 ? _.url[0].value : null;
|
|
1874
1876
|
return {
|
|
1875
1877
|
url: v,
|
|
1876
1878
|
fallbackUrl: E,
|
|
1877
|
-
mediaType:
|
|
1879
|
+
mediaType: _ == null ? void 0 : _.mediaType,
|
|
1878
1880
|
isError: d,
|
|
1879
1881
|
isLoading: $,
|
|
1880
|
-
imageDisplayTime:
|
|
1882
|
+
imageDisplayTime: _ == null ? void 0 : _.imageDisplayTime,
|
|
1881
1883
|
refresh: p
|
|
1882
1884
|
};
|
|
1883
1885
|
}
|
|
@@ -2108,7 +2110,7 @@ var ev = function(t) {
|
|
|
2108
2110
|
function y(o) {
|
|
2109
2111
|
return Array.isArray(o) ? o.sort() : typeof o == "object" ? y(Object.keys(o)).sort((f, h) => Number(f) - Number(h)).map((f) => o[f]) : o;
|
|
2110
2112
|
}
|
|
2111
|
-
function
|
|
2113
|
+
function _(o) {
|
|
2112
2114
|
const f = o.indexOf("#");
|
|
2113
2115
|
return f !== -1 && (o = o.slice(0, f)), o;
|
|
2114
2116
|
}
|
|
@@ -2118,7 +2120,7 @@ var ev = function(t) {
|
|
|
2118
2120
|
return h !== -1 && (f = o.slice(h)), f;
|
|
2119
2121
|
}
|
|
2120
2122
|
function v(o) {
|
|
2121
|
-
o =
|
|
2123
|
+
o = _(o);
|
|
2122
2124
|
const f = o.indexOf("?");
|
|
2123
2125
|
return f === -1 ? "" : o.slice(f + 1);
|
|
2124
2126
|
}
|
|
@@ -2191,7 +2193,7 @@ var ev = function(t) {
|
|
|
2191
2193
|
strict: !0,
|
|
2192
2194
|
[s]: !0
|
|
2193
2195
|
}, f);
|
|
2194
|
-
const h =
|
|
2196
|
+
const h = _(o.url).split("?")[0] || "", u = t.extract(o.url), g = t.parse(u, { sort: !1 }), D = Object.assign(g, o.query);
|
|
2195
2197
|
let O = t.stringify(D, f);
|
|
2196
2198
|
O && (O = `?${O}`);
|
|
2197
2199
|
let j = T(o.url);
|
|
@@ -2212,24 +2214,24 @@ var ev = function(t) {
|
|
|
2212
2214
|
return t.pick(o, u, h);
|
|
2213
2215
|
};
|
|
2214
2216
|
})(an);
|
|
2215
|
-
const $e = /* @__PURE__ */ K(an), iv = [".png", ".jpg", ".jpeg", ".webp", ".bmp", ".tiff"],
|
|
2217
|
+
const $e = /* @__PURE__ */ K(an), iv = [".png", ".jpg", ".jpeg", ".webp", ".bmp", ".tiff"], F = class F {
|
|
2216
2218
|
constructor() {
|
|
2217
2219
|
H(this, "getUrl", (r, e) => {
|
|
2218
|
-
const n =
|
|
2219
|
-
return
|
|
2220
|
+
const n = F.getMediaToolsUrl(r, e);
|
|
2221
|
+
return F.status ? `${F.proxyUrl}?url=${encodeURIComponent(n)}` : n;
|
|
2220
2222
|
});
|
|
2221
2223
|
// supports different url per venue
|
|
2222
2224
|
H(this, "setProxyUrl", async (r) => {
|
|
2223
|
-
|
|
2224
|
-
const e = await
|
|
2225
|
-
return
|
|
2225
|
+
F.interval && (clearInterval(F.interval), F.interval = null);
|
|
2226
|
+
const e = await F.checkStatus(r);
|
|
2227
|
+
return F.proxyUrl = r, F.interval = setInterval(() => F.checkStatus(r), 6e4), e;
|
|
2226
2228
|
});
|
|
2227
2229
|
}
|
|
2228
2230
|
static getInstance() {
|
|
2229
|
-
return this.instance || (this.instance = new
|
|
2231
|
+
return this.instance || (this.instance = new F()), this.instance;
|
|
2230
2232
|
}
|
|
2231
2233
|
};
|
|
2232
|
-
H(
|
|
2234
|
+
H(F, "instance"), H(F, "proxyUrl"), H(F, "status", !1), H(F, "interval", null), H(F, "getMediaToolsUrl", (r, e = 500) => {
|
|
2233
2235
|
const n = $e.parseUrl(r);
|
|
2234
2236
|
if (!(r.startsWith(
|
|
2235
2237
|
"https://orderingstackmedia.blob.core.windows.net/pictures"
|
|
@@ -2245,14 +2247,14 @@ H(x, "instance"), H(x, "proxyUrl"), H(x, "status", !1), H(x, "interval", null),
|
|
|
2245
2247
|
),
|
|
2246
2248
|
query: { ...n.query, w: e }
|
|
2247
2249
|
}) : r;
|
|
2248
|
-
}), H(
|
|
2250
|
+
}), H(F, "checkStatus", async (r) => {
|
|
2249
2251
|
try {
|
|
2250
|
-
return await de.get(`${r}/status`),
|
|
2252
|
+
return await de.get(`${r}/status`), F.status = !0, !0;
|
|
2251
2253
|
} catch (e) {
|
|
2252
|
-
return console.warn("ImageProxy is not available", e),
|
|
2254
|
+
return console.warn("ImageProxy is not available", e), F.status = !1, !1;
|
|
2253
2255
|
}
|
|
2254
|
-
}), H(
|
|
2255
|
-
let Xt =
|
|
2256
|
+
}), H(F, "getStatus", () => F.status);
|
|
2257
|
+
let Xt = F;
|
|
2256
2258
|
function sv(t, r = 500) {
|
|
2257
2259
|
return Xt.getInstance().getUrl(t, r);
|
|
2258
2260
|
}
|