@huyooo/ui 0.4.16 → 0.4.18
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/CustomTable-C6Xcn_J7.js +1355 -0
- package/dist/{FeedbackItem-oNJcZir4.js → FeedbackItem-DW2d-_P_.js} +1 -1
- package/dist/{FeedbackModal-QpDXtZBf.js → FeedbackModal-Bw9cdS2g.js} +542 -562
- package/dist/MessageHandle-BLiqnTvy.js +885 -0
- package/dist/{PaySubscriptions-MYoi8Ob_.js → PaySubscriptions-BS6gjndk.js} +1 -1
- package/dist/{ReferrerReferees-CFwb0s28.js → ReferrerReferees-E5Sq9dVw.js} +1 -1
- package/dist/{UserPanel-CvWoQ9nn.js → UserPanel-DAwBjfiK.js} +4 -4
- package/dist/common.js +5 -5
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +1 -0
- package/dist/feedback.js +2 -2
- package/dist/index.js +117 -118
- package/dist/message.js +16 -17
- package/dist/pay.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/CustomTable-DbiCOvmO.js +0 -1341
- package/dist/InfiniteLoading-BOurBPUR.js +0 -66
- package/dist/MessageHandle-cZ2FXsJ5.js +0 -827
|
@@ -1,1341 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { defineComponent as Re, ref as Ie, computed as Ve, onMounted as Ye, onBeforeUnmount as Je, createElementBlock as de, openBlock as ce, normalizeStyle as be, renderSlot as Fe, createVNode as Le, unref as me, withCtx as Ee, createElementVNode as ye, createCommentVNode as Se, Fragment as $e, renderList as Me, normalizeClass as Be, toDisplayString as De, createBlock as ke, createTextVNode as Xe, useSlots as Ze } from "vue";
|
|
8
|
-
import { Spin as Qe, Tooltip as Ke, Empty as et, Pagination as tt } from "@arco-design/web-vue";
|
|
9
|
-
import { c as Ue } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
10
|
-
import { _ as je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
var rt = { exports: {} };
|
|
12
|
-
(function(O, I) {
|
|
13
|
-
(function(L, v) {
|
|
14
|
-
O.exports = v();
|
|
15
|
-
})(Ue, function() {
|
|
16
|
-
var L = 1e3, v = 6e4, H = 36e5, F = "millisecond", C = "second", _ = "minute", X = "hour", $ = "day", P = "week", U = "month", R = "quarter", M = "year", Y = "date", m = "Invalid Date", k = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, W = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, x = {
|
|
17
|
-
name: "en",
|
|
18
|
-
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
19
|
-
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
20
|
-
ordinal: function(N) {
|
|
21
|
-
var g = ["th", "st", "nd", "rd"], d = N % 100;
|
|
22
|
-
return "[" + N + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
23
|
-
}
|
|
24
|
-
}, ie = function(N, g, d) {
|
|
25
|
-
var y = String(N);
|
|
26
|
-
return !y || y.length >= g ? N : "" + Array(g + 1 - y.length).join(d) + N;
|
|
27
|
-
}, he = {
|
|
28
|
-
s: ie,
|
|
29
|
-
z: function(N) {
|
|
30
|
-
var g = -N.utcOffset(), d = Math.abs(g), y = Math.floor(d / 60), w = d % 60;
|
|
31
|
-
return (g <= 0 ? "+" : "-") + ie(y, 2, "0") + ":" + ie(w, 2, "0");
|
|
32
|
-
},
|
|
33
|
-
m: function N(g, d) {
|
|
34
|
-
if (g.date() < d.date()) return -N(d, g);
|
|
35
|
-
var y = 12 * (d.year() - g.year()) + (d.month() - g.month()), w = g.clone().add(y, U), T = d - w < 0, D = g.clone().add(y + (T ? -1 : 1), U);
|
|
36
|
-
return +(-(y + (d - w) / (T ? w - D : D - w)) || 0);
|
|
37
|
-
},
|
|
38
|
-
a: function(N) {
|
|
39
|
-
return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
|
|
40
|
-
},
|
|
41
|
-
p: function(N) {
|
|
42
|
-
return {
|
|
43
|
-
M: U,
|
|
44
|
-
y: M,
|
|
45
|
-
w: P,
|
|
46
|
-
d: $,
|
|
47
|
-
D: Y,
|
|
48
|
-
h: X,
|
|
49
|
-
m: _,
|
|
50
|
-
s: C,
|
|
51
|
-
ms: F,
|
|
52
|
-
Q: R
|
|
53
|
-
}[N] || String(N || "").toLowerCase().replace(/s$/, "");
|
|
54
|
-
},
|
|
55
|
-
u: function(N) {
|
|
56
|
-
return N === void 0;
|
|
57
|
-
}
|
|
58
|
-
}, ee = "en", S = {};
|
|
59
|
-
S[ee] = x;
|
|
60
|
-
var B = "$isDayjsObject", Z = function(N) {
|
|
61
|
-
return N instanceof G || !(!N || !N[B]);
|
|
62
|
-
}, Q = function N(g, d, y) {
|
|
63
|
-
var w;
|
|
64
|
-
if (!g) return ee;
|
|
65
|
-
if (typeof g == "string") {
|
|
66
|
-
var T = g.toLowerCase();
|
|
67
|
-
S[T] && (w = T), d && (S[T] = d, w = T);
|
|
68
|
-
var D = g.split("-");
|
|
69
|
-
if (!w && D.length > 1) return N(D[0]);
|
|
70
|
-
} else {
|
|
71
|
-
var q = g.name;
|
|
72
|
-
S[q] = g, w = q;
|
|
73
|
-
}
|
|
74
|
-
return !y && w && (ee = w), w || !y && ee;
|
|
75
|
-
}, p = function(N, g) {
|
|
76
|
-
if (Z(N)) return N.clone();
|
|
77
|
-
var d = typeof g == "object" ? g : {};
|
|
78
|
-
return d.date = N, d.args = arguments, new G(d);
|
|
79
|
-
}, b = he;
|
|
80
|
-
b.l = Q, b.i = Z, b.w = function(N, g) {
|
|
81
|
-
return p(N, {
|
|
82
|
-
locale: g.$L,
|
|
83
|
-
utc: g.$u,
|
|
84
|
-
x: g.$x,
|
|
85
|
-
$offset: g.$offset
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
var G = function() {
|
|
89
|
-
function N(d) {
|
|
90
|
-
this.$L = Q(d.locale, null, !0), this.parse(d), this.$x = this.$x || d.x || {}, this[B] = !0;
|
|
91
|
-
}
|
|
92
|
-
var g = N.prototype;
|
|
93
|
-
return g.parse = function(d) {
|
|
94
|
-
this.$d = function(y) {
|
|
95
|
-
var w = y.date, T = y.utc;
|
|
96
|
-
if (w === null) return /* @__PURE__ */ new Date(NaN);
|
|
97
|
-
if (b.u(w)) return /* @__PURE__ */ new Date();
|
|
98
|
-
if (w instanceof Date) return new Date(w);
|
|
99
|
-
if (typeof w == "string" && !/Z$/i.test(w)) {
|
|
100
|
-
var D = w.match(k);
|
|
101
|
-
if (D) {
|
|
102
|
-
var q = D[2] - 1 || 0, V = (D[7] || "0").substring(0, 3);
|
|
103
|
-
return T ? new Date(Date.UTC(D[1], q, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, V)) : new Date(D[1], q, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, V);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return new Date(w);
|
|
107
|
-
}(d), this.init();
|
|
108
|
-
}, g.init = function() {
|
|
109
|
-
var d = this.$d;
|
|
110
|
-
this.$y = d.getFullYear(), this.$M = d.getMonth(), this.$D = d.getDate(), this.$W = d.getDay(), this.$H = d.getHours(), this.$m = d.getMinutes(), this.$s = d.getSeconds(), this.$ms = d.getMilliseconds();
|
|
111
|
-
}, g.$utils = function() {
|
|
112
|
-
return b;
|
|
113
|
-
}, g.isValid = function() {
|
|
114
|
-
return this.$d.toString() !== m;
|
|
115
|
-
}, g.isSame = function(d, y) {
|
|
116
|
-
var w = p(d);
|
|
117
|
-
return this.startOf(y) <= w && w <= this.endOf(y);
|
|
118
|
-
}, g.isAfter = function(d, y) {
|
|
119
|
-
return p(d) < this.startOf(y);
|
|
120
|
-
}, g.isBefore = function(d, y) {
|
|
121
|
-
return this.endOf(y) < p(d);
|
|
122
|
-
}, g.$g = function(d, y, w) {
|
|
123
|
-
return b.u(d) ? this[y] : this.set(w, d);
|
|
124
|
-
}, g.unix = function() {
|
|
125
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
126
|
-
}, g.valueOf = function() {
|
|
127
|
-
return this.$d.getTime();
|
|
128
|
-
}, g.startOf = function(d, y) {
|
|
129
|
-
var w = this, T = !!b.u(y) || y, D = b.p(d), q = function(ue, e) {
|
|
130
|
-
var t = b.w(w.$u ? Date.UTC(w.$y, e, ue) : new Date(w.$y, e, ue), w);
|
|
131
|
-
return T ? t : t.endOf($);
|
|
132
|
-
}, V = function(ue, e) {
|
|
133
|
-
return b.w(w.toDate()[ue].apply(w.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), w);
|
|
134
|
-
}, te = this.$W, h = this.$M, fe = this.$D, ve = "set" + (this.$u ? "UTC" : "");
|
|
135
|
-
switch (D) {
|
|
136
|
-
case M:
|
|
137
|
-
return T ? q(1, 0) : q(31, 11);
|
|
138
|
-
case U:
|
|
139
|
-
return T ? q(1, h) : q(0, h + 1);
|
|
140
|
-
case P:
|
|
141
|
-
var ge = this.$locale().weekStart || 0, oe = (te < ge ? te + 7 : te) - ge;
|
|
142
|
-
return q(T ? fe - oe : fe + (6 - oe), h);
|
|
143
|
-
case $:
|
|
144
|
-
case Y:
|
|
145
|
-
return V(ve + "Hours", 0);
|
|
146
|
-
case X:
|
|
147
|
-
return V(ve + "Minutes", 1);
|
|
148
|
-
case _:
|
|
149
|
-
return V(ve + "Seconds", 2);
|
|
150
|
-
case C:
|
|
151
|
-
return V(ve + "Milliseconds", 3);
|
|
152
|
-
default:
|
|
153
|
-
return this.clone();
|
|
154
|
-
}
|
|
155
|
-
}, g.endOf = function(d) {
|
|
156
|
-
return this.startOf(d, !1);
|
|
157
|
-
}, g.$set = function(d, y) {
|
|
158
|
-
var w, T = b.p(d), D = "set" + (this.$u ? "UTC" : ""), q = (w = {}, w[$] = D + "Date", w[Y] = D + "Date", w[U] = D + "Month", w[M] = D + "FullYear", w[X] = D + "Hours", w[_] = D + "Minutes", w[C] = D + "Seconds", w[F] = D + "Milliseconds", w)[T], V = T === $ ? this.$D + (y - this.$W) : y;
|
|
159
|
-
if (T === U || T === M) {
|
|
160
|
-
var te = this.clone().set(Y, 1);
|
|
161
|
-
te.$d[q](V), te.init(), this.$d = te.set(Y, Math.min(this.$D, te.daysInMonth())).$d;
|
|
162
|
-
} else q && this.$d[q](V);
|
|
163
|
-
return this.init(), this;
|
|
164
|
-
}, g.set = function(d, y) {
|
|
165
|
-
return this.clone().$set(d, y);
|
|
166
|
-
}, g.get = function(d) {
|
|
167
|
-
return this[b.p(d)]();
|
|
168
|
-
}, g.add = function(d, y) {
|
|
169
|
-
var w, T = this;
|
|
170
|
-
d = Number(d);
|
|
171
|
-
var D = b.p(y), q = function(h) {
|
|
172
|
-
var fe = p(T);
|
|
173
|
-
return b.w(fe.date(fe.date() + Math.round(h * d)), T);
|
|
174
|
-
};
|
|
175
|
-
if (D === U) return this.set(U, this.$M + d);
|
|
176
|
-
if (D === M) return this.set(M, this.$y + d);
|
|
177
|
-
if (D === $) return q(1);
|
|
178
|
-
if (D === P) return q(7);
|
|
179
|
-
var V = (w = {}, w[_] = v, w[X] = H, w[C] = L, w)[D] || 1, te = this.$d.getTime() + d * V;
|
|
180
|
-
return b.w(te, this);
|
|
181
|
-
}, g.subtract = function(d, y) {
|
|
182
|
-
return this.add(-1 * d, y);
|
|
183
|
-
}, g.format = function(d) {
|
|
184
|
-
var y = this, w = this.$locale();
|
|
185
|
-
if (!this.isValid()) return w.invalidDate || m;
|
|
186
|
-
var T = d || "YYYY-MM-DDTHH:mm:ssZ", D = b.z(this), q = this.$H, V = this.$m, te = this.$M, h = w.weekdays, fe = w.months, ve = w.meridiem, ge = function(e, t, r, u) {
|
|
187
|
-
return e && (e[t] || e(y, T)) || r[t].slice(0, u);
|
|
188
|
-
}, oe = function(e) {
|
|
189
|
-
return b.s(q % 12 || 12, e, "0");
|
|
190
|
-
}, ue = ve || function(e, t, r) {
|
|
191
|
-
var u = e < 12 ? "AM" : "PM";
|
|
192
|
-
return r ? u.toLowerCase() : u;
|
|
193
|
-
};
|
|
194
|
-
return T.replace(W, function(e, t) {
|
|
195
|
-
return t || function(r) {
|
|
196
|
-
switch (r) {
|
|
197
|
-
case "YY":
|
|
198
|
-
return String(y.$y).slice(-2);
|
|
199
|
-
case "YYYY":
|
|
200
|
-
return b.s(y.$y, 4, "0");
|
|
201
|
-
case "M":
|
|
202
|
-
return te + 1;
|
|
203
|
-
case "MM":
|
|
204
|
-
return b.s(te + 1, 2, "0");
|
|
205
|
-
case "MMM":
|
|
206
|
-
return ge(w.monthsShort, te, fe, 3);
|
|
207
|
-
case "MMMM":
|
|
208
|
-
return ge(fe, te);
|
|
209
|
-
case "D":
|
|
210
|
-
return y.$D;
|
|
211
|
-
case "DD":
|
|
212
|
-
return b.s(y.$D, 2, "0");
|
|
213
|
-
case "d":
|
|
214
|
-
return String(y.$W);
|
|
215
|
-
case "dd":
|
|
216
|
-
return ge(w.weekdaysMin, y.$W, h, 2);
|
|
217
|
-
case "ddd":
|
|
218
|
-
return ge(w.weekdaysShort, y.$W, h, 3);
|
|
219
|
-
case "dddd":
|
|
220
|
-
return h[y.$W];
|
|
221
|
-
case "H":
|
|
222
|
-
return String(q);
|
|
223
|
-
case "HH":
|
|
224
|
-
return b.s(q, 2, "0");
|
|
225
|
-
case "h":
|
|
226
|
-
return oe(1);
|
|
227
|
-
case "hh":
|
|
228
|
-
return oe(2);
|
|
229
|
-
case "a":
|
|
230
|
-
return ue(q, V, !0);
|
|
231
|
-
case "A":
|
|
232
|
-
return ue(q, V, !1);
|
|
233
|
-
case "m":
|
|
234
|
-
return String(V);
|
|
235
|
-
case "mm":
|
|
236
|
-
return b.s(V, 2, "0");
|
|
237
|
-
case "s":
|
|
238
|
-
return String(y.$s);
|
|
239
|
-
case "ss":
|
|
240
|
-
return b.s(y.$s, 2, "0");
|
|
241
|
-
case "SSS":
|
|
242
|
-
return b.s(y.$ms, 3, "0");
|
|
243
|
-
case "Z":
|
|
244
|
-
return D;
|
|
245
|
-
}
|
|
246
|
-
return null;
|
|
247
|
-
}(e) || D.replace(":", "");
|
|
248
|
-
});
|
|
249
|
-
}, g.utcOffset = function() {
|
|
250
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
251
|
-
}, g.diff = function(d, y, w) {
|
|
252
|
-
var T, D = this, q = b.p(y), V = p(d), te = (V.utcOffset() - this.utcOffset()) * v, h = this - V, fe = function() {
|
|
253
|
-
return b.m(D, V);
|
|
254
|
-
};
|
|
255
|
-
switch (q) {
|
|
256
|
-
case M:
|
|
257
|
-
T = fe() / 12;
|
|
258
|
-
break;
|
|
259
|
-
case U:
|
|
260
|
-
T = fe();
|
|
261
|
-
break;
|
|
262
|
-
case R:
|
|
263
|
-
T = fe() / 3;
|
|
264
|
-
break;
|
|
265
|
-
case P:
|
|
266
|
-
T = (h - te) / 6048e5;
|
|
267
|
-
break;
|
|
268
|
-
case $:
|
|
269
|
-
T = (h - te) / 864e5;
|
|
270
|
-
break;
|
|
271
|
-
case X:
|
|
272
|
-
T = h / H;
|
|
273
|
-
break;
|
|
274
|
-
case _:
|
|
275
|
-
T = h / v;
|
|
276
|
-
break;
|
|
277
|
-
case C:
|
|
278
|
-
T = h / L;
|
|
279
|
-
break;
|
|
280
|
-
default:
|
|
281
|
-
T = h;
|
|
282
|
-
}
|
|
283
|
-
return w ? T : b.a(T);
|
|
284
|
-
}, g.daysInMonth = function() {
|
|
285
|
-
return this.endOf(U).$D;
|
|
286
|
-
}, g.$locale = function() {
|
|
287
|
-
return S[this.$L];
|
|
288
|
-
}, g.locale = function(d, y) {
|
|
289
|
-
if (!d) return this.$L;
|
|
290
|
-
var w = this.clone(), T = Q(d, y, !0);
|
|
291
|
-
return T && (w.$L = T), w;
|
|
292
|
-
}, g.clone = function() {
|
|
293
|
-
return b.w(this.$d, this);
|
|
294
|
-
}, g.toDate = function() {
|
|
295
|
-
return new Date(this.valueOf());
|
|
296
|
-
}, g.toJSON = function() {
|
|
297
|
-
return this.isValid() ? this.toISOString() : null;
|
|
298
|
-
}, g.toISOString = function() {
|
|
299
|
-
return this.$d.toISOString();
|
|
300
|
-
}, g.toString = function() {
|
|
301
|
-
return this.$d.toUTCString();
|
|
302
|
-
}, N;
|
|
303
|
-
}(), K = G.prototype;
|
|
304
|
-
return p.prototype = K, [["$ms", F], ["$s", C], ["$m", _], ["$H", X], ["$W", $], ["$M", U], ["$y", M], ["$D", Y]].forEach(function(N) {
|
|
305
|
-
K[N[1]] = function(g) {
|
|
306
|
-
return this.$g(g, N[0], N[1]);
|
|
307
|
-
};
|
|
308
|
-
}), p.extend = function(N, g) {
|
|
309
|
-
return N.$i || (N(g, G, p), N.$i = !0), p;
|
|
310
|
-
}, p.locale = Q, p.isDayjs = Z, p.unix = function(N) {
|
|
311
|
-
return p(1e3 * N);
|
|
312
|
-
}, p.en = S[ee], p.Ls = S, p.p = {}, p;
|
|
313
|
-
});
|
|
314
|
-
})(rt);
|
|
315
|
-
var Te = { exports: {} }, ze = { exports: {} }, We = { exports: {} };
|
|
316
|
-
(function(O) {
|
|
317
|
-
(function(I) {
|
|
318
|
-
var L, v = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, H = Math.ceil, F = Math.floor, C = "[BigNumber Error] ", _ = C + "Number primitive has more than 15 significant digits: ", X = 1e14, $ = 14, P = 9007199254740991, U = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], R = 1e7, M = 1e9;
|
|
319
|
-
function Y(S) {
|
|
320
|
-
var B, Z, Q, p = h.prototype = {
|
|
321
|
-
constructor: h,
|
|
322
|
-
toString: null,
|
|
323
|
-
valueOf: null
|
|
324
|
-
}, b = new h(1), G = 20, K = 4, N = -7, g = 21, d = -1e7, y = 1e7, w = !1, T = 1, D = 0, q = {
|
|
325
|
-
prefix: "",
|
|
326
|
-
groupSize: 3,
|
|
327
|
-
secondaryGroupSize: 0,
|
|
328
|
-
groupSeparator: ",",
|
|
329
|
-
decimalSeparator: ".",
|
|
330
|
-
fractionGroupSize: 0,
|
|
331
|
-
fractionGroupSeparator: " ",
|
|
332
|
-
// non-breaking space
|
|
333
|
-
suffix: ""
|
|
334
|
-
}, V = "0123456789abcdefghijklmnopqrstuvwxyz", te = !0;
|
|
335
|
-
function h(e, t) {
|
|
336
|
-
var r, u, i, o, l, n, s, a, f = this;
|
|
337
|
-
if (!(f instanceof h)) return new h(e, t);
|
|
338
|
-
if (t == null) {
|
|
339
|
-
if (e && e._isBigNumber === !0) {
|
|
340
|
-
f.s = e.s, !e.c || e.e > y ? f.c = f.e = null : e.e < d ? f.c = [f.e = 0] : (f.e = e.e, f.c = e.c.slice());
|
|
341
|
-
return;
|
|
342
|
-
}
|
|
343
|
-
if ((n = typeof e == "number") && e * 0 == 0) {
|
|
344
|
-
if (f.s = 1 / e < 0 ? (e = -e, -1) : 1, e === ~~e) {
|
|
345
|
-
for (o = 0, l = e; l >= 10; l /= 10, o++) ;
|
|
346
|
-
o > y ? f.c = f.e = null : (f.e = o, f.c = [e]);
|
|
347
|
-
return;
|
|
348
|
-
}
|
|
349
|
-
a = String(e);
|
|
350
|
-
} else {
|
|
351
|
-
if (!v.test(a = String(e))) return Q(f, a, n);
|
|
352
|
-
f.s = a.charCodeAt(0) == 45 ? (a = a.slice(1), -1) : 1;
|
|
353
|
-
}
|
|
354
|
-
(o = a.indexOf(".")) > -1 && (a = a.replace(".", "")), (l = a.search(/e/i)) > 0 ? (o < 0 && (o = l), o += +a.slice(l + 1), a = a.substring(0, l)) : o < 0 && (o = a.length);
|
|
355
|
-
} else {
|
|
356
|
-
if (x(t, 2, V.length, "Base"), t == 10 && te)
|
|
357
|
-
return f = new h(e), oe(f, G + f.e + 1, K);
|
|
358
|
-
if (a = String(e), n = typeof e == "number") {
|
|
359
|
-
if (e * 0 != 0) return Q(f, a, n, t);
|
|
360
|
-
if (f.s = 1 / e < 0 ? (a = a.slice(1), -1) : 1, h.DEBUG && a.replace(/^0\.0*|\./, "").length > 15)
|
|
361
|
-
throw Error(_ + e);
|
|
362
|
-
} else
|
|
363
|
-
f.s = a.charCodeAt(0) === 45 ? (a = a.slice(1), -1) : 1;
|
|
364
|
-
for (r = V.slice(0, t), o = l = 0, s = a.length; l < s; l++)
|
|
365
|
-
if (r.indexOf(u = a.charAt(l)) < 0) {
|
|
366
|
-
if (u == ".") {
|
|
367
|
-
if (l > o) {
|
|
368
|
-
o = s;
|
|
369
|
-
continue;
|
|
370
|
-
}
|
|
371
|
-
} else if (!i && (a == a.toUpperCase() && (a = a.toLowerCase()) || a == a.toLowerCase() && (a = a.toUpperCase()))) {
|
|
372
|
-
i = !0, l = -1, o = 0;
|
|
373
|
-
continue;
|
|
374
|
-
}
|
|
375
|
-
return Q(f, String(e), n, t);
|
|
376
|
-
}
|
|
377
|
-
n = !1, a = Z(a, t, 10, f.s), (o = a.indexOf(".")) > -1 ? a = a.replace(".", "") : o = a.length;
|
|
378
|
-
}
|
|
379
|
-
for (l = 0; a.charCodeAt(l) === 48; l++) ;
|
|
380
|
-
for (s = a.length; a.charCodeAt(--s) === 48; ) ;
|
|
381
|
-
if (a = a.slice(l, ++s)) {
|
|
382
|
-
if (s -= l, n && h.DEBUG && s > 15 && (e > P || e !== F(e)))
|
|
383
|
-
throw Error(_ + f.s * e);
|
|
384
|
-
if ((o = o - l - 1) > y)
|
|
385
|
-
f.c = f.e = null;
|
|
386
|
-
else if (o < d)
|
|
387
|
-
f.c = [f.e = 0];
|
|
388
|
-
else {
|
|
389
|
-
if (f.e = o, f.c = [], l = (o + 1) % $, o < 0 && (l += $), l < s) {
|
|
390
|
-
for (l && f.c.push(+a.slice(0, l)), s -= $; l < s; )
|
|
391
|
-
f.c.push(+a.slice(l, l += $));
|
|
392
|
-
l = $ - (a = a.slice(l)).length;
|
|
393
|
-
} else
|
|
394
|
-
l -= s;
|
|
395
|
-
for (; l--; a += "0") ;
|
|
396
|
-
f.c.push(+a);
|
|
397
|
-
}
|
|
398
|
-
} else
|
|
399
|
-
f.c = [f.e = 0];
|
|
400
|
-
}
|
|
401
|
-
h.clone = Y, h.ROUND_UP = 0, h.ROUND_DOWN = 1, h.ROUND_CEIL = 2, h.ROUND_FLOOR = 3, h.ROUND_HALF_UP = 4, h.ROUND_HALF_DOWN = 5, h.ROUND_HALF_EVEN = 6, h.ROUND_HALF_CEIL = 7, h.ROUND_HALF_FLOOR = 8, h.EUCLID = 9, h.config = h.set = function(e) {
|
|
402
|
-
var t, r;
|
|
403
|
-
if (e != null)
|
|
404
|
-
if (typeof e == "object") {
|
|
405
|
-
if (e.hasOwnProperty(t = "DECIMAL_PLACES") && (r = e[t], x(r, 0, M, t), G = r), e.hasOwnProperty(t = "ROUNDING_MODE") && (r = e[t], x(r, 0, 8, t), K = r), e.hasOwnProperty(t = "EXPONENTIAL_AT") && (r = e[t], r && r.pop ? (x(r[0], -M, 0, t), x(r[1], 0, M, t), N = r[0], g = r[1]) : (x(r, -M, M, t), N = -(g = r < 0 ? -r : r))), e.hasOwnProperty(t = "RANGE"))
|
|
406
|
-
if (r = e[t], r && r.pop)
|
|
407
|
-
x(r[0], -M, -1, t), x(r[1], 1, M, t), d = r[0], y = r[1];
|
|
408
|
-
else if (x(r, -M, M, t), r)
|
|
409
|
-
d = -(y = r < 0 ? -r : r);
|
|
410
|
-
else
|
|
411
|
-
throw Error(C + t + " cannot be zero: " + r);
|
|
412
|
-
if (e.hasOwnProperty(t = "CRYPTO"))
|
|
413
|
-
if (r = e[t], r === !!r)
|
|
414
|
-
if (r)
|
|
415
|
-
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
416
|
-
w = r;
|
|
417
|
-
else
|
|
418
|
-
throw w = !r, Error(C + "crypto unavailable");
|
|
419
|
-
else
|
|
420
|
-
w = r;
|
|
421
|
-
else
|
|
422
|
-
throw Error(C + t + " not true or false: " + r);
|
|
423
|
-
if (e.hasOwnProperty(t = "MODULO_MODE") && (r = e[t], x(r, 0, 9, t), T = r), e.hasOwnProperty(t = "POW_PRECISION") && (r = e[t], x(r, 0, M, t), D = r), e.hasOwnProperty(t = "FORMAT"))
|
|
424
|
-
if (r = e[t], typeof r == "object") q = r;
|
|
425
|
-
else throw Error(C + t + " not an object: " + r);
|
|
426
|
-
if (e.hasOwnProperty(t = "ALPHABET"))
|
|
427
|
-
if (r = e[t], typeof r == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(r))
|
|
428
|
-
te = r.slice(0, 10) == "0123456789", V = r;
|
|
429
|
-
else
|
|
430
|
-
throw Error(C + t + " invalid: " + r);
|
|
431
|
-
} else
|
|
432
|
-
throw Error(C + "Object expected: " + e);
|
|
433
|
-
return {
|
|
434
|
-
DECIMAL_PLACES: G,
|
|
435
|
-
ROUNDING_MODE: K,
|
|
436
|
-
EXPONENTIAL_AT: [N, g],
|
|
437
|
-
RANGE: [d, y],
|
|
438
|
-
CRYPTO: w,
|
|
439
|
-
MODULO_MODE: T,
|
|
440
|
-
POW_PRECISION: D,
|
|
441
|
-
FORMAT: q,
|
|
442
|
-
ALPHABET: V
|
|
443
|
-
};
|
|
444
|
-
}, h.isBigNumber = function(e) {
|
|
445
|
-
if (!e || e._isBigNumber !== !0) return !1;
|
|
446
|
-
if (!h.DEBUG) return !0;
|
|
447
|
-
var t, r, u = e.c, i = e.e, o = e.s;
|
|
448
|
-
e: if ({}.toString.call(u) == "[object Array]") {
|
|
449
|
-
if ((o === 1 || o === -1) && i >= -M && i <= M && i === F(i)) {
|
|
450
|
-
if (u[0] === 0) {
|
|
451
|
-
if (i === 0 && u.length === 1) return !0;
|
|
452
|
-
break e;
|
|
453
|
-
}
|
|
454
|
-
if (t = (i + 1) % $, t < 1 && (t += $), String(u[0]).length == t) {
|
|
455
|
-
for (t = 0; t < u.length; t++)
|
|
456
|
-
if (r = u[t], r < 0 || r >= X || r !== F(r)) break e;
|
|
457
|
-
if (r !== 0) return !0;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
} else if (u === null && i === null && (o === null || o === 1 || o === -1))
|
|
461
|
-
return !0;
|
|
462
|
-
throw Error(C + "Invalid BigNumber: " + e);
|
|
463
|
-
}, h.maximum = h.max = function() {
|
|
464
|
-
return ve(arguments, -1);
|
|
465
|
-
}, h.minimum = h.min = function() {
|
|
466
|
-
return ve(arguments, 1);
|
|
467
|
-
}, h.random = function() {
|
|
468
|
-
var e = 9007199254740992, t = Math.random() * e & 2097151 ? function() {
|
|
469
|
-
return F(Math.random() * e);
|
|
470
|
-
} : function() {
|
|
471
|
-
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
472
|
-
};
|
|
473
|
-
return function(r) {
|
|
474
|
-
var u, i, o, l, n, s = 0, a = [], f = new h(b);
|
|
475
|
-
if (r == null ? r = G : x(r, 0, M), l = H(r / $), w)
|
|
476
|
-
if (crypto.getRandomValues) {
|
|
477
|
-
for (u = crypto.getRandomValues(new Uint32Array(l *= 2)); s < l; )
|
|
478
|
-
n = u[s] * 131072 + (u[s + 1] >>> 11), n >= 9e15 ? (i = crypto.getRandomValues(new Uint32Array(2)), u[s] = i[0], u[s + 1] = i[1]) : (a.push(n % 1e14), s += 2);
|
|
479
|
-
s = l / 2;
|
|
480
|
-
} else if (crypto.randomBytes) {
|
|
481
|
-
for (u = crypto.randomBytes(l *= 7); s < l; )
|
|
482
|
-
n = (u[s] & 31) * 281474976710656 + u[s + 1] * 1099511627776 + u[s + 2] * 4294967296 + u[s + 3] * 16777216 + (u[s + 4] << 16) + (u[s + 5] << 8) + u[s + 6], n >= 9e15 ? crypto.randomBytes(7).copy(u, s) : (a.push(n % 1e14), s += 7);
|
|
483
|
-
s = l / 7;
|
|
484
|
-
} else
|
|
485
|
-
throw w = !1, Error(C + "crypto unavailable");
|
|
486
|
-
if (!w)
|
|
487
|
-
for (; s < l; )
|
|
488
|
-
n = t(), n < 9e15 && (a[s++] = n % 1e14);
|
|
489
|
-
for (l = a[--s], r %= $, l && r && (n = U[$ - r], a[s] = F(l / n) * n); a[s] === 0; a.pop(), s--) ;
|
|
490
|
-
if (s < 0)
|
|
491
|
-
a = [o = 0];
|
|
492
|
-
else {
|
|
493
|
-
for (o = -1; a[0] === 0; a.splice(0, 1), o -= $) ;
|
|
494
|
-
for (s = 1, n = a[0]; n >= 10; n /= 10, s++) ;
|
|
495
|
-
s < $ && (o -= $ - s);
|
|
496
|
-
}
|
|
497
|
-
return f.e = o, f.c = a, f;
|
|
498
|
-
};
|
|
499
|
-
}(), h.sum = function() {
|
|
500
|
-
for (var e = 1, t = arguments, r = new h(t[0]); e < t.length; ) r = r.plus(t[e++]);
|
|
501
|
-
return r;
|
|
502
|
-
}, Z = /* @__PURE__ */ function() {
|
|
503
|
-
var e = "0123456789";
|
|
504
|
-
function t(r, u, i, o) {
|
|
505
|
-
for (var l, n = [0], s, a = 0, f = r.length; a < f; ) {
|
|
506
|
-
for (s = n.length; s--; n[s] *= u) ;
|
|
507
|
-
for (n[0] += o.indexOf(r.charAt(a++)), l = 0; l < n.length; l++)
|
|
508
|
-
n[l] > i - 1 && (n[l + 1] == null && (n[l + 1] = 0), n[l + 1] += n[l] / i | 0, n[l] %= i);
|
|
509
|
-
}
|
|
510
|
-
return n.reverse();
|
|
511
|
-
}
|
|
512
|
-
return function(r, u, i, o, l) {
|
|
513
|
-
var n, s, a, f, c, A, E, z, re = r.indexOf("."), se = G, j = K;
|
|
514
|
-
for (re >= 0 && (f = D, D = 0, r = r.replace(".", ""), z = new h(u), A = z.pow(r.length - re), D = f, z.c = t(ee(k(A.c), A.e, "0"), 10, i, e), z.e = z.c.length), E = t(r, u, i, l ? (n = V, e) : (n = e, V)), a = f = E.length; E[--f] == 0; E.pop()) ;
|
|
515
|
-
if (!E[0]) return n.charAt(0);
|
|
516
|
-
if (re < 0 ? --a : (A.c = E, A.e = a, A.s = o, A = B(A, z, se, j, i), E = A.c, c = A.r, a = A.e), s = a + se + 1, re = E[s], f = i / 2, c = c || s < 0 || E[s + 1] != null, c = j < 4 ? (re != null || c) && (j == 0 || j == (A.s < 0 ? 3 : 2)) : re > f || re == f && (j == 4 || c || j == 6 && E[s - 1] & 1 || j == (A.s < 0 ? 8 : 7)), s < 1 || !E[0])
|
|
517
|
-
r = c ? ee(n.charAt(1), -se, n.charAt(0)) : n.charAt(0);
|
|
518
|
-
else {
|
|
519
|
-
if (E.length = s, c)
|
|
520
|
-
for (--i; ++E[--s] > i; )
|
|
521
|
-
E[s] = 0, s || (++a, E = [1].concat(E));
|
|
522
|
-
for (f = E.length; !E[--f]; ) ;
|
|
523
|
-
for (re = 0, r = ""; re <= f; r += n.charAt(E[re++])) ;
|
|
524
|
-
r = ee(r, a, n.charAt(0));
|
|
525
|
-
}
|
|
526
|
-
return r;
|
|
527
|
-
};
|
|
528
|
-
}(), B = /* @__PURE__ */ function() {
|
|
529
|
-
function e(u, i, o) {
|
|
530
|
-
var l, n, s, a, f = 0, c = u.length, A = i % R, E = i / R | 0;
|
|
531
|
-
for (u = u.slice(); c--; )
|
|
532
|
-
s = u[c] % R, a = u[c] / R | 0, l = E * s + a * A, n = A * s + l % R * R + f, f = (n / o | 0) + (l / R | 0) + E * a, u[c] = n % o;
|
|
533
|
-
return f && (u = [f].concat(u)), u;
|
|
534
|
-
}
|
|
535
|
-
function t(u, i, o, l) {
|
|
536
|
-
var n, s;
|
|
537
|
-
if (o != l)
|
|
538
|
-
s = o > l ? 1 : -1;
|
|
539
|
-
else
|
|
540
|
-
for (n = s = 0; n < o; n++)
|
|
541
|
-
if (u[n] != i[n]) {
|
|
542
|
-
s = u[n] > i[n] ? 1 : -1;
|
|
543
|
-
break;
|
|
544
|
-
}
|
|
545
|
-
return s;
|
|
546
|
-
}
|
|
547
|
-
function r(u, i, o, l) {
|
|
548
|
-
for (var n = 0; o--; )
|
|
549
|
-
u[o] -= n, n = u[o] < i[o] ? 1 : 0, u[o] = n * l + u[o] - i[o];
|
|
550
|
-
for (; !u[0] && u.length > 1; u.splice(0, 1)) ;
|
|
551
|
-
}
|
|
552
|
-
return function(u, i, o, l, n) {
|
|
553
|
-
var s, a, f, c, A, E, z, re, se, j, J, ae, Ne, Ae, _e, we, Oe, pe = u.s == i.s ? 1 : -1, le = u.c, ne = i.c;
|
|
554
|
-
if (!le || !le[0] || !ne || !ne[0])
|
|
555
|
-
return new h(
|
|
556
|
-
// Return NaN if either NaN, or both Infinity or 0.
|
|
557
|
-
!u.s || !i.s || (le ? ne && le[0] == ne[0] : !ne) ? NaN : (
|
|
558
|
-
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
559
|
-
le && le[0] == 0 || !ne ? pe * 0 : pe / 0
|
|
560
|
-
)
|
|
561
|
-
);
|
|
562
|
-
for (re = new h(pe), se = re.c = [], a = u.e - i.e, pe = o + a + 1, n || (n = X, a = m(u.e / $) - m(i.e / $), pe = pe / $ | 0), f = 0; ne[f] == (le[f] || 0); f++) ;
|
|
563
|
-
if (ne[f] > (le[f] || 0) && a--, pe < 0)
|
|
564
|
-
se.push(1), c = !0;
|
|
565
|
-
else {
|
|
566
|
-
for (Ae = le.length, we = ne.length, f = 0, pe += 2, A = F(n / (ne[0] + 1)), A > 1 && (ne = e(ne, A, n), le = e(le, A, n), we = ne.length, Ae = le.length), Ne = we, j = le.slice(0, we), J = j.length; J < we; j[J++] = 0) ;
|
|
567
|
-
Oe = ne.slice(), Oe = [0].concat(Oe), _e = ne[0], ne[1] >= n / 2 && _e++;
|
|
568
|
-
do {
|
|
569
|
-
if (A = 0, s = t(ne, j, we, J), s < 0) {
|
|
570
|
-
if (ae = j[0], we != J && (ae = ae * n + (j[1] || 0)), A = F(ae / _e), A > 1)
|
|
571
|
-
for (A >= n && (A = n - 1), E = e(ne, A, n), z = E.length, J = j.length; t(E, j, z, J) == 1; )
|
|
572
|
-
A--, r(E, we < z ? Oe : ne, z, n), z = E.length, s = 1;
|
|
573
|
-
else
|
|
574
|
-
A == 0 && (s = A = 1), E = ne.slice(), z = E.length;
|
|
575
|
-
if (z < J && (E = [0].concat(E)), r(j, E, J, n), J = j.length, s == -1)
|
|
576
|
-
for (; t(ne, j, we, J) < 1; )
|
|
577
|
-
A++, r(j, we < J ? Oe : ne, J, n), J = j.length;
|
|
578
|
-
} else s === 0 && (A++, j = [0]);
|
|
579
|
-
se[f++] = A, j[0] ? j[J++] = le[Ne] || 0 : (j = [le[Ne]], J = 1);
|
|
580
|
-
} while ((Ne++ < Ae || j[0] != null) && pe--);
|
|
581
|
-
c = j[0] != null, se[0] || se.splice(0, 1);
|
|
582
|
-
}
|
|
583
|
-
if (n == X) {
|
|
584
|
-
for (f = 1, pe = se[0]; pe >= 10; pe /= 10, f++) ;
|
|
585
|
-
oe(re, o + (re.e = f + a * $ - 1) + 1, l, c);
|
|
586
|
-
} else
|
|
587
|
-
re.e = a, re.r = +c;
|
|
588
|
-
return re;
|
|
589
|
-
};
|
|
590
|
-
}();
|
|
591
|
-
function fe(e, t, r, u) {
|
|
592
|
-
var i, o, l, n, s;
|
|
593
|
-
if (r == null ? r = K : x(r, 0, 8), !e.c) return e.toString();
|
|
594
|
-
if (i = e.c[0], l = e.e, t == null)
|
|
595
|
-
s = k(e.c), s = u == 1 || u == 2 && (l <= N || l >= g) ? he(s, l) : ee(s, l, "0");
|
|
596
|
-
else if (e = oe(new h(e), t, r), o = e.e, s = k(e.c), n = s.length, u == 1 || u == 2 && (t <= o || o <= N)) {
|
|
597
|
-
for (; n < t; s += "0", n++) ;
|
|
598
|
-
s = he(s, o);
|
|
599
|
-
} else if (t -= l, s = ee(s, o, "0"), o + 1 > n) {
|
|
600
|
-
if (--t > 0) for (s += "."; t--; s += "0") ;
|
|
601
|
-
} else if (t += o - n, t > 0)
|
|
602
|
-
for (o + 1 == n && (s += "."); t--; s += "0") ;
|
|
603
|
-
return e.s < 0 && i ? "-" + s : s;
|
|
604
|
-
}
|
|
605
|
-
function ve(e, t) {
|
|
606
|
-
for (var r, u, i = 1, o = new h(e[0]); i < e.length; i++)
|
|
607
|
-
u = new h(e[i]), (!u.s || (r = W(o, u)) === t || r === 0 && o.s === t) && (o = u);
|
|
608
|
-
return o;
|
|
609
|
-
}
|
|
610
|
-
function ge(e, t, r) {
|
|
611
|
-
for (var u = 1, i = t.length; !t[--i]; t.pop()) ;
|
|
612
|
-
for (i = t[0]; i >= 10; i /= 10, u++) ;
|
|
613
|
-
return (r = u + r * $ - 1) > y ? e.c = e.e = null : r < d ? e.c = [e.e = 0] : (e.e = r, e.c = t), e;
|
|
614
|
-
}
|
|
615
|
-
Q = /* @__PURE__ */ function() {
|
|
616
|
-
var e = /^(-?)0([xbo])(?=\w[\w.]*$)/i, t = /^([^.]+)\.$/, r = /^\.([^.]+)$/, u = /^-?(Infinity|NaN)$/, i = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
617
|
-
return function(o, l, n, s) {
|
|
618
|
-
var a, f = n ? l : l.replace(i, "");
|
|
619
|
-
if (u.test(f))
|
|
620
|
-
o.s = isNaN(f) ? null : f < 0 ? -1 : 1;
|
|
621
|
-
else {
|
|
622
|
-
if (!n && (f = f.replace(e, function(c, A, E) {
|
|
623
|
-
return a = (E = E.toLowerCase()) == "x" ? 16 : E == "b" ? 2 : 8, !s || s == a ? A : c;
|
|
624
|
-
}), s && (a = s, f = f.replace(t, "$1").replace(r, "0.$1")), l != f))
|
|
625
|
-
return new h(f, a);
|
|
626
|
-
if (h.DEBUG)
|
|
627
|
-
throw Error(C + "Not a" + (s ? " base " + s : "") + " number: " + l);
|
|
628
|
-
o.s = null;
|
|
629
|
-
}
|
|
630
|
-
o.c = o.e = null;
|
|
631
|
-
};
|
|
632
|
-
}();
|
|
633
|
-
function oe(e, t, r, u) {
|
|
634
|
-
var i, o, l, n, s, a, f, c = e.c, A = U;
|
|
635
|
-
if (c) {
|
|
636
|
-
e: {
|
|
637
|
-
for (i = 1, n = c[0]; n >= 10; n /= 10, i++) ;
|
|
638
|
-
if (o = t - i, o < 0)
|
|
639
|
-
o += $, l = t, s = c[a = 0], f = F(s / A[i - l - 1] % 10);
|
|
640
|
-
else if (a = H((o + 1) / $), a >= c.length)
|
|
641
|
-
if (u) {
|
|
642
|
-
for (; c.length <= a; c.push(0)) ;
|
|
643
|
-
s = f = 0, i = 1, o %= $, l = o - $ + 1;
|
|
644
|
-
} else
|
|
645
|
-
break e;
|
|
646
|
-
else {
|
|
647
|
-
for (s = n = c[a], i = 1; n >= 10; n /= 10, i++) ;
|
|
648
|
-
o %= $, l = o - $ + i, f = l < 0 ? 0 : F(s / A[i - l - 1] % 10);
|
|
649
|
-
}
|
|
650
|
-
if (u = u || t < 0 || // Are there any non-zero digits after the rounding digit?
|
|
651
|
-
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
652
|
-
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
653
|
-
c[a + 1] != null || (l < 0 ? s : s % A[i - l - 1]), u = r < 4 ? (f || u) && (r == 0 || r == (e.s < 0 ? 3 : 2)) : f > 5 || f == 5 && (r == 4 || u || r == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
654
|
-
(o > 0 ? l > 0 ? s / A[i - l] : 0 : c[a - 1]) % 10 & 1 || r == (e.s < 0 ? 8 : 7)), t < 1 || !c[0])
|
|
655
|
-
return c.length = 0, u ? (t -= e.e + 1, c[0] = A[($ - t % $) % $], e.e = -t || 0) : c[0] = e.e = 0, e;
|
|
656
|
-
if (o == 0 ? (c.length = a, n = 1, a--) : (c.length = a + 1, n = A[$ - o], c[a] = l > 0 ? F(s / A[i - l] % A[l]) * n : 0), u)
|
|
657
|
-
for (; ; )
|
|
658
|
-
if (a == 0) {
|
|
659
|
-
for (o = 1, l = c[0]; l >= 10; l /= 10, o++) ;
|
|
660
|
-
for (l = c[0] += n, n = 1; l >= 10; l /= 10, n++) ;
|
|
661
|
-
o != n && (e.e++, c[0] == X && (c[0] = 1));
|
|
662
|
-
break;
|
|
663
|
-
} else {
|
|
664
|
-
if (c[a] += n, c[a] != X) break;
|
|
665
|
-
c[a--] = 0, n = 1;
|
|
666
|
-
}
|
|
667
|
-
for (o = c.length; c[--o] === 0; c.pop()) ;
|
|
668
|
-
}
|
|
669
|
-
e.e > y ? e.c = e.e = null : e.e < d && (e.c = [e.e = 0]);
|
|
670
|
-
}
|
|
671
|
-
return e;
|
|
672
|
-
}
|
|
673
|
-
function ue(e) {
|
|
674
|
-
var t, r = e.e;
|
|
675
|
-
return r === null ? e.toString() : (t = k(e.c), t = r <= N || r >= g ? he(t, r) : ee(t, r, "0"), e.s < 0 ? "-" + t : t);
|
|
676
|
-
}
|
|
677
|
-
return p.absoluteValue = p.abs = function() {
|
|
678
|
-
var e = new h(this);
|
|
679
|
-
return e.s < 0 && (e.s = 1), e;
|
|
680
|
-
}, p.comparedTo = function(e, t) {
|
|
681
|
-
return W(this, new h(e, t));
|
|
682
|
-
}, p.decimalPlaces = p.dp = function(e, t) {
|
|
683
|
-
var r, u, i, o = this;
|
|
684
|
-
if (e != null)
|
|
685
|
-
return x(e, 0, M), t == null ? t = K : x(t, 0, 8), oe(new h(o), e + o.e + 1, t);
|
|
686
|
-
if (!(r = o.c)) return null;
|
|
687
|
-
if (u = ((i = r.length - 1) - m(this.e / $)) * $, i = r[i]) for (; i % 10 == 0; i /= 10, u--) ;
|
|
688
|
-
return u < 0 && (u = 0), u;
|
|
689
|
-
}, p.dividedBy = p.div = function(e, t) {
|
|
690
|
-
return B(this, new h(e, t), G, K);
|
|
691
|
-
}, p.dividedToIntegerBy = p.idiv = function(e, t) {
|
|
692
|
-
return B(this, new h(e, t), 0, 1);
|
|
693
|
-
}, p.exponentiatedBy = p.pow = function(e, t) {
|
|
694
|
-
var r, u, i, o, l, n, s, a, f, c = this;
|
|
695
|
-
if (e = new h(e), e.c && !e.isInteger())
|
|
696
|
-
throw Error(C + "Exponent not an integer: " + ue(e));
|
|
697
|
-
if (t != null && (t = new h(t)), n = e.e > 14, !c.c || !c.c[0] || c.c[0] == 1 && !c.e && c.c.length == 1 || !e.c || !e.c[0])
|
|
698
|
-
return f = new h(Math.pow(+ue(c), n ? e.s * (2 - ie(e)) : +ue(e))), t ? f.mod(t) : f;
|
|
699
|
-
if (s = e.s < 0, t) {
|
|
700
|
-
if (t.c ? !t.c[0] : !t.s) return new h(NaN);
|
|
701
|
-
u = !s && c.isInteger() && t.isInteger(), u && (c = c.mod(t));
|
|
702
|
-
} else {
|
|
703
|
-
if (e.e > 9 && (c.e > 0 || c.e < -1 || (c.e == 0 ? c.c[0] > 1 || n && c.c[1] >= 24e7 : c.c[0] < 8e13 || n && c.c[0] <= 9999975e7)))
|
|
704
|
-
return o = c.s < 0 && ie(e) ? -0 : 0, c.e > -1 && (o = 1 / o), new h(s ? 1 / o : o);
|
|
705
|
-
D && (o = H(D / $ + 2));
|
|
706
|
-
}
|
|
707
|
-
for (n ? (r = new h(0.5), s && (e.s = 1), a = ie(e)) : (i = Math.abs(+ue(e)), a = i % 2), f = new h(b); ; ) {
|
|
708
|
-
if (a) {
|
|
709
|
-
if (f = f.times(c), !f.c) break;
|
|
710
|
-
o ? f.c.length > o && (f.c.length = o) : u && (f = f.mod(t));
|
|
711
|
-
}
|
|
712
|
-
if (i) {
|
|
713
|
-
if (i = F(i / 2), i === 0) break;
|
|
714
|
-
a = i % 2;
|
|
715
|
-
} else if (e = e.times(r), oe(e, e.e + 1, 1), e.e > 14)
|
|
716
|
-
a = ie(e);
|
|
717
|
-
else {
|
|
718
|
-
if (i = +ue(e), i === 0) break;
|
|
719
|
-
a = i % 2;
|
|
720
|
-
}
|
|
721
|
-
c = c.times(c), o ? c.c && c.c.length > o && (c.c.length = o) : u && (c = c.mod(t));
|
|
722
|
-
}
|
|
723
|
-
return u ? f : (s && (f = b.div(f)), t ? f.mod(t) : o ? oe(f, D, K, l) : f);
|
|
724
|
-
}, p.integerValue = function(e) {
|
|
725
|
-
var t = new h(this);
|
|
726
|
-
return e == null ? e = K : x(e, 0, 8), oe(t, t.e + 1, e);
|
|
727
|
-
}, p.isEqualTo = p.eq = function(e, t) {
|
|
728
|
-
return W(this, new h(e, t)) === 0;
|
|
729
|
-
}, p.isFinite = function() {
|
|
730
|
-
return !!this.c;
|
|
731
|
-
}, p.isGreaterThan = p.gt = function(e, t) {
|
|
732
|
-
return W(this, new h(e, t)) > 0;
|
|
733
|
-
}, p.isGreaterThanOrEqualTo = p.gte = function(e, t) {
|
|
734
|
-
return (t = W(this, new h(e, t))) === 1 || t === 0;
|
|
735
|
-
}, p.isInteger = function() {
|
|
736
|
-
return !!this.c && m(this.e / $) > this.c.length - 2;
|
|
737
|
-
}, p.isLessThan = p.lt = function(e, t) {
|
|
738
|
-
return W(this, new h(e, t)) < 0;
|
|
739
|
-
}, p.isLessThanOrEqualTo = p.lte = function(e, t) {
|
|
740
|
-
return (t = W(this, new h(e, t))) === -1 || t === 0;
|
|
741
|
-
}, p.isNaN = function() {
|
|
742
|
-
return !this.s;
|
|
743
|
-
}, p.isNegative = function() {
|
|
744
|
-
return this.s < 0;
|
|
745
|
-
}, p.isPositive = function() {
|
|
746
|
-
return this.s > 0;
|
|
747
|
-
}, p.isZero = function() {
|
|
748
|
-
return !!this.c && this.c[0] == 0;
|
|
749
|
-
}, p.minus = function(e, t) {
|
|
750
|
-
var r, u, i, o, l = this, n = l.s;
|
|
751
|
-
if (e = new h(e, t), t = e.s, !n || !t) return new h(NaN);
|
|
752
|
-
if (n != t)
|
|
753
|
-
return e.s = -t, l.plus(e);
|
|
754
|
-
var s = l.e / $, a = e.e / $, f = l.c, c = e.c;
|
|
755
|
-
if (!s || !a) {
|
|
756
|
-
if (!f || !c) return f ? (e.s = -t, e) : new h(c ? l : NaN);
|
|
757
|
-
if (!f[0] || !c[0])
|
|
758
|
-
return c[0] ? (e.s = -t, e) : new h(f[0] ? l : (
|
|
759
|
-
// IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
|
|
760
|
-
K == 3 ? -0 : 0
|
|
761
|
-
));
|
|
762
|
-
}
|
|
763
|
-
if (s = m(s), a = m(a), f = f.slice(), n = s - a) {
|
|
764
|
-
for ((o = n < 0) ? (n = -n, i = f) : (a = s, i = c), i.reverse(), t = n; t--; i.push(0)) ;
|
|
765
|
-
i.reverse();
|
|
766
|
-
} else
|
|
767
|
-
for (u = (o = (n = f.length) < (t = c.length)) ? n : t, n = t = 0; t < u; t++)
|
|
768
|
-
if (f[t] != c[t]) {
|
|
769
|
-
o = f[t] < c[t];
|
|
770
|
-
break;
|
|
771
|
-
}
|
|
772
|
-
if (o && (i = f, f = c, c = i, e.s = -e.s), t = (u = c.length) - (r = f.length), t > 0) for (; t--; f[r++] = 0) ;
|
|
773
|
-
for (t = X - 1; u > n; ) {
|
|
774
|
-
if (f[--u] < c[u]) {
|
|
775
|
-
for (r = u; r && !f[--r]; f[r] = t) ;
|
|
776
|
-
--f[r], f[u] += X;
|
|
777
|
-
}
|
|
778
|
-
f[u] -= c[u];
|
|
779
|
-
}
|
|
780
|
-
for (; f[0] == 0; f.splice(0, 1), --a) ;
|
|
781
|
-
return f[0] ? ge(e, f, a) : (e.s = K == 3 ? -1 : 1, e.c = [e.e = 0], e);
|
|
782
|
-
}, p.modulo = p.mod = function(e, t) {
|
|
783
|
-
var r, u, i = this;
|
|
784
|
-
return e = new h(e, t), !i.c || !e.s || e.c && !e.c[0] ? new h(NaN) : !e.c || i.c && !i.c[0] ? new h(i) : (T == 9 ? (u = e.s, e.s = 1, r = B(i, e, 0, 3), e.s = u, r.s *= u) : r = B(i, e, 0, T), e = i.minus(r.times(e)), !e.c[0] && T == 1 && (e.s = i.s), e);
|
|
785
|
-
}, p.multipliedBy = p.times = function(e, t) {
|
|
786
|
-
var r, u, i, o, l, n, s, a, f, c, A, E, z, re, se, j = this, J = j.c, ae = (e = new h(e, t)).c;
|
|
787
|
-
if (!J || !ae || !J[0] || !ae[0])
|
|
788
|
-
return !j.s || !e.s || J && !J[0] && !ae || ae && !ae[0] && !J ? e.c = e.e = e.s = null : (e.s *= j.s, !J || !ae ? e.c = e.e = null : (e.c = [0], e.e = 0)), e;
|
|
789
|
-
for (u = m(j.e / $) + m(e.e / $), e.s *= j.s, s = J.length, c = ae.length, s < c && (z = J, J = ae, ae = z, i = s, s = c, c = i), i = s + c, z = []; i--; z.push(0)) ;
|
|
790
|
-
for (re = X, se = R, i = c; --i >= 0; ) {
|
|
791
|
-
for (r = 0, A = ae[i] % se, E = ae[i] / se | 0, l = s, o = i + l; o > i; )
|
|
792
|
-
a = J[--l] % se, f = J[l] / se | 0, n = E * a + f * A, a = A * a + n % se * se + z[o] + r, r = (a / re | 0) + (n / se | 0) + E * f, z[o--] = a % re;
|
|
793
|
-
z[o] = r;
|
|
794
|
-
}
|
|
795
|
-
return r ? ++u : z.splice(0, 1), ge(e, z, u);
|
|
796
|
-
}, p.negated = function() {
|
|
797
|
-
var e = new h(this);
|
|
798
|
-
return e.s = -e.s || null, e;
|
|
799
|
-
}, p.plus = function(e, t) {
|
|
800
|
-
var r, u = this, i = u.s;
|
|
801
|
-
if (e = new h(e, t), t = e.s, !i || !t) return new h(NaN);
|
|
802
|
-
if (i != t)
|
|
803
|
-
return e.s = -t, u.minus(e);
|
|
804
|
-
var o = u.e / $, l = e.e / $, n = u.c, s = e.c;
|
|
805
|
-
if (!o || !l) {
|
|
806
|
-
if (!n || !s) return new h(i / 0);
|
|
807
|
-
if (!n[0] || !s[0]) return s[0] ? e : new h(n[0] ? u : i * 0);
|
|
808
|
-
}
|
|
809
|
-
if (o = m(o), l = m(l), n = n.slice(), i = o - l) {
|
|
810
|
-
for (i > 0 ? (l = o, r = s) : (i = -i, r = n), r.reverse(); i--; r.push(0)) ;
|
|
811
|
-
r.reverse();
|
|
812
|
-
}
|
|
813
|
-
for (i = n.length, t = s.length, i - t < 0 && (r = s, s = n, n = r, t = i), i = 0; t; )
|
|
814
|
-
i = (n[--t] = n[t] + s[t] + i) / X | 0, n[t] = X === n[t] ? 0 : n[t] % X;
|
|
815
|
-
return i && (n = [i].concat(n), ++l), ge(e, n, l);
|
|
816
|
-
}, p.precision = p.sd = function(e, t) {
|
|
817
|
-
var r, u, i, o = this;
|
|
818
|
-
if (e != null && e !== !!e)
|
|
819
|
-
return x(e, 1, M), t == null ? t = K : x(t, 0, 8), oe(new h(o), e, t);
|
|
820
|
-
if (!(r = o.c)) return null;
|
|
821
|
-
if (i = r.length - 1, u = i * $ + 1, i = r[i]) {
|
|
822
|
-
for (; i % 10 == 0; i /= 10, u--) ;
|
|
823
|
-
for (i = r[0]; i >= 10; i /= 10, u++) ;
|
|
824
|
-
}
|
|
825
|
-
return e && o.e + 1 > u && (u = o.e + 1), u;
|
|
826
|
-
}, p.shiftedBy = function(e) {
|
|
827
|
-
return x(e, -P, P), this.times("1e" + e);
|
|
828
|
-
}, p.squareRoot = p.sqrt = function() {
|
|
829
|
-
var e, t, r, u, i, o = this, l = o.c, n = o.s, s = o.e, a = G + 4, f = new h("0.5");
|
|
830
|
-
if (n !== 1 || !l || !l[0])
|
|
831
|
-
return new h(!n || n < 0 && (!l || l[0]) ? NaN : l ? o : 1 / 0);
|
|
832
|
-
if (n = Math.sqrt(+ue(o)), n == 0 || n == 1 / 0 ? (t = k(l), (t.length + s) % 2 == 0 && (t += "0"), n = Math.sqrt(+t), s = m((s + 1) / 2) - (s < 0 || s % 2), n == 1 / 0 ? t = "5e" + s : (t = n.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + s), r = new h(t)) : r = new h(n + ""), r.c[0]) {
|
|
833
|
-
for (s = r.e, n = s + a, n < 3 && (n = 0); ; )
|
|
834
|
-
if (i = r, r = f.times(i.plus(B(o, i, a, 1))), k(i.c).slice(0, n) === (t = k(r.c)).slice(0, n))
|
|
835
|
-
if (r.e < s && --n, t = t.slice(n - 3, n + 1), t == "9999" || !u && t == "4999") {
|
|
836
|
-
if (!u && (oe(i, i.e + G + 2, 0), i.times(i).eq(o))) {
|
|
837
|
-
r = i;
|
|
838
|
-
break;
|
|
839
|
-
}
|
|
840
|
-
a += 4, n += 4, u = 1;
|
|
841
|
-
} else {
|
|
842
|
-
(!+t || !+t.slice(1) && t.charAt(0) == "5") && (oe(r, r.e + G + 2, 1), e = !r.times(r).eq(o));
|
|
843
|
-
break;
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
return oe(r, r.e + G + 1, K, e);
|
|
847
|
-
}, p.toExponential = function(e, t) {
|
|
848
|
-
return e != null && (x(e, 0, M), e++), fe(this, e, t, 1);
|
|
849
|
-
}, p.toFixed = function(e, t) {
|
|
850
|
-
return e != null && (x(e, 0, M), e = e + this.e + 1), fe(this, e, t);
|
|
851
|
-
}, p.toFormat = function(e, t, r) {
|
|
852
|
-
var u, i = this;
|
|
853
|
-
if (r == null)
|
|
854
|
-
e != null && t && typeof t == "object" ? (r = t, t = null) : e && typeof e == "object" ? (r = e, e = t = null) : r = q;
|
|
855
|
-
else if (typeof r != "object")
|
|
856
|
-
throw Error(C + "Argument not an object: " + r);
|
|
857
|
-
if (u = i.toFixed(e, t), i.c) {
|
|
858
|
-
var o, l = u.split("."), n = +r.groupSize, s = +r.secondaryGroupSize, a = r.groupSeparator || "", f = l[0], c = l[1], A = i.s < 0, E = A ? f.slice(1) : f, z = E.length;
|
|
859
|
-
if (s && (o = n, n = s, s = o, z -= o), n > 0 && z > 0) {
|
|
860
|
-
for (o = z % n || n, f = E.substr(0, o); o < z; o += n) f += a + E.substr(o, n);
|
|
861
|
-
s > 0 && (f += a + E.slice(o)), A && (f = "-" + f);
|
|
862
|
-
}
|
|
863
|
-
u = c ? f + (r.decimalSeparator || "") + ((s = +r.fractionGroupSize) ? c.replace(new RegExp("\\d{" + s + "}\\B", "g"), "$&" + (r.fractionGroupSeparator || "")) : c) : f;
|
|
864
|
-
}
|
|
865
|
-
return (r.prefix || "") + u + (r.suffix || "");
|
|
866
|
-
}, p.toFraction = function(e) {
|
|
867
|
-
var t, r, u, i, o, l, n, s, a, f, c, A, E = this, z = E.c;
|
|
868
|
-
if (e != null && (n = new h(e), !n.isInteger() && (n.c || n.s !== 1) || n.lt(b)))
|
|
869
|
-
throw Error(C + "Argument " + (n.isInteger() ? "out of range: " : "not an integer: ") + ue(n));
|
|
870
|
-
if (!z) return new h(E);
|
|
871
|
-
for (t = new h(b), a = r = new h(b), u = s = new h(b), A = k(z), o = t.e = A.length - E.e - 1, t.c[0] = U[(l = o % $) < 0 ? $ + l : l], e = !e || n.comparedTo(t) > 0 ? o > 0 ? t : a : n, l = y, y = 1 / 0, n = new h(A), s.c[0] = 0; f = B(n, t, 0, 1), i = r.plus(f.times(u)), i.comparedTo(e) != 1; )
|
|
872
|
-
r = u, u = i, a = s.plus(f.times(i = a)), s = i, t = n.minus(f.times(i = t)), n = i;
|
|
873
|
-
return i = B(e.minus(r), u, 0, 1), s = s.plus(i.times(a)), r = r.plus(i.times(u)), s.s = a.s = E.s, o = o * 2, c = B(a, u, o, K).minus(E).abs().comparedTo(B(s, r, o, K).minus(E).abs()) < 1 ? [a, u] : [s, r], y = l, c;
|
|
874
|
-
}, p.toNumber = function() {
|
|
875
|
-
return +ue(this);
|
|
876
|
-
}, p.toPrecision = function(e, t) {
|
|
877
|
-
return e != null && x(e, 1, M), fe(this, e, t, 2);
|
|
878
|
-
}, p.toString = function(e) {
|
|
879
|
-
var t, r = this, u = r.s, i = r.e;
|
|
880
|
-
return i === null ? u ? (t = "Infinity", u < 0 && (t = "-" + t)) : t = "NaN" : (e == null ? t = i <= N || i >= g ? he(k(r.c), i) : ee(k(r.c), i, "0") : e === 10 && te ? (r = oe(new h(r), G + i + 1, K), t = ee(k(r.c), r.e, "0")) : (x(e, 2, V.length, "Base"), t = Z(ee(k(r.c), i, "0"), 10, e, u, !0)), u < 0 && r.c[0] && (t = "-" + t)), t;
|
|
881
|
-
}, p.valueOf = p.toJSON = function() {
|
|
882
|
-
return ue(this);
|
|
883
|
-
}, p._isBigNumber = !0, S != null && h.set(S), h;
|
|
884
|
-
}
|
|
885
|
-
function m(S) {
|
|
886
|
-
var B = S | 0;
|
|
887
|
-
return S > 0 || S === B ? B : B - 1;
|
|
888
|
-
}
|
|
889
|
-
function k(S) {
|
|
890
|
-
for (var B, Z, Q = 1, p = S.length, b = S[0] + ""; Q < p; ) {
|
|
891
|
-
for (B = S[Q++] + "", Z = $ - B.length; Z--; B = "0" + B) ;
|
|
892
|
-
b += B;
|
|
893
|
-
}
|
|
894
|
-
for (p = b.length; b.charCodeAt(--p) === 48; ) ;
|
|
895
|
-
return b.slice(0, p + 1 || 1);
|
|
896
|
-
}
|
|
897
|
-
function W(S, B) {
|
|
898
|
-
var Z, Q, p = S.c, b = B.c, G = S.s, K = B.s, N = S.e, g = B.e;
|
|
899
|
-
if (!G || !K) return null;
|
|
900
|
-
if (Z = p && !p[0], Q = b && !b[0], Z || Q) return Z ? Q ? 0 : -K : G;
|
|
901
|
-
if (G != K) return G;
|
|
902
|
-
if (Z = G < 0, Q = N == g, !p || !b) return Q ? 0 : !p ^ Z ? 1 : -1;
|
|
903
|
-
if (!Q) return N > g ^ Z ? 1 : -1;
|
|
904
|
-
for (K = (N = p.length) < (g = b.length) ? N : g, G = 0; G < K; G++) if (p[G] != b[G]) return p[G] > b[G] ^ Z ? 1 : -1;
|
|
905
|
-
return N == g ? 0 : N > g ^ Z ? 1 : -1;
|
|
906
|
-
}
|
|
907
|
-
function x(S, B, Z, Q) {
|
|
908
|
-
if (S < B || S > Z || S !== F(S))
|
|
909
|
-
throw Error(C + (Q || "Argument") + (typeof S == "number" ? S < B || S > Z ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(S));
|
|
910
|
-
}
|
|
911
|
-
function ie(S) {
|
|
912
|
-
var B = S.c.length - 1;
|
|
913
|
-
return m(S.e / $) == B && S.c[B] % 2 != 0;
|
|
914
|
-
}
|
|
915
|
-
function he(S, B) {
|
|
916
|
-
return (S.length > 1 ? S.charAt(0) + "." + S.slice(1) : S) + (B < 0 ? "e" : "e+") + B;
|
|
917
|
-
}
|
|
918
|
-
function ee(S, B, Z) {
|
|
919
|
-
var Q, p;
|
|
920
|
-
if (B < 0) {
|
|
921
|
-
for (p = Z + "."; ++B; p += Z) ;
|
|
922
|
-
S = p + S;
|
|
923
|
-
} else if (Q = S.length, ++B > Q) {
|
|
924
|
-
for (p = Z, B -= Q; --B; p += Z) ;
|
|
925
|
-
S += p;
|
|
926
|
-
} else B < Q && (S = S.slice(0, B) + "." + S.slice(B));
|
|
927
|
-
return S;
|
|
928
|
-
}
|
|
929
|
-
L = Y(), L.default = L.BigNumber = L, O.exports ? O.exports = L : (I || (I = typeof self < "u" && self ? self : window), I.BigNumber = L);
|
|
930
|
-
})(Ue);
|
|
931
|
-
})(We);
|
|
932
|
-
var qe = We.exports;
|
|
933
|
-
(function(O) {
|
|
934
|
-
var I = qe, L = O.exports;
|
|
935
|
-
(function() {
|
|
936
|
-
var v = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, H, F, C = {
|
|
937
|
-
// table of character substitutions
|
|
938
|
-
"\b": "\\b",
|
|
939
|
-
" ": "\\t",
|
|
940
|
-
"\n": "\\n",
|
|
941
|
-
"\f": "\\f",
|
|
942
|
-
"\r": "\\r",
|
|
943
|
-
'"': '\\"',
|
|
944
|
-
"\\": "\\\\"
|
|
945
|
-
}, _;
|
|
946
|
-
function X(P) {
|
|
947
|
-
return v.lastIndex = 0, v.test(P) ? '"' + P.replace(v, function(U) {
|
|
948
|
-
var R = C[U];
|
|
949
|
-
return typeof R == "string" ? R : "\\u" + ("0000" + U.charCodeAt(0).toString(16)).slice(-4);
|
|
950
|
-
}) + '"' : '"' + P + '"';
|
|
951
|
-
}
|
|
952
|
-
function $(P, U) {
|
|
953
|
-
var R, M, Y, m, k = H, W, x = U[P], ie = x != null && (x instanceof I || I.isBigNumber(x));
|
|
954
|
-
switch (x && typeof x == "object" && typeof x.toJSON == "function" && (x = x.toJSON(P)), typeof _ == "function" && (x = _.call(U, P, x)), typeof x) {
|
|
955
|
-
case "string":
|
|
956
|
-
return ie ? x : X(x);
|
|
957
|
-
case "number":
|
|
958
|
-
return isFinite(x) ? String(x) : "null";
|
|
959
|
-
case "boolean":
|
|
960
|
-
case "null":
|
|
961
|
-
case "bigint":
|
|
962
|
-
return String(x);
|
|
963
|
-
case "object":
|
|
964
|
-
if (!x)
|
|
965
|
-
return "null";
|
|
966
|
-
if (H += F, W = [], Object.prototype.toString.apply(x) === "[object Array]") {
|
|
967
|
-
for (m = x.length, R = 0; R < m; R += 1)
|
|
968
|
-
W[R] = $(R, x) || "null";
|
|
969
|
-
return Y = W.length === 0 ? "[]" : H ? `[
|
|
970
|
-
` + H + W.join(`,
|
|
971
|
-
` + H) + `
|
|
972
|
-
` + k + "]" : "[" + W.join(",") + "]", H = k, Y;
|
|
973
|
-
}
|
|
974
|
-
if (_ && typeof _ == "object")
|
|
975
|
-
for (m = _.length, R = 0; R < m; R += 1)
|
|
976
|
-
typeof _[R] == "string" && (M = _[R], Y = $(M, x), Y && W.push(X(M) + (H ? ": " : ":") + Y));
|
|
977
|
-
else
|
|
978
|
-
Object.keys(x).forEach(function(he) {
|
|
979
|
-
var ee = $(he, x);
|
|
980
|
-
ee && W.push(X(he) + (H ? ": " : ":") + ee);
|
|
981
|
-
});
|
|
982
|
-
return Y = W.length === 0 ? "{}" : H ? `{
|
|
983
|
-
` + H + W.join(`,
|
|
984
|
-
` + H) + `
|
|
985
|
-
` + k + "}" : "{" + W.join(",") + "}", H = k, Y;
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
typeof L.stringify != "function" && (L.stringify = function(P, U, R) {
|
|
989
|
-
var M;
|
|
990
|
-
if (H = "", F = "", typeof R == "number")
|
|
991
|
-
for (M = 0; M < R; M += 1)
|
|
992
|
-
F += " ";
|
|
993
|
-
else typeof R == "string" && (F = R);
|
|
994
|
-
if (_ = U, U && typeof U != "function" && (typeof U != "object" || typeof U.length != "number"))
|
|
995
|
-
throw new Error("JSON.stringify");
|
|
996
|
-
return $("", {
|
|
997
|
-
"": P
|
|
998
|
-
});
|
|
999
|
-
});
|
|
1000
|
-
})();
|
|
1001
|
-
})(ze);
|
|
1002
|
-
var nt = ze.exports, xe = null;
|
|
1003
|
-
const it = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/, st = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
|
|
1004
|
-
var ot = function(O) {
|
|
1005
|
-
var I = {
|
|
1006
|
-
strict: !1,
|
|
1007
|
-
// not being strict means do not generate syntax errors for "duplicate key"
|
|
1008
|
-
storeAsString: !1,
|
|
1009
|
-
// toggles whether the values should be stored as BigNumber (default) or a string
|
|
1010
|
-
alwaysParseAsBig: !1,
|
|
1011
|
-
// toggles whether all numbers should be Big
|
|
1012
|
-
useNativeBigInt: !1,
|
|
1013
|
-
// toggles whether to use native BigInt instead of bignumber.js
|
|
1014
|
-
protoAction: "error",
|
|
1015
|
-
constructorAction: "error"
|
|
1016
|
-
};
|
|
1017
|
-
if (O != null) {
|
|
1018
|
-
if (O.strict === !0 && (I.strict = !0), O.storeAsString === !0 && (I.storeAsString = !0), I.alwaysParseAsBig = O.alwaysParseAsBig === !0 ? O.alwaysParseAsBig : !1, I.useNativeBigInt = O.useNativeBigInt === !0 ? O.useNativeBigInt : !1, typeof O.constructorAction < "u")
|
|
1019
|
-
if (O.constructorAction === "error" || O.constructorAction === "ignore" || O.constructorAction === "preserve")
|
|
1020
|
-
I.constructorAction = O.constructorAction;
|
|
1021
|
-
else
|
|
1022
|
-
throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${O.constructorAction}`);
|
|
1023
|
-
if (typeof O.protoAction < "u")
|
|
1024
|
-
if (O.protoAction === "error" || O.protoAction === "ignore" || O.protoAction === "preserve")
|
|
1025
|
-
I.protoAction = O.protoAction;
|
|
1026
|
-
else
|
|
1027
|
-
throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${O.protoAction}`);
|
|
1028
|
-
}
|
|
1029
|
-
var L, v, H = {
|
|
1030
|
-
'"': '"',
|
|
1031
|
-
"\\": "\\",
|
|
1032
|
-
"/": "/",
|
|
1033
|
-
b: "\b",
|
|
1034
|
-
f: "\f",
|
|
1035
|
-
n: `
|
|
1036
|
-
`,
|
|
1037
|
-
r: "\r",
|
|
1038
|
-
t: " "
|
|
1039
|
-
}, F, C = function(m) {
|
|
1040
|
-
throw {
|
|
1041
|
-
name: "SyntaxError",
|
|
1042
|
-
message: m,
|
|
1043
|
-
at: L,
|
|
1044
|
-
text: F
|
|
1045
|
-
};
|
|
1046
|
-
}, _ = function(m) {
|
|
1047
|
-
return m && m !== v && C("Expected '" + m + "' instead of '" + v + "'"), v = F.charAt(L), L += 1, v;
|
|
1048
|
-
}, X = function() {
|
|
1049
|
-
var m, k = "";
|
|
1050
|
-
for (v === "-" && (k = "-", _("-")); v >= "0" && v <= "9"; )
|
|
1051
|
-
k += v, _();
|
|
1052
|
-
if (v === ".")
|
|
1053
|
-
for (k += "."; _() && v >= "0" && v <= "9"; )
|
|
1054
|
-
k += v;
|
|
1055
|
-
if (v === "e" || v === "E")
|
|
1056
|
-
for (k += v, _(), (v === "-" || v === "+") && (k += v, _()); v >= "0" && v <= "9"; )
|
|
1057
|
-
k += v, _();
|
|
1058
|
-
if (m = +k, !isFinite(m))
|
|
1059
|
-
C("Bad number");
|
|
1060
|
-
else
|
|
1061
|
-
return xe == null && (xe = qe), k.length > 15 ? I.storeAsString ? k : I.useNativeBigInt ? BigInt(k) : new xe(k) : I.alwaysParseAsBig ? I.useNativeBigInt ? BigInt(m) : new xe(m) : m;
|
|
1062
|
-
}, $ = function() {
|
|
1063
|
-
var m, k, W = "", x;
|
|
1064
|
-
if (v === '"')
|
|
1065
|
-
for (var ie = L; _(); ) {
|
|
1066
|
-
if (v === '"')
|
|
1067
|
-
return L - 1 > ie && (W += F.substring(ie, L - 1)), _(), W;
|
|
1068
|
-
if (v === "\\") {
|
|
1069
|
-
if (L - 1 > ie && (W += F.substring(ie, L - 1)), _(), v === "u") {
|
|
1070
|
-
for (x = 0, k = 0; k < 4 && (m = parseInt(_(), 16), !!isFinite(m)); k += 1)
|
|
1071
|
-
x = x * 16 + m;
|
|
1072
|
-
W += String.fromCharCode(x);
|
|
1073
|
-
} else if (typeof H[v] == "string")
|
|
1074
|
-
W += H[v];
|
|
1075
|
-
else
|
|
1076
|
-
break;
|
|
1077
|
-
ie = L;
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
C("Bad string");
|
|
1081
|
-
}, P = function() {
|
|
1082
|
-
for (; v && v <= " "; )
|
|
1083
|
-
_();
|
|
1084
|
-
}, U = function() {
|
|
1085
|
-
switch (v) {
|
|
1086
|
-
case "t":
|
|
1087
|
-
return _("t"), _("r"), _("u"), _("e"), !0;
|
|
1088
|
-
case "f":
|
|
1089
|
-
return _("f"), _("a"), _("l"), _("s"), _("e"), !1;
|
|
1090
|
-
case "n":
|
|
1091
|
-
return _("n"), _("u"), _("l"), _("l"), null;
|
|
1092
|
-
}
|
|
1093
|
-
C("Unexpected '" + v + "'");
|
|
1094
|
-
}, R, M = function() {
|
|
1095
|
-
var m = [];
|
|
1096
|
-
if (v === "[") {
|
|
1097
|
-
if (_("["), P(), v === "]")
|
|
1098
|
-
return _("]"), m;
|
|
1099
|
-
for (; v; ) {
|
|
1100
|
-
if (m.push(R()), P(), v === "]")
|
|
1101
|
-
return _("]"), m;
|
|
1102
|
-
_(","), P();
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
C("Bad array");
|
|
1106
|
-
}, Y = function() {
|
|
1107
|
-
var m, k = /* @__PURE__ */ Object.create(null);
|
|
1108
|
-
if (v === "{") {
|
|
1109
|
-
if (_("{"), P(), v === "}")
|
|
1110
|
-
return _("}"), k;
|
|
1111
|
-
for (; v; ) {
|
|
1112
|
-
if (m = $(), P(), _(":"), I.strict === !0 && Object.hasOwnProperty.call(k, m) && C('Duplicate key "' + m + '"'), it.test(m) === !0 ? I.protoAction === "error" ? C("Object contains forbidden prototype property") : I.protoAction === "ignore" ? R() : k[m] = R() : st.test(m) === !0 ? I.constructorAction === "error" ? C("Object contains forbidden constructor property") : I.constructorAction === "ignore" ? R() : k[m] = R() : k[m] = R(), P(), v === "}")
|
|
1113
|
-
return _("}"), k;
|
|
1114
|
-
_(","), P();
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
C("Bad object");
|
|
1118
|
-
};
|
|
1119
|
-
return R = function() {
|
|
1120
|
-
switch (P(), v) {
|
|
1121
|
-
case "{":
|
|
1122
|
-
return Y();
|
|
1123
|
-
case "[":
|
|
1124
|
-
return M();
|
|
1125
|
-
case '"':
|
|
1126
|
-
return $();
|
|
1127
|
-
case "-":
|
|
1128
|
-
return X();
|
|
1129
|
-
default:
|
|
1130
|
-
return v >= "0" && v <= "9" ? X() : U();
|
|
1131
|
-
}
|
|
1132
|
-
}, function(m, k) {
|
|
1133
|
-
var W;
|
|
1134
|
-
return F = m + "", L = 0, v = " ", W = R(), P(), v && C("Syntax error"), typeof k == "function" ? function x(ie, he) {
|
|
1135
|
-
var ee, S = ie[he];
|
|
1136
|
-
return S && typeof S == "object" && Object.keys(S).forEach(function(B) {
|
|
1137
|
-
ee = x(S, B), ee !== void 0 ? S[B] = ee : delete S[B];
|
|
1138
|
-
}), k.call(ie, he, S);
|
|
1139
|
-
}({
|
|
1140
|
-
"": W
|
|
1141
|
-
}, "") : W;
|
|
1142
|
-
};
|
|
1143
|
-
}, ut = ot, He = nt.stringify, Ge = ut;
|
|
1144
|
-
Te.exports = function(O) {
|
|
1145
|
-
return {
|
|
1146
|
-
parse: Ge(O),
|
|
1147
|
-
stringify: He
|
|
1148
|
-
};
|
|
1149
|
-
};
|
|
1150
|
-
var ft = Te.exports.parse = Ge(), at = Te.exports.stringify = He;
|
|
1151
|
-
function Dt(O, I) {
|
|
1152
|
-
return O.find((L) => L.key === I);
|
|
1153
|
-
}
|
|
1154
|
-
function kt(O, I) {
|
|
1155
|
-
return O.find((L) => L.key === I);
|
|
1156
|
-
}
|
|
1157
|
-
function lt(O) {
|
|
1158
|
-
try {
|
|
1159
|
-
const I = typeof O == "string" ? ft(O) : O;
|
|
1160
|
-
return at(I, null, 2);
|
|
1161
|
-
} catch (I) {
|
|
1162
|
-
return console.error("Invalid JSON data:", I), O;
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
function Pe(O) {
|
|
1166
|
-
return O ? typeof O == "object" && O !== null ? lt(O) : typeof O == "boolean" || typeof O == "number" || O != null ? O.toString() : "-" : "-";
|
|
1167
|
-
}
|
|
1168
|
-
function Ce(O, I) {
|
|
1169
|
-
return I.split(".").reduce((L, v) => L == null ? void 0 : L[v], O);
|
|
1170
|
-
}
|
|
1171
|
-
const ct = /* @__PURE__ */ Re({
|
|
1172
|
-
__name: "Ellipsis",
|
|
1173
|
-
props: {
|
|
1174
|
-
open: {
|
|
1175
|
-
type: Boolean,
|
|
1176
|
-
required: !1,
|
|
1177
|
-
default: () => !0
|
|
1178
|
-
}
|
|
1179
|
-
},
|
|
1180
|
-
setup(O) {
|
|
1181
|
-
const I = O, L = Ie(null), v = Ve(() => I.open ? L.value ? {
|
|
1182
|
-
width: `${L.value.clientWidth}px`,
|
|
1183
|
-
whiteSpace: "nowrap",
|
|
1184
|
-
overflow: "hidden",
|
|
1185
|
-
textOverflow: "ellipsis"
|
|
1186
|
-
} : {} : {}), H = () => {
|
|
1187
|
-
if (I.open && L.value) {
|
|
1188
|
-
const F = L.value.clientWidth;
|
|
1189
|
-
L.value.style.width = `${F}px`;
|
|
1190
|
-
}
|
|
1191
|
-
};
|
|
1192
|
-
return Ye(() => {
|
|
1193
|
-
I.open && (H(), window.addEventListener("resize", H));
|
|
1194
|
-
}), Je(() => {
|
|
1195
|
-
I.open && window.removeEventListener("resize", H);
|
|
1196
|
-
}), (F, C) => (ce(), de("div", {
|
|
1197
|
-
ref_key: "ellipsisContainer",
|
|
1198
|
-
ref: L,
|
|
1199
|
-
style: be(v.value)
|
|
1200
|
-
}, [Fe(F.$slots, "default", {}, void 0, !0)], 4));
|
|
1201
|
-
}
|
|
1202
|
-
}), ht = /* @__PURE__ */ je(ct, [["__scopeId", "data-v-4f6d3d7a"]]), pt = {
|
|
1203
|
-
class: "CubeTableCom"
|
|
1204
|
-
}, dt = {
|
|
1205
|
-
class: "tableContain"
|
|
1206
|
-
}, gt = {
|
|
1207
|
-
class: "tableRow"
|
|
1208
|
-
}, wt = ["onMouseenter", "onMouseleave"], vt = {
|
|
1209
|
-
key: 0,
|
|
1210
|
-
class: "contain"
|
|
1211
|
-
}, mt = {
|
|
1212
|
-
class: "pagination"
|
|
1213
|
-
}, yt = /* @__PURE__ */ Re({
|
|
1214
|
-
__name: "CustomTable",
|
|
1215
|
-
props: {
|
|
1216
|
-
loading: {
|
|
1217
|
-
type: Boolean,
|
|
1218
|
-
required: !1,
|
|
1219
|
-
default: () => !1
|
|
1220
|
-
},
|
|
1221
|
-
bordered: {
|
|
1222
|
-
type: Boolean,
|
|
1223
|
-
required: !1,
|
|
1224
|
-
default: () => !0
|
|
1225
|
-
},
|
|
1226
|
-
data: {
|
|
1227
|
-
type: Array,
|
|
1228
|
-
required: !0,
|
|
1229
|
-
default: () => []
|
|
1230
|
-
},
|
|
1231
|
-
pagination: {
|
|
1232
|
-
type: Object,
|
|
1233
|
-
required: !1,
|
|
1234
|
-
default: () => null
|
|
1235
|
-
},
|
|
1236
|
-
columns: {
|
|
1237
|
-
type: Array,
|
|
1238
|
-
required: !0,
|
|
1239
|
-
default: () => []
|
|
1240
|
-
}
|
|
1241
|
-
},
|
|
1242
|
-
emits: ["mouseenter", "mouseleave", "pageChange", "pageSizeChange"],
|
|
1243
|
-
setup(O, {
|
|
1244
|
-
emit: I
|
|
1245
|
-
}) {
|
|
1246
|
-
const L = Ie(-1), v = I, H = (P) => {
|
|
1247
|
-
v("pageChange", P);
|
|
1248
|
-
}, F = (P) => {
|
|
1249
|
-
v("pageSizeChange", P);
|
|
1250
|
-
}, C = O;
|
|
1251
|
-
function _(P) {
|
|
1252
|
-
const U = Ze();
|
|
1253
|
-
return P ? !!U[P] : !1;
|
|
1254
|
-
}
|
|
1255
|
-
function X(P) {
|
|
1256
|
-
L.value = P, v("mouseenter", P);
|
|
1257
|
-
}
|
|
1258
|
-
function $(P) {
|
|
1259
|
-
L.value = -1, v("mouseleave", P);
|
|
1260
|
-
}
|
|
1261
|
-
return (P, U) => (ce(), de("div", pt, [Le(me(Qe), {
|
|
1262
|
-
loading: C.loading,
|
|
1263
|
-
tip: "数据加载中"
|
|
1264
|
-
}, {
|
|
1265
|
-
default: Ee(() => {
|
|
1266
|
-
var R;
|
|
1267
|
-
return [ye("div", dt, [ye("table", null, [ye("thead", null, [ye("tr", gt, [(ce(!0), de($e, null, Me(C.columns, (M, Y) => (ce(), de("th", {
|
|
1268
|
-
key: Y,
|
|
1269
|
-
class: Be({
|
|
1270
|
-
fixed: M.fixed,
|
|
1271
|
-
fixedBackground: M.fixed,
|
|
1272
|
-
lastBorder: Y === C.columns.length - 1
|
|
1273
|
-
}),
|
|
1274
|
-
style: be({
|
|
1275
|
-
minWidth: `${M.minWidth}px`,
|
|
1276
|
-
width: `${M.width}px`
|
|
1277
|
-
})
|
|
1278
|
-
}, De(M.title), 7))), 128))])]), ye("tbody", null, [(ce(!0), de($e, null, Me(C.data, (M, Y) => (ce(), de("tr", {
|
|
1279
|
-
key: Y,
|
|
1280
|
-
class: Be(["tableRow", {
|
|
1281
|
-
trListHover: Y === L.value
|
|
1282
|
-
}]),
|
|
1283
|
-
onMouseenter: (m) => X(Y),
|
|
1284
|
-
onMouseleave: (m) => $(Y)
|
|
1285
|
-
}, [(ce(!0), de($e, null, Me(C.columns, (m, k) => (ce(), de("td", {
|
|
1286
|
-
key: k,
|
|
1287
|
-
class: Be({
|
|
1288
|
-
fixed: m.fixed,
|
|
1289
|
-
trListHover: Y === L.value,
|
|
1290
|
-
lastBorder: k === C.columns.length - 1
|
|
1291
|
-
}),
|
|
1292
|
-
style: be({
|
|
1293
|
-
minWidth: `${m.minWidth}px`,
|
|
1294
|
-
width: `${m.width}px`
|
|
1295
|
-
})
|
|
1296
|
-
}, [Le(ht, {
|
|
1297
|
-
open: m.ellipsis
|
|
1298
|
-
}, {
|
|
1299
|
-
default: Ee(() => [_(m.slotName) ? Fe(P.$slots, m.slotName, {
|
|
1300
|
-
key: 0,
|
|
1301
|
-
record: M
|
|
1302
|
-
}, void 0, !0) : (ce(), de($e, {
|
|
1303
|
-
key: 1
|
|
1304
|
-
}, [m.dataIndex ? (ce(), de($e, {
|
|
1305
|
-
key: 0
|
|
1306
|
-
}, [m.tooltip ? (ce(), ke(me(Ke), {
|
|
1307
|
-
key: 0,
|
|
1308
|
-
content: me(Pe)(me(Ce)(M, m.dataIndex)),
|
|
1309
|
-
position: "bottom"
|
|
1310
|
-
}, {
|
|
1311
|
-
default: Ee(() => [ye("span", null, De(me(Ce)(M, m.dataIndex)), 1)]),
|
|
1312
|
-
_: 2
|
|
1313
|
-
}, 1032, ["content"])) : (ce(), de($e, {
|
|
1314
|
-
key: 1
|
|
1315
|
-
}, [Xe(De(me(Pe)(me(Ce)(M, m.dataIndex))), 1)], 64))], 64)) : Se("", !0)], 64))]),
|
|
1316
|
-
_: 2
|
|
1317
|
-
}, 1032, ["open"])], 6))), 128))], 42, wt))), 128))])]), C.data.length === 0 ? (ce(), de("div", vt, [C.data.length === 0 ? (ce(), ke(me(et), {
|
|
1318
|
-
key: 0
|
|
1319
|
-
})) : Se("", !0)])) : Se("", !0)]), ye("div", mt, [C.pagination ? (ce(), ke(me(tt), {
|
|
1320
|
-
key: 0,
|
|
1321
|
-
modelValue: C.pagination.current,
|
|
1322
|
-
"onUpdate:modelValue": U[0] || (U[0] = (M) => C.pagination.current = M),
|
|
1323
|
-
total: ((R = C.pagination) == null ? void 0 : R.total) || 0,
|
|
1324
|
-
"page-size": O.pagination.pageSize,
|
|
1325
|
-
"show-total": O.pagination.showTotal,
|
|
1326
|
-
"show-jumper": O.pagination.showJumper,
|
|
1327
|
-
"show-page-size": O.pagination.showPageSize,
|
|
1328
|
-
onChange: H,
|
|
1329
|
-
onPageSizeChange: F
|
|
1330
|
-
}, null, 8, ["modelValue", "total", "page-size", "show-total", "show-jumper", "show-page-size"])) : Se("", !0)])];
|
|
1331
|
-
}),
|
|
1332
|
-
_: 3
|
|
1333
|
-
}, 8, ["loading"])]));
|
|
1334
|
-
}
|
|
1335
|
-
}), Ct = /* @__PURE__ */ je(yt, [["__scopeId", "data-v-aab4dbd5"]]);
|
|
1336
|
-
export {
|
|
1337
|
-
Ct as C,
|
|
1338
|
-
ht as E,
|
|
1339
|
-
Dt as a,
|
|
1340
|
-
kt as f
|
|
1341
|
-
};
|