@stoker-platform/web-client 0.5.100 → 0.5.102
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/bundle.js +805 -805
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { getApp as at, registerVersion as Wm, initializeApp as
|
|
1
|
+
import { getApp as at, registerVersion as Wm, initializeApp as Qn, setLogLevel as rn, onLog as zm } from "firebase/app";
|
|
2
2
|
import { isSupported as Bm, initializeAnalytics as Zm, setConsent as Gm } from "firebase/analytics";
|
|
3
|
-
import { getAuth as yr, validatePassword as Id, initializeAuth as xc, indexedDBLocalPersistence as Hm, browserLocalPersistence as Km, browserSessionPersistence as Fc, inMemoryPersistence as Nc, beforeAuthStateChanged as Ym, connectAuthEmulator as Jm, onAuthStateChanged as
|
|
3
|
+
import { getAuth as yr, validatePassword as Id, initializeAuth as xc, indexedDBLocalPersistence as Hm, browserLocalPersistence as Km, browserSessionPersistence as Fc, inMemoryPersistence as Nc, beforeAuthStateChanged as Ym, connectAuthEmulator as Jm, onAuthStateChanged as Xn, getIdTokenResult as Qm, signOut as xd, signInWithEmailAndPassword as Xm, getMultiFactorResolver as ep, TotpMultiFactorGenerator as ao, signInWithCustomToken as tp, multiFactor as Dc } from "firebase/auth";
|
|
4
4
|
import { getDatabase as Fd, onValue as rp, ref as np, connectDatabaseEmulator as sp } from "firebase/database";
|
|
5
|
-
import { where as ye, query as he, collection as ar, and as
|
|
5
|
+
import { where as ye, query as he, collection as ar, and as nn, or as Pc, onSnapshot as _r, doc as Re, Timestamp as Yt, setDoc as ip, getDoc as Nd, orderBy as nt, limit as sr, startAfter as oo, endBefore as co, limitToLast as Mr, getDocsFromCache as Dd, getDocsFromServer as ap, getDocs as op, getCountFromServer as Pd, getDocFromCache as cp, getDocFromServer as lp, writeBatch as Po, serverTimestamp as Vr, deleteField as Nn, arrayRemove as Mo, arrayUnion as qo, collectionGroup as up, getFirestore as Mc, initializeFirestore as sn, connectFirestoreEmulator as qc, persistentLocalCache as Lc, persistentSingleTabManager as $c, persistentMultipleTabManager as jc, memoryEagerGarbageCollector as fp, memoryLruGarbageCollector as dp, memoryLocalCache as hp, getPersistentCacheIndexManager as mp, enablePersistentCacheIndexAutoCreation as pp, terminate as gp, clearIndexedDbPersistence as Vc, waitForPendingWrites as yp, onSnapshotsInSync as Md, startAt as _p, endAt as vp, addDoc as qd } from "firebase/firestore";
|
|
6
6
|
import { connectStorageEmulator as wp, getStorage as bp } from "firebase/storage";
|
|
7
7
|
import { getFunctions as We, httpsCallable as Qe, connectFunctionsEmulator as Op } from "firebase/functions";
|
|
8
|
-
import { ReCaptchaEnterpriseProvider as Ep, initializeAppCheck as
|
|
8
|
+
import { ReCaptchaEnterpriseProvider as Ep, initializeAppCheck as es, onTokenChanged as ts } from "firebase/app-check";
|
|
9
9
|
import { getPerformance as Sp } from "firebase/performance";
|
|
10
10
|
import { getRemoteConfig as Tp, fetchAndActivate as Rp } from "firebase/remote-config";
|
|
11
|
-
const Ap = "0.5.
|
|
12
|
-
if (
|
|
11
|
+
const Ap = "0.5.101", Dn = (t) => !!t && !Array.isArray(t), lo = (t, e) => t.access ? Dn(t.access) ? !1 : t.access.includes(e) : !0, Cp = (t, e) => {
|
|
12
|
+
if (Dn(t.access))
|
|
13
13
|
return e.fieldAccessGroups?.[t.access.group];
|
|
14
14
|
}, Lo = (t) => {
|
|
15
15
|
const e = {};
|
|
16
16
|
return Object.keys(t.fieldAccessGroups || {}).forEach((r) => {
|
|
17
17
|
e[r] = [];
|
|
18
18
|
}), t.fields.forEach((r) => {
|
|
19
|
-
if (
|
|
19
|
+
if (Dn(r.access)) {
|
|
20
20
|
const { group: n } = r.access;
|
|
21
21
|
e[n] && e[n].push(r);
|
|
22
22
|
}
|
|
23
23
|
}), e;
|
|
24
|
-
},
|
|
24
|
+
}, Pn = (t, e, r, n) => {
|
|
25
25
|
if (!r)
|
|
26
26
|
return !0;
|
|
27
27
|
if (r.Role && !t.applicableRoles.includes(r.Role))
|
|
@@ -37,11 +37,11 @@ const Ap = "0.5.99", Nn = (t) => !!t && !Array.isArray(t), co = (t, e) => t.acce
|
|
|
37
37
|
return i.length === 0 ? !1 : t.match === "all" ? i.every(Boolean) : i.some(Boolean);
|
|
38
38
|
}, kp = (t, e, r, n) => {
|
|
39
39
|
const s = Cp(t, e);
|
|
40
|
-
return s ?
|
|
40
|
+
return s ? Pn(s, e.labels.collection, r, n) : !1;
|
|
41
41
|
}, Ip = (t) => !!t.auth, ut = (t, e) => {
|
|
42
42
|
if (e?.operations)
|
|
43
43
|
return e.operations.includes(t);
|
|
44
|
-
}, Gt = (t, e, r, n) => e ? e.Role ?
|
|
44
|
+
}, Gt = (t, e, r, n) => e ? e.Role ? Dn(t.access) ? !r || !n ? !1 : kp(t, r, e, n) : t.access?.includes(e.Role) : !1 : !0, Ld = (t, e, r, n) => t === !0 ? !1 : Array.isArray(t) ? t.includes(e.Role) : typeof t == "object" && t !== null ? !r || !n ? !1 : Pn(t, r, e, n) : !0, xp = (t, e, r, n) => e ? e.Role ? Ld(t.restrictCreate, e, r, n) : !1 : !0, Fp = (t, e, r, n) => e ? e.Role ? Ld(t.restrictUpdate, e, r, n) : !1 : !0, J = (t, e) => t.filter((r) => r.name === e)[0], we = (t) => ["OneToOne", "OneToMany", "ManyToOne", "ManyToMany"].includes(t.type), $d = (t, e) => {
|
|
45
45
|
const r = {
|
|
46
46
|
Record_Owner: "recordOwner",
|
|
47
47
|
Record_User: "recordUser",
|
|
@@ -78,7 +78,7 @@ const Ap = "0.5.99", Nn = (t) => !!t && !Array.isArray(t), co = (t, e) => t.acce
|
|
|
78
78
|
h.role === r.Role && (!f.assignable?.includes(r.Role) || l?.restrictEntities) && n.push({ parentFilter: a, parentRestriction: d });
|
|
79
79
|
});
|
|
80
80
|
}), n;
|
|
81
|
-
},
|
|
81
|
+
}, Mn = (t, e, r, n) => {
|
|
82
82
|
const s = Object.values(e.collections), { labels: i } = t, a = [];
|
|
83
83
|
for (const o of s) {
|
|
84
84
|
const { fields: c } = o;
|
|
@@ -174,7 +174,7 @@ const Ap = "0.5.99", Nn = (t) => !!t && !Array.isArray(t), co = (t, e) => t.acce
|
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
176
|
return l;
|
|
177
|
-
},
|
|
177
|
+
}, yn = (t, e, r, n, s, i) => {
|
|
178
178
|
const { labels: a } = e, o = s.collections?.[a.collection];
|
|
179
179
|
let c = !0;
|
|
180
180
|
if (!o || !s.Role)
|
|
@@ -191,7 +191,7 @@ const Ap = "0.5.99", Nn = (t) => !!t && !Array.isArray(t), co = (t, e) => t.acce
|
|
|
191
191
|
const o = r?.collections?.[i.collection];
|
|
192
192
|
if (!o)
|
|
193
193
|
continue;
|
|
194
|
-
(!r || ut("Read", o) ||
|
|
194
|
+
(!r || ut("Read", o) || Mn(t, e, r, n ?? {})) && s.push(i.collection);
|
|
195
195
|
}
|
|
196
196
|
return Array.from(new Set(s));
|
|
197
197
|
}, Vd = (t, e, r) => {
|
|
@@ -202,46 +202,46 @@ const Ap = "0.5.99", Nn = (t) => !!t && !Array.isArray(t), co = (t, e) => t.acce
|
|
|
202
202
|
}
|
|
203
203
|
return s;
|
|
204
204
|
};
|
|
205
|
-
var
|
|
206
|
-
function
|
|
205
|
+
var an = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
206
|
+
function qn(t) {
|
|
207
207
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var rs, Uc;
|
|
210
210
|
function Dp() {
|
|
211
|
-
if (Uc) return
|
|
211
|
+
if (Uc) return rs;
|
|
212
212
|
Uc = 1;
|
|
213
213
|
function t() {
|
|
214
214
|
this.__data__ = [], this.size = 0;
|
|
215
215
|
}
|
|
216
|
-
return
|
|
216
|
+
return rs = t, rs;
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
function
|
|
220
|
-
if (Wc) return
|
|
218
|
+
var ns, Wc;
|
|
219
|
+
function Zr() {
|
|
220
|
+
if (Wc) return ns;
|
|
221
221
|
Wc = 1;
|
|
222
222
|
function t(e, r) {
|
|
223
223
|
return e === r || e !== e && r !== r;
|
|
224
224
|
}
|
|
225
|
-
return
|
|
225
|
+
return ns = t, ns;
|
|
226
226
|
}
|
|
227
|
-
var
|
|
228
|
-
function
|
|
229
|
-
if (zc) return
|
|
227
|
+
var ss, zc;
|
|
228
|
+
function Ln() {
|
|
229
|
+
if (zc) return ss;
|
|
230
230
|
zc = 1;
|
|
231
|
-
var t =
|
|
231
|
+
var t = Zr();
|
|
232
232
|
function e(r, n) {
|
|
233
233
|
for (var s = r.length; s--; )
|
|
234
234
|
if (t(r[s][0], n))
|
|
235
235
|
return s;
|
|
236
236
|
return -1;
|
|
237
237
|
}
|
|
238
|
-
return
|
|
238
|
+
return ss = e, ss;
|
|
239
239
|
}
|
|
240
|
-
var
|
|
240
|
+
var is, Bc;
|
|
241
241
|
function Pp() {
|
|
242
|
-
if (Bc) return
|
|
242
|
+
if (Bc) return is;
|
|
243
243
|
Bc = 1;
|
|
244
|
-
var t =
|
|
244
|
+
var t = Ln(), e = Array.prototype, r = e.splice;
|
|
245
245
|
function n(s) {
|
|
246
246
|
var i = this.__data__, a = t(i, s);
|
|
247
247
|
if (a < 0)
|
|
@@ -249,43 +249,43 @@ function Pp() {
|
|
|
249
249
|
var o = i.length - 1;
|
|
250
250
|
return a == o ? i.pop() : r.call(i, a, 1), --this.size, !0;
|
|
251
251
|
}
|
|
252
|
-
return
|
|
252
|
+
return is = n, is;
|
|
253
253
|
}
|
|
254
|
-
var
|
|
254
|
+
var as, Zc;
|
|
255
255
|
function Mp() {
|
|
256
|
-
if (Zc) return
|
|
256
|
+
if (Zc) return as;
|
|
257
257
|
Zc = 1;
|
|
258
|
-
var t =
|
|
258
|
+
var t = Ln();
|
|
259
259
|
function e(r) {
|
|
260
260
|
var n = this.__data__, s = t(n, r);
|
|
261
261
|
return s < 0 ? void 0 : n[s][1];
|
|
262
262
|
}
|
|
263
|
-
return
|
|
263
|
+
return as = e, as;
|
|
264
264
|
}
|
|
265
|
-
var
|
|
265
|
+
var os, Gc;
|
|
266
266
|
function qp() {
|
|
267
|
-
if (Gc) return
|
|
267
|
+
if (Gc) return os;
|
|
268
268
|
Gc = 1;
|
|
269
|
-
var t =
|
|
269
|
+
var t = Ln();
|
|
270
270
|
function e(r) {
|
|
271
271
|
return t(this.__data__, r) > -1;
|
|
272
272
|
}
|
|
273
|
-
return
|
|
273
|
+
return os = e, os;
|
|
274
274
|
}
|
|
275
|
-
var
|
|
275
|
+
var cs, Hc;
|
|
276
276
|
function Lp() {
|
|
277
|
-
if (Hc) return
|
|
277
|
+
if (Hc) return cs;
|
|
278
278
|
Hc = 1;
|
|
279
|
-
var t =
|
|
279
|
+
var t = Ln();
|
|
280
280
|
function e(r, n) {
|
|
281
281
|
var s = this.__data__, i = t(s, r);
|
|
282
282
|
return i < 0 ? (++this.size, s.push([r, n])) : s[i][1] = n, this;
|
|
283
283
|
}
|
|
284
|
-
return
|
|
284
|
+
return cs = e, cs;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
287
|
-
function
|
|
288
|
-
if (Kc) return
|
|
286
|
+
var ls, Kc;
|
|
287
|
+
function $n() {
|
|
288
|
+
if (Kc) return ls;
|
|
289
289
|
Kc = 1;
|
|
290
290
|
var t = Dp(), e = Pp(), r = Mp(), n = qp(), s = Lp();
|
|
291
291
|
function i(a) {
|
|
@@ -295,72 +295,72 @@ function Ln() {
|
|
|
295
295
|
this.set(l[0], l[1]);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = n, i.prototype.set = s,
|
|
298
|
+
return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = n, i.prototype.set = s, ls = i, ls;
|
|
299
299
|
}
|
|
300
|
-
var
|
|
300
|
+
var us, Yc;
|
|
301
301
|
function $p() {
|
|
302
|
-
if (Yc) return
|
|
302
|
+
if (Yc) return us;
|
|
303
303
|
Yc = 1;
|
|
304
|
-
var t =
|
|
304
|
+
var t = $n();
|
|
305
305
|
function e() {
|
|
306
306
|
this.__data__ = new t(), this.size = 0;
|
|
307
307
|
}
|
|
308
|
-
return
|
|
308
|
+
return us = e, us;
|
|
309
309
|
}
|
|
310
|
-
var
|
|
310
|
+
var fs, Jc;
|
|
311
311
|
function jp() {
|
|
312
|
-
if (Jc) return
|
|
312
|
+
if (Jc) return fs;
|
|
313
313
|
Jc = 1;
|
|
314
314
|
function t(e) {
|
|
315
315
|
var r = this.__data__, n = r.delete(e);
|
|
316
316
|
return this.size = r.size, n;
|
|
317
317
|
}
|
|
318
|
-
return
|
|
318
|
+
return fs = t, fs;
|
|
319
319
|
}
|
|
320
|
-
var
|
|
320
|
+
var ds, Qc;
|
|
321
321
|
function Vp() {
|
|
322
|
-
if (Qc) return
|
|
322
|
+
if (Qc) return ds;
|
|
323
323
|
Qc = 1;
|
|
324
324
|
function t(e) {
|
|
325
325
|
return this.__data__.get(e);
|
|
326
326
|
}
|
|
327
|
-
return
|
|
327
|
+
return ds = t, ds;
|
|
328
328
|
}
|
|
329
|
-
var
|
|
329
|
+
var hs, Xc;
|
|
330
330
|
function Up() {
|
|
331
|
-
if (Xc) return
|
|
331
|
+
if (Xc) return hs;
|
|
332
332
|
Xc = 1;
|
|
333
333
|
function t(e) {
|
|
334
334
|
return this.__data__.has(e);
|
|
335
335
|
}
|
|
336
|
-
return
|
|
336
|
+
return hs = t, hs;
|
|
337
337
|
}
|
|
338
|
-
var
|
|
338
|
+
var ms, el;
|
|
339
339
|
function Ud() {
|
|
340
|
-
if (el) return
|
|
340
|
+
if (el) return ms;
|
|
341
341
|
el = 1;
|
|
342
|
-
var t = typeof
|
|
343
|
-
return
|
|
342
|
+
var t = typeof an == "object" && an && an.Object === Object && an;
|
|
343
|
+
return ms = t, ms;
|
|
344
344
|
}
|
|
345
|
-
var
|
|
345
|
+
var ps, tl;
|
|
346
346
|
function dt() {
|
|
347
|
-
if (tl) return
|
|
347
|
+
if (tl) return ps;
|
|
348
348
|
tl = 1;
|
|
349
349
|
var t = Ud(), e = typeof self == "object" && self && self.Object === Object && self, r = t || e || Function("return this")();
|
|
350
|
-
return
|
|
350
|
+
return ps = r, ps;
|
|
351
351
|
}
|
|
352
|
-
var
|
|
353
|
-
function
|
|
354
|
-
if (rl) return
|
|
352
|
+
var gs, rl;
|
|
353
|
+
function Gr() {
|
|
354
|
+
if (rl) return gs;
|
|
355
355
|
rl = 1;
|
|
356
356
|
var t = dt(), e = t.Symbol;
|
|
357
|
-
return
|
|
357
|
+
return gs = e, gs;
|
|
358
358
|
}
|
|
359
|
-
var
|
|
359
|
+
var ys, nl;
|
|
360
360
|
function Wp() {
|
|
361
|
-
if (nl) return
|
|
361
|
+
if (nl) return ys;
|
|
362
362
|
nl = 1;
|
|
363
|
-
var t =
|
|
363
|
+
var t = Gr(), e = Object.prototype, r = e.hasOwnProperty, n = e.toString, s = t ? t.toStringTag : void 0;
|
|
364
364
|
function i(a) {
|
|
365
365
|
var o = r.call(a, s), c = a[s];
|
|
366
366
|
try {
|
|
@@ -371,41 +371,41 @@ function Wp() {
|
|
|
371
371
|
var u = n.call(a);
|
|
372
372
|
return l && (o ? a[s] = c : delete a[s]), u;
|
|
373
373
|
}
|
|
374
|
-
return
|
|
374
|
+
return ys = i, ys;
|
|
375
375
|
}
|
|
376
|
-
var
|
|
376
|
+
var _s, sl;
|
|
377
377
|
function zp() {
|
|
378
|
-
if (sl) return
|
|
378
|
+
if (sl) return _s;
|
|
379
379
|
sl = 1;
|
|
380
380
|
var t = Object.prototype, e = t.toString;
|
|
381
381
|
function r(n) {
|
|
382
382
|
return e.call(n);
|
|
383
383
|
}
|
|
384
|
-
return
|
|
384
|
+
return _s = r, _s;
|
|
385
385
|
}
|
|
386
|
-
var
|
|
386
|
+
var vs, il;
|
|
387
387
|
function vr() {
|
|
388
|
-
if (il) return
|
|
388
|
+
if (il) return vs;
|
|
389
389
|
il = 1;
|
|
390
|
-
var t =
|
|
390
|
+
var t = Gr(), e = Wp(), r = zp(), n = "[object Null]", s = "[object Undefined]", i = t ? t.toStringTag : void 0;
|
|
391
391
|
function a(o) {
|
|
392
392
|
return o == null ? o === void 0 ? s : n : i && i in Object(o) ? e(o) : r(o);
|
|
393
393
|
}
|
|
394
|
-
return
|
|
394
|
+
return vs = a, vs;
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var ws, al;
|
|
397
397
|
function bt() {
|
|
398
|
-
if (al) return
|
|
398
|
+
if (al) return ws;
|
|
399
399
|
al = 1;
|
|
400
400
|
function t(e) {
|
|
401
401
|
var r = typeof e;
|
|
402
402
|
return e != null && (r == "object" || r == "function");
|
|
403
403
|
}
|
|
404
|
-
return
|
|
404
|
+
return ws = t, ws;
|
|
405
405
|
}
|
|
406
|
-
var
|
|
406
|
+
var bs, ol;
|
|
407
407
|
function jo() {
|
|
408
|
-
if (ol) return
|
|
408
|
+
if (ol) return bs;
|
|
409
409
|
ol = 1;
|
|
410
410
|
var t = vr(), e = bt(), r = "[object AsyncFunction]", n = "[object Function]", s = "[object GeneratorFunction]", i = "[object Proxy]";
|
|
411
411
|
function a(o) {
|
|
@@ -414,18 +414,18 @@ function jo() {
|
|
|
414
414
|
var c = t(o);
|
|
415
415
|
return c == n || c == s || c == r || c == i;
|
|
416
416
|
}
|
|
417
|
-
return
|
|
417
|
+
return bs = a, bs;
|
|
418
418
|
}
|
|
419
|
-
var
|
|
419
|
+
var Os, cl;
|
|
420
420
|
function Bp() {
|
|
421
|
-
if (cl) return
|
|
421
|
+
if (cl) return Os;
|
|
422
422
|
cl = 1;
|
|
423
423
|
var t = dt(), e = t["__core-js_shared__"];
|
|
424
|
-
return
|
|
424
|
+
return Os = e, Os;
|
|
425
425
|
}
|
|
426
|
-
var
|
|
426
|
+
var Es, ll;
|
|
427
427
|
function Zp() {
|
|
428
|
-
if (ll) return
|
|
428
|
+
if (ll) return Es;
|
|
429
429
|
ll = 1;
|
|
430
430
|
var t = Bp(), e = (function() {
|
|
431
431
|
var n = /[^.]+$/.exec(t && t.keys && t.keys.IE_PROTO || "");
|
|
@@ -434,11 +434,11 @@ function Zp() {
|
|
|
434
434
|
function r(n) {
|
|
435
435
|
return !!e && e in n;
|
|
436
436
|
}
|
|
437
|
-
return
|
|
437
|
+
return Es = r, Es;
|
|
438
438
|
}
|
|
439
|
-
var
|
|
439
|
+
var Ss, ul;
|
|
440
440
|
function Wd() {
|
|
441
|
-
if (ul) return
|
|
441
|
+
if (ul) return Ss;
|
|
442
442
|
ul = 1;
|
|
443
443
|
var t = Function.prototype, e = t.toString;
|
|
444
444
|
function r(n) {
|
|
@@ -454,11 +454,11 @@ function Wd() {
|
|
|
454
454
|
}
|
|
455
455
|
return "";
|
|
456
456
|
}
|
|
457
|
-
return
|
|
457
|
+
return Ss = r, Ss;
|
|
458
458
|
}
|
|
459
|
-
var
|
|
459
|
+
var Ts, fl;
|
|
460
460
|
function Gp() {
|
|
461
|
-
if (fl) return
|
|
461
|
+
if (fl) return Ts;
|
|
462
462
|
fl = 1;
|
|
463
463
|
var t = jo(), e = Zp(), r = bt(), n = Wd(), s = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, a = Function.prototype, o = Object.prototype, c = a.toString, l = o.hasOwnProperty, u = RegExp(
|
|
464
464
|
"^" + c.call(l).replace(s, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
@@ -469,67 +469,67 @@ function Gp() {
|
|
|
469
469
|
var h = t(d) ? u : i;
|
|
470
470
|
return h.test(n(d));
|
|
471
471
|
}
|
|
472
|
-
return
|
|
472
|
+
return Ts = f, Ts;
|
|
473
473
|
}
|
|
474
|
-
var
|
|
474
|
+
var Rs, dl;
|
|
475
475
|
function Hp() {
|
|
476
|
-
if (dl) return
|
|
476
|
+
if (dl) return Rs;
|
|
477
477
|
dl = 1;
|
|
478
478
|
function t(e, r) {
|
|
479
479
|
return e?.[r];
|
|
480
480
|
}
|
|
481
|
-
return
|
|
481
|
+
return Rs = t, Rs;
|
|
482
482
|
}
|
|
483
|
-
var
|
|
483
|
+
var As, hl;
|
|
484
484
|
function Jt() {
|
|
485
|
-
if (hl) return
|
|
485
|
+
if (hl) return As;
|
|
486
486
|
hl = 1;
|
|
487
487
|
var t = Gp(), e = Hp();
|
|
488
488
|
function r(n, s) {
|
|
489
489
|
var i = e(n, s);
|
|
490
490
|
return t(i) ? i : void 0;
|
|
491
491
|
}
|
|
492
|
-
return
|
|
492
|
+
return As = r, As;
|
|
493
493
|
}
|
|
494
|
-
var
|
|
494
|
+
var Cs, ml;
|
|
495
495
|
function Vo() {
|
|
496
|
-
if (ml) return
|
|
496
|
+
if (ml) return Cs;
|
|
497
497
|
ml = 1;
|
|
498
498
|
var t = Jt(), e = dt(), r = t(e, "Map");
|
|
499
|
-
return
|
|
499
|
+
return Cs = r, Cs;
|
|
500
500
|
}
|
|
501
|
-
var
|
|
502
|
-
function
|
|
503
|
-
if (pl) return
|
|
501
|
+
var ks, pl;
|
|
502
|
+
function jn() {
|
|
503
|
+
if (pl) return ks;
|
|
504
504
|
pl = 1;
|
|
505
505
|
var t = Jt(), e = t(Object, "create");
|
|
506
|
-
return
|
|
506
|
+
return ks = e, ks;
|
|
507
507
|
}
|
|
508
|
-
var
|
|
508
|
+
var Is, gl;
|
|
509
509
|
function Kp() {
|
|
510
|
-
if (gl) return
|
|
510
|
+
if (gl) return Is;
|
|
511
511
|
gl = 1;
|
|
512
|
-
var t =
|
|
512
|
+
var t = jn();
|
|
513
513
|
function e() {
|
|
514
514
|
this.__data__ = t ? t(null) : {}, this.size = 0;
|
|
515
515
|
}
|
|
516
|
-
return
|
|
516
|
+
return Is = e, Is;
|
|
517
517
|
}
|
|
518
|
-
var
|
|
518
|
+
var xs, yl;
|
|
519
519
|
function Yp() {
|
|
520
|
-
if (yl) return
|
|
520
|
+
if (yl) return xs;
|
|
521
521
|
yl = 1;
|
|
522
522
|
function t(e) {
|
|
523
523
|
var r = this.has(e) && delete this.__data__[e];
|
|
524
524
|
return this.size -= r ? 1 : 0, r;
|
|
525
525
|
}
|
|
526
|
-
return
|
|
526
|
+
return xs = t, xs;
|
|
527
527
|
}
|
|
528
|
-
var
|
|
528
|
+
var Fs, _l;
|
|
529
529
|
function Jp() {
|
|
530
|
-
if (_l) return
|
|
530
|
+
if (_l) return Fs;
|
|
531
531
|
_l = 1;
|
|
532
|
-
var t =
|
|
532
|
+
var t = jn(), e = "__lodash_hash_undefined__", r = Object.prototype, n = r.hasOwnProperty;
|
|
533
533
|
function s(i) {
|
|
534
534
|
var a = this.__data__;
|
|
535
535
|
if (t) {
|
|
@@ -538,33 +538,33 @@ function Jp() {
|
|
|
538
538
|
}
|
|
539
539
|
return n.call(a, i) ? a[i] : void 0;
|
|
540
540
|
}
|
|
541
|
-
return
|
|
541
|
+
return Fs = s, Fs;
|
|
542
542
|
}
|
|
543
|
-
var
|
|
543
|
+
var Ns, vl;
|
|
544
544
|
function Qp() {
|
|
545
|
-
if (vl) return
|
|
545
|
+
if (vl) return Ns;
|
|
546
546
|
vl = 1;
|
|
547
|
-
var t =
|
|
547
|
+
var t = jn(), e = Object.prototype, r = e.hasOwnProperty;
|
|
548
548
|
function n(s) {
|
|
549
549
|
var i = this.__data__;
|
|
550
550
|
return t ? i[s] !== void 0 : r.call(i, s);
|
|
551
551
|
}
|
|
552
|
-
return
|
|
552
|
+
return Ns = n, Ns;
|
|
553
553
|
}
|
|
554
|
-
var
|
|
554
|
+
var Ds, wl;
|
|
555
555
|
function Xp() {
|
|
556
|
-
if (wl) return
|
|
556
|
+
if (wl) return Ds;
|
|
557
557
|
wl = 1;
|
|
558
|
-
var t =
|
|
558
|
+
var t = jn(), e = "__lodash_hash_undefined__";
|
|
559
559
|
function r(n, s) {
|
|
560
560
|
var i = this.__data__;
|
|
561
561
|
return this.size += this.has(n) ? 0 : 1, i[n] = t && s === void 0 ? e : s, this;
|
|
562
562
|
}
|
|
563
|
-
return
|
|
563
|
+
return Ds = r, Ds;
|
|
564
564
|
}
|
|
565
|
-
var
|
|
565
|
+
var Ps, bl;
|
|
566
566
|
function eg() {
|
|
567
|
-
if (bl) return
|
|
567
|
+
if (bl) return Ps;
|
|
568
568
|
bl = 1;
|
|
569
569
|
var t = Kp(), e = Yp(), r = Jp(), n = Qp(), s = Xp();
|
|
570
570
|
function i(a) {
|
|
@@ -574,13 +574,13 @@ function eg() {
|
|
|
574
574
|
this.set(l[0], l[1]);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = n, i.prototype.set = s,
|
|
577
|
+
return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = n, i.prototype.set = s, Ps = i, Ps;
|
|
578
578
|
}
|
|
579
|
-
var
|
|
579
|
+
var Ms, Ol;
|
|
580
580
|
function tg() {
|
|
581
|
-
if (Ol) return
|
|
581
|
+
if (Ol) return Ms;
|
|
582
582
|
Ol = 1;
|
|
583
|
-
var t = eg(), e =
|
|
583
|
+
var t = eg(), e = $n(), r = Vo();
|
|
584
584
|
function n() {
|
|
585
585
|
this.size = 0, this.__data__ = {
|
|
586
586
|
hash: new t(),
|
|
@@ -588,74 +588,74 @@ function tg() {
|
|
|
588
588
|
string: new t()
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
|
-
return
|
|
591
|
+
return Ms = n, Ms;
|
|
592
592
|
}
|
|
593
|
-
var
|
|
593
|
+
var qs, El;
|
|
594
594
|
function rg() {
|
|
595
|
-
if (El) return
|
|
595
|
+
if (El) return qs;
|
|
596
596
|
El = 1;
|
|
597
597
|
function t(e) {
|
|
598
598
|
var r = typeof e;
|
|
599
599
|
return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? e !== "__proto__" : e === null;
|
|
600
600
|
}
|
|
601
|
-
return
|
|
601
|
+
return qs = t, qs;
|
|
602
602
|
}
|
|
603
|
-
var
|
|
604
|
-
function
|
|
605
|
-
if (Sl) return
|
|
603
|
+
var Ls, Sl;
|
|
604
|
+
function Vn() {
|
|
605
|
+
if (Sl) return Ls;
|
|
606
606
|
Sl = 1;
|
|
607
607
|
var t = rg();
|
|
608
608
|
function e(r, n) {
|
|
609
609
|
var s = r.__data__;
|
|
610
610
|
return t(n) ? s[typeof n == "string" ? "string" : "hash"] : s.map;
|
|
611
611
|
}
|
|
612
|
-
return
|
|
612
|
+
return Ls = e, Ls;
|
|
613
613
|
}
|
|
614
|
-
var
|
|
614
|
+
var $s, Tl;
|
|
615
615
|
function ng() {
|
|
616
|
-
if (Tl) return
|
|
616
|
+
if (Tl) return $s;
|
|
617
617
|
Tl = 1;
|
|
618
|
-
var t =
|
|
618
|
+
var t = Vn();
|
|
619
619
|
function e(r) {
|
|
620
620
|
var n = t(this, r).delete(r);
|
|
621
621
|
return this.size -= n ? 1 : 0, n;
|
|
622
622
|
}
|
|
623
|
-
return
|
|
623
|
+
return $s = e, $s;
|
|
624
624
|
}
|
|
625
|
-
var
|
|
625
|
+
var js, Rl;
|
|
626
626
|
function sg() {
|
|
627
|
-
if (Rl) return
|
|
627
|
+
if (Rl) return js;
|
|
628
628
|
Rl = 1;
|
|
629
|
-
var t =
|
|
629
|
+
var t = Vn();
|
|
630
630
|
function e(r) {
|
|
631
631
|
return t(this, r).get(r);
|
|
632
632
|
}
|
|
633
|
-
return
|
|
633
|
+
return js = e, js;
|
|
634
634
|
}
|
|
635
|
-
var
|
|
635
|
+
var Vs, Al;
|
|
636
636
|
function ig() {
|
|
637
|
-
if (Al) return
|
|
637
|
+
if (Al) return Vs;
|
|
638
638
|
Al = 1;
|
|
639
|
-
var t =
|
|
639
|
+
var t = Vn();
|
|
640
640
|
function e(r) {
|
|
641
641
|
return t(this, r).has(r);
|
|
642
642
|
}
|
|
643
|
-
return
|
|
643
|
+
return Vs = e, Vs;
|
|
644
644
|
}
|
|
645
|
-
var
|
|
645
|
+
var Us, Cl;
|
|
646
646
|
function ag() {
|
|
647
|
-
if (Cl) return
|
|
647
|
+
if (Cl) return Us;
|
|
648
648
|
Cl = 1;
|
|
649
|
-
var t =
|
|
649
|
+
var t = Vn();
|
|
650
650
|
function e(r, n) {
|
|
651
651
|
var s = t(this, r), i = s.size;
|
|
652
652
|
return s.set(r, n), this.size += s.size == i ? 0 : 1, this;
|
|
653
653
|
}
|
|
654
|
-
return
|
|
654
|
+
return Us = e, Us;
|
|
655
655
|
}
|
|
656
|
-
var
|
|
656
|
+
var Ws, kl;
|
|
657
657
|
function Uo() {
|
|
658
|
-
if (kl) return
|
|
658
|
+
if (kl) return Ws;
|
|
659
659
|
kl = 1;
|
|
660
660
|
var t = tg(), e = ng(), r = sg(), n = ig(), s = ag();
|
|
661
661
|
function i(a) {
|
|
@@ -665,13 +665,13 @@ function Uo() {
|
|
|
665
665
|
this.set(l[0], l[1]);
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = n, i.prototype.set = s,
|
|
668
|
+
return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = n, i.prototype.set = s, Ws = i, Ws;
|
|
669
669
|
}
|
|
670
|
-
var
|
|
670
|
+
var zs, Il;
|
|
671
671
|
function og() {
|
|
672
|
-
if (Il) return
|
|
672
|
+
if (Il) return zs;
|
|
673
673
|
Il = 1;
|
|
674
|
-
var t =
|
|
674
|
+
var t = $n(), e = Vo(), r = Uo(), n = 200;
|
|
675
675
|
function s(i, a) {
|
|
676
676
|
var o = this.__data__;
|
|
677
677
|
if (o instanceof t) {
|
|
@@ -682,41 +682,41 @@ function og() {
|
|
|
682
682
|
}
|
|
683
683
|
return o.set(i, a), this.size = o.size, this;
|
|
684
684
|
}
|
|
685
|
-
return
|
|
685
|
+
return zs = s, zs;
|
|
686
686
|
}
|
|
687
|
-
var
|
|
687
|
+
var Bs, xl;
|
|
688
688
|
function Wo() {
|
|
689
|
-
if (xl) return
|
|
689
|
+
if (xl) return Bs;
|
|
690
690
|
xl = 1;
|
|
691
|
-
var t =
|
|
691
|
+
var t = $n(), e = $p(), r = jp(), n = Vp(), s = Up(), i = og();
|
|
692
692
|
function a(o) {
|
|
693
693
|
var c = this.__data__ = new t(o);
|
|
694
694
|
this.size = c.size;
|
|
695
695
|
}
|
|
696
|
-
return a.prototype.clear = e, a.prototype.delete = r, a.prototype.get = n, a.prototype.has = s, a.prototype.set = i,
|
|
696
|
+
return a.prototype.clear = e, a.prototype.delete = r, a.prototype.get = n, a.prototype.has = s, a.prototype.set = i, Bs = a, Bs;
|
|
697
697
|
}
|
|
698
|
-
var
|
|
698
|
+
var Zs, Fl;
|
|
699
699
|
function cg() {
|
|
700
|
-
if (Fl) return
|
|
700
|
+
if (Fl) return Zs;
|
|
701
701
|
Fl = 1;
|
|
702
702
|
var t = "__lodash_hash_undefined__";
|
|
703
703
|
function e(r) {
|
|
704
704
|
return this.__data__.set(r, t), this;
|
|
705
705
|
}
|
|
706
|
-
return
|
|
706
|
+
return Zs = e, Zs;
|
|
707
707
|
}
|
|
708
|
-
var
|
|
708
|
+
var Gs, Nl;
|
|
709
709
|
function lg() {
|
|
710
|
-
if (Nl) return
|
|
710
|
+
if (Nl) return Gs;
|
|
711
711
|
Nl = 1;
|
|
712
712
|
function t(e) {
|
|
713
713
|
return this.__data__.has(e);
|
|
714
714
|
}
|
|
715
|
-
return
|
|
715
|
+
return Gs = t, Gs;
|
|
716
716
|
}
|
|
717
|
-
var
|
|
717
|
+
var Hs, Dl;
|
|
718
718
|
function ug() {
|
|
719
|
-
if (Dl) return
|
|
719
|
+
if (Dl) return Hs;
|
|
720
720
|
Dl = 1;
|
|
721
721
|
var t = Uo(), e = cg(), r = lg();
|
|
722
722
|
function n(s) {
|
|
@@ -724,11 +724,11 @@ function ug() {
|
|
|
724
724
|
for (this.__data__ = new t(); ++i < a; )
|
|
725
725
|
this.add(s[i]);
|
|
726
726
|
}
|
|
727
|
-
return n.prototype.add = n.prototype.push = e, n.prototype.has = r,
|
|
727
|
+
return n.prototype.add = n.prototype.push = e, n.prototype.has = r, Hs = n, Hs;
|
|
728
728
|
}
|
|
729
|
-
var
|
|
729
|
+
var Ks, Pl;
|
|
730
730
|
function fg() {
|
|
731
|
-
if (Pl) return
|
|
731
|
+
if (Pl) return Ks;
|
|
732
732
|
Pl = 1;
|
|
733
733
|
function t(e, r) {
|
|
734
734
|
for (var n = -1, s = e == null ? 0 : e.length; ++n < s; )
|
|
@@ -736,20 +736,20 @@ function fg() {
|
|
|
736
736
|
return !0;
|
|
737
737
|
return !1;
|
|
738
738
|
}
|
|
739
|
-
return
|
|
739
|
+
return Ks = t, Ks;
|
|
740
740
|
}
|
|
741
|
-
var
|
|
741
|
+
var Ys, Ml;
|
|
742
742
|
function dg() {
|
|
743
|
-
if (Ml) return
|
|
743
|
+
if (Ml) return Ys;
|
|
744
744
|
Ml = 1;
|
|
745
745
|
function t(e, r) {
|
|
746
746
|
return e.has(r);
|
|
747
747
|
}
|
|
748
|
-
return
|
|
748
|
+
return Ys = t, Ys;
|
|
749
749
|
}
|
|
750
|
-
var
|
|
750
|
+
var Js, ql;
|
|
751
751
|
function zd() {
|
|
752
|
-
if (ql) return
|
|
752
|
+
if (ql) return Js;
|
|
753
753
|
ql = 1;
|
|
754
754
|
var t = ug(), e = fg(), r = dg(), n = 1, s = 2;
|
|
755
755
|
function i(a, o, c, l, u, f) {
|
|
@@ -785,18 +785,18 @@ function zd() {
|
|
|
785
785
|
}
|
|
786
786
|
return f.delete(a), f.delete(o), E;
|
|
787
787
|
}
|
|
788
|
-
return
|
|
788
|
+
return Js = i, Js;
|
|
789
789
|
}
|
|
790
|
-
var
|
|
790
|
+
var Qs, Ll;
|
|
791
791
|
function Bd() {
|
|
792
|
-
if (Ll) return
|
|
792
|
+
if (Ll) return Qs;
|
|
793
793
|
Ll = 1;
|
|
794
794
|
var t = dt(), e = t.Uint8Array;
|
|
795
|
-
return
|
|
795
|
+
return Qs = e, Qs;
|
|
796
796
|
}
|
|
797
|
-
var
|
|
797
|
+
var Xs, $l;
|
|
798
798
|
function hg() {
|
|
799
|
-
if ($l) return
|
|
799
|
+
if ($l) return Xs;
|
|
800
800
|
$l = 1;
|
|
801
801
|
function t(e) {
|
|
802
802
|
var r = -1, n = Array(e.size);
|
|
@@ -804,11 +804,11 @@ function hg() {
|
|
|
804
804
|
n[++r] = [i, s];
|
|
805
805
|
}), n;
|
|
806
806
|
}
|
|
807
|
-
return
|
|
807
|
+
return Xs = t, Xs;
|
|
808
808
|
}
|
|
809
|
-
var
|
|
809
|
+
var ei, jl;
|
|
810
810
|
function mg() {
|
|
811
|
-
if (jl) return
|
|
811
|
+
if (jl) return ei;
|
|
812
812
|
jl = 1;
|
|
813
813
|
function t(e) {
|
|
814
814
|
var r = -1, n = Array(e.size);
|
|
@@ -816,13 +816,13 @@ function mg() {
|
|
|
816
816
|
n[++r] = s;
|
|
817
817
|
}), n;
|
|
818
818
|
}
|
|
819
|
-
return
|
|
819
|
+
return ei = t, ei;
|
|
820
820
|
}
|
|
821
|
-
var
|
|
821
|
+
var ti, Vl;
|
|
822
822
|
function pg() {
|
|
823
|
-
if (Vl) return
|
|
823
|
+
if (Vl) return ti;
|
|
824
824
|
Vl = 1;
|
|
825
|
-
var t =
|
|
825
|
+
var t = Gr(), e = Bd(), r = Zr(), n = zd(), s = hg(), i = mg(), a = 1, o = 2, c = "[object Boolean]", l = "[object Date]", u = "[object Error]", f = "[object Map]", d = "[object Number]", h = "[object RegExp]", p = "[object Set]", w = "[object String]", g = "[object Symbol]", b = "[object ArrayBuffer]", E = "[object DataView]", x = t ? t.prototype : void 0, k = x ? x.valueOf : void 0;
|
|
826
826
|
function y(O, N, v, I, T, m, C) {
|
|
827
827
|
switch (v) {
|
|
828
828
|
case E:
|
|
@@ -858,40 +858,40 @@ function pg() {
|
|
|
858
858
|
}
|
|
859
859
|
return !1;
|
|
860
860
|
}
|
|
861
|
-
return
|
|
861
|
+
return ti = y, ti;
|
|
862
862
|
}
|
|
863
|
-
var
|
|
863
|
+
var ri, Ul;
|
|
864
864
|
function Zd() {
|
|
865
|
-
if (Ul) return
|
|
865
|
+
if (Ul) return ri;
|
|
866
866
|
Ul = 1;
|
|
867
867
|
function t(e, r) {
|
|
868
868
|
for (var n = -1, s = r.length, i = e.length; ++n < s; )
|
|
869
869
|
e[i + n] = r[n];
|
|
870
870
|
return e;
|
|
871
871
|
}
|
|
872
|
-
return
|
|
872
|
+
return ri = t, ri;
|
|
873
873
|
}
|
|
874
|
-
var
|
|
874
|
+
var ni, Wl;
|
|
875
875
|
function Mt() {
|
|
876
|
-
if (Wl) return
|
|
876
|
+
if (Wl) return ni;
|
|
877
877
|
Wl = 1;
|
|
878
878
|
var t = Array.isArray;
|
|
879
|
-
return
|
|
879
|
+
return ni = t, ni;
|
|
880
880
|
}
|
|
881
|
-
var
|
|
881
|
+
var si, zl;
|
|
882
882
|
function Gd() {
|
|
883
|
-
if (zl) return
|
|
883
|
+
if (zl) return si;
|
|
884
884
|
zl = 1;
|
|
885
885
|
var t = Zd(), e = Mt();
|
|
886
886
|
function r(n, s, i) {
|
|
887
887
|
var a = s(n);
|
|
888
888
|
return e(n) ? a : t(a, i(n));
|
|
889
889
|
}
|
|
890
|
-
return
|
|
890
|
+
return si = r, si;
|
|
891
891
|
}
|
|
892
|
-
var
|
|
892
|
+
var ii, Bl;
|
|
893
893
|
function gg() {
|
|
894
|
-
if (Bl) return
|
|
894
|
+
if (Bl) return ii;
|
|
895
895
|
Bl = 1;
|
|
896
896
|
function t(e, r) {
|
|
897
897
|
for (var n = -1, s = e == null ? 0 : e.length, i = 0, a = []; ++n < s; ) {
|
|
@@ -900,128 +900,128 @@ function gg() {
|
|
|
900
900
|
}
|
|
901
901
|
return a;
|
|
902
902
|
}
|
|
903
|
-
return
|
|
903
|
+
return ii = t, ii;
|
|
904
904
|
}
|
|
905
|
-
var
|
|
905
|
+
var ai, Zl;
|
|
906
906
|
function Hd() {
|
|
907
|
-
if (Zl) return
|
|
907
|
+
if (Zl) return ai;
|
|
908
908
|
Zl = 1;
|
|
909
909
|
function t() {
|
|
910
910
|
return [];
|
|
911
911
|
}
|
|
912
|
-
return
|
|
912
|
+
return ai = t, ai;
|
|
913
913
|
}
|
|
914
|
-
var
|
|
914
|
+
var oi, Gl;
|
|
915
915
|
function zo() {
|
|
916
|
-
if (Gl) return
|
|
916
|
+
if (Gl) return oi;
|
|
917
917
|
Gl = 1;
|
|
918
918
|
var t = gg(), e = Hd(), r = Object.prototype, n = r.propertyIsEnumerable, s = Object.getOwnPropertySymbols, i = s ? function(a) {
|
|
919
919
|
return a == null ? [] : (a = Object(a), t(s(a), function(o) {
|
|
920
920
|
return n.call(a, o);
|
|
921
921
|
}));
|
|
922
922
|
} : e;
|
|
923
|
-
return
|
|
923
|
+
return oi = i, oi;
|
|
924
924
|
}
|
|
925
|
-
var
|
|
925
|
+
var ci, Hl;
|
|
926
926
|
function yg() {
|
|
927
|
-
if (Hl) return
|
|
927
|
+
if (Hl) return ci;
|
|
928
928
|
Hl = 1;
|
|
929
929
|
function t(e, r) {
|
|
930
930
|
for (var n = -1, s = Array(e); ++n < e; )
|
|
931
931
|
s[n] = r(n);
|
|
932
932
|
return s;
|
|
933
933
|
}
|
|
934
|
-
return
|
|
934
|
+
return ci = t, ci;
|
|
935
935
|
}
|
|
936
|
-
var
|
|
936
|
+
var li, Kl;
|
|
937
937
|
function Ot() {
|
|
938
|
-
if (Kl) return
|
|
938
|
+
if (Kl) return li;
|
|
939
939
|
Kl = 1;
|
|
940
940
|
function t(e) {
|
|
941
941
|
return e != null && typeof e == "object";
|
|
942
942
|
}
|
|
943
|
-
return
|
|
943
|
+
return li = t, li;
|
|
944
944
|
}
|
|
945
|
-
var
|
|
945
|
+
var ui, Yl;
|
|
946
946
|
function _g() {
|
|
947
|
-
if (Yl) return
|
|
947
|
+
if (Yl) return ui;
|
|
948
948
|
Yl = 1;
|
|
949
949
|
var t = vr(), e = Ot(), r = "[object Arguments]";
|
|
950
950
|
function n(s) {
|
|
951
951
|
return e(s) && t(s) == r;
|
|
952
952
|
}
|
|
953
|
-
return
|
|
953
|
+
return ui = n, ui;
|
|
954
954
|
}
|
|
955
|
-
var
|
|
955
|
+
var fi, Jl;
|
|
956
956
|
function Kd() {
|
|
957
|
-
if (Jl) return
|
|
957
|
+
if (Jl) return fi;
|
|
958
958
|
Jl = 1;
|
|
959
959
|
var t = _g(), e = Ot(), r = Object.prototype, n = r.hasOwnProperty, s = r.propertyIsEnumerable, i = t(/* @__PURE__ */ (function() {
|
|
960
960
|
return arguments;
|
|
961
961
|
})()) ? t : function(a) {
|
|
962
962
|
return e(a) && n.call(a, "callee") && !s.call(a, "callee");
|
|
963
963
|
};
|
|
964
|
-
return
|
|
964
|
+
return fi = i, fi;
|
|
965
965
|
}
|
|
966
|
-
var Ar = { exports: {} },
|
|
966
|
+
var Ar = { exports: {} }, di, Ql;
|
|
967
967
|
function vg() {
|
|
968
|
-
if (Ql) return
|
|
968
|
+
if (Ql) return di;
|
|
969
969
|
Ql = 1;
|
|
970
970
|
function t() {
|
|
971
971
|
return !1;
|
|
972
972
|
}
|
|
973
|
-
return
|
|
973
|
+
return di = t, di;
|
|
974
974
|
}
|
|
975
975
|
Ar.exports;
|
|
976
976
|
var Xl;
|
|
977
|
-
function
|
|
977
|
+
function Un() {
|
|
978
978
|
return Xl || (Xl = 1, (function(t, e) {
|
|
979
979
|
var r = dt(), n = vg(), s = e && !e.nodeType && e, i = s && !0 && t && !t.nodeType && t, a = i && i.exports === s, o = a ? r.Buffer : void 0, c = o ? o.isBuffer : void 0, l = c || n;
|
|
980
980
|
t.exports = l;
|
|
981
981
|
})(Ar, Ar.exports)), Ar.exports;
|
|
982
982
|
}
|
|
983
|
-
var
|
|
983
|
+
var hi, eu;
|
|
984
984
|
function Bo() {
|
|
985
|
-
if (eu) return
|
|
985
|
+
if (eu) return hi;
|
|
986
986
|
eu = 1;
|
|
987
987
|
var t = 9007199254740991, e = /^(?:0|[1-9]\d*)$/;
|
|
988
988
|
function r(n, s) {
|
|
989
989
|
var i = typeof n;
|
|
990
990
|
return s = s ?? t, !!s && (i == "number" || i != "symbol" && e.test(n)) && n > -1 && n % 1 == 0 && n < s;
|
|
991
991
|
}
|
|
992
|
-
return
|
|
992
|
+
return hi = r, hi;
|
|
993
993
|
}
|
|
994
|
-
var
|
|
994
|
+
var mi, tu;
|
|
995
995
|
function Yd() {
|
|
996
|
-
if (tu) return
|
|
996
|
+
if (tu) return mi;
|
|
997
997
|
tu = 1;
|
|
998
998
|
var t = 9007199254740991;
|
|
999
999
|
function e(r) {
|
|
1000
1000
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= t;
|
|
1001
1001
|
}
|
|
1002
|
-
return
|
|
1002
|
+
return mi = e, mi;
|
|
1003
1003
|
}
|
|
1004
|
-
var
|
|
1004
|
+
var pi, ru;
|
|
1005
1005
|
function wg() {
|
|
1006
|
-
if (ru) return
|
|
1006
|
+
if (ru) return pi;
|
|
1007
1007
|
ru = 1;
|
|
1008
1008
|
var t = vr(), e = Yd(), r = Ot(), n = "[object Arguments]", s = "[object Array]", i = "[object Boolean]", a = "[object Date]", o = "[object Error]", c = "[object Function]", l = "[object Map]", u = "[object Number]", f = "[object Object]", d = "[object RegExp]", h = "[object Set]", p = "[object String]", w = "[object WeakMap]", g = "[object ArrayBuffer]", b = "[object DataView]", E = "[object Float32Array]", x = "[object Float64Array]", k = "[object Int8Array]", y = "[object Int16Array]", O = "[object Int32Array]", N = "[object Uint8Array]", v = "[object Uint8ClampedArray]", I = "[object Uint16Array]", T = "[object Uint32Array]", m = {};
|
|
1009
1009
|
m[E] = m[x] = m[k] = m[y] = m[O] = m[N] = m[v] = m[I] = m[T] = !0, m[n] = m[s] = m[g] = m[i] = m[b] = m[a] = m[o] = m[c] = m[l] = m[u] = m[f] = m[d] = m[h] = m[p] = m[w] = !1;
|
|
1010
1010
|
function C(S) {
|
|
1011
1011
|
return r(S) && e(S.length) && !!m[t(S)];
|
|
1012
1012
|
}
|
|
1013
|
-
return
|
|
1013
|
+
return pi = C, pi;
|
|
1014
1014
|
}
|
|
1015
|
-
var
|
|
1015
|
+
var gi, nu;
|
|
1016
1016
|
function Zo() {
|
|
1017
|
-
if (nu) return
|
|
1017
|
+
if (nu) return gi;
|
|
1018
1018
|
nu = 1;
|
|
1019
1019
|
function t(e) {
|
|
1020
1020
|
return function(r) {
|
|
1021
1021
|
return e(r);
|
|
1022
1022
|
};
|
|
1023
1023
|
}
|
|
1024
|
-
return
|
|
1024
|
+
return gi = t, gi;
|
|
1025
1025
|
}
|
|
1026
1026
|
var Cr = { exports: {} };
|
|
1027
1027
|
Cr.exports;
|
|
@@ -1038,18 +1038,18 @@ function Go() {
|
|
|
1038
1038
|
t.exports = o;
|
|
1039
1039
|
})(Cr, Cr.exports)), Cr.exports;
|
|
1040
1040
|
}
|
|
1041
|
-
var
|
|
1041
|
+
var yi, iu;
|
|
1042
1042
|
function Ho() {
|
|
1043
|
-
if (iu) return
|
|
1043
|
+
if (iu) return yi;
|
|
1044
1044
|
iu = 1;
|
|
1045
1045
|
var t = wg(), e = Zo(), r = Go(), n = r && r.isTypedArray, s = n ? e(n) : t;
|
|
1046
|
-
return
|
|
1046
|
+
return yi = s, yi;
|
|
1047
1047
|
}
|
|
1048
|
-
var
|
|
1048
|
+
var _i, au;
|
|
1049
1049
|
function Jd() {
|
|
1050
|
-
if (au) return
|
|
1050
|
+
if (au) return _i;
|
|
1051
1051
|
au = 1;
|
|
1052
|
-
var t = yg(), e = Kd(), r = Mt(), n =
|
|
1052
|
+
var t = yg(), e = Kd(), r = Mt(), n = Un(), s = Bo(), i = Ho(), a = Object.prototype, o = a.hasOwnProperty;
|
|
1053
1053
|
function c(l, u) {
|
|
1054
1054
|
var f = r(l), d = !f && e(l), h = !f && !d && n(l), p = !f && !d && !h && i(l), w = f || d || h || p, g = w ? t(l.length, String) : [], b = g.length;
|
|
1055
1055
|
for (var E in l)
|
|
@@ -1060,40 +1060,40 @@ function Jd() {
|
|
|
1060
1060
|
s(E, b))) && g.push(E);
|
|
1061
1061
|
return g;
|
|
1062
1062
|
}
|
|
1063
|
-
return
|
|
1063
|
+
return _i = c, _i;
|
|
1064
1064
|
}
|
|
1065
|
-
var
|
|
1065
|
+
var vi, ou;
|
|
1066
1066
|
function Ko() {
|
|
1067
|
-
if (ou) return
|
|
1067
|
+
if (ou) return vi;
|
|
1068
1068
|
ou = 1;
|
|
1069
1069
|
var t = Object.prototype;
|
|
1070
1070
|
function e(r) {
|
|
1071
1071
|
var n = r && r.constructor, s = typeof n == "function" && n.prototype || t;
|
|
1072
1072
|
return r === s;
|
|
1073
1073
|
}
|
|
1074
|
-
return
|
|
1074
|
+
return vi = e, vi;
|
|
1075
1075
|
}
|
|
1076
|
-
var
|
|
1076
|
+
var wi, cu;
|
|
1077
1077
|
function Qd() {
|
|
1078
|
-
if (cu) return
|
|
1078
|
+
if (cu) return wi;
|
|
1079
1079
|
cu = 1;
|
|
1080
1080
|
function t(e, r) {
|
|
1081
1081
|
return function(n) {
|
|
1082
1082
|
return e(r(n));
|
|
1083
1083
|
};
|
|
1084
1084
|
}
|
|
1085
|
-
return
|
|
1085
|
+
return wi = t, wi;
|
|
1086
1086
|
}
|
|
1087
|
-
var
|
|
1087
|
+
var bi, lu;
|
|
1088
1088
|
function bg() {
|
|
1089
|
-
if (lu) return
|
|
1089
|
+
if (lu) return bi;
|
|
1090
1090
|
lu = 1;
|
|
1091
1091
|
var t = Qd(), e = t(Object.keys, Object);
|
|
1092
|
-
return
|
|
1092
|
+
return bi = e, bi;
|
|
1093
1093
|
}
|
|
1094
|
-
var
|
|
1094
|
+
var Oi, uu;
|
|
1095
1095
|
function Og() {
|
|
1096
|
-
if (uu) return
|
|
1096
|
+
if (uu) return Oi;
|
|
1097
1097
|
uu = 1;
|
|
1098
1098
|
var t = Ko(), e = bg(), r = Object.prototype, n = r.hasOwnProperty;
|
|
1099
1099
|
function s(i) {
|
|
@@ -1104,41 +1104,41 @@ function Og() {
|
|
|
1104
1104
|
n.call(i, o) && o != "constructor" && a.push(o);
|
|
1105
1105
|
return a;
|
|
1106
1106
|
}
|
|
1107
|
-
return
|
|
1107
|
+
return Oi = s, Oi;
|
|
1108
1108
|
}
|
|
1109
|
-
var
|
|
1110
|
-
function
|
|
1111
|
-
if (fu) return
|
|
1109
|
+
var Ei, fu;
|
|
1110
|
+
function Wn() {
|
|
1111
|
+
if (fu) return Ei;
|
|
1112
1112
|
fu = 1;
|
|
1113
1113
|
var t = jo(), e = Yd();
|
|
1114
1114
|
function r(n) {
|
|
1115
1115
|
return n != null && e(n.length) && !t(n);
|
|
1116
1116
|
}
|
|
1117
|
-
return
|
|
1117
|
+
return Ei = r, Ei;
|
|
1118
1118
|
}
|
|
1119
|
-
var
|
|
1119
|
+
var Si, du;
|
|
1120
1120
|
function Yo() {
|
|
1121
|
-
if (du) return
|
|
1121
|
+
if (du) return Si;
|
|
1122
1122
|
du = 1;
|
|
1123
|
-
var t = Jd(), e = Og(), r =
|
|
1123
|
+
var t = Jd(), e = Og(), r = Wn();
|
|
1124
1124
|
function n(s) {
|
|
1125
1125
|
return r(s) ? t(s) : e(s);
|
|
1126
1126
|
}
|
|
1127
|
-
return
|
|
1127
|
+
return Si = n, Si;
|
|
1128
1128
|
}
|
|
1129
|
-
var
|
|
1129
|
+
var Ti, hu;
|
|
1130
1130
|
function Xd() {
|
|
1131
|
-
if (hu) return
|
|
1131
|
+
if (hu) return Ti;
|
|
1132
1132
|
hu = 1;
|
|
1133
1133
|
var t = Gd(), e = zo(), r = Yo();
|
|
1134
1134
|
function n(s) {
|
|
1135
1135
|
return t(s, r, e);
|
|
1136
1136
|
}
|
|
1137
|
-
return
|
|
1137
|
+
return Ti = n, Ti;
|
|
1138
1138
|
}
|
|
1139
|
-
var
|
|
1139
|
+
var Ri, mu;
|
|
1140
1140
|
function Eg() {
|
|
1141
|
-
if (mu) return
|
|
1141
|
+
if (mu) return Ri;
|
|
1142
1142
|
mu = 1;
|
|
1143
1143
|
var t = Xd(), e = 1, r = Object.prototype, n = r.hasOwnProperty;
|
|
1144
1144
|
function s(i, a, o, c, l, u) {
|
|
@@ -1172,39 +1172,39 @@ function Eg() {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
return u.delete(i), u.delete(a), k;
|
|
1174
1174
|
}
|
|
1175
|
-
return
|
|
1175
|
+
return Ri = s, Ri;
|
|
1176
1176
|
}
|
|
1177
|
-
var
|
|
1177
|
+
var Ai, pu;
|
|
1178
1178
|
function Sg() {
|
|
1179
|
-
if (pu) return
|
|
1179
|
+
if (pu) return Ai;
|
|
1180
1180
|
pu = 1;
|
|
1181
1181
|
var t = Jt(), e = dt(), r = t(e, "DataView");
|
|
1182
|
-
return
|
|
1182
|
+
return Ai = r, Ai;
|
|
1183
1183
|
}
|
|
1184
|
-
var
|
|
1184
|
+
var Ci, gu;
|
|
1185
1185
|
function Tg() {
|
|
1186
|
-
if (gu) return
|
|
1186
|
+
if (gu) return Ci;
|
|
1187
1187
|
gu = 1;
|
|
1188
1188
|
var t = Jt(), e = dt(), r = t(e, "Promise");
|
|
1189
|
-
return
|
|
1189
|
+
return Ci = r, Ci;
|
|
1190
1190
|
}
|
|
1191
|
-
var
|
|
1191
|
+
var ki, yu;
|
|
1192
1192
|
function Rg() {
|
|
1193
|
-
if (yu) return
|
|
1193
|
+
if (yu) return ki;
|
|
1194
1194
|
yu = 1;
|
|
1195
1195
|
var t = Jt(), e = dt(), r = t(e, "Set");
|
|
1196
|
-
return
|
|
1196
|
+
return ki = r, ki;
|
|
1197
1197
|
}
|
|
1198
|
-
var
|
|
1198
|
+
var Ii, _u;
|
|
1199
1199
|
function Ag() {
|
|
1200
|
-
if (_u) return
|
|
1200
|
+
if (_u) return Ii;
|
|
1201
1201
|
_u = 1;
|
|
1202
1202
|
var t = Jt(), e = dt(), r = t(e, "WeakMap");
|
|
1203
|
-
return
|
|
1203
|
+
return Ii = r, Ii;
|
|
1204
1204
|
}
|
|
1205
|
-
var
|
|
1206
|
-
function
|
|
1207
|
-
if (vu) return
|
|
1205
|
+
var xi, vu;
|
|
1206
|
+
function zn() {
|
|
1207
|
+
if (vu) return xi;
|
|
1208
1208
|
vu = 1;
|
|
1209
1209
|
var t = Sg(), e = Vo(), r = Tg(), n = Rg(), s = Ag(), i = vr(), a = Wd(), o = "[object Map]", c = "[object Object]", l = "[object Promise]", u = "[object Set]", f = "[object WeakMap]", d = "[object DataView]", h = a(t), p = a(e), w = a(r), g = a(n), b = a(s), E = i;
|
|
1210
1210
|
return (t && E(new t(new ArrayBuffer(1))) != d || e && E(new e()) != o || r && E(r.resolve()) != l || n && E(new n()) != u || s && E(new s()) != f) && (E = function(x) {
|
|
@@ -1223,13 +1223,13 @@ function Wn() {
|
|
|
1223
1223
|
return f;
|
|
1224
1224
|
}
|
|
1225
1225
|
return k;
|
|
1226
|
-
}),
|
|
1226
|
+
}), xi = E, xi;
|
|
1227
1227
|
}
|
|
1228
|
-
var
|
|
1228
|
+
var Fi, wu;
|
|
1229
1229
|
function Cg() {
|
|
1230
|
-
if (wu) return
|
|
1230
|
+
if (wu) return Fi;
|
|
1231
1231
|
wu = 1;
|
|
1232
|
-
var t = Wo(), e = zd(), r = pg(), n = Eg(), s =
|
|
1232
|
+
var t = Wo(), e = zd(), r = pg(), n = Eg(), s = zn(), i = Mt(), a = Un(), o = Ho(), c = 1, l = "[object Arguments]", u = "[object Array]", f = "[object Object]", d = Object.prototype, h = d.hasOwnProperty;
|
|
1233
1233
|
function p(w, g, b, E, x, k) {
|
|
1234
1234
|
var y = i(w), O = i(g), N = y ? u : s(w), v = O ? u : s(g);
|
|
1235
1235
|
N = N == l ? f : N, v = v == l ? f : v;
|
|
@@ -1250,30 +1250,30 @@ function Cg() {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
return m ? (k || (k = new t()), n(w, g, b, E, x, k)) : !1;
|
|
1252
1252
|
}
|
|
1253
|
-
return
|
|
1253
|
+
return Fi = p, Fi;
|
|
1254
1254
|
}
|
|
1255
|
-
var
|
|
1255
|
+
var Ni, bu;
|
|
1256
1256
|
function kg() {
|
|
1257
|
-
if (bu) return
|
|
1257
|
+
if (bu) return Ni;
|
|
1258
1258
|
bu = 1;
|
|
1259
1259
|
var t = Cg(), e = Ot();
|
|
1260
1260
|
function r(n, s, i, a, o) {
|
|
1261
1261
|
return n === s ? !0 : n == null || s == null || !e(n) && !e(s) ? n !== n && s !== s : t(n, s, i, a, r, o);
|
|
1262
1262
|
}
|
|
1263
|
-
return
|
|
1263
|
+
return Ni = r, Ni;
|
|
1264
1264
|
}
|
|
1265
|
-
var
|
|
1265
|
+
var Di, Ou;
|
|
1266
1266
|
function Ig() {
|
|
1267
|
-
if (Ou) return
|
|
1267
|
+
if (Ou) return Di;
|
|
1268
1268
|
Ou = 1;
|
|
1269
1269
|
var t = kg();
|
|
1270
1270
|
function e(r, n) {
|
|
1271
1271
|
return t(r, n);
|
|
1272
1272
|
}
|
|
1273
|
-
return
|
|
1273
|
+
return Di = e, Di;
|
|
1274
1274
|
}
|
|
1275
1275
|
var xg = Ig();
|
|
1276
|
-
const Fg = /* @__PURE__ */
|
|
1276
|
+
const Fg = /* @__PURE__ */ qn(xg), Ng = (t, e, r, n, s, i, a, o, c) => {
|
|
1277
1277
|
const { access: l } = e, { permissionWriteRestrictions: u } = l;
|
|
1278
1278
|
let f = !0, d = "";
|
|
1279
1279
|
const h = u?.filter((p) => n === p.userRole);
|
|
@@ -1290,7 +1290,7 @@ const Fg = /* @__PURE__ */ Mn(xg), Ng = (t, e, r, n, s, i, a, o, c) => {
|
|
|
1290
1290
|
if (s && !u)
|
|
1291
1291
|
throw new Error("PERMISSION_DENIED");
|
|
1292
1292
|
s && !ut("Create", u) && (f = !1), s && // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1293
|
-
!
|
|
1293
|
+
!yn("Create", r, n, s, i, t) && (f = !1), r.auth;
|
|
1294
1294
|
for (const d of l) {
|
|
1295
1295
|
const h = t[d.name];
|
|
1296
1296
|
d.access && !Gt(d, i, r, o) && h !== void 0 && (f = !1), h !== void 0 && !xp(d, i, c.collection, o) && (f = !1);
|
|
@@ -1307,8 +1307,8 @@ const Fg = /* @__PURE__ */ Mn(xg), Ng = (t, e, r, n, s, i, a, o, c) => {
|
|
|
1307
1307
|
if (i && !h)
|
|
1308
1308
|
throw new Error("PERMISSION_DENIED");
|
|
1309
1309
|
i && !ut("Update", h) && (w = !1, g = "Authenticated user does not have Update access to this collection"), i && // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1310
|
-
(!
|
|
1311
|
-
!
|
|
1310
|
+
(!yn("Update", n, s, i, a, e) || // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1311
|
+
!yn("Update", n, s, i, a, p)) && (w = !1, g = "Authenticated user does not have Update access to this document"), i && n.softDelete && p[n.softDelete.archivedField] !== e[n.softDelete.archivedField] && // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1312
1312
|
!ut("Delete", h) && (w = !1, g = "Authenticated user does not have Delete or Restore access to this document");
|
|
1313
1313
|
for (const b of d) {
|
|
1314
1314
|
const E = t[b.name];
|
|
@@ -1321,7 +1321,7 @@ const Fg = /* @__PURE__ */ Mn(xg), Ng = (t, e, r, n, s, i, a, o, c) => {
|
|
|
1321
1321
|
let c = !0;
|
|
1322
1322
|
if (!o)
|
|
1323
1323
|
throw new Error("PERMISSION_DENIED");
|
|
1324
|
-
if (ut("Delete", o) || (c = !1),
|
|
1324
|
+
if (ut("Delete", o) || (c = !1), yn("Delete", r, n, s, i, t) || (c = !1), r.auth && t.User_ID && (Ip(o) || (c = !1), Dg("delete", t, e, r, n, s, i) || (c = !1)), !c)
|
|
1325
1325
|
throw new Error("PERMISSION_DENIED");
|
|
1326
1326
|
}, eh = (t, e, r) => {
|
|
1327
1327
|
const { access: n } = e, { entityRestrictions: s } = n;
|
|
@@ -1359,9 +1359,9 @@ const Fg = /* @__PURE__ */ Mn(xg), Ng = (t, e, r, n, s, i, a, o, c) => {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
return i;
|
|
1361
1361
|
}, $g = (t, e) => e.fields.filter((r) => r.name === t.name)[0];
|
|
1362
|
-
var
|
|
1362
|
+
var Pi, Eu;
|
|
1363
1363
|
function th() {
|
|
1364
|
-
if (Eu) return
|
|
1364
|
+
if (Eu) return Pi;
|
|
1365
1365
|
Eu = 1;
|
|
1366
1366
|
var t = Jt(), e = (function() {
|
|
1367
1367
|
try {
|
|
@@ -1370,11 +1370,11 @@ function th() {
|
|
|
1370
1370
|
} catch {
|
|
1371
1371
|
}
|
|
1372
1372
|
})();
|
|
1373
|
-
return
|
|
1373
|
+
return Pi = e, Pi;
|
|
1374
1374
|
}
|
|
1375
|
-
var
|
|
1375
|
+
var Mi, Su;
|
|
1376
1376
|
function Jo() {
|
|
1377
|
-
if (Su) return
|
|
1377
|
+
if (Su) return Mi;
|
|
1378
1378
|
Su = 1;
|
|
1379
1379
|
var t = th();
|
|
1380
1380
|
function e(r, n, s) {
|
|
@@ -1385,21 +1385,21 @@ function Jo() {
|
|
|
1385
1385
|
writable: !0
|
|
1386
1386
|
}) : r[n] = s;
|
|
1387
1387
|
}
|
|
1388
|
-
return
|
|
1388
|
+
return Mi = e, Mi;
|
|
1389
1389
|
}
|
|
1390
|
-
var
|
|
1390
|
+
var qi, Tu;
|
|
1391
1391
|
function rh() {
|
|
1392
|
-
if (Tu) return
|
|
1392
|
+
if (Tu) return qi;
|
|
1393
1393
|
Tu = 1;
|
|
1394
|
-
var t = Jo(), e =
|
|
1394
|
+
var t = Jo(), e = Zr();
|
|
1395
1395
|
function r(n, s, i) {
|
|
1396
1396
|
(i !== void 0 && !e(n[s], i) || i === void 0 && !(s in n)) && t(n, s, i);
|
|
1397
1397
|
}
|
|
1398
|
-
return
|
|
1398
|
+
return qi = r, qi;
|
|
1399
1399
|
}
|
|
1400
|
-
var
|
|
1400
|
+
var Li, Ru;
|
|
1401
1401
|
function jg() {
|
|
1402
|
-
if (Ru) return
|
|
1402
|
+
if (Ru) return Li;
|
|
1403
1403
|
Ru = 1;
|
|
1404
1404
|
function t(e) {
|
|
1405
1405
|
return function(r, n, s) {
|
|
@@ -1411,14 +1411,14 @@ function jg() {
|
|
|
1411
1411
|
return r;
|
|
1412
1412
|
};
|
|
1413
1413
|
}
|
|
1414
|
-
return
|
|
1414
|
+
return Li = t, Li;
|
|
1415
1415
|
}
|
|
1416
|
-
var
|
|
1416
|
+
var $i, Au;
|
|
1417
1417
|
function Vg() {
|
|
1418
|
-
if (Au) return
|
|
1418
|
+
if (Au) return $i;
|
|
1419
1419
|
Au = 1;
|
|
1420
1420
|
var t = jg(), e = t();
|
|
1421
|
-
return
|
|
1421
|
+
return $i = e, $i;
|
|
1422
1422
|
}
|
|
1423
1423
|
var kr = { exports: {} };
|
|
1424
1424
|
kr.exports;
|
|
@@ -1435,31 +1435,31 @@ function nh() {
|
|
|
1435
1435
|
t.exports = c;
|
|
1436
1436
|
})(kr, kr.exports)), kr.exports;
|
|
1437
1437
|
}
|
|
1438
|
-
var
|
|
1438
|
+
var ji, ku;
|
|
1439
1439
|
function Qo() {
|
|
1440
|
-
if (ku) return
|
|
1440
|
+
if (ku) return ji;
|
|
1441
1441
|
ku = 1;
|
|
1442
1442
|
var t = Bd();
|
|
1443
1443
|
function e(r) {
|
|
1444
1444
|
var n = new r.constructor(r.byteLength);
|
|
1445
1445
|
return new t(n).set(new t(r)), n;
|
|
1446
1446
|
}
|
|
1447
|
-
return
|
|
1447
|
+
return ji = e, ji;
|
|
1448
1448
|
}
|
|
1449
|
-
var
|
|
1449
|
+
var Vi, Iu;
|
|
1450
1450
|
function sh() {
|
|
1451
|
-
if (Iu) return
|
|
1451
|
+
if (Iu) return Vi;
|
|
1452
1452
|
Iu = 1;
|
|
1453
1453
|
var t = Qo();
|
|
1454
1454
|
function e(r, n) {
|
|
1455
1455
|
var s = n ? t(r.buffer) : r.buffer;
|
|
1456
1456
|
return new r.constructor(s, r.byteOffset, r.length);
|
|
1457
1457
|
}
|
|
1458
|
-
return
|
|
1458
|
+
return Vi = e, Vi;
|
|
1459
1459
|
}
|
|
1460
|
-
var
|
|
1460
|
+
var Ui, xu;
|
|
1461
1461
|
function ih() {
|
|
1462
|
-
if (xu) return
|
|
1462
|
+
if (xu) return Ui;
|
|
1463
1463
|
xu = 1;
|
|
1464
1464
|
function t(e, r) {
|
|
1465
1465
|
var n = -1, s = e.length;
|
|
@@ -1467,11 +1467,11 @@ function ih() {
|
|
|
1467
1467
|
r[n] = e[n];
|
|
1468
1468
|
return r;
|
|
1469
1469
|
}
|
|
1470
|
-
return
|
|
1470
|
+
return Ui = t, Ui;
|
|
1471
1471
|
}
|
|
1472
|
-
var
|
|
1472
|
+
var Wi, Fu;
|
|
1473
1473
|
function Ug() {
|
|
1474
|
-
if (Fu) return
|
|
1474
|
+
if (Fu) return Wi;
|
|
1475
1475
|
Fu = 1;
|
|
1476
1476
|
var t = bt(), e = Object.create, r = /* @__PURE__ */ (function() {
|
|
1477
1477
|
function n() {
|
|
@@ -1486,38 +1486,38 @@ function Ug() {
|
|
|
1486
1486
|
return n.prototype = void 0, i;
|
|
1487
1487
|
};
|
|
1488
1488
|
})();
|
|
1489
|
-
return
|
|
1489
|
+
return Wi = r, Wi;
|
|
1490
1490
|
}
|
|
1491
|
-
var
|
|
1491
|
+
var zi, Nu;
|
|
1492
1492
|
function Xo() {
|
|
1493
|
-
if (Nu) return
|
|
1493
|
+
if (Nu) return zi;
|
|
1494
1494
|
Nu = 1;
|
|
1495
1495
|
var t = Qd(), e = t(Object.getPrototypeOf, Object);
|
|
1496
|
-
return
|
|
1496
|
+
return zi = e, zi;
|
|
1497
1497
|
}
|
|
1498
|
-
var
|
|
1498
|
+
var Bi, Du;
|
|
1499
1499
|
function ah() {
|
|
1500
|
-
if (Du) return
|
|
1500
|
+
if (Du) return Bi;
|
|
1501
1501
|
Du = 1;
|
|
1502
1502
|
var t = Ug(), e = Xo(), r = Ko();
|
|
1503
1503
|
function n(s) {
|
|
1504
1504
|
return typeof s.constructor == "function" && !r(s) ? t(e(s)) : {};
|
|
1505
1505
|
}
|
|
1506
|
-
return
|
|
1506
|
+
return Bi = n, Bi;
|
|
1507
1507
|
}
|
|
1508
|
-
var
|
|
1508
|
+
var Zi, Pu;
|
|
1509
1509
|
function Wg() {
|
|
1510
|
-
if (Pu) return
|
|
1510
|
+
if (Pu) return Zi;
|
|
1511
1511
|
Pu = 1;
|
|
1512
|
-
var t =
|
|
1512
|
+
var t = Wn(), e = Ot();
|
|
1513
1513
|
function r(n) {
|
|
1514
1514
|
return e(n) && t(n);
|
|
1515
1515
|
}
|
|
1516
|
-
return
|
|
1516
|
+
return Zi = r, Zi;
|
|
1517
1517
|
}
|
|
1518
|
-
var
|
|
1518
|
+
var Gi, Mu;
|
|
1519
1519
|
function zg() {
|
|
1520
|
-
if (Mu) return
|
|
1520
|
+
if (Mu) return Gi;
|
|
1521
1521
|
Mu = 1;
|
|
1522
1522
|
var t = vr(), e = Xo(), r = Ot(), n = "[object Object]", s = Function.prototype, i = Object.prototype, a = s.toString, o = i.hasOwnProperty, c = a.call(Object);
|
|
1523
1523
|
function l(u) {
|
|
@@ -1529,32 +1529,32 @@ function zg() {
|
|
|
1529
1529
|
var d = o.call(f, "constructor") && f.constructor;
|
|
1530
1530
|
return typeof d == "function" && d instanceof d && a.call(d) == c;
|
|
1531
1531
|
}
|
|
1532
|
-
return
|
|
1532
|
+
return Gi = l, Gi;
|
|
1533
1533
|
}
|
|
1534
|
-
var
|
|
1534
|
+
var Hi, qu;
|
|
1535
1535
|
function oh() {
|
|
1536
|
-
if (qu) return
|
|
1536
|
+
if (qu) return Hi;
|
|
1537
1537
|
qu = 1;
|
|
1538
1538
|
function t(e, r) {
|
|
1539
1539
|
if (!(r === "constructor" && typeof e[r] == "function") && r != "__proto__")
|
|
1540
1540
|
return e[r];
|
|
1541
1541
|
}
|
|
1542
|
-
return
|
|
1542
|
+
return Hi = t, Hi;
|
|
1543
1543
|
}
|
|
1544
|
-
var
|
|
1544
|
+
var Ki, Lu;
|
|
1545
1545
|
function ec() {
|
|
1546
|
-
if (Lu) return
|
|
1546
|
+
if (Lu) return Ki;
|
|
1547
1547
|
Lu = 1;
|
|
1548
|
-
var t = Jo(), e =
|
|
1548
|
+
var t = Jo(), e = Zr(), r = Object.prototype, n = r.hasOwnProperty;
|
|
1549
1549
|
function s(i, a, o) {
|
|
1550
1550
|
var c = i[a];
|
|
1551
1551
|
(!(n.call(i, a) && e(c, o)) || o === void 0 && !(a in i)) && t(i, a, o);
|
|
1552
1552
|
}
|
|
1553
|
-
return
|
|
1553
|
+
return Ki = s, Ki;
|
|
1554
1554
|
}
|
|
1555
|
-
var
|
|
1556
|
-
function
|
|
1557
|
-
if ($u) return
|
|
1555
|
+
var Yi, $u;
|
|
1556
|
+
function Hr() {
|
|
1557
|
+
if ($u) return Yi;
|
|
1558
1558
|
$u = 1;
|
|
1559
1559
|
var t = ec(), e = Jo();
|
|
1560
1560
|
function r(n, s, i, a) {
|
|
@@ -1566,11 +1566,11 @@ function Gr() {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
return i;
|
|
1568
1568
|
}
|
|
1569
|
-
return
|
|
1569
|
+
return Yi = r, Yi;
|
|
1570
1570
|
}
|
|
1571
|
-
var
|
|
1571
|
+
var Ji, ju;
|
|
1572
1572
|
function Bg() {
|
|
1573
|
-
if (ju) return
|
|
1573
|
+
if (ju) return Ji;
|
|
1574
1574
|
ju = 1;
|
|
1575
1575
|
function t(e) {
|
|
1576
1576
|
var r = [];
|
|
@@ -1579,11 +1579,11 @@ function Bg() {
|
|
|
1579
1579
|
r.push(n);
|
|
1580
1580
|
return r;
|
|
1581
1581
|
}
|
|
1582
|
-
return
|
|
1582
|
+
return Ji = t, Ji;
|
|
1583
1583
|
}
|
|
1584
|
-
var
|
|
1584
|
+
var Qi, Vu;
|
|
1585
1585
|
function Zg() {
|
|
1586
|
-
if (Vu) return
|
|
1586
|
+
if (Vu) return Qi;
|
|
1587
1587
|
Vu = 1;
|
|
1588
1588
|
var t = bt(), e = Ko(), r = Bg(), n = Object.prototype, s = n.hasOwnProperty;
|
|
1589
1589
|
function i(a) {
|
|
@@ -1594,33 +1594,33 @@ function Zg() {
|
|
|
1594
1594
|
l == "constructor" && (o || !s.call(a, l)) || c.push(l);
|
|
1595
1595
|
return c;
|
|
1596
1596
|
}
|
|
1597
|
-
return
|
|
1597
|
+
return Qi = i, Qi;
|
|
1598
1598
|
}
|
|
1599
|
-
var
|
|
1600
|
-
function
|
|
1601
|
-
if (Uu) return
|
|
1599
|
+
var Xi, Uu;
|
|
1600
|
+
function Kr() {
|
|
1601
|
+
if (Uu) return Xi;
|
|
1602
1602
|
Uu = 1;
|
|
1603
|
-
var t = Jd(), e = Zg(), r =
|
|
1603
|
+
var t = Jd(), e = Zg(), r = Wn();
|
|
1604
1604
|
function n(s) {
|
|
1605
1605
|
return r(s) ? t(s, !0) : e(s);
|
|
1606
1606
|
}
|
|
1607
|
-
return
|
|
1607
|
+
return Xi = n, Xi;
|
|
1608
1608
|
}
|
|
1609
|
-
var
|
|
1609
|
+
var ea, Wu;
|
|
1610
1610
|
function Gg() {
|
|
1611
|
-
if (Wu) return
|
|
1611
|
+
if (Wu) return ea;
|
|
1612
1612
|
Wu = 1;
|
|
1613
|
-
var t =
|
|
1613
|
+
var t = Hr(), e = Kr();
|
|
1614
1614
|
function r(n) {
|
|
1615
1615
|
return t(n, e(n));
|
|
1616
1616
|
}
|
|
1617
|
-
return
|
|
1617
|
+
return ea = r, ea;
|
|
1618
1618
|
}
|
|
1619
|
-
var
|
|
1619
|
+
var ta, zu;
|
|
1620
1620
|
function Hg() {
|
|
1621
|
-
if (zu) return
|
|
1621
|
+
if (zu) return ta;
|
|
1622
1622
|
zu = 1;
|
|
1623
|
-
var t = rh(), e = nh(), r = sh(), n = ih(), s = ah(), i = Kd(), a = Mt(), o = Wg(), c =
|
|
1623
|
+
var t = rh(), e = nh(), r = sh(), n = ih(), s = ah(), i = Kd(), a = Mt(), o = Wg(), c = Un(), l = jo(), u = bt(), f = zg(), d = Ho(), h = oh(), p = Gg();
|
|
1624
1624
|
function w(g, b, E, x, k, y, O) {
|
|
1625
1625
|
var N = h(g, E), v = h(b, E), I = O.get(v);
|
|
1626
1626
|
if (I) {
|
|
@@ -1634,13 +1634,13 @@ function Hg() {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
m && (O.set(v, T), k(T, v, x, y, O), O.delete(v)), t(g, E, T);
|
|
1636
1636
|
}
|
|
1637
|
-
return
|
|
1637
|
+
return ta = w, ta;
|
|
1638
1638
|
}
|
|
1639
|
-
var
|
|
1639
|
+
var ra, Bu;
|
|
1640
1640
|
function Kg() {
|
|
1641
|
-
if (Bu) return
|
|
1641
|
+
if (Bu) return ra;
|
|
1642
1642
|
Bu = 1;
|
|
1643
|
-
var t = Wo(), e = rh(), r = Vg(), n = Hg(), s = bt(), i =
|
|
1643
|
+
var t = Wo(), e = rh(), r = Vg(), n = Hg(), s = bt(), i = Kr(), a = oh();
|
|
1644
1644
|
function o(c, l, u, f, d) {
|
|
1645
1645
|
c !== l && r(l, function(h, p) {
|
|
1646
1646
|
if (d || (d = new t()), s(h))
|
|
@@ -1651,20 +1651,20 @@ function Kg() {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
}, i);
|
|
1653
1653
|
}
|
|
1654
|
-
return
|
|
1654
|
+
return ra = o, ra;
|
|
1655
1655
|
}
|
|
1656
|
-
var
|
|
1656
|
+
var na, Zu;
|
|
1657
1657
|
function ch() {
|
|
1658
|
-
if (Zu) return
|
|
1658
|
+
if (Zu) return na;
|
|
1659
1659
|
Zu = 1;
|
|
1660
1660
|
function t(e) {
|
|
1661
1661
|
return e;
|
|
1662
1662
|
}
|
|
1663
|
-
return
|
|
1663
|
+
return na = t, na;
|
|
1664
1664
|
}
|
|
1665
|
-
var
|
|
1665
|
+
var sa, Gu;
|
|
1666
1666
|
function Yg() {
|
|
1667
|
-
if (Gu) return
|
|
1667
|
+
if (Gu) return sa;
|
|
1668
1668
|
Gu = 1;
|
|
1669
1669
|
function t(e, r, n) {
|
|
1670
1670
|
switch (n.length) {
|
|
@@ -1679,11 +1679,11 @@ function Yg() {
|
|
|
1679
1679
|
}
|
|
1680
1680
|
return e.apply(r, n);
|
|
1681
1681
|
}
|
|
1682
|
-
return
|
|
1682
|
+
return sa = t, sa;
|
|
1683
1683
|
}
|
|
1684
|
-
var
|
|
1684
|
+
var ia, Hu;
|
|
1685
1685
|
function Jg() {
|
|
1686
|
-
if (Hu) return
|
|
1686
|
+
if (Hu) return ia;
|
|
1687
1687
|
Hu = 1;
|
|
1688
1688
|
var t = Yg(), e = Math.max;
|
|
1689
1689
|
function r(n, s, i) {
|
|
@@ -1696,22 +1696,22 @@ function Jg() {
|
|
|
1696
1696
|
return u[s] = i(l), t(n, this, u);
|
|
1697
1697
|
};
|
|
1698
1698
|
}
|
|
1699
|
-
return
|
|
1699
|
+
return ia = r, ia;
|
|
1700
1700
|
}
|
|
1701
|
-
var
|
|
1701
|
+
var aa, Ku;
|
|
1702
1702
|
function Qg() {
|
|
1703
|
-
if (Ku) return
|
|
1703
|
+
if (Ku) return aa;
|
|
1704
1704
|
Ku = 1;
|
|
1705
1705
|
function t(e) {
|
|
1706
1706
|
return function() {
|
|
1707
1707
|
return e;
|
|
1708
1708
|
};
|
|
1709
1709
|
}
|
|
1710
|
-
return
|
|
1710
|
+
return aa = t, aa;
|
|
1711
1711
|
}
|
|
1712
|
-
var
|
|
1712
|
+
var oa, Yu;
|
|
1713
1713
|
function Xg() {
|
|
1714
|
-
if (Yu) return
|
|
1714
|
+
if (Yu) return oa;
|
|
1715
1715
|
Yu = 1;
|
|
1716
1716
|
var t = Qg(), e = th(), r = ch(), n = e ? function(s, i) {
|
|
1717
1717
|
return e(s, "toString", {
|
|
@@ -1721,11 +1721,11 @@ function Xg() {
|
|
|
1721
1721
|
writable: !0
|
|
1722
1722
|
});
|
|
1723
1723
|
} : r;
|
|
1724
|
-
return
|
|
1724
|
+
return oa = n, oa;
|
|
1725
1725
|
}
|
|
1726
|
-
var
|
|
1726
|
+
var ca, Ju;
|
|
1727
1727
|
function ey() {
|
|
1728
|
-
if (Ju) return
|
|
1728
|
+
if (Ju) return ca;
|
|
1729
1729
|
Ju = 1;
|
|
1730
1730
|
var t = 800, e = 16, r = Date.now;
|
|
1731
1731
|
function n(s) {
|
|
@@ -1740,41 +1740,41 @@ function ey() {
|
|
|
1740
1740
|
return s.apply(void 0, arguments);
|
|
1741
1741
|
};
|
|
1742
1742
|
}
|
|
1743
|
-
return
|
|
1743
|
+
return ca = n, ca;
|
|
1744
1744
|
}
|
|
1745
|
-
var
|
|
1745
|
+
var la, Qu;
|
|
1746
1746
|
function ty() {
|
|
1747
|
-
if (Qu) return
|
|
1747
|
+
if (Qu) return la;
|
|
1748
1748
|
Qu = 1;
|
|
1749
1749
|
var t = Xg(), e = ey(), r = e(t);
|
|
1750
|
-
return
|
|
1750
|
+
return la = r, la;
|
|
1751
1751
|
}
|
|
1752
|
-
var
|
|
1752
|
+
var ua, Xu;
|
|
1753
1753
|
function ry() {
|
|
1754
|
-
if (Xu) return
|
|
1754
|
+
if (Xu) return ua;
|
|
1755
1755
|
Xu = 1;
|
|
1756
1756
|
var t = ch(), e = Jg(), r = ty();
|
|
1757
1757
|
function n(s, i) {
|
|
1758
1758
|
return r(e(s, i, t), s + "");
|
|
1759
1759
|
}
|
|
1760
|
-
return
|
|
1760
|
+
return ua = n, ua;
|
|
1761
1761
|
}
|
|
1762
|
-
var
|
|
1762
|
+
var fa, ef;
|
|
1763
1763
|
function ny() {
|
|
1764
|
-
if (ef) return
|
|
1764
|
+
if (ef) return fa;
|
|
1765
1765
|
ef = 1;
|
|
1766
|
-
var t =
|
|
1766
|
+
var t = Zr(), e = Wn(), r = Bo(), n = bt();
|
|
1767
1767
|
function s(i, a, o) {
|
|
1768
1768
|
if (!n(o))
|
|
1769
1769
|
return !1;
|
|
1770
1770
|
var c = typeof a;
|
|
1771
1771
|
return (c == "number" ? e(o) && r(a, o.length) : c == "string" && a in o) ? t(o[a], i) : !1;
|
|
1772
1772
|
}
|
|
1773
|
-
return
|
|
1773
|
+
return fa = s, fa;
|
|
1774
1774
|
}
|
|
1775
|
-
var
|
|
1775
|
+
var da, tf;
|
|
1776
1776
|
function sy() {
|
|
1777
|
-
if (tf) return
|
|
1777
|
+
if (tf) return da;
|
|
1778
1778
|
tf = 1;
|
|
1779
1779
|
var t = ry(), e = ny();
|
|
1780
1780
|
function r(n) {
|
|
@@ -1787,32 +1787,32 @@ function sy() {
|
|
|
1787
1787
|
return s;
|
|
1788
1788
|
});
|
|
1789
1789
|
}
|
|
1790
|
-
return
|
|
1790
|
+
return da = r, da;
|
|
1791
1791
|
}
|
|
1792
|
-
var
|
|
1792
|
+
var ha, rf;
|
|
1793
1793
|
function iy() {
|
|
1794
|
-
if (rf) return
|
|
1794
|
+
if (rf) return ha;
|
|
1795
1795
|
rf = 1;
|
|
1796
1796
|
var t = Kg(), e = sy(), r = e(function(n, s, i) {
|
|
1797
1797
|
t(n, s, i);
|
|
1798
1798
|
});
|
|
1799
|
-
return
|
|
1799
|
+
return ha = r, ha;
|
|
1800
1800
|
}
|
|
1801
1801
|
var ay = iy();
|
|
1802
|
-
const oy = /* @__PURE__ */
|
|
1803
|
-
var
|
|
1802
|
+
const oy = /* @__PURE__ */ qn(ay);
|
|
1803
|
+
var ma, nf;
|
|
1804
1804
|
function tc() {
|
|
1805
|
-
if (nf) return
|
|
1805
|
+
if (nf) return ma;
|
|
1806
1806
|
nf = 1;
|
|
1807
1807
|
var t = vr(), e = Ot(), r = "[object Symbol]";
|
|
1808
1808
|
function n(s) {
|
|
1809
1809
|
return typeof s == "symbol" || e(s) && t(s) == r;
|
|
1810
1810
|
}
|
|
1811
|
-
return
|
|
1811
|
+
return ma = n, ma;
|
|
1812
1812
|
}
|
|
1813
|
-
var
|
|
1813
|
+
var pa, sf;
|
|
1814
1814
|
function cy() {
|
|
1815
|
-
if (sf) return
|
|
1815
|
+
if (sf) return pa;
|
|
1816
1816
|
sf = 1;
|
|
1817
1817
|
var t = Mt(), e = tc(), r = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/;
|
|
1818
1818
|
function s(i, a) {
|
|
@@ -1821,11 +1821,11 @@ function cy() {
|
|
|
1821
1821
|
var o = typeof i;
|
|
1822
1822
|
return o == "number" || o == "symbol" || o == "boolean" || i == null || e(i) ? !0 : n.test(i) || !r.test(i) || a != null && i in Object(a);
|
|
1823
1823
|
}
|
|
1824
|
-
return
|
|
1824
|
+
return pa = s, pa;
|
|
1825
1825
|
}
|
|
1826
|
-
var
|
|
1826
|
+
var ga, af;
|
|
1827
1827
|
function ly() {
|
|
1828
|
-
if (af) return
|
|
1828
|
+
if (af) return ga;
|
|
1829
1829
|
af = 1;
|
|
1830
1830
|
var t = Uo(), e = "Expected a function";
|
|
1831
1831
|
function r(n, s) {
|
|
@@ -1840,11 +1840,11 @@ function ly() {
|
|
|
1840
1840
|
};
|
|
1841
1841
|
return i.cache = new (r.Cache || t)(), i;
|
|
1842
1842
|
}
|
|
1843
|
-
return r.Cache = t,
|
|
1843
|
+
return r.Cache = t, ga = r, ga;
|
|
1844
1844
|
}
|
|
1845
|
-
var
|
|
1845
|
+
var ya, of;
|
|
1846
1846
|
function uy() {
|
|
1847
|
-
if (of) return
|
|
1847
|
+
if (of) return ya;
|
|
1848
1848
|
of = 1;
|
|
1849
1849
|
var t = ly(), e = 500;
|
|
1850
1850
|
function r(n) {
|
|
@@ -1853,11 +1853,11 @@ function uy() {
|
|
|
1853
1853
|
}), i = s.cache;
|
|
1854
1854
|
return s;
|
|
1855
1855
|
}
|
|
1856
|
-
return
|
|
1856
|
+
return ya = r, ya;
|
|
1857
1857
|
}
|
|
1858
|
-
var
|
|
1858
|
+
var _a, cf;
|
|
1859
1859
|
function fy() {
|
|
1860
|
-
if (cf) return
|
|
1860
|
+
if (cf) return _a;
|
|
1861
1861
|
cf = 1;
|
|
1862
1862
|
var t = uy(), e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, r = /\\(\\)?/g, n = t(function(s) {
|
|
1863
1863
|
var i = [];
|
|
@@ -1865,24 +1865,24 @@ function fy() {
|
|
|
1865
1865
|
i.push(c ? l.replace(r, "$1") : o || a);
|
|
1866
1866
|
}), i;
|
|
1867
1867
|
});
|
|
1868
|
-
return
|
|
1868
|
+
return _a = n, _a;
|
|
1869
1869
|
}
|
|
1870
|
-
var
|
|
1870
|
+
var va, lf;
|
|
1871
1871
|
function dy() {
|
|
1872
|
-
if (lf) return
|
|
1872
|
+
if (lf) return va;
|
|
1873
1873
|
lf = 1;
|
|
1874
1874
|
function t(e, r) {
|
|
1875
1875
|
for (var n = -1, s = e == null ? 0 : e.length, i = Array(s); ++n < s; )
|
|
1876
1876
|
i[n] = r(e[n], n, e);
|
|
1877
1877
|
return i;
|
|
1878
1878
|
}
|
|
1879
|
-
return
|
|
1879
|
+
return va = t, va;
|
|
1880
1880
|
}
|
|
1881
|
-
var
|
|
1881
|
+
var wa, uf;
|
|
1882
1882
|
function hy() {
|
|
1883
|
-
if (uf) return
|
|
1883
|
+
if (uf) return wa;
|
|
1884
1884
|
uf = 1;
|
|
1885
|
-
var t =
|
|
1885
|
+
var t = Gr(), e = dy(), r = Mt(), n = tc(), s = t ? t.prototype : void 0, i = s ? s.toString : void 0;
|
|
1886
1886
|
function a(o) {
|
|
1887
1887
|
if (typeof o == "string")
|
|
1888
1888
|
return o;
|
|
@@ -1893,31 +1893,31 @@ function hy() {
|
|
|
1893
1893
|
var c = o + "";
|
|
1894
1894
|
return c == "0" && 1 / o == -1 / 0 ? "-0" : c;
|
|
1895
1895
|
}
|
|
1896
|
-
return
|
|
1896
|
+
return wa = a, wa;
|
|
1897
1897
|
}
|
|
1898
|
-
var
|
|
1898
|
+
var ba, ff;
|
|
1899
1899
|
function my() {
|
|
1900
|
-
if (ff) return
|
|
1900
|
+
if (ff) return ba;
|
|
1901
1901
|
ff = 1;
|
|
1902
1902
|
var t = hy();
|
|
1903
1903
|
function e(r) {
|
|
1904
1904
|
return r == null ? "" : t(r);
|
|
1905
1905
|
}
|
|
1906
|
-
return
|
|
1906
|
+
return ba = e, ba;
|
|
1907
1907
|
}
|
|
1908
|
-
var
|
|
1908
|
+
var Oa, df;
|
|
1909
1909
|
function py() {
|
|
1910
|
-
if (df) return
|
|
1910
|
+
if (df) return Oa;
|
|
1911
1911
|
df = 1;
|
|
1912
1912
|
var t = Mt(), e = cy(), r = fy(), n = my();
|
|
1913
1913
|
function s(i, a) {
|
|
1914
1914
|
return t(i) ? i : e(i, a) ? [i] : r(n(i));
|
|
1915
1915
|
}
|
|
1916
|
-
return
|
|
1916
|
+
return Oa = s, Oa;
|
|
1917
1917
|
}
|
|
1918
|
-
var
|
|
1918
|
+
var Ea, hf;
|
|
1919
1919
|
function gy() {
|
|
1920
|
-
if (hf) return
|
|
1920
|
+
if (hf) return Ea;
|
|
1921
1921
|
hf = 1;
|
|
1922
1922
|
var t = tc();
|
|
1923
1923
|
function e(r) {
|
|
@@ -1926,11 +1926,11 @@ function gy() {
|
|
|
1926
1926
|
var n = r + "";
|
|
1927
1927
|
return n == "0" && 1 / r == -1 / 0 ? "-0" : n;
|
|
1928
1928
|
}
|
|
1929
|
-
return
|
|
1929
|
+
return Ea = e, Ea;
|
|
1930
1930
|
}
|
|
1931
|
-
var
|
|
1931
|
+
var Sa, mf;
|
|
1932
1932
|
function yy() {
|
|
1933
|
-
if (mf) return
|
|
1933
|
+
if (mf) return Sa;
|
|
1934
1934
|
mf = 1;
|
|
1935
1935
|
var t = ec(), e = py(), r = Bo(), n = bt(), s = gy();
|
|
1936
1936
|
function i(a, o, c, l) {
|
|
@@ -1949,20 +1949,20 @@ function yy() {
|
|
|
1949
1949
|
}
|
|
1950
1950
|
return a;
|
|
1951
1951
|
}
|
|
1952
|
-
return
|
|
1952
|
+
return Sa = i, Sa;
|
|
1953
1953
|
}
|
|
1954
|
-
var
|
|
1954
|
+
var Ta, pf;
|
|
1955
1955
|
function _y() {
|
|
1956
|
-
if (pf) return
|
|
1956
|
+
if (pf) return Ta;
|
|
1957
1957
|
pf = 1;
|
|
1958
1958
|
var t = yy();
|
|
1959
1959
|
function e(r, n, s) {
|
|
1960
1960
|
return r == null ? r : t(r, n, s);
|
|
1961
1961
|
}
|
|
1962
|
-
return
|
|
1962
|
+
return Ta = e, Ta;
|
|
1963
1963
|
}
|
|
1964
1964
|
var vy = _y();
|
|
1965
|
-
const wy = /* @__PURE__ */
|
|
1965
|
+
const wy = /* @__PURE__ */ qn(vy), qr = {
|
|
1966
1966
|
global: {},
|
|
1967
1967
|
collections: {}
|
|
1968
1968
|
}, by = () => {
|
|
@@ -2043,7 +2043,7 @@ const wy = /* @__PURE__ */ Mn(vy), qr = {
|
|
|
2043
2043
|
"Created_At",
|
|
2044
2044
|
"Saved_At",
|
|
2045
2045
|
"Created_By"
|
|
2046
|
-
],
|
|
2046
|
+
], Bn = () => rc.map((t) => {
|
|
2047
2047
|
let e = "", r;
|
|
2048
2048
|
switch (t) {
|
|
2049
2049
|
case "id":
|
|
@@ -2087,7 +2087,7 @@ const wy = /* @__PURE__ */ Mn(vy), qr = {
|
|
|
2087
2087
|
};
|
|
2088
2088
|
return r && (n.values = r), n;
|
|
2089
2089
|
}), uh = (t, e) => {
|
|
2090
|
-
const r = [], { access: n, fields: s } = t, { attributeRestrictions: i, entityRestrictions: a } = n, o =
|
|
2090
|
+
const r = [], { access: n, fields: s } = t, { attributeRestrictions: i, entityRestrictions: a } = n, o = Bn();
|
|
2091
2091
|
return i && i.forEach((c) => {
|
|
2092
2092
|
if (c.roles.some((l) => l.role === e))
|
|
2093
2093
|
switch (c.type) {
|
|
@@ -2129,7 +2129,7 @@ const wy = /* @__PURE__ */ Mn(vy), qr = {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
})), [...new Set(r)];
|
|
2131
2131
|
}, Ey = (t, e, r) => {
|
|
2132
|
-
const n = [], { fields: s, preloadCache: i } = e, a =
|
|
2132
|
+
const n = [], { fields: s, preloadCache: i } = e, a = Bn(), o = /* @__PURE__ */ new Set(), c = lh(e, r);
|
|
2133
2133
|
return Object.entries(c).map(([l, u]) => {
|
|
2134
2134
|
t.name === l && Object.values(u).forEach((f) => {
|
|
2135
2135
|
f.forEach((d) => {
|
|
@@ -2139,7 +2139,7 @@ const wy = /* @__PURE__ */ Mn(vy), qr = {
|
|
|
2139
2139
|
}), o.forEach((l) => {
|
|
2140
2140
|
n.push(...uh(e, l));
|
|
2141
2141
|
}), i?.range && i.range.fields.forEach((l) => {
|
|
2142
|
-
rc.includes(l) ? n.push(J(a, l)) : Array.from(o).some((u) =>
|
|
2142
|
+
rc.includes(l) ? n.push(J(a, l)) : Array.from(o).some((u) => lo(J(s, l), u)) && n.push(J(s, l));
|
|
2143
2143
|
}), [...new Set(n)];
|
|
2144
2144
|
}, Sy = (t, e, r) => {
|
|
2145
2145
|
const n = [], { fields: s, softDelete: i } = e;
|
|
@@ -2177,7 +2177,7 @@ const wy = /* @__PURE__ */ Mn(vy), qr = {
|
|
|
2177
2177
|
const n = Ty(t, e, r);
|
|
2178
2178
|
if (n.length === 0)
|
|
2179
2179
|
return [];
|
|
2180
|
-
const s = [], { fields: i, softDelete: a, preloadCache: o, roleSystemFields: c, queries: l } = e, u =
|
|
2180
|
+
const s = [], { fields: i, softDelete: a, preloadCache: o, roleSystemFields: c, queries: l } = e, u = Bn();
|
|
2181
2181
|
s.push({
|
|
2182
2182
|
name: "Collection_Path",
|
|
2183
2183
|
type: "Array",
|
|
@@ -2193,22 +2193,22 @@ const wy = /* @__PURE__ */ Mn(vy), qr = {
|
|
|
2193
2193
|
d && !f.includes(d) && s.push(d);
|
|
2194
2194
|
}
|
|
2195
2195
|
o?.range && o.range.fields.forEach((d) => {
|
|
2196
|
-
rc.includes(d) ? s.push(J(u, d)) : n.some((h) =>
|
|
2196
|
+
rc.includes(d) ? s.push(J(u, d)) : n.some((h) => lo(J(i, d), h)) && s.push(J(i, d));
|
|
2197
2197
|
}), c?.filter((d) => d.field !== "Collection_Path" && n.some((h) => !d.roles || d.roles.includes(h))).forEach((d) => {
|
|
2198
2198
|
s.push(J(u, d.field));
|
|
2199
2199
|
}), l?.forEach((d) => {
|
|
2200
2200
|
const h = J(i.concat(u), d.field);
|
|
2201
|
-
h && n.some((p) => (!d.roles || d.roles.includes(p)) &&
|
|
2201
|
+
h && n.some((p) => (!d.roles || d.roles.includes(p)) && lo(h, p)) && s.push(h);
|
|
2202
2202
|
});
|
|
2203
2203
|
for (const d of n)
|
|
2204
2204
|
s.push(...uh(e, d));
|
|
2205
2205
|
return [...new Set(s)];
|
|
2206
2206
|
}, Ay = (t, e) => {
|
|
2207
|
-
const { fields: r } = e, n =
|
|
2207
|
+
const { fields: r } = e, n = Bn(), s = [];
|
|
2208
2208
|
return [...r, ...n.filter((a) => a.name !== "id")].forEach((a) => {
|
|
2209
2209
|
t?.fields.some((o) => o.name === a.name) || s.push(a);
|
|
2210
2210
|
}), s;
|
|
2211
|
-
},
|
|
2211
|
+
}, Ra = async (t, e, r) => {
|
|
2212
2212
|
if (e) {
|
|
2213
2213
|
const n = await be(e, [r]);
|
|
2214
2214
|
if (n === !1)
|
|
@@ -2217,10 +2217,10 @@ const wy = /* @__PURE__ */ Mn(vy), qr = {
|
|
|
2217
2217
|
}
|
|
2218
2218
|
};
|
|
2219
2219
|
async function ae(t, e, r, n) {
|
|
2220
|
-
const s = await
|
|
2220
|
+
const s = await Ra(t, r.custom?.[t], n);
|
|
2221
2221
|
for (const i of r.fields)
|
|
2222
|
-
await
|
|
2223
|
-
if (t !== "setEmbedding" && (await
|
|
2222
|
+
await Ra(t, i.custom?.[t], n);
|
|
2223
|
+
if (t !== "setEmbedding" && (await Ra(t, e?.[t], n), t === "postWriteError"))
|
|
2224
2224
|
return s;
|
|
2225
2225
|
}
|
|
2226
2226
|
const sc = (t, e, r, n, s, i, a, o, c, l) => (t === "create" && (r.Collection_Path = e, l || (r.Created_At = o), r.Saved_At = c, r.Created_By = a || "System"), r.Last_Write_App = s, l || (r.Last_Write_At = o), r.Last_Save_At = c, r.Last_Write_By = a || "System", r.Last_Write_Connection_Status = i, r.Last_Write_Version = n.version, r), fh = (t, e) => {
|
|
@@ -2233,7 +2233,7 @@ const sc = (t, e, r, n, s, i, a, o, c, l) => (t === "create" && (r.Collection_Pa
|
|
|
2233
2233
|
return e.forEach((a) => {
|
|
2234
2234
|
we(a) && ["OneToOne", "OneToMany"].includes(a.type) && a.sorting && (typeof a.sorting == "boolean" || !a.sorting.roles?.every((o) => s?.includes(o))) && i.add(a);
|
|
2235
2235
|
}), i;
|
|
2236
|
-
},
|
|
2236
|
+
}, Yr = (t, e) => {
|
|
2237
2237
|
const { access: r, recordTitleField: n } = t, { serverReadOnly: s } = r, i = /* @__PURE__ */ new Set();
|
|
2238
2238
|
return e.forEach((a) => {
|
|
2239
2239
|
(n === a.name || a.sorting && (typeof a.sorting == "boolean" || !a.sorting.roles?.every((o) => s?.includes(o)))) && a.type === "String" && i.add(a);
|
|
@@ -2259,7 +2259,7 @@ const sc = (t, e, r, n, s, i, a, o, c, l) => (t === "create" && (r.Collection_Pa
|
|
|
2259
2259
|
}), e[`${i.name}_Array`] = Object.keys(e[i.name]), i.includeFields)
|
|
2260
2260
|
for (const a of i.includeFields) {
|
|
2261
2261
|
const o = r.collections[i.collection], c = J(o.fields, a);
|
|
2262
|
-
|
|
2262
|
+
Yr(o, [c]).size === 1 && Object.keys(e[i.name]).forEach((u) => {
|
|
2263
2263
|
e[i.name][u][a] ? e[i.name][u][`${a}_Lowercase`] = e[i.name][u][a].toLowerCase() : delete e[i.name][u][`${a}_Lowercase`];
|
|
2264
2264
|
});
|
|
2265
2265
|
}
|
|
@@ -2278,14 +2278,14 @@ const sc = (t, e, r, n, s, i, a, o, c, l) => (t === "create" && (r.Collection_Pa
|
|
|
2278
2278
|
}
|
|
2279
2279
|
});
|
|
2280
2280
|
}, dh = (t, e) => {
|
|
2281
|
-
|
|
2281
|
+
Yr(t, t.fields).forEach((n) => {
|
|
2282
2282
|
e[n.name] ? e[`${n.name}_Lowercase`] = e[n.name].toLowerCase() : delete e[`${n.name}_Lowercase`];
|
|
2283
2283
|
});
|
|
2284
2284
|
}, ky = async (t, e, r, n, s) => {
|
|
2285
2285
|
const { fields: i } = e;
|
|
2286
2286
|
for (const a of r.fields) {
|
|
2287
2287
|
const o = J(i, a.name);
|
|
2288
|
-
a.custom?.initialValue !== void 0 && (!o.access || Gt(o, n, e, s || {})) && (t[a.name] = await be(a.custom.initialValue, [t]),
|
|
2288
|
+
a.custom?.initialValue !== void 0 && (!o.access || Gt(o, n, e, s || {})) && (t[a.name] = await be(a.custom.initialValue, [t]), Yr(e, [o]).size === 1 && (t[`${a.name}_Lowercase`] = t[a.name].toLowerCase()));
|
|
2289
2289
|
}
|
|
2290
2290
|
for (const a of i)
|
|
2291
2291
|
(!a.access || Gt(a, n, e, s || {})) && ("autoIncrement" in a && a.autoIncrement && !t[a.name] && (t[a.name] = "Pending"), !we(a) && a.nullable && t[a.name] === void 0 && (t[a.name] = null));
|
|
@@ -2459,7 +2459,7 @@ class vt extends Error {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
2461
|
vt.create = (t) => new vt(t);
|
|
2462
|
-
const
|
|
2462
|
+
const uo = (t, e) => {
|
|
2463
2463
|
let r;
|
|
2464
2464
|
switch (t.code) {
|
|
2465
2465
|
case D.invalid_type:
|
|
@@ -2515,7 +2515,7 @@ const lo = (t, e) => {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
return { message: r };
|
|
2517
2517
|
};
|
|
2518
|
-
let Iy =
|
|
2518
|
+
let Iy = uo;
|
|
2519
2519
|
function xy() {
|
|
2520
2520
|
return Iy;
|
|
2521
2521
|
}
|
|
@@ -2552,7 +2552,7 @@ function j(t, e) {
|
|
|
2552
2552
|
// then schema-bound map if available
|
|
2553
2553
|
r,
|
|
2554
2554
|
// then global override map
|
|
2555
|
-
r ===
|
|
2555
|
+
r === uo ? void 0 : uo
|
|
2556
2556
|
// then global default map
|
|
2557
2557
|
].filter((s) => !!s)
|
|
2558
2558
|
});
|
|
@@ -2601,7 +2601,7 @@ class je {
|
|
|
2601
2601
|
}
|
|
2602
2602
|
const re = Object.freeze({
|
|
2603
2603
|
status: "aborted"
|
|
2604
|
-
}), Ir = (t) => ({ status: "dirty", value: t }), Xe = (t) => ({ status: "valid", value: t }), yf = (t) => t.status === "aborted", _f = (t) => t.status === "dirty", fr = (t) => t.status === "valid",
|
|
2604
|
+
}), Ir = (t) => ({ status: "dirty", value: t }), Xe = (t) => ({ status: "valid", value: t }), yf = (t) => t.status === "aborted", _f = (t) => t.status === "dirty", fr = (t) => t.status === "valid", _n = (t) => typeof Promise < "u" && t instanceof Promise;
|
|
2605
2605
|
var Z;
|
|
2606
2606
|
(function(t) {
|
|
2607
2607
|
t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e?.message;
|
|
@@ -2672,7 +2672,7 @@ class le {
|
|
|
2672
2672
|
}
|
|
2673
2673
|
_parseSync(e) {
|
|
2674
2674
|
const r = this._parse(e);
|
|
2675
|
-
if (
|
|
2675
|
+
if (_n(r))
|
|
2676
2676
|
throw new Error("Synchronous parse encountered promise.");
|
|
2677
2677
|
return r;
|
|
2678
2678
|
}
|
|
@@ -2751,7 +2751,7 @@ class le {
|
|
|
2751
2751
|
parent: null,
|
|
2752
2752
|
data: e,
|
|
2753
2753
|
parsedType: Ct(e)
|
|
2754
|
-
}, s = this._parse({ data: e, path: n.path, parent: n }), i = await (
|
|
2754
|
+
}, s = this._parse({ data: e, path: n.path, parent: n }), i = await (_n(s) ? s : Promise.resolve(s));
|
|
2755
2755
|
return vf(n, i);
|
|
2756
2756
|
}
|
|
2757
2757
|
refine(e, r) {
|
|
@@ -2797,13 +2797,13 @@ class le {
|
|
|
2797
2797
|
return lt.create(this);
|
|
2798
2798
|
}
|
|
2799
2799
|
promise() {
|
|
2800
|
-
return
|
|
2800
|
+
return En.create(this, this._def);
|
|
2801
2801
|
}
|
|
2802
2802
|
or(e) {
|
|
2803
|
-
return
|
|
2803
|
+
return wn.create([this, e], this._def);
|
|
2804
2804
|
}
|
|
2805
2805
|
and(e) {
|
|
2806
|
-
return
|
|
2806
|
+
return bn.create(this, e, this._def);
|
|
2807
2807
|
}
|
|
2808
2808
|
transform(e) {
|
|
2809
2809
|
return new mr({
|
|
@@ -2815,7 +2815,7 @@ class le {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
default(e) {
|
|
2817
2817
|
const r = typeof e == "function" ? e : () => e;
|
|
2818
|
-
return new
|
|
2818
|
+
return new go({
|
|
2819
2819
|
...se(this._def),
|
|
2820
2820
|
innerType: this,
|
|
2821
2821
|
defaultValue: r,
|
|
@@ -2831,7 +2831,7 @@ class le {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
catch(e) {
|
|
2833
2833
|
const r = typeof e == "function" ? e : () => e;
|
|
2834
|
-
return new
|
|
2834
|
+
return new yo({
|
|
2835
2835
|
...se(this._def),
|
|
2836
2836
|
innerType: this,
|
|
2837
2837
|
catchValue: r,
|
|
@@ -2849,7 +2849,7 @@ class le {
|
|
|
2849
2849
|
return ic.create(this, e);
|
|
2850
2850
|
}
|
|
2851
2851
|
readonly() {
|
|
2852
|
-
return
|
|
2852
|
+
return _o.create(this);
|
|
2853
2853
|
}
|
|
2854
2854
|
isOptional() {
|
|
2855
2855
|
return this.safeParse(void 0).success;
|
|
@@ -2859,7 +2859,7 @@ class le {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
}
|
|
2861
2861
|
const Ny = /^c[^\s-]{8,}$/i, Dy = /^[0-9a-z]+$/, Py = /^[0-9A-HJKMNP-TV-Z]{26}$/i, My = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, qy = /^[a-z0-9_-]{21}$/i, Ly = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, $y = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, jy = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Vy = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
2862
|
-
let
|
|
2862
|
+
let Aa;
|
|
2863
2863
|
const Uy = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Wy = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, zy = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, By = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Zy = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Gy = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, hh = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Hy = new RegExp(`^${hh}$`);
|
|
2864
2864
|
function mh(t) {
|
|
2865
2865
|
let e = "[0-5]\\d";
|
|
@@ -2949,7 +2949,7 @@ class _t extends le {
|
|
|
2949
2949
|
message: i.message
|
|
2950
2950
|
}), n.dirty());
|
|
2951
2951
|
else if (i.kind === "emoji")
|
|
2952
|
-
|
|
2952
|
+
Aa || (Aa = new RegExp(Vy, "u")), Aa.test(e.data) || (s = this._getOrReturnCtx(e, s), j(s, {
|
|
2953
2953
|
validation: "emoji",
|
|
2954
2954
|
code: D.invalid_string,
|
|
2955
2955
|
message: i.message
|
|
@@ -3586,7 +3586,7 @@ Ur.create = (t) => new Ur({
|
|
|
3586
3586
|
coerce: t?.coerce ?? !1,
|
|
3587
3587
|
...se(t)
|
|
3588
3588
|
});
|
|
3589
|
-
class
|
|
3589
|
+
class fo extends le {
|
|
3590
3590
|
_parse(e) {
|
|
3591
3591
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== z.boolean) {
|
|
3592
3592
|
const n = this._getOrReturnCtx(e);
|
|
@@ -3599,12 +3599,12 @@ class uo extends le {
|
|
|
3599
3599
|
return Xe(e.data);
|
|
3600
3600
|
}
|
|
3601
3601
|
}
|
|
3602
|
-
|
|
3602
|
+
fo.create = (t) => new fo({
|
|
3603
3603
|
typeName: ee.ZodBoolean,
|
|
3604
3604
|
coerce: t?.coerce || !1,
|
|
3605
3605
|
...se(t)
|
|
3606
3606
|
});
|
|
3607
|
-
class
|
|
3607
|
+
class vn extends le {
|
|
3608
3608
|
_parse(e) {
|
|
3609
3609
|
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== z.date) {
|
|
3610
3610
|
const i = this._getOrReturnCtx(e);
|
|
@@ -3644,7 +3644,7 @@ class _n extends le {
|
|
|
3644
3644
|
};
|
|
3645
3645
|
}
|
|
3646
3646
|
_addCheck(e) {
|
|
3647
|
-
return new
|
|
3647
|
+
return new vn({
|
|
3648
3648
|
...this._def,
|
|
3649
3649
|
checks: [...this._def.checks, e]
|
|
3650
3650
|
});
|
|
@@ -3676,7 +3676,7 @@ class _n extends le {
|
|
|
3676
3676
|
return e != null ? new Date(e) : null;
|
|
3677
3677
|
}
|
|
3678
3678
|
}
|
|
3679
|
-
|
|
3679
|
+
vn.create = (t) => new vn({
|
|
3680
3680
|
checks: [],
|
|
3681
3681
|
coerce: t?.coerce || !1,
|
|
3682
3682
|
typeName: ee.ZodDate,
|
|
@@ -3733,7 +3733,7 @@ Of.create = (t) => new Of({
|
|
|
3733
3733
|
typeName: ee.ZodNull,
|
|
3734
3734
|
...se(t)
|
|
3735
3735
|
});
|
|
3736
|
-
class
|
|
3736
|
+
class ho extends le {
|
|
3737
3737
|
constructor() {
|
|
3738
3738
|
super(...arguments), this._any = !0;
|
|
3739
3739
|
}
|
|
@@ -3741,7 +3741,7 @@ class fo extends le {
|
|
|
3741
3741
|
return Xe(e.data);
|
|
3742
3742
|
}
|
|
3743
3743
|
}
|
|
3744
|
-
|
|
3744
|
+
ho.create = (t) => new ho({
|
|
3745
3745
|
typeName: ee.ZodAny,
|
|
3746
3746
|
...se(t)
|
|
3747
3747
|
});
|
|
@@ -4164,7 +4164,7 @@ Ce.lazycreate = (t, e) => new Ce({
|
|
|
4164
4164
|
typeName: ee.ZodObject,
|
|
4165
4165
|
...se(e)
|
|
4166
4166
|
});
|
|
4167
|
-
class
|
|
4167
|
+
class wn extends le {
|
|
4168
4168
|
_parse(e) {
|
|
4169
4169
|
const { ctx: r } = this._processInputParams(e), n = this._def.options;
|
|
4170
4170
|
function s(i) {
|
|
@@ -4232,19 +4232,19 @@ class vn extends le {
|
|
|
4232
4232
|
return this._def.options;
|
|
4233
4233
|
}
|
|
4234
4234
|
}
|
|
4235
|
-
|
|
4235
|
+
wn.create = (t, e) => new wn({
|
|
4236
4236
|
options: t,
|
|
4237
4237
|
typeName: ee.ZodUnion,
|
|
4238
4238
|
...se(e)
|
|
4239
4239
|
});
|
|
4240
|
-
function
|
|
4240
|
+
function mo(t, e) {
|
|
4241
4241
|
const r = Ct(t), n = Ct(e);
|
|
4242
4242
|
if (t === e)
|
|
4243
4243
|
return { valid: !0, data: t };
|
|
4244
4244
|
if (r === z.object && n === z.object) {
|
|
4245
4245
|
const s = fe.objectKeys(e), i = fe.objectKeys(t).filter((o) => s.indexOf(o) !== -1), a = { ...t, ...e };
|
|
4246
4246
|
for (const o of i) {
|
|
4247
|
-
const c =
|
|
4247
|
+
const c = mo(t[o], e[o]);
|
|
4248
4248
|
if (!c.valid)
|
|
4249
4249
|
return { valid: !1 };
|
|
4250
4250
|
a[o] = c.data;
|
|
@@ -4255,7 +4255,7 @@ function ho(t, e) {
|
|
|
4255
4255
|
return { valid: !1 };
|
|
4256
4256
|
const s = [];
|
|
4257
4257
|
for (let i = 0; i < t.length; i++) {
|
|
4258
|
-
const a = t[i], o = e[i], c =
|
|
4258
|
+
const a = t[i], o = e[i], c = mo(a, o);
|
|
4259
4259
|
if (!c.valid)
|
|
4260
4260
|
return { valid: !1 };
|
|
4261
4261
|
s.push(c.data);
|
|
@@ -4263,12 +4263,12 @@ function ho(t, e) {
|
|
|
4263
4263
|
return { valid: !0, data: s };
|
|
4264
4264
|
} else return r === z.date && n === z.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
|
|
4265
4265
|
}
|
|
4266
|
-
class
|
|
4266
|
+
class bn extends le {
|
|
4267
4267
|
_parse(e) {
|
|
4268
4268
|
const { status: r, ctx: n } = this._processInputParams(e), s = (i, a) => {
|
|
4269
4269
|
if (yf(i) || yf(a))
|
|
4270
4270
|
return re;
|
|
4271
|
-
const o =
|
|
4271
|
+
const o = mo(i.value, a.value);
|
|
4272
4272
|
return o.valid ? ((_f(i) || _f(a)) && r.dirty(), { status: r.value, value: o.data }) : (j(n, {
|
|
4273
4273
|
code: D.invalid_intersection_types
|
|
4274
4274
|
}), re);
|
|
@@ -4295,7 +4295,7 @@ class wn extends le {
|
|
|
4295
4295
|
}));
|
|
4296
4296
|
}
|
|
4297
4297
|
}
|
|
4298
|
-
|
|
4298
|
+
bn.create = (t, e, r) => new bn({
|
|
4299
4299
|
left: t,
|
|
4300
4300
|
right: e,
|
|
4301
4301
|
typeName: ee.ZodIntersection,
|
|
@@ -4351,7 +4351,7 @@ Ht.create = (t, e) => {
|
|
|
4351
4351
|
...se(e)
|
|
4352
4352
|
});
|
|
4353
4353
|
};
|
|
4354
|
-
class
|
|
4354
|
+
class On extends le {
|
|
4355
4355
|
get keySchema() {
|
|
4356
4356
|
return this._def.keyType;
|
|
4357
4357
|
}
|
|
@@ -4379,12 +4379,12 @@ class bn extends le {
|
|
|
4379
4379
|
return this._def.valueType;
|
|
4380
4380
|
}
|
|
4381
4381
|
static create(e, r, n) {
|
|
4382
|
-
return r instanceof le ? new
|
|
4382
|
+
return r instanceof le ? new On({
|
|
4383
4383
|
keyType: e,
|
|
4384
4384
|
valueType: r,
|
|
4385
4385
|
typeName: ee.ZodRecord,
|
|
4386
4386
|
...se(n)
|
|
4387
|
-
}) : new
|
|
4387
|
+
}) : new On({
|
|
4388
4388
|
keyType: _t.create(),
|
|
4389
4389
|
valueType: e,
|
|
4390
4390
|
typeName: ee.ZodRecord,
|
|
@@ -4518,7 +4518,7 @@ Rf.create = (t, e) => new Rf({
|
|
|
4518
4518
|
typeName: ee.ZodLazy,
|
|
4519
4519
|
...se(e)
|
|
4520
4520
|
});
|
|
4521
|
-
class
|
|
4521
|
+
class po extends le {
|
|
4522
4522
|
_parse(e) {
|
|
4523
4523
|
if (e.data !== this._def.value) {
|
|
4524
4524
|
const r = this._getOrReturnCtx(e);
|
|
@@ -4534,7 +4534,7 @@ class mo extends le {
|
|
|
4534
4534
|
return this._def.value;
|
|
4535
4535
|
}
|
|
4536
4536
|
}
|
|
4537
|
-
|
|
4537
|
+
po.create = (t, e) => new po({
|
|
4538
4538
|
value: t,
|
|
4539
4539
|
typeName: ee.ZodLiteral,
|
|
4540
4540
|
...se(e)
|
|
@@ -4631,7 +4631,7 @@ Af.create = (t, e) => new Af({
|
|
|
4631
4631
|
typeName: ee.ZodNativeEnum,
|
|
4632
4632
|
...se(e)
|
|
4633
4633
|
});
|
|
4634
|
-
class
|
|
4634
|
+
class En extends le {
|
|
4635
4635
|
unwrap() {
|
|
4636
4636
|
return this._def.type;
|
|
4637
4637
|
}
|
|
@@ -4650,7 +4650,7 @@ class On extends le {
|
|
|
4650
4650
|
})));
|
|
4651
4651
|
}
|
|
4652
4652
|
}
|
|
4653
|
-
|
|
4653
|
+
En.create = (t, e) => new En({
|
|
4654
4654
|
type: t,
|
|
4655
4655
|
typeName: ee.ZodPromise,
|
|
4656
4656
|
...se(e)
|
|
@@ -4773,7 +4773,7 @@ pr.create = (t, e) => new pr({
|
|
|
4773
4773
|
typeName: ee.ZodNullable,
|
|
4774
4774
|
...se(e)
|
|
4775
4775
|
});
|
|
4776
|
-
class
|
|
4776
|
+
class go extends le {
|
|
4777
4777
|
_parse(e) {
|
|
4778
4778
|
const { ctx: r } = this._processInputParams(e);
|
|
4779
4779
|
let n = r.data;
|
|
@@ -4787,13 +4787,13 @@ class po extends le {
|
|
|
4787
4787
|
return this._def.innerType;
|
|
4788
4788
|
}
|
|
4789
4789
|
}
|
|
4790
|
-
|
|
4790
|
+
go.create = (t, e) => new go({
|
|
4791
4791
|
innerType: t,
|
|
4792
4792
|
typeName: ee.ZodDefault,
|
|
4793
4793
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
4794
4794
|
...se(e)
|
|
4795
4795
|
});
|
|
4796
|
-
class
|
|
4796
|
+
class yo extends le {
|
|
4797
4797
|
_parse(e) {
|
|
4798
4798
|
const { ctx: r } = this._processInputParams(e), n = {
|
|
4799
4799
|
...r,
|
|
@@ -4808,7 +4808,7 @@ class go extends le {
|
|
|
4808
4808
|
...n
|
|
4809
4809
|
}
|
|
4810
4810
|
});
|
|
4811
|
-
return
|
|
4811
|
+
return _n(s) ? s.then((i) => ({
|
|
4812
4812
|
status: "valid",
|
|
4813
4813
|
value: i.status === "valid" ? i.value : this._def.catchValue({
|
|
4814
4814
|
get error() {
|
|
@@ -4830,7 +4830,7 @@ class go extends le {
|
|
|
4830
4830
|
return this._def.innerType;
|
|
4831
4831
|
}
|
|
4832
4832
|
}
|
|
4833
|
-
|
|
4833
|
+
yo.create = (t, e) => new yo({
|
|
4834
4834
|
innerType: t,
|
|
4835
4835
|
typeName: ee.ZodCatch,
|
|
4836
4836
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
@@ -4906,16 +4906,16 @@ class ic extends le {
|
|
|
4906
4906
|
});
|
|
4907
4907
|
}
|
|
4908
4908
|
}
|
|
4909
|
-
class
|
|
4909
|
+
class _o extends le {
|
|
4910
4910
|
_parse(e) {
|
|
4911
4911
|
const r = this._def.innerType._parse(e), n = (s) => (fr(s) && (s.value = Object.freeze(s.value)), s);
|
|
4912
|
-
return
|
|
4912
|
+
return _n(r) ? r.then((s) => n(s)) : n(r);
|
|
4913
4913
|
}
|
|
4914
4914
|
unwrap() {
|
|
4915
4915
|
return this._def.innerType;
|
|
4916
4916
|
}
|
|
4917
4917
|
}
|
|
4918
|
-
|
|
4918
|
+
_o.create = (t, e) => new _o({
|
|
4919
4919
|
innerType: t,
|
|
4920
4920
|
typeName: ee.ZodReadonly,
|
|
4921
4921
|
...se(e)
|
|
@@ -4924,16 +4924,16 @@ var ee;
|
|
|
4924
4924
|
(function(t) {
|
|
4925
4925
|
t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
|
|
4926
4926
|
})(ee || (ee = {}));
|
|
4927
|
-
const ct = _t.create,
|
|
4927
|
+
const ct = _t.create, vo = dr.create, r_ = fo.create, Bt = ho.create;
|
|
4928
4928
|
Pt.create;
|
|
4929
|
-
const
|
|
4930
|
-
|
|
4929
|
+
const Zn = lt.create, gh = Ce.create, zr = wn.create;
|
|
4930
|
+
bn.create;
|
|
4931
4931
|
Ht.create;
|
|
4932
|
-
const ac =
|
|
4933
|
-
|
|
4932
|
+
const ac = On.create, Sn = po.create, wo = hr.create;
|
|
4933
|
+
En.create;
|
|
4934
4934
|
Ft.create;
|
|
4935
4935
|
pr.create;
|
|
4936
|
-
const
|
|
4936
|
+
const dn = () => Bt().refine((t) => t && (t.seconds !== void 0 && t.nanoseconds !== void 0 || t._seconds !== void 0 && t._nanoseconds !== void 0), {
|
|
4937
4937
|
message: "Value is not a valid timestamp"
|
|
4938
4938
|
}), kf = () => Bt().refine((t) => t && (t._methodName === "serverTimestamp" || t.constructor.name === "ServerTimestampTransform"), {
|
|
4939
4939
|
message: "Value is not a valid server timestamp"
|
|
@@ -4947,11 +4947,11 @@ const fn = () => Bt().refine((t) => t && (t.seconds !== void 0 && t.nanoseconds
|
|
|
4947
4947
|
const o = i.fields.find((l) => l.name === a);
|
|
4948
4948
|
if (!o)
|
|
4949
4949
|
throw new Error(`Field ${a} not found in collection ${t.collection}`);
|
|
4950
|
-
n[a] =
|
|
4950
|
+
n[a] = Tn(i, o), Yr(i, [o]).size === 1 && (n[`${a}_Lowercase`] = Tn(i, o, !0));
|
|
4951
4951
|
});
|
|
4952
4952
|
}
|
|
4953
4953
|
const s = {
|
|
4954
|
-
Collection_Path:
|
|
4954
|
+
Collection_Path: Zn(ct()),
|
|
4955
4955
|
...n
|
|
4956
4956
|
};
|
|
4957
4957
|
return r && (s.id = ct().length(20)), gh(s);
|
|
@@ -4959,14 +4959,14 @@ const fn = () => Bt().refine((t) => t && (t.seconds !== void 0 && t.nanoseconds
|
|
|
4959
4959
|
let r = ac(yh(t, e));
|
|
4960
4960
|
return t.required || (r = r.optional()), r;
|
|
4961
4961
|
}, s_ = (t) => {
|
|
4962
|
-
let e =
|
|
4962
|
+
let e = Zn(zr([ct().length(20), ct().length(28)]));
|
|
4963
4963
|
return ["OneToOne", "OneToMany"].includes(t.type) ? e = e.max(1) : (t.min && (e = e.min(t.min)), t.max && (e = e.max(t.max)), t.length && (e = e.length(t.length))), t.required ? e = e.nonempty() : e = e.optional(), e;
|
|
4964
|
-
},
|
|
4964
|
+
}, Tn = (t, e, r) => {
|
|
4965
4965
|
const { softDelete: n } = t, s = n?.timestampField;
|
|
4966
4966
|
let i;
|
|
4967
4967
|
switch (e.type) {
|
|
4968
4968
|
case "String":
|
|
4969
|
-
if (i = ct(), e.length && (i = i.length(e.length)), e.minlength && (i = i.min(e.minlength)), e.maxlength && (i = i.max(e.maxlength)), e.email && (i = i.email()), e.uuid && (i = i.uuid()), e.url && (i = i.url()), e.emoji && (i = i.emoji()), e.ip && (i = i.ip()), e.pattern && (i = i.regex(new RegExp(e.pattern))
|
|
4969
|
+
if (i = ct(), e.length && (i = i.length(e.length)), e.minlength && (i = i.min(e.minlength)), e.maxlength && (i = i.max(e.maxlength)), e.email && (i = i.email()), e.uuid && (i = i.uuid()), e.url && (i = i.url()), e.emoji && (i = i.emoji()), e.ip && (i = i.ip()), r && (i = i.toLowerCase()), e.pattern && (i = zr([i.regex(new RegExp(e.pattern)), Sn("")])), e.values)
|
|
4970
4970
|
if (r) {
|
|
4971
4971
|
const a = e.values.map((o) => o.toLowerCase());
|
|
4972
4972
|
i = wo(a);
|
|
@@ -4977,7 +4977,7 @@ const fn = () => Bt().refine((t) => t && (t.seconds !== void 0 && t.nanoseconds
|
|
|
4977
4977
|
i = r_();
|
|
4978
4978
|
break;
|
|
4979
4979
|
case "Number":
|
|
4980
|
-
e.autoIncrement ? i =
|
|
4980
|
+
e.autoIncrement ? i = zr([Sn("Pending"), vo().int()]) : (i = vo(), e.min && (i = i.min(e.min)), e.max && (i = i.max(e.max)), e.decimal ? i = i.refine((a) => e.decimal ? (a.toString().split(".")[1]?.length || 0) <= e.decimal : !1, {
|
|
4981
4981
|
message: `Value must have ${e.decimal} or fewer decimal places`
|
|
4982
4982
|
}) : i = i.int(), e.values && (i = i.refine((a) => e.values?.includes(a), {
|
|
4983
4983
|
message: "Value is not an allowed value"
|
|
@@ -4986,14 +4986,14 @@ const fn = () => Bt().refine((t) => t && (t.seconds !== void 0 && t.nanoseconds
|
|
|
4986
4986
|
case "Timestamp":
|
|
4987
4987
|
e.name === s ? i = Bt().refine((a) => a && (a._methodName === "serverTimestamp" || a.constructor.name === "ServerTimestampTransform" || a.seconds !== void 0 && a.nanoseconds !== void 0 || a._seconds !== void 0 && a._nanoseconds !== void 0), {
|
|
4988
4988
|
message: "Value is not a valid timestamp"
|
|
4989
|
-
}) : (i =
|
|
4989
|
+
}) : (i = dn(), e.min && (i = i.refine((a) => a.toMillis() >= e.min, {
|
|
4990
4990
|
message: `Value is less than the minimum allowed value of ${e.min}`
|
|
4991
4991
|
})), e.max && (i = i.refine((a) => a.toMillis() <= e.max, {
|
|
4992
4992
|
message: `Value is greater than the maximum allowed value of ${e.max}`
|
|
4993
4993
|
})));
|
|
4994
4994
|
break;
|
|
4995
4995
|
case "Array":
|
|
4996
|
-
i =
|
|
4996
|
+
i = Zn(Bt()), e.length && (i = i.length(e.length)), e.minlength ? i = i.min(e.minlength) : e.required && (i = i.nonempty()), e.maxlength && (i = i.max(e.maxlength)), e.values && (i = i.refine((a) => {
|
|
4997
4997
|
let o = !0;
|
|
4998
4998
|
return a.forEach((c) => {
|
|
4999
4999
|
e.values && !e.values.includes(c) && (o = !1);
|
|
@@ -5012,18 +5012,18 @@ const fn = () => Bt().refine((t) => t && (t.seconds !== void 0 && t.nanoseconds
|
|
|
5012
5012
|
return !we(e) && e.nullable && (i = i.nullable()), e.required || (i = i.optional()), i;
|
|
5013
5013
|
}, i_ = (t, e, r) => {
|
|
5014
5014
|
const n = {
|
|
5015
|
-
Collection_Path:
|
|
5015
|
+
Collection_Path: Zn(ct()),
|
|
5016
5016
|
Last_Write_App: ct(),
|
|
5017
|
-
Last_Write_At:
|
|
5017
|
+
Last_Write_At: dn(),
|
|
5018
5018
|
Last_Save_At: kf(),
|
|
5019
|
-
Last_Write_By:
|
|
5019
|
+
Last_Write_By: zr([ct().length(28), Sn("System")]),
|
|
5020
5020
|
Last_Write_Connection_Status: wo(["Online", "Offline"]),
|
|
5021
|
-
Last_Write_Version:
|
|
5021
|
+
Last_Write_Version: vo().int(),
|
|
5022
5022
|
id: ct().regex(new RegExp("^[a-zA-Z0-9]+$")).length(20),
|
|
5023
|
-
Created_At:
|
|
5024
|
-
Created_By:
|
|
5023
|
+
Created_At: dn(),
|
|
5024
|
+
Created_By: zr([ct().length(28), Sn("System")])
|
|
5025
5025
|
};
|
|
5026
|
-
t === "create" && (n.Saved_At = kf()), t === "update" && (n.Saved_At =
|
|
5026
|
+
t === "create" && (n.Saved_At = kf()), t === "update" && (n.Saved_At = dn(), n.Collection_Path = n.Collection_Path.optional(), n.id = n.id.optional(), n.Created_At = n.Created_At.optional(), n.Saved_At = n.Saved_At.optional(), n.Created_By = n.Created_By.optional());
|
|
5027
5027
|
const s = fh(e, e.fields), i = Array.from(s).map((c) => c.name);
|
|
5028
5028
|
e.fields.forEach((c) => {
|
|
5029
5029
|
we(c) ? (n[c.name] = n_(c, r), n[`${c.name}_Array`] = s_(c), i.includes(c.name) && (n[`${c.name}_Single`] = yh(c, r, !0), c.required || (n[`${c.name}_Single`] = n[`${c.name}_Single`].optional())), c.length && (n[c.name] = n[c.name].refine((l) => c.length && l && Object.keys(l).length === c.length, {
|
|
@@ -5032,9 +5032,9 @@ const fn = () => Bt().refine((t) => t && (t.seconds !== void 0 && t.nanoseconds
|
|
|
5032
5032
|
message: `Value must contain at least ${c.min} item(s)`
|
|
5033
5033
|
})), c.max && (n[c.name] = n[c.name].refine((l) => c.max && (!l || Object.keys(l).length <= c.max), {
|
|
5034
5034
|
message: `Value must contain at most ${c.max} item(s)`
|
|
5035
|
-
}))) : c.type !== "Computed" && (n[c.name] =
|
|
5036
|
-
}),
|
|
5037
|
-
n[c.name] && (n[`${c.name}_Lowercase`] =
|
|
5035
|
+
}))) : c.type !== "Computed" && (n[c.name] = Tn(e, c));
|
|
5036
|
+
}), Yr(e, e.fields).forEach((c) => {
|
|
5037
|
+
n[c.name] && (n[`${c.name}_Lowercase`] = Tn(e, c, !0));
|
|
5038
5038
|
});
|
|
5039
5039
|
const o = gh(n);
|
|
5040
5040
|
return e.allowSchemalessFields ? o.passthrough() : o.strict();
|
|
@@ -5070,7 +5070,7 @@ class Rt extends Qt {
|
|
|
5070
5070
|
super("Zone is an abstract class");
|
|
5071
5071
|
}
|
|
5072
5072
|
}
|
|
5073
|
-
const q = "numeric", it = "short", Ue = "long",
|
|
5073
|
+
const q = "numeric", it = "short", Ue = "long", Rn = {
|
|
5074
5074
|
year: q,
|
|
5075
5075
|
month: q,
|
|
5076
5076
|
day: q
|
|
@@ -5196,7 +5196,7 @@ const q = "numeric", it = "short", Ue = "long", Tn = {
|
|
|
5196
5196
|
second: q,
|
|
5197
5197
|
timeZoneName: Ue
|
|
5198
5198
|
};
|
|
5199
|
-
class
|
|
5199
|
+
class Jr {
|
|
5200
5200
|
/**
|
|
5201
5201
|
* The type of zone
|
|
5202
5202
|
* @abstract
|
|
@@ -5280,14 +5280,14 @@ class Yr {
|
|
|
5280
5280
|
throw new Rt();
|
|
5281
5281
|
}
|
|
5282
5282
|
}
|
|
5283
|
-
let
|
|
5284
|
-
class
|
|
5283
|
+
let Ca = null;
|
|
5284
|
+
class Gn extends Jr {
|
|
5285
5285
|
/**
|
|
5286
5286
|
* Get a singleton instance of the local zone
|
|
5287
5287
|
* @return {SystemZone}
|
|
5288
5288
|
*/
|
|
5289
5289
|
static get instance() {
|
|
5290
|
-
return
|
|
5290
|
+
return Ca === null && (Ca = new Gn()), Ca;
|
|
5291
5291
|
}
|
|
5292
5292
|
/** @override **/
|
|
5293
5293
|
get type() {
|
|
@@ -5358,22 +5358,22 @@ function m_(t, e) {
|
|
|
5358
5358
|
}
|
|
5359
5359
|
return n;
|
|
5360
5360
|
}
|
|
5361
|
-
const
|
|
5362
|
-
class wt extends
|
|
5361
|
+
const ka = /* @__PURE__ */ new Map();
|
|
5362
|
+
class wt extends Jr {
|
|
5363
5363
|
/**
|
|
5364
5364
|
* @param {string} name - Zone name
|
|
5365
5365
|
* @return {IANAZone}
|
|
5366
5366
|
*/
|
|
5367
5367
|
static create(e) {
|
|
5368
|
-
let r =
|
|
5369
|
-
return r === void 0 &&
|
|
5368
|
+
let r = ka.get(e);
|
|
5369
|
+
return r === void 0 && ka.set(e, r = new wt(e)), r;
|
|
5370
5370
|
}
|
|
5371
5371
|
/**
|
|
5372
5372
|
* Reset local caches. Should only be necessary in testing scenarios.
|
|
5373
5373
|
* @return {void}
|
|
5374
5374
|
*/
|
|
5375
5375
|
static resetCache() {
|
|
5376
|
-
|
|
5376
|
+
ka.clear(), bo.clear();
|
|
5377
5377
|
}
|
|
5378
5378
|
/**
|
|
5379
5379
|
* 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.
|
|
@@ -5467,7 +5467,7 @@ class wt extends Yr {
|
|
|
5467
5467
|
const n = f_(this.name);
|
|
5468
5468
|
let [s, i, a, o, c, l, u] = n.formatToParts ? m_(n, r) : h_(n, r);
|
|
5469
5469
|
o === "BC" && (s = -Math.abs(s) + 1);
|
|
5470
|
-
const d =
|
|
5470
|
+
const d = Kn({
|
|
5471
5471
|
year: s,
|
|
5472
5472
|
month: i,
|
|
5473
5473
|
day: a,
|
|
@@ -5577,7 +5577,7 @@ function E_(t) {
|
|
|
5577
5577
|
}
|
|
5578
5578
|
return e;
|
|
5579
5579
|
}
|
|
5580
|
-
function
|
|
5580
|
+
function on(t, e, r, n) {
|
|
5581
5581
|
const s = t.listingMode();
|
|
5582
5582
|
return s === "error" ? null : s === "en" ? r(e) : n(e);
|
|
5583
5583
|
}
|
|
@@ -5702,7 +5702,7 @@ class me {
|
|
|
5702
5702
|
return this.clone({ ...e, defaultToEN: !1 });
|
|
5703
5703
|
}
|
|
5704
5704
|
months(e, r = !1) {
|
|
5705
|
-
return
|
|
5705
|
+
return on(this, e, Jh, () => {
|
|
5706
5706
|
const n = this.intl === "ja" || this.intl.startsWith("ja-");
|
|
5707
5707
|
r &= !n;
|
|
5708
5708
|
const s = r ? { month: e, day: "numeric" } : { month: e }, i = r ? "format" : "standalone";
|
|
@@ -5714,7 +5714,7 @@ class me {
|
|
|
5714
5714
|
});
|
|
5715
5715
|
}
|
|
5716
5716
|
weekdays(e, r = !1) {
|
|
5717
|
-
return
|
|
5717
|
+
return on(this, e, em, () => {
|
|
5718
5718
|
const n = r ? { weekday: e, year: "numeric", month: "long", day: "numeric" } : { weekday: e }, s = r ? "format" : "standalone";
|
|
5719
5719
|
return this.weekdaysCache[s][e] || (this.weekdaysCache[s][e] = E_(
|
|
5720
5720
|
(i) => this.extract(i, n, "weekday")
|
|
@@ -5722,7 +5722,7 @@ class me {
|
|
|
5722
5722
|
});
|
|
5723
5723
|
}
|
|
5724
5724
|
meridiems() {
|
|
5725
|
-
return
|
|
5725
|
+
return on(
|
|
5726
5726
|
this,
|
|
5727
5727
|
void 0,
|
|
5728
5728
|
() => tm,
|
|
@@ -5738,7 +5738,7 @@ class me {
|
|
|
5738
5738
|
);
|
|
5739
5739
|
}
|
|
5740
5740
|
eras(e) {
|
|
5741
|
-
return
|
|
5741
|
+
return on(this, e, rm, () => {
|
|
5742
5742
|
const r = { era: e };
|
|
5743
5743
|
return this.eraCache[e] || (this.eraCache[e] = [K.utc(-40, 1, 1), K.utc(2017, 1, 1)].map(
|
|
5744
5744
|
(n) => this.extract(n, r, "era")
|
|
@@ -5783,14 +5783,14 @@ class me {
|
|
|
5783
5783
|
return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;
|
|
5784
5784
|
}
|
|
5785
5785
|
}
|
|
5786
|
-
let
|
|
5787
|
-
class $e extends
|
|
5786
|
+
let Ia = null;
|
|
5787
|
+
class $e extends Jr {
|
|
5788
5788
|
/**
|
|
5789
5789
|
* Get a singleton instance of UTC
|
|
5790
5790
|
* @return {FixedOffsetZone}
|
|
5791
5791
|
*/
|
|
5792
5792
|
static get utcInstance() {
|
|
5793
|
-
return
|
|
5793
|
+
return Ia === null && (Ia = new $e(0)), Ia;
|
|
5794
5794
|
}
|
|
5795
5795
|
/**
|
|
5796
5796
|
* Get an instance with a specified offset
|
|
@@ -5812,7 +5812,7 @@ class $e extends Yr {
|
|
|
5812
5812
|
if (e) {
|
|
5813
5813
|
const r = e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
|
|
5814
5814
|
if (r)
|
|
5815
|
-
return new $e(
|
|
5815
|
+
return new $e(Yn(r[1], r[2]));
|
|
5816
5816
|
}
|
|
5817
5817
|
return null;
|
|
5818
5818
|
}
|
|
@@ -5903,7 +5903,7 @@ class $e extends Yr {
|
|
|
5903
5903
|
return !0;
|
|
5904
5904
|
}
|
|
5905
5905
|
}
|
|
5906
|
-
class C_ extends
|
|
5906
|
+
class C_ extends Jr {
|
|
5907
5907
|
constructor(e) {
|
|
5908
5908
|
super(), this.zoneName = e;
|
|
5909
5909
|
}
|
|
@@ -5943,11 +5943,11 @@ class C_ extends Yr {
|
|
|
5943
5943
|
function xt(t, e) {
|
|
5944
5944
|
if (Q(t) || t === null)
|
|
5945
5945
|
return e;
|
|
5946
|
-
if (t instanceof
|
|
5946
|
+
if (t instanceof Jr)
|
|
5947
5947
|
return t;
|
|
5948
5948
|
if (D_(t)) {
|
|
5949
5949
|
const r = t.toLowerCase();
|
|
5950
|
-
return r === "default" ? e : r === "local" || r === "system" ?
|
|
5950
|
+
return r === "default" ? e : r === "local" || r === "system" ? Gn.instance : r === "utc" || r === "gmt" ? $e.utcInstance : $e.parseSpecifier(r) || wt.create(t);
|
|
5951
5951
|
} else return Nt(t) ? $e.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new C_(t);
|
|
5952
5952
|
}
|
|
5953
5953
|
const oc = {
|
|
@@ -6055,7 +6055,7 @@ class Te {
|
|
|
6055
6055
|
* @type {Zone}
|
|
6056
6056
|
*/
|
|
6057
6057
|
static get defaultZone() {
|
|
6058
|
-
return xt(Nf,
|
|
6058
|
+
return xt(Nf, Gn.instance);
|
|
6059
6059
|
}
|
|
6060
6060
|
/**
|
|
6061
6061
|
* Get the default locale to create DateTimes with. Does not affect existing instances.
|
|
@@ -6184,34 +6184,34 @@ function cc(t, e, r) {
|
|
|
6184
6184
|
return s === 0 ? 7 : s;
|
|
6185
6185
|
}
|
|
6186
6186
|
function Uh(t, e, r) {
|
|
6187
|
-
return r + (
|
|
6187
|
+
return r + (Qr(t) ? Vh : jh)[e - 1];
|
|
6188
6188
|
}
|
|
6189
6189
|
function Wh(t, e) {
|
|
6190
|
-
const r =
|
|
6190
|
+
const r = Qr(t) ? Vh : jh, n = r.findIndex((i) => i < e), s = e - r[n];
|
|
6191
6191
|
return { month: n + 1, day: s };
|
|
6192
6192
|
}
|
|
6193
6193
|
function lc(t, e) {
|
|
6194
6194
|
return (t - e + 7) % 7 + 1;
|
|
6195
6195
|
}
|
|
6196
|
-
function
|
|
6196
|
+
function An(t, e = 4, r = 1) {
|
|
6197
6197
|
const { year: n, month: s, day: i } = t, a = Uh(n, s, i), o = lc(cc(n, s, i), r);
|
|
6198
6198
|
let c = Math.floor((a - o + 14 - e) / 7), l;
|
|
6199
|
-
return c < 1 ? (l = n - 1, c =
|
|
6199
|
+
return c < 1 ? (l = n - 1, c = Br(l, e, r)) : c > Br(n, e, r) ? (l = n + 1, c = 1) : l = n, { weekYear: l, weekNumber: c, weekday: o, ...Jn(t) };
|
|
6200
6200
|
}
|
|
6201
6201
|
function jf(t, e = 4, r = 1) {
|
|
6202
6202
|
const { weekYear: n, weekNumber: s, weekday: i } = t, a = lc(cc(n, 1, e), r), o = or(n);
|
|
6203
6203
|
let c = s * 7 + i - a - 7 + e, l;
|
|
6204
6204
|
c < 1 ? (l = n - 1, c += or(l)) : c > o ? (l = n + 1, c -= or(n)) : l = n;
|
|
6205
6205
|
const { month: u, day: f } = Wh(l, c);
|
|
6206
|
-
return { year: l, month: u, day: f, ...
|
|
6206
|
+
return { year: l, month: u, day: f, ...Jn(t) };
|
|
6207
6207
|
}
|
|
6208
|
-
function
|
|
6208
|
+
function xa(t) {
|
|
6209
6209
|
const { year: e, month: r, day: n } = t, s = Uh(e, r, n);
|
|
6210
|
-
return { year: e, ordinal: s, ...
|
|
6210
|
+
return { year: e, ordinal: s, ...Jn(t) };
|
|
6211
6211
|
}
|
|
6212
6212
|
function Vf(t) {
|
|
6213
6213
|
const { year: e, ordinal: r } = t, { month: n, day: s } = Wh(e, r);
|
|
6214
|
-
return { year: e, month: n, day: s, ...
|
|
6214
|
+
return { year: e, month: n, day: s, ...Jn(t) };
|
|
6215
6215
|
}
|
|
6216
6216
|
function Uf(t, e) {
|
|
6217
6217
|
if (!Q(t.localWeekday) || !Q(t.localWeekNumber) || !Q(t.localWeekYear)) {
|
|
@@ -6227,19 +6227,19 @@ function Uf(t, e) {
|
|
|
6227
6227
|
return { minDaysInFirstWeek: 4, startOfWeek: 1 };
|
|
6228
6228
|
}
|
|
6229
6229
|
function F_(t, e = 4, r = 1) {
|
|
6230
|
-
const n =
|
|
6230
|
+
const n = Hn(t.weekYear), s = Ye(
|
|
6231
6231
|
t.weekNumber,
|
|
6232
6232
|
1,
|
|
6233
|
-
|
|
6233
|
+
Br(t.weekYear, e, r)
|
|
6234
6234
|
), i = Ye(t.weekday, 1, 7);
|
|
6235
6235
|
return n ? s ? i ? !1 : Ke("weekday", t.weekday) : Ke("week", t.weekNumber) : Ke("weekYear", t.weekYear);
|
|
6236
6236
|
}
|
|
6237
6237
|
function N_(t) {
|
|
6238
|
-
const e =
|
|
6238
|
+
const e = Hn(t.year), r = Ye(t.ordinal, 1, or(t.year));
|
|
6239
6239
|
return e ? r ? !1 : Ke("ordinal", t.ordinal) : Ke("year", t.year);
|
|
6240
6240
|
}
|
|
6241
6241
|
function zh(t) {
|
|
6242
|
-
const e =
|
|
6242
|
+
const e = Hn(t.year), r = Ye(t.month, 1, 12), n = Ye(t.day, 1, Cn(t.year, t.month));
|
|
6243
6243
|
return e ? r ? n ? !1 : Ke("day", t.day) : Ke("month", t.month) : Ke("year", t.year);
|
|
6244
6244
|
}
|
|
6245
6245
|
function Bh(t) {
|
|
@@ -6252,7 +6252,7 @@ function Q(t) {
|
|
|
6252
6252
|
function Nt(t) {
|
|
6253
6253
|
return typeof t == "number";
|
|
6254
6254
|
}
|
|
6255
|
-
function
|
|
6255
|
+
function Hn(t) {
|
|
6256
6256
|
return typeof t == "number" && t % 1 === 0;
|
|
6257
6257
|
}
|
|
6258
6258
|
function D_(t) {
|
|
@@ -6305,7 +6305,7 @@ function ko(t) {
|
|
|
6305
6305
|
};
|
|
6306
6306
|
}
|
|
6307
6307
|
function Ye(t, e, r) {
|
|
6308
|
-
return
|
|
6308
|
+
return Hn(t) && t >= e && t <= r;
|
|
6309
6309
|
}
|
|
6310
6310
|
function L_(t, e) {
|
|
6311
6311
|
return t - e * Math.floor(t / e);
|
|
@@ -6346,17 +6346,17 @@ function fc(t, e, r = "round") {
|
|
|
6346
6346
|
throw new RangeError(`Value rounding ${r} is out of range`);
|
|
6347
6347
|
}
|
|
6348
6348
|
}
|
|
6349
|
-
function
|
|
6349
|
+
function Qr(t) {
|
|
6350
6350
|
return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
|
|
6351
6351
|
}
|
|
6352
6352
|
function or(t) {
|
|
6353
|
-
return
|
|
6353
|
+
return Qr(t) ? 366 : 365;
|
|
6354
6354
|
}
|
|
6355
|
-
function
|
|
6355
|
+
function Cn(t, e) {
|
|
6356
6356
|
const r = L_(e - 1, 12) + 1, n = t + (e - r) / 12;
|
|
6357
|
-
return r === 2 ?
|
|
6357
|
+
return r === 2 ? Qr(n) ? 29 : 28 : [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][r - 1];
|
|
6358
6358
|
}
|
|
6359
|
-
function
|
|
6359
|
+
function Kn(t) {
|
|
6360
6360
|
let e = Date.UTC(
|
|
6361
6361
|
t.year,
|
|
6362
6362
|
t.month - 1,
|
|
@@ -6371,7 +6371,7 @@ function Hn(t) {
|
|
|
6371
6371
|
function zf(t, e, r) {
|
|
6372
6372
|
return -lc(cc(t, 1, e), r) + e - 1;
|
|
6373
6373
|
}
|
|
6374
|
-
function
|
|
6374
|
+
function Br(t, e = 4, r = 1) {
|
|
6375
6375
|
const n = zf(t, e, r), s = zf(t + 1, e, r);
|
|
6376
6376
|
return (or(t) - n + s) / 7;
|
|
6377
6377
|
}
|
|
@@ -6391,7 +6391,7 @@ function Hh(t, e, r, n = null) {
|
|
|
6391
6391
|
const a = { timeZoneName: e, ...i }, o = new Intl.DateTimeFormat(r, a).formatToParts(s).find((c) => c.type.toLowerCase() === "timezonename");
|
|
6392
6392
|
return o ? o.value : null;
|
|
6393
6393
|
}
|
|
6394
|
-
function
|
|
6394
|
+
function Yn(t, e) {
|
|
6395
6395
|
let r = parseInt(t, 10);
|
|
6396
6396
|
Number.isNaN(r) && (r = 0);
|
|
6397
6397
|
const n = parseInt(e, 10) || 0, s = r < 0 || Object.is(r, -0) ? -n : n;
|
|
@@ -6403,7 +6403,7 @@ function Kh(t) {
|
|
|
6403
6403
|
throw new Pe(`Invalid unit value ${t}`);
|
|
6404
6404
|
return e;
|
|
6405
6405
|
}
|
|
6406
|
-
function
|
|
6406
|
+
function kn(t, e) {
|
|
6407
6407
|
const r = {};
|
|
6408
6408
|
for (const n in t)
|
|
6409
6409
|
if (gr(t, n)) {
|
|
@@ -6426,7 +6426,7 @@ function $r(t, e) {
|
|
|
6426
6426
|
throw new RangeError(`Value format ${e} is out of range for property format`);
|
|
6427
6427
|
}
|
|
6428
6428
|
}
|
|
6429
|
-
function
|
|
6429
|
+
function Jn(t) {
|
|
6430
6430
|
return q_(t, ["hour", "minute", "second", "millisecond"]);
|
|
6431
6431
|
}
|
|
6432
6432
|
const $_ = [
|
|
@@ -6552,7 +6552,7 @@ function Bf(t, e) {
|
|
|
6552
6552
|
return r;
|
|
6553
6553
|
}
|
|
6554
6554
|
const Y_ = {
|
|
6555
|
-
D:
|
|
6555
|
+
D: Rn,
|
|
6556
6556
|
DD: vh,
|
|
6557
6557
|
DDD: wh,
|
|
6558
6558
|
DDDD: bh,
|
|
@@ -6868,11 +6868,11 @@ function Er(t, e) {
|
|
|
6868
6868
|
milliseconds: uc(t[e + 3])
|
|
6869
6869
|
}, null, e + 4];
|
|
6870
6870
|
}
|
|
6871
|
-
function
|
|
6872
|
-
const r = !t[e] && !t[e + 1], n =
|
|
6871
|
+
function Xr(t, e) {
|
|
6872
|
+
const r = !t[e] && !t[e + 1], n = Yn(t[e + 1], t[e + 2]), s = r ? null : $e.instance(n);
|
|
6873
6873
|
return [{}, s, e + 3];
|
|
6874
6874
|
}
|
|
6875
|
-
function
|
|
6875
|
+
function en(t, e) {
|
|
6876
6876
|
const r = t[e] ? wt.create(t[e]) : null;
|
|
6877
6877
|
return [{}, r, e + 1];
|
|
6878
6878
|
}
|
|
@@ -6930,7 +6930,7 @@ function fv(t) {
|
|
|
6930
6930
|
f
|
|
6931
6931
|
] = t, d = mc(e, s, n, r, i, a, o);
|
|
6932
6932
|
let h;
|
|
6933
|
-
return c ? h = lv[c] : l ? h = 0 : h =
|
|
6933
|
+
return c ? h = lv[c] : l ? h = 0 : h = Yn(u, f), [d, new $e(h)];
|
|
6934
6934
|
}
|
|
6935
6935
|
function dv(t) {
|
|
6936
6936
|
return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
@@ -6947,22 +6947,22 @@ function gv(t) {
|
|
|
6947
6947
|
const yv = wr(Q_, hc), _v = wr(X_, hc), vv = wr(ev, hc), wv = wr(am), cm = br(
|
|
6948
6948
|
iv,
|
|
6949
6949
|
Er,
|
|
6950
|
-
|
|
6951
|
-
|
|
6950
|
+
Xr,
|
|
6951
|
+
en
|
|
6952
6952
|
), bv = br(
|
|
6953
6953
|
tv,
|
|
6954
6954
|
Er,
|
|
6955
|
-
|
|
6956
|
-
|
|
6955
|
+
Xr,
|
|
6956
|
+
en
|
|
6957
6957
|
), Ov = br(
|
|
6958
6958
|
rv,
|
|
6959
6959
|
Er,
|
|
6960
|
-
|
|
6961
|
-
|
|
6960
|
+
Xr,
|
|
6961
|
+
en
|
|
6962
6962
|
), Ev = br(
|
|
6963
6963
|
Er,
|
|
6964
|
-
|
|
6965
|
-
|
|
6964
|
+
Xr,
|
|
6965
|
+
en
|
|
6966
6966
|
);
|
|
6967
6967
|
function Sv(t) {
|
|
6968
6968
|
return Or(
|
|
@@ -6993,8 +6993,8 @@ function kv(t) {
|
|
|
6993
6993
|
}
|
|
6994
6994
|
const Iv = wr(nv, sv), xv = wr(om), Fv = br(
|
|
6995
6995
|
Er,
|
|
6996
|
-
|
|
6997
|
-
|
|
6996
|
+
Xr,
|
|
6997
|
+
en
|
|
6998
6998
|
);
|
|
6999
6999
|
function Nv(t) {
|
|
7000
7000
|
return Or(
|
|
@@ -7177,7 +7177,7 @@ class ue {
|
|
|
7177
7177
|
`Duration.fromObject: argument expected to be an object, got ${e === null ? "null" : typeof e}`
|
|
7178
7178
|
);
|
|
7179
7179
|
return new ue({
|
|
7180
|
-
values:
|
|
7180
|
+
values: kn(e, ue.normalizeUnit),
|
|
7181
7181
|
loc: me.fromObject(r),
|
|
7182
7182
|
conversionAccuracy: r.conversionAccuracy,
|
|
7183
7183
|
matrix: r.matrix
|
|
@@ -7505,7 +7505,7 @@ class ue {
|
|
|
7505
7505
|
*/
|
|
7506
7506
|
set(e) {
|
|
7507
7507
|
if (!this.isValid) return this;
|
|
7508
|
-
const r = { ...this.values, ...
|
|
7508
|
+
const r = { ...this.values, ...kn(e, ue.normalizeUnit) };
|
|
7509
7509
|
return mt(this, { values: r });
|
|
7510
7510
|
}
|
|
7511
7511
|
/**
|
|
@@ -8122,7 +8122,7 @@ class Se {
|
|
|
8122
8122
|
* @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
|
|
8123
8123
|
* @return {string}
|
|
8124
8124
|
*/
|
|
8125
|
-
toLocaleString(e =
|
|
8125
|
+
toLocaleString(e = Rn, r = {}) {
|
|
8126
8126
|
return this.isValid ? Me.create(this.s.loc.clone(r), e).formatInterval(this) : tr;
|
|
8127
8127
|
}
|
|
8128
8128
|
/**
|
|
@@ -8193,7 +8193,7 @@ class Se {
|
|
|
8193
8193
|
return Se.fromDateTimes(e(this.s), e(this.e));
|
|
8194
8194
|
}
|
|
8195
8195
|
}
|
|
8196
|
-
class
|
|
8196
|
+
class cn {
|
|
8197
8197
|
/**
|
|
8198
8198
|
* Return whether the specified zone contains a DST.
|
|
8199
8199
|
* @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
|
|
@@ -8414,9 +8414,9 @@ function rt(t, e) {
|
|
|
8414
8414
|
};
|
|
8415
8415
|
}
|
|
8416
8416
|
function Qf(t, e) {
|
|
8417
|
-
return { regex: t, deser: ([, r, n]) =>
|
|
8417
|
+
return { regex: t, deser: ([, r, n]) => Yn(r, n), groups: e };
|
|
8418
8418
|
}
|
|
8419
|
-
function
|
|
8419
|
+
function ln(t) {
|
|
8420
8420
|
return { regex: t, deser: ([e]) => e };
|
|
8421
8421
|
}
|
|
8422
8422
|
function Wv(t) {
|
|
@@ -8496,9 +8496,9 @@ function zv(t, e) {
|
|
|
8496
8496
|
case "SSS":
|
|
8497
8497
|
return de(s);
|
|
8498
8498
|
case "u":
|
|
8499
|
-
return
|
|
8499
|
+
return ln(u);
|
|
8500
8500
|
case "uu":
|
|
8501
|
-
return
|
|
8501
|
+
return ln(o);
|
|
8502
8502
|
case "uuu":
|
|
8503
8503
|
return de(r);
|
|
8504
8504
|
// meridiem
|
|
@@ -8535,11 +8535,11 @@ function zv(t, e) {
|
|
|
8535
8535
|
// we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing
|
|
8536
8536
|
// because we don't have any way to figure out what they are
|
|
8537
8537
|
case "z":
|
|
8538
|
-
return
|
|
8538
|
+
return ln(/[a-z_+-/]{1,256}?/i);
|
|
8539
8539
|
// this special-case "token" represents a place where a macro-token expanded into a white-space literal
|
|
8540
8540
|
// in this case we accept any non-newline white-space
|
|
8541
8541
|
case " ":
|
|
8542
|
-
return
|
|
8542
|
+
return ln(/[^\S\n\r]/);
|
|
8543
8543
|
default:
|
|
8544
8544
|
return h(g);
|
|
8545
8545
|
}
|
|
@@ -8666,9 +8666,9 @@ function Kv(t) {
|
|
|
8666
8666
|
return o && (i[o] = t[a]), i;
|
|
8667
8667
|
}, {}), r, n];
|
|
8668
8668
|
}
|
|
8669
|
-
let
|
|
8669
|
+
let Fa = null;
|
|
8670
8670
|
function Yv() {
|
|
8671
|
-
return
|
|
8671
|
+
return Fa || (Fa = K.fromMillis(1555555555555)), Fa;
|
|
8672
8672
|
}
|
|
8673
8673
|
function Jv(t, e) {
|
|
8674
8674
|
if (t.literal)
|
|
@@ -8726,15 +8726,15 @@ function gm(t, e) {
|
|
|
8726
8726
|
const n = Me.create(e, t).dtFormatter(Yv()), s = n.formatToParts(), i = n.resolvedOptions();
|
|
8727
8727
|
return s.map((a) => Zv(a, t, i));
|
|
8728
8728
|
}
|
|
8729
|
-
const
|
|
8729
|
+
const Na = "Invalid DateTime", Xf = 864e13;
|
|
8730
8730
|
function Fr(t) {
|
|
8731
8731
|
return new st("unsupported zone", `the zone "${t.name}" is not supported`);
|
|
8732
8732
|
}
|
|
8733
|
-
function Na(t) {
|
|
8734
|
-
return t.weekData === null && (t.weekData = Rn(t.c)), t.weekData;
|
|
8735
|
-
}
|
|
8736
8733
|
function Da(t) {
|
|
8737
|
-
return t.
|
|
8734
|
+
return t.weekData === null && (t.weekData = An(t.c)), t.weekData;
|
|
8735
|
+
}
|
|
8736
|
+
function Pa(t) {
|
|
8737
|
+
return t.localWeekData === null && (t.localWeekData = An(
|
|
8738
8738
|
t.c,
|
|
8739
8739
|
t.loc.getMinDaysInFirstWeek(),
|
|
8740
8740
|
t.loc.getStartOfWeek()
|
|
@@ -8760,7 +8760,7 @@ function ym(t, e, r) {
|
|
|
8760
8760
|
const i = r.offset(n);
|
|
8761
8761
|
return s === i ? [n, s] : [t - Math.min(s, i) * 60 * 1e3, Math.max(s, i)];
|
|
8762
8762
|
}
|
|
8763
|
-
function
|
|
8763
|
+
function un(t, e) {
|
|
8764
8764
|
t += e * 60 * 1e3;
|
|
8765
8765
|
const r = new Date(t);
|
|
8766
8766
|
return {
|
|
@@ -8773,15 +8773,15 @@ function ln(t, e) {
|
|
|
8773
8773
|
millisecond: r.getUTCMilliseconds()
|
|
8774
8774
|
};
|
|
8775
8775
|
}
|
|
8776
|
-
function
|
|
8777
|
-
return ym(
|
|
8776
|
+
function hn(t, e, r) {
|
|
8777
|
+
return ym(Kn(t), e, r);
|
|
8778
8778
|
}
|
|
8779
8779
|
function ed(t, e) {
|
|
8780
8780
|
const r = t.o, n = t.c.year + Math.trunc(e.years), s = t.c.month + Math.trunc(e.months) + Math.trunc(e.quarters) * 3, i = {
|
|
8781
8781
|
...t.c,
|
|
8782
8782
|
year: n,
|
|
8783
8783
|
month: s,
|
|
8784
|
-
day: Math.min(t.c.day,
|
|
8784
|
+
day: Math.min(t.c.day, Cn(n, s)) + Math.trunc(e.days) + Math.trunc(e.weeks) * 7
|
|
8785
8785
|
}, a = ue.fromObject({
|
|
8786
8786
|
years: e.years - Math.trunc(e.years),
|
|
8787
8787
|
quarters: e.quarters - Math.trunc(e.quarters),
|
|
@@ -8792,7 +8792,7 @@ function ed(t, e) {
|
|
|
8792
8792
|
minutes: e.minutes,
|
|
8793
8793
|
seconds: e.seconds,
|
|
8794
8794
|
milliseconds: e.milliseconds
|
|
8795
|
-
}).as("milliseconds"), o =
|
|
8795
|
+
}).as("milliseconds"), o = Kn(i);
|
|
8796
8796
|
let [c, l] = ym(o, r, t.zone);
|
|
8797
8797
|
return a !== 0 && (c += a, l = t.zone.offset(c)), { ts: c, o: l };
|
|
8798
8798
|
}
|
|
@@ -8810,13 +8810,13 @@ function rr(t, e, r, n, s, i) {
|
|
|
8810
8810
|
new st("unparsable", `the input "${s}" can't be parsed as ${n}`)
|
|
8811
8811
|
);
|
|
8812
8812
|
}
|
|
8813
|
-
function
|
|
8813
|
+
function fn(t, e, r = !0) {
|
|
8814
8814
|
return t.isValid ? Me.create(me.create("en-US"), {
|
|
8815
8815
|
allowZ: r,
|
|
8816
8816
|
forceSimple: !0
|
|
8817
8817
|
}).formatDateTimeFromString(t, e) : null;
|
|
8818
8818
|
}
|
|
8819
|
-
function
|
|
8819
|
+
function Ma(t, e, r) {
|
|
8820
8820
|
const n = t.c.year > 9999 || t.c.year < 0;
|
|
8821
8821
|
let s = "";
|
|
8822
8822
|
if (n && t.c.year >= 0 && (s += "+"), s += ke(t.c.year, n ? 6 : 4), r === "year") return s;
|
|
@@ -8867,7 +8867,7 @@ const _m = {
|
|
|
8867
8867
|
minute: 0,
|
|
8868
8868
|
second: 0,
|
|
8869
8869
|
millisecond: 0
|
|
8870
|
-
},
|
|
8870
|
+
}, mn = ["year", "month", "day", "hour", "minute", "second", "millisecond"], tw = [
|
|
8871
8871
|
"weekYear",
|
|
8872
8872
|
"weekNumber",
|
|
8873
8873
|
"weekday",
|
|
@@ -8876,7 +8876,7 @@ const _m = {
|
|
|
8876
8876
|
"second",
|
|
8877
8877
|
"millisecond"
|
|
8878
8878
|
], rw = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
|
|
8879
|
-
function
|
|
8879
|
+
function pn(t) {
|
|
8880
8880
|
const e = {
|
|
8881
8881
|
year: "year",
|
|
8882
8882
|
years: "year",
|
|
@@ -8918,7 +8918,7 @@ function rd(t) {
|
|
|
8918
8918
|
case "localweekyears":
|
|
8919
8919
|
return "localWeekYear";
|
|
8920
8920
|
default:
|
|
8921
|
-
return
|
|
8921
|
+
return pn(t);
|
|
8922
8922
|
}
|
|
8923
8923
|
}
|
|
8924
8924
|
function nw(t) {
|
|
@@ -8937,13 +8937,13 @@ function nd(t, e) {
|
|
|
8937
8937
|
if (Q(t.year))
|
|
8938
8938
|
s = Te.now();
|
|
8939
8939
|
else {
|
|
8940
|
-
for (const c of
|
|
8940
|
+
for (const c of mn)
|
|
8941
8941
|
Q(t[c]) && (t[c] = _m[c]);
|
|
8942
8942
|
const a = zh(t) || Bh(t);
|
|
8943
8943
|
if (a)
|
|
8944
8944
|
return K.invalid(a);
|
|
8945
8945
|
const o = nw(r);
|
|
8946
|
-
[s, i] =
|
|
8946
|
+
[s, i] = hn(t, o, r);
|
|
8947
8947
|
}
|
|
8948
8948
|
return new K({ ts: s, zone: r, loc: n, o: i });
|
|
8949
8949
|
}
|
|
@@ -8978,7 +8978,7 @@ class K {
|
|
|
8978
8978
|
[s, i] = [e.old.c, e.old.o];
|
|
8979
8979
|
else {
|
|
8980
8980
|
const o = Nt(e.o) && !e.old ? e.o : r.offset(this.ts);
|
|
8981
|
-
s =
|
|
8981
|
+
s = un(this.ts, o), n = Number.isNaN(s.year) ? new st("invalid input") : null, s = n ? null : s, i = n ? null : o;
|
|
8982
8982
|
}
|
|
8983
8983
|
this._zone = r, this.loc = e.loc || me.create(), this.invalid = n, this.weekData = null, this.localWeekData = null, this.c = s, this.o = i, this.isLuxonDateTime = !0;
|
|
8984
8984
|
}
|
|
@@ -9145,7 +9145,7 @@ class K {
|
|
|
9145
9145
|
const n = xt(r.zone, Te.defaultZone);
|
|
9146
9146
|
if (!n.isValid)
|
|
9147
9147
|
return K.invalid(Fr(n));
|
|
9148
|
-
const s = me.fromObject(r), i =
|
|
9148
|
+
const s = me.fromObject(r), i = kn(e, rd), { minDaysInFirstWeek: a, startOfWeek: o } = Uf(i, s), c = Te.now(), l = Q(r.specificOffset) ? n.offset(c) : r.specificOffset, u = !Q(i.ordinal), f = !Q(i.year), d = !Q(i.month) || !Q(i.day), h = f || d, p = i.weekYear || i.weekNumber;
|
|
9149
9149
|
if ((h || u) && p)
|
|
9150
9150
|
throw new ir(
|
|
9151
9151
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
@@ -9153,8 +9153,8 @@ class K {
|
|
|
9153
9153
|
if (d && u)
|
|
9154
9154
|
throw new ir("Can't mix ordinal dates with month/day");
|
|
9155
9155
|
const w = p || i.weekday && !h;
|
|
9156
|
-
let g, b, E =
|
|
9157
|
-
w ? (g = tw, b = Xv, E =
|
|
9156
|
+
let g, b, E = un(c, l);
|
|
9157
|
+
w ? (g = tw, b = Xv, E = An(E, a, o)) : u ? (g = rw, b = ew, E = xa(E)) : (g = mn, b = _m);
|
|
9158
9158
|
let x = !1;
|
|
9159
9159
|
for (const T of g) {
|
|
9160
9160
|
const m = i[T];
|
|
@@ -9163,7 +9163,7 @@ class K {
|
|
|
9163
9163
|
const k = w ? F_(i, a, o) : u ? N_(i) : zh(i), y = k || Bh(i);
|
|
9164
9164
|
if (y)
|
|
9165
9165
|
return K.invalid(y);
|
|
9166
|
-
const O = w ? jf(i, a, o) : u ? Vf(i) : i, [N, v] =
|
|
9166
|
+
const O = w ? jf(i, a, o) : u ? Vf(i) : i, [N, v] = hn(O, l, n), I = new K({
|
|
9167
9167
|
ts: N,
|
|
9168
9168
|
zone: n,
|
|
9169
9169
|
o: v,
|
|
@@ -9477,7 +9477,7 @@ class K {
|
|
|
9477
9477
|
* @type {number}
|
|
9478
9478
|
*/
|
|
9479
9479
|
get weekYear() {
|
|
9480
|
-
return this.isValid ?
|
|
9480
|
+
return this.isValid ? Da(this).weekYear : NaN;
|
|
9481
9481
|
}
|
|
9482
9482
|
/**
|
|
9483
9483
|
* Get the week number of the week year (1-52ish).
|
|
@@ -9486,7 +9486,7 @@ class K {
|
|
|
9486
9486
|
* @type {number}
|
|
9487
9487
|
*/
|
|
9488
9488
|
get weekNumber() {
|
|
9489
|
-
return this.isValid ?
|
|
9489
|
+
return this.isValid ? Da(this).weekNumber : NaN;
|
|
9490
9490
|
}
|
|
9491
9491
|
/**
|
|
9492
9492
|
* Get the day of the week.
|
|
@@ -9496,7 +9496,7 @@ class K {
|
|
|
9496
9496
|
* @type {number}
|
|
9497
9497
|
*/
|
|
9498
9498
|
get weekday() {
|
|
9499
|
-
return this.isValid ?
|
|
9499
|
+
return this.isValid ? Da(this).weekday : NaN;
|
|
9500
9500
|
}
|
|
9501
9501
|
/**
|
|
9502
9502
|
* Returns true if this date is on a weekend according to the locale, false otherwise
|
|
@@ -9512,7 +9512,7 @@ class K {
|
|
|
9512
9512
|
* @returns {number}
|
|
9513
9513
|
*/
|
|
9514
9514
|
get localWeekday() {
|
|
9515
|
-
return this.isValid ?
|
|
9515
|
+
return this.isValid ? Pa(this).weekday : NaN;
|
|
9516
9516
|
}
|
|
9517
9517
|
/**
|
|
9518
9518
|
* Get the week number of the week year according to the locale. Different locales assign week numbers differently,
|
|
@@ -9521,7 +9521,7 @@ class K {
|
|
|
9521
9521
|
* @returns {number}
|
|
9522
9522
|
*/
|
|
9523
9523
|
get localWeekNumber() {
|
|
9524
|
-
return this.isValid ?
|
|
9524
|
+
return this.isValid ? Pa(this).weekNumber : NaN;
|
|
9525
9525
|
}
|
|
9526
9526
|
/**
|
|
9527
9527
|
* Get the week year according to the locale. Different locales assign week numbers (and therefor week years)
|
|
@@ -9529,7 +9529,7 @@ class K {
|
|
|
9529
9529
|
* @returns {number}
|
|
9530
9530
|
*/
|
|
9531
9531
|
get localWeekYear() {
|
|
9532
|
-
return this.isValid ?
|
|
9532
|
+
return this.isValid ? Pa(this).weekYear : NaN;
|
|
9533
9533
|
}
|
|
9534
9534
|
/**
|
|
9535
9535
|
* Get the ordinal (meaning the day of the year)
|
|
@@ -9537,7 +9537,7 @@ class K {
|
|
|
9537
9537
|
* @type {number|DateTime}
|
|
9538
9538
|
*/
|
|
9539
9539
|
get ordinal() {
|
|
9540
|
-
return this.isValid ?
|
|
9540
|
+
return this.isValid ? xa(this.c).ordinal : NaN;
|
|
9541
9541
|
}
|
|
9542
9542
|
/**
|
|
9543
9543
|
* Get the human readable short month name, such as 'Oct'.
|
|
@@ -9546,7 +9546,7 @@ class K {
|
|
|
9546
9546
|
* @type {string}
|
|
9547
9547
|
*/
|
|
9548
9548
|
get monthShort() {
|
|
9549
|
-
return this.isValid ?
|
|
9549
|
+
return this.isValid ? cn.months("short", { locObj: this.loc })[this.month - 1] : null;
|
|
9550
9550
|
}
|
|
9551
9551
|
/**
|
|
9552
9552
|
* Get the human readable long month name, such as 'October'.
|
|
@@ -9555,7 +9555,7 @@ class K {
|
|
|
9555
9555
|
* @type {string}
|
|
9556
9556
|
*/
|
|
9557
9557
|
get monthLong() {
|
|
9558
|
-
return this.isValid ?
|
|
9558
|
+
return this.isValid ? cn.months("long", { locObj: this.loc })[this.month - 1] : null;
|
|
9559
9559
|
}
|
|
9560
9560
|
/**
|
|
9561
9561
|
* Get the human readable short weekday, such as 'Mon'.
|
|
@@ -9564,7 +9564,7 @@ class K {
|
|
|
9564
9564
|
* @type {string}
|
|
9565
9565
|
*/
|
|
9566
9566
|
get weekdayShort() {
|
|
9567
|
-
return this.isValid ?
|
|
9567
|
+
return this.isValid ? cn.weekdays("short", { locObj: this.loc })[this.weekday - 1] : null;
|
|
9568
9568
|
}
|
|
9569
9569
|
/**
|
|
9570
9570
|
* Get the human readable long weekday, such as 'Monday'.
|
|
@@ -9573,7 +9573,7 @@ class K {
|
|
|
9573
9573
|
* @type {string}
|
|
9574
9574
|
*/
|
|
9575
9575
|
get weekdayLong() {
|
|
9576
|
-
return this.isValid ?
|
|
9576
|
+
return this.isValid ? cn.weekdays("long", { locObj: this.loc })[this.weekday - 1] : null;
|
|
9577
9577
|
}
|
|
9578
9578
|
/**
|
|
9579
9579
|
* Get the UTC offset of this DateTime in minutes
|
|
@@ -9630,10 +9630,10 @@ class K {
|
|
|
9630
9630
|
getPossibleOffsets() {
|
|
9631
9631
|
if (!this.isValid || this.isOffsetFixed)
|
|
9632
9632
|
return [this];
|
|
9633
|
-
const e = 864e5, r = 6e4, n =
|
|
9633
|
+
const e = 864e5, r = 6e4, n = Kn(this.c), s = this.zone.offset(n - e), i = this.zone.offset(n + e), a = this.zone.offset(n - s * r), o = this.zone.offset(n - i * r);
|
|
9634
9634
|
if (a === o)
|
|
9635
9635
|
return [this];
|
|
9636
|
-
const c = n - a * r, l = n - o * r, u =
|
|
9636
|
+
const c = n - a * r, l = n - o * r, u = un(c, a), f = un(l, o);
|
|
9637
9637
|
return u.hour === f.hour && u.minute === f.minute && u.second === f.second && u.millisecond === f.millisecond ? [Vt(this, { ts: c }), Vt(this, { ts: l })] : [this];
|
|
9638
9638
|
}
|
|
9639
9639
|
/**
|
|
@@ -9643,7 +9643,7 @@ class K {
|
|
|
9643
9643
|
* @type {boolean}
|
|
9644
9644
|
*/
|
|
9645
9645
|
get isInLeapYear() {
|
|
9646
|
-
return
|
|
9646
|
+
return Qr(this.year);
|
|
9647
9647
|
}
|
|
9648
9648
|
/**
|
|
9649
9649
|
* Returns the number of days in this DateTime's month
|
|
@@ -9652,7 +9652,7 @@ class K {
|
|
|
9652
9652
|
* @type {number}
|
|
9653
9653
|
*/
|
|
9654
9654
|
get daysInMonth() {
|
|
9655
|
-
return
|
|
9655
|
+
return Cn(this.year, this.month);
|
|
9656
9656
|
}
|
|
9657
9657
|
/**
|
|
9658
9658
|
* Returns the number of days in this DateTime's year
|
|
@@ -9671,7 +9671,7 @@ class K {
|
|
|
9671
9671
|
* @type {number}
|
|
9672
9672
|
*/
|
|
9673
9673
|
get weeksInWeekYear() {
|
|
9674
|
-
return this.isValid ?
|
|
9674
|
+
return this.isValid ? Br(this.weekYear) : NaN;
|
|
9675
9675
|
}
|
|
9676
9676
|
/**
|
|
9677
9677
|
* Returns the number of weeks in this DateTime's local week year
|
|
@@ -9680,7 +9680,7 @@ class K {
|
|
|
9680
9680
|
* @type {number}
|
|
9681
9681
|
*/
|
|
9682
9682
|
get weeksInLocalWeekYear() {
|
|
9683
|
-
return this.isValid ?
|
|
9683
|
+
return this.isValid ? Br(
|
|
9684
9684
|
this.localWeekYear,
|
|
9685
9685
|
this.loc.getMinDaysInFirstWeek(),
|
|
9686
9686
|
this.loc.getStartOfWeek()
|
|
@@ -9736,7 +9736,7 @@ class K {
|
|
|
9736
9736
|
let s = this.ts;
|
|
9737
9737
|
if (r || n) {
|
|
9738
9738
|
const i = e.offset(this.ts), a = this.toObject();
|
|
9739
|
-
[s] =
|
|
9739
|
+
[s] = hn(a, i, e);
|
|
9740
9740
|
}
|
|
9741
9741
|
return Vt(this, { ts: s, zone: e });
|
|
9742
9742
|
} else
|
|
@@ -9776,7 +9776,7 @@ class K {
|
|
|
9776
9776
|
*/
|
|
9777
9777
|
set(e) {
|
|
9778
9778
|
if (!this.isValid) return this;
|
|
9779
|
-
const r =
|
|
9779
|
+
const r = kn(e, rd), { minDaysInFirstWeek: n, startOfWeek: s } = Uf(r, this.loc), i = !Q(r.weekYear) || !Q(r.weekNumber) || !Q(r.weekday), a = !Q(r.ordinal), o = !Q(r.year), c = !Q(r.month) || !Q(r.day), l = o || c, u = r.weekYear || r.weekNumber;
|
|
9780
9780
|
if ((l || a) && u)
|
|
9781
9781
|
throw new ir(
|
|
9782
9782
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
@@ -9785,11 +9785,11 @@ class K {
|
|
|
9785
9785
|
throw new ir("Can't mix ordinal dates with month/day");
|
|
9786
9786
|
let f;
|
|
9787
9787
|
i ? f = jf(
|
|
9788
|
-
{ ...
|
|
9788
|
+
{ ...An(this.c, n, s), ...r },
|
|
9789
9789
|
n,
|
|
9790
9790
|
s
|
|
9791
|
-
) : Q(r.ordinal) ? (f = { ...this.toObject(), ...r }, Q(r.day) && (f.day = Math.min(
|
|
9792
|
-
const [d, h] =
|
|
9791
|
+
) : Q(r.ordinal) ? (f = { ...this.toObject(), ...r }, Q(r.day) && (f.day = Math.min(Cn(f.year, f.month), f.day))) : f = Vf({ ...xa(this.c), ...r });
|
|
9792
|
+
const [d, h] = hn(f, this.o, this.zone);
|
|
9793
9793
|
return Vt(this, { ts: d, o: h });
|
|
9794
9794
|
}
|
|
9795
9795
|
/**
|
|
@@ -9899,7 +9899,7 @@ class K {
|
|
|
9899
9899
|
* @return {string}
|
|
9900
9900
|
*/
|
|
9901
9901
|
toFormat(e, r = {}) {
|
|
9902
|
-
return this.isValid ? Me.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this, e) :
|
|
9902
|
+
return this.isValid ? Me.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this, e) : Na;
|
|
9903
9903
|
}
|
|
9904
9904
|
/**
|
|
9905
9905
|
* 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`.
|
|
@@ -9920,8 +9920,8 @@ class K {
|
|
|
9920
9920
|
* @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'
|
|
9921
9921
|
* @return {string}
|
|
9922
9922
|
*/
|
|
9923
|
-
toLocaleString(e =
|
|
9924
|
-
return this.isValid ? Me.create(this.loc.clone(r), e).formatDateTime(this) :
|
|
9923
|
+
toLocaleString(e = Rn, r = {}) {
|
|
9924
|
+
return this.isValid ? Me.create(this.loc.clone(r), e).formatDateTime(this) : Na;
|
|
9925
9925
|
}
|
|
9926
9926
|
/**
|
|
9927
9927
|
* 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.
|
|
@@ -9966,10 +9966,10 @@ class K {
|
|
|
9966
9966
|
} = {}) {
|
|
9967
9967
|
if (!this.isValid)
|
|
9968
9968
|
return null;
|
|
9969
|
-
a =
|
|
9969
|
+
a = pn(a);
|
|
9970
9970
|
const o = e === "extended";
|
|
9971
|
-
let c =
|
|
9972
|
-
return
|
|
9971
|
+
let c = Ma(this, o, a);
|
|
9972
|
+
return mn.indexOf(a) >= 3 && (c += "T"), c += td(
|
|
9973
9973
|
this,
|
|
9974
9974
|
o,
|
|
9975
9975
|
r,
|
|
@@ -9990,7 +9990,7 @@ class K {
|
|
|
9990
9990
|
* @return {string|null}
|
|
9991
9991
|
*/
|
|
9992
9992
|
toISODate({ format: e = "extended", precision: r = "day" } = {}) {
|
|
9993
|
-
return this.isValid ?
|
|
9993
|
+
return this.isValid ? Ma(this, e === "extended", pn(r)) : null;
|
|
9994
9994
|
}
|
|
9995
9995
|
/**
|
|
9996
9996
|
* Returns an ISO 8601-compliant string representation of this DateTime's week date
|
|
@@ -9998,7 +9998,7 @@ class K {
|
|
|
9998
9998
|
* @return {string}
|
|
9999
9999
|
*/
|
|
10000
10000
|
toISOWeekDate() {
|
|
10001
|
-
return
|
|
10001
|
+
return fn(this, "kkkk-'W'WW-c");
|
|
10002
10002
|
}
|
|
10003
10003
|
/**
|
|
10004
10004
|
* Returns an ISO 8601-compliant string representation of this DateTime's time component
|
|
@@ -10026,7 +10026,7 @@ class K {
|
|
|
10026
10026
|
format: a = "extended",
|
|
10027
10027
|
precision: o = "milliseconds"
|
|
10028
10028
|
} = {}) {
|
|
10029
|
-
return this.isValid ? (o =
|
|
10029
|
+
return this.isValid ? (o = pn(o), (s && mn.indexOf(o) >= 3 ? "T" : "") + td(
|
|
10030
10030
|
this,
|
|
10031
10031
|
a === "extended",
|
|
10032
10032
|
r,
|
|
@@ -10043,7 +10043,7 @@ class K {
|
|
|
10043
10043
|
* @return {string}
|
|
10044
10044
|
*/
|
|
10045
10045
|
toRFC2822() {
|
|
10046
|
-
return
|
|
10046
|
+
return fn(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", !1);
|
|
10047
10047
|
}
|
|
10048
10048
|
/**
|
|
10049
10049
|
* Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.
|
|
@@ -10054,7 +10054,7 @@ class K {
|
|
|
10054
10054
|
* @return {string}
|
|
10055
10055
|
*/
|
|
10056
10056
|
toHTTP() {
|
|
10057
|
-
return
|
|
10057
|
+
return fn(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'");
|
|
10058
10058
|
}
|
|
10059
10059
|
/**
|
|
10060
10060
|
* Returns a string representation of this DateTime appropriate for use in SQL Date
|
|
@@ -10062,7 +10062,7 @@ class K {
|
|
|
10062
10062
|
* @return {string|null}
|
|
10063
10063
|
*/
|
|
10064
10064
|
toSQLDate() {
|
|
10065
|
-
return this.isValid ?
|
|
10065
|
+
return this.isValid ? Ma(this, !0) : null;
|
|
10066
10066
|
}
|
|
10067
10067
|
/**
|
|
10068
10068
|
* Returns a string representation of this DateTime appropriate for use in SQL Time
|
|
@@ -10078,7 +10078,7 @@ class K {
|
|
|
10078
10078
|
*/
|
|
10079
10079
|
toSQLTime({ includeOffset: e = !0, includeZone: r = !1, includeOffsetSpace: n = !0 } = {}) {
|
|
10080
10080
|
let s = "HH:mm:ss.SSS";
|
|
10081
|
-
return (r || e) && (n && (s += " "), r ? s += "z" : e && (s += "ZZ")),
|
|
10081
|
+
return (r || e) && (n && (s += " "), r ? s += "z" : e && (s += "ZZ")), fn(this, s, !0);
|
|
10082
10082
|
}
|
|
10083
10083
|
/**
|
|
10084
10084
|
* Returns a string representation of this DateTime appropriate for use in SQL DateTime
|
|
@@ -10100,7 +10100,7 @@ class K {
|
|
|
10100
10100
|
* @return {string}
|
|
10101
10101
|
*/
|
|
10102
10102
|
toString() {
|
|
10103
|
-
return this.isValid ? this.toISO() :
|
|
10103
|
+
return this.isValid ? this.toISO() : Na;
|
|
10104
10104
|
}
|
|
10105
10105
|
/**
|
|
10106
10106
|
* Returns a string representation of this DateTime appropriate for the REPL.
|
|
@@ -10390,7 +10390,7 @@ class K {
|
|
|
10390
10390
|
* @type {Object}
|
|
10391
10391
|
*/
|
|
10392
10392
|
static get DATE_SHORT() {
|
|
10393
|
-
return
|
|
10393
|
+
return Rn;
|
|
10394
10394
|
}
|
|
10395
10395
|
/**
|
|
10396
10396
|
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983'
|
|
@@ -10614,124 +10614,124 @@ const ad = async (t, e) => {
|
|
|
10614
10614
|
throw new Error("VALIDATION_ERROR: batchSize is required");
|
|
10615
10615
|
}
|
|
10616
10616
|
};
|
|
10617
|
-
var
|
|
10617
|
+
var qa, od;
|
|
10618
10618
|
function sw() {
|
|
10619
|
-
if (od) return
|
|
10619
|
+
if (od) return qa;
|
|
10620
10620
|
od = 1;
|
|
10621
10621
|
function t(e, r) {
|
|
10622
10622
|
for (var n = -1, s = e == null ? 0 : e.length; ++n < s && r(e[n], n, e) !== !1; )
|
|
10623
10623
|
;
|
|
10624
10624
|
return e;
|
|
10625
10625
|
}
|
|
10626
|
-
return
|
|
10626
|
+
return qa = t, qa;
|
|
10627
10627
|
}
|
|
10628
|
-
var
|
|
10628
|
+
var La, cd;
|
|
10629
10629
|
function iw() {
|
|
10630
|
-
if (cd) return
|
|
10630
|
+
if (cd) return La;
|
|
10631
10631
|
cd = 1;
|
|
10632
|
-
var t =
|
|
10632
|
+
var t = Hr(), e = Yo();
|
|
10633
10633
|
function r(n, s) {
|
|
10634
10634
|
return n && t(s, e(s), n);
|
|
10635
10635
|
}
|
|
10636
|
-
return
|
|
10636
|
+
return La = r, La;
|
|
10637
10637
|
}
|
|
10638
|
-
var
|
|
10638
|
+
var $a, ld;
|
|
10639
10639
|
function aw() {
|
|
10640
|
-
if (ld) return
|
|
10640
|
+
if (ld) return $a;
|
|
10641
10641
|
ld = 1;
|
|
10642
|
-
var t =
|
|
10642
|
+
var t = Hr(), e = Kr();
|
|
10643
10643
|
function r(n, s) {
|
|
10644
10644
|
return n && t(s, e(s), n);
|
|
10645
10645
|
}
|
|
10646
|
-
return
|
|
10646
|
+
return $a = r, $a;
|
|
10647
10647
|
}
|
|
10648
|
-
var
|
|
10648
|
+
var ja, ud;
|
|
10649
10649
|
function ow() {
|
|
10650
|
-
if (ud) return
|
|
10650
|
+
if (ud) return ja;
|
|
10651
10651
|
ud = 1;
|
|
10652
|
-
var t =
|
|
10652
|
+
var t = Hr(), e = zo();
|
|
10653
10653
|
function r(n, s) {
|
|
10654
10654
|
return t(n, e(n), s);
|
|
10655
10655
|
}
|
|
10656
|
-
return
|
|
10656
|
+
return ja = r, ja;
|
|
10657
10657
|
}
|
|
10658
|
-
var
|
|
10658
|
+
var Va, fd;
|
|
10659
10659
|
function wm() {
|
|
10660
|
-
if (fd) return
|
|
10660
|
+
if (fd) return Va;
|
|
10661
10661
|
fd = 1;
|
|
10662
10662
|
var t = Zd(), e = Xo(), r = zo(), n = Hd(), s = Object.getOwnPropertySymbols, i = s ? function(a) {
|
|
10663
10663
|
for (var o = []; a; )
|
|
10664
10664
|
t(o, r(a)), a = e(a);
|
|
10665
10665
|
return o;
|
|
10666
10666
|
} : n;
|
|
10667
|
-
return
|
|
10667
|
+
return Va = i, Va;
|
|
10668
10668
|
}
|
|
10669
|
-
var
|
|
10669
|
+
var Ua, dd;
|
|
10670
10670
|
function cw() {
|
|
10671
|
-
if (dd) return
|
|
10671
|
+
if (dd) return Ua;
|
|
10672
10672
|
dd = 1;
|
|
10673
|
-
var t =
|
|
10673
|
+
var t = Hr(), e = wm();
|
|
10674
10674
|
function r(n, s) {
|
|
10675
10675
|
return t(n, e(n), s);
|
|
10676
10676
|
}
|
|
10677
|
-
return
|
|
10677
|
+
return Ua = r, Ua;
|
|
10678
10678
|
}
|
|
10679
|
-
var
|
|
10679
|
+
var Wa, hd;
|
|
10680
10680
|
function lw() {
|
|
10681
|
-
if (hd) return
|
|
10681
|
+
if (hd) return Wa;
|
|
10682
10682
|
hd = 1;
|
|
10683
|
-
var t = Gd(), e = wm(), r =
|
|
10683
|
+
var t = Gd(), e = wm(), r = Kr();
|
|
10684
10684
|
function n(s) {
|
|
10685
10685
|
return t(s, r, e);
|
|
10686
10686
|
}
|
|
10687
|
-
return
|
|
10687
|
+
return Wa = n, Wa;
|
|
10688
10688
|
}
|
|
10689
|
-
var
|
|
10689
|
+
var za, md;
|
|
10690
10690
|
function uw() {
|
|
10691
|
-
if (md) return
|
|
10691
|
+
if (md) return za;
|
|
10692
10692
|
md = 1;
|
|
10693
10693
|
var t = Object.prototype, e = t.hasOwnProperty;
|
|
10694
10694
|
function r(n) {
|
|
10695
10695
|
var s = n.length, i = new n.constructor(s);
|
|
10696
10696
|
return s && typeof n[0] == "string" && e.call(n, "index") && (i.index = n.index, i.input = n.input), i;
|
|
10697
10697
|
}
|
|
10698
|
-
return
|
|
10698
|
+
return za = r, za;
|
|
10699
10699
|
}
|
|
10700
|
-
var
|
|
10700
|
+
var Ba, pd;
|
|
10701
10701
|
function fw() {
|
|
10702
|
-
if (pd) return
|
|
10702
|
+
if (pd) return Ba;
|
|
10703
10703
|
pd = 1;
|
|
10704
10704
|
var t = Qo();
|
|
10705
10705
|
function e(r, n) {
|
|
10706
10706
|
var s = n ? t(r.buffer) : r.buffer;
|
|
10707
10707
|
return new r.constructor(s, r.byteOffset, r.byteLength);
|
|
10708
10708
|
}
|
|
10709
|
-
return
|
|
10709
|
+
return Ba = e, Ba;
|
|
10710
10710
|
}
|
|
10711
|
-
var
|
|
10711
|
+
var Za, gd;
|
|
10712
10712
|
function dw() {
|
|
10713
|
-
if (gd) return
|
|
10713
|
+
if (gd) return Za;
|
|
10714
10714
|
gd = 1;
|
|
10715
10715
|
var t = /\w*$/;
|
|
10716
10716
|
function e(r) {
|
|
10717
10717
|
var n = new r.constructor(r.source, t.exec(r));
|
|
10718
10718
|
return n.lastIndex = r.lastIndex, n;
|
|
10719
10719
|
}
|
|
10720
|
-
return
|
|
10720
|
+
return Za = e, Za;
|
|
10721
10721
|
}
|
|
10722
|
-
var
|
|
10722
|
+
var Ga, yd;
|
|
10723
10723
|
function hw() {
|
|
10724
|
-
if (yd) return
|
|
10724
|
+
if (yd) return Ga;
|
|
10725
10725
|
yd = 1;
|
|
10726
|
-
var t =
|
|
10726
|
+
var t = Gr(), e = t ? t.prototype : void 0, r = e ? e.valueOf : void 0;
|
|
10727
10727
|
function n(s) {
|
|
10728
10728
|
return r ? Object(r.call(s)) : {};
|
|
10729
10729
|
}
|
|
10730
|
-
return
|
|
10730
|
+
return Ga = n, Ga;
|
|
10731
10731
|
}
|
|
10732
|
-
var
|
|
10732
|
+
var Ha, _d;
|
|
10733
10733
|
function mw() {
|
|
10734
|
-
if (_d) return
|
|
10734
|
+
if (_d) return Ha;
|
|
10735
10735
|
_d = 1;
|
|
10736
10736
|
var t = Qo(), e = fw(), r = dw(), n = hw(), s = sh(), i = "[object Boolean]", a = "[object Date]", o = "[object Map]", c = "[object Number]", l = "[object RegExp]", u = "[object Set]", f = "[object String]", d = "[object Symbol]", h = "[object ArrayBuffer]", p = "[object DataView]", w = "[object Float32Array]", g = "[object Float64Array]", b = "[object Int8Array]", E = "[object Int16Array]", x = "[object Int32Array]", k = "[object Uint8Array]", y = "[object Uint8ClampedArray]", O = "[object Uint16Array]", N = "[object Uint32Array]";
|
|
10737
10737
|
function v(I, T, m) {
|
|
@@ -10767,47 +10767,47 @@ function mw() {
|
|
|
10767
10767
|
return n(I);
|
|
10768
10768
|
}
|
|
10769
10769
|
}
|
|
10770
|
-
return
|
|
10770
|
+
return Ha = v, Ha;
|
|
10771
10771
|
}
|
|
10772
|
-
var
|
|
10772
|
+
var Ka, vd;
|
|
10773
10773
|
function pw() {
|
|
10774
|
-
if (vd) return
|
|
10774
|
+
if (vd) return Ka;
|
|
10775
10775
|
vd = 1;
|
|
10776
|
-
var t =
|
|
10776
|
+
var t = zn(), e = Ot(), r = "[object Map]";
|
|
10777
10777
|
function n(s) {
|
|
10778
10778
|
return e(s) && t(s) == r;
|
|
10779
10779
|
}
|
|
10780
|
-
return
|
|
10780
|
+
return Ka = n, Ka;
|
|
10781
10781
|
}
|
|
10782
|
-
var
|
|
10782
|
+
var Ya, wd;
|
|
10783
10783
|
function gw() {
|
|
10784
|
-
if (wd) return
|
|
10784
|
+
if (wd) return Ya;
|
|
10785
10785
|
wd = 1;
|
|
10786
10786
|
var t = pw(), e = Zo(), r = Go(), n = r && r.isMap, s = n ? e(n) : t;
|
|
10787
|
-
return
|
|
10787
|
+
return Ya = s, Ya;
|
|
10788
10788
|
}
|
|
10789
|
-
var
|
|
10789
|
+
var Ja, bd;
|
|
10790
10790
|
function yw() {
|
|
10791
|
-
if (bd) return
|
|
10791
|
+
if (bd) return Ja;
|
|
10792
10792
|
bd = 1;
|
|
10793
|
-
var t =
|
|
10793
|
+
var t = zn(), e = Ot(), r = "[object Set]";
|
|
10794
10794
|
function n(s) {
|
|
10795
10795
|
return e(s) && t(s) == r;
|
|
10796
10796
|
}
|
|
10797
|
-
return
|
|
10797
|
+
return Ja = n, Ja;
|
|
10798
10798
|
}
|
|
10799
|
-
var
|
|
10799
|
+
var Qa, Od;
|
|
10800
10800
|
function _w() {
|
|
10801
|
-
if (Od) return
|
|
10801
|
+
if (Od) return Qa;
|
|
10802
10802
|
Od = 1;
|
|
10803
10803
|
var t = yw(), e = Zo(), r = Go(), n = r && r.isSet, s = n ? e(n) : t;
|
|
10804
|
-
return
|
|
10804
|
+
return Qa = s, Qa;
|
|
10805
10805
|
}
|
|
10806
|
-
var
|
|
10806
|
+
var Xa, Ed;
|
|
10807
10807
|
function vw() {
|
|
10808
|
-
if (Ed) return
|
|
10808
|
+
if (Ed) return Xa;
|
|
10809
10809
|
Ed = 1;
|
|
10810
|
-
var t = Wo(), e = sw(), r = ec(), n = iw(), s = aw(), i = nh(), a = ih(), o = ow(), c = cw(), l = Xd(), u = lw(), f =
|
|
10810
|
+
var t = Wo(), e = sw(), r = ec(), n = iw(), s = aw(), i = nh(), a = ih(), o = ow(), c = cw(), l = Xd(), u = lw(), f = zn(), d = uw(), h = mw(), p = ah(), w = Mt(), g = Un(), b = gw(), E = bt(), x = _w(), k = Yo(), y = Kr(), O = 1, N = 2, v = 4, I = "[object Arguments]", T = "[object Array]", m = "[object Boolean]", C = "[object Date]", S = "[object Error]", _ = "[object Function]", R = "[object GeneratorFunction]", F = "[object Map]", Y = "[object Number]", A = "[object Object]", P = "[object RegExp]", M = "[object Set]", H = "[object String]", oe = "[object Symbol]", ce = "[object WeakMap]", B = "[object ArrayBuffer]", V = "[object DataView]", te = "[object Float32Array]", _e = "[object Float64Array]", xe = "[object Int8Array]", et = "[object Int16Array]", Et = "[object Int32Array]", Ve = "[object Uint8Array]", L = "[object Uint8ClampedArray]", X = "[object Uint16Array]", W = "[object Uint32Array]", $ = {};
|
|
10811
10811
|
$[I] = $[T] = $[B] = $[V] = $[m] = $[C] = $[te] = $[_e] = $[xe] = $[et] = $[Et] = $[F] = $[Y] = $[A] = $[P] = $[M] = $[H] = $[oe] = $[Ve] = $[L] = $[X] = $[W] = !0, $[S] = $[_] = $[ce] = !1;
|
|
10812
10812
|
function U(G, Ee, pe, Ae, ie, Fe) {
|
|
10813
10813
|
var Ie, St = Ee & O, Xt = Ee & N, Ac = Ee & v;
|
|
@@ -10846,20 +10846,20 @@ function vw() {
|
|
|
10846
10846
|
Ic && ($t = Tt, Tt = G[$t]), r(Ie, $t, U(Tt, Ee, pe, $t, G, Fe));
|
|
10847
10847
|
}), Ie;
|
|
10848
10848
|
}
|
|
10849
|
-
return
|
|
10849
|
+
return Xa = U, Xa;
|
|
10850
10850
|
}
|
|
10851
|
-
var
|
|
10851
|
+
var eo, Sd;
|
|
10852
10852
|
function ww() {
|
|
10853
|
-
if (Sd) return
|
|
10853
|
+
if (Sd) return eo;
|
|
10854
10854
|
Sd = 1;
|
|
10855
10855
|
var t = vw(), e = 1, r = 4;
|
|
10856
10856
|
function n(s) {
|
|
10857
10857
|
return t(s, e | r);
|
|
10858
10858
|
}
|
|
10859
|
-
return
|
|
10859
|
+
return eo = n, eo;
|
|
10860
10860
|
}
|
|
10861
10861
|
var bw = ww();
|
|
10862
|
-
const ve = /* @__PURE__ */
|
|
10862
|
+
const ve = /* @__PURE__ */ qn(bw), Dt = (t) => {
|
|
10863
10863
|
for (const e in t)
|
|
10864
10864
|
Object.prototype.hasOwnProperty.call(t, e) && (t[e] === void 0 ? delete t[e] : typeof t[e] == "object" && t[e] !== null && Dt(t[e]));
|
|
10865
10865
|
}, Ow = (t, e) => {
|
|
@@ -10920,14 +10920,14 @@ const ve = /* @__PURE__ */ Mn(bw), Dt = (t) => {
|
|
|
10920
10920
|
s.has(r) && (n = !0);
|
|
10921
10921
|
}), n || delete t[r];
|
|
10922
10922
|
});
|
|
10923
|
-
},
|
|
10923
|
+
}, In = (t) => {
|
|
10924
10924
|
if (!t || typeof t != "string")
|
|
10925
10925
|
return "";
|
|
10926
10926
|
let e = t.replace(/[\r\n]/g, "");
|
|
10927
10927
|
if (e = e.replace(/\0/g, ""), e = e.replace(/[\x00-\x08\x0B-\x1F\x7F]/g, ""), e = e.trim(), e.length > 254)
|
|
10928
10928
|
throw new Error("Email address is too long");
|
|
10929
10929
|
return e;
|
|
10930
|
-
},
|
|
10930
|
+
}, to = (t) => t ? Array.isArray(t) ? t.map((n) => In(n)).filter((n) => n.length > 0) : In(t) || "" : "", Sw = (t) => {
|
|
10931
10931
|
if (!t || typeof t != "string")
|
|
10932
10932
|
return "";
|
|
10933
10933
|
let e = t.replace(/[\r\n]/g, " ");
|
|
@@ -10951,13 +10951,13 @@ const ve = /* @__PURE__ */ Mn(bw), Dt = (t) => {
|
|
|
10951
10951
|
const c = s.collections[o], { labels: l, fields: u, preloadCache: f } = c, d = ht(o), h = i.collections?.[l.collection];
|
|
10952
10952
|
if (!i.Role)
|
|
10953
10953
|
throw new Error("PERMISSION_DENIED");
|
|
10954
|
-
const p = h && ut("Read", h), w =
|
|
10954
|
+
const p = h && ut("Read", h), w = Mn(c, s, i, a), g = $d(c, i), b = $o(c, i), E = jd(c, s, i), x = (_ = []) => {
|
|
10955
10955
|
const R = [];
|
|
10956
10956
|
if (p) {
|
|
10957
10957
|
R.push(he(ar(r, "tenants", n, "system_fields", l.collection, `${l.collection}-${e.key}`), ye("Collection_Path_String", "==", t.join("/")), ..._));
|
|
10958
10958
|
const F = Lo(c);
|
|
10959
10959
|
Object.entries(c.fieldAccessGroups || {}).forEach(([Y, A]) => {
|
|
10960
|
-
if (!F[Y]?.length || !
|
|
10960
|
+
if (!F[Y]?.length || !Pn(A, l.collection, i, a))
|
|
10961
10961
|
return;
|
|
10962
10962
|
const P = nc(Y, e.key);
|
|
10963
10963
|
R.push(he(ar(r, "tenants", n, "system_fields", l.collection, `${l.collection}-${P}`), ye("Collection_Path_String", "==", t.join("/")), ..._));
|
|
@@ -11167,7 +11167,7 @@ const ve = /* @__PURE__ */ Mn(bw), Dt = (t) => {
|
|
|
11167
11167
|
n.includes(s) || r.includes(s) || await lr(s, t?.[s].constraints, t?.[s].range, t?.[s].orQueries, t);
|
|
11168
11168
|
return Dr;
|
|
11169
11169
|
}, Fo = () => Em, Rw = () => Dr, Aw = async (t, e, r, n, s) => {
|
|
11170
|
-
const { labels: i, preloadCache: a } = t, c =
|
|
11170
|
+
const { labels: i, preloadCache: a } = t, c = tn()[i.collection], l = De(), u = ht(i.collection), f = qe();
|
|
11171
11171
|
if (!f?.Role)
|
|
11172
11172
|
throw new Error("PERMISSION_DENIED");
|
|
11173
11173
|
if (!a?.roles.includes(f.Role))
|
|
@@ -11187,10 +11187,10 @@ const ve = /* @__PURE__ */ Mn(bw), Dt = (t) => {
|
|
|
11187
11187
|
]), s || (r ||= a.range);
|
|
11188
11188
|
const p = gc([i.collection], c).map((g) => {
|
|
11189
11189
|
if (r) {
|
|
11190
|
-
const { start: b, end: E } = Ow(r), x = r.fields.filter((y) => !r.ranges?.some((O) => O.includes(y))).map((y) =>
|
|
11190
|
+
const { start: b, end: E } = Ow(r), x = r.fields.filter((y) => !r.ranges?.some((O) => O.includes(y))).map((y) => nn(ye(y, ">=", b), ye(y, "<=", E))), k = r.ranges?.map((y) => nn(ye(y[0], "<=", E), ye(y[1], ">=", b)));
|
|
11191
11191
|
g = he(g, Pc(...x, ...k || []));
|
|
11192
11192
|
}
|
|
11193
|
-
return n && (g = he(g,
|
|
11193
|
+
return n && (g = he(g, nn(Pc(...n.map((b) => ye(...b)))))), e && (g = he(g, nn(...e.map((b) => ye(...b))))), g;
|
|
11194
11194
|
}), w = /* @__PURE__ */ new Map();
|
|
11195
11195
|
return new Promise((g, b) => {
|
|
11196
11196
|
if (p.length === 0) {
|
|
@@ -11216,7 +11216,7 @@ const ve = /* @__PURE__ */ Mn(bw), Dt = (t) => {
|
|
|
11216
11216
|
if (i && (h = i), d[h] === "Loading" || !f?.roles.includes(o.Role))
|
|
11217
11217
|
return;
|
|
11218
11218
|
const p = o.collections?.[t];
|
|
11219
|
-
if (!(p && ut("Read", p) ||
|
|
11219
|
+
if (!(p && ut("Read", p) || Mn(l, a, o, c).length > 0)) {
|
|
11220
11220
|
d[h] = "Error";
|
|
11221
11221
|
return;
|
|
11222
11222
|
}
|
|
@@ -11335,12 +11335,12 @@ const Cw = async (t, e) => {
|
|
|
11335
11335
|
const l = i.collections[c], { labels: u } = l, f = a.collections?.[u.collection];
|
|
11336
11336
|
if (!a.Role)
|
|
11337
11337
|
throw new Error("PERMISSION_DENIED");
|
|
11338
|
-
const d = f && ut("Read", f), h =
|
|
11338
|
+
const d = f && ut("Read", f), h = Mn(l, i, a, o), p = [];
|
|
11339
11339
|
if (d) {
|
|
11340
11340
|
p.push(Re(n, "tenants", s, "system_fields", u.collection, `${u.collection}-${r.key}`, e));
|
|
11341
11341
|
const w = Lo(l);
|
|
11342
11342
|
Object.entries(l.fieldAccessGroups || {}).forEach(([g, b]) => {
|
|
11343
|
-
if (!w[g]?.length || !
|
|
11343
|
+
if (!w[g]?.length || !Pn(b, u.collection, a, o))
|
|
11344
11344
|
return;
|
|
11345
11345
|
const E = nc(g, r.key);
|
|
11346
11346
|
p.push(Re(n, "tenants", s, "system_fields", u.collection, `${u.collection}-${E}`, e));
|
|
@@ -11455,7 +11455,7 @@ const Cw = async (t, e) => {
|
|
|
11455
11455
|
const r = e?.constraints, n = t.at(-1);
|
|
11456
11456
|
if (!n)
|
|
11457
11457
|
throw new Error("EMPTY_PATH");
|
|
11458
|
-
const s = ze(!0), a =
|
|
11458
|
+
const s = ze(!0), a = tn()[n], o = s.collections[n], { labels: c, access: l, preloadCache: u } = o, { serverReadOnly: f } = l, d = De(), h = Object.keys(s.collections).includes(n), p = d.disabledCollections?.includes(n);
|
|
11459
11459
|
if (!h || p)
|
|
11460
11460
|
throw new Error("COLLECTION_NOT_FOUND");
|
|
11461
11461
|
const w = await ht(c.collection), g = await ne(d, [
|
|
@@ -11481,7 +11481,7 @@ const Cw = async (t, e) => {
|
|
|
11481
11481
|
const S = e.pagination.startAfter || e.pagination.endBefore, _ = eh(b.Role, o, s);
|
|
11482
11482
|
if (S && _ !== !0)
|
|
11483
11483
|
throw new Error("INPUT_ERROR: Pagination is not allowed when using " + _);
|
|
11484
|
-
e.pagination.orderByField && e.pagination.orderByDirection ? e.pagination.startAfter || e.pagination.endBefore ? e.pagination.startAfter ? x = x.map((R, F) => he(R, nt(e.pagination.orderByField, e.pagination.orderByDirection),
|
|
11484
|
+
e.pagination.orderByField && e.pagination.orderByDirection ? e.pagination.startAfter || e.pagination.endBefore ? e.pagination.startAfter ? x = x.map((R, F) => he(R, nt(e.pagination.orderByField, e.pagination.orderByDirection), oo(k.last.get(F)), sr(e.pagination.number))) : x = x.map((R, F) => he(R, nt(e.pagination.orderByField, e.pagination.orderByDirection), co(k.first.get(F)), Mr(e.pagination.number))) : x = x.map((R) => he(R, nt(e.pagination.orderByField, e.pagination.orderByDirection), sr(e.pagination.number))) : !e.pagination.startAfter && !e.pagination.endBefore ? x = x.map((R) => he(R, sr(e.pagination.number))) : e.pagination.startAfter ? x = x.map((R, F) => he(R, oo(k.last.get(F)), sr(e.pagination.number))) : x = x.map((R, F) => he(R, co(k.first.get(F)), Mr(e.pagination.number)));
|
|
11485
11485
|
}
|
|
11486
11486
|
const y = { collection: c.collection };
|
|
11487
11487
|
await ae("preOperation", d, w, { operation: "read", context: y }), await ae("preRead", d, w, { context: y, refs: x, multiple: !0, listener: !1 });
|
|
@@ -11629,7 +11629,7 @@ const Cw = async (t, e) => {
|
|
|
11629
11629
|
const n = t.at(-1);
|
|
11630
11630
|
if (!n)
|
|
11631
11631
|
throw new Error("EMPTY_PATH");
|
|
11632
|
-
const s = ze(!0), a =
|
|
11632
|
+
const s = ze(!0), a = tn()[n], o = De(), c = Object.keys(s.collections).includes(n), l = o.disabledCollections?.includes(n);
|
|
11633
11633
|
if (!c || l)
|
|
11634
11634
|
throw new Error("COLLECTION_NOT_FOUND");
|
|
11635
11635
|
const u = await ne(o, [
|
|
@@ -11784,7 +11784,7 @@ const Cw = async (t, e) => {
|
|
|
11784
11784
|
} catch (V) {
|
|
11785
11785
|
throw new Error(`VALIDATION_ERROR: ${V.message}`);
|
|
11786
11786
|
}
|
|
11787
|
-
if (Mg(M, m, e, g, a, I.uid, d, void 0, void 0, void 0, T), Dt(M), pc("update", C, t, e, M, a, g, n, c, qo, Mo,
|
|
11787
|
+
if (Mg(M, m, e, g, a, I.uid, d, void 0, void 0, void 0, T), Dt(M), pc("update", C, t, e, M, a, g, n, c, qo, Mo, Nn, (V) => Re(f, "tenants", i, "system_fields", b.collection, `${b.collection}-${V.name}`, e), (V, te) => Re(f, "tenants", i, "system_unique", b.collection, `Unique-${b.collection}-${V.name}`, te), (V) => Re(f, "tenants", i, "system_fields", b.collection, `${b.collection}-${V}`, e)), C.update(Re(f, "tenants", i, t.join("/"), e), M), !v && k && Je("update", "written", M, t, e, g, I.uid, void 0, m), await bc("update", t, e, M, S, g, O, C, I.uid, k || !1, d, T, !!v, m), v?.type === "unique") {
|
|
11788
11788
|
const V = { ...m, ...M };
|
|
11789
11789
|
return zt(V), { id: e, ...V };
|
|
11790
11790
|
}
|
|
@@ -11968,7 +11968,7 @@ const Cw = async (t, e) => {
|
|
|
11968
11968
|
} catch (A) {
|
|
11969
11969
|
throw new Error(`VALIDATION_ERROR: ${A.message}`);
|
|
11970
11970
|
}
|
|
11971
|
-
if (r?.onValid && r.onValid(), Dt(_), Pg(_, C, p, i, N.uid, u, void 0, v), pc("create", m, t, C, _, i, p, r, a, qo, Mo,
|
|
11971
|
+
if (r?.onValid && r.onValid(), Dt(_), Pg(_, C, p, i, N.uid, u, void 0, v), pc("create", m, t, C, _, i, p, r, a, qo, Mo, Nn, (A) => Re(l, "tenants", s, "system_fields", w.collection, `${w.collection}-${A.name}`, C), (A, P) => Re(l, "tenants", s, "system_unique", w.collection, `Unique-${w.collection}-${A.name}`, P), (A) => Re(l, "tenants", s, "system_fields", w.collection, `${w.collection}-${A}`, C)), m.set(Re(l, "tenants", s, t.join("/"), C), _), !O && b && Je("create", "written", _, t, C, p, N.uid), await bc("create", t, C, _, S, p, k, m, N.uid, b || !1, u, v, !!O), O?.type === "unique")
|
|
11972
11972
|
return { id: C, ..._ };
|
|
11973
11973
|
b && Je("create", "success", _, t, C, p, N.uid);
|
|
11974
11974
|
const R = {
|
|
@@ -12036,7 +12036,7 @@ const Cw = async (t, e) => {
|
|
|
12036
12036
|
recordId: e,
|
|
12037
12037
|
context: C,
|
|
12038
12038
|
batch: m
|
|
12039
|
-
})), Dt(S), qg(S, e, h, s, O.uid, l), pc("delete", m, t, e, S, s, h, r, i, qo, Mo,
|
|
12039
|
+
})), Dt(S), qg(S, e, h, s, O.uid, l), pc("delete", m, t, e, S, s, h, r, i, qo, Mo, Nn, (A) => Re(o, "tenants", n, "system_fields", p.collection, `${p.collection}-${A.name}`, e), (A, P) => Re(o, "tenants", n, "system_unique", p.collection, `Unique-${p.collection}-${A.name}`, P), (A) => Re(o, "tenants", n, "system_fields", p.collection, `${p.collection}-${A}`, e)), m.delete(Re(o, "tenants", n, t.join("/"), e)), !y && g && Je("delete", "written", S, t, e, h, O.uid), await bc("delete", t, e, S, C, h, x, m, O.uid, g || !1, l, N, !!y), g && Je("delete", "success", { ...S, ...y?.record || {} }, t, e, h, O.uid);
|
|
12040
12040
|
const R = {
|
|
12041
12041
|
operation: "delete",
|
|
12042
12042
|
data: S,
|
|
@@ -12048,7 +12048,7 @@ const Cw = async (t, e) => {
|
|
|
12048
12048
|
}, Fm = (t) => {
|
|
12049
12049
|
if (typeof t == "object")
|
|
12050
12050
|
for (const e in t)
|
|
12051
|
-
Object.prototype.hasOwnProperty.call(t, e) && (t[e] === "_DELETE_FIELD" ? t[e] =
|
|
12051
|
+
Object.prototype.hasOwnProperty.call(t, e) && (t[e] === "_DELETE_FIELD" ? t[e] = Nn() : Fm(t[e]));
|
|
12052
12052
|
}, qw = async (t, e) => {
|
|
12053
12053
|
const r = at(), n = Ze(), s = We(r, n.STOKER_FB_FUNCTIONS_REGION);
|
|
12054
12054
|
return (await Qe(s, t)(e)).data;
|
|
@@ -12130,15 +12130,15 @@ const Lw = async (t, e) => {
|
|
|
12130
12130
|
}, Nm = (t) => !!yt[t], $w = () => {
|
|
12131
12131
|
yt = {};
|
|
12132
12132
|
};
|
|
12133
|
-
let
|
|
12133
|
+
let gn, ro = 0;
|
|
12134
12134
|
const jw = async () => {
|
|
12135
12135
|
const t = jm(), e = De();
|
|
12136
12136
|
return _r(Re(t, "system_deployment", "latest_deploy"), (n) => {
|
|
12137
|
-
n.exists() ? (
|
|
12137
|
+
n.exists() ? (gn = n.data(), ro++, ro > 1 && (gn.refresh ? window.location.reload() : be(e.onVersionUpdate, [gn, ro]))) : console.error("Version info not found");
|
|
12138
12138
|
}, (n) => {
|
|
12139
12139
|
console.error("Error getting version info", { cause: n.message });
|
|
12140
12140
|
});
|
|
12141
|
-
}, Dm = () =>
|
|
12141
|
+
}, Dm = () => gn;
|
|
12142
12142
|
let No;
|
|
12143
12143
|
const Vw = async () => {
|
|
12144
12144
|
const t = De(), e = jm();
|
|
@@ -12190,18 +12190,18 @@ const Ww = () => {
|
|
|
12190
12190
|
e(i);
|
|
12191
12191
|
});
|
|
12192
12192
|
};
|
|
12193
|
-
let
|
|
12193
|
+
let xn;
|
|
12194
12194
|
const Zw = (t, e) => {
|
|
12195
12195
|
const r = Tw(t, e);
|
|
12196
|
-
|
|
12197
|
-
}, Gw = () =>
|
|
12196
|
+
xn = r === "(default)" ? void 0 : r;
|
|
12197
|
+
}, Gw = () => xn, Be = () => xn ? Mc(xn) : Mc(), Ad = () => {
|
|
12198
12198
|
if (typeof navigator > "u")
|
|
12199
12199
|
return {};
|
|
12200
12200
|
const t = navigator.userAgent;
|
|
12201
12201
|
return /iPad|iPhone|iPod/.test(t) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1 ? { experimentalForceLongPolling: !0 } : /Safari/i.test(t) && !/Chrome|Chromium|CriOS|EdgiOS|Edg\/|OPR|FxiOS/i.test(t) ? { experimentalForceLongPolling: !0 } : {};
|
|
12202
12202
|
};
|
|
12203
|
-
let pt, Oc, At, Mm, ge, qm, jr, Ec, Sc, Le, Lm,
|
|
12204
|
-
const
|
|
12203
|
+
let pt, Oc, At, Mm, ge, qm, jr, Ec, Sc, Le, Lm, Fn = [], Oe;
|
|
12204
|
+
const no = {
|
|
12205
12205
|
firestoreWriteApp: {}
|
|
12206
12206
|
}, gt = {
|
|
12207
12207
|
main: {},
|
|
@@ -12277,8 +12277,8 @@ const ro = {
|
|
|
12277
12277
|
}
|
|
12278
12278
|
}, Hw = () => {
|
|
12279
12279
|
Oc = "", jr = {}, Ec = {}, Sc = {}, Le = {}, by(), kw(), $w();
|
|
12280
|
-
}, Kw = () =>
|
|
12281
|
-
|
|
12280
|
+
}, Kw = () => Fn, Yw = () => {
|
|
12281
|
+
Fn = [];
|
|
12282
12282
|
};
|
|
12283
12283
|
let Cd = !1, kd = 0;
|
|
12284
12284
|
const db = async (t, e, r, n) => {
|
|
@@ -12288,16 +12288,16 @@ const db = async (t, e, r, n) => {
|
|
|
12288
12288
|
const s = JSON.parse(Oe.STOKER_FB_WEB_APP_CONFIG);
|
|
12289
12289
|
Zw(Oe.STOKER_FB_FIRESTORE_EDITION, s.projectId);
|
|
12290
12290
|
const i = Gw(), a = await ne(ge, ["global", "firebase", "GDPRSettings"]);
|
|
12291
|
-
pt =
|
|
12291
|
+
pt = Qn(s, {
|
|
12292
12292
|
automaticDataCollectionEnabled: a || !0
|
|
12293
12293
|
});
|
|
12294
12294
|
const o = Sp(pt);
|
|
12295
12295
|
At === "development" && (o.instrumentationEnabled = !1, o.dataCollectionEnabled = !1);
|
|
12296
12296
|
const c = ["firestoreWrite"];
|
|
12297
12297
|
for (const m of c)
|
|
12298
|
-
|
|
12299
|
-
const { firestoreWriteApp: l } =
|
|
12300
|
-
He.maintenance =
|
|
12298
|
+
no[`${m}App`] = Qn(s, m);
|
|
12299
|
+
const { firestoreWriteApp: l } = no, u = Qn(s, "maintenance");
|
|
12300
|
+
He.maintenance = sn(u, Ad(), i);
|
|
12301
12301
|
const f = Tp();
|
|
12302
12302
|
if (f.settings.minimumFetchIntervalMillis = 36e5, await Rp(f), Oe.STOKER_FB_ENABLE_APP_CHECK === "true" && Oe.STOKER_FB_APP_CHECK_KEY) {
|
|
12303
12303
|
(At === "development" || window.location.hostname === "localhost") && (globalThis.FIREBASE_APPCHECK_DEBUG_TOKEN = !0);
|
|
@@ -12305,7 +12305,7 @@ const db = async (t, e, r, n) => {
|
|
|
12305
12305
|
provider: new Ep(Oe.STOKER_FB_APP_CHECK_KEY),
|
|
12306
12306
|
isTokenAutoRefreshEnabled: !0
|
|
12307
12307
|
};
|
|
12308
|
-
It.main =
|
|
12308
|
+
It.main = es(pt, m), It.firestoreWrite = es(l, m), It.maintenance = es(u, m);
|
|
12309
12309
|
let C = !1;
|
|
12310
12310
|
const S = (_, R) => {
|
|
12311
12311
|
if (console.log(`App Check token error detected for ${R}`), !C)
|
|
@@ -12316,9 +12316,9 @@ const db = async (t, e, r, n) => {
|
|
|
12316
12316
|
!F || new Date(F).getTime() < Date.now() - 3e5 ? (sessionStorage.setItem("stoker-app-check-reload", (/* @__PURE__ */ new Date()).toISOString()), window.location.reload()) : alert("For security reasons, please close this tab and wait a while before restarting it.");
|
|
12317
12317
|
}
|
|
12318
12318
|
};
|
|
12319
|
-
|
|
12320
|
-
}, (_) => S(_, "main")),
|
|
12321
|
-
}, (_) => S(_, "firestoreWrite")),
|
|
12319
|
+
ts(It.main, () => {
|
|
12320
|
+
}, (_) => S(_, "main")), ts(It.firestoreWrite, () => {
|
|
12321
|
+
}, (_) => S(_, "firestoreWrite")), ts(It.maintenance, () => {
|
|
12322
12322
|
}, (_) => S(_, "maintenance"));
|
|
12323
12323
|
}
|
|
12324
12324
|
const d = await ne(ge, [
|
|
@@ -12361,7 +12361,7 @@ const db = async (t, e, r, n) => {
|
|
|
12361
12361
|
};
|
|
12362
12362
|
gt.main = xc(pt, O);
|
|
12363
12363
|
for (const m of c)
|
|
12364
|
-
gt[m] = xc(
|
|
12364
|
+
gt[m] = xc(no[`${m}App`], O);
|
|
12365
12365
|
const { main: N } = gt;
|
|
12366
12366
|
Ym(N, async (m) => {
|
|
12367
12367
|
if (m && await be(ge.preLogin, [m]) === !1)
|
|
@@ -12395,8 +12395,8 @@ const db = async (t, e, r, n) => {
|
|
|
12395
12395
|
Op(We(pt, Oe.STOKER_FB_FUNCTIONS_REGION), "localhost", m);
|
|
12396
12396
|
}
|
|
12397
12397
|
}
|
|
12398
|
-
if (jw(), Vw(), Ww(), At === "development" && (b ?
|
|
12399
|
-
const m =
|
|
12398
|
+
if (jw(), Vw(), Ww(), At === "development" && (b ? rn(b) : rn("debug")), At === "production" && (E ? rn(E) : rn("error")), g) {
|
|
12399
|
+
const m = Xn(N, async (C) => {
|
|
12400
12400
|
if (C) {
|
|
12401
12401
|
const S = JSON.parse(Oe.STOKER_FB_WEB_APP_CONFIG);
|
|
12402
12402
|
zm(() => {
|
|
@@ -12404,7 +12404,7 @@ const db = async (t, e, r, n) => {
|
|
|
12404
12404
|
});
|
|
12405
12405
|
}
|
|
12406
12406
|
});
|
|
12407
|
-
|
|
12407
|
+
Fn.push(m);
|
|
12408
12408
|
}
|
|
12409
12409
|
await Promise.all(Object.values(gt).map((m) => m.authStateReady().catch((C) => {
|
|
12410
12410
|
throw new Error(`Error waiting for auth state in ${m.app.name}.`, { cause: C });
|
|
@@ -12413,7 +12413,7 @@ const db = async (t, e, r, n) => {
|
|
|
12413
12413
|
for (const m of Object.values(gt))
|
|
12414
12414
|
m.currentUser || (I = !0);
|
|
12415
12415
|
let T;
|
|
12416
|
-
return
|
|
12416
|
+
return Xn(N, async (m) => {
|
|
12417
12417
|
if (m && Le?.uid && m.uid !== Le.uid) {
|
|
12418
12418
|
window.location.reload();
|
|
12419
12419
|
return;
|
|
@@ -12434,7 +12434,7 @@ const db = async (t, e, r, n) => {
|
|
|
12434
12434
|
const F = [];
|
|
12435
12435
|
for (const Ve of Object.values(gt))
|
|
12436
12436
|
F.push(new Promise((L) => {
|
|
12437
|
-
const X =
|
|
12437
|
+
const X = Xn(Ve, async (W) => {
|
|
12438
12438
|
W && (X(), L({}));
|
|
12439
12439
|
});
|
|
12440
12440
|
}));
|
|
@@ -12463,13 +12463,13 @@ const db = async (t, e, r, n) => {
|
|
|
12463
12463
|
})
|
|
12464
12464
|
};
|
|
12465
12465
|
const V = Ad();
|
|
12466
|
-
if (He.main =
|
|
12466
|
+
if (He.main = sn(pt, {
|
|
12467
12467
|
...H,
|
|
12468
12468
|
...V
|
|
12469
|
-
}, i), ["ALL", "WRITE"].includes(T) ? He.firestoreWrite =
|
|
12469
|
+
}, i), ["ALL", "WRITE"].includes(T) ? He.firestoreWrite = sn(l, {
|
|
12470
12470
|
...ce,
|
|
12471
12471
|
...V
|
|
12472
|
-
}, i) : He.firestoreWrite =
|
|
12472
|
+
}, i) : He.firestoreWrite = sn(l, {
|
|
12473
12473
|
...H,
|
|
12474
12474
|
...V
|
|
12475
12475
|
}, i), At === "development" && w && !v?.includes("Firestore")) {
|
|
@@ -12490,7 +12490,7 @@ const db = async (t, e, r, n) => {
|
|
|
12490
12490
|
const xe = Object.entries(_e.data.allRoleGroups).map(([Ve, L]) => [Ve, new Set(L)]);
|
|
12491
12491
|
Ec = Object.fromEntries(xe), Sc = _e.data.currentUserRoleGroups, qm = Lg(Object.keys(jr.collections), e, "web", Do, n);
|
|
12492
12492
|
const et = await Cw(Le, _);
|
|
12493
|
-
if (S() || (
|
|
12493
|
+
if (S() || (Fn.push(...et), T === "WRITE" && Lw(jr, Le), await be(ge.postLogin, [Le]), S()))
|
|
12494
12494
|
return;
|
|
12495
12495
|
const Et = new Event("stoker:ready");
|
|
12496
12496
|
document.dispatchEvent(Et);
|
|
@@ -12528,7 +12528,7 @@ const db = async (t, e, r, n) => {
|
|
|
12528
12528
|
})), F.error ? console.info("Sign out operation completed with errors.") : console.info("Sign out operation completed successfully."), await be(ge.postLogout, [F]);
|
|
12529
12529
|
}
|
|
12530
12530
|
}), I ? !1 : N.currentUser ? (g && console.info(`${N.currentUser.uid} successfully logged in.`), !0) : !1;
|
|
12531
|
-
}, { getTenant: qt, getEnv: Ze, getTimezone: $m, getSchema: ze, getCurrentUser: Lt, getCurrentUserRoleGroups:
|
|
12531
|
+
}, { getTenant: qt, getEnv: Ze, getTimezone: $m, getSchema: ze, getCurrentUser: Lt, getCurrentUserRoleGroups: tn, getAllRoleGroups: Tc, getGlobalConfigModule: De, getCollectionConfigModule: ht, getAppCheck: hb, getAppCheckFirestoreWrite: mb, getFirestoreWriteAuth: Jw, getFirestoreWrite: Rc, getFirestoreMaintenance: jm } = Do, pb = async (t, e, r) => {
|
|
12532
12532
|
const [n, s] = [yr(), Jw()], i = De();
|
|
12533
12533
|
if (!t || !e)
|
|
12534
12534
|
throw new Error("Email and password are required.");
|
|
@@ -12543,7 +12543,7 @@ const db = async (t, e, r, n) => {
|
|
|
12543
12543
|
if (c.code === "auth/multi-factor-auth-required")
|
|
12544
12544
|
if (r) {
|
|
12545
12545
|
o ||= await r();
|
|
12546
|
-
const l = ep(n, c), u =
|
|
12546
|
+
const l = ep(n, c), u = ao.assertionForSignIn(l.hints[0].uid, o);
|
|
12547
12547
|
a = (await l.resolveSignIn(u)).user.uid;
|
|
12548
12548
|
} else
|
|
12549
12549
|
throw new Error("TOTP retrieval function not found.");
|
|
@@ -12578,7 +12578,7 @@ const db = async (t, e, r, n) => {
|
|
|
12578
12578
|
});
|
|
12579
12579
|
let i;
|
|
12580
12580
|
try {
|
|
12581
|
-
i = await
|
|
12581
|
+
i = await ao.generateSecret(s);
|
|
12582
12582
|
} catch (u) {
|
|
12583
12583
|
if (u instanceof Error && u.message.includes("requires-recent-login")) {
|
|
12584
12584
|
alert("Please sign in again to enroll in multi-factor authentication.");
|
|
@@ -12588,7 +12588,7 @@ const db = async (t, e, r, n) => {
|
|
|
12588
12588
|
}
|
|
12589
12589
|
const a = i.secretKey, o = i.generateQrCodeUrl(t.email, n), c = await e(a, o).catch((u) => {
|
|
12590
12590
|
throw new Error("Error getting multi-factor code.", { cause: u });
|
|
12591
|
-
}), l =
|
|
12591
|
+
}), l = ao.assertionForEnrollment(i, c);
|
|
12592
12592
|
await Dc(t).enroll(l, n).catch((u) => {
|
|
12593
12593
|
throw new Error("Error enrolling in multi-factor authentication.", { cause: u });
|
|
12594
12594
|
});
|
|
@@ -12615,7 +12615,7 @@ const db = async (t, e, r, n) => {
|
|
|
12615
12615
|
const a = qe();
|
|
12616
12616
|
if (!a?.Role)
|
|
12617
12617
|
throw new Error("PERMISSIONS_NOT_FOUND");
|
|
12618
|
-
const o = Lt()?.token.claims ?? {}, c = ze(!0), u =
|
|
12618
|
+
const o = Lt()?.token.claims ?? {}, c = ze(!0), u = tn()[i], f = Be(), d = c.collections[i];
|
|
12619
12619
|
if (!d)
|
|
12620
12620
|
throw new Error("COLLECTION_NOT_FOUND");
|
|
12621
12621
|
const { labels: h, preloadCache: p } = d, w = De(), g = Object.keys(c.collections).includes(i), b = w.disabledCollections?.includes(i);
|
|
@@ -12810,7 +12810,7 @@ const db = async (t, e, r, n) => {
|
|
|
12810
12810
|
return () => {
|
|
12811
12811
|
T.forEach((A) => A());
|
|
12812
12812
|
};
|
|
12813
|
-
},
|
|
12813
|
+
}, so = (t) => {
|
|
12814
12814
|
const e = t.first.values().next().value?.id;
|
|
12815
12815
|
if (!e)
|
|
12816
12816
|
throw new Error("INPUT_ERROR: Invalid first cursor state");
|
|
@@ -12818,7 +12818,7 @@ const db = async (t, e, r, n) => {
|
|
|
12818
12818
|
if (r?.id !== e)
|
|
12819
12819
|
throw new Error("INPUT_ERROR: Mismatched first cursor IDs");
|
|
12820
12820
|
});
|
|
12821
|
-
},
|
|
12821
|
+
}, io = (t) => {
|
|
12822
12822
|
const e = t.last.values().next().value?.id;
|
|
12823
12823
|
if (!e)
|
|
12824
12824
|
throw new Error("INPUT_ERROR: Invalid last cursor state");
|
|
@@ -12833,7 +12833,7 @@ const db = async (t, e, r, n) => {
|
|
|
12833
12833
|
const a = qe();
|
|
12834
12834
|
if (!a?.Role)
|
|
12835
12835
|
throw new Error("PERMISSION_DENIED");
|
|
12836
|
-
const o = Lt()?.token.claims ?? {}, c = ze(!0), u =
|
|
12836
|
+
const o = Lt()?.token.claims ?? {}, c = ze(!0), u = tn()[i], f = Be(), d = c.collections[i], { labels: h, preloadCache: p, access: w } = d, { serverReadOnly: g } = w, b = De(), E = Object.keys(c.collections).includes(i), x = b.disabledCollections?.includes(i);
|
|
12837
12837
|
if (!E || x)
|
|
12838
12838
|
throw new Error("COLLECTION_NOT_FOUND");
|
|
12839
12839
|
const k = ht(h.collection), y = await ne(b, [
|
|
@@ -12861,22 +12861,22 @@ const db = async (t, e, r, n) => {
|
|
|
12861
12861
|
const L = n.pagination.startAfter || n.pagination.endBefore || n.pagination.startAt || n.pagination.endAt, X = eh(a.Role, d, c);
|
|
12862
12862
|
if (L && X !== !0)
|
|
12863
12863
|
throw new Error("INPUT_ERROR: Pagination is not allowed when using " + X);
|
|
12864
|
-
n.pagination.startAfter || n.pagination.endBefore || n.pagination.startAt || n.pagination.endAt ? n.pagination.startAfter ? (
|
|
12864
|
+
n.pagination.startAfter || n.pagination.endBefore || n.pagination.startAt || n.pagination.endAt ? n.pagination.startAfter ? (io(n.pagination.startAfter), v = v.map((W, $) => {
|
|
12865
12865
|
if (!n.pagination?.orderByField || !n.pagination.orderByDirection)
|
|
12866
12866
|
throw new Error("INPUT_ERROR: orderByField and orderByDirection must be provided when using startAfter");
|
|
12867
|
-
let U = he(W, nt(n.pagination.orderByField, n.pagination.orderByDirection),
|
|
12867
|
+
let U = he(W, nt(n.pagination.orderByField, n.pagination.orderByDirection), oo(T.last.get($)));
|
|
12868
12868
|
return n.pagination.number && (U = he(U, sr(n.pagination.number))), U;
|
|
12869
|
-
})) : n.pagination.endBefore ? (
|
|
12869
|
+
})) : n.pagination.endBefore ? (so(n.pagination.endBefore), v = v.map((W, $) => {
|
|
12870
12870
|
if (!n.pagination?.orderByField || !n.pagination.orderByDirection)
|
|
12871
12871
|
throw new Error("INPUT_ERROR: orderByField and orderByDirection must be provided when using endBefore");
|
|
12872
|
-
let U = he(W, nt(n.pagination.orderByField, n.pagination.orderByDirection),
|
|
12872
|
+
let U = he(W, nt(n.pagination.orderByField, n.pagination.orderByDirection), co(T.first.get($)));
|
|
12873
12873
|
return n.pagination.number && (U = he(U, Mr(n.pagination.number))), U;
|
|
12874
|
-
})) : n.pagination.startAt ? (
|
|
12874
|
+
})) : n.pagination.startAt ? (so(n.pagination.startAt), v = v.map((W, $) => {
|
|
12875
12875
|
if (!n.pagination?.orderByField || !n.pagination.orderByDirection)
|
|
12876
12876
|
throw new Error("INPUT_ERROR: orderByField and orderByDirection must be provided when using startAt");
|
|
12877
12877
|
let U = he(W, nt(n.pagination.orderByField, n.pagination.orderByDirection), _p(T.first.get($)));
|
|
12878
12878
|
return n.pagination.number && (U = he(U, Mr(n.pagination.number))), U;
|
|
12879
|
-
})) : n.pagination.endAt && (
|
|
12879
|
+
})) : n.pagination.endAt && (io(n.pagination.endAt), v = v.map((W, $) => {
|
|
12880
12880
|
if (!n.pagination?.orderByField || !n.pagination.orderByDirection)
|
|
12881
12881
|
throw new Error("INPUT_ERROR: orderByField and orderByDirection must be provided when using endAt");
|
|
12882
12882
|
let U = he(W, nt(n.pagination.orderByField, n.pagination.orderByDirection), vp(T.last.get($)));
|
|
@@ -13070,7 +13070,7 @@ const db = async (t, e, r, n) => {
|
|
|
13070
13070
|
}
|
|
13071
13071
|
}
|
|
13072
13072
|
return { pages: Et, count: et, unsubscribe: (L) => {
|
|
13073
|
-
L === "first" &&
|
|
13073
|
+
L === "first" && so(T), L === "last" && io(T), Y.forEach((X) => X());
|
|
13074
13074
|
} };
|
|
13075
13075
|
}, Eb = async (t, e) => {
|
|
13076
13076
|
const r = at(), n = Ze(), s = We(r, n.STOKER_FB_FUNCTIONS_REGION);
|
|
@@ -13094,7 +13094,7 @@ const db = async (t, e, r, n) => {
|
|
|
13094
13094
|
await Qw(e, r, n, s, i, a);
|
|
13095
13095
|
return;
|
|
13096
13096
|
}
|
|
13097
|
-
const f =
|
|
13097
|
+
const f = to(t), d = Sw(e), h = r ? Td(r) : void 0, p = n ? Td(n) : void 0, w = s ? to(s) : void 0, g = i ? to(i) : void 0, b = a ? In(a) : void 0, E = c ? In(c) : void 0, x = Array.isArray(f) ? f : [f];
|
|
13098
13098
|
if (x.length === 0 || x.length === 1 && !x[0])
|
|
13099
13099
|
throw new Error("No valid email addresses provided");
|
|
13100
13100
|
const k = Be(), y = { to: f, message: { subject: d } };
|
|
@@ -13154,7 +13154,7 @@ export {
|
|
|
13154
13154
|
Kt as getConnectionStatus,
|
|
13155
13155
|
Lt as getCurrentUser,
|
|
13156
13156
|
qe as getCurrentUserPermissions,
|
|
13157
|
-
|
|
13157
|
+
tn as getCurrentUserRoleGroups,
|
|
13158
13158
|
Sm as getDocumentRefs,
|
|
13159
13159
|
Ze as getEnv,
|
|
13160
13160
|
Eb as getFiles,
|