yann-useorderfun 0.1.0 → 0.1.2
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/README.md +53 -5
- package/dist/index.js +424 -381
- package/dist/index.umd.js +2 -2
- package/index.d.ts +49 -0
- package/package.json +8 -2
package/dist/index.js
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
/*! yann-useorderfun v0.1.
|
|
2
|
-
import { ref as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
var
|
|
6
|
-
const p =
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
var e =
|
|
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];
|
|
12
12
|
try {
|
|
13
|
-
t[
|
|
13
|
+
t[E] = void 0;
|
|
14
14
|
var n = !0;
|
|
15
15
|
} catch {
|
|
16
16
|
}
|
|
17
|
-
var
|
|
18
|
-
return n && (e ? t[
|
|
17
|
+
var s = se.call(t);
|
|
18
|
+
return n && (e ? t[E] = r : delete t[E]), s;
|
|
19
19
|
}
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
return
|
|
20
|
+
var ce = Object.prototype, ue = ce.toString;
|
|
21
|
+
function fe(t) {
|
|
22
|
+
return ue.call(t);
|
|
23
23
|
}
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
return t == null ? t === void 0 ?
|
|
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);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function D(t) {
|
|
29
29
|
return t != null && typeof t == "object";
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
const
|
|
33
|
-
function
|
|
31
|
+
var ge = Array.isArray;
|
|
32
|
+
const O = ge;
|
|
33
|
+
function U(t) {
|
|
34
34
|
var e = typeof t;
|
|
35
35
|
return t != null && (e == "object" || e == "function");
|
|
36
36
|
}
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
if (!
|
|
37
|
+
var he = "[object AsyncFunction]", be = "[object Function]", de = "[object GeneratorFunction]", ye = "[object Proxy]";
|
|
38
|
+
function It(t) {
|
|
39
|
+
if (!U(t))
|
|
40
40
|
return !1;
|
|
41
|
-
var e =
|
|
42
|
-
return e ==
|
|
41
|
+
var e = M(t);
|
|
42
|
+
return e == be || e == de || e == he || e == ye;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
const
|
|
46
|
-
var
|
|
47
|
-
var t = /[^.]+$/.exec(
|
|
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 || "");
|
|
48
48
|
return t ? "Symbol(src)_1." + t : "";
|
|
49
49
|
}();
|
|
50
|
-
function
|
|
51
|
-
return !!
|
|
50
|
+
function $e(t) {
|
|
51
|
+
return !!it && it in t;
|
|
52
52
|
}
|
|
53
|
-
var
|
|
54
|
-
function
|
|
53
|
+
var _e = Function.prototype, Te = _e.toString;
|
|
54
|
+
function _(t) {
|
|
55
55
|
if (t != null) {
|
|
56
56
|
try {
|
|
57
|
-
return
|
|
57
|
+
return Te.call(t);
|
|
58
58
|
} catch {
|
|
59
59
|
}
|
|
60
60
|
try {
|
|
@@ -64,255 +64,255 @@ function v(t) {
|
|
|
64
64
|
}
|
|
65
65
|
return "";
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
"^" +
|
|
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.*?") + "$"
|
|
69
69
|
);
|
|
70
|
-
function
|
|
71
|
-
if (!
|
|
70
|
+
function Ee(t) {
|
|
71
|
+
if (!U(t) || $e(t))
|
|
72
72
|
return !1;
|
|
73
|
-
var e =
|
|
74
|
-
return e.test(
|
|
73
|
+
var e = It(t) ? Pe : we;
|
|
74
|
+
return e.test(_(t));
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Ce(t, e) {
|
|
77
77
|
return t == null ? void 0 : t[e];
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
var r =
|
|
81
|
-
return
|
|
79
|
+
function T(t, e) {
|
|
80
|
+
var r = Ce(t, e);
|
|
81
|
+
return Ee(r) ? r : void 0;
|
|
82
82
|
}
|
|
83
|
-
var
|
|
84
|
-
const
|
|
85
|
-
var
|
|
83
|
+
var Ie = T(p, "WeakMap");
|
|
84
|
+
const H = Ie;
|
|
85
|
+
var ct = Object.create, xe = function() {
|
|
86
86
|
function t() {
|
|
87
87
|
}
|
|
88
88
|
return function(e) {
|
|
89
|
-
if (!
|
|
89
|
+
if (!U(e))
|
|
90
90
|
return {};
|
|
91
|
-
if (
|
|
92
|
-
return
|
|
91
|
+
if (ct)
|
|
92
|
+
return ct(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
|
|
99
|
-
function
|
|
98
|
+
const Fe = xe;
|
|
99
|
+
function Me(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
|
|
105
|
+
var De = function() {
|
|
106
106
|
try {
|
|
107
|
-
var t =
|
|
107
|
+
var t = T(Object, "defineProperty");
|
|
108
108
|
return t({}, "", {}), t;
|
|
109
109
|
} catch {
|
|
110
110
|
}
|
|
111
111
|
}();
|
|
112
|
-
const
|
|
113
|
-
function
|
|
112
|
+
const ut = De;
|
|
113
|
+
function Ue(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
|
|
119
|
-
function
|
|
118
|
+
var Be = 9007199254740991, Le = /^(?:0|[1-9]\d*)$/;
|
|
119
|
+
function Ge(t, e) {
|
|
120
120
|
var r = typeof t;
|
|
121
|
-
return e = e ??
|
|
121
|
+
return e = e ?? Be, !!e && (r == "number" || r != "symbol" && Le.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
e == "__proto__" &&
|
|
123
|
+
function xt(t, e, r) {
|
|
124
|
+
e == "__proto__" && ut ? ut(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
|
|
131
|
+
function Ft(t, e) {
|
|
132
132
|
return t === e || t !== t && e !== e;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
135
|
-
function
|
|
134
|
+
var Ne = Object.prototype, ze = Ne.hasOwnProperty;
|
|
135
|
+
function Mt(t, e, r) {
|
|
136
136
|
var n = t[e];
|
|
137
|
-
(!(
|
|
137
|
+
(!(ze.call(t, e) && Ft(n, r)) || r === void 0 && !(e in t)) && xt(t, e, r);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
var
|
|
139
|
+
function G(t, e, r, n) {
|
|
140
|
+
var s = !r;
|
|
141
141
|
r || (r = {});
|
|
142
|
-
for (var
|
|
143
|
-
var
|
|
144
|
-
|
|
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);
|
|
145
145
|
}
|
|
146
146
|
return r;
|
|
147
147
|
}
|
|
148
|
-
var
|
|
149
|
-
function
|
|
150
|
-
return typeof t == "number" && t > -1 && t % 1 == 0 && t <=
|
|
148
|
+
var Re = 9007199254740991;
|
|
149
|
+
function Dt(t) {
|
|
150
|
+
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Re;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
return t != null &&
|
|
152
|
+
function Ut(t) {
|
|
153
|
+
return t != null && Dt(t.length) && !It(t);
|
|
154
154
|
}
|
|
155
|
-
var
|
|
156
|
-
function
|
|
157
|
-
var e = t && t.constructor, r = typeof e == "function" && e.prototype ||
|
|
155
|
+
var Ke = Object.prototype;
|
|
156
|
+
function Y(t) {
|
|
157
|
+
var e = t && t.constructor, r = typeof e == "function" && e.prototype || Ke;
|
|
158
158
|
return t === r;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function He(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
|
|
166
|
-
function
|
|
167
|
-
return
|
|
165
|
+
var Ve = "[object Arguments]";
|
|
166
|
+
function ft(t) {
|
|
167
|
+
return D(t) && M(t) == Ve;
|
|
168
168
|
}
|
|
169
|
-
var
|
|
169
|
+
var Bt = Object.prototype, We = Bt.hasOwnProperty, qe = Bt.propertyIsEnumerable, Ye = ft(function() {
|
|
170
170
|
return arguments;
|
|
171
|
-
}()) ?
|
|
172
|
-
return
|
|
171
|
+
}()) ? ft : function(t) {
|
|
172
|
+
return D(t) && We.call(t, "callee") && !qe.call(t, "callee");
|
|
173
173
|
};
|
|
174
|
-
const
|
|
175
|
-
function
|
|
174
|
+
const Je = Ye;
|
|
175
|
+
function Xe() {
|
|
176
176
|
return !1;
|
|
177
177
|
}
|
|
178
|
-
var
|
|
179
|
-
const
|
|
180
|
-
var
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
function
|
|
184
|
-
return
|
|
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)];
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function J(t) {
|
|
187
187
|
return function(e) {
|
|
188
188
|
return t(e);
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
var
|
|
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() {
|
|
192
192
|
try {
|
|
193
|
-
var t =
|
|
194
|
-
return t ||
|
|
193
|
+
var t = C && C.require && C.require("util").types;
|
|
194
|
+
return t || K && K.binding && K.binding("util");
|
|
195
195
|
} catch {
|
|
196
196
|
}
|
|
197
197
|
}();
|
|
198
|
-
const
|
|
199
|
-
var
|
|
200
|
-
const
|
|
201
|
-
var
|
|
202
|
-
function
|
|
203
|
-
var r =
|
|
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
204
|
for (var l in t)
|
|
205
|
-
(e ||
|
|
205
|
+
(e || Cr.call(t, l)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
206
206
|
(l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
return
|
|
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
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Rt(t, e) {
|
|
213
213
|
return function(r) {
|
|
214
214
|
return t(e(r));
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
var
|
|
218
|
-
const
|
|
219
|
-
var
|
|
220
|
-
function
|
|
221
|
-
if (!
|
|
222
|
-
return
|
|
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);
|
|
223
223
|
var e = [];
|
|
224
224
|
for (var r in Object(t))
|
|
225
|
-
|
|
225
|
+
Mr.call(t, r) && r != "constructor" && e.push(r);
|
|
226
226
|
return e;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
return
|
|
228
|
+
function X(t) {
|
|
229
|
+
return Ut(t) ? zt(t) : Dr(t);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Ur(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
|
|
239
|
-
function
|
|
240
|
-
if (!
|
|
241
|
-
return
|
|
242
|
-
var e =
|
|
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 = [];
|
|
243
243
|
for (var n in t)
|
|
244
|
-
n == "constructor" && (e || !
|
|
244
|
+
n == "constructor" && (e || !Lr.call(t, n)) || r.push(n);
|
|
245
245
|
return r;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return
|
|
247
|
+
function Z(t) {
|
|
248
|
+
return Ut(t) ? zt(t, !0) : Gr(t);
|
|
249
249
|
}
|
|
250
|
-
var
|
|
251
|
-
const
|
|
252
|
-
function
|
|
253
|
-
this.__data__ =
|
|
250
|
+
var Nr = T(Object, "create");
|
|
251
|
+
const I = Nr;
|
|
252
|
+
function zr() {
|
|
253
|
+
this.__data__ = I ? I(null) : {}, this.size = 0;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Rr(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
|
|
260
|
-
function
|
|
259
|
+
var Kr = "__lodash_hash_undefined__", Hr = Object.prototype, Vr = Hr.hasOwnProperty;
|
|
260
|
+
function Wr(t) {
|
|
261
261
|
var e = this.__data__;
|
|
262
|
-
if (
|
|
262
|
+
if (I) {
|
|
263
263
|
var r = e[t];
|
|
264
|
-
return r ===
|
|
264
|
+
return r === Kr ? void 0 : r;
|
|
265
265
|
}
|
|
266
|
-
return
|
|
266
|
+
return Vr.call(e, t) ? e[t] : void 0;
|
|
267
267
|
}
|
|
268
|
-
var
|
|
269
|
-
function
|
|
268
|
+
var qr = Object.prototype, Yr = qr.hasOwnProperty;
|
|
269
|
+
function Jr(t) {
|
|
270
270
|
var e = this.__data__;
|
|
271
|
-
return
|
|
271
|
+
return I ? e[t] !== void 0 : Yr.call(e, t);
|
|
272
272
|
}
|
|
273
|
-
var
|
|
274
|
-
function
|
|
273
|
+
var Xr = "__lodash_hash_undefined__";
|
|
274
|
+
function Zr(t, e) {
|
|
275
275
|
var r = this.__data__;
|
|
276
|
-
return this.size += this.has(t) ? 0 : 1, r[t] =
|
|
276
|
+
return this.size += this.has(t) ? 0 : 1, r[t] = I && e === void 0 ? Xr : e, this;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function $(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
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
function
|
|
285
|
+
$.prototype.clear = zr;
|
|
286
|
+
$.prototype.delete = Rr;
|
|
287
|
+
$.prototype.get = Wr;
|
|
288
|
+
$.prototype.has = Jr;
|
|
289
|
+
$.prototype.set = Zr;
|
|
290
|
+
function Qr() {
|
|
291
291
|
this.__data__ = [], this.size = 0;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function N(t, e) {
|
|
294
294
|
for (var r = t.length; r--; )
|
|
295
|
-
if (
|
|
295
|
+
if (Ft(t[r][0], e))
|
|
296
296
|
return r;
|
|
297
297
|
return -1;
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
301
|
-
var e = this.__data__, r =
|
|
299
|
+
var kr = Array.prototype, tn = kr.splice;
|
|
300
|
+
function en(t) {
|
|
301
|
+
var e = this.__data__, r = N(e, t);
|
|
302
302
|
if (r < 0)
|
|
303
303
|
return !1;
|
|
304
304
|
var n = e.length - 1;
|
|
305
|
-
return r == n ? e.pop() :
|
|
305
|
+
return r == n ? e.pop() : tn.call(e, r, 1), --this.size, !0;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
var e = this.__data__, r =
|
|
307
|
+
function rn(t) {
|
|
308
|
+
var e = this.__data__, r = N(e, t);
|
|
309
309
|
return r < 0 ? void 0 : e[r][1];
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
return
|
|
311
|
+
function nn(t) {
|
|
312
|
+
return N(this.__data__, t) > -1;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
var r = this.__data__, n =
|
|
314
|
+
function an(t, e) {
|
|
315
|
+
var r = this.__data__, n = N(r, t);
|
|
316
316
|
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
|
|
317
317
|
}
|
|
318
318
|
function g(t) {
|
|
@@ -322,341 +322,384 @@ function g(t) {
|
|
|
322
322
|
this.set(n[0], n[1]);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
g.prototype.clear =
|
|
326
|
-
g.prototype.delete =
|
|
327
|
-
g.prototype.get =
|
|
328
|
-
g.prototype.has =
|
|
329
|
-
g.prototype.set =
|
|
330
|
-
var
|
|
331
|
-
const
|
|
332
|
-
function
|
|
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() {
|
|
333
333
|
this.size = 0, this.__data__ = {
|
|
334
|
-
hash: new
|
|
335
|
-
map: new (
|
|
336
|
-
string: new
|
|
334
|
+
hash: new $(),
|
|
335
|
+
map: new (x || g)(),
|
|
336
|
+
string: new $()
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function cn(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
|
|
343
|
+
function z(t, e) {
|
|
344
344
|
var r = t.__data__;
|
|
345
|
-
return
|
|
345
|
+
return cn(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
var e =
|
|
347
|
+
function un(t) {
|
|
348
|
+
var e = z(this, t).delete(t);
|
|
349
349
|
return this.size -= e ? 1 : 0, e;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
return
|
|
351
|
+
function fn(t) {
|
|
352
|
+
return z(this, t).get(t);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
return
|
|
354
|
+
function ln(t) {
|
|
355
|
+
return z(this, t).has(t);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
var r =
|
|
357
|
+
function pn(t, e) {
|
|
358
|
+
var r = z(this, t), n = r.size;
|
|
359
359
|
return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function S(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
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
function
|
|
374
|
-
for (var r = -1, n = e.length,
|
|
375
|
-
t[
|
|
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];
|
|
376
376
|
return t;
|
|
377
377
|
}
|
|
378
|
-
var
|
|
379
|
-
const
|
|
380
|
-
function
|
|
378
|
+
var gn = Rt(Object.getPrototypeOf, Object);
|
|
379
|
+
const Ht = gn;
|
|
380
|
+
function hn() {
|
|
381
381
|
this.__data__ = new g(), this.size = 0;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function bn(t) {
|
|
384
384
|
var e = this.__data__, r = e.delete(t);
|
|
385
385
|
return this.size = e.size, r;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function dn(t) {
|
|
388
388
|
return this.__data__.get(t);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function yn(t) {
|
|
391
391
|
return this.__data__.has(t);
|
|
392
392
|
}
|
|
393
|
-
var
|
|
394
|
-
function
|
|
393
|
+
var vn = 200;
|
|
394
|
+
function $n(t, e) {
|
|
395
395
|
var r = this.__data__;
|
|
396
396
|
if (r instanceof g) {
|
|
397
397
|
var n = r.__data__;
|
|
398
|
-
if (!
|
|
398
|
+
if (!x || n.length < vn - 1)
|
|
399
399
|
return n.push([t, e]), this.size = ++r.size, this;
|
|
400
|
-
r = this.__data__ = new
|
|
400
|
+
r = this.__data__ = new S(n);
|
|
401
401
|
}
|
|
402
402
|
return r.set(t, e), this.size = r.size, this;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function P(t) {
|
|
405
405
|
var e = this.__data__ = new g(t);
|
|
406
406
|
this.size = e.size;
|
|
407
407
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
function
|
|
414
|
-
return t &&
|
|
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);
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
return t &&
|
|
416
|
+
function Tn(t, e) {
|
|
417
|
+
return t && G(e, Z(e), t);
|
|
418
418
|
}
|
|
419
|
-
var
|
|
420
|
-
function
|
|
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) {
|
|
421
421
|
if (e)
|
|
422
422
|
return t.slice();
|
|
423
|
-
var r = t.length, n =
|
|
423
|
+
var r = t.length, n = dt ? dt(r) : new t.constructor(r);
|
|
424
424
|
return t.copy(n), n;
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
for (var r = -1, n = t == null ? 0 : t.length,
|
|
426
|
+
function mn(t, e) {
|
|
427
|
+
for (var r = -1, n = t == null ? 0 : t.length, s = 0, o = []; ++r < n; ) {
|
|
428
428
|
var a = t[r];
|
|
429
|
-
e(a, r, t) && (s
|
|
429
|
+
e(a, r, t) && (o[s++] = a);
|
|
430
430
|
}
|
|
431
|
-
return
|
|
431
|
+
return o;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Wt() {
|
|
434
434
|
return [];
|
|
435
435
|
}
|
|
436
|
-
var
|
|
437
|
-
return t == null ? [] : (t = Object(t),
|
|
438
|
-
return
|
|
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);
|
|
439
439
|
}));
|
|
440
|
-
} :
|
|
441
|
-
const
|
|
442
|
-
function
|
|
443
|
-
return
|
|
440
|
+
} : Wt;
|
|
441
|
+
const Q = Sn;
|
|
442
|
+
function Pn(t, e) {
|
|
443
|
+
return G(t, Q(t), e);
|
|
444
444
|
}
|
|
445
|
-
var
|
|
445
|
+
var En = Object.getOwnPropertySymbols, Cn = En ? function(t) {
|
|
446
446
|
for (var e = []; t; )
|
|
447
|
-
|
|
447
|
+
Kt(e, Q(t)), t = Ht(t);
|
|
448
448
|
return e;
|
|
449
|
-
} :
|
|
450
|
-
const
|
|
451
|
-
function
|
|
452
|
-
return
|
|
449
|
+
} : Wt;
|
|
450
|
+
const qt = Cn;
|
|
451
|
+
function In(t, e) {
|
|
452
|
+
return G(t, qt(t), e);
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Yt(t, e, r) {
|
|
455
455
|
var n = e(t);
|
|
456
|
-
return
|
|
457
|
-
}
|
|
458
|
-
function
|
|
459
|
-
return
|
|
460
|
-
}
|
|
461
|
-
function
|
|
462
|
-
return
|
|
463
|
-
}
|
|
464
|
-
var
|
|
465
|
-
const
|
|
466
|
-
var
|
|
467
|
-
const
|
|
468
|
-
var
|
|
469
|
-
const
|
|
470
|
-
var
|
|
471
|
-
(
|
|
472
|
-
var e =
|
|
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) : "";
|
|
473
473
|
if (n)
|
|
474
474
|
switch (n) {
|
|
475
|
-
case
|
|
476
|
-
return
|
|
477
|
-
case Un:
|
|
478
|
-
return bt;
|
|
479
|
-
case Bn:
|
|
480
|
-
return ht;
|
|
475
|
+
case Ln:
|
|
476
|
+
return jt;
|
|
481
477
|
case Gn:
|
|
482
|
-
return
|
|
478
|
+
return vt;
|
|
483
479
|
case Nn:
|
|
484
|
-
return
|
|
480
|
+
return $t;
|
|
481
|
+
case zn:
|
|
482
|
+
return _t;
|
|
483
|
+
case Rn:
|
|
484
|
+
return Tt;
|
|
485
485
|
}
|
|
486
486
|
return e;
|
|
487
487
|
});
|
|
488
|
-
const
|
|
489
|
-
var
|
|
490
|
-
function
|
|
488
|
+
const k = v;
|
|
489
|
+
var Kn = Object.prototype, Hn = Kn.hasOwnProperty;
|
|
490
|
+
function Vn(t) {
|
|
491
491
|
var e = t.length, r = new t.constructor(e);
|
|
492
|
-
return e && typeof t[0] == "string" &&
|
|
492
|
+
return e && typeof t[0] == "string" && Hn.call(t, "index") && (r.index = t.index, r.input = t.input), r;
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
const
|
|
496
|
-
function
|
|
494
|
+
var Wn = p.Uint8Array;
|
|
495
|
+
const wt = Wn;
|
|
496
|
+
function tt(t) {
|
|
497
497
|
var e = new t.constructor(t.byteLength);
|
|
498
|
-
return new
|
|
498
|
+
return new wt(e).set(new wt(t)), e;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
501
|
-
var r = e ?
|
|
500
|
+
function qn(t, e) {
|
|
501
|
+
var r = e ? tt(t.buffer) : t.buffer;
|
|
502
502
|
return new t.constructor(r, t.byteOffset, t.byteLength);
|
|
503
503
|
}
|
|
504
|
-
var
|
|
505
|
-
function
|
|
506
|
-
var e = new t.constructor(t.source,
|
|
504
|
+
var Yn = /\w*$/;
|
|
505
|
+
function Jn(t) {
|
|
506
|
+
var e = new t.constructor(t.source, Yn.exec(t));
|
|
507
507
|
return e.lastIndex = t.lastIndex, e;
|
|
508
508
|
}
|
|
509
|
-
var
|
|
510
|
-
function
|
|
511
|
-
return
|
|
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)) : {};
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
var r = e ?
|
|
513
|
+
function Zn(t, e) {
|
|
514
|
+
var r = e ? tt(t.buffer) : t.buffer;
|
|
515
515
|
return new t.constructor(r, t.byteOffset, t.length);
|
|
516
516
|
}
|
|
517
|
-
var
|
|
518
|
-
function
|
|
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) {
|
|
519
519
|
var n = t.constructor;
|
|
520
520
|
switch (e) {
|
|
521
|
-
case
|
|
522
|
-
return
|
|
523
|
-
case
|
|
524
|
-
case
|
|
521
|
+
case sa:
|
|
522
|
+
return tt(t);
|
|
523
|
+
case Qn:
|
|
524
|
+
case kn:
|
|
525
525
|
return new n(+t);
|
|
526
|
-
case aa:
|
|
527
|
-
return Hn(t, r);
|
|
528
|
-
case oa:
|
|
529
526
|
case ia:
|
|
530
|
-
|
|
527
|
+
return qn(t, r);
|
|
531
528
|
case ca:
|
|
532
529
|
case ua:
|
|
533
530
|
case fa:
|
|
534
531
|
case la:
|
|
535
532
|
case pa:
|
|
536
533
|
case ga:
|
|
537
|
-
|
|
538
|
-
case
|
|
534
|
+
case ha:
|
|
535
|
+
case ba:
|
|
536
|
+
case da:
|
|
537
|
+
return Zn(t, r);
|
|
538
|
+
case ta:
|
|
539
539
|
return new n();
|
|
540
|
-
case Qn:
|
|
541
540
|
case ea:
|
|
541
|
+
case aa:
|
|
542
542
|
return new n(t);
|
|
543
|
-
case kn:
|
|
544
|
-
return Wn(t);
|
|
545
|
-
case ta:
|
|
546
|
-
return new n();
|
|
547
543
|
case ra:
|
|
548
|
-
return
|
|
544
|
+
return Jn(t);
|
|
545
|
+
case na:
|
|
546
|
+
return new n();
|
|
547
|
+
case oa:
|
|
548
|
+
return Xn(t);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
return typeof t.constructor == "function" && !
|
|
553
|
-
}
|
|
554
|
-
var
|
|
555
|
-
function
|
|
556
|
-
return
|
|
557
|
-
}
|
|
558
|
-
var
|
|
559
|
-
const
|
|
560
|
-
var
|
|
561
|
-
function
|
|
562
|
-
return
|
|
563
|
-
}
|
|
564
|
-
var
|
|
565
|
-
const
|
|
566
|
-
var
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
function
|
|
570
|
-
var a,
|
|
571
|
-
if (r && (a =
|
|
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
572
|
return a;
|
|
573
|
-
if (!
|
|
573
|
+
if (!U(t))
|
|
574
574
|
return t;
|
|
575
|
-
var
|
|
576
|
-
if (
|
|
577
|
-
if (a =
|
|
578
|
-
return
|
|
575
|
+
var h = O(t);
|
|
576
|
+
if (h) {
|
|
577
|
+
if (a = Vn(t), !f)
|
|
578
|
+
return Me(t, a);
|
|
579
579
|
} else {
|
|
580
|
-
var
|
|
581
|
-
if (
|
|
582
|
-
return
|
|
583
|
-
if (
|
|
584
|
-
if (a =
|
|
585
|
-
return
|
|
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));
|
|
586
586
|
} else {
|
|
587
|
-
if (!
|
|
588
|
-
return
|
|
589
|
-
a =
|
|
587
|
+
if (!c[j])
|
|
588
|
+
return s ? t : {};
|
|
589
|
+
a = ya(t, j, f);
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
return
|
|
596
|
-
|
|
597
|
-
a.add(
|
|
598
|
-
}) :
|
|
599
|
-
a.set(
|
|
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));
|
|
600
600
|
});
|
|
601
|
-
var
|
|
602
|
-
return
|
|
603
|
-
|
|
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
604
|
}), a;
|
|
605
605
|
}
|
|
606
|
-
var
|
|
607
|
-
function
|
|
608
|
-
return
|
|
606
|
+
var ka = 1, to = 4;
|
|
607
|
+
function F(t) {
|
|
608
|
+
return B(t, ka | to);
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function et(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
|
|
618
|
-
Promise.resolve(
|
|
619
|
-
}),
|
|
620
|
-
if (!
|
|
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))
|
|
621
621
|
return e.value[t.length - 1].data;
|
|
622
|
-
const
|
|
623
|
-
if (typeof
|
|
624
|
-
const [a,
|
|
622
|
+
const o = t[n];
|
|
623
|
+
if (typeof o == "function") {
|
|
624
|
+
const [a, f] = await et(eo(o, s));
|
|
625
625
|
if (a)
|
|
626
626
|
throw e.value[n].status = "rejected", new Error(n + "");
|
|
627
627
|
{
|
|
628
|
-
e.value[n].data =
|
|
629
|
-
const
|
|
630
|
-
return
|
|
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;
|
|
631
631
|
}
|
|
632
632
|
} else
|
|
633
633
|
throw e.value[n].status = "rejected", new Error(n + "");
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
|
|
634
|
+
}, L = (t) => t.map(() => ({
|
|
635
|
+
status: "unStart",
|
|
636
|
+
data: void 0
|
|
637
|
+
}));
|
|
638
|
+
function no(t) {
|
|
639
|
+
if (!kt(t))
|
|
640
|
+
throw new Error("Entry must be a ref");
|
|
641
|
+
if (!O(t.value))
|
|
642
|
+
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(
|
|
647
|
+
t,
|
|
648
|
+
() => {
|
|
649
|
+
o();
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
deep: !0
|
|
653
|
+
}
|
|
654
|
+
);
|
|
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;
|
|
664
|
+
};
|
|
665
|
+
return {
|
|
666
|
+
error: w(e),
|
|
667
|
+
result: w(r),
|
|
668
|
+
statusList: w(s),
|
|
669
|
+
start: a,
|
|
670
|
+
suspend: f
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
function ao(t) {
|
|
674
|
+
if (!O(t))
|
|
637
675
|
throw new Error("Entry must be a list of functions");
|
|
638
|
-
const e =
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
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;
|
|
681
|
+
}
|
|
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)
|
|
647
688
|
);
|
|
648
|
-
return
|
|
649
|
-
},
|
|
689
|
+
return l ? (e.value = l, r.value = null, [l, void 0]) : (r.value = h, e.value = null, [null, F(h)]);
|
|
690
|
+
}, f = () => {
|
|
650
691
|
n.value = !0;
|
|
651
692
|
};
|
|
652
693
|
return {
|
|
653
|
-
error:
|
|
654
|
-
result:
|
|
655
|
-
statusList:
|
|
656
|
-
start:
|
|
657
|
-
suspend:
|
|
694
|
+
error: w(e),
|
|
695
|
+
result: w(r),
|
|
696
|
+
statusList: w(s),
|
|
697
|
+
start: a,
|
|
698
|
+
suspend: f,
|
|
699
|
+
update: o
|
|
658
700
|
};
|
|
659
701
|
}
|
|
660
702
|
export {
|
|
661
|
-
|
|
703
|
+
ao as useOrderFun,
|
|
704
|
+
no as useWatchOrderFun
|
|
662
705
|
};
|