@hostlink/light 2.3.3 → 2.3.6

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/light.js CHANGED
@@ -1,15 +1,15 @@
1
- var Yt = Object.defineProperty;
2
- var Zt = (e, t, r) => t in e ? Yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var w = (e, t, r) => Zt(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsonToGraphQLQuery as Dt, VariableType as W } from "json-to-graphql-query";
5
- import kt from "axios";
6
- function Nt(e) {
1
+ var Xt = Object.defineProperty;
2
+ var Yt = (e, t, r) => t in e ? Xt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var w = (e, t, r) => Yt(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { jsonToGraphQLQuery as Ft, VariableType as W } from "json-to-graphql-query";
5
+ import Zt from "axios";
6
+ function Dt(e) {
7
7
  const t = "==".slice(0, (4 - e.length % 4) % 4), r = e.replace(/-/g, "+").replace(/_/g, "/") + t, n = atob(r), i = new ArrayBuffer(n.length), s = new Uint8Array(i);
8
8
  for (let o = 0; o < n.length; o++)
9
9
  s[o] = n.charCodeAt(o);
10
10
  return i;
11
11
  }
12
- function Bt(e) {
12
+ function Nt(e) {
13
13
  const t = new Uint8Array(e);
14
14
  let r = "";
15
15
  for (const s of t)
@@ -59,7 +59,7 @@ function H(e, t) {
59
59
  derive: t
60
60
  };
61
61
  }
62
- function h(e) {
62
+ function p(e) {
63
63
  return {
64
64
  required: !0,
65
65
  schema: e
@@ -71,43 +71,43 @@ function b(e) {
71
71
  schema: e
72
72
  };
73
73
  }
74
- var qt = {
75
- type: h(l),
76
- id: h(A),
74
+ var Bt = {
75
+ type: p(l),
76
+ id: p(A),
77
77
  transports: b(l)
78
- }, xt = {
78
+ }, qt = {
79
79
  appid: b(l),
80
80
  appidExclude: b(l),
81
81
  credProps: b(l)
82
- }, Kt = {
82
+ }, xt = {
83
83
  appid: b(l),
84
84
  appidExclude: b(l),
85
85
  credProps: b(l)
86
- }, tr = {
87
- publicKey: h({
88
- rp: h(l),
89
- user: h({
90
- id: h(A),
91
- name: h(l),
92
- displayName: h(l)
86
+ }, kt = {
87
+ publicKey: p({
88
+ rp: p(l),
89
+ user: p({
90
+ id: p(A),
91
+ name: p(l),
92
+ displayName: p(l)
93
93
  }),
94
- challenge: h(A),
95
- pubKeyCredParams: h(l),
94
+ challenge: p(A),
95
+ pubKeyCredParams: p(l),
96
96
  timeout: b(l),
97
- excludeCredentials: b([qt]),
97
+ excludeCredentials: b([Bt]),
98
98
  authenticatorSelection: b(l),
99
99
  attestation: b(l),
100
- extensions: b(xt)
100
+ extensions: b(qt)
101
101
  }),
102
102
  signal: b(l)
103
- }, rr = {
104
- type: h(l),
105
- id: h(l),
106
- rawId: h(A),
103
+ }, tr = {
104
+ type: p(l),
105
+ id: p(l),
106
+ rawId: p(A),
107
107
  authenticatorAttachment: b(l),
108
- response: h({
109
- clientDataJSON: h(A),
110
- attestationObject: h(A),
108
+ response: p({
109
+ clientDataJSON: p(A),
110
+ attestationObject: p(A),
111
111
  transports: H(
112
112
  l,
113
113
  (e) => {
@@ -117,69 +117,69 @@ var qt = {
117
117
  )
118
118
  }),
119
119
  clientExtensionResults: H(
120
- Kt,
120
+ xt,
121
121
  (e) => e.getClientExtensionResults()
122
122
  )
123
- }, er = {
123
+ }, rr = {
124
124
  mediation: b(l),
125
- publicKey: h({
126
- challenge: h(A),
125
+ publicKey: p({
126
+ challenge: p(A),
127
127
  timeout: b(l),
128
128
  rpId: b(l),
129
- allowCredentials: b([qt]),
129
+ allowCredentials: b([Bt]),
130
130
  userVerification: b(l),
131
- extensions: b(xt)
131
+ extensions: b(qt)
132
132
  }),
133
133
  signal: b(l)
134
- }, nr = {
135
- type: h(l),
136
- id: h(l),
137
- rawId: h(A),
134
+ }, er = {
135
+ type: p(l),
136
+ id: p(l),
137
+ rawId: p(A),
138
138
  authenticatorAttachment: b(l),
139
- response: h({
140
- clientDataJSON: h(A),
141
- authenticatorData: h(A),
142
- signature: h(A),
143
- userHandle: h(A)
139
+ response: p({
140
+ clientDataJSON: p(A),
141
+ authenticatorData: p(A),
142
+ signature: p(A),
143
+ userHandle: p(A)
144
144
  }),
145
145
  clientExtensionResults: H(
146
- Kt,
146
+ xt,
147
147
  (e) => e.getClientExtensionResults()
148
148
  )
149
149
  };
150
- function ir(e) {
151
- return P(Nt, tr, e);
150
+ function nr(e) {
151
+ return P(Dt, kt, e);
152
152
  }
153
- function sr(e) {
153
+ function ir(e) {
154
154
  return P(
155
- Bt,
156
- rr,
155
+ Nt,
156
+ tr,
157
157
  e
158
158
  );
159
159
  }
160
- function or(e) {
161
- return P(Nt, er, e);
160
+ function sr(e) {
161
+ return P(Dt, rr, e);
162
162
  }
163
- function ar(e) {
163
+ function or(e) {
164
164
  return P(
165
- Bt,
166
- nr,
165
+ Nt,
166
+ er,
167
167
  e
168
168
  );
169
169
  }
170
- async function ur(e) {
170
+ async function ar(e) {
171
171
  const t = await navigator.credentials.create(
172
172
  e
173
173
  );
174
- return t.toJSON = () => sr(t), t;
174
+ return t.toJSON = () => ir(t), t;
175
175
  }
176
- async function cr(e) {
176
+ async function ur(e) {
177
177
  const t = await navigator.credentials.get(
178
178
  e
179
179
  );
180
- return t.toJSON = () => ar(t), t;
180
+ return t.toJSON = () => or(t), t;
181
181
  }
182
- const fr = (e) => ({
182
+ const cr = (e) => ({
183
183
  login: async (t) => {
184
184
  const n = (await O(e, {
185
185
  webAuthnRequestOptions: {
@@ -187,24 +187,24 @@ const fr = (e) => ({
187
187
  username: t
188
188
  }
189
189
  }
190
- })).webAuthnRequestOptions, i = or({
190
+ })).webAuthnRequestOptions, i = sr({
191
191
  publicKey: n
192
- }), s = await cr(i);
192
+ }), s = await ur(i);
193
193
  await y(e, "webAuthnAssertion", {
194
194
  username: t,
195
195
  assertion: s.toJSON()
196
196
  });
197
197
  },
198
198
  register: async () => {
199
- const t = await O(e, { webAuthnCreationOptions: !0 }), r = ir({
199
+ const t = await O(e, { webAuthnCreationOptions: !0 }), r = nr({
200
200
  publicKey: t.webAuthnCreationOptions
201
- }), n = await ur(r);
201
+ }), n = await ar(r);
202
202
  await y(e, "webAuthnRegister", {
203
203
  registration: n.toJSON()
204
204
  });
205
205
  }
206
- }), lr = (e) => ({
207
- WebAuthn: fr(e),
206
+ }), fr = (e) => ({
207
+ WebAuthn: cr(e),
208
208
  facebookLogin: (t) => y(e, "facebookLogin", {
209
209
  access_token: t
210
210
  }),
@@ -251,7 +251,7 @@ const fr = (e) => ({
251
251
  }
252
252
  }
253
253
  })).granted
254
- }), pt = (e, t, r) => {
254
+ }), lr = (e, t, r) => {
255
255
  const n = t, i = e, s = r;
256
256
  let o = "list" + t;
257
257
  const u = (a) => s[a] ? s[a]() : null;
@@ -266,11 +266,11 @@ const fr = (e) => ({
266
266
  },
267
267
  gqlFields(a) {
268
268
  const c = [];
269
- for (const p of a)
270
- if (typeof p == "string") {
271
- const v = u(p);
269
+ for (const h of a)
270
+ if (typeof h == "string") {
271
+ const v = u(h);
272
272
  v && c.push(v.getGQLField());
273
- } else typeof p == "object" && c.push(p);
273
+ } else typeof h == "object" && c.push(h);
274
274
  return c;
275
275
  },
276
276
  async update(a, c) {
@@ -284,8 +284,8 @@ const fr = (e) => ({
284
284
  },
285
285
  fields(a) {
286
286
  let c = [];
287
- for (let p of a) {
288
- const v = u(p);
287
+ for (let h of a) {
288
+ const v = u(h);
289
289
  v && c.push(v);
290
290
  }
291
291
  return c;
@@ -324,7 +324,7 @@ function hr(e) {
324
324
  var t, r, n, i, s, o = String, u = 255;
325
325
  for (e.slice(0, 2) === "<~" && e.slice(-2), e = e.slice(2, -2).replace(/\s/g, "").replace("z", "!!!!!"), t = "uuuuu".slice(e.length % 5 || 5), e += t, n = [], i = 0, s = e.length; s > i; i += 5) r = 52200625 * (e.charCodeAt(i) - 33) + 614125 * (e.charCodeAt(i + 1) - 33) + 7225 * (e.charCodeAt(i + 2) - 33) + 85 * (e.charCodeAt(i + 3) - 33) + (e.charCodeAt(i + 4) - 33), n.push(u & r >> 24, u & r >> 16, u & r >> 8, u & r);
326
326
  return function(a, c) {
327
- for (var p = c; p > 0; p--) a.pop();
327
+ for (var h = c; h > 0; h--) a.pop();
328
328
  }(n, t.length), o.fromCharCode.apply(o, n);
329
329
  }
330
330
  const R = (e = "") => {
@@ -346,7 +346,7 @@ const R = (e = "") => {
346
346
  window.open(r(n), "_blank");
347
347
  }
348
348
  };
349
- }, fo = {
349
+ }, lo = {
350
350
  fromBase85: (e) => R(hr(e)),
351
351
  fromBase64: (e) => R(atob(e)),
352
352
  fromString: (e) => R(e)
@@ -368,7 +368,7 @@ const R = (e = "") => {
368
368
  t[r] = G(n);
369
369
  }), t);
370
370
  }, N = (e) => G(e), O = async (e, t) => {
371
- let r = Dt(N(t));
371
+ let r = Ft(N(t));
372
372
  const n = await e.post("", {
373
373
  query: `{ ${r} }`
374
374
  });
@@ -395,25 +395,25 @@ const y = async (e, t, r = null, n = []) => {
395
395
  const s = new FormData();
396
396
  let o = !1;
397
397
  if (r) {
398
- const c = {}, p = {}, v = {};
398
+ const c = {}, h = {}, v = {};
399
399
  let f = 0;
400
400
  Object.entries(r).forEach(([m, g]) => {
401
401
  if (g instanceof Array && pr(g)) {
402
402
  o = !0;
403
403
  let E = 0;
404
404
  g.forEach((C) => {
405
- C instanceof File && (c[m] = new W(m), p[f] = ["variables." + m + "." + E], s.append(f.toString(), C), f++);
405
+ C instanceof File && (c[m] = new W(m), h[f] = ["variables." + m + "." + E], s.append(f.toString(), C), f++);
406
406
  }), v[m] = "[Upload!]!";
407
- } else g instanceof File ? (o = !0, c[m] = new W(m), p[f] = ["variables." + m], s.append(f.toString(), g), v[m] = "Upload!", f++) : g instanceof Object && yr(g) ? (o = !0, c[m] = {}, Object.entries(g).forEach(([E, C]) => {
408
- C instanceof File ? (c[m][E] = new W(E), p[f] = ["variables." + E], s.append(f.toString(), C), v[E] = "Upload!", f++) : c[m][E] = C;
407
+ } else g instanceof File ? (o = !0, c[m] = new W(m), h[f] = ["variables." + m], s.append(f.toString(), g), v[m] = "Upload!", f++) : g instanceof Object && yr(g) ? (o = !0, c[m] = {}, Object.entries(g).forEach(([E, C]) => {
408
+ C instanceof File ? (c[m][E] = new W(E), h[f] = ["variables." + E], s.append(f.toString(), C), v[E] = "Upload!", f++) : c[m][E] = C;
409
409
  })) : g !== void 0 && (c[m] = g);
410
- }), i[t].__args = c, i.__variables = v, o && s.append("map", JSON.stringify(p));
410
+ }), i[t].__args = c, i.__variables = v, o && s.append("map", JSON.stringify(h));
411
411
  }
412
- Object.entries(N(n)).forEach(([c, p]) => {
413
- i[t][c] = p;
412
+ Object.entries(N(n)).forEach(([c, h]) => {
413
+ i[t][c] = h;
414
414
  }), Object.entries(i[t]).length === 0 && (i[t] = !0);
415
415
  let u = null;
416
- const a = Dt({ mutation: i });
416
+ const a = Ft({ mutation: i });
417
417
  if (o ? (s.append("operations", JSON.stringify({
418
418
  query: a
419
419
  })), u = await e.post("", s)) : u = await e.post("", {
@@ -503,34 +503,35 @@ const y = async (e, t, r = null, n = []) => {
503
503
  }
504
504
  }
505
505
  })).listUser.data
506
- }), gr = () => {
507
- const e = {};
506
+ }), gr = (e) => {
507
+ const t = e, r = {};
508
508
  return {
509
- create(t, r) {
510
- e[t] = {};
511
- for (const n of Object.entries(r)) {
512
- const [i, s] = n;
513
- e[t][i] = () => ({
514
- name: s.name ? s.name : i,
515
- raw: s,
516
- getName: () => s.name ? s.name : i,
517
- getGQLField: () => s.gqlField !== void 0 ? s.gqlField : s.name || i,
509
+ create(n, i) {
510
+ r[n] = null;
511
+ let s = {};
512
+ for (const o of Object.entries(i)) {
513
+ const [u, a] = o;
514
+ s[u] = () => ({
515
+ name: a.name ? a.name : u,
516
+ raw: a,
517
+ getName: () => a.name ? a.name : u,
518
+ getGQLField: () => a.gqlField !== void 0 ? a.gqlField : a.name || u,
518
519
  getRaw() {
519
- return s;
520
+ return a;
520
521
  },
521
- getValue(o) {
522
- return s.field && typeof s.field == "function" ? s.field(o) : s.field && typeof s.field == "string" ? o[s.field] : o[this.getName()];
522
+ getValue(c) {
523
+ return a.field && typeof a.field == "function" ? a.field(c) : a.field && typeof a.field == "string" ? c[a.field] : c[this.getName()];
523
524
  },
524
- getFormattedValue(o) {
525
- const u = this.getValue(o);
526
- return s.format ? s.format(u) : u;
525
+ getFormattedValue(c) {
526
+ const h = this.getValue(c);
527
+ return a.format ? a.format(h) : h;
527
528
  }
528
529
  });
529
530
  }
530
- return e[t];
531
+ r[n] = lr(t, n, s);
531
532
  },
532
- get(t) {
533
- return e[t];
533
+ get(n) {
534
+ return r[n] || this.create(n, {}), r[n];
534
535
  }
535
536
  };
536
537
  }, wr = (e) => ({
@@ -543,7 +544,7 @@ const y = async (e, t, r = null, n = []) => {
543
544
  function Ar(e) {
544
545
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
545
546
  }
546
- var Ut = { exports: {} }, _r = function() {
547
+ var Kt = { exports: {} }, _r = function() {
547
548
  var t = this, r = -1;
548
549
  return {
549
550
  next: function() {
@@ -583,9 +584,9 @@ var d = {
583
584
  isFunction: function(t) {
584
585
  return typeof t == "function";
585
586
  }
586
- }, Sr = d, $r = Sr.isFunction, Wt = function(t) {
587
+ }, Sr = d, $r = Sr.isFunction, Ut = function(t) {
587
588
  return t === void 0 ? this.sum() / this.items.length : $r(t) ? new this.constructor(this.items).sum(t) / this.items.length : new this.constructor(this.items).pluck(t).sum() / this.items.length;
588
- }, jr = Wt, Er = jr;
589
+ }, jr = Ut, Er = jr;
589
590
  function z(e) {
590
591
  "@babel/helpers - typeof";
591
592
  return z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -603,8 +604,8 @@ var Ir = function(t) {
603
604
  } while (i < this.items.length);
604
605
  else if (z(this.items) === "object") {
605
606
  var u = Object.keys(this.items), a = function() {
606
- var p = u.slice(i, i + t), v = new r.constructor({});
607
- p.forEach(function(f) {
607
+ var h = u.slice(i, i + t), v = new r.constructor({});
608
+ h.forEach(function(f) {
608
609
  return v.put(f, r.items[f]);
609
610
  }), n.push(v), i += t;
610
611
  };
@@ -655,13 +656,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
655
656
  }
656
657
  function xr(e, t) {
657
658
  if (e) {
658
- if (typeof e == "string") return yt(e, t);
659
+ if (typeof e == "string") return pt(e, t);
659
660
  var r = Object.prototype.toString.call(e).slice(8, -1);
660
661
  if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
661
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return yt(e, t);
662
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return pt(e, t);
662
663
  }
663
664
  }
664
- function yt(e, t) {
665
+ function pt(e, t) {
665
666
  (t == null || t > e.length) && (t = e.length);
666
667
  for (var r = 0, n = new Array(t); r < t; r++)
667
668
  n[r] = e[r];
@@ -744,7 +745,7 @@ function Y(e, t) {
744
745
  n[r] = e[r];
745
746
  return n;
746
747
  }
747
- var Rt = function(t) {
748
+ var Wt = function(t) {
748
749
  var r;
749
750
  if (Array.isArray(t)) {
750
751
  var n;
@@ -763,7 +764,7 @@ function q(e) {
763
764
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
764
765
  }, q(e);
765
766
  }
766
- var Hr = Rt, Gr = function(t) {
767
+ var Hr = Wt, Gr = function(t) {
767
768
  var r = t;
768
769
  t instanceof this.constructor ? r = t.all() : q(t) === "object" && (r = [], Object.keys(t).forEach(function(i) {
769
770
  r.push(t[i]);
@@ -775,7 +776,7 @@ var Hr = Rt, Gr = function(t) {
775
776
  }) : n.push(i);
776
777
  }), new this.constructor(n);
777
778
  };
778
- function mt(e) {
779
+ function yt(e) {
779
780
  return Yr(e) || Xr(e) || zr(e) || Qr();
780
781
  }
781
782
  function Qr() {
@@ -804,7 +805,7 @@ function Z(e, t) {
804
805
  }
805
806
  var $ = function(t) {
806
807
  var r = [];
807
- return Array.isArray(t) ? r.push.apply(r, mt(t)) : t.constructor.name === "Collection" ? r.push.apply(r, mt(t.all())) : Object.keys(t).forEach(function(n) {
808
+ return Array.isArray(t) ? r.push.apply(r, yt(t)) : t.constructor.name === "Collection" ? r.push.apply(r, yt(t.all())) : Object.keys(t).forEach(function(n) {
808
809
  return r.push(t[n]);
809
810
  }), r;
810
811
  };
@@ -835,7 +836,7 @@ function k(e, t) {
835
836
  n[r] = e[r];
836
837
  return n;
837
838
  }
838
- var ne = $, ie = d, se = ie.isFunction, Jt = function(t, r) {
839
+ var ne = $, ie = d, se = ie.isFunction, Rt = function(t, r) {
839
840
  if (r !== void 0)
840
841
  return Array.isArray(this.items) ? this.items.filter(function(i) {
841
842
  return i[t] !== void 0 && i[t] === r;
@@ -864,9 +865,9 @@ var ne = $, ie = d, se = ie.isFunction, Jt = function(t, r) {
864
865
  function t(s, o, u) {
865
866
  var a = u[0];
866
867
  a instanceof o && (a = a.all());
867
- for (var c = u.slice(1), p = !c.length, v = [], f = 0; f < a.length; f += 1) {
868
+ for (var c = u.slice(1), h = !c.length, v = [], f = 0; f < a.length; f += 1) {
868
869
  var m = s.slice();
869
- m.push(a[f]), p ? v.push(m) : v = v.concat(t(m, o, c));
870
+ m.push(a[f]), h ? v.push(m) : v = v.concat(t(m, o, c));
870
871
  }
871
872
  return v;
872
873
  }
@@ -998,7 +999,7 @@ function rt(e) {
998
999
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
999
1000
  }, rt(e);
1000
1001
  }
1001
- function Mt(e) {
1002
+ function Jt(e) {
1002
1003
  if (Array.isArray(e)) {
1003
1004
  if (e.length)
1004
1005
  return !1;
@@ -1012,7 +1013,7 @@ function Mt(e) {
1012
1013
  function Ce(e, t) {
1013
1014
  var r = {};
1014
1015
  return Object.keys(t).forEach(function(n) {
1015
- e ? e(t[n], n) && (r[n] = t[n]) : Mt(t[n]) || (r[n] = t[n]);
1016
+ e ? e(t[n], n) && (r[n] = t[n]) : Jt(t[n]) || (r[n] = t[n]);
1016
1017
  }), r;
1017
1018
  }
1018
1019
  function Te(e, t) {
@@ -1020,7 +1021,7 @@ function Te(e, t) {
1020
1021
  return t.filter(e);
1021
1022
  for (var r = [], n = 0; n < t.length; n += 1) {
1022
1023
  var i = t[n];
1023
- Mt(i) || r.push(i);
1024
+ Jt(i) || r.push(i);
1024
1025
  }
1025
1026
  return r;
1026
1027
  }
@@ -1056,7 +1057,7 @@ var Pe = function(t) {
1056
1057
  return this.where(t, r, n).first() || null;
1057
1058
  }, Ke = function(t) {
1058
1059
  return this.map(t).collapse();
1059
- }, Vt = d, M = Vt.isArray, V = Vt.isObject, Ue = function(t) {
1060
+ }, Mt = d, M = Mt.isArray, V = Mt.isObject, Ue = function(t) {
1060
1061
  var r = t || 1 / 0, n = !1, i = [], s = function(u) {
1061
1062
  i = [], M(u) ? u.forEach(function(a) {
1062
1063
  M(a) ? i = i.concat(a) : V(a) ? Object.keys(a).forEach(function(c) {
@@ -1153,10 +1154,10 @@ var Pe = function(t) {
1153
1154
  }, un = function() {
1154
1155
  var t = Object.keys(this.items);
1155
1156
  return Array.isArray(this.items) && (t = t.map(Number)), new this.constructor(t);
1156
- }, cn = d, dt = cn.isFunction, fn = function(t, r) {
1157
+ }, cn = d, mt = cn.isFunction, fn = function(t, r) {
1157
1158
  var n = this.items;
1158
- if (dt(t) && (n = this.filter(t).all()), Array.isArray(n) && !n.length || !Object.keys(n).length)
1159
- return dt(r) ? r() : r;
1159
+ if (mt(t) && (n = this.filter(t).all()), Array.isArray(n) && !n.length || !Object.keys(n).length)
1160
+ return mt(r) ? r() : r;
1160
1161
  if (Array.isArray(n))
1161
1162
  return n[n.length - 1];
1162
1163
  var i = Object.keys(n);
@@ -1216,13 +1217,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1216
1217
  }
1217
1218
  function _n(e, t) {
1218
1219
  if (e) {
1219
- if (typeof e == "string") return vt(e, t);
1220
+ if (typeof e == "string") return dt(e, t);
1220
1221
  var r = Object.prototype.toString.call(e).slice(8, -1);
1221
1222
  if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
1222
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return vt(e, t);
1223
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return dt(e, t);
1223
1224
  }
1224
1225
  }
1225
- function vt(e, t) {
1226
+ function dt(e, t) {
1226
1227
  (t == null || t > e.length) && (t = e.length);
1227
1228
  for (var r = 0, n = new Array(t); r < t; r++)
1228
1229
  n[r] = e[r];
@@ -1270,13 +1271,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1270
1271
  }
1271
1272
  function Cn(e, t) {
1272
1273
  if (e) {
1273
- if (typeof e == "string") return bt(e, t);
1274
+ if (typeof e == "string") return vt(e, t);
1274
1275
  var r = Object.prototype.toString.call(e).slice(8, -1);
1275
1276
  if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
1276
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return bt(e, t);
1277
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return vt(e, t);
1277
1278
  }
1278
1279
  }
1279
- function bt(e, t) {
1280
+ function vt(e, t) {
1280
1281
  (t == null || t > e.length) && (t = e.length);
1281
1282
  for (var r = 0, n = new Array(t); r < t; r++)
1282
1283
  n[r] = e[r];
@@ -1311,7 +1312,7 @@ var Fn = function(t) {
1311
1312
  r[u] === void 0 ? r[u] = [a] : r[u].push(a);
1312
1313
  }), new this.constructor(r);
1313
1314
  };
1314
- function gt(e, t) {
1315
+ function bt(e, t) {
1315
1316
  return qn(e) || Bn(e, t) || Nn(e, t) || Dn();
1316
1317
  }
1317
1318
  function Dn() {
@@ -1320,13 +1321,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1320
1321
  }
1321
1322
  function Nn(e, t) {
1322
1323
  if (e) {
1323
- if (typeof e == "string") return wt(e, t);
1324
+ if (typeof e == "string") return gt(e, t);
1324
1325
  var r = Object.prototype.toString.call(e).slice(8, -1);
1325
1326
  if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
1326
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return wt(e, t);
1327
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return gt(e, t);
1327
1328
  }
1328
1329
  }
1329
- function wt(e, t) {
1330
+ function gt(e, t) {
1330
1331
  (t == null || t > e.length) && (t = e.length);
1331
1332
  for (var r = 0, n = new Array(t); r < t; r++)
1332
1333
  n[r] = e[r];
@@ -1357,14 +1358,14 @@ function qn(e) {
1357
1358
  var xn = function(t) {
1358
1359
  var r = this, n = {};
1359
1360
  return Array.isArray(this.items) ? this.items.forEach(function(i, s) {
1360
- var o = t(i, s), u = gt(o, 2), a = u[0], c = u[1];
1361
+ var o = t(i, s), u = bt(o, 2), a = u[0], c = u[1];
1361
1362
  n[a] = c;
1362
1363
  }) : Object.keys(this.items).forEach(function(i) {
1363
- var s = t(r.items[i], i), o = gt(s, 2), u = o[0], a = o[1];
1364
+ var s = t(r.items[i], i), o = bt(s, 2), u = o[0], a = o[1];
1364
1365
  n[u] = a;
1365
1366
  }), new this.constructor(n);
1366
1367
  };
1367
- function At(e) {
1368
+ function wt(e) {
1368
1369
  return Rn(e) || Wn(e) || Un(e) || Kn();
1369
1370
  }
1370
1371
  function Kn() {
@@ -1396,11 +1397,11 @@ var Jn = function(t) {
1396
1397
  var r = this.items.filter(function(n) {
1397
1398
  return n[t] !== void 0;
1398
1399
  });
1399
- return Math.max.apply(Math, At(r.map(function(n) {
1400
+ return Math.max.apply(Math, wt(r.map(function(n) {
1400
1401
  return n[t];
1401
1402
  })));
1402
1403
  }
1403
- return Math.max.apply(Math, At(this.items));
1404
+ return Math.max.apply(Math, wt(this.items));
1404
1405
  }, Mn = function(t) {
1405
1406
  var r = this.items.length;
1406
1407
  return t === void 0 ? r % 2 === 0 ? (this.items[r / 2 - 1] + this.items[r / 2]) / 2 : this.items[Math.floor(r / 2)] : r % 2 === 0 ? (this.items[r / 2 - 1][t] + this.items[r / 2][t]) / 2 : this.items[Math.floor(r / 2)][t];
@@ -1421,7 +1422,7 @@ function K(e) {
1421
1422
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1422
1423
  }, K(e);
1423
1424
  }
1424
- function _t(e, t) {
1425
+ function At(e, t) {
1425
1426
  var r = Object.keys(e);
1426
1427
  if (Object.getOwnPropertySymbols) {
1427
1428
  var n = Object.getOwnPropertySymbols(e);
@@ -1431,12 +1432,12 @@ function _t(e, t) {
1431
1432
  }
1432
1433
  return r;
1433
1434
  }
1434
- function Ot(e) {
1435
+ function _t(e) {
1435
1436
  for (var t = 1; t < arguments.length; t++) {
1436
1437
  var r = arguments[t] != null ? arguments[t] : {};
1437
- t % 2 ? _t(Object(r), !0).forEach(function(n) {
1438
+ t % 2 ? At(Object(r), !0).forEach(function(n) {
1438
1439
  Ln(e, n, r[n]);
1439
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : _t(Object(r)).forEach(function(n) {
1440
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : At(Object(r)).forEach(function(n) {
1440
1441
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1441
1442
  });
1442
1443
  }
@@ -1447,14 +1448,14 @@ function Ln(e, t, r) {
1447
1448
  }
1448
1449
  var Hn = function(t) {
1449
1450
  var r = function n(i, s) {
1450
- var o = {}, u = Object.keys(Ot(Ot({}, i), s));
1451
+ var o = {}, u = Object.keys(_t(_t({}, i), s));
1451
1452
  return u.forEach(function(a) {
1452
1453
  i[a] === void 0 && s[a] !== void 0 ? o[a] = s[a] : i[a] !== void 0 && s[a] === void 0 ? o[a] = i[a] : i[a] !== void 0 && s[a] !== void 0 && (i[a] === s[a] ? o[a] = i[a] : !Array.isArray(i[a]) && K(i[a]) === "object" && !Array.isArray(s[a]) && K(s[a]) === "object" ? o[a] = n(i[a], s[a]) : o[a] = [].concat(i[a], s[a]));
1453
1454
  }), o;
1454
1455
  };
1455
1456
  return t ? t.constructor.name === "Collection" ? new this.constructor(r(this.items, t.all())) : new this.constructor(r(this.items, t)) : this;
1456
1457
  };
1457
- function St(e) {
1458
+ function Ot(e) {
1458
1459
  return Xn(e) || zn(e) || Qn(e) || Gn();
1459
1460
  }
1460
1461
  function Gn() {
@@ -1486,11 +1487,11 @@ var Yn = function(t) {
1486
1487
  var r = this.items.filter(function(n) {
1487
1488
  return n[t] !== void 0;
1488
1489
  });
1489
- return Math.min.apply(Math, St(r.map(function(n) {
1490
+ return Math.min.apply(Math, Ot(r.map(function(n) {
1490
1491
  return n[t];
1491
1492
  })));
1492
1493
  }
1493
- return Math.min.apply(Math, St(this.items));
1494
+ return Math.min.apply(Math, Ot(this.items));
1494
1495
  }, Zn = function(t) {
1495
1496
  var r = [], n = 1;
1496
1497
  return this.items.length ? (this.items.forEach(function(i) {
@@ -1534,7 +1535,7 @@ var Yn = function(t) {
1534
1535
  return Object.keys(this.items).forEach(function(a) {
1535
1536
  s.indexOf(a) !== -1 && (u[a] = t.items[a]);
1536
1537
  }), new this.constructor(u);
1537
- }, ni = Rt, ii = function(t, r) {
1538
+ }, ni = Wt, ii = function(t, r) {
1538
1539
  var n = Math.abs(t), i = this.count();
1539
1540
  if (n <= i)
1540
1541
  return this;
@@ -1551,7 +1552,7 @@ var Yn = function(t) {
1551
1552
  })), new this.constructor(n);
1552
1553
  }, oi = function(t) {
1553
1554
  return t(this);
1554
- }, Lt = d, ai = Lt.isArray, ui = Lt.isObject, F = j, ci = function(t) {
1555
+ }, Vt = d, ai = Vt.isArray, ui = Vt.isObject, F = j, ci = function(t) {
1555
1556
  var r = {};
1556
1557
  return t.forEach(function(n, i) {
1557
1558
  function s(o, u) {
@@ -1584,10 +1585,10 @@ var Yn = function(t) {
1584
1585
  g.split(".").length === c && u.push(n[g]);
1585
1586
  }
1586
1587
  }), r !== void 0) {
1587
- var p = {};
1588
+ var h = {};
1588
1589
  return this.items.forEach(function(f, m) {
1589
- p[i[m] || ""] = u;
1590
- }), new this.constructor(p);
1590
+ h[i[m] || ""] = u;
1591
+ }), new this.constructor(h);
1591
1592
  }
1592
1593
  return new this.constructor([u]);
1593
1594
  }
@@ -1600,13 +1601,13 @@ var Yn = function(t) {
1600
1601
  return this.map(function(f) {
1601
1602
  return F(f, t) !== void 0 ? F(f, t) : null;
1602
1603
  });
1603
- }, li = U, Ht = function(t) {
1604
+ }, li = U, Lt = function(t) {
1604
1605
  for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
1605
1606
  n[i - 1] = arguments[i];
1606
1607
  li(n).forEach(function(s) {
1607
1608
  delete t[s];
1608
1609
  });
1609
- }, Gt = d, hi = Gt.isArray, pi = Gt.isObject, $t = Ht, yi = function() {
1610
+ }, Ht = d, hi = Ht.isArray, pi = Ht.isObject, St = Lt, yi = function() {
1610
1611
  var t = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
1611
1612
  if (this.isEmpty())
1612
1613
  return null;
@@ -1616,12 +1617,12 @@ var Yn = function(t) {
1616
1617
  var n = Object.keys(this.items);
1617
1618
  if (r === 1) {
1618
1619
  var i = n[n.length - 1], s = this.items[i];
1619
- return $t(this.items, i), s;
1620
+ return St(this.items, i), s;
1620
1621
  }
1621
1622
  var o = n.slice(-r), u = o.reduce(function(a, c) {
1622
1623
  return a[c] = t.items[c], a;
1623
1624
  }, {});
1624
- return $t(this.items, o), new this.constructor(u);
1625
+ return St(this.items, o), new this.constructor(u);
1625
1626
  }
1626
1627
  return null;
1627
1628
  }, mi = function(t, r) {
@@ -1649,7 +1650,7 @@ var Yn = function(t) {
1649
1650
  return !t(r);
1650
1651
  });
1651
1652
  };
1652
- function jt(e, t) {
1653
+ function $t(e, t) {
1653
1654
  var r = Object.keys(e);
1654
1655
  if (Object.getOwnPropertySymbols) {
1655
1656
  var n = Object.getOwnPropertySymbols(e);
@@ -1662,9 +1663,9 @@ function jt(e, t) {
1662
1663
  function D(e) {
1663
1664
  for (var t = 1; t < arguments.length; t++) {
1664
1665
  var r = arguments[t] != null ? arguments[t] : {};
1665
- t % 2 ? jt(Object(r), !0).forEach(function(n) {
1666
+ t % 2 ? $t(Object(r), !0).forEach(function(n) {
1666
1667
  $i(e, n, r[n]);
1667
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : jt(Object(r)).forEach(function(n) {
1668
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : $t(Object(r)).forEach(function(n) {
1668
1669
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1669
1670
  });
1670
1671
  }
@@ -1697,7 +1698,7 @@ function I(e) {
1697
1698
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1698
1699
  }, I(e);
1699
1700
  }
1700
- function Et(e, t) {
1701
+ function jt(e, t) {
1701
1702
  var r = Object.keys(e);
1702
1703
  if (Object.getOwnPropertySymbols) {
1703
1704
  var n = Object.getOwnPropertySymbols(e);
@@ -1710,9 +1711,9 @@ function Et(e, t) {
1710
1711
  function T(e) {
1711
1712
  for (var t = 1; t < arguments.length; t++) {
1712
1713
  var r = arguments[t] != null ? arguments[t] : {};
1713
- t % 2 ? Et(Object(r), !0).forEach(function(n) {
1714
+ t % 2 ? jt(Object(r), !0).forEach(function(n) {
1714
1715
  Ei(e, n, r[n]);
1715
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Et(Object(r)).forEach(function(n) {
1716
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : jt(Object(r)).forEach(function(n) {
1716
1717
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1717
1718
  });
1718
1719
  }
@@ -1739,7 +1740,7 @@ var Ii = function(t) {
1739
1740
  return Ti(this.items) ? i = this.items.findIndex(s) : Pi(this.items) && (i = Object.keys(this.items).find(function(o) {
1740
1741
  return s(n.items[o], o);
1741
1742
  })), i === void 0 || i < 0 ? !1 : i;
1742
- }, Qt = d, Ni = Qt.isArray, Bi = Qt.isObject, qi = Ht, xi = function() {
1743
+ }, Gt = d, Ni = Gt.isArray, Bi = Gt.isObject, qi = Lt, xi = function() {
1743
1744
  var t = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
1744
1745
  if (this.isEmpty())
1745
1746
  return null;
@@ -1794,7 +1795,7 @@ var Ii = function(t) {
1794
1795
  if (i.count() > 1)
1795
1796
  throw new Error("Multiple items found.");
1796
1797
  return i.first();
1797
- }, rs = Jt, es = rs, ns = function(t) {
1798
+ }, rs = Rt, es = rs, ns = function(t) {
1798
1799
  var r = [].concat(this.items);
1799
1800
  return t === void 0 ? this.every(function(n) {
1800
1801
  return typeof n == "number";
@@ -1929,7 +1930,7 @@ var Ts = function() {
1929
1930
  }
1930
1931
  return this;
1931
1932
  };
1932
- function It(e, t) {
1933
+ function Et(e, t) {
1933
1934
  var r = Object.keys(e);
1934
1935
  if (Object.getOwnPropertySymbols) {
1935
1936
  var n = Object.getOwnPropertySymbols(e);
@@ -1939,12 +1940,12 @@ function It(e, t) {
1939
1940
  }
1940
1941
  return r;
1941
1942
  }
1942
- function Ct(e) {
1943
+ function It(e) {
1943
1944
  for (var t = 1; t < arguments.length; t++) {
1944
1945
  var r = arguments[t] != null ? arguments[t] : {};
1945
- t % 2 ? It(Object(r), !0).forEach(function(n) {
1946
+ t % 2 ? Et(Object(r), !0).forEach(function(n) {
1946
1947
  Fs(e, n, r[n]);
1947
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : It(Object(r)).forEach(function(n) {
1948
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Et(Object(r)).forEach(function(n) {
1948
1949
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1949
1950
  });
1950
1951
  }
@@ -1963,13 +1964,13 @@ var Ds = function() {
1963
1964
  var i = r;
1964
1965
  n.split(".").reduce(function(s, o, u, a) {
1965
1966
  return s[o] || (s[o] = {}), u === a.length - 1 && (s[o] = t.items[n]), s[o];
1966
- }, i), r = Ct(Ct({}, r), i);
1967
+ }, i), r = It(It({}, r), i);
1967
1968
  } else
1968
1969
  r[n] = t.items[n];
1969
1970
  }), new this.constructor(r);
1970
1971
  }, Ns = function(t, r, n) {
1971
1972
  t ? n(this) : r(this);
1972
- }, Tt = function(t, r) {
1973
+ }, Ct = function(t, r) {
1973
1974
  if (Array.isArray(this.items) && this.items.length)
1974
1975
  return t(this);
1975
1976
  if (Object.keys(this.items).length)
@@ -1981,7 +1982,7 @@ var Ds = function() {
1981
1982
  return r(this);
1982
1983
  }
1983
1984
  return this;
1984
- }, Pt = function(t, r) {
1985
+ }, Tt = function(t, r) {
1985
1986
  if (Array.isArray(this.items) && !this.items.length)
1986
1987
  return t(this);
1987
1988
  if (!Object.keys(this.items).length)
@@ -2063,9 +2064,9 @@ var Ds = function() {
2063
2064
  return this.filter(function(r) {
2064
2065
  return r instanceof t;
2065
2066
  });
2066
- }, Ft = j, Xs = function(t, r) {
2067
+ }, Pt = j, Xs = function(t, r) {
2067
2068
  return this.filter(function(n) {
2068
- return Ft(n, t) < r[0] || Ft(n, t) > r[r.length - 1];
2069
+ return Pt(n, t) < r[0] || Pt(n, t) > r[r.length - 1];
2069
2070
  });
2070
2071
  }, Ys = $, Zs = j, ks = function(t, r) {
2071
2072
  var n = Ys(r), i = this.items.filter(function(s) {
@@ -2112,14 +2113,14 @@ var eo = function(t) {
2112
2113
  var n = _r;
2113
2114
  typeof Symbol < "u" && (r.prototype[Symbol.iterator] = n), r.prototype.toJSON = function() {
2114
2115
  return this.items;
2115
- }, r.prototype.all = Or, r.prototype.average = Wt, r.prototype.avg = Er, r.prototype.chunk = Ir, r.prototype.collapse = Nr, r.prototype.combine = Wr, r.prototype.concat = Gr, r.prototype.contains = Jt, r.prototype.containsOneItem = oe, r.prototype.count = ae, r.prototype.countBy = ue, r.prototype.crossJoin = ce, r.prototype.dd = fe, r.prototype.diff = le, r.prototype.diffAssoc = he, r.prototype.diffKeys = pe, r.prototype.diffUsing = ye, r.prototype.doesntContain = me, r.prototype.dump = de, r.prototype.duplicates = ve, r.prototype.each = be, r.prototype.eachSpread = Se, r.prototype.every = je, r.prototype.except = Ie, r.prototype.filter = Pe, r.prototype.first = De, r.prototype.firstOrFail = qe, r.prototype.firstWhere = xe, r.prototype.flatMap = Ke, r.prototype.flatten = Ue, r.prototype.flip = We, r.prototype.forPage = Re, r.prototype.forget = Je, r.prototype.get = Le, r.prototype.groupBy = Qe, r.prototype.has = Xe, r.prototype.implode = Ye, r.prototype.intersect = Ze, r.prototype.intersectByKeys = ke, r.prototype.isEmpty = tn, r.prototype.isNotEmpty = rn, r.prototype.join = en, r.prototype.keyBy = an, r.prototype.keys = un, r.prototype.last = fn, r.prototype.macro = ln, r.prototype.make = hn, r.prototype.map = pn, r.prototype.mapSpread = gn, r.prototype.mapToDictionary = $n, r.prototype.mapInto = jn, r.prototype.mapToGroups = Fn, r.prototype.mapWithKeys = xn, r.prototype.max = Jn, r.prototype.median = Mn, r.prototype.merge = Vn, r.prototype.mergeRecursive = Hn, r.prototype.min = Yn, r.prototype.mode = Zn, r.prototype.nth = ti, r.prototype.only = ei, r.prototype.pad = ii, r.prototype.partition = si, r.prototype.pipe = oi, r.prototype.pluck = fi, r.prototype.pop = yi, r.prototype.prepend = mi, r.prototype.pull = bi, r.prototype.push = gi, r.prototype.put = wi, r.prototype.random = _i, r.prototype.reduce = Oi, r.prototype.reject = Si, r.prototype.replace = ji, r.prototype.replaceRecursive = Ii, r.prototype.reverse = Ci, r.prototype.search = Di, r.prototype.shift = xi, r.prototype.shuffle = Ui, r.prototype.skip = Ji, r.prototype.skipUntil = Hi, r.prototype.skipWhile = Xi, r.prototype.slice = Yi, r.prototype.sole = ts, r.prototype.some = es, r.prototype.sort = ns, r.prototype.sortDesc = is, r.prototype.sortBy = us, r.prototype.sortByDesc = cs, r.prototype.sortKeys = fs, r.prototype.sortKeysDesc = ls, r.prototype.splice = hs, r.prototype.split = ps, r.prototype.sum = vs, r.prototype.take = bs, r.prototype.takeUntil = _s, r.prototype.takeWhile = js, r.prototype.tap = Es, r.prototype.times = Is, r.prototype.toArray = Cs, r.prototype.toJson = Ts, r.prototype.transform = Ps, r.prototype.undot = Ds, r.prototype.unless = Ns, r.prototype.unlessEmpty = Tt, r.prototype.unlessNotEmpty = Pt, r.prototype.union = Bs, r.prototype.unique = Ks, r.prototype.unwrap = Us, r.prototype.values = Rs, r.prototype.when = Js, r.prototype.whenEmpty = Pt, r.prototype.whenNotEmpty = Tt, r.prototype.where = Vs, r.prototype.whereBetween = Ls, r.prototype.whereIn = Qs, r.prototype.whereInstanceOf = zs, r.prototype.whereNotBetween = Xs, r.prototype.whereNotIn = ks, r.prototype.whereNull = to, r.prototype.whereNotNull = ro, r.prototype.wrap = eo, r.prototype.zip = no;
2116
+ }, r.prototype.all = Or, r.prototype.average = Ut, r.prototype.avg = Er, r.prototype.chunk = Ir, r.prototype.collapse = Nr, r.prototype.combine = Wr, r.prototype.concat = Gr, r.prototype.contains = Rt, r.prototype.containsOneItem = oe, r.prototype.count = ae, r.prototype.countBy = ue, r.prototype.crossJoin = ce, r.prototype.dd = fe, r.prototype.diff = le, r.prototype.diffAssoc = he, r.prototype.diffKeys = pe, r.prototype.diffUsing = ye, r.prototype.doesntContain = me, r.prototype.dump = de, r.prototype.duplicates = ve, r.prototype.each = be, r.prototype.eachSpread = Se, r.prototype.every = je, r.prototype.except = Ie, r.prototype.filter = Pe, r.prototype.first = De, r.prototype.firstOrFail = qe, r.prototype.firstWhere = xe, r.prototype.flatMap = Ke, r.prototype.flatten = Ue, r.prototype.flip = We, r.prototype.forPage = Re, r.prototype.forget = Je, r.prototype.get = Le, r.prototype.groupBy = Qe, r.prototype.has = Xe, r.prototype.implode = Ye, r.prototype.intersect = Ze, r.prototype.intersectByKeys = ke, r.prototype.isEmpty = tn, r.prototype.isNotEmpty = rn, r.prototype.join = en, r.prototype.keyBy = an, r.prototype.keys = un, r.prototype.last = fn, r.prototype.macro = ln, r.prototype.make = hn, r.prototype.map = pn, r.prototype.mapSpread = gn, r.prototype.mapToDictionary = $n, r.prototype.mapInto = jn, r.prototype.mapToGroups = Fn, r.prototype.mapWithKeys = xn, r.prototype.max = Jn, r.prototype.median = Mn, r.prototype.merge = Vn, r.prototype.mergeRecursive = Hn, r.prototype.min = Yn, r.prototype.mode = Zn, r.prototype.nth = ti, r.prototype.only = ei, r.prototype.pad = ii, r.prototype.partition = si, r.prototype.pipe = oi, r.prototype.pluck = fi, r.prototype.pop = yi, r.prototype.prepend = mi, r.prototype.pull = bi, r.prototype.push = gi, r.prototype.put = wi, r.prototype.random = _i, r.prototype.reduce = Oi, r.prototype.reject = Si, r.prototype.replace = ji, r.prototype.replaceRecursive = Ii, r.prototype.reverse = Ci, r.prototype.search = Di, r.prototype.shift = xi, r.prototype.shuffle = Ui, r.prototype.skip = Ji, r.prototype.skipUntil = Hi, r.prototype.skipWhile = Xi, r.prototype.slice = Yi, r.prototype.sole = ts, r.prototype.some = es, r.prototype.sort = ns, r.prototype.sortDesc = is, r.prototype.sortBy = us, r.prototype.sortByDesc = cs, r.prototype.sortKeys = fs, r.prototype.sortKeysDesc = ls, r.prototype.splice = hs, r.prototype.split = ps, r.prototype.sum = vs, r.prototype.take = bs, r.prototype.takeUntil = _s, r.prototype.takeWhile = js, r.prototype.tap = Es, r.prototype.times = Is, r.prototype.toArray = Cs, r.prototype.toJson = Ts, r.prototype.transform = Ps, r.prototype.undot = Ds, r.prototype.unless = Ns, r.prototype.unlessEmpty = Ct, r.prototype.unlessNotEmpty = Tt, r.prototype.union = Bs, r.prototype.unique = Ks, r.prototype.unwrap = Us, r.prototype.values = Rs, r.prototype.when = Js, r.prototype.whenEmpty = Tt, r.prototype.whenNotEmpty = Ct, r.prototype.where = Vs, r.prototype.whereBetween = Ls, r.prototype.whereIn = Qs, r.prototype.whereInstanceOf = zs, r.prototype.whereNotBetween = Xs, r.prototype.whereNotIn = ks, r.prototype.whereNull = to, r.prototype.whereNotNull = ro, r.prototype.wrap = eo, r.prototype.zip = no;
2116
2117
  var i = function(o) {
2117
2118
  return new r(o);
2118
2119
  };
2119
2120
  e.exports = i, e.exports.collect = i, e.exports.default = i, e.exports.Collection = r;
2120
- })(Ut);
2121
- var io = Ut.exports;
2122
- const zt = /* @__PURE__ */ Ar(io), Xt = [
2121
+ })(Kt);
2122
+ var io = Kt.exports;
2123
+ const Qt = /* @__PURE__ */ Ar(io), zt = [
2123
2124
  "chunk",
2124
2125
  "shuffle",
2125
2126
  "splice",
@@ -2163,8 +2164,8 @@ const zt = /* @__PURE__ */ Ar(io), Xt = [
2163
2164
  "toJson"
2164
2165
  ];
2165
2166
  class S {
2166
- constructor(t, r, n) {
2167
- w(this, "data_path");
2167
+ constructor(t, r) {
2168
+ w(this, "data_path", "");
2168
2169
  w(this, "axios");
2169
2170
  w(this, "filters");
2170
2171
  w(this, "steps");
@@ -2176,7 +2177,7 @@ class S {
2176
2177
  w(this, "_sort", null);
2177
2178
  w(this, "_sortDesc", !1);
2178
2179
  w(this, "meta", {});
2179
- this.data_path = t, this.axios = n, this.filters = {}, this.steps = [], this.fields = r;
2180
+ this.axios = r, this.filters = {}, this.steps = [], this.fields = t;
2180
2181
  }
2181
2182
  }
2182
2183
  S.prototype.dataPath = function(e) {
@@ -2191,7 +2192,7 @@ S.prototype.clone = function() {
2191
2192
  const e = Object.create(this);
2192
2193
  return e.steps = [...this.steps], e;
2193
2194
  };
2194
- zt().macro("whereContains", function(e, t) {
2195
+ Qt().macro("whereContains", function(e, t) {
2195
2196
  return this.filter((r) => r[e].toLowerCase().includes(t.toLowerCase()));
2196
2197
  });
2197
2198
  S.prototype.fetchData = async function() {
@@ -2215,12 +2216,12 @@ S.prototype.fetchData = async function() {
2215
2216
  let o = await O(this.axios, r);
2216
2217
  for (const u of t)
2217
2218
  o = o[u];
2218
- return this.meta = o.meta, zt(o.data);
2219
+ return this.meta = o.meta, Qt(o.data);
2219
2220
  };
2220
2221
  S.prototype.processData = async function() {
2221
2222
  let e = null;
2222
2223
  for (const t of this.steps) {
2223
- if (Xt.includes(t.type)) {
2224
+ if (zt.includes(t.type)) {
2224
2225
  e || (e = await this.fetchData()), e = e[t.type](...t.args);
2225
2226
  continue;
2226
2227
  }
@@ -2239,7 +2240,7 @@ S.prototype.processData = async function() {
2239
2240
  S.prototype.all = async function() {
2240
2241
  return (await this.processData()).all();
2241
2242
  };
2242
- for (const e of [...Xt, ...so])
2243
+ for (const e of [...zt, ...so])
2243
2244
  S.prototype[e] = function(...t) {
2244
2245
  const r = this.clone();
2245
2246
  return r.steps.push({ type: e, args: t }), r;
@@ -2252,15 +2253,18 @@ S.prototype.average = S.prototype.avg;
2252
2253
  S.prototype.first = async function() {
2253
2254
  return this.take(1), (await this.processData()).first();
2254
2255
  };
2255
- const lo = (e) => {
2256
- const t = kt.create({
2256
+ const ao = (e, t, r) => {
2257
+ const n = new S(r, t);
2258
+ return n.data_path = "list" + e, n;
2259
+ }, ho = (e) => {
2260
+ const t = Zt.create({
2257
2261
  baseURL: e,
2258
2262
  withCredentials: !0
2259
- }), r = (s, o = null, u = []) => y(t, s, o, u), n = (s) => O(t, s), i = gr();
2263
+ }), r = (s, o = null, u = []) => y(t, s, o, u), n = (s) => O(t, s), i = gr(t);
2260
2264
  return {
2261
2265
  baseURL: e,
2262
2266
  axios: t,
2263
- auth: lr(t),
2267
+ auth: fr(t),
2264
2268
  mutation: r,
2265
2269
  query: n,
2266
2270
  config: dr(n),
@@ -2269,18 +2273,18 @@ const lo = (e) => {
2269
2273
  fs: mr(t),
2270
2274
  models: i,
2271
2275
  model(s) {
2272
- return pt(t, s, i.get(s));
2276
+ return i.get(s);
2273
2277
  },
2274
2278
  roles: wr(t),
2275
2279
  collect: (s, o) => {
2276
- const u = pt(t, s, i.get(s)).getDataPath();
2277
- return new S(u, o, t);
2280
+ const u = ao(s, t, o);
2281
+ return u.data_path = i.get(s).getDataPath(), u;
2278
2282
  }
2279
2283
  };
2280
2284
  };
2281
2285
  export {
2282
- fo as File,
2283
- lo as createClient,
2286
+ lo as File,
2287
+ ho as createClient,
2284
2288
  R as file,
2285
2289
  y as mutation,
2286
2290
  O as query,