@fsystem/fswt-ui-tools 0.3.3 → 0.3.4
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/fswt-ui-tools.es.js +568 -557
- package/dist/fswt-ui-tools.umd.js +3 -3
- package/dist/types/tools/Array.d.ts +122 -96
- package/dist/types/tools/Color.d.ts +17 -17
- package/dist/types/tools/Date.d.ts +85 -85
- package/dist/types/tools/Element.d.ts +32 -32
- package/dist/types/tools/Exec.d.ts +7 -7
- package/dist/types/tools/Interact.d.ts +37 -37
- package/dist/types/tools/Judge.d.ts +61 -61
- package/dist/types/tools/Map.d.ts +7 -7
- package/dist/types/tools/Number.d.ts +14 -14
- package/dist/types/tools/Object.d.ts +13 -33
- package/dist/types/tools/Path.d.ts +5 -5
- package/dist/types/tools/Storage.d.ts +9 -9
- package/dist/types/tools/String.d.ts +74 -69
- package/dist/types/tools/Util.d.ts +69 -69
- package/dist/types/tools/index.d.ts +15 -15
- package/dist/types/tools/pe/MicrosoftPeFileVersion.d.ts +5 -5
- package/dist/types/utils/index.d.ts +5 -5
- package/package.json +38 -38
package/dist/fswt-ui-tools.es.js
CHANGED
|
@@ -10,8 +10,8 @@ function St() {
|
|
|
10
10
|
if (Ue)
|
|
11
11
|
return G;
|
|
12
12
|
Ue = 1, G.byteLength = o, G.toByteArray = g, G.fromByteArray = m;
|
|
13
|
-
for (var e = [], r = [], a = typeof Uint8Array < "u" ? Uint8Array : Array, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
14
|
-
e[
|
|
13
|
+
for (var e = [], r = [], a = typeof Uint8Array < "u" ? Uint8Array : Array, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", c = 0, p = n.length; c < p; ++c)
|
|
14
|
+
e[c] = n[c], r[n.charCodeAt(c)] = c;
|
|
15
15
|
r["-".charCodeAt(0)] = 62, r["_".charCodeAt(0)] = 63;
|
|
16
16
|
function d(b) {
|
|
17
17
|
var E = b.length;
|
|
@@ -58,8 +58,8 @@ var K = {};
|
|
|
58
58
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
59
59
|
var Te;
|
|
60
60
|
function Bt() {
|
|
61
|
-
return Te || (Te = 1, K.read = function(e, r, a, n,
|
|
62
|
-
var p, d, o =
|
|
61
|
+
return Te || (Te = 1, K.read = function(e, r, a, n, c) {
|
|
62
|
+
var p, d, o = c * 8 - n - 1, w = (1 << o) - 1, g = w >> 1, s = -7, u = a ? c - 1 : 0, m = a ? -1 : 1, b = e[r + u];
|
|
63
63
|
for (u += m, p = b & (1 << -s) - 1, b >>= -s, s += o; s > 0; p = p * 256 + e[r + u], u += m, s -= 8)
|
|
64
64
|
;
|
|
65
65
|
for (d = p & (1 << -s) - 1, p >>= -s, s += n; s > 0; d = d * 256 + e[r + u], u += m, s -= 8)
|
|
@@ -72,11 +72,11 @@ function Bt() {
|
|
|
72
72
|
d = d + Math.pow(2, n), p = p - g;
|
|
73
73
|
}
|
|
74
74
|
return (b ? -1 : 1) * d * Math.pow(2, p - n);
|
|
75
|
-
}, K.write = function(e, r, a, n,
|
|
76
|
-
var d, o, w, g = p * 8 -
|
|
77
|
-
for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (o = isNaN(r) ? 1 : 0, d = s) : (d = Math.floor(Math.log(r) / Math.LN2), r * (w = Math.pow(2, -d)) < 1 && (d--, w *= 2), d + u >= 1 ? r += m / w : r += m * Math.pow(2, 1 - u), r * w >= 2 && (d++, w /= 2), d + u >= s ? (o = 0, d = s) : d + u >= 1 ? (o = (r * w - 1) * Math.pow(2,
|
|
75
|
+
}, K.write = function(e, r, a, n, c, p) {
|
|
76
|
+
var d, o, w, g = p * 8 - c - 1, s = (1 << g) - 1, u = s >> 1, m = c === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, b = n ? 0 : p - 1, E = n ? 1 : -1, v = r < 0 || r === 0 && 1 / r < 0 ? 1 : 0;
|
|
77
|
+
for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (o = isNaN(r) ? 1 : 0, d = s) : (d = Math.floor(Math.log(r) / Math.LN2), r * (w = Math.pow(2, -d)) < 1 && (d--, w *= 2), d + u >= 1 ? r += m / w : r += m * Math.pow(2, 1 - u), r * w >= 2 && (d++, w /= 2), d + u >= s ? (o = 0, d = s) : d + u >= 1 ? (o = (r * w - 1) * Math.pow(2, c), d = d + u) : (o = r * Math.pow(2, u - 1) * Math.pow(2, c), d = 0)); c >= 8; e[a + b] = o & 255, b += E, o /= 256, c -= 8)
|
|
78
78
|
;
|
|
79
|
-
for (d = d <<
|
|
79
|
+
for (d = d << c | o, g += c; g > 0; e[a + b] = d & 255, b += E, d /= 256, g -= 8)
|
|
80
80
|
;
|
|
81
81
|
e[a + b - E] |= v * 128;
|
|
82
82
|
}), K;
|
|
@@ -92,16 +92,16 @@ function Ke() {
|
|
|
92
92
|
return Fe || (Fe = 1, function(e) {
|
|
93
93
|
var r = St(), a = Bt(), n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
94
94
|
e.Buffer = o, e.SlowBuffer = y, e.INSPECT_MAX_BYTES = 50;
|
|
95
|
-
var
|
|
96
|
-
e.kMaxLength =
|
|
95
|
+
var c = 2147483647;
|
|
96
|
+
e.kMaxLength = c, o.TYPED_ARRAY_SUPPORT = p(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
97
97
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
98
98
|
);
|
|
99
99
|
function p() {
|
|
100
100
|
try {
|
|
101
|
-
var
|
|
101
|
+
var f = new Uint8Array(1), t = { foo: function() {
|
|
102
102
|
return 42;
|
|
103
103
|
} };
|
|
104
|
-
return Object.setPrototypeOf(t, Uint8Array.prototype), Object.setPrototypeOf(
|
|
104
|
+
return Object.setPrototypeOf(t, Uint8Array.prototype), Object.setPrototypeOf(f, t), f.foo() === 42;
|
|
105
105
|
} catch {
|
|
106
106
|
return !1;
|
|
107
107
|
}
|
|
@@ -119,120 +119,120 @@ function Ke() {
|
|
|
119
119
|
return this.byteOffset;
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
|
-
function d(
|
|
123
|
-
if (
|
|
124
|
-
throw new RangeError('The value "' +
|
|
125
|
-
var t = new Uint8Array(
|
|
122
|
+
function d(f) {
|
|
123
|
+
if (f > c)
|
|
124
|
+
throw new RangeError('The value "' + f + '" is invalid for option "size"');
|
|
125
|
+
var t = new Uint8Array(f);
|
|
126
126
|
return Object.setPrototypeOf(t, o.prototype), t;
|
|
127
127
|
}
|
|
128
|
-
function o(
|
|
129
|
-
if (typeof
|
|
128
|
+
function o(f, t, i) {
|
|
129
|
+
if (typeof f == "number") {
|
|
130
130
|
if (typeof t == "string")
|
|
131
131
|
throw new TypeError(
|
|
132
132
|
'The "string" argument must be of type string. Received type number'
|
|
133
133
|
);
|
|
134
|
-
return u(
|
|
134
|
+
return u(f);
|
|
135
135
|
}
|
|
136
|
-
return w(
|
|
136
|
+
return w(f, t, i);
|
|
137
137
|
}
|
|
138
138
|
o.poolSize = 8192;
|
|
139
|
-
function w(
|
|
140
|
-
if (typeof
|
|
141
|
-
return m(
|
|
142
|
-
if (ArrayBuffer.isView(
|
|
143
|
-
return E(
|
|
144
|
-
if (
|
|
139
|
+
function w(f, t, i) {
|
|
140
|
+
if (typeof f == "string")
|
|
141
|
+
return m(f, t);
|
|
142
|
+
if (ArrayBuffer.isView(f))
|
|
143
|
+
return E(f);
|
|
144
|
+
if (f == null)
|
|
145
145
|
throw new TypeError(
|
|
146
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof
|
|
146
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof f
|
|
147
147
|
);
|
|
148
|
-
if (N(
|
|
149
|
-
return v(
|
|
150
|
-
if (typeof
|
|
148
|
+
if (N(f, ArrayBuffer) || f && N(f.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (N(f, SharedArrayBuffer) || f && N(f.buffer, SharedArrayBuffer)))
|
|
149
|
+
return v(f, t, i);
|
|
150
|
+
if (typeof f == "number")
|
|
151
151
|
throw new TypeError(
|
|
152
152
|
'The "value" argument must not be of type number. Received type number'
|
|
153
153
|
);
|
|
154
|
-
var l =
|
|
155
|
-
if (l != null && l !==
|
|
154
|
+
var l = f.valueOf && f.valueOf();
|
|
155
|
+
if (l != null && l !== f)
|
|
156
156
|
return o.from(l, t, i);
|
|
157
|
-
var x = S(
|
|
157
|
+
var x = S(f);
|
|
158
158
|
if (x)
|
|
159
159
|
return x;
|
|
160
|
-
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof
|
|
160
|
+
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof f[Symbol.toPrimitive] == "function")
|
|
161
161
|
return o.from(
|
|
162
|
-
|
|
162
|
+
f[Symbol.toPrimitive]("string"),
|
|
163
163
|
t,
|
|
164
164
|
i
|
|
165
165
|
);
|
|
166
166
|
throw new TypeError(
|
|
167
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof
|
|
167
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof f
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
|
-
o.from = function(
|
|
171
|
-
return w(
|
|
170
|
+
o.from = function(f, t, i) {
|
|
171
|
+
return w(f, t, i);
|
|
172
172
|
}, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array);
|
|
173
|
-
function g(
|
|
174
|
-
if (typeof
|
|
173
|
+
function g(f) {
|
|
174
|
+
if (typeof f != "number")
|
|
175
175
|
throw new TypeError('"size" argument must be of type number');
|
|
176
|
-
if (
|
|
177
|
-
throw new RangeError('The value "' +
|
|
176
|
+
if (f < 0)
|
|
177
|
+
throw new RangeError('The value "' + f + '" is invalid for option "size"');
|
|
178
178
|
}
|
|
179
|
-
function s(
|
|
180
|
-
return g(
|
|
179
|
+
function s(f, t, i) {
|
|
180
|
+
return g(f), f <= 0 ? d(f) : t !== void 0 ? typeof i == "string" ? d(f).fill(t, i) : d(f).fill(t) : d(f);
|
|
181
181
|
}
|
|
182
|
-
o.alloc = function(
|
|
183
|
-
return s(
|
|
182
|
+
o.alloc = function(f, t, i) {
|
|
183
|
+
return s(f, t, i);
|
|
184
184
|
};
|
|
185
|
-
function u(
|
|
186
|
-
return g(
|
|
185
|
+
function u(f) {
|
|
186
|
+
return g(f), d(f < 0 ? 0 : h(f) | 0);
|
|
187
187
|
}
|
|
188
|
-
o.allocUnsafe = function(
|
|
189
|
-
return u(
|
|
190
|
-
}, o.allocUnsafeSlow = function(
|
|
191
|
-
return u(
|
|
188
|
+
o.allocUnsafe = function(f) {
|
|
189
|
+
return u(f);
|
|
190
|
+
}, o.allocUnsafeSlow = function(f) {
|
|
191
|
+
return u(f);
|
|
192
192
|
};
|
|
193
|
-
function m(
|
|
193
|
+
function m(f, t) {
|
|
194
194
|
if ((typeof t != "string" || t === "") && (t = "utf8"), !o.isEncoding(t))
|
|
195
195
|
throw new TypeError("Unknown encoding: " + t);
|
|
196
|
-
var i = _(
|
|
196
|
+
var i = _(f, t) | 0, l = d(i), x = l.write(f, t);
|
|
197
197
|
return x !== i && (l = l.slice(0, x)), l;
|
|
198
198
|
}
|
|
199
|
-
function b(
|
|
200
|
-
for (var t =
|
|
201
|
-
i[l] =
|
|
199
|
+
function b(f) {
|
|
200
|
+
for (var t = f.length < 0 ? 0 : h(f.length) | 0, i = d(t), l = 0; l < t; l += 1)
|
|
201
|
+
i[l] = f[l] & 255;
|
|
202
202
|
return i;
|
|
203
203
|
}
|
|
204
|
-
function E(
|
|
205
|
-
if (N(
|
|
206
|
-
var t = new Uint8Array(
|
|
204
|
+
function E(f) {
|
|
205
|
+
if (N(f, Uint8Array)) {
|
|
206
|
+
var t = new Uint8Array(f);
|
|
207
207
|
return v(t.buffer, t.byteOffset, t.byteLength);
|
|
208
208
|
}
|
|
209
|
-
return b(
|
|
209
|
+
return b(f);
|
|
210
210
|
}
|
|
211
|
-
function v(
|
|
212
|
-
if (t < 0 ||
|
|
211
|
+
function v(f, t, i) {
|
|
212
|
+
if (t < 0 || f.byteLength < t)
|
|
213
213
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
214
|
-
if (
|
|
214
|
+
if (f.byteLength < t + (i || 0))
|
|
215
215
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
216
216
|
var l;
|
|
217
|
-
return t === void 0 && i === void 0 ? l = new Uint8Array(
|
|
217
|
+
return t === void 0 && i === void 0 ? l = new Uint8Array(f) : i === void 0 ? l = new Uint8Array(f, t) : l = new Uint8Array(f, t, i), Object.setPrototypeOf(l, o.prototype), l;
|
|
218
218
|
}
|
|
219
|
-
function S(
|
|
220
|
-
if (o.isBuffer(
|
|
221
|
-
var t = h(
|
|
222
|
-
return i.length === 0 ||
|
|
219
|
+
function S(f) {
|
|
220
|
+
if (o.isBuffer(f)) {
|
|
221
|
+
var t = h(f.length) | 0, i = d(t);
|
|
222
|
+
return i.length === 0 || f.copy(i, 0, 0, t), i;
|
|
223
223
|
}
|
|
224
|
-
if (
|
|
225
|
-
return typeof
|
|
226
|
-
if (
|
|
227
|
-
return b(
|
|
224
|
+
if (f.length !== void 0)
|
|
225
|
+
return typeof f.length != "number" || re(f.length) ? d(0) : b(f);
|
|
226
|
+
if (f.type === "Buffer" && Array.isArray(f.data))
|
|
227
|
+
return b(f.data);
|
|
228
228
|
}
|
|
229
|
-
function h(
|
|
230
|
-
if (
|
|
231
|
-
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" +
|
|
232
|
-
return
|
|
229
|
+
function h(f) {
|
|
230
|
+
if (f >= c)
|
|
231
|
+
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + c.toString(16) + " bytes");
|
|
232
|
+
return f | 0;
|
|
233
233
|
}
|
|
234
|
-
function y(
|
|
235
|
-
return +
|
|
234
|
+
function y(f) {
|
|
235
|
+
return +f != f && (f = 0), o.alloc(+f);
|
|
236
236
|
}
|
|
237
237
|
o.isBuffer = function(t) {
|
|
238
238
|
return t != null && t._isBuffer === !0 && t !== o.prototype;
|
|
@@ -292,16 +292,16 @@ function Ke() {
|
|
|
292
292
|
}
|
|
293
293
|
return x;
|
|
294
294
|
};
|
|
295
|
-
function _(
|
|
296
|
-
if (o.isBuffer(
|
|
297
|
-
return
|
|
298
|
-
if (ArrayBuffer.isView(
|
|
299
|
-
return
|
|
300
|
-
if (typeof
|
|
295
|
+
function _(f, t) {
|
|
296
|
+
if (o.isBuffer(f))
|
|
297
|
+
return f.length;
|
|
298
|
+
if (ArrayBuffer.isView(f) || N(f, ArrayBuffer))
|
|
299
|
+
return f.byteLength;
|
|
300
|
+
if (typeof f != "string")
|
|
301
301
|
throw new TypeError(
|
|
302
|
-
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof
|
|
302
|
+
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof f
|
|
303
303
|
);
|
|
304
|
-
var i =
|
|
304
|
+
var i = f.length, l = arguments.length > 2 && arguments[2] === !0;
|
|
305
305
|
if (!l && i === 0)
|
|
306
306
|
return 0;
|
|
307
307
|
for (var x = !1; ; )
|
|
@@ -312,7 +312,7 @@ function Ke() {
|
|
|
312
312
|
return i;
|
|
313
313
|
case "utf8":
|
|
314
314
|
case "utf-8":
|
|
315
|
-
return te(
|
|
315
|
+
return te(f).length;
|
|
316
316
|
case "ucs2":
|
|
317
317
|
case "ucs-2":
|
|
318
318
|
case "utf16le":
|
|
@@ -321,20 +321,20 @@ function Ke() {
|
|
|
321
321
|
case "hex":
|
|
322
322
|
return i >>> 1;
|
|
323
323
|
case "base64":
|
|
324
|
-
return Se(
|
|
324
|
+
return Se(f).length;
|
|
325
325
|
default:
|
|
326
326
|
if (x)
|
|
327
|
-
return l ? -1 : te(
|
|
327
|
+
return l ? -1 : te(f).length;
|
|
328
328
|
t = ("" + t).toLowerCase(), x = !0;
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
o.byteLength = _;
|
|
332
|
-
function B(
|
|
332
|
+
function B(f, t, i) {
|
|
333
333
|
var l = !1;
|
|
334
334
|
if ((t === void 0 || t < 0) && (t = 0), t > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, t >>>= 0, i <= t))
|
|
335
335
|
return "";
|
|
336
|
-
for (
|
|
337
|
-
switch (
|
|
336
|
+
for (f || (f = "utf8"); ; )
|
|
337
|
+
switch (f) {
|
|
338
338
|
case "hex":
|
|
339
339
|
return yt(this, t, i);
|
|
340
340
|
case "utf8":
|
|
@@ -354,14 +354,14 @@ function Ke() {
|
|
|
354
354
|
return gt(this, t, i);
|
|
355
355
|
default:
|
|
356
356
|
if (l)
|
|
357
|
-
throw new TypeError("Unknown encoding: " +
|
|
358
|
-
|
|
357
|
+
throw new TypeError("Unknown encoding: " + f);
|
|
358
|
+
f = (f + "").toLowerCase(), l = !0;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
o.prototype._isBuffer = !0;
|
|
362
|
-
function U(
|
|
363
|
-
var l =
|
|
364
|
-
|
|
362
|
+
function U(f, t, i) {
|
|
363
|
+
var l = f[t];
|
|
364
|
+
f[t] = f[i], f[i] = l;
|
|
365
365
|
}
|
|
366
366
|
o.prototype.swap16 = function() {
|
|
367
367
|
var t = this.length;
|
|
@@ -416,28 +416,28 @@ function Ke() {
|
|
|
416
416
|
}
|
|
417
417
|
return T < O ? -1 : O < T ? 1 : 0;
|
|
418
418
|
};
|
|
419
|
-
function F(
|
|
420
|
-
if (
|
|
419
|
+
function F(f, t, i, l, x) {
|
|
420
|
+
if (f.length === 0)
|
|
421
421
|
return -1;
|
|
422
|
-
if (typeof i == "string" ? (l = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, re(i) && (i = x ? 0 :
|
|
422
|
+
if (typeof i == "string" ? (l = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, re(i) && (i = x ? 0 : f.length - 1), i < 0 && (i = f.length + i), i >= f.length) {
|
|
423
423
|
if (x)
|
|
424
424
|
return -1;
|
|
425
|
-
i =
|
|
425
|
+
i = f.length - 1;
|
|
426
426
|
} else if (i < 0)
|
|
427
427
|
if (x)
|
|
428
428
|
i = 0;
|
|
429
429
|
else
|
|
430
430
|
return -1;
|
|
431
431
|
if (typeof t == "string" && (t = o.from(t, l)), o.isBuffer(t))
|
|
432
|
-
return t.length === 0 ? -1 : P(
|
|
432
|
+
return t.length === 0 ? -1 : P(f, t, i, l, x);
|
|
433
433
|
if (typeof t == "number")
|
|
434
|
-
return t = t & 255, typeof Uint8Array.prototype.indexOf == "function" ? x ? Uint8Array.prototype.indexOf.call(
|
|
434
|
+
return t = t & 255, typeof Uint8Array.prototype.indexOf == "function" ? x ? Uint8Array.prototype.indexOf.call(f, t, i) : Uint8Array.prototype.lastIndexOf.call(f, t, i) : P(f, [t], i, l, x);
|
|
435
435
|
throw new TypeError("val must be string, number or Buffer");
|
|
436
436
|
}
|
|
437
|
-
function P(
|
|
438
|
-
var A = 1, T =
|
|
437
|
+
function P(f, t, i, l, x) {
|
|
438
|
+
var A = 1, T = f.length, O = t.length;
|
|
439
439
|
if (l !== void 0 && (l = String(l).toLowerCase(), l === "ucs2" || l === "ucs-2" || l === "utf16le" || l === "utf-16le")) {
|
|
440
|
-
if (
|
|
440
|
+
if (f.length < 2 || t.length < 2)
|
|
441
441
|
return -1;
|
|
442
442
|
A = 2, T /= 2, O /= 2, i /= 2;
|
|
443
443
|
}
|
|
@@ -448,7 +448,7 @@ function Ke() {
|
|
|
448
448
|
if (x) {
|
|
449
449
|
var R = -1;
|
|
450
450
|
for (C = i; C < T; C++)
|
|
451
|
-
if (I(
|
|
451
|
+
if (I(f, C) === I(t, R === -1 ? 0 : C - R)) {
|
|
452
452
|
if (R === -1 && (R = C), C - R + 1 === O)
|
|
453
453
|
return R * A;
|
|
454
454
|
} else
|
|
@@ -456,7 +456,7 @@ function Ke() {
|
|
|
456
456
|
} else
|
|
457
457
|
for (i + O > T && (i = T - O), C = i; C >= 0; C--) {
|
|
458
458
|
for (var D = !0, X = 0; X < O; X++)
|
|
459
|
-
if (I(
|
|
459
|
+
if (I(f, C + X) !== I(t, X)) {
|
|
460
460
|
D = !1;
|
|
461
461
|
break;
|
|
462
462
|
}
|
|
@@ -472,9 +472,9 @@ function Ke() {
|
|
|
472
472
|
}, o.prototype.lastIndexOf = function(t, i, l) {
|
|
473
473
|
return F(this, t, i, l, !1);
|
|
474
474
|
};
|
|
475
|
-
function M(
|
|
475
|
+
function M(f, t, i, l) {
|
|
476
476
|
i = Number(i) || 0;
|
|
477
|
-
var x =
|
|
477
|
+
var x = f.length - i;
|
|
478
478
|
l ? (l = Number(l), l > x && (l = x)) : l = x;
|
|
479
479
|
var A = t.length;
|
|
480
480
|
l > A / 2 && (l = A / 2);
|
|
@@ -482,21 +482,21 @@ function Ke() {
|
|
|
482
482
|
var O = parseInt(t.substr(T * 2, 2), 16);
|
|
483
483
|
if (re(O))
|
|
484
484
|
return T;
|
|
485
|
-
|
|
485
|
+
f[i + T] = O;
|
|
486
486
|
}
|
|
487
487
|
return T;
|
|
488
488
|
}
|
|
489
|
-
function j(
|
|
490
|
-
return Z(te(t,
|
|
489
|
+
function j(f, t, i, l) {
|
|
490
|
+
return Z(te(t, f.length - i), f, i, l);
|
|
491
491
|
}
|
|
492
|
-
function q(
|
|
493
|
-
return Z(vt(t),
|
|
492
|
+
function q(f, t, i, l) {
|
|
493
|
+
return Z(vt(t), f, i, l);
|
|
494
494
|
}
|
|
495
|
-
function W(
|
|
496
|
-
return Z(Se(t),
|
|
495
|
+
function W(f, t, i, l) {
|
|
496
|
+
return Z(Se(t), f, i, l);
|
|
497
497
|
}
|
|
498
|
-
function ht(
|
|
499
|
-
return Z(_t(t,
|
|
498
|
+
function ht(f, t, i, l) {
|
|
499
|
+
return Z(_t(t, f.length - i), f, i, l);
|
|
500
500
|
}
|
|
501
501
|
o.prototype.write = function(t, i, l, x) {
|
|
502
502
|
if (i === void 0)
|
|
@@ -542,13 +542,13 @@ function Ke() {
|
|
|
542
542
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
543
543
|
};
|
|
544
544
|
};
|
|
545
|
-
function lt(
|
|
546
|
-
return t === 0 && i ===
|
|
545
|
+
function lt(f, t, i) {
|
|
546
|
+
return t === 0 && i === f.length ? r.fromByteArray(f) : r.fromByteArray(f.slice(t, i));
|
|
547
547
|
}
|
|
548
|
-
function we(
|
|
549
|
-
i = Math.min(
|
|
548
|
+
function we(f, t, i) {
|
|
549
|
+
i = Math.min(f.length, i);
|
|
550
550
|
for (var l = [], x = t; x < i; ) {
|
|
551
|
-
var A =
|
|
551
|
+
var A = f[x], T = null, O = A > 239 ? 4 : A > 223 ? 3 : A > 191 ? 2 : 1;
|
|
552
552
|
if (x + O <= i) {
|
|
553
553
|
var I, C, R, D;
|
|
554
554
|
switch (O) {
|
|
@@ -556,13 +556,13 @@ function Ke() {
|
|
|
556
556
|
A < 128 && (T = A);
|
|
557
557
|
break;
|
|
558
558
|
case 2:
|
|
559
|
-
I =
|
|
559
|
+
I = f[x + 1], (I & 192) === 128 && (D = (A & 31) << 6 | I & 63, D > 127 && (T = D));
|
|
560
560
|
break;
|
|
561
561
|
case 3:
|
|
562
|
-
I =
|
|
562
|
+
I = f[x + 1], C = f[x + 2], (I & 192) === 128 && (C & 192) === 128 && (D = (A & 15) << 12 | (I & 63) << 6 | C & 63, D > 2047 && (D < 55296 || D > 57343) && (T = D));
|
|
563
563
|
break;
|
|
564
564
|
case 4:
|
|
565
|
-
I =
|
|
565
|
+
I = f[x + 1], C = f[x + 2], R = f[x + 3], (I & 192) === 128 && (C & 192) === 128 && (R & 192) === 128 && (D = (A & 15) << 18 | (I & 63) << 12 | (C & 63) << 6 | R & 63, D > 65535 && D < 1114112 && (T = D));
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
T === null ? (T = 65533, O = 1) : T > 65535 && (T -= 65536, l.push(T >>> 10 & 1023 | 55296), T = 56320 | T & 1023), l.push(T), x += O;
|
|
@@ -570,40 +570,40 @@ function Ke() {
|
|
|
570
570
|
return pt(l);
|
|
571
571
|
}
|
|
572
572
|
var ve = 4096;
|
|
573
|
-
function pt(
|
|
574
|
-
var t =
|
|
573
|
+
function pt(f) {
|
|
574
|
+
var t = f.length;
|
|
575
575
|
if (t <= ve)
|
|
576
|
-
return String.fromCharCode.apply(String,
|
|
576
|
+
return String.fromCharCode.apply(String, f);
|
|
577
577
|
for (var i = "", l = 0; l < t; )
|
|
578
578
|
i += String.fromCharCode.apply(
|
|
579
579
|
String,
|
|
580
|
-
|
|
580
|
+
f.slice(l, l += ve)
|
|
581
581
|
);
|
|
582
582
|
return i;
|
|
583
583
|
}
|
|
584
|
-
function dt(
|
|
584
|
+
function dt(f, t, i) {
|
|
585
585
|
var l = "";
|
|
586
|
-
i = Math.min(
|
|
586
|
+
i = Math.min(f.length, i);
|
|
587
587
|
for (var x = t; x < i; ++x)
|
|
588
|
-
l += String.fromCharCode(
|
|
588
|
+
l += String.fromCharCode(f[x] & 127);
|
|
589
589
|
return l;
|
|
590
590
|
}
|
|
591
|
-
function bt(
|
|
591
|
+
function bt(f, t, i) {
|
|
592
592
|
var l = "";
|
|
593
|
-
i = Math.min(
|
|
593
|
+
i = Math.min(f.length, i);
|
|
594
594
|
for (var x = t; x < i; ++x)
|
|
595
|
-
l += String.fromCharCode(
|
|
595
|
+
l += String.fromCharCode(f[x]);
|
|
596
596
|
return l;
|
|
597
597
|
}
|
|
598
|
-
function yt(
|
|
599
|
-
var l =
|
|
598
|
+
function yt(f, t, i) {
|
|
599
|
+
var l = f.length;
|
|
600
600
|
(!t || t < 0) && (t = 0), (!i || i < 0 || i > l) && (i = l);
|
|
601
601
|
for (var x = "", A = t; A < i; ++A)
|
|
602
|
-
x += xt[
|
|
602
|
+
x += xt[f[A]];
|
|
603
603
|
return x;
|
|
604
604
|
}
|
|
605
|
-
function gt(
|
|
606
|
-
for (var l =
|
|
605
|
+
function gt(f, t, i) {
|
|
606
|
+
for (var l = f.slice(t, i), x = "", A = 0; A < l.length - 1; A += 2)
|
|
607
607
|
x += String.fromCharCode(l[A] + l[A + 1] * 256);
|
|
608
608
|
return x;
|
|
609
609
|
}
|
|
@@ -613,10 +613,10 @@ function Ke() {
|
|
|
613
613
|
var x = this.subarray(t, i);
|
|
614
614
|
return Object.setPrototypeOf(x, o.prototype), x;
|
|
615
615
|
};
|
|
616
|
-
function L(
|
|
617
|
-
if (
|
|
616
|
+
function L(f, t, i) {
|
|
617
|
+
if (f % 1 !== 0 || f < 0)
|
|
618
618
|
throw new RangeError("offset is not uint");
|
|
619
|
-
if (
|
|
619
|
+
if (f + t > i)
|
|
620
620
|
throw new RangeError("Trying to access beyond buffer length");
|
|
621
621
|
}
|
|
622
622
|
o.prototype.readUintLE = o.prototype.readUIntLE = function(t, i, l) {
|
|
@@ -672,12 +672,12 @@ function Ke() {
|
|
|
672
672
|
}, o.prototype.readDoubleBE = function(t, i) {
|
|
673
673
|
return t = t >>> 0, i || L(t, 8, this.length), a.read(this, t, !1, 52, 8);
|
|
674
674
|
};
|
|
675
|
-
function k(
|
|
676
|
-
if (!o.isBuffer(
|
|
675
|
+
function k(f, t, i, l, x, A) {
|
|
676
|
+
if (!o.isBuffer(f))
|
|
677
677
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
678
678
|
if (t > x || t < A)
|
|
679
679
|
throw new RangeError('"value" argument is out of bounds');
|
|
680
|
-
if (i + l >
|
|
680
|
+
if (i + l > f.length)
|
|
681
681
|
throw new RangeError("Index out of range");
|
|
682
682
|
}
|
|
683
683
|
o.prototype.writeUintLE = o.prototype.writeUIntLE = function(t, i, l, x) {
|
|
@@ -737,22 +737,22 @@ function Ke() {
|
|
|
737
737
|
}, o.prototype.writeInt32BE = function(t, i, l) {
|
|
738
738
|
return t = +t, i = i >>> 0, l || k(this, t, i, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), this[i] = t >>> 24, this[i + 1] = t >>> 16, this[i + 2] = t >>> 8, this[i + 3] = t & 255, i + 4;
|
|
739
739
|
};
|
|
740
|
-
function _e(
|
|
741
|
-
if (i + l >
|
|
740
|
+
function _e(f, t, i, l, x, A) {
|
|
741
|
+
if (i + l > f.length)
|
|
742
742
|
throw new RangeError("Index out of range");
|
|
743
743
|
if (i < 0)
|
|
744
744
|
throw new RangeError("Index out of range");
|
|
745
745
|
}
|
|
746
|
-
function xe(
|
|
747
|
-
return t = +t, i = i >>> 0, x || _e(
|
|
746
|
+
function xe(f, t, i, l, x) {
|
|
747
|
+
return t = +t, i = i >>> 0, x || _e(f, t, i, 4), a.write(f, t, i, l, 23, 4), i + 4;
|
|
748
748
|
}
|
|
749
749
|
o.prototype.writeFloatLE = function(t, i, l) {
|
|
750
750
|
return xe(this, t, i, !0, l);
|
|
751
751
|
}, o.prototype.writeFloatBE = function(t, i, l) {
|
|
752
752
|
return xe(this, t, i, !1, l);
|
|
753
753
|
};
|
|
754
|
-
function Ee(
|
|
755
|
-
return t = +t, i = i >>> 0, x || _e(
|
|
754
|
+
function Ee(f, t, i, l, x) {
|
|
755
|
+
return t = +t, i = i >>> 0, x || _e(f, t, i, 8), a.write(f, t, i, l, 52, 8), i + 8;
|
|
756
756
|
}
|
|
757
757
|
o.prototype.writeDoubleLE = function(t, i, l) {
|
|
758
758
|
return Ee(this, t, i, !0, l);
|
|
@@ -807,17 +807,17 @@ function Ke() {
|
|
|
807
807
|
return this;
|
|
808
808
|
};
|
|
809
809
|
var mt = /[^+/0-9A-Za-z-_]/g;
|
|
810
|
-
function wt(
|
|
811
|
-
if (
|
|
810
|
+
function wt(f) {
|
|
811
|
+
if (f = f.split("=")[0], f = f.trim().replace(mt, ""), f.length < 2)
|
|
812
812
|
return "";
|
|
813
|
-
for (;
|
|
814
|
-
|
|
815
|
-
return
|
|
813
|
+
for (; f.length % 4 !== 0; )
|
|
814
|
+
f = f + "=";
|
|
815
|
+
return f;
|
|
816
816
|
}
|
|
817
|
-
function te(
|
|
817
|
+
function te(f, t) {
|
|
818
818
|
t = t || 1 / 0;
|
|
819
|
-
for (var i, l =
|
|
820
|
-
if (i =
|
|
819
|
+
for (var i, l = f.length, x = null, A = [], T = 0; T < l; ++T) {
|
|
820
|
+
if (i = f.charCodeAt(T), i > 55295 && i < 57344) {
|
|
821
821
|
if (!x) {
|
|
822
822
|
if (i > 56319) {
|
|
823
823
|
(t -= 3) > -1 && A.push(239, 191, 189);
|
|
@@ -869,34 +869,34 @@ function Ke() {
|
|
|
869
869
|
}
|
|
870
870
|
return A;
|
|
871
871
|
}
|
|
872
|
-
function vt(
|
|
873
|
-
for (var t = [], i = 0; i <
|
|
874
|
-
t.push(
|
|
872
|
+
function vt(f) {
|
|
873
|
+
for (var t = [], i = 0; i < f.length; ++i)
|
|
874
|
+
t.push(f.charCodeAt(i) & 255);
|
|
875
875
|
return t;
|
|
876
876
|
}
|
|
877
|
-
function _t(
|
|
878
|
-
for (var i, l, x, A = [], T = 0; T <
|
|
879
|
-
i =
|
|
877
|
+
function _t(f, t) {
|
|
878
|
+
for (var i, l, x, A = [], T = 0; T < f.length && !((t -= 2) < 0); ++T)
|
|
879
|
+
i = f.charCodeAt(T), l = i >> 8, x = i % 256, A.push(x), A.push(l);
|
|
880
880
|
return A;
|
|
881
881
|
}
|
|
882
|
-
function Se(
|
|
883
|
-
return r.toByteArray(wt(
|
|
882
|
+
function Se(f) {
|
|
883
|
+
return r.toByteArray(wt(f));
|
|
884
884
|
}
|
|
885
|
-
function Z(
|
|
886
|
-
for (var x = 0; x < l && !(x + i >= t.length || x >=
|
|
887
|
-
t[x + i] =
|
|
885
|
+
function Z(f, t, i, l) {
|
|
886
|
+
for (var x = 0; x < l && !(x + i >= t.length || x >= f.length); ++x)
|
|
887
|
+
t[x + i] = f[x];
|
|
888
888
|
return x;
|
|
889
889
|
}
|
|
890
|
-
function N(
|
|
891
|
-
return
|
|
890
|
+
function N(f, t) {
|
|
891
|
+
return f instanceof t || f != null && f.constructor != null && f.constructor.name != null && f.constructor.name === t.name;
|
|
892
892
|
}
|
|
893
|
-
function re(
|
|
894
|
-
return
|
|
893
|
+
function re(f) {
|
|
894
|
+
return f !== f;
|
|
895
895
|
}
|
|
896
896
|
var xt = function() {
|
|
897
|
-
for (var
|
|
897
|
+
for (var f = "0123456789abcdef", t = new Array(256), i = 0; i < 16; ++i)
|
|
898
898
|
for (var l = i * 16, x = 0; x < 16; ++x)
|
|
899
|
-
t[l + x] =
|
|
899
|
+
t[l + x] = f[i] + f[x];
|
|
900
900
|
return t;
|
|
901
901
|
}();
|
|
902
902
|
}(ne)), ne;
|
|
@@ -909,16 +909,16 @@ function H() {
|
|
|
909
909
|
var e = Ke(), r = e.Buffer, a = {}, n;
|
|
910
910
|
for (n in e)
|
|
911
911
|
e.hasOwnProperty(n) && (n === "SlowBuffer" || n === "Buffer" || (a[n] = e[n]));
|
|
912
|
-
var
|
|
912
|
+
var c = a.Buffer = {};
|
|
913
913
|
for (n in r)
|
|
914
|
-
r.hasOwnProperty(n) && (n === "allocUnsafe" || n === "allocUnsafeSlow" || (
|
|
915
|
-
if (a.Buffer.prototype = r.prototype, (!
|
|
914
|
+
r.hasOwnProperty(n) && (n === "allocUnsafe" || n === "allocUnsafeSlow" || (c[n] = r[n]));
|
|
915
|
+
if (a.Buffer.prototype = r.prototype, (!c.from || c.from === Uint8Array.from) && (c.from = function(p, d, o) {
|
|
916
916
|
if (typeof p == "number")
|
|
917
917
|
throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof p);
|
|
918
918
|
if (p && typeof p.length > "u")
|
|
919
919
|
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof p);
|
|
920
920
|
return r(p, d, o);
|
|
921
|
-
}),
|
|
921
|
+
}), c.alloc || (c.alloc = function(p, d, o) {
|
|
922
922
|
if (typeof p != "number")
|
|
923
923
|
throw new TypeError('The "size" argument must be of type number. Received type ' + typeof p);
|
|
924
924
|
if (p < 0 || p >= 2 * (1 << 30))
|
|
@@ -941,7 +941,7 @@ function At() {
|
|
|
941
941
|
Ie = 1;
|
|
942
942
|
var e = "\uFEFF";
|
|
943
943
|
J.PrependBOM = r;
|
|
944
|
-
function r(n,
|
|
944
|
+
function r(n, c) {
|
|
945
945
|
this.encoder = n, this.addBOM = !0;
|
|
946
946
|
}
|
|
947
947
|
r.prototype.write = function(n) {
|
|
@@ -949,12 +949,12 @@ function At() {
|
|
|
949
949
|
}, r.prototype.end = function() {
|
|
950
950
|
return this.encoder.end();
|
|
951
951
|
}, J.StripBOM = a;
|
|
952
|
-
function a(n,
|
|
953
|
-
this.decoder = n, this.pass = !1, this.options =
|
|
952
|
+
function a(n, c) {
|
|
953
|
+
this.decoder = n, this.pass = !1, this.options = c || {};
|
|
954
954
|
}
|
|
955
955
|
return a.prototype.write = function(n) {
|
|
956
|
-
var
|
|
957
|
-
return this.pass || !
|
|
956
|
+
var c = this.decoder.write(n);
|
|
957
|
+
return this.pass || !c || (c[0] === e && (c = c.slice(1), typeof this.options.stripBOM == "function" && this.options.stripBOM()), this.pass = !0), c;
|
|
958
958
|
}, a.prototype.end = function() {
|
|
959
959
|
return this.decoder.end();
|
|
960
960
|
}, J;
|
|
@@ -965,15 +965,15 @@ var Ce;
|
|
|
965
965
|
function Ut() {
|
|
966
966
|
return Ce || (Ce = 1, function(e, r) {
|
|
967
967
|
var a = Ke(), n = a.Buffer;
|
|
968
|
-
function
|
|
968
|
+
function c(d, o) {
|
|
969
969
|
for (var w in d)
|
|
970
970
|
o[w] = d[w];
|
|
971
971
|
}
|
|
972
|
-
n.from && n.alloc && n.allocUnsafe && n.allocUnsafeSlow ? e.exports = a : (
|
|
972
|
+
n.from && n.alloc && n.allocUnsafe && n.allocUnsafeSlow ? e.exports = a : (c(a, r), r.Buffer = p);
|
|
973
973
|
function p(d, o, w) {
|
|
974
974
|
return n(d, o, w);
|
|
975
975
|
}
|
|
976
|
-
p.prototype = Object.create(n.prototype),
|
|
976
|
+
p.prototype = Object.create(n.prototype), c(n, p), p.from = function(d, o, w) {
|
|
977
977
|
if (typeof d == "number")
|
|
978
978
|
throw new TypeError("Argument must not be a number");
|
|
979
979
|
return n(d, o, w);
|
|
@@ -1048,8 +1048,8 @@ function Tt() {
|
|
|
1048
1048
|
throw new Error("Unknown encoding: " + h);
|
|
1049
1049
|
return y || h;
|
|
1050
1050
|
}
|
|
1051
|
-
oe.StringDecoder =
|
|
1052
|
-
function
|
|
1051
|
+
oe.StringDecoder = c;
|
|
1052
|
+
function c(h) {
|
|
1053
1053
|
this.encoding = n(h);
|
|
1054
1054
|
var y;
|
|
1055
1055
|
switch (this.encoding) {
|
|
@@ -1068,7 +1068,7 @@ function Tt() {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(y);
|
|
1070
1070
|
}
|
|
1071
|
-
|
|
1071
|
+
c.prototype.write = function(h) {
|
|
1072
1072
|
if (h.length === 0)
|
|
1073
1073
|
return "";
|
|
1074
1074
|
var y, _;
|
|
@@ -1079,7 +1079,7 @@ function Tt() {
|
|
|
1079
1079
|
} else
|
|
1080
1080
|
_ = 0;
|
|
1081
1081
|
return _ < h.length ? y ? y + this.text(h, _) : this.text(h, _) : y || "";
|
|
1082
|
-
},
|
|
1082
|
+
}, c.prototype.end = s, c.prototype.text = g, c.prototype.fillLast = function(h) {
|
|
1083
1083
|
if (this.lastNeed <= h.length)
|
|
1084
1084
|
return h.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
1085
1085
|
h.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, h.length), this.lastNeed -= h.length;
|
|
@@ -1182,7 +1182,7 @@ function Ft() {
|
|
|
1182
1182
|
function r(w, g) {
|
|
1183
1183
|
this.enc = w.encodingName, this.bomAware = w.bomAware, this.enc === "base64" ? this.encoder = p : this.enc === "cesu8" && (this.enc = "utf8", this.encoder = d, e.from("eda0bdedb2a9", "hex").toString() !== "💩" && (this.decoder = o, this.defaultCharUnicode = g.defaultCharUnicode));
|
|
1184
1184
|
}
|
|
1185
|
-
r.prototype.encoder =
|
|
1185
|
+
r.prototype.encoder = c, r.prototype.decoder = n;
|
|
1186
1186
|
var a = Tt().StringDecoder;
|
|
1187
1187
|
a.prototype.end || (a.prototype.end = function() {
|
|
1188
1188
|
});
|
|
@@ -1194,12 +1194,12 @@ function Ft() {
|
|
|
1194
1194
|
}, n.prototype.end = function() {
|
|
1195
1195
|
return this.decoder.end();
|
|
1196
1196
|
};
|
|
1197
|
-
function
|
|
1197
|
+
function c(w, g) {
|
|
1198
1198
|
this.enc = g.enc;
|
|
1199
1199
|
}
|
|
1200
|
-
|
|
1200
|
+
c.prototype.write = function(w) {
|
|
1201
1201
|
return e.from(w, this.enc);
|
|
1202
|
-
},
|
|
1202
|
+
}, c.prototype.end = function() {
|
|
1203
1203
|
};
|
|
1204
1204
|
function p(w, g) {
|
|
1205
1205
|
this.prevStr = "";
|
|
@@ -1279,15 +1279,15 @@ function Ot() {
|
|
|
1279
1279
|
if (v.length > 0) {
|
|
1280
1280
|
for (; s < g.length && v.length < 4; s++)
|
|
1281
1281
|
v.push(g[s]);
|
|
1282
|
-
v.length === 4 && (E ? u = v[s] | v[s + 1] << 8 | v[s + 2] << 16 | v[s + 3] << 24 : u = v[s + 3] | v[s + 2] << 8 | v[s + 1] << 16 | v[s] << 24, v.length = 0, b =
|
|
1282
|
+
v.length === 4 && (E ? u = v[s] | v[s + 1] << 8 | v[s + 2] << 16 | v[s + 3] << 24 : u = v[s + 3] | v[s + 2] << 8 | v[s + 1] << 16 | v[s] << 24, v.length = 0, b = c(m, b, u, S));
|
|
1283
1283
|
}
|
|
1284
1284
|
for (; s < g.length - 3; s += 4)
|
|
1285
|
-
E ? u = g[s] | g[s + 1] << 8 | g[s + 2] << 16 | g[s + 3] << 24 : u = g[s + 3] | g[s + 2] << 8 | g[s + 1] << 16 | g[s] << 24, b =
|
|
1285
|
+
E ? u = g[s] | g[s + 1] << 8 | g[s + 2] << 16 | g[s + 3] << 24 : u = g[s + 3] | g[s + 2] << 8 | g[s + 1] << 16 | g[s] << 24, b = c(m, b, u, S);
|
|
1286
1286
|
for (; s < g.length; s++)
|
|
1287
1287
|
v.push(g[s]);
|
|
1288
1288
|
return m.slice(0, b).toString("ucs2");
|
|
1289
1289
|
};
|
|
1290
|
-
function
|
|
1290
|
+
function c(g, s, u, m) {
|
|
1291
1291
|
if ((u < 0 || u > 1114111) && (u = m), u >= 65536) {
|
|
1292
1292
|
u -= 65536;
|
|
1293
1293
|
var b = 55296 | u >> 10;
|
|
@@ -1387,11 +1387,11 @@ function It() {
|
|
|
1387
1387
|
return this.overflowByte = s == w.length - 1 ? w[w.length - 1] : -1, g.slice(0, u).toString("ucs2");
|
|
1388
1388
|
}, n.prototype.end = function() {
|
|
1389
1389
|
this.overflowByte = -1;
|
|
1390
|
-
}, ee.utf16 =
|
|
1391
|
-
function
|
|
1390
|
+
}, ee.utf16 = c;
|
|
1391
|
+
function c(w, g) {
|
|
1392
1392
|
this.iconv = g;
|
|
1393
1393
|
}
|
|
1394
|
-
|
|
1394
|
+
c.prototype.encoder = p, c.prototype.decoder = d;
|
|
1395
1395
|
function p(w, g) {
|
|
1396
1396
|
w = w || {}, w.addBOM === void 0 && (w.addBOM = !0), this.encoder = g.iconv.getEncoder("utf-16le", w);
|
|
1397
1397
|
}
|
|
@@ -1454,7 +1454,7 @@ function Ct() {
|
|
|
1454
1454
|
function r(v, S) {
|
|
1455
1455
|
this.iconv = S;
|
|
1456
1456
|
}
|
|
1457
|
-
r.prototype.encoder = n, r.prototype.decoder =
|
|
1457
|
+
r.prototype.encoder = n, r.prototype.decoder = c, r.prototype.bomAware = !0;
|
|
1458
1458
|
var a = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;
|
|
1459
1459
|
function n(v, S) {
|
|
1460
1460
|
this.iconv = S.iconv;
|
|
@@ -1465,13 +1465,13 @@ function Ct() {
|
|
|
1465
1465
|
}).bind(this)));
|
|
1466
1466
|
}, n.prototype.end = function() {
|
|
1467
1467
|
};
|
|
1468
|
-
function
|
|
1468
|
+
function c(v, S) {
|
|
1469
1469
|
this.iconv = S.iconv, this.inBase64 = !1, this.base64Accum = "";
|
|
1470
1470
|
}
|
|
1471
1471
|
for (var p = /[A-Za-z0-9\/+]/, d = [], o = 0; o < 256; o++)
|
|
1472
1472
|
d[o] = p.test(String.fromCharCode(o));
|
|
1473
1473
|
var w = "+".charCodeAt(0), g = "-".charCodeAt(0), s = "&".charCodeAt(0);
|
|
1474
|
-
|
|
1474
|
+
c.prototype.write = function(v) {
|
|
1475
1475
|
for (var S = "", h = 0, y = this.inBase64, _ = this.base64Accum, B = 0; B < v.length; B++)
|
|
1476
1476
|
if (!y)
|
|
1477
1477
|
v[B] == w && (S += this.iconv.decode(v.slice(h, B), "ascii"), h = B + 1, y = !0);
|
|
@@ -1491,7 +1491,7 @@ function Ct() {
|
|
|
1491
1491
|
_ = U.slice(F), U = U.slice(0, F), S += this.iconv.decode(e.from(U, "base64"), "utf16-be");
|
|
1492
1492
|
}
|
|
1493
1493
|
return this.inBase64 = y, this.base64Accum = _, S;
|
|
1494
|
-
},
|
|
1494
|
+
}, c.prototype.end = function() {
|
|
1495
1495
|
var v = "";
|
|
1496
1496
|
return this.inBase64 && this.base64Accum.length > 0 && (v = this.iconv.decode(e.from(this.base64Accum, "base64"), "utf16-be")), this.inBase64 = !1, this.base64Accum = "", v;
|
|
1497
1497
|
}, Y.utf7imap = u;
|
|
@@ -1548,37 +1548,37 @@ function Dt() {
|
|
|
1548
1548
|
Me = 1;
|
|
1549
1549
|
var e = H().Buffer;
|
|
1550
1550
|
fe._sbcs = r;
|
|
1551
|
-
function r(
|
|
1552
|
-
if (!
|
|
1551
|
+
function r(c, p) {
|
|
1552
|
+
if (!c)
|
|
1553
1553
|
throw new Error("SBCS codec is called without the data.");
|
|
1554
|
-
if (!
|
|
1555
|
-
throw new Error("Encoding '" +
|
|
1556
|
-
if (
|
|
1554
|
+
if (!c.chars || c.chars.length !== 128 && c.chars.length !== 256)
|
|
1555
|
+
throw new Error("Encoding '" + c.type + "' has incorrect 'chars' (must be of len 128 or 256)");
|
|
1556
|
+
if (c.chars.length === 128) {
|
|
1557
1557
|
for (var d = "", o = 0; o < 128; o++)
|
|
1558
1558
|
d += String.fromCharCode(o);
|
|
1559
|
-
|
|
1559
|
+
c.chars = d + c.chars;
|
|
1560
1560
|
}
|
|
1561
|
-
this.decodeBuf = e.from(
|
|
1562
|
-
for (var w = e.alloc(65536, p.defaultCharSingleByte.charCodeAt(0)), o = 0; o <
|
|
1563
|
-
w[
|
|
1561
|
+
this.decodeBuf = e.from(c.chars, "ucs2");
|
|
1562
|
+
for (var w = e.alloc(65536, p.defaultCharSingleByte.charCodeAt(0)), o = 0; o < c.chars.length; o++)
|
|
1563
|
+
w[c.chars.charCodeAt(o)] = o;
|
|
1564
1564
|
this.encodeBuf = w;
|
|
1565
1565
|
}
|
|
1566
1566
|
r.prototype.encoder = a, r.prototype.decoder = n;
|
|
1567
|
-
function a(
|
|
1567
|
+
function a(c, p) {
|
|
1568
1568
|
this.encodeBuf = p.encodeBuf;
|
|
1569
1569
|
}
|
|
1570
|
-
a.prototype.write = function(
|
|
1571
|
-
for (var p = e.alloc(
|
|
1572
|
-
p[d] = this.encodeBuf[
|
|
1570
|
+
a.prototype.write = function(c) {
|
|
1571
|
+
for (var p = e.alloc(c.length), d = 0; d < c.length; d++)
|
|
1572
|
+
p[d] = this.encodeBuf[c.charCodeAt(d)];
|
|
1573
1573
|
return p;
|
|
1574
1574
|
}, a.prototype.end = function() {
|
|
1575
1575
|
};
|
|
1576
|
-
function n(
|
|
1576
|
+
function n(c, p) {
|
|
1577
1577
|
this.decodeBuf = p.decodeBuf;
|
|
1578
1578
|
}
|
|
1579
|
-
return n.prototype.write = function(
|
|
1580
|
-
for (var p = this.decodeBuf, d = e.alloc(
|
|
1581
|
-
o =
|
|
1579
|
+
return n.prototype.write = function(c) {
|
|
1580
|
+
for (var p = this.decodeBuf, d = e.alloc(c.length * 2), o = 0, w = 0, g = 0; g < c.length; g++)
|
|
1581
|
+
o = c[g] * 2, w = g * 2, d[w] = p[o], d[w + 1] = p[o + 1];
|
|
1582
1582
|
return d.toString("ucs2");
|
|
1583
1583
|
}, n.prototype.end = function() {
|
|
1584
1584
|
}, fe;
|
|
@@ -2195,7 +2195,7 @@ function Pt() {
|
|
|
2195
2195
|
qe = 1;
|
|
2196
2196
|
var e = H().Buffer;
|
|
2197
2197
|
le._dbcs = w;
|
|
2198
|
-
for (var r = -1, a = -2, n = -10,
|
|
2198
|
+
for (var r = -1, a = -2, n = -10, c = -1e3, p = new Array(256), d = -1, o = 0; o < 256; o++)
|
|
2199
2199
|
p[o] = r;
|
|
2200
2200
|
function w(m, b) {
|
|
2201
2201
|
if (this.encodingName = m.encodingName, !m)
|
|
@@ -2213,21 +2213,21 @@ function Pt() {
|
|
|
2213
2213
|
var h = this.decodeTables.length;
|
|
2214
2214
|
this.decodeTables.push(p.slice(0));
|
|
2215
2215
|
for (var y = this.decodeTables[0], v = 129; v <= 254; v++)
|
|
2216
|
-
for (var _ = this.decodeTables[
|
|
2216
|
+
for (var _ = this.decodeTables[c - y[v]], B = 48; B <= 57; B++) {
|
|
2217
2217
|
if (_[B] === r)
|
|
2218
|
-
_[B] =
|
|
2219
|
-
else if (_[B] >
|
|
2218
|
+
_[B] = c - S;
|
|
2219
|
+
else if (_[B] > c)
|
|
2220
2220
|
throw new Error("gb18030 decode tables conflict at byte 2");
|
|
2221
|
-
for (var U = this.decodeTables[
|
|
2221
|
+
for (var U = this.decodeTables[c - _[B]], F = 129; F <= 254; F++) {
|
|
2222
2222
|
if (U[F] === r)
|
|
2223
|
-
U[F] =
|
|
2223
|
+
U[F] = c - h;
|
|
2224
2224
|
else {
|
|
2225
|
-
if (U[F] ===
|
|
2225
|
+
if (U[F] === c - h)
|
|
2226
2226
|
continue;
|
|
2227
|
-
if (U[F] >
|
|
2227
|
+
if (U[F] > c)
|
|
2228
2228
|
throw new Error("gb18030 decode tables conflict at byte 3");
|
|
2229
2229
|
}
|
|
2230
|
-
for (var P = this.decodeTables[
|
|
2230
|
+
for (var P = this.decodeTables[c - U[F]], M = 48; M <= 57; M++)
|
|
2231
2231
|
P[M] === r && (P[M] = a);
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
@@ -2255,9 +2255,9 @@ function Pt() {
|
|
|
2255
2255
|
for (var E = this.decodeTables[0], v = b.length - 1; v > 0; v--) {
|
|
2256
2256
|
var S = E[b[v]];
|
|
2257
2257
|
if (S == r)
|
|
2258
|
-
E[b[v]] =
|
|
2259
|
-
else if (S <=
|
|
2260
|
-
E = this.decodeTables[
|
|
2258
|
+
E[b[v]] = c - this.decodeTables.length, this.decodeTables.push(E = p.slice(0));
|
|
2259
|
+
else if (S <= c)
|
|
2260
|
+
E = this.decodeTables[c - S];
|
|
2261
2261
|
else
|
|
2262
2262
|
throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + m.toString(16));
|
|
2263
2263
|
}
|
|
@@ -2311,8 +2311,8 @@ function Pt() {
|
|
|
2311
2311
|
if (!E[B])
|
|
2312
2312
|
if (_ >= 0)
|
|
2313
2313
|
this._setEncodeChar(_, B), S = !0;
|
|
2314
|
-
else if (_ <=
|
|
2315
|
-
var U =
|
|
2314
|
+
else if (_ <= c) {
|
|
2315
|
+
var U = c - _;
|
|
2316
2316
|
if (!h[U]) {
|
|
2317
2317
|
var F = B << 8 >>> 0;
|
|
2318
2318
|
this._fillEncodeTable(U, F, E) ? S = !0 : h[U] = !0;
|
|
@@ -2399,8 +2399,8 @@ function Pt() {
|
|
|
2399
2399
|
var F = (v[_ - 3 + S] - 129) * 12600 + ((_ - 2 >= 0 ? m[_ - 2] : v[_ - 2 + S]) - 48) * 1260 + ((_ - 1 >= 0 ? m[_ - 1] : v[_ - 1 + S]) - 129) * 10 + (U - 48);
|
|
2400
2400
|
var P = u(this.gb18030.gbChars, F);
|
|
2401
2401
|
y = this.gb18030.uChars[P] + F - this.gb18030.gbChars[P];
|
|
2402
|
-
} else if (y <=
|
|
2403
|
-
E =
|
|
2402
|
+
} else if (y <= c) {
|
|
2403
|
+
E = c - y;
|
|
2404
2404
|
continue;
|
|
2405
2405
|
} else if (y <= n) {
|
|
2406
2406
|
for (var M = this.decodeTableSeq[n - y], j = 0; j < M.length - 1; j++)
|
|
@@ -10962,8 +10962,8 @@ function $t() {
|
|
|
10962
10962
|
Ht()
|
|
10963
10963
|
], a = 0; a < r.length; a++) {
|
|
10964
10964
|
var n = r[a];
|
|
10965
|
-
for (var
|
|
10966
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
10965
|
+
for (var c in n)
|
|
10966
|
+
Object.prototype.hasOwnProperty.call(n, c) && (e[c] = n[c]);
|
|
10967
10967
|
}
|
|
10968
10968
|
}(se)), se;
|
|
10969
10969
|
}
|
|
@@ -11004,12 +11004,12 @@ function Wt() {
|
|
|
11004
11004
|
p(null, e.concat(d));
|
|
11005
11005
|
}), this;
|
|
11006
11006
|
};
|
|
11007
|
-
function
|
|
11007
|
+
function c(p, d) {
|
|
11008
11008
|
this.conv = p, d = d || {}, d.encoding = this.encoding = "utf8", a.call(this, d);
|
|
11009
11009
|
}
|
|
11010
|
-
return
|
|
11011
|
-
constructor: { value:
|
|
11012
|
-
}),
|
|
11010
|
+
return c.prototype = Object.create(a.prototype, {
|
|
11011
|
+
constructor: { value: c }
|
|
11012
|
+
}), c.prototype._transform = function(p, d, o) {
|
|
11013
11013
|
if (!e.isBuffer(p) && !(p instanceof Uint8Array))
|
|
11014
11014
|
return o(new Error("Iconv decoding stream needs buffers as its input."));
|
|
11015
11015
|
try {
|
|
@@ -11018,14 +11018,14 @@ function Wt() {
|
|
|
11018
11018
|
} catch (g) {
|
|
11019
11019
|
o(g);
|
|
11020
11020
|
}
|
|
11021
|
-
},
|
|
11021
|
+
}, c.prototype._flush = function(p) {
|
|
11022
11022
|
try {
|
|
11023
11023
|
var d = this.conv.end();
|
|
11024
11024
|
d && d.length && this.push(d, this.encoding), p();
|
|
11025
11025
|
} catch (o) {
|
|
11026
11026
|
p(o);
|
|
11027
11027
|
}
|
|
11028
|
-
},
|
|
11028
|
+
}, c.prototype.collect = function(p) {
|
|
11029
11029
|
var d = "";
|
|
11030
11030
|
return this.on("error", p), this.on("data", function(o) {
|
|
11031
11031
|
d += o;
|
|
@@ -11034,7 +11034,7 @@ function Wt() {
|
|
|
11034
11034
|
}), this;
|
|
11035
11035
|
}, {
|
|
11036
11036
|
IconvLiteEncoderStream: n,
|
|
11037
|
-
IconvLiteDecoderStream:
|
|
11037
|
+
IconvLiteDecoderStream: c
|
|
11038
11038
|
};
|
|
11039
11039
|
}, be;
|
|
11040
11040
|
}
|
|
@@ -11097,12 +11097,12 @@ function Gt() {
|
|
|
11097
11097
|
}, n.supportsStreams = !0;
|
|
11098
11098
|
}
|
|
11099
11099
|
};
|
|
11100
|
-
var
|
|
11100
|
+
var c;
|
|
11101
11101
|
try {
|
|
11102
|
-
|
|
11102
|
+
c = Je;
|
|
11103
11103
|
} catch {
|
|
11104
11104
|
}
|
|
11105
|
-
|
|
11105
|
+
c && c.Transform ? n.enableStreamingAPI(c) : n.encodeStream = n.decodeStream = function() {
|
|
11106
11106
|
throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
|
|
11107
11107
|
};
|
|
11108
11108
|
}(ie)), ie.exports;
|
|
@@ -11373,10 +11373,10 @@ function Gt() {
|
|
|
11373
11373
|
this.name = "UnexpectedDataError", this.message = "expected [" + s + "], but got [" + u + "]", this.expected = s, this.actual = u, this.stack = new Error().stack;
|
|
11374
11374
|
};
|
|
11375
11375
|
n.prototype = Object.create(Error.prototype), n.prototype.constructor = n;
|
|
11376
|
-
var
|
|
11376
|
+
var c = r.UndecidedEndiannessError = function() {
|
|
11377
11377
|
this.name = "UndecidedEndiannessError", this.stack = new Error().stack;
|
|
11378
11378
|
};
|
|
11379
|
-
|
|
11379
|
+
c.prototype = Object.create(Error.prototype), c.prototype.constructor = c;
|
|
11380
11380
|
var p = r.ValidationNotEqualError = function(s, u) {
|
|
11381
11381
|
this.name = "ValidationNotEqualError", this.message = "not equal, expected [" + s + "], but got [" + u + "]", this.expected = s, this.actual = u, this.stack = new Error().stack;
|
|
11382
11382
|
};
|
|
@@ -11432,7 +11432,7 @@ var et = { exports: {} };
|
|
|
11432
11432
|
n.prototype._read = function() {
|
|
11433
11433
|
this.mz = new b(this._io, this, this._root);
|
|
11434
11434
|
};
|
|
11435
|
-
var
|
|
11435
|
+
var c = n.CertificateEntry = function() {
|
|
11436
11436
|
h.CertificateRevision = Object.freeze({
|
|
11437
11437
|
REVISION_1_0: 256,
|
|
11438
11438
|
REVISION_2_0: 512,
|
|
@@ -11573,7 +11573,7 @@ var et = { exports: {} };
|
|
|
11573
11573
|
}
|
|
11574
11574
|
return h.prototype._read = function() {
|
|
11575
11575
|
for (this.items = []; !this._io.isEof(); )
|
|
11576
|
-
this.items.push(new
|
|
11576
|
+
this.items.push(new c(this._io, this, this._root));
|
|
11577
11577
|
}, h;
|
|
11578
11578
|
}(), b = n.MzPlaceholder = function() {
|
|
11579
11579
|
function h(y, _, B) {
|
|
@@ -11745,10 +11745,10 @@ function Kt(e) {
|
|
|
11745
11745
|
return r;
|
|
11746
11746
|
}
|
|
11747
11747
|
function ye(e, r, a) {
|
|
11748
|
-
var n = a >>> 0,
|
|
11748
|
+
var n = a >>> 0, c = r.length, p = e.length + 1 - c;
|
|
11749
11749
|
e:
|
|
11750
11750
|
for (; n < p; n++) {
|
|
11751
|
-
for (var d = 0; d <
|
|
11751
|
+
for (var d = 0; d < c; d++)
|
|
11752
11752
|
if (e[n + d] !== r[d])
|
|
11753
11753
|
continue e;
|
|
11754
11754
|
return n;
|
|
@@ -11761,26 +11761,26 @@ function Jt(e, r, a) {
|
|
|
11761
11761
|
}
|
|
11762
11762
|
function Qt(e, r) {
|
|
11763
11763
|
const a = /* @__PURE__ */ new Map();
|
|
11764
|
-
return e.filter((n) => r.every((
|
|
11764
|
+
return e.filter((n) => r.every((c) => !a.has(n[c]) && a.set(n[c], 1)));
|
|
11765
11765
|
}
|
|
11766
11766
|
function er(e, r) {
|
|
11767
|
-
const a = /[a-zA-Z0-9]/, n = e.toString(),
|
|
11768
|
-
return a.test(n[0]) || a.test(
|
|
11767
|
+
const a = /[a-zA-Z0-9]/, n = e.toString(), c = r.toString();
|
|
11768
|
+
return a.test(n[0]) || a.test(c[0]) ? n > c ? 1 : n < c ? -1 : 0 : n.localeCompare(c);
|
|
11769
11769
|
}
|
|
11770
11770
|
function tr(e, r, a) {
|
|
11771
|
-
return e.sort(function(n,
|
|
11772
|
-
var p = Number(n[r]), d = Number(
|
|
11771
|
+
return e.sort(function(n, c) {
|
|
11772
|
+
var p = Number(n[r]), d = Number(c[r]);
|
|
11773
11773
|
return a === 0 ? p < d ? -1 : p > d ? 1 : 0 : p < d ? 1 : p > d ? -1 : 0;
|
|
11774
11774
|
});
|
|
11775
11775
|
}
|
|
11776
11776
|
function rr(e) {
|
|
11777
11777
|
for (var r = [], a = {}, n = 0; n < e.length; n++) {
|
|
11778
|
-
var
|
|
11779
|
-
|
|
11778
|
+
var c = Object.keys(e[n]);
|
|
11779
|
+
c.sort(function(o, w) {
|
|
11780
11780
|
return Number(o) - Number(w);
|
|
11781
11781
|
});
|
|
11782
|
-
for (var p = "", d = 0; d <
|
|
11783
|
-
p += JSON.stringify(
|
|
11782
|
+
for (var p = "", d = 0; d < c.length; d++)
|
|
11783
|
+
p += JSON.stringify(c[d]), p += JSON.stringify(e[n][c[d]]);
|
|
11784
11784
|
Object.prototype.hasOwnProperty.call(a, p) || (r.push(e[n]), a[p] = !0);
|
|
11785
11785
|
}
|
|
11786
11786
|
return r;
|
|
@@ -11793,10 +11793,10 @@ function ir(e, r) {
|
|
|
11793
11793
|
function nr(e, r, a) {
|
|
11794
11794
|
let n = null;
|
|
11795
11795
|
if (e) {
|
|
11796
|
-
for (const
|
|
11796
|
+
for (const c in e) {
|
|
11797
11797
|
if (n !== null)
|
|
11798
11798
|
break;
|
|
11799
|
-
const p = e[
|
|
11799
|
+
const p = e[c];
|
|
11800
11800
|
if (p[r] === a) {
|
|
11801
11801
|
n = p;
|
|
11802
11802
|
break;
|
|
@@ -11847,16 +11847,39 @@ function dr(e) {
|
|
|
11847
11847
|
a = Math.floor(Math.random() * e.length), r.push(e[a]), e.splice(a, 1);
|
|
11848
11848
|
return r;
|
|
11849
11849
|
}
|
|
11850
|
-
function br(e
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11850
|
+
function br(e = { name: "根节点", children: [] }, r, a = {
|
|
11851
|
+
treeNameKey: "name",
|
|
11852
|
+
childrenKey: "children",
|
|
11853
|
+
treePathKey: "tree-path",
|
|
11854
|
+
treePathSplit: "-"
|
|
11855
|
+
}, n, c) {
|
|
11856
|
+
let p = 0;
|
|
11857
|
+
function d(o, w, g) {
|
|
11858
|
+
if (w.length === 0)
|
|
11859
|
+
return;
|
|
11860
|
+
const s = w[w.length - 1];
|
|
11861
|
+
let u = o[a.childrenKey].find((m) => m[a.treeNameKey] === s);
|
|
11862
|
+
p++, u ? u = c(u, s, g, p, o) : (u = n(s, g, p, o), o[a.childrenKey].push(u)), d(u, w.slice(0, -1), g);
|
|
11863
|
+
}
|
|
11864
|
+
return r.forEach((o) => {
|
|
11865
|
+
const w = o[a.treePathKey].split(a.treePathSplit);
|
|
11866
|
+
d(e, w, o);
|
|
11867
|
+
}), e;
|
|
11868
|
+
}
|
|
11869
|
+
async function yr(e, r, a, n, c, p) {
|
|
11870
|
+
const d = e.slice(0);
|
|
11871
|
+
for (let o = 0; o < d.length; o++)
|
|
11872
|
+
if (o >= a * c && o < n * c) {
|
|
11873
|
+
const w = d[o];
|
|
11874
|
+
w[r] = await p(w, o);
|
|
11875
|
+
} else if (o >= n * c)
|
|
11876
|
+
break;
|
|
11877
|
+
return d;
|
|
11856
11878
|
}
|
|
11857
|
-
const
|
|
11879
|
+
const Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11858
11880
|
__proto__: null,
|
|
11859
11881
|
average: pr,
|
|
11882
|
+
buildTree: br,
|
|
11860
11883
|
deteleObject: ir,
|
|
11861
11884
|
findNode: nr,
|
|
11862
11885
|
find_csa: ye,
|
|
@@ -11867,16 +11890,16 @@ const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11867
11890
|
mixSort: er,
|
|
11868
11891
|
pagination: Jt,
|
|
11869
11892
|
remove: cr,
|
|
11893
|
+
setObejctArrayProperty: yr,
|
|
11870
11894
|
shuffle: dr,
|
|
11871
11895
|
sortByKey: tr,
|
|
11872
11896
|
sum: lr,
|
|
11873
|
-
toThousands: br,
|
|
11874
11897
|
union: sr,
|
|
11875
11898
|
unique: ar,
|
|
11876
11899
|
uniqueObject: rr,
|
|
11877
11900
|
uniqueObjectByKey: Qt
|
|
11878
11901
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11879
|
-
function
|
|
11902
|
+
function gr(e) {
|
|
11880
11903
|
const a = new Xt(new Qe(e)).pe.sections.find((d) => d.name === ".rsrc"), n = ye(
|
|
11881
11904
|
a.body,
|
|
11882
11905
|
new Uint8Array([
|
|
@@ -11907,33 +11930,33 @@ function yr(e) {
|
|
|
11907
11930
|
0,
|
|
11908
11931
|
0
|
|
11909
11932
|
])
|
|
11910
|
-
),
|
|
11933
|
+
), c = ye(
|
|
11911
11934
|
a.body.slice(n + 26),
|
|
11912
11935
|
new Uint8Array([0, 0, 0])
|
|
11913
11936
|
);
|
|
11914
11937
|
return Kt(
|
|
11915
|
-
a.body.slice(n + 26, n +
|
|
11938
|
+
a.body.slice(n + 26, n + c + 26)
|
|
11916
11939
|
);
|
|
11917
11940
|
}
|
|
11918
|
-
const
|
|
11941
|
+
const Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11919
11942
|
__proto__: null,
|
|
11920
|
-
getFileVersion:
|
|
11943
|
+
getFileVersion: gr
|
|
11921
11944
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11922
|
-
function
|
|
11945
|
+
function mr(e, r) {
|
|
11923
11946
|
var a = /^(#?)[a-fA-F0-9]{6}$/, n = typeof r == "number";
|
|
11924
11947
|
if (!a.test(e))
|
|
11925
11948
|
return "";
|
|
11926
|
-
for (var
|
|
11927
|
-
var w =
|
|
11949
|
+
for (var c = e.replace(/#/, ""), p = [], d = "", o = 0; o < 3; o++) {
|
|
11950
|
+
var w = c.substring(o * 2, o * 2 + 2), g = parseInt(w, 16);
|
|
11928
11951
|
p.push(g);
|
|
11929
11952
|
}
|
|
11930
11953
|
return d = p.join(), d = "rgb" + (n ? "a" : "") + "(" + d + (n ? "," + r : "") + ")", d;
|
|
11931
11954
|
}
|
|
11932
|
-
function
|
|
11933
|
-
const n = ge(e),
|
|
11955
|
+
function wr(e, r, a) {
|
|
11956
|
+
const n = ge(e), c = n[0], p = n[1], d = n[2], o = ge(r), w = o[0], g = o[1], s = o[2], u = (w - c) / a, m = (g - p) / a, b = (s - d) / a, E = [];
|
|
11934
11957
|
for (let v = 0; v < a; v++) {
|
|
11935
11958
|
const S = tt(
|
|
11936
|
-
"rgb(" + parseInt(u * v +
|
|
11959
|
+
"rgb(" + parseInt(u * v + c) + "," + parseInt(m * v + p) + "," + parseInt(b * v + d) + ")"
|
|
11937
11960
|
);
|
|
11938
11961
|
E.push(S);
|
|
11939
11962
|
}
|
|
@@ -11944,8 +11967,8 @@ function ge(e) {
|
|
|
11944
11967
|
if (e = e.toLowerCase(), e && r.test(e)) {
|
|
11945
11968
|
if (e.length === 4) {
|
|
11946
11969
|
let n = "#";
|
|
11947
|
-
for (let
|
|
11948
|
-
n += e.slice(
|
|
11970
|
+
for (let c = 1; c < 4; c += 1)
|
|
11971
|
+
n += e.slice(c, c + 1).concat(e.slice(c, c + 1));
|
|
11949
11972
|
e = n;
|
|
11950
11973
|
}
|
|
11951
11974
|
const a = [];
|
|
@@ -11959,41 +11982,41 @@ function tt(e) {
|
|
|
11959
11982
|
const r = e, a = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
11960
11983
|
if (/^(rgb|RGB)/.test(r)) {
|
|
11961
11984
|
const n = r.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
|
|
11962
|
-
let
|
|
11985
|
+
let c = "#";
|
|
11963
11986
|
for (let p = 0; p < n.length; p++) {
|
|
11964
11987
|
let d = Number(n[p]).toString(16);
|
|
11965
|
-
d = d < 10 ? "0" + d : d, d === "0" && (d += d),
|
|
11988
|
+
d = d < 10 ? "0" + d : d, d === "0" && (d += d), c += d;
|
|
11966
11989
|
}
|
|
11967
|
-
return
|
|
11990
|
+
return c.length !== 7 && (c = r), c;
|
|
11968
11991
|
} else if (a.test(r)) {
|
|
11969
11992
|
const n = r.replace(/#/, "").split("");
|
|
11970
11993
|
if (n.length === 6)
|
|
11971
11994
|
return r;
|
|
11972
11995
|
if (n.length === 3) {
|
|
11973
|
-
let
|
|
11996
|
+
let c = "#";
|
|
11974
11997
|
for (let p = 0; p < n.length; p += 1)
|
|
11975
|
-
|
|
11976
|
-
return
|
|
11998
|
+
c += n[p] + n[p];
|
|
11999
|
+
return c;
|
|
11977
12000
|
}
|
|
11978
12001
|
} else
|
|
11979
12002
|
return r;
|
|
11980
12003
|
}
|
|
11981
|
-
const
|
|
12004
|
+
const Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11982
12005
|
__proto__: null,
|
|
11983
|
-
GetGradientColor:
|
|
12006
|
+
GetGradientColor: wr,
|
|
11984
12007
|
colorHex: tt,
|
|
11985
12008
|
colorRgb: ge,
|
|
11986
|
-
colorToRGBA:
|
|
12009
|
+
colorToRGBA: mr
|
|
11987
12010
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11988
|
-
function
|
|
12011
|
+
function vr(e) {
|
|
11989
12012
|
const r = [];
|
|
11990
|
-
e.forEach((
|
|
11991
|
-
r.push(new Date(
|
|
12013
|
+
e.forEach((c) => {
|
|
12014
|
+
r.push(new Date(c));
|
|
11992
12015
|
});
|
|
11993
12016
|
const a = new Date(Math.max.apply(null, r));
|
|
11994
12017
|
return [new Date(Math.min.apply(null, r)), a];
|
|
11995
12018
|
}
|
|
11996
|
-
function
|
|
12019
|
+
function _r(e, r) {
|
|
11997
12020
|
var a = new Date(e), n = new Date(r);
|
|
11998
12021
|
return a >= n;
|
|
11999
12022
|
}
|
|
@@ -12003,7 +12026,7 @@ function rt(e, r) {
|
|
|
12003
12026
|
const a = r || "{y}-{m}-{d} {h}:{i}:{s}";
|
|
12004
12027
|
let n;
|
|
12005
12028
|
typeof e == "object" ? n = e : (typeof e == "string" && (e = e.replace(/\T/g, " "), /^[0-9]+$/.test(e) ? e = parseInt(e) : e = e.replace(new RegExp(/-/gm), "/")), typeof e == "number" && e.toString().length === 10 && (e = e * 1e3), n = new Date(e));
|
|
12006
|
-
const
|
|
12029
|
+
const c = {
|
|
12007
12030
|
y: n.getFullYear(),
|
|
12008
12031
|
m: n.getMonth() + 1,
|
|
12009
12032
|
d: n.getDate(),
|
|
@@ -12013,19 +12036,19 @@ function rt(e, r) {
|
|
|
12013
12036
|
a: n.getDay()
|
|
12014
12037
|
};
|
|
12015
12038
|
return a.replace(/{([ymdhisa])+}/g, (d, o) => {
|
|
12016
|
-
const w =
|
|
12039
|
+
const w = c[o];
|
|
12017
12040
|
return o === "a" ? ["日", "一", "二", "三", "四", "五", "六"][w] : w.toString().padStart(2, "0");
|
|
12018
12041
|
});
|
|
12019
12042
|
}
|
|
12020
|
-
function
|
|
12043
|
+
function xr(e, r) {
|
|
12021
12044
|
("" + e).length === 10 ? e = parseInt(e) * 1e3 : e = +e;
|
|
12022
|
-
const a = new Date(e),
|
|
12023
|
-
return
|
|
12045
|
+
const a = new Date(e), c = (Date.now() - a) / 1e3;
|
|
12046
|
+
return c < 30 ? "刚刚" : c < 3600 ? Math.ceil(c / 60) + "分钟前" : c < 3600 * 24 ? Math.ceil(c / 3600) + "小时前" : c < 3600 * 24 * 2 ? "1天前" : r ? rt(e, r) : a.getMonth() + 1 + "月" + a.getDate() + "日" + a.getHours() + "时" + a.getMinutes() + "分";
|
|
12024
12047
|
}
|
|
12025
|
-
function
|
|
12048
|
+
function Er(e) {
|
|
12026
12049
|
return e.getYear() % 4 === 0 && (e.getYear() % 100 !== 0 || e.getYear() % 400 === 0);
|
|
12027
12050
|
}
|
|
12028
|
-
function
|
|
12051
|
+
function Sr(e = /* @__PURE__ */ new Date(), r = "yyyy-MM-dd hh:mm:ss") {
|
|
12029
12052
|
const a = new Date(e);
|
|
12030
12053
|
var n = {
|
|
12031
12054
|
"M+": a.getMonth() + 1,
|
|
@@ -12044,26 +12067,26 @@ function Er(e = /* @__PURE__ */ new Date(), r = "yyyy-MM-dd hh:mm:ss") {
|
|
|
12044
12067
|
// 毫秒
|
|
12045
12068
|
};
|
|
12046
12069
|
/(y+)/.test(r) && (r = r.replace(RegExp.$1, (a.getFullYear() + "").substr(4 - RegExp.$1.length)));
|
|
12047
|
-
for (var
|
|
12048
|
-
new RegExp("(" +
|
|
12070
|
+
for (var c in n)
|
|
12071
|
+
new RegExp("(" + c + ")").test(r) && (r = r.replace(
|
|
12049
12072
|
RegExp.$1,
|
|
12050
|
-
RegExp.$1.length === 1 ? n[
|
|
12073
|
+
RegExp.$1.length === 1 ? n[c] : ("00" + n[c]).substr(("" + n[c]).length)
|
|
12051
12074
|
));
|
|
12052
12075
|
return r;
|
|
12053
12076
|
}
|
|
12054
|
-
function
|
|
12055
|
-
var a = 0, n = -1,
|
|
12056
|
-
(n = e.indexOf("yyyy")) > -1 && n <
|
|
12077
|
+
function Br(e, r) {
|
|
12078
|
+
var a = 0, n = -1, c = r.length;
|
|
12079
|
+
(n = e.indexOf("yyyy")) > -1 && n < c && (a = r.substr(n, 4));
|
|
12057
12080
|
var p = 0;
|
|
12058
|
-
(n = e.indexOf("MM")) > -1 && n <
|
|
12081
|
+
(n = e.indexOf("MM")) > -1 && n < c && (p = parseInt(r.substr(n, 2)) - 1);
|
|
12059
12082
|
var d = 0;
|
|
12060
|
-
(n = e.indexOf("dd")) > -1 && n <
|
|
12083
|
+
(n = e.indexOf("dd")) > -1 && n < c && (d = parseInt(r.substr(n, 2)));
|
|
12061
12084
|
var o = 0;
|
|
12062
|
-
((n = e.indexOf("HH")) > -1 || (n = e.indexOf("hh")) > 1) && n <
|
|
12085
|
+
((n = e.indexOf("HH")) > -1 || (n = e.indexOf("hh")) > 1) && n < c && (o = parseInt(r.substr(n, 2)));
|
|
12063
12086
|
var w = 0;
|
|
12064
|
-
(n = e.indexOf("mm")) > -1 && n <
|
|
12087
|
+
(n = e.indexOf("mm")) > -1 && n < c && (w = r.substr(n, 2));
|
|
12065
12088
|
var g = 0;
|
|
12066
|
-
return (n = e.indexOf("ss")) > -1 && n <
|
|
12089
|
+
return (n = e.indexOf("ss")) > -1 && n < c && (g = r.substr(n, 2)), new Date(a, p, d, o, w, g);
|
|
12067
12090
|
}
|
|
12068
12091
|
function it(e, r, a) {
|
|
12069
12092
|
switch (e) {
|
|
@@ -12115,32 +12138,32 @@ function nt(e, r, a) {
|
|
|
12115
12138
|
);
|
|
12116
12139
|
}
|
|
12117
12140
|
}
|
|
12118
|
-
function
|
|
12141
|
+
function Ar(e) {
|
|
12119
12142
|
var r, a, n;
|
|
12120
12143
|
if (!(e == null || e < 0)) {
|
|
12121
|
-
var
|
|
12122
|
-
return r =
|
|
12144
|
+
var c = parseInt(e);
|
|
12145
|
+
return r = c / 3600 | 0, c = parseInt(c) - parseInt(r) * 3600, parseInt(r) < 10 && (r = "0" + r), parseInt(r) >= 24 && (r = "00"), a = parseInt(c) / 60 | 0, n = parseInt(c) - parseInt(a) * 60, parseInt(a) < 10 && (a = "0" + a), parseInt(n) < 10 && (n = "0" + n), r + ":" + a + ":" + n;
|
|
12123
12146
|
}
|
|
12124
12147
|
}
|
|
12125
|
-
function
|
|
12126
|
-
var e = /* @__PURE__ */ new Date(), r = e.getFullYear(), a = e.getMonth() + 1, n = e.getDate(),
|
|
12127
|
-
return
|
|
12148
|
+
function Ur() {
|
|
12149
|
+
var e = /* @__PURE__ */ new Date(), r = e.getFullYear(), a = e.getMonth() + 1, n = e.getDate(), c = [];
|
|
12150
|
+
return c[0] = "星期日", c[1] = "星期一", c[2] = "星期二", c[3] = "星期三", c[4] = "星期四", c[5] = "星期五", c[6] = "星期六", r + "年" + a + "月" + n + "日 " + c[e.getDay()];
|
|
12128
12151
|
}
|
|
12129
|
-
function
|
|
12152
|
+
function Tr(e) {
|
|
12130
12153
|
e = arguments[0] || /* @__PURE__ */ new Date(), e.setDate(1), e.setMonth(e.getMonth() + 1);
|
|
12131
12154
|
var r = e.getTime() - 24 * 60 * 60 * 1e3, a = new Date(r);
|
|
12132
12155
|
return a.getDate();
|
|
12133
12156
|
}
|
|
12134
|
-
function
|
|
12157
|
+
function Fr(e, r) {
|
|
12135
12158
|
var a = 0, n = it("d", e, r) + 1;
|
|
12136
12159
|
if (n > 0)
|
|
12137
|
-
for (var
|
|
12138
|
-
var p = nt("d",
|
|
12160
|
+
for (var c = 0; c < n; c++) {
|
|
12161
|
+
var p = nt("d", c, e);
|
|
12139
12162
|
(p.getDay() === 0 || p.getDay() === 6) && a++;
|
|
12140
12163
|
}
|
|
12141
12164
|
return a;
|
|
12142
12165
|
}
|
|
12143
|
-
function
|
|
12166
|
+
function Or(e, r) {
|
|
12144
12167
|
r = arguments[1] || /* @__PURE__ */ new Date();
|
|
12145
12168
|
var a = "", n = ["日", "一", "二", "三", "四", "五", "六"];
|
|
12146
12169
|
switch (e) {
|
|
@@ -12171,57 +12194,57 @@ function Fr(e, r) {
|
|
|
12171
12194
|
}
|
|
12172
12195
|
return a;
|
|
12173
12196
|
}
|
|
12174
|
-
const
|
|
12197
|
+
const en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12175
12198
|
__proto__: null,
|
|
12176
|
-
compareDate:
|
|
12199
|
+
compareDate: _r,
|
|
12177
12200
|
dateAdd: nt,
|
|
12178
12201
|
dateDiff: it,
|
|
12179
|
-
formatDate:
|
|
12180
|
-
formatTime:
|
|
12181
|
-
getDatePart:
|
|
12182
|
-
getIntervalWeekends:
|
|
12183
|
-
getMinMaxDate:
|
|
12184
|
-
getTodayDate:
|
|
12185
|
-
isLeapYear:
|
|
12186
|
-
maxDayOfDate:
|
|
12202
|
+
formatDate: Sr,
|
|
12203
|
+
formatTime: xr,
|
|
12204
|
+
getDatePart: Or,
|
|
12205
|
+
getIntervalWeekends: Fr,
|
|
12206
|
+
getMinMaxDate: vr,
|
|
12207
|
+
getTodayDate: Ur,
|
|
12208
|
+
isLeapYear: Er,
|
|
12209
|
+
maxDayOfDate: Tr,
|
|
12187
12210
|
parseTime: rt,
|
|
12188
|
-
strFormatToDate:
|
|
12189
|
-
timeTohhmmss:
|
|
12211
|
+
strFormatToDate: Br,
|
|
12212
|
+
timeTohhmmss: Ar
|
|
12190
12213
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12191
12214
|
function me(e, r) {
|
|
12192
12215
|
return new RegExp("(^|\\s)" + r + "(\\s|$)").test(e.className);
|
|
12193
12216
|
}
|
|
12194
|
-
function
|
|
12217
|
+
function Ir(e, r) {
|
|
12195
12218
|
if (me(e, r))
|
|
12196
12219
|
return;
|
|
12197
12220
|
const a = e.className.split(" ");
|
|
12198
12221
|
a.push(r), e.className = a.join(" ");
|
|
12199
12222
|
}
|
|
12200
|
-
function
|
|
12223
|
+
function Cr(e, r) {
|
|
12201
12224
|
if (!me(e, r))
|
|
12202
12225
|
return;
|
|
12203
12226
|
const a = new RegExp("(^|\\s)" + r + "(\\s|$)", "g");
|
|
12204
12227
|
e.className = e.className.replace(a, " ");
|
|
12205
12228
|
}
|
|
12206
|
-
function
|
|
12229
|
+
function Dr(e = window) {
|
|
12207
12230
|
return {
|
|
12208
12231
|
x: e.pageXOffset !== void 0 ? e.pageXOffset : e.scrollLeft,
|
|
12209
12232
|
y: e.pageYOffset !== void 0 ? e.pageYOffset : e.scrollTop
|
|
12210
12233
|
};
|
|
12211
12234
|
}
|
|
12212
|
-
function
|
|
12213
|
-
const { top: a, left: n, bottom:
|
|
12214
|
-
return r ? (a > 0 && a < d ||
|
|
12235
|
+
function Lr(e, r = !1) {
|
|
12236
|
+
const { top: a, left: n, bottom: c, right: p } = e.getBoundingClientRect(), { innerHeight: d, innerWidth: o } = window;
|
|
12237
|
+
return r ? (a > 0 && a < d || c > 0 && c < d) && (n > 0 && n < o || p > 0 && p < o) : a >= 0 && n >= 0 && c <= d && p <= o;
|
|
12215
12238
|
}
|
|
12216
|
-
const
|
|
12239
|
+
const tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12217
12240
|
__proto__: null,
|
|
12218
|
-
addClass:
|
|
12219
|
-
elementIsVisibleInViewport:
|
|
12220
|
-
getScrollPosition:
|
|
12241
|
+
addClass: Ir,
|
|
12242
|
+
elementIsVisibleInViewport: Lr,
|
|
12243
|
+
getScrollPosition: Dr,
|
|
12221
12244
|
hasClass: me,
|
|
12222
|
-
removeClass:
|
|
12245
|
+
removeClass: Cr
|
|
12223
12246
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12224
|
-
function
|
|
12247
|
+
function Rr(e, ...r) {
|
|
12225
12248
|
if (typeof e == "function")
|
|
12226
12249
|
try {
|
|
12227
12250
|
return e(...r);
|
|
@@ -12231,15 +12254,15 @@ function Lr(e, ...r) {
|
|
|
12231
12254
|
else
|
|
12232
12255
|
console.warn("func 不是可执行的方法!", e);
|
|
12233
12256
|
}
|
|
12234
|
-
const
|
|
12257
|
+
const rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12235
12258
|
__proto__: null,
|
|
12236
|
-
safeExecuteFunc:
|
|
12259
|
+
safeExecuteFunc: Rr
|
|
12237
12260
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12238
12261
|
function at() {
|
|
12239
12262
|
const e = document.documentElement.scrollTop || document.body.scrollTop;
|
|
12240
12263
|
e > 0 && (window.requestAnimationFrame(at), window.scrollTo(0, e - e / 8));
|
|
12241
12264
|
}
|
|
12242
|
-
function
|
|
12265
|
+
function Pr(e) {
|
|
12243
12266
|
var r = document.createElement("textarea");
|
|
12244
12267
|
r.style.background = "transparent", r.value = e, document.body.appendChild(r), r.select();
|
|
12245
12268
|
try {
|
|
@@ -12249,24 +12272,24 @@ function Rr(e) {
|
|
|
12249
12272
|
}
|
|
12250
12273
|
document.body.removeChild(r);
|
|
12251
12274
|
}
|
|
12252
|
-
function
|
|
12275
|
+
function kr(e) {
|
|
12253
12276
|
e === void 0 && (e = !(document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen));
|
|
12254
12277
|
var r = document.documentElement;
|
|
12255
12278
|
return e ? r.requestFullscreen && r.requestFullscreen() || r.mozRequestFullScreen && r.mozRequestFullScreen() || r.webkitRequestFullscreen && r.webkitRequestFullscreen() || r.msRequestFullscreen && r.msRequestFullscreen() : document.exitFullscreen && document.exitFullscreen() || document.mozCancelFullScreen && document.mozCancelFullScreen() || document.webkitExitFullscreen && document.webkitExitFullscreen(), e;
|
|
12256
12279
|
}
|
|
12257
|
-
function
|
|
12258
|
-
var
|
|
12280
|
+
function Mr(e, r, a, n) {
|
|
12281
|
+
var c = (screen.width - r) / 2, p = (screen.height - a) / 2;
|
|
12259
12282
|
window.open(
|
|
12260
12283
|
e,
|
|
12261
12284
|
"",
|
|
12262
|
-
"height=" + a + ",width=" + r + ",location=no,menubar=no,resizable=" + n + ",scrollbars=yes,status=no,toolbar=no,left=" +
|
|
12285
|
+
"height=" + a + ",width=" + r + ",location=no,menubar=no,resizable=" + n + ",scrollbars=yes,status=no,toolbar=no,left=" + c + ",top=" + p
|
|
12263
12286
|
);
|
|
12264
12287
|
}
|
|
12265
|
-
function
|
|
12288
|
+
function Nr(e, r, a, n, c) {
|
|
12266
12289
|
var p = "";
|
|
12267
|
-
if (
|
|
12268
|
-
for (var d in
|
|
12269
|
-
Object.prototype.hasOwnProperty.call(
|
|
12290
|
+
if (c !== null && typeof c == "object")
|
|
12291
|
+
for (var d in c)
|
|
12292
|
+
Object.prototype.hasOwnProperty.call(c, d) && (p += d + "=" + c[d] + ",");
|
|
12270
12293
|
var o = window.screenLeft !== void 0 ? window.screenLeft : screen.left, w = window.screenTop !== void 0 ? window.screenTop : screen.top, g = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width, s = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height, u = g / 2 - a / 2 + o, m = s / 2 - n / 2 + w, b = window.open(
|
|
12271
12294
|
e,
|
|
12272
12295
|
r,
|
|
@@ -12274,19 +12297,19 @@ function Mr(e, r, a, n, f) {
|
|
|
12274
12297
|
);
|
|
12275
12298
|
window.focus && b.focus();
|
|
12276
12299
|
}
|
|
12277
|
-
function
|
|
12300
|
+
function jr(e) {
|
|
12278
12301
|
confirm(e) && (window.opener = null, window.open("", "_self"), window.close());
|
|
12279
12302
|
}
|
|
12280
|
-
const
|
|
12303
|
+
const nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12281
12304
|
__proto__: null,
|
|
12282
|
-
confirmClosewindow:
|
|
12283
|
-
copyTextToClipboard:
|
|
12284
|
-
openWindow:
|
|
12285
|
-
popupCenter:
|
|
12305
|
+
confirmClosewindow: jr,
|
|
12306
|
+
copyTextToClipboard: Pr,
|
|
12307
|
+
openWindow: Mr,
|
|
12308
|
+
popupCenter: Nr,
|
|
12286
12309
|
scrollToTop: at,
|
|
12287
|
-
toggleFullScreen:
|
|
12310
|
+
toggleFullScreen: kr
|
|
12288
12311
|
}, Symbol.toStringTag, { value: "Module" })), $ = Object.prototype.toString, V = navigator.userAgent.toLowerCase();
|
|
12289
|
-
function
|
|
12312
|
+
function qr(e) {
|
|
12290
12313
|
if (!/(^\d{15}$)|(^\d{17}(\d|X|x)$)/.test(e))
|
|
12291
12314
|
return console.log("你输入的身份证长度或格式错误"), !1;
|
|
12292
12315
|
var r = {
|
|
@@ -12331,12 +12354,12 @@ function jr(e) {
|
|
|
12331
12354
|
var a = (e.substr(6, 4) + "-" + Number(e.substr(10, 2)) + "-" + Number(e.substr(12, 2))).replace(/-/g, "/"), n = new Date(a);
|
|
12332
12355
|
if (a !== n.getFullYear() + "/" + (n.getMonth() + 1) + "/" + n.getDate())
|
|
12333
12356
|
return console.log("身份证上的出生日期非法"), !1;
|
|
12334
|
-
for (var
|
|
12335
|
-
|
|
12336
|
-
var w = d[
|
|
12357
|
+
for (var c = 0, p = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], d = "10X98765432", o = 0; o < e.length - 1; o++)
|
|
12358
|
+
c += e[o] * p[o];
|
|
12359
|
+
var w = d[c % 11];
|
|
12337
12360
|
return e[e.length - 1] !== w ? (console.log("你输入的身份证号非法"), !1) : !0;
|
|
12338
12361
|
}
|
|
12339
|
-
function
|
|
12362
|
+
function zr(e, r) {
|
|
12340
12363
|
switch (r) {
|
|
12341
12364
|
case "phone":
|
|
12342
12365
|
return /^1[3|4|5|6|7|8|9][0-9]{9}$/.test(e);
|
|
@@ -12382,71 +12405,71 @@ function qr(e, r) {
|
|
|
12382
12405
|
return !0;
|
|
12383
12406
|
}
|
|
12384
12407
|
}
|
|
12385
|
-
function
|
|
12408
|
+
function Vr(e) {
|
|
12386
12409
|
return $.call(e) === "[object Array]";
|
|
12387
12410
|
}
|
|
12388
|
-
function
|
|
12411
|
+
function Hr(e) {
|
|
12389
12412
|
return ![void 0, null].includes(e) && e.constructor === Buffer;
|
|
12390
12413
|
}
|
|
12391
|
-
function
|
|
12414
|
+
function $r(e) {
|
|
12392
12415
|
return $.call(e) === "[object ArrayBuffer]";
|
|
12393
12416
|
}
|
|
12394
|
-
function
|
|
12417
|
+
function Wr(e) {
|
|
12395
12418
|
return typeof FormData < "u" && e instanceof FormData && $.call(e) === "[object FormData]";
|
|
12396
12419
|
}
|
|
12397
|
-
function
|
|
12420
|
+
function Gr(e) {
|
|
12398
12421
|
let r;
|
|
12399
12422
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(e) : r = e && e.buffer && e.buffer instanceof ArrayBuffer, r;
|
|
12400
12423
|
}
|
|
12401
|
-
function
|
|
12424
|
+
function Yr(e) {
|
|
12402
12425
|
return typeof e == "string";
|
|
12403
12426
|
}
|
|
12404
|
-
function
|
|
12427
|
+
function Zr(e) {
|
|
12405
12428
|
return typeof e == "number";
|
|
12406
12429
|
}
|
|
12407
|
-
function
|
|
12430
|
+
function Xr(e) {
|
|
12408
12431
|
return Object.prototype.toString.call(e).slice(8, -1) === "Boolean";
|
|
12409
12432
|
}
|
|
12410
|
-
function
|
|
12433
|
+
function Kr(e) {
|
|
12411
12434
|
return Object.prototype.toString.call(e).slice(8, -1) === "Null";
|
|
12412
12435
|
}
|
|
12413
|
-
function
|
|
12436
|
+
function Jr(e) {
|
|
12414
12437
|
return typeof e > "u";
|
|
12415
12438
|
}
|
|
12416
|
-
function
|
|
12439
|
+
function Qr(e) {
|
|
12417
12440
|
return Object.prototype.toString.call(e).slice(8, -1) === "RegExp";
|
|
12418
12441
|
}
|
|
12419
|
-
function
|
|
12442
|
+
function ei(e) {
|
|
12420
12443
|
return Object.prototype.toString.call(e).slice(8, -1) === "Error";
|
|
12421
12444
|
}
|
|
12422
|
-
function
|
|
12445
|
+
function ti(e) {
|
|
12423
12446
|
return Object.prototype.toString.call(e).slice(8, -1) === "Symbol";
|
|
12424
12447
|
}
|
|
12425
|
-
function
|
|
12448
|
+
function ri(e) {
|
|
12426
12449
|
return Object.prototype.toString.call(e).slice(8, -1) === "Promise";
|
|
12427
12450
|
}
|
|
12428
|
-
function
|
|
12451
|
+
function ii(e) {
|
|
12429
12452
|
return Object.prototype.toString.call(e).slice(8, -1) === "Set";
|
|
12430
12453
|
}
|
|
12431
|
-
function
|
|
12454
|
+
function ni() {
|
|
12432
12455
|
return typeof V < "u" && V.match(/microMessenger/i) === "micromessenger";
|
|
12433
12456
|
}
|
|
12434
|
-
function
|
|
12457
|
+
function ai() {
|
|
12435
12458
|
return typeof V < "u" && /android|webos|iphone|ipod|balckberry/i.test(V);
|
|
12436
12459
|
}
|
|
12437
|
-
function
|
|
12460
|
+
function si() {
|
|
12438
12461
|
return typeof V < "u" && !!V.match(/mqqbrowser|qzone|qqbrowser|qbwebviewtype/i);
|
|
12439
12462
|
}
|
|
12440
|
-
function
|
|
12463
|
+
function oi() {
|
|
12441
12464
|
return typeof V < "u" && /adsbot|googlebot|bingbot|msnbot|yandexbot|baidubot|robot|careerbot|seznambot|bot|baiduspider|jikespider|symantecspider|scannerlwebcrawler|crawler|360spider|sosospider|sogou web sprider|sogou orion spider/.test(
|
|
12442
12465
|
V
|
|
12443
12466
|
);
|
|
12444
12467
|
}
|
|
12445
|
-
function
|
|
12468
|
+
function ci() {
|
|
12446
12469
|
var e = navigator.userAgent;
|
|
12447
12470
|
return e.indexOf("Android") > -1 || e.indexOf("Linux") > -1 ? !1 : e.indexOf("iPhone") > -1 ? !0 : (e.indexOf("iPad") > -1 || e.indexOf("Windows Phone") > -1, !1);
|
|
12448
12471
|
}
|
|
12449
|
-
function
|
|
12472
|
+
function fi() {
|
|
12450
12473
|
for (var e = navigator.userAgent, r = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"], a = !0, n = 0; n < r.length; n++)
|
|
12451
12474
|
if (e.indexOf(r[n]) > 0) {
|
|
12452
12475
|
a = !1;
|
|
@@ -12457,93 +12480,93 @@ function ci() {
|
|
|
12457
12480
|
function st(e) {
|
|
12458
12481
|
return e !== null && typeof e == "object";
|
|
12459
12482
|
}
|
|
12460
|
-
function
|
|
12483
|
+
function ui(e) {
|
|
12461
12484
|
return $.call(e) === "[object Date]";
|
|
12462
12485
|
}
|
|
12463
|
-
function
|
|
12486
|
+
function hi(e) {
|
|
12464
12487
|
return $.call(e) === "[object File]";
|
|
12465
12488
|
}
|
|
12466
|
-
function
|
|
12489
|
+
function li(e) {
|
|
12467
12490
|
return $.call(e) === "[object Blob]";
|
|
12468
12491
|
}
|
|
12469
12492
|
function ot(e) {
|
|
12470
12493
|
return $.call(e) === "[object Function]";
|
|
12471
12494
|
}
|
|
12472
|
-
function
|
|
12495
|
+
function pi(e) {
|
|
12473
12496
|
return st(e) && ot(e.pipe);
|
|
12474
12497
|
}
|
|
12475
|
-
function
|
|
12498
|
+
function di(e) {
|
|
12476
12499
|
return typeof URLSearchParams < "u" && e instanceof URLSearchParams;
|
|
12477
12500
|
}
|
|
12478
|
-
function
|
|
12501
|
+
function bi() {
|
|
12479
12502
|
return typeof navigator < "u" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
12480
12503
|
}
|
|
12481
|
-
function
|
|
12504
|
+
function yi(e) {
|
|
12482
12505
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
12483
12506
|
}
|
|
12484
|
-
function
|
|
12507
|
+
function gi(e) {
|
|
12485
12508
|
return /^http[s]?:\/\/.*/.test(e);
|
|
12486
12509
|
}
|
|
12487
|
-
function
|
|
12510
|
+
function mi(e) {
|
|
12488
12511
|
return /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(e);
|
|
12489
12512
|
}
|
|
12490
|
-
function
|
|
12513
|
+
function wi(e) {
|
|
12491
12514
|
return /^1[0-9]{10}$/.test(e);
|
|
12492
12515
|
}
|
|
12493
|
-
function
|
|
12516
|
+
function vi(e) {
|
|
12494
12517
|
return /^([0-9]{3,4}-)?[0-9]{7,8}$/.test(e);
|
|
12495
12518
|
}
|
|
12496
|
-
const
|
|
12519
|
+
const an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12497
12520
|
__proto__: null,
|
|
12498
|
-
checkStr:
|
|
12499
|
-
isAbsoluteURL:
|
|
12500
|
-
isArray:
|
|
12501
|
-
isArrayBuffer:
|
|
12502
|
-
isArrayBufferView:
|
|
12503
|
-
isBlob:
|
|
12504
|
-
isBoolean:
|
|
12505
|
-
isBuffer:
|
|
12506
|
-
isDate:
|
|
12507
|
-
isDeviceMobile:
|
|
12508
|
-
isEmail:
|
|
12509
|
-
isError:
|
|
12510
|
-
isFile:
|
|
12511
|
-
isFormData:
|
|
12521
|
+
checkStr: zr,
|
|
12522
|
+
isAbsoluteURL: yi,
|
|
12523
|
+
isArray: Vr,
|
|
12524
|
+
isArrayBuffer: $r,
|
|
12525
|
+
isArrayBufferView: Gr,
|
|
12526
|
+
isBlob: li,
|
|
12527
|
+
isBoolean: Xr,
|
|
12528
|
+
isBuffer: Hr,
|
|
12529
|
+
isDate: ui,
|
|
12530
|
+
isDeviceMobile: ai,
|
|
12531
|
+
isEmail: mi,
|
|
12532
|
+
isError: ei,
|
|
12533
|
+
isFile: hi,
|
|
12534
|
+
isFormData: Wr,
|
|
12512
12535
|
isFunction: ot,
|
|
12513
|
-
isIDCard:
|
|
12514
|
-
isIos:
|
|
12515
|
-
isMobile:
|
|
12516
|
-
isNull:
|
|
12517
|
-
isNumber:
|
|
12536
|
+
isIDCard: qr,
|
|
12537
|
+
isIos: ci,
|
|
12538
|
+
isMobile: wi,
|
|
12539
|
+
isNull: Kr,
|
|
12540
|
+
isNumber: Zr,
|
|
12518
12541
|
isObject: st,
|
|
12519
|
-
isPC:
|
|
12520
|
-
isPhone:
|
|
12521
|
-
isPromise:
|
|
12522
|
-
isQQBrowser:
|
|
12523
|
-
isRegExp:
|
|
12524
|
-
isSet:
|
|
12525
|
-
isSpider:
|
|
12526
|
-
isStandardBrowserEnv:
|
|
12527
|
-
isStream:
|
|
12528
|
-
isString:
|
|
12529
|
-
isSymbol:
|
|
12530
|
-
isURL:
|
|
12531
|
-
isURLSearchParams:
|
|
12532
|
-
isUndefined:
|
|
12533
|
-
isWeiXin:
|
|
12542
|
+
isPC: fi,
|
|
12543
|
+
isPhone: vi,
|
|
12544
|
+
isPromise: ri,
|
|
12545
|
+
isQQBrowser: si,
|
|
12546
|
+
isRegExp: Qr,
|
|
12547
|
+
isSet: ii,
|
|
12548
|
+
isSpider: oi,
|
|
12549
|
+
isStandardBrowserEnv: bi,
|
|
12550
|
+
isStream: pi,
|
|
12551
|
+
isString: Yr,
|
|
12552
|
+
isSymbol: ti,
|
|
12553
|
+
isURL: gi,
|
|
12554
|
+
isURLSearchParams: di,
|
|
12555
|
+
isUndefined: Jr,
|
|
12556
|
+
isWeiXin: ni
|
|
12534
12557
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12535
|
-
function
|
|
12536
|
-
const n = e.entries().find((
|
|
12558
|
+
function _i(e, r) {
|
|
12559
|
+
const n = e.entries().find((c) => c.value === r);
|
|
12537
12560
|
return n === void 0 ? n : n.key;
|
|
12538
12561
|
}
|
|
12539
|
-
const
|
|
12562
|
+
const sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12540
12563
|
__proto__: null,
|
|
12541
|
-
getKeyByValue:
|
|
12564
|
+
getKeyByValue: _i
|
|
12542
12565
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12543
|
-
function
|
|
12566
|
+
function xi(e, r) {
|
|
12544
12567
|
return arguments.length === 2 ? Math.floor(e + Math.random() * (r + 1 - e)) : null;
|
|
12545
12568
|
}
|
|
12546
|
-
function
|
|
12569
|
+
function Ei(e) {
|
|
12547
12570
|
var r = "", a = ["Ⅰ", "Ⅱ", "Ⅲ", "Ⅳ", "Ⅴ", "Ⅵ", "Ⅶ", "Ⅷ", "Ⅸ", "Ⅹ", "Ⅺ", "Ⅻ"];
|
|
12548
12571
|
if (e < 1 || e > 12)
|
|
12549
12572
|
r = e.toString();
|
|
@@ -12553,11 +12576,11 @@ function xi(e) {
|
|
|
12553
12576
|
}
|
|
12554
12577
|
return r;
|
|
12555
12578
|
}
|
|
12556
|
-
function
|
|
12579
|
+
function Si(e) {
|
|
12557
12580
|
const r = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十"], a = ["", "十", "百", "千", "万", "亿", "点", ""], n = ("" + e).replace(/(^0*)/g, "").split(".");
|
|
12558
|
-
let
|
|
12581
|
+
let c = 0, p = "";
|
|
12559
12582
|
for (let d = n[0].length - 1; d >= 0; d--) {
|
|
12560
|
-
switch (
|
|
12583
|
+
switch (c) {
|
|
12561
12584
|
case 0:
|
|
12562
12585
|
p = a[7] + p;
|
|
12563
12586
|
break;
|
|
@@ -12565,10 +12588,10 @@ function Ei(e) {
|
|
|
12565
12588
|
new RegExp("0{4}//d{" + (n[0].length - d - 1) + "}$").test(n[0]) || (p = a[4] + p);
|
|
12566
12589
|
break;
|
|
12567
12590
|
case 8:
|
|
12568
|
-
p = a[5] + p, a[7] = a[5],
|
|
12591
|
+
p = a[5] + p, a[7] = a[5], c = 0;
|
|
12569
12592
|
break;
|
|
12570
12593
|
}
|
|
12571
|
-
|
|
12594
|
+
c % 4 === 2 && n[0].charAt(d + 2) !== 0 && n[0].charAt(d + 1) === 0 && (p = r[0] + p), n[0].charAt(d) !== 0 && (p = r[n[0].charAt(d)] + a[c % 4] + p), c++;
|
|
12572
12595
|
}
|
|
12573
12596
|
if (n.length > 1) {
|
|
12574
12597
|
p += a[6];
|
|
@@ -12577,79 +12600,59 @@ function Ei(e) {
|
|
|
12577
12600
|
}
|
|
12578
12601
|
return p === "一十" && (p = "十"), p.match(/^一/) && p.length === 3 && (p = p.replace("一", "")), p;
|
|
12579
12602
|
}
|
|
12580
|
-
const
|
|
12603
|
+
const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12581
12604
|
__proto__: null,
|
|
12582
|
-
Arab2Roman:
|
|
12583
|
-
numberToChinese:
|
|
12584
|
-
random:
|
|
12605
|
+
Arab2Roman: Ei,
|
|
12606
|
+
numberToChinese: Si,
|
|
12607
|
+
random: xi
|
|
12585
12608
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12586
12609
|
function ct(e, { label: r, value: a, children: n }) {
|
|
12587
|
-
for (let
|
|
12588
|
-
const p = e[
|
|
12610
|
+
for (let c = 0; c < e.length; c++) {
|
|
12611
|
+
const p = e[c];
|
|
12589
12612
|
p.label = p[r], p.value = p[a], p[n] !== void 0 && p[n].length > 1 && (ct(p[n], { label: r, value: a, children: n }), p.children = p[n], p.children.length === 0 && delete p.children, delete p[n]), delete p[r], delete p[a];
|
|
12590
12613
|
}
|
|
12591
12614
|
}
|
|
12592
|
-
function
|
|
12615
|
+
function Bi(e, r) {
|
|
12593
12616
|
var a = Object.getOwnPropertyNames(e), n = Object.getOwnPropertyNames(r);
|
|
12594
12617
|
if (a.length !== n.length)
|
|
12595
12618
|
return !1;
|
|
12596
|
-
for (var
|
|
12597
|
-
var p = a[
|
|
12619
|
+
for (var c = 0; c < a.length; c++) {
|
|
12620
|
+
var p = a[c];
|
|
12598
12621
|
if (e[p] !== r[p])
|
|
12599
12622
|
return !1;
|
|
12600
12623
|
}
|
|
12601
12624
|
return !0;
|
|
12602
12625
|
}
|
|
12603
|
-
|
|
12604
|
-
treeNameKey: "name",
|
|
12605
|
-
childrenKey: "children",
|
|
12606
|
-
treePathKey: "tree-path",
|
|
12607
|
-
treePathSplit: "-"
|
|
12608
|
-
}, n, f) {
|
|
12609
|
-
let p = 0;
|
|
12610
|
-
function d(o, w, g) {
|
|
12611
|
-
if (w.length === 0)
|
|
12612
|
-
return;
|
|
12613
|
-
const s = w[w.length - 1];
|
|
12614
|
-
let u = o[a.childrenKey].find((m) => m[a.treeNameKey] === s);
|
|
12615
|
-
p++, u ? u = f(u, s, g, p, o) : (u = n(s, g, p, o), o[a.childrenKey].push(u)), d(u, w.slice(0, -1), g);
|
|
12616
|
-
}
|
|
12617
|
-
return r.forEach((o) => {
|
|
12618
|
-
const w = o[a.treePathKey].split(a.treePathSplit);
|
|
12619
|
-
d(e, w, o);
|
|
12620
|
-
}), e;
|
|
12621
|
-
}
|
|
12622
|
-
const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12626
|
+
const cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12623
12627
|
__proto__: null,
|
|
12624
|
-
|
|
12625
|
-
isObjectEqual: Si,
|
|
12628
|
+
isObjectEqual: Bi,
|
|
12626
12629
|
recursionTreeProp: ct
|
|
12627
12630
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12628
12631
|
function Ai(e) {
|
|
12629
12632
|
var r = /\.[^.]+$/.exec(e), a = String(r), n = a.toLowerCase();
|
|
12630
12633
|
return n;
|
|
12631
12634
|
}
|
|
12632
|
-
const
|
|
12635
|
+
const fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12633
12636
|
__proto__: null,
|
|
12634
12637
|
getFileExt: Ai
|
|
12635
12638
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12636
|
-
class
|
|
12639
|
+
class un {
|
|
12637
12640
|
constructor(r) {
|
|
12638
12641
|
this.source = r || window.localStorage, this.initRun();
|
|
12639
12642
|
}
|
|
12640
12643
|
initRun() {
|
|
12641
12644
|
const r = new RegExp("__expires__"), a = this.source, n = Object.keys(a);
|
|
12642
|
-
n.length > 0 && n.map((
|
|
12643
|
-
if (!r.test(
|
|
12644
|
-
const d = Date.now(), o = a[`${
|
|
12645
|
-
d >= o && this.remove(
|
|
12645
|
+
n.length > 0 && n.map((c, p) => {
|
|
12646
|
+
if (!r.test(c)) {
|
|
12647
|
+
const d = Date.now(), o = a[`${c}__expires__`] || Date.now + 1;
|
|
12648
|
+
d >= o && this.remove(c);
|
|
12646
12649
|
}
|
|
12647
|
-
return
|
|
12650
|
+
return c;
|
|
12648
12651
|
});
|
|
12649
12652
|
}
|
|
12650
12653
|
set(r, a, n) {
|
|
12651
|
-
const
|
|
12652
|
-
return
|
|
12654
|
+
const c = this.source;
|
|
12655
|
+
return c[r] = JSON.stringify(a), n && (c[`${r}__expires__`] = Date.now() + n), a;
|
|
12653
12656
|
}
|
|
12654
12657
|
get(r) {
|
|
12655
12658
|
const a = this.source, n = a[`${r}__expires__`] || Date.now + 1;
|
|
@@ -12712,13 +12715,13 @@ function Fi(e) {
|
|
|
12712
12715
|
}
|
|
12713
12716
|
function Oi(e, r, a) {
|
|
12714
12717
|
const n = r - (e + "").length;
|
|
12715
|
-
for (let
|
|
12718
|
+
for (let c = 0; c < n; c++)
|
|
12716
12719
|
e = a + e;
|
|
12717
12720
|
return e;
|
|
12718
12721
|
}
|
|
12719
12722
|
function Ii(e, r, a) {
|
|
12720
12723
|
const n = r - (e + "").length;
|
|
12721
|
-
for (let
|
|
12724
|
+
for (let c = 0; c < n; c++)
|
|
12722
12725
|
e = e + a;
|
|
12723
12726
|
return e;
|
|
12724
12727
|
}
|
|
@@ -12772,13 +12775,20 @@ function ki(e, r) {
|
|
|
12772
12775
|
}
|
|
12773
12776
|
}
|
|
12774
12777
|
function Mi(e, r, a = "<br/>") {
|
|
12775
|
-
for (var n = e,
|
|
12778
|
+
for (var n = e, c = r, p = 0, d = "", o = new RegExp("[一-龥]+"), w = 0; w < n.length; w++) {
|
|
12776
12779
|
var g = n.charAt(w);
|
|
12777
|
-
o.test(g) ? p += 2 : p += 1, d += n.charAt(w), p >=
|
|
12780
|
+
o.test(g) ? p += 2 : p += 1, d += n.charAt(w), p >= c && (d = d + a, p = 0);
|
|
12778
12781
|
}
|
|
12779
12782
|
return d;
|
|
12780
12783
|
}
|
|
12781
|
-
|
|
12784
|
+
function Ni(e) {
|
|
12785
|
+
e = e.toString();
|
|
12786
|
+
let r = "";
|
|
12787
|
+
for (; e.length > 3; )
|
|
12788
|
+
r = "," + e.substring(e.length - 3) + r, e = e.substring(0, e.length - 3);
|
|
12789
|
+
return r = e + r, r;
|
|
12790
|
+
}
|
|
12791
|
+
const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12782
12792
|
__proto__: null,
|
|
12783
12793
|
addStrPerLength: Mi,
|
|
12784
12794
|
changeCase: ki,
|
|
@@ -12791,119 +12801,120 @@ const un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12791
12801
|
padLeft: Oi,
|
|
12792
12802
|
padRight: Ii,
|
|
12793
12803
|
removeHtmltag: Di,
|
|
12804
|
+
toThousands: Ni,
|
|
12794
12805
|
trim: Li
|
|
12795
12806
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12796
|
-
function
|
|
12807
|
+
function ji(e, r) {
|
|
12797
12808
|
for (let n = 0; n < r.length; n++) {
|
|
12798
|
-
const
|
|
12809
|
+
const c = r[n], p = e.indexOf(c + "=");
|
|
12799
12810
|
if (p !== -1) {
|
|
12800
12811
|
const d = e.indexOf("=", p), o = e.indexOf("&", p), w = e.indexOf("#", p);
|
|
12801
12812
|
let g = "";
|
|
12802
12813
|
if (o !== -1) {
|
|
12803
12814
|
const s = o - d;
|
|
12804
|
-
g = new RegExp(
|
|
12815
|
+
g = new RegExp(c + "=.{" + s + "}"), e = e.replace(g, "");
|
|
12805
12816
|
} else if (w !== -1) {
|
|
12806
12817
|
const s = w - d - 1;
|
|
12807
|
-
g = new RegExp("&?" +
|
|
12818
|
+
g = new RegExp("&?" + c + "=.{" + s + "}"), e = e.replace(g, "");
|
|
12808
12819
|
} else
|
|
12809
|
-
g = new RegExp("&?" +
|
|
12820
|
+
g = new RegExp("&?" + c + "=.+"), e = e.replace(g, "");
|
|
12810
12821
|
}
|
|
12811
12822
|
}
|
|
12812
12823
|
return e.indexOf("=") === -1 && (e = e.replace(/\?/, "")), e;
|
|
12813
12824
|
}
|
|
12814
|
-
function
|
|
12825
|
+
function qi(e) {
|
|
12815
12826
|
const r = /[?&][^?&]+=[^?&]+/g, a = e.match(r);
|
|
12816
12827
|
return a === null ? e : e.replace(a.join(""), "");
|
|
12817
12828
|
}
|
|
12818
|
-
function
|
|
12829
|
+
function zi(e) {
|
|
12819
12830
|
return new URLSearchParams(location.search).get(e);
|
|
12820
12831
|
}
|
|
12821
|
-
function
|
|
12832
|
+
function Vi(e) {
|
|
12822
12833
|
const r = e.split("?")[1];
|
|
12823
12834
|
return r ? JSON.parse(
|
|
12824
12835
|
'{"' + decodeURIComponent(r).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"').replace(/\+/g, " ") + '"}'
|
|
12825
12836
|
) : {};
|
|
12826
12837
|
}
|
|
12827
12838
|
function ut(e) {
|
|
12828
|
-
const r = e.split(";base64,"), a = r[0].split(":")[1], n = window.atob(r[1]),
|
|
12829
|
-
for (let d = 0; d <
|
|
12839
|
+
const r = e.split(";base64,"), a = r[0].split(":")[1], n = window.atob(r[1]), c = n.length, p = new Uint8Array(c);
|
|
12840
|
+
for (let d = 0; d < c; ++d)
|
|
12830
12841
|
p[d] = n.charCodeAt(d);
|
|
12831
12842
|
return new Blob([p], { type: a });
|
|
12832
12843
|
}
|
|
12833
|
-
function
|
|
12844
|
+
function Hi(e, r) {
|
|
12834
12845
|
const a = document.createElement("a"), n = ut(r);
|
|
12835
12846
|
a.download = e, a.href = URL.createObjectURL(n), a.dispatchEvent(new MouseEvent("click", { bubbles: !0, cancelable: !0, view: window }));
|
|
12836
12847
|
}
|
|
12837
|
-
function
|
|
12838
|
-
const n = new Blob([a], { type: r }),
|
|
12839
|
-
p.href =
|
|
12848
|
+
function $i(e, r, a) {
|
|
12849
|
+
const n = new Blob([a], { type: r }), c = URL.createObjectURL(n), p = document.createElement("a");
|
|
12850
|
+
p.href = c, p.download = e, p.click(), window.URL.revokeObjectURL(c);
|
|
12840
12851
|
}
|
|
12841
|
-
function
|
|
12852
|
+
function Wi(e) {
|
|
12842
12853
|
const r = navigator.userAgent.toLowerCase().indexOf("chrome") > -1, a = navigator.userAgent.toLowerCase().indexOf("safari") > -1;
|
|
12843
12854
|
if (r || a) {
|
|
12844
12855
|
const n = document.createElement("a");
|
|
12845
12856
|
if (n.href = e, n.download !== void 0) {
|
|
12846
|
-
const
|
|
12847
|
-
n.download =
|
|
12857
|
+
const c = e.substring(e.lastIndexOf("/") + 1, e.length);
|
|
12858
|
+
n.download = c;
|
|
12848
12859
|
}
|
|
12849
12860
|
if (document.createEvent) {
|
|
12850
|
-
const
|
|
12851
|
-
return
|
|
12861
|
+
const c = document.createEvent("MouseEvents");
|
|
12862
|
+
return c.initEvent("click", !0, !0), n.dispatchEvent(c), !0;
|
|
12852
12863
|
}
|
|
12853
12864
|
}
|
|
12854
12865
|
return e.indexOf("?") === -1 && (e += "?download"), window.open(e, "_self"), !0;
|
|
12855
12866
|
}
|
|
12856
|
-
function
|
|
12867
|
+
function Gi(e, r) {
|
|
12857
12868
|
const a = document.createElement("a");
|
|
12858
12869
|
a.style.display = "none", a.href = r, a.download = e, a.click();
|
|
12859
12870
|
}
|
|
12860
|
-
function
|
|
12871
|
+
function Yi(e, r) {
|
|
12861
12872
|
fetch(r).then((a) => {
|
|
12862
12873
|
a.blob().then((n) => {
|
|
12863
|
-
const
|
|
12864
|
-
p.href =
|
|
12874
|
+
const c = window.URL.createObjectURL(n), p = document.createElement("a");
|
|
12875
|
+
p.href = c, p.download = e, p.click(), window.URL.revokeObjectURL(c);
|
|
12865
12876
|
});
|
|
12866
12877
|
});
|
|
12867
12878
|
}
|
|
12868
|
-
function
|
|
12879
|
+
function Zi(e) {
|
|
12869
12880
|
const r = document.createElement("script");
|
|
12870
12881
|
r.type = "text/javascript", r.async = !0, r.src = e;
|
|
12871
12882
|
const a = document.getElementsByTagName("script")[0];
|
|
12872
12883
|
a.parentNode.insertBefore(r, a);
|
|
12873
12884
|
}
|
|
12874
|
-
function
|
|
12885
|
+
function Xi(e) {
|
|
12875
12886
|
let r = 0;
|
|
12876
12887
|
return e.length < 6 || (/[0-9]/.test(e) && r++, /[a-z]/.test(e) && r++, /[A-Z]/.test(e) && r++, /[.|-|_]/.test(e) && r++), r;
|
|
12877
12888
|
}
|
|
12878
|
-
const
|
|
12889
|
+
const ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12879
12890
|
__proto__: null,
|
|
12880
12891
|
base64ToBlob: ut,
|
|
12881
|
-
checkPwd:
|
|
12882
|
-
downloadBase64Image:
|
|
12883
|
-
downloadFile:
|
|
12884
|
-
downloadFileByUrl:
|
|
12885
|
-
downloadFileByUrlCustomName:
|
|
12886
|
-
fetchFileByUrlCustomName:
|
|
12887
|
-
getParams:
|
|
12888
|
-
injectScript:
|
|
12889
|
-
removeQueryString:
|
|
12890
|
-
ridUrlParam:
|
|
12891
|
-
urlparam2Obj:
|
|
12892
|
+
checkPwd: Xi,
|
|
12893
|
+
downloadBase64Image: Hi,
|
|
12894
|
+
downloadFile: $i,
|
|
12895
|
+
downloadFileByUrl: Wi,
|
|
12896
|
+
downloadFileByUrlCustomName: Gi,
|
|
12897
|
+
fetchFileByUrlCustomName: Yi,
|
|
12898
|
+
getParams: zi,
|
|
12899
|
+
injectScript: Zi,
|
|
12900
|
+
removeQueryString: qi,
|
|
12901
|
+
ridUrlParam: ji,
|
|
12902
|
+
urlparam2Obj: Vi
|
|
12892
12903
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12893
12904
|
export {
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12905
|
+
Ki as ArrayTools,
|
|
12906
|
+
Qi as ColorTools,
|
|
12907
|
+
en as DataTools,
|
|
12908
|
+
tn as ElementTools,
|
|
12909
|
+
rn as ExecTools,
|
|
12910
|
+
nn as InteractTools,
|
|
12911
|
+
an as JudgeTools,
|
|
12912
|
+
sn as MapTools,
|
|
12913
|
+
on as NumberTools,
|
|
12914
|
+
cn as ObjectTools,
|
|
12915
|
+
fn as PathTools,
|
|
12916
|
+
Ji as PeTools,
|
|
12917
|
+
un as StorageTools,
|
|
12918
|
+
hn as StringTools,
|
|
12919
|
+
ln as UtilTools
|
|
12909
12920
|
};
|