yann-useorderfun 0.1.2 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,60 +1,60 @@
1
- /*! yann-useorderfun v0.1.2 by Yann */
2
- import { isRef as kt, ref as d, watch as te, readonly as w } from "vue";
3
- var ee = typeof global == "object" && global && global.Object === Object && global;
4
- const Et = ee;
5
- var re = typeof self == "object" && self && self.Object === Object && self, ne = Et || re || Function("return this")();
6
- const p = ne;
7
- var ae = p.Symbol;
8
- const m = ae;
9
- var Ct = Object.prototype, oe = Ct.hasOwnProperty, se = Ct.toString, E = m ? m.toStringTag : void 0;
10
- function ie(t) {
11
- var e = oe.call(t, E), r = t[E];
1
+ /*! yann-useorderfun v0.3.1 by Yann */
2
+ import { isRef as Ct, ref as j, watch as Ft, readonly as $ } from "vue";
3
+ var ae = typeof global == "object" && global && global.Object === Object && global;
4
+ const Mt = ae;
5
+ var oe = typeof self == "object" && self && self.Object === Object && self, se = Mt || oe || Function("return this")();
6
+ const w = se;
7
+ var ue = w.Symbol;
8
+ const I = ue;
9
+ var Dt = Object.prototype, ie = Dt.hasOwnProperty, ce = Dt.toString, B = I ? I.toStringTag : void 0;
10
+ function le(t) {
11
+ var e = ie.call(t, B), r = t[B];
12
12
  try {
13
- t[E] = void 0;
13
+ t[B] = void 0;
14
14
  var n = !0;
15
15
  } catch {
16
16
  }
17
- var s = se.call(t);
18
- return n && (e ? t[E] = r : delete t[E]), s;
17
+ var o = ce.call(t);
18
+ return n && (e ? t[B] = r : delete t[B]), o;
19
19
  }
20
- var ce = Object.prototype, ue = ce.toString;
21
- function fe(t) {
22
- return ue.call(t);
20
+ var fe = Object.prototype, pe = fe.toString;
21
+ function de(t) {
22
+ return pe.call(t);
23
23
  }
24
- var le = "[object Null]", pe = "[object Undefined]", st = m ? m.toStringTag : void 0;
25
- function M(t) {
26
- return t == null ? t === void 0 ? pe : le : st && st in Object(t) ? ie(t) : fe(t);
24
+ var ge = "[object Null]", he = "[object Undefined]", lt = I ? I.toStringTag : void 0;
25
+ function z(t) {
26
+ return t == null ? t === void 0 ? he : ge : lt && lt in Object(t) ? le(t) : de(t);
27
27
  }
28
- function D(t) {
28
+ function R(t) {
29
29
  return t != null && typeof t == "object";
30
30
  }
31
- var ge = Array.isArray;
32
- const O = ge;
33
- function U(t) {
31
+ var ve = Array.isArray;
32
+ const M = ve;
33
+ function K(t) {
34
34
  var e = typeof t;
35
35
  return t != null && (e == "object" || e == "function");
36
36
  }
37
- var he = "[object AsyncFunction]", be = "[object Function]", de = "[object GeneratorFunction]", ye = "[object Proxy]";
38
- function It(t) {
39
- if (!U(t))
37
+ var be = "[object AsyncFunction]", ye = "[object Function]", je = "[object GeneratorFunction]", _e = "[object Proxy]";
38
+ function Ut(t) {
39
+ if (!K(t))
40
40
  return !1;
41
- var e = M(t);
42
- return e == be || e == de || e == he || e == ye;
41
+ var e = z(t);
42
+ return e == ye || e == je || e == be || e == _e;
43
43
  }
44
- var ve = p["__core-js_shared__"];
45
- const R = ve;
46
- var it = function() {
47
- var t = /[^.]+$/.exec(R && R.keys && R.keys.IE_PROTO || "");
44
+ var $e = w["__core-js_shared__"];
45
+ const J = $e;
46
+ var ft = function() {
47
+ var t = /[^.]+$/.exec(J && J.keys && J.keys.IE_PROTO || "");
48
48
  return t ? "Symbol(src)_1." + t : "";
49
49
  }();
50
- function $e(t) {
51
- return !!it && it in t;
50
+ function Te(t) {
51
+ return !!ft && ft in t;
52
52
  }
53
- var _e = Function.prototype, Te = _e.toString;
54
- function _(t) {
53
+ var we = Function.prototype, me = we.toString;
54
+ function x(t) {
55
55
  if (t != null) {
56
56
  try {
57
- return Te.call(t);
57
+ return me.call(t);
58
58
  } catch {
59
59
  }
60
60
  try {
@@ -64,642 +64,819 @@ function _(t) {
64
64
  }
65
65
  return "";
66
66
  }
67
- var je = /[\\^$.*+?()[\]{}|]/g, we = /^\[object .+?Constructor\]$/, me = Function.prototype, Oe = Object.prototype, Ae = me.toString, Se = Oe.hasOwnProperty, Pe = RegExp(
68
- "^" + Ae.call(Se).replace(je, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
67
+ var Oe = /[\\^$.*+?()[\]{}|]/g, Ae = /^\[object .+?Constructor\]$/, Se = Function.prototype, Pe = Object.prototype, xe = Se.toString, Ee = Pe.hasOwnProperty, Ie = RegExp(
68
+ "^" + xe.call(Ee).replace(Oe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
69
69
  );
70
- function Ee(t) {
71
- if (!U(t) || $e(t))
70
+ function Ce(t) {
71
+ if (!K(t) || Te(t))
72
72
  return !1;
73
- var e = It(t) ? Pe : we;
74
- return e.test(_(t));
73
+ var e = Ut(t) ? Ie : Ae;
74
+ return e.test(x(t));
75
75
  }
76
- function Ce(t, e) {
76
+ function Fe(t, e) {
77
77
  return t == null ? void 0 : t[e];
78
78
  }
79
- function T(t, e) {
80
- var r = Ce(t, e);
81
- return Ee(r) ? r : void 0;
79
+ function E(t, e) {
80
+ var r = Fe(t, e);
81
+ return Ce(r) ? r : void 0;
82
82
  }
83
- var Ie = T(p, "WeakMap");
84
- const H = Ie;
85
- var ct = Object.create, xe = function() {
83
+ var Me = E(w, "WeakMap");
84
+ const Z = Me;
85
+ var pt = Object.create, De = function() {
86
86
  function t() {
87
87
  }
88
88
  return function(e) {
89
- if (!U(e))
89
+ if (!K(e))
90
90
  return {};
91
- if (ct)
92
- return ct(e);
91
+ if (pt)
92
+ return pt(e);
93
93
  t.prototype = e;
94
94
  var r = new t();
95
95
  return t.prototype = void 0, r;
96
96
  };
97
97
  }();
98
- const Fe = xe;
99
- function Me(t, e) {
98
+ const Ue = De;
99
+ function Be(t, e) {
100
100
  var r = -1, n = t.length;
101
101
  for (e || (e = Array(n)); ++r < n; )
102
102
  e[r] = t[r];
103
103
  return e;
104
104
  }
105
- var De = function() {
105
+ var Ge = function() {
106
106
  try {
107
- var t = T(Object, "defineProperty");
107
+ var t = E(Object, "defineProperty");
108
108
  return t({}, "", {}), t;
109
109
  } catch {
110
110
  }
111
111
  }();
112
- const ut = De;
113
- function Ue(t, e) {
112
+ const dt = Ge;
113
+ function Le(t, e) {
114
114
  for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== !1; )
115
115
  ;
116
116
  return t;
117
117
  }
118
- var Be = 9007199254740991, Le = /^(?:0|[1-9]\d*)$/;
119
- function Ge(t, e) {
118
+ var Ne = 9007199254740991, ze = /^(?:0|[1-9]\d*)$/;
119
+ function Re(t, e) {
120
120
  var r = typeof t;
121
- return e = e ?? Be, !!e && (r == "number" || r != "symbol" && Le.test(t)) && t > -1 && t % 1 == 0 && t < e;
121
+ return e = e ?? Ne, !!e && (r == "number" || r != "symbol" && ze.test(t)) && t > -1 && t % 1 == 0 && t < e;
122
122
  }
123
- function xt(t, e, r) {
124
- e == "__proto__" && ut ? ut(t, e, {
123
+ function Bt(t, e, r) {
124
+ e == "__proto__" && dt ? dt(t, e, {
125
125
  configurable: !0,
126
126
  enumerable: !0,
127
127
  value: r,
128
128
  writable: !0
129
129
  }) : t[e] = r;
130
130
  }
131
- function Ft(t, e) {
131
+ function Gt(t, e) {
132
132
  return t === e || t !== t && e !== e;
133
133
  }
134
- var Ne = Object.prototype, ze = Ne.hasOwnProperty;
135
- function Mt(t, e, r) {
134
+ var Ke = Object.prototype, He = Ke.hasOwnProperty;
135
+ function Lt(t, e, r) {
136
136
  var n = t[e];
137
- (!(ze.call(t, e) && Ft(n, r)) || r === void 0 && !(e in t)) && xt(t, e, r);
137
+ (!(He.call(t, e) && Gt(n, r)) || r === void 0 && !(e in t)) && Bt(t, e, r);
138
138
  }
139
- function G(t, e, r, n) {
140
- var s = !r;
139
+ function W(t, e, r, n) {
140
+ var o = !r;
141
141
  r || (r = {});
142
- for (var o = -1, a = e.length; ++o < a; ) {
143
- var f = e[o], i = n ? n(r[f], t[f], f, r, t) : void 0;
144
- i === void 0 && (i = t[f]), s ? xt(r, f, i) : Mt(r, f, i);
142
+ for (var a = -1, s = e.length; ++a < s; ) {
143
+ var l = e[a], p = n ? n(r[l], t[l], l, r, t) : void 0;
144
+ p === void 0 && (p = t[l]), o ? Bt(r, l, p) : Lt(r, l, p);
145
145
  }
146
146
  return r;
147
147
  }
148
- var Re = 9007199254740991;
149
- function Dt(t) {
150
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Re;
148
+ var Ve = 9007199254740991;
149
+ function Nt(t) {
150
+ return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Ve;
151
151
  }
152
- function Ut(t) {
153
- return t != null && Dt(t.length) && !It(t);
152
+ function zt(t) {
153
+ return t != null && Nt(t.length) && !Ut(t);
154
154
  }
155
- var Ke = Object.prototype;
156
- function Y(t) {
157
- var e = t && t.constructor, r = typeof e == "function" && e.prototype || Ke;
155
+ var We = Object.prototype;
156
+ function et(t) {
157
+ var e = t && t.constructor, r = typeof e == "function" && e.prototype || We;
158
158
  return t === r;
159
159
  }
160
- function He(t, e) {
160
+ function qe(t, e) {
161
161
  for (var r = -1, n = Array(t); ++r < t; )
162
162
  n[r] = e(r);
163
163
  return n;
164
164
  }
165
- var Ve = "[object Arguments]";
166
- function ft(t) {
167
- return D(t) && M(t) == Ve;
165
+ var Ye = "[object Arguments]";
166
+ function gt(t) {
167
+ return R(t) && z(t) == Ye;
168
168
  }
169
- var Bt = Object.prototype, We = Bt.hasOwnProperty, qe = Bt.propertyIsEnumerable, Ye = ft(function() {
169
+ var Rt = Object.prototype, Je = Rt.hasOwnProperty, Xe = Rt.propertyIsEnumerable, Ze = gt(function() {
170
170
  return arguments;
171
- }()) ? ft : function(t) {
172
- return D(t) && We.call(t, "callee") && !qe.call(t, "callee");
171
+ }()) ? gt : function(t) {
172
+ return R(t) && Je.call(t, "callee") && !Xe.call(t, "callee");
173
173
  };
174
- const Je = Ye;
175
- function Xe() {
174
+ const Qe = Ze;
175
+ function ke() {
176
176
  return !1;
177
177
  }
178
- var Lt = typeof exports == "object" && exports && !exports.nodeType && exports, lt = Lt && typeof module == "object" && module && !module.nodeType && module, Ze = lt && lt.exports === Lt, pt = Ze ? p.Buffer : void 0, Qe = pt ? pt.isBuffer : void 0, ke = Qe || Xe;
179
- const Gt = ke;
180
- var tr = "[object Arguments]", er = "[object Array]", rr = "[object Boolean]", nr = "[object Date]", ar = "[object Error]", or = "[object Function]", sr = "[object Map]", ir = "[object Number]", cr = "[object Object]", ur = "[object RegExp]", fr = "[object Set]", lr = "[object String]", pr = "[object WeakMap]", gr = "[object ArrayBuffer]", hr = "[object DataView]", br = "[object Float32Array]", dr = "[object Float64Array]", yr = "[object Int8Array]", vr = "[object Int16Array]", $r = "[object Int32Array]", _r = "[object Uint8Array]", Tr = "[object Uint8ClampedArray]", jr = "[object Uint16Array]", wr = "[object Uint32Array]", u = {};
181
- u[br] = u[dr] = u[yr] = u[vr] = u[$r] = u[_r] = u[Tr] = u[jr] = u[wr] = !0;
182
- u[tr] = u[er] = u[gr] = u[rr] = u[hr] = u[nr] = u[ar] = u[or] = u[sr] = u[ir] = u[cr] = u[ur] = u[fr] = u[lr] = u[pr] = !1;
183
- function mr(t) {
184
- return D(t) && Dt(t.length) && !!u[M(t)];
178
+ var Kt = typeof exports == "object" && exports && !exports.nodeType && exports, ht = Kt && typeof module == "object" && module && !module.nodeType && module, tr = ht && ht.exports === Kt, vt = tr ? w.Buffer : void 0, er = vt ? vt.isBuffer : void 0, rr = er || ke;
179
+ const Ht = rr;
180
+ var nr = "[object Arguments]", ar = "[object Array]", or = "[object Boolean]", sr = "[object Date]", ur = "[object Error]", ir = "[object Function]", cr = "[object Map]", lr = "[object Number]", fr = "[object Object]", pr = "[object RegExp]", dr = "[object Set]", gr = "[object String]", hr = "[object WeakMap]", vr = "[object ArrayBuffer]", br = "[object DataView]", yr = "[object Float32Array]", jr = "[object Float64Array]", _r = "[object Int8Array]", $r = "[object Int16Array]", Tr = "[object Int32Array]", wr = "[object Uint8Array]", mr = "[object Uint8ClampedArray]", Or = "[object Uint16Array]", Ar = "[object Uint32Array]", d = {};
181
+ d[yr] = d[jr] = d[_r] = d[$r] = d[Tr] = d[wr] = d[mr] = d[Or] = d[Ar] = !0;
182
+ d[nr] = d[ar] = d[vr] = d[or] = d[br] = d[sr] = d[ur] = d[ir] = d[cr] = d[lr] = d[fr] = d[pr] = d[dr] = d[gr] = d[hr] = !1;
183
+ function Sr(t) {
184
+ return R(t) && Nt(t.length) && !!d[z(t)];
185
185
  }
186
- function J(t) {
186
+ function rt(t) {
187
187
  return function(e) {
188
188
  return t(e);
189
189
  };
190
190
  }
191
- var Nt = typeof exports == "object" && exports && !exports.nodeType && exports, C = Nt && typeof module == "object" && module && !module.nodeType && module, Or = C && C.exports === Nt, K = Or && Et.process, Ar = function() {
191
+ var Vt = typeof exports == "object" && exports && !exports.nodeType && exports, G = Vt && typeof module == "object" && module && !module.nodeType && module, Pr = G && G.exports === Vt, X = Pr && Mt.process, xr = function() {
192
192
  try {
193
- var t = C && C.require && C.require("util").types;
194
- return t || K && K.binding && K.binding("util");
193
+ var t = G && G.require && G.require("util").types;
194
+ return t || X && X.binding && X.binding("util");
195
195
  } catch {
196
196
  }
197
197
  }();
198
- const A = Ar;
199
- var gt = A && A.isTypedArray, Sr = gt ? J(gt) : mr;
200
- const Pr = Sr;
201
- var Er = Object.prototype, Cr = Er.hasOwnProperty;
202
- function zt(t, e) {
203
- var r = O(t), n = !r && Je(t), s = !r && !n && Gt(t), o = !r && !n && !s && Pr(t), a = r || n || s || o, f = a ? He(t.length, String) : [], i = f.length;
204
- for (var l in t)
205
- (e || Cr.call(t, l)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
206
- (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
207
- s && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
208
- o && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
209
- Ge(l, i))) && f.push(l);
210
- return f;
211
- }
212
- function Rt(t, e) {
198
+ const C = xr;
199
+ var bt = C && C.isTypedArray, Er = bt ? rt(bt) : Sr;
200
+ const Ir = Er;
201
+ var Cr = Object.prototype, Fr = Cr.hasOwnProperty;
202
+ function Wt(t, e) {
203
+ var r = M(t), n = !r && Qe(t), o = !r && !n && Ht(t), a = !r && !n && !o && Ir(t), s = r || n || o || a, l = s ? qe(t.length, String) : [], p = l.length;
204
+ for (var g in t)
205
+ (e || Fr.call(t, g)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
206
+ (g == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
207
+ o && (g == "offset" || g == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
208
+ a && (g == "buffer" || g == "byteLength" || g == "byteOffset") || // Skip index properties.
209
+ Re(g, p))) && l.push(g);
210
+ return l;
211
+ }
212
+ function qt(t, e) {
213
213
  return function(r) {
214
214
  return t(e(r));
215
215
  };
216
216
  }
217
- var Ir = Rt(Object.keys, Object);
218
- const xr = Ir;
219
- var Fr = Object.prototype, Mr = Fr.hasOwnProperty;
220
- function Dr(t) {
221
- if (!Y(t))
222
- return xr(t);
217
+ var Mr = qt(Object.keys, Object);
218
+ const Dr = Mr;
219
+ var Ur = Object.prototype, Br = Ur.hasOwnProperty;
220
+ function Gr(t) {
221
+ if (!et(t))
222
+ return Dr(t);
223
223
  var e = [];
224
224
  for (var r in Object(t))
225
- Mr.call(t, r) && r != "constructor" && e.push(r);
225
+ Br.call(t, r) && r != "constructor" && e.push(r);
226
226
  return e;
227
227
  }
228
- function X(t) {
229
- return Ut(t) ? zt(t) : Dr(t);
228
+ function nt(t) {
229
+ return zt(t) ? Wt(t) : Gr(t);
230
230
  }
231
- function Ur(t) {
231
+ function Lr(t) {
232
232
  var e = [];
233
233
  if (t != null)
234
234
  for (var r in Object(t))
235
235
  e.push(r);
236
236
  return e;
237
237
  }
238
- var Br = Object.prototype, Lr = Br.hasOwnProperty;
239
- function Gr(t) {
240
- if (!U(t))
241
- return Ur(t);
242
- var e = Y(t), r = [];
238
+ var Nr = Object.prototype, zr = Nr.hasOwnProperty;
239
+ function Rr(t) {
240
+ if (!K(t))
241
+ return Lr(t);
242
+ var e = et(t), r = [];
243
243
  for (var n in t)
244
- n == "constructor" && (e || !Lr.call(t, n)) || r.push(n);
244
+ n == "constructor" && (e || !zr.call(t, n)) || r.push(n);
245
245
  return r;
246
246
  }
247
- function Z(t) {
248
- return Ut(t) ? zt(t, !0) : Gr(t);
247
+ function at(t) {
248
+ return zt(t) ? Wt(t, !0) : Rr(t);
249
249
  }
250
- var Nr = T(Object, "create");
251
- const I = Nr;
252
- function zr() {
253
- this.__data__ = I ? I(null) : {}, this.size = 0;
250
+ var Kr = E(Object, "create");
251
+ const L = Kr;
252
+ function Hr() {
253
+ this.__data__ = L ? L(null) : {}, this.size = 0;
254
254
  }
255
- function Rr(t) {
255
+ function Vr(t) {
256
256
  var e = this.has(t) && delete this.__data__[t];
257
257
  return this.size -= e ? 1 : 0, e;
258
258
  }
259
- var Kr = "__lodash_hash_undefined__", Hr = Object.prototype, Vr = Hr.hasOwnProperty;
260
- function Wr(t) {
259
+ var Wr = "__lodash_hash_undefined__", qr = Object.prototype, Yr = qr.hasOwnProperty;
260
+ function Jr(t) {
261
261
  var e = this.__data__;
262
- if (I) {
262
+ if (L) {
263
263
  var r = e[t];
264
- return r === Kr ? void 0 : r;
264
+ return r === Wr ? void 0 : r;
265
265
  }
266
- return Vr.call(e, t) ? e[t] : void 0;
266
+ return Yr.call(e, t) ? e[t] : void 0;
267
267
  }
268
- var qr = Object.prototype, Yr = qr.hasOwnProperty;
269
- function Jr(t) {
268
+ var Xr = Object.prototype, Zr = Xr.hasOwnProperty;
269
+ function Qr(t) {
270
270
  var e = this.__data__;
271
- return I ? e[t] !== void 0 : Yr.call(e, t);
271
+ return L ? e[t] !== void 0 : Zr.call(e, t);
272
272
  }
273
- var Xr = "__lodash_hash_undefined__";
274
- function Zr(t, e) {
273
+ var kr = "__lodash_hash_undefined__";
274
+ function tn(t, e) {
275
275
  var r = this.__data__;
276
- return this.size += this.has(t) ? 0 : 1, r[t] = I && e === void 0 ? Xr : e, this;
276
+ return this.size += this.has(t) ? 0 : 1, r[t] = L && e === void 0 ? kr : e, this;
277
277
  }
278
- function $(t) {
278
+ function P(t) {
279
279
  var e = -1, r = t == null ? 0 : t.length;
280
280
  for (this.clear(); ++e < r; ) {
281
281
  var n = t[e];
282
282
  this.set(n[0], n[1]);
283
283
  }
284
284
  }
285
- $.prototype.clear = zr;
286
- $.prototype.delete = Rr;
287
- $.prototype.get = Wr;
288
- $.prototype.has = Jr;
289
- $.prototype.set = Zr;
290
- function Qr() {
285
+ P.prototype.clear = Hr;
286
+ P.prototype.delete = Vr;
287
+ P.prototype.get = Jr;
288
+ P.prototype.has = Qr;
289
+ P.prototype.set = tn;
290
+ function en() {
291
291
  this.__data__ = [], this.size = 0;
292
292
  }
293
- function N(t, e) {
293
+ function q(t, e) {
294
294
  for (var r = t.length; r--; )
295
- if (Ft(t[r][0], e))
295
+ if (Gt(t[r][0], e))
296
296
  return r;
297
297
  return -1;
298
298
  }
299
- var kr = Array.prototype, tn = kr.splice;
300
- function en(t) {
301
- var e = this.__data__, r = N(e, t);
299
+ var rn = Array.prototype, nn = rn.splice;
300
+ function an(t) {
301
+ var e = this.__data__, r = q(e, t);
302
302
  if (r < 0)
303
303
  return !1;
304
304
  var n = e.length - 1;
305
- return r == n ? e.pop() : tn.call(e, r, 1), --this.size, !0;
305
+ return r == n ? e.pop() : nn.call(e, r, 1), --this.size, !0;
306
306
  }
307
- function rn(t) {
308
- var e = this.__data__, r = N(e, t);
307
+ function on(t) {
308
+ var e = this.__data__, r = q(e, t);
309
309
  return r < 0 ? void 0 : e[r][1];
310
310
  }
311
- function nn(t) {
312
- return N(this.__data__, t) > -1;
311
+ function sn(t) {
312
+ return q(this.__data__, t) > -1;
313
313
  }
314
- function an(t, e) {
315
- var r = this.__data__, n = N(r, t);
314
+ function un(t, e) {
315
+ var r = this.__data__, n = q(r, t);
316
316
  return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
317
317
  }
318
- function g(t) {
318
+ function m(t) {
319
319
  var e = -1, r = t == null ? 0 : t.length;
320
320
  for (this.clear(); ++e < r; ) {
321
321
  var n = t[e];
322
322
  this.set(n[0], n[1]);
323
323
  }
324
324
  }
325
- g.prototype.clear = Qr;
326
- g.prototype.delete = en;
327
- g.prototype.get = rn;
328
- g.prototype.has = nn;
329
- g.prototype.set = an;
330
- var on = T(p, "Map");
331
- const x = on;
332
- function sn() {
325
+ m.prototype.clear = en;
326
+ m.prototype.delete = an;
327
+ m.prototype.get = on;
328
+ m.prototype.has = sn;
329
+ m.prototype.set = un;
330
+ var cn = E(w, "Map");
331
+ const N = cn;
332
+ function ln() {
333
333
  this.size = 0, this.__data__ = {
334
- hash: new $(),
335
- map: new (x || g)(),
336
- string: new $()
334
+ hash: new P(),
335
+ map: new (N || m)(),
336
+ string: new P()
337
337
  };
338
338
  }
339
- function cn(t) {
339
+ function fn(t) {
340
340
  var e = typeof t;
341
341
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
342
342
  }
343
- function z(t, e) {
343
+ function Y(t, e) {
344
344
  var r = t.__data__;
345
- return cn(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
345
+ return fn(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
346
346
  }
347
- function un(t) {
348
- var e = z(this, t).delete(t);
347
+ function pn(t) {
348
+ var e = Y(this, t).delete(t);
349
349
  return this.size -= e ? 1 : 0, e;
350
350
  }
351
- function fn(t) {
352
- return z(this, t).get(t);
351
+ function dn(t) {
352
+ return Y(this, t).get(t);
353
353
  }
354
- function ln(t) {
355
- return z(this, t).has(t);
354
+ function gn(t) {
355
+ return Y(this, t).has(t);
356
356
  }
357
- function pn(t, e) {
358
- var r = z(this, t), n = r.size;
357
+ function hn(t, e) {
358
+ var r = Y(this, t), n = r.size;
359
359
  return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
360
360
  }
361
- function S(t) {
361
+ function D(t) {
362
362
  var e = -1, r = t == null ? 0 : t.length;
363
363
  for (this.clear(); ++e < r; ) {
364
364
  var n = t[e];
365
365
  this.set(n[0], n[1]);
366
366
  }
367
367
  }
368
- S.prototype.clear = sn;
369
- S.prototype.delete = un;
370
- S.prototype.get = fn;
371
- S.prototype.has = ln;
372
- S.prototype.set = pn;
373
- function Kt(t, e) {
374
- for (var r = -1, n = e.length, s = t.length; ++r < n; )
375
- t[s + r] = e[r];
368
+ D.prototype.clear = ln;
369
+ D.prototype.delete = pn;
370
+ D.prototype.get = dn;
371
+ D.prototype.has = gn;
372
+ D.prototype.set = hn;
373
+ function Yt(t, e) {
374
+ for (var r = -1, n = e.length, o = t.length; ++r < n; )
375
+ t[o + r] = e[r];
376
376
  return t;
377
377
  }
378
- var gn = Rt(Object.getPrototypeOf, Object);
379
- const Ht = gn;
380
- function hn() {
381
- this.__data__ = new g(), this.size = 0;
378
+ var vn = qt(Object.getPrototypeOf, Object);
379
+ const Jt = vn;
380
+ function bn() {
381
+ this.__data__ = new m(), this.size = 0;
382
382
  }
383
- function bn(t) {
383
+ function yn(t) {
384
384
  var e = this.__data__, r = e.delete(t);
385
385
  return this.size = e.size, r;
386
386
  }
387
- function dn(t) {
387
+ function jn(t) {
388
388
  return this.__data__.get(t);
389
389
  }
390
- function yn(t) {
390
+ function _n(t) {
391
391
  return this.__data__.has(t);
392
392
  }
393
- var vn = 200;
394
- function $n(t, e) {
393
+ var $n = 200;
394
+ function Tn(t, e) {
395
395
  var r = this.__data__;
396
- if (r instanceof g) {
396
+ if (r instanceof m) {
397
397
  var n = r.__data__;
398
- if (!x || n.length < vn - 1)
398
+ if (!N || n.length < $n - 1)
399
399
  return n.push([t, e]), this.size = ++r.size, this;
400
- r = this.__data__ = new S(n);
400
+ r = this.__data__ = new D(n);
401
401
  }
402
402
  return r.set(t, e), this.size = r.size, this;
403
403
  }
404
- function P(t) {
405
- var e = this.__data__ = new g(t);
404
+ function U(t) {
405
+ var e = this.__data__ = new m(t);
406
406
  this.size = e.size;
407
407
  }
408
- P.prototype.clear = hn;
409
- P.prototype.delete = bn;
410
- P.prototype.get = dn;
411
- P.prototype.has = yn;
412
- P.prototype.set = $n;
413
- function _n(t, e) {
414
- return t && G(e, X(e), t);
408
+ U.prototype.clear = bn;
409
+ U.prototype.delete = yn;
410
+ U.prototype.get = jn;
411
+ U.prototype.has = _n;
412
+ U.prototype.set = Tn;
413
+ function wn(t, e) {
414
+ return t && W(e, nt(e), t);
415
415
  }
416
- function Tn(t, e) {
417
- return t && G(e, Z(e), t);
416
+ function mn(t, e) {
417
+ return t && W(e, at(e), t);
418
418
  }
419
- var Vt = typeof exports == "object" && exports && !exports.nodeType && exports, ht = Vt && typeof module == "object" && module && !module.nodeType && module, jn = ht && ht.exports === Vt, bt = jn ? p.Buffer : void 0, dt = bt ? bt.allocUnsafe : void 0;
420
- function wn(t, e) {
419
+ var Xt = typeof exports == "object" && exports && !exports.nodeType && exports, yt = Xt && typeof module == "object" && module && !module.nodeType && module, On = yt && yt.exports === Xt, jt = On ? w.Buffer : void 0, _t = jt ? jt.allocUnsafe : void 0;
420
+ function An(t, e) {
421
421
  if (e)
422
422
  return t.slice();
423
- var r = t.length, n = dt ? dt(r) : new t.constructor(r);
423
+ var r = t.length, n = _t ? _t(r) : new t.constructor(r);
424
424
  return t.copy(n), n;
425
425
  }
426
- function mn(t, e) {
427
- for (var r = -1, n = t == null ? 0 : t.length, s = 0, o = []; ++r < n; ) {
428
- var a = t[r];
429
- e(a, r, t) && (o[s++] = a);
426
+ function Sn(t, e) {
427
+ for (var r = -1, n = t == null ? 0 : t.length, o = 0, a = []; ++r < n; ) {
428
+ var s = t[r];
429
+ e(s, r, t) && (a[o++] = s);
430
430
  }
431
- return o;
431
+ return a;
432
432
  }
433
- function Wt() {
433
+ function Zt() {
434
434
  return [];
435
435
  }
436
- var On = Object.prototype, An = On.propertyIsEnumerable, yt = Object.getOwnPropertySymbols, Sn = yt ? function(t) {
437
- return t == null ? [] : (t = Object(t), mn(yt(t), function(e) {
438
- return An.call(t, e);
436
+ var Pn = Object.prototype, xn = Pn.propertyIsEnumerable, $t = Object.getOwnPropertySymbols, En = $t ? function(t) {
437
+ return t == null ? [] : (t = Object(t), Sn($t(t), function(e) {
438
+ return xn.call(t, e);
439
439
  }));
440
- } : Wt;
441
- const Q = Sn;
442
- function Pn(t, e) {
443
- return G(t, Q(t), e);
440
+ } : Zt;
441
+ const ot = En;
442
+ function In(t, e) {
443
+ return W(t, ot(t), e);
444
444
  }
445
- var En = Object.getOwnPropertySymbols, Cn = En ? function(t) {
445
+ var Cn = Object.getOwnPropertySymbols, Fn = Cn ? function(t) {
446
446
  for (var e = []; t; )
447
- Kt(e, Q(t)), t = Ht(t);
447
+ Yt(e, ot(t)), t = Jt(t);
448
448
  return e;
449
- } : Wt;
450
- const qt = Cn;
451
- function In(t, e) {
452
- return G(t, qt(t), e);
449
+ } : Zt;
450
+ const Qt = Fn;
451
+ function Mn(t, e) {
452
+ return W(t, Qt(t), e);
453
453
  }
454
- function Yt(t, e, r) {
454
+ function kt(t, e, r) {
455
455
  var n = e(t);
456
- return O(t) ? n : Kt(n, r(t));
457
- }
458
- function xn(t) {
459
- return Yt(t, X, Q);
460
- }
461
- function Fn(t) {
462
- return Yt(t, Z, qt);
463
- }
464
- var Mn = T(p, "DataView");
465
- const V = Mn;
466
- var Dn = T(p, "Promise");
467
- const W = Dn;
468
- var Un = T(p, "Set");
469
- const q = Un;
470
- var vt = "[object Map]", Bn = "[object Object]", $t = "[object Promise]", _t = "[object Set]", Tt = "[object WeakMap]", jt = "[object DataView]", Ln = _(V), Gn = _(x), Nn = _(W), zn = _(q), Rn = _(H), v = M;
471
- (V && v(new V(new ArrayBuffer(1))) != jt || x && v(new x()) != vt || W && v(W.resolve()) != $t || q && v(new q()) != _t || H && v(new H()) != Tt) && (v = function(t) {
472
- var e = M(t), r = e == Bn ? t.constructor : void 0, n = r ? _(r) : "";
456
+ return M(t) ? n : Yt(n, r(t));
457
+ }
458
+ function Dn(t) {
459
+ return kt(t, nt, ot);
460
+ }
461
+ function Un(t) {
462
+ return kt(t, at, Qt);
463
+ }
464
+ var Bn = E(w, "DataView");
465
+ const Q = Bn;
466
+ var Gn = E(w, "Promise");
467
+ const k = Gn;
468
+ var Ln = E(w, "Set");
469
+ const tt = Ln;
470
+ var Tt = "[object Map]", Nn = "[object Object]", wt = "[object Promise]", mt = "[object Set]", Ot = "[object WeakMap]", At = "[object DataView]", zn = x(Q), Rn = x(N), Kn = x(k), Hn = x(tt), Vn = x(Z), S = z;
471
+ (Q && S(new Q(new ArrayBuffer(1))) != At || N && S(new N()) != Tt || k && S(k.resolve()) != wt || tt && S(new tt()) != mt || Z && S(new Z()) != Ot) && (S = function(t) {
472
+ var e = z(t), r = e == Nn ? t.constructor : void 0, n = r ? x(r) : "";
473
473
  if (n)
474
474
  switch (n) {
475
- case Ln:
476
- return jt;
477
- case Gn:
478
- return vt;
479
- case Nn:
480
- return $t;
481
475
  case zn:
482
- return _t;
476
+ return At;
483
477
  case Rn:
484
478
  return Tt;
479
+ case Kn:
480
+ return wt;
481
+ case Hn:
482
+ return mt;
483
+ case Vn:
484
+ return Ot;
485
485
  }
486
486
  return e;
487
487
  });
488
- const k = v;
489
- var Kn = Object.prototype, Hn = Kn.hasOwnProperty;
490
- function Vn(t) {
488
+ const st = S;
489
+ var Wn = Object.prototype, qn = Wn.hasOwnProperty;
490
+ function Yn(t) {
491
491
  var e = t.length, r = new t.constructor(e);
492
- return e && typeof t[0] == "string" && Hn.call(t, "index") && (r.index = t.index, r.input = t.input), r;
492
+ return e && typeof t[0] == "string" && qn.call(t, "index") && (r.index = t.index, r.input = t.input), r;
493
493
  }
494
- var Wn = p.Uint8Array;
495
- const wt = Wn;
496
- function tt(t) {
494
+ var Jn = w.Uint8Array;
495
+ const St = Jn;
496
+ function ut(t) {
497
497
  var e = new t.constructor(t.byteLength);
498
- return new wt(e).set(new wt(t)), e;
498
+ return new St(e).set(new St(t)), e;
499
499
  }
500
- function qn(t, e) {
501
- var r = e ? tt(t.buffer) : t.buffer;
500
+ function Xn(t, e) {
501
+ var r = e ? ut(t.buffer) : t.buffer;
502
502
  return new t.constructor(r, t.byteOffset, t.byteLength);
503
503
  }
504
- var Yn = /\w*$/;
505
- function Jn(t) {
506
- var e = new t.constructor(t.source, Yn.exec(t));
504
+ var Zn = /\w*$/;
505
+ function Qn(t) {
506
+ var e = new t.constructor(t.source, Zn.exec(t));
507
507
  return e.lastIndex = t.lastIndex, e;
508
508
  }
509
- var mt = m ? m.prototype : void 0, Ot = mt ? mt.valueOf : void 0;
510
- function Xn(t) {
511
- return Ot ? Object(Ot.call(t)) : {};
509
+ var Pt = I ? I.prototype : void 0, xt = Pt ? Pt.valueOf : void 0;
510
+ function kn(t) {
511
+ return xt ? Object(xt.call(t)) : {};
512
512
  }
513
- function Zn(t, e) {
514
- var r = e ? tt(t.buffer) : t.buffer;
513
+ function ta(t, e) {
514
+ var r = e ? ut(t.buffer) : t.buffer;
515
515
  return new t.constructor(r, t.byteOffset, t.length);
516
516
  }
517
- var Qn = "[object Boolean]", kn = "[object Date]", ta = "[object Map]", ea = "[object Number]", ra = "[object RegExp]", na = "[object Set]", aa = "[object String]", oa = "[object Symbol]", sa = "[object ArrayBuffer]", ia = "[object DataView]", ca = "[object Float32Array]", ua = "[object Float64Array]", fa = "[object Int8Array]", la = "[object Int16Array]", pa = "[object Int32Array]", ga = "[object Uint8Array]", ha = "[object Uint8ClampedArray]", ba = "[object Uint16Array]", da = "[object Uint32Array]";
518
- function ya(t, e, r) {
517
+ var ea = "[object Boolean]", ra = "[object Date]", na = "[object Map]", aa = "[object Number]", oa = "[object RegExp]", sa = "[object Set]", ua = "[object String]", ia = "[object Symbol]", ca = "[object ArrayBuffer]", la = "[object DataView]", fa = "[object Float32Array]", pa = "[object Float64Array]", da = "[object Int8Array]", ga = "[object Int16Array]", ha = "[object Int32Array]", va = "[object Uint8Array]", ba = "[object Uint8ClampedArray]", ya = "[object Uint16Array]", ja = "[object Uint32Array]";
518
+ function _a(t, e, r) {
519
519
  var n = t.constructor;
520
520
  switch (e) {
521
- case sa:
522
- return tt(t);
523
- case Qn:
524
- case kn:
525
- return new n(+t);
526
- case ia:
527
- return qn(t, r);
528
521
  case ca:
529
- case ua:
530
- case fa:
522
+ return ut(t);
523
+ case ea:
524
+ case ra:
525
+ return new n(+t);
531
526
  case la:
527
+ return Xn(t, r);
528
+ case fa:
532
529
  case pa:
530
+ case da:
533
531
  case ga:
534
532
  case ha:
533
+ case va:
535
534
  case ba:
536
- case da:
537
- return Zn(t, r);
538
- case ta:
535
+ case ya:
536
+ case ja:
537
+ return ta(t, r);
538
+ case na:
539
539
  return new n();
540
- case ea:
541
540
  case aa:
541
+ case ua:
542
542
  return new n(t);
543
- case ra:
544
- return Jn(t);
545
- case na:
546
- return new n();
547
543
  case oa:
548
- return Xn(t);
544
+ return Qn(t);
545
+ case sa:
546
+ return new n();
547
+ case ia:
548
+ return kn(t);
549
549
  }
550
550
  }
551
- function va(t) {
552
- return typeof t.constructor == "function" && !Y(t) ? Fe(Ht(t)) : {};
553
- }
554
- var $a = "[object Map]";
555
- function _a(t) {
556
- return D(t) && k(t) == $a;
557
- }
558
- var At = A && A.isMap, Ta = At ? J(At) : _a;
559
- const ja = Ta;
560
- var wa = "[object Set]";
561
- function ma(t) {
562
- return D(t) && k(t) == wa;
563
- }
564
- var St = A && A.isSet, Oa = St ? J(St) : ma;
565
- const Aa = Oa;
566
- var Sa = 1, Pa = 2, Ea = 4, Jt = "[object Arguments]", Ca = "[object Array]", Ia = "[object Boolean]", xa = "[object Date]", Fa = "[object Error]", Xt = "[object Function]", Ma = "[object GeneratorFunction]", Da = "[object Map]", Ua = "[object Number]", Zt = "[object Object]", Ba = "[object RegExp]", La = "[object Set]", Ga = "[object String]", Na = "[object Symbol]", za = "[object WeakMap]", Ra = "[object ArrayBuffer]", Ka = "[object DataView]", Ha = "[object Float32Array]", Va = "[object Float64Array]", Wa = "[object Int8Array]", qa = "[object Int16Array]", Ya = "[object Int32Array]", Ja = "[object Uint8Array]", Xa = "[object Uint8ClampedArray]", Za = "[object Uint16Array]", Qa = "[object Uint32Array]", c = {};
567
- c[Jt] = c[Ca] = c[Ra] = c[Ka] = c[Ia] = c[xa] = c[Ha] = c[Va] = c[Wa] = c[qa] = c[Ya] = c[Da] = c[Ua] = c[Zt] = c[Ba] = c[La] = c[Ga] = c[Na] = c[Ja] = c[Xa] = c[Za] = c[Qa] = !0;
568
- c[Fa] = c[Xt] = c[za] = !1;
569
- function B(t, e, r, n, s, o) {
570
- var a, f = e & Sa, i = e & Pa, l = e & Ea;
571
- if (r && (a = s ? r(t, n, s, o) : r(t)), a !== void 0)
572
- return a;
573
- if (!U(t))
551
+ function $a(t) {
552
+ return typeof t.constructor == "function" && !et(t) ? Ue(Jt(t)) : {};
553
+ }
554
+ var Ta = "[object Map]";
555
+ function wa(t) {
556
+ return R(t) && st(t) == Ta;
557
+ }
558
+ var Et = C && C.isMap, ma = Et ? rt(Et) : wa;
559
+ const Oa = ma;
560
+ var Aa = "[object Set]";
561
+ function Sa(t) {
562
+ return R(t) && st(t) == Aa;
563
+ }
564
+ var It = C && C.isSet, Pa = It ? rt(It) : Sa;
565
+ const xa = Pa;
566
+ var Ea = 1, Ia = 2, Ca = 4, te = "[object Arguments]", Fa = "[object Array]", Ma = "[object Boolean]", Da = "[object Date]", Ua = "[object Error]", ee = "[object Function]", Ba = "[object GeneratorFunction]", Ga = "[object Map]", La = "[object Number]", re = "[object Object]", Na = "[object RegExp]", za = "[object Set]", Ra = "[object String]", Ka = "[object Symbol]", Ha = "[object WeakMap]", Va = "[object ArrayBuffer]", Wa = "[object DataView]", qa = "[object Float32Array]", Ya = "[object Float64Array]", Ja = "[object Int8Array]", Xa = "[object Int16Array]", Za = "[object Int32Array]", Qa = "[object Uint8Array]", ka = "[object Uint8ClampedArray]", to = "[object Uint16Array]", eo = "[object Uint32Array]", f = {};
567
+ f[te] = f[Fa] = f[Va] = f[Wa] = f[Ma] = f[Da] = f[qa] = f[Ya] = f[Ja] = f[Xa] = f[Za] = f[Ga] = f[La] = f[re] = f[Na] = f[za] = f[Ra] = f[Ka] = f[Qa] = f[ka] = f[to] = f[eo] = !0;
568
+ f[Ua] = f[ee] = f[Ha] = !1;
569
+ function H(t, e, r, n, o, a) {
570
+ var s, l = e & Ea, p = e & Ia, g = e & Ca;
571
+ if (r && (s = o ? r(t, n, o, a) : r(t)), s !== void 0)
572
+ return s;
573
+ if (!K(t))
574
574
  return t;
575
- var h = O(t);
576
- if (h) {
577
- if (a = Vn(t), !f)
578
- return Me(t, a);
575
+ var i = M(t);
576
+ if (i) {
577
+ if (s = Yn(t), !l)
578
+ return Be(t, s);
579
579
  } else {
580
- var j = k(t), nt = j == Xt || j == Ma;
581
- if (Gt(t))
582
- return wn(t, f);
583
- if (j == Zt || j == Jt || nt && !s) {
584
- if (a = i || nt ? {} : va(t), !f)
585
- return i ? In(t, Tn(a, t)) : Pn(t, _n(a, t));
580
+ var c = st(t), u = c == ee || c == Ba;
581
+ if (Ht(t))
582
+ return An(t, l);
583
+ if (c == re || c == te || u && !o) {
584
+ if (s = p || u ? {} : $a(t), !l)
585
+ return p ? Mn(t, mn(s, t)) : In(t, wn(s, t));
586
586
  } else {
587
- if (!c[j])
588
- return s ? t : {};
589
- a = ya(t, j, f);
587
+ if (!f[c])
588
+ return o ? t : {};
589
+ s = _a(t, c, l);
590
590
  }
591
591
  }
592
- o || (o = new P());
593
- var at = o.get(t);
594
- if (at)
595
- return at;
596
- o.set(t, a), Aa(t) ? t.forEach(function(b) {
597
- a.add(B(b, e, r, b, t, o));
598
- }) : ja(t) && t.forEach(function(b, y) {
599
- a.set(y, B(b, e, r, y, t, o));
592
+ a || (a = new U());
593
+ var h = a.get(t);
594
+ if (h)
595
+ return h;
596
+ a.set(t, s), xa(t) ? t.forEach(function(v) {
597
+ s.add(H(v, e, r, v, t, a));
598
+ }) : Oa(t) && t.forEach(function(v, T) {
599
+ s.set(T, H(v, e, r, T, t, a));
600
600
  });
601
- var Qt = l ? i ? Fn : xn : i ? Z : X, ot = h ? void 0 : Qt(t);
602
- return Ue(ot || t, function(b, y) {
603
- ot && (y = b, b = t[y]), Mt(a, y, B(b, e, r, y, t, o));
604
- }), a;
601
+ var b = g ? p ? Un : Dn : p ? at : nt, y = i ? void 0 : b(t);
602
+ return Le(y || t, function(v, T) {
603
+ y && (T = v, v = t[T]), Lt(s, T, H(v, e, r, T, t, a));
604
+ }), s;
605
605
  }
606
- var ka = 1, to = 4;
607
- function F(t) {
608
- return B(t, ka | to);
606
+ var ro = 1, no = 4;
607
+ function O(t) {
608
+ return H(t, ro | no);
609
609
  }
610
- function et(t, e) {
610
+ function it(t, e) {
611
611
  return t.then(function(r) {
612
612
  return [null, r];
613
613
  }).catch(function(r) {
614
614
  return e && Object.assign(r, e), [r, void 0];
615
615
  });
616
616
  }
617
- const eo = (t, e) => new Promise((r, n) => {
618
- Promise.resolve(F(e)).then(t).then(r).catch(n);
619
- }), Pt = (t, e) => t < e.length, rt = async (t, e, r, n, s) => {
620
- if (!Pt(n, t))
617
+ const _ = void 0, ao = async (t, e) => {
618
+ try {
619
+ const r = typeof e < "u" ? O(e) : e;
620
+ return await Promise.resolve(t(r));
621
+ } catch (r) {
622
+ throw r;
623
+ }
624
+ }, oo = (t, e, r) => {
625
+ try {
626
+ const n = typeof r < "u" ? O(r) : r, o = t(n);
627
+ o instanceof Promise ? o.then((a) => e([null, a])).catch((a) => e([a, null])) : e([null, o]);
628
+ } catch (n) {
629
+ e([n, void 0]);
630
+ }
631
+ }, V = (t, e) => t < e.length, ct = async (t, e, r, n, o) => {
632
+ if (!V(n, t))
621
633
  return e.value[t.length - 1].data;
622
- const o = t[n];
623
- if (typeof o == "function") {
624
- const [a, f] = await et(eo(o, s));
625
- if (a)
626
- throw e.value[n].status = "rejected", new Error(n + "");
634
+ const a = t[n];
635
+ if (typeof a != "function")
636
+ throw e.value[n].status = "rejected", new Error(`The parameter at index ${n} is not a function.`);
637
+ try {
638
+ const [s, l] = await it(ao(a, o));
639
+ if (s)
640
+ throw e.value[n].status = "rejected", s;
627
641
  {
628
- e.value[n].data = f, e.value[n].status = "fulfilled";
629
- const i = n + 1;
630
- return Pt(i, t) && !r.value ? rt(t, e, r, i, f) : e.value[t.length - 1].data;
642
+ e.value[n] = { status: "fulfilled", data: l };
643
+ const p = n + 1;
644
+ return V(p, t) ? r.value ? l : ct(
645
+ t,
646
+ e,
647
+ r,
648
+ p,
649
+ l
650
+ ) : e.value[t.length - 1].data;
631
651
  }
632
- } else
633
- throw e.value[n].status = "rejected", new Error(n + "");
634
- }, L = (t) => t.map(() => ({
652
+ } catch (s) {
653
+ throw s;
654
+ }
655
+ }, ne = (t, e, r, n, o, a) => {
656
+ V(n, t) || a([null, e.value[t.length - 1].data]);
657
+ const s = t[n];
658
+ if (typeof s != "function")
659
+ throw e.value[n].status = "rejected", new Error(`The parameter at index ${n} is not a function.`);
660
+ const l = (p) => {
661
+ const [g, i] = p;
662
+ if (g)
663
+ e.value[n].status = "rejected", a([g, void 0]);
664
+ else {
665
+ e.value[n] = { status: "fulfilled", data: i };
666
+ const c = n + 1;
667
+ V(c, t) ? (r.value && a([null, i]), ne(
668
+ t,
669
+ e,
670
+ r,
671
+ c,
672
+ i,
673
+ a
674
+ )) : a([null, e.value[t.length - 1].data]);
675
+ }
676
+ };
677
+ try {
678
+ oo(s, l, o);
679
+ } catch (p) {
680
+ a([p, void 0]);
681
+ }
682
+ }, F = (t) => t.map(() => ({
635
683
  status: "unStart",
636
- data: void 0
684
+ data: _
637
685
  }));
638
- function no(t) {
639
- if (!kt(t))
686
+ function uo(t) {
687
+ if (!Ct(t))
640
688
  throw new Error("Entry must be a ref");
641
- if (!O(t.value))
689
+ if (!M(t.value))
642
690
  throw new Error("Entry must be a list of functions");
643
- const e = d(null), r = d(), n = d(!1), s = d(L(t.value)), o = () => {
644
- s.value = L(t.value);
645
- };
646
- te(
691
+ const e = j(null), r = j(), n = j(!1), o = {
692
+ resolve: null,
693
+ reject: null
694
+ }, a = j(
695
+ F(t.value)
696
+ );
697
+ Ft(
647
698
  t,
648
699
  () => {
649
- o();
700
+ a.value = F(t.value);
650
701
  },
651
702
  {
652
703
  deep: !0
653
704
  }
654
705
  );
655
- const a = async (i) => {
656
- if (n.value = !1, o(), t.value.length === 0)
657
- return r.value = i, e.value = null, [null, F(i)];
658
- const [l, h] = await et(
659
- rt(t.value, s, n, 0, i)
660
- );
661
- return l ? (e.value = l, r.value = null, [l, void 0]) : (r.value = h, e.value = null, [null, F(h)]);
662
- }, f = () => {
663
- n.value = !0;
706
+ const s = async (i, c = 0) => {
707
+ try {
708
+ o.reject = null, o.resolve = null;
709
+ const [u, h] = await it(
710
+ ct(t.value, a, n, c, i)
711
+ );
712
+ if (u) {
713
+ e.value = u, r.value = _;
714
+ const b = [u, _];
715
+ return o.reject && o.reject(b), b;
716
+ } else {
717
+ r.value = h, e.value = null;
718
+ const b = [null, O(h)];
719
+ return o.resolve && o.resolve(b), b;
720
+ }
721
+ } catch (u) {
722
+ const h = [u, _];
723
+ return o.reject && o.reject(h), h;
724
+ }
725
+ }, l = async (i) => (n.value = !1, t.value.length === 0 ? (r.value = i, e.value = null, [null, O(r.value)]) : s(i, 0)), p = () => new Promise((i, c) => {
726
+ o.reject = c, o.resolve = i, n.value = !0;
727
+ }), g = () => {
728
+ if (n.value) {
729
+ n.value = !1;
730
+ const i = a.value.findIndex((c) => c.data === _);
731
+ return s(
732
+ a.value[Math.max(i - 1, 0)].data,
733
+ i
734
+ );
735
+ }
664
736
  };
665
737
  return {
666
- error: w(e),
667
- result: w(r),
668
- statusList: w(s),
669
- start: a,
670
- suspend: f
738
+ error: $(e),
739
+ result: $(r),
740
+ statusList: $(a),
741
+ isSuspend: $(n),
742
+ start: l,
743
+ suspend: p,
744
+ resume: g
671
745
  };
672
746
  }
673
- function ao(t) {
674
- if (!O(t))
747
+ function io(t) {
748
+ const e = j(t);
749
+ if (!M(e.value))
675
750
  throw new Error("Entry must be a list of functions");
676
- const e = d(null), r = d(), n = d(!1), s = d(L(t)), o = (i) => {
677
- if (i) {
678
- if (!O(i))
679
- throw new Error("Entry must be a list of functions");
680
- t = i;
751
+ const r = j(null), n = j(), o = j(!1), a = {
752
+ resolve: null,
753
+ reject: null
754
+ }, s = j(
755
+ F(e.value)
756
+ ), l = (u) => {
757
+ e.value = u, s.value = F(e.value);
758
+ }, p = async (u, h = 0) => {
759
+ try {
760
+ a.reject = null, a.resolve = null;
761
+ const [b, y] = await it(
762
+ ct(e.value, s, o, h, u)
763
+ );
764
+ if (b) {
765
+ r.value = b, n.value = _;
766
+ const v = [b, _];
767
+ return a.reject && a.reject(v), v;
768
+ } else {
769
+ n.value = y, r.value = null;
770
+ const v = [null, O(y)];
771
+ return a.resolve && a.resolve(v), v;
772
+ }
773
+ } catch (b) {
774
+ const y = [b, _];
775
+ return a.reject && a.reject(y), y;
776
+ }
777
+ }, g = async (u) => (o.value = !1, e.value.length === 0 ? (n.value = u, r.value = null, [null, O(n.value)]) : p(u, 0)), i = () => new Promise((u, h) => {
778
+ a.reject = h, a.resolve = u, o.value = !0;
779
+ }), c = () => {
780
+ if (o.value) {
781
+ o.value = !1;
782
+ const u = s.value.findIndex((h) => h.data === _);
783
+ return p(
784
+ s.value[Math.max(u - 1, 0)].data,
785
+ u
786
+ );
787
+ }
788
+ };
789
+ return {
790
+ error: $(r),
791
+ result: $(n),
792
+ statusList: $(s),
793
+ isSuspend: $(o),
794
+ start: g,
795
+ suspend: i,
796
+ resume: c,
797
+ update: l
798
+ };
799
+ }
800
+ function co(t) {
801
+ if (!Ct(t))
802
+ throw new Error("Entry must be a ref");
803
+ if (!M(t.value))
804
+ throw new Error("Entry must be a list of functions");
805
+ const e = j(null), r = j(), n = j(!1), o = {
806
+ resolve: null,
807
+ reject: null
808
+ }, a = j(
809
+ F(t.value)
810
+ );
811
+ Ft(
812
+ t,
813
+ () => {
814
+ a.value = F(t.value);
815
+ },
816
+ {
817
+ deep: !0
818
+ }
819
+ );
820
+ const s = (i, c = 0, u) => {
821
+ let h = [
822
+ null,
823
+ i
824
+ ];
825
+ try {
826
+ o.reject = null, o.resolve = null;
827
+ const b = (y) => {
828
+ const [v, T] = y;
829
+ if (v) {
830
+ e.value = v, r.value = _;
831
+ const A = [v, _];
832
+ o.reject && o.reject(A), h = A, typeof u == "function" && u(A);
833
+ } else {
834
+ r.value = T, e.value = null;
835
+ const A = [null, O(T)];
836
+ o.resolve && o.resolve(A), h = A, typeof u == "function" && u(A);
837
+ }
838
+ };
839
+ ne(t.value, a, n, c, i, b);
840
+ } catch (b) {
841
+ const y = [b, _];
842
+ o.reject && o.reject(y), h = y, typeof u == "function" && u(y);
843
+ }
844
+ return h;
845
+ }, l = (i, c) => {
846
+ if (n.value = !1, t.value.length === 0) {
847
+ r.value = i, e.value = null;
848
+ const u = [
849
+ null,
850
+ O(r.value)
851
+ ];
852
+ return typeof c == "function" && c(u), u;
853
+ }
854
+ return s(i, 0, c);
855
+ }, p = () => new Promise((i, c) => {
856
+ o.reject = c, o.resolve = i, n.value = !0;
857
+ }), g = (i) => {
858
+ if (n.value) {
859
+ n.value = !1;
860
+ const c = a.value.findIndex((u) => u.data === _);
861
+ return s(
862
+ a.value[Math.max(c - 1, 0)].data,
863
+ c,
864
+ i
865
+ );
681
866
  }
682
- s.value = L(t);
683
- }, a = async (i) => {
684
- if (n.value = !1, o(), t.length === 0)
685
- return r.value = i, e.value = null, [null, F(i)];
686
- const [l, h] = await et(
687
- rt(t, s, n, 0, i)
688
- );
689
- return l ? (e.value = l, r.value = null, [l, void 0]) : (r.value = h, e.value = null, [null, F(h)]);
690
- }, f = () => {
691
- n.value = !0;
692
867
  };
693
868
  return {
694
- error: w(e),
695
- result: w(r),
696
- statusList: w(s),
697
- start: a,
698
- suspend: f,
699
- update: o
869
+ error: $(e),
870
+ result: $(r),
871
+ statusList: $(a),
872
+ isSuspend: $(n),
873
+ start: l,
874
+ suspend: p,
875
+ resume: g
700
876
  };
701
877
  }
702
878
  export {
703
- ao as useOrderFun,
704
- no as useWatchOrderFun
879
+ io as useOrderFun,
880
+ uo as useWatchOrderFun,
881
+ co as useWatchOrderFunSync
705
882
  };