@gx-design-vue/pro-utils 0.2.0-beta.77 → 0.2.0-beta.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -2
- package/dist/pro-utils.js +342 -343
- package/dist/pro-utils.umd.cjs +2 -2
- package/dist/slots/index.d.ts +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/package.json +1 -1
- /package/dist/{scroll → utils}/raf.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { getValueFromObjectByKey } from './getValueFromObjectByKey';
|
|
|
4
4
|
import isServer from './isServer';
|
|
5
5
|
import { getScrollContainer, isInContainer, isScroll } from './scroll';
|
|
6
6
|
import getScroll from './scroll/getScroll';
|
|
7
|
-
import raf from './scroll/raf';
|
|
8
7
|
import scrollTo from './scroll/scrollTo';
|
|
9
8
|
import throttleByAnimationFrame from './scroll/throttleByAnimationFrame';
|
|
10
9
|
export * from './cloneDeep';
|
|
@@ -21,4 +20,4 @@ export * from './omitUndefinedAndEmptyArr';
|
|
|
21
20
|
export * from './slots';
|
|
22
21
|
export * from './typings';
|
|
23
22
|
export * from './utils';
|
|
24
|
-
export { Base64, classNames, getScroll, getScrollContainer, getValueFromObjectByKey, isInContainer, isScroll, isServer,
|
|
23
|
+
export { Base64, classNames, getScroll, getScrollContainer, getValueFromObjectByKey, isInContainer, isScroll, isServer, scrollTo, throttleByAnimationFrame };
|
package/dist/pro-utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.2.0-beta.
|
|
3
|
+
* Version: 0.2.0-beta.78
|
|
4
4
|
* Author: gx12358
|
|
5
5
|
* Copyright (C) 2024 gx12358
|
|
6
6
|
* License: MIT License
|
|
@@ -176,66 +176,20 @@ function Q(e, t) {
|
|
|
176
176
|
let r = 0;
|
|
177
177
|
return I(e) ? r = e[t ? "pageYOffset" : "pageXOffset"] : e instanceof Document ? r = e.documentElement[n] : e && (r = e[n]), e && !I(e) && typeof r != "number" && (r = (e.ownerDocument || e).documentElement?.[n]), r;
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
typeof window < "u" && "requestAnimationFrame" in window && (_ = (e) => window.requestAnimationFrame(e), W = (e) => window.cancelAnimationFrame(e));
|
|
181
|
-
let B = 0;
|
|
182
|
-
const N = /* @__PURE__ */ new Map();
|
|
183
|
-
function z(e) {
|
|
184
|
-
N.delete(e);
|
|
185
|
-
}
|
|
186
|
-
function E(e, t = 1) {
|
|
187
|
-
B += 1;
|
|
188
|
-
const n = B;
|
|
189
|
-
function r(i) {
|
|
190
|
-
if (i === 0)
|
|
191
|
-
z(n), e();
|
|
192
|
-
else {
|
|
193
|
-
const o = _(() => {
|
|
194
|
-
r(i - 1);
|
|
195
|
-
});
|
|
196
|
-
N.set(n, o);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return r(t), n;
|
|
200
|
-
}
|
|
201
|
-
E.cancel = (e) => {
|
|
202
|
-
const t = N.get(e);
|
|
203
|
-
return z(t), W(t);
|
|
204
|
-
};
|
|
205
|
-
function k(e, t, n, r) {
|
|
206
|
-
const i = n - t;
|
|
207
|
-
return e /= r / 2, e < 1 ? i / 2 * e * e * e + t : i / 2 * ((e -= 2) * e * e + 2) + t;
|
|
208
|
-
}
|
|
209
|
-
function Ce(e, t = {}) {
|
|
210
|
-
const { getContainer: n = () => window, callback: r, duration: i = 450 } = t, o = n(), f = Q(o, !0), s = Date.now(), c = () => {
|
|
211
|
-
const l = Date.now() - s, a = k(l > i ? i : l, f, e, i);
|
|
212
|
-
I(o) ? o.scrollTo(window.pageXOffset, a) : o instanceof HTMLDocument || o.constructor.name === "HTMLDocument" ? o.documentElement.scrollTop = a : o.scrollTop = a, l < i ? E(c) : typeof r == "function" && r();
|
|
213
|
-
};
|
|
214
|
-
o && E(c);
|
|
215
|
-
}
|
|
216
|
-
function Ie(e) {
|
|
217
|
-
let t;
|
|
218
|
-
const n = (i) => () => {
|
|
219
|
-
t = null, e(...i);
|
|
220
|
-
}, r = (...i) => {
|
|
221
|
-
t == null && (t = requestAnimationFrame(n(i)));
|
|
222
|
-
};
|
|
223
|
-
return r.cancel = () => cancelAnimationFrame(t), r;
|
|
224
|
-
}
|
|
225
|
-
function K(e) {
|
|
179
|
+
function k(e) {
|
|
226
180
|
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
227
181
|
}
|
|
228
|
-
function
|
|
182
|
+
function K(e) {
|
|
229
183
|
return e == null || typeof e != "object" && typeof e != "function";
|
|
230
184
|
}
|
|
231
|
-
function
|
|
185
|
+
function j(e) {
|
|
232
186
|
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
233
187
|
}
|
|
234
188
|
function v(e) {
|
|
235
189
|
return y(e);
|
|
236
190
|
}
|
|
237
191
|
function y(e, t = /* @__PURE__ */ new Map()) {
|
|
238
|
-
if (
|
|
192
|
+
if (K(e))
|
|
239
193
|
return e;
|
|
240
194
|
if (t.has(e))
|
|
241
195
|
return t.get(e);
|
|
@@ -268,7 +222,7 @@ function y(e, t = /* @__PURE__ */ new Map()) {
|
|
|
268
222
|
}
|
|
269
223
|
if (typeof Buffer < "u" && Buffer.isBuffer(e))
|
|
270
224
|
return e.subarray();
|
|
271
|
-
if (
|
|
225
|
+
if (j(e)) {
|
|
272
226
|
const n = new (Object.getPrototypeOf(e)).constructor(e.length);
|
|
273
227
|
t.set(e, n);
|
|
274
228
|
for (let r = 0; r < e.length; r++)
|
|
@@ -300,176 +254,12 @@ function y(e, t = /* @__PURE__ */ new Map()) {
|
|
|
300
254
|
return e;
|
|
301
255
|
}
|
|
302
256
|
function g(e, t, n) {
|
|
303
|
-
const r = [...Object.keys(t), ...
|
|
257
|
+
const r = [...Object.keys(t), ...k(t)];
|
|
304
258
|
for (let i = 0; i < r.length; i++) {
|
|
305
259
|
const o = r[i], f = Object.getOwnPropertyDescriptor(e, o);
|
|
306
260
|
(f == null || f.writable) && (e[o] = y(t[o], n));
|
|
307
261
|
}
|
|
308
262
|
}
|
|
309
|
-
const te = typeof process < "u" && process.versions != null && process.versions.node != null, Ee = () => process.env.NODE_ENV === "TEST" ? !0 : typeof window < "u" && typeof window.document < "u" && typeof window.matchMedia < "u" && !te;
|
|
310
|
-
function C(e, t, n, r) {
|
|
311
|
-
if (e === t)
|
|
312
|
-
return !0;
|
|
313
|
-
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
314
|
-
if (e.constructor !== t.constructor)
|
|
315
|
-
return !1;
|
|
316
|
-
let i, o, f;
|
|
317
|
-
if (Array.isArray(e)) {
|
|
318
|
-
if (i = e.length, i != t.length)
|
|
319
|
-
return !1;
|
|
320
|
-
for (o = i; o-- !== 0; )
|
|
321
|
-
if (!C(e[o], t[o], n, r))
|
|
322
|
-
return !1;
|
|
323
|
-
return !0;
|
|
324
|
-
}
|
|
325
|
-
if (e instanceof Map && t instanceof Map) {
|
|
326
|
-
if (e.size !== t.size)
|
|
327
|
-
return !1;
|
|
328
|
-
for (o of e.entries())
|
|
329
|
-
if (!t.has(o[0]))
|
|
330
|
-
return !1;
|
|
331
|
-
for (o of e.entries())
|
|
332
|
-
if (!C(o[1], t.get(o[0]), n, r))
|
|
333
|
-
return !1;
|
|
334
|
-
return !0;
|
|
335
|
-
}
|
|
336
|
-
if (e instanceof Set && t instanceof Set) {
|
|
337
|
-
if (e.size !== t.size)
|
|
338
|
-
return !1;
|
|
339
|
-
for (o of e.entries())
|
|
340
|
-
if (!t.has(o[0]))
|
|
341
|
-
return !1;
|
|
342
|
-
return !0;
|
|
343
|
-
}
|
|
344
|
-
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
345
|
-
if (i = e.length, i != t.length)
|
|
346
|
-
return !1;
|
|
347
|
-
for (o = i; o-- !== 0; )
|
|
348
|
-
if (e[o] !== t[o])
|
|
349
|
-
return !1;
|
|
350
|
-
return !0;
|
|
351
|
-
}
|
|
352
|
-
if (e.constructor === RegExp)
|
|
353
|
-
return e.source === t.source && e.flags === t.flags;
|
|
354
|
-
if (e.valueOf !== Object.prototype.valueOf && e.valueOf)
|
|
355
|
-
return e.valueOf() === t.valueOf();
|
|
356
|
-
if (e.toString !== Object.prototype.toString && e.toString)
|
|
357
|
-
return e.toString() === t.toString();
|
|
358
|
-
if (f = Object.keys(e), i = f.length, i !== Object.keys(t).length)
|
|
359
|
-
return !1;
|
|
360
|
-
for (o = i; o-- !== 0; )
|
|
361
|
-
if (!Object.prototype.hasOwnProperty.call(t, f[o]))
|
|
362
|
-
return !1;
|
|
363
|
-
for (o = i; o-- !== 0; ) {
|
|
364
|
-
const s = f[o];
|
|
365
|
-
if (!n?.includes(s) && !(s === "_owner" && e.$$typeof) && !C(e[s], t[s], n, r))
|
|
366
|
-
return r && console.log(s), !1;
|
|
367
|
-
}
|
|
368
|
-
return !0;
|
|
369
|
-
}
|
|
370
|
-
return e !== e && t !== t;
|
|
371
|
-
}
|
|
372
|
-
function Re(e) {
|
|
373
|
-
return /\w.(?:png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
374
|
-
}
|
|
375
|
-
const ne = (e) => e == null, Te = (e) => {
|
|
376
|
-
if (!e || !e.startsWith("http"))
|
|
377
|
-
return !1;
|
|
378
|
-
try {
|
|
379
|
-
return !!new URL(e);
|
|
380
|
-
} catch (t) {
|
|
381
|
-
return console.error("isUrl error", t), !1;
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
function P(e) {
|
|
385
|
-
if (!e || typeof e != "object")
|
|
386
|
-
return !1;
|
|
387
|
-
const t = Object.getPrototypeOf(e);
|
|
388
|
-
return t === null || t === Object.prototype || Object.getPrototypeOf(t) === null ? Object.prototype.toString.call(e) === "[object Object]" : !1;
|
|
389
|
-
}
|
|
390
|
-
const Ue = (...e) => {
|
|
391
|
-
const t = {}, n = e.length;
|
|
392
|
-
let r, i = 0;
|
|
393
|
-
for (; i < n; i += 1)
|
|
394
|
-
for (r in e[i])
|
|
395
|
-
Object.prototype.hasOwnProperty.call(e[i], r) && (typeof t[r] == "object" && typeof e[i][r] == "object" && t[r] !== void 0 && t[r] !== null && !Array.isArray(t[r]) && !Array.isArray(e[i][r]) ? t[r] = {
|
|
396
|
-
...t[r],
|
|
397
|
-
...e[i][r]
|
|
398
|
-
} : t[r] = e[i][r]);
|
|
399
|
-
return t;
|
|
400
|
-
};
|
|
401
|
-
function w(e, t, n) {
|
|
402
|
-
const r = m(n?.omitNil) ? n?.omitNil : !0, i = m(n?.omitEmpty) ? n?.omitEmpty : !0, o = Object.keys(t);
|
|
403
|
-
for (let f = 0; f < o.length; f++) {
|
|
404
|
-
const s = o[f], c = t[s], u = e[s];
|
|
405
|
-
Array.isArray(c) ? Array.isArray(u) ? c.length === 0 && !i ? e[s] = c : e[s] = w(u, c, n) : e[s] = w([], c, n) : P(c) ? P(u) ? Object.keys(c).length === 0 && !i ? e[s] = c : e[s] = w(u, c, n) : e[s] = w({}, c, n) : r ? (u === void 0 || !ne(c)) && (e[s] = c) : e[s] = c;
|
|
406
|
-
}
|
|
407
|
-
return e;
|
|
408
|
-
}
|
|
409
|
-
let F = 0;
|
|
410
|
-
const L = (e = 21) => {
|
|
411
|
-
if (typeof window > "u" || !window.crypto)
|
|
412
|
-
return (F += 1).toFixed(0);
|
|
413
|
-
let t = "";
|
|
414
|
-
const n = crypto.getRandomValues(new Uint8Array(e));
|
|
415
|
-
for (; e--; ) {
|
|
416
|
-
const r = 63 & n[e];
|
|
417
|
-
t += r < 36 ? r.toString(36) : r < 62 ? (r - 26).toString(36).toUpperCase() : r < 63 ? "_" : "-";
|
|
418
|
-
}
|
|
419
|
-
return t;
|
|
420
|
-
}, Ne = () => typeof window > "u" ? L() : window.crypto && window.crypto.randomUUID && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : L(), De = (e) => {
|
|
421
|
-
if (e && e !== !0)
|
|
422
|
-
return e;
|
|
423
|
-
}, Be = (e) => {
|
|
424
|
-
const t = {};
|
|
425
|
-
if (Object.keys(e || {}).forEach((n) => {
|
|
426
|
-
e[n] !== void 0 && (t[n] = e[n]);
|
|
427
|
-
}), !(Object.keys(t).length < 1))
|
|
428
|
-
return t;
|
|
429
|
-
}, Pe = (e) => {
|
|
430
|
-
const t = {};
|
|
431
|
-
return Object.keys(e || {}).forEach((n) => {
|
|
432
|
-
Array.isArray(e[n]) && e[n]?.length === 0 || e[n] !== void 0 && (t[n] = e[n]);
|
|
433
|
-
}), t;
|
|
434
|
-
}, re = (e) => e != null && e !== "";
|
|
435
|
-
function Fe(e) {
|
|
436
|
-
if (!(typeof e != "string" && !Array.isArray(e)))
|
|
437
|
-
return Array.isArray(e) ? e[e.length - 1] : e.split(":")?.slice(-1)[0];
|
|
438
|
-
}
|
|
439
|
-
function ie(e) {
|
|
440
|
-
return e && (e.type === H || e.type === $ && e.children.length === 0 || e.type === Text && e.children.trim() === "");
|
|
441
|
-
}
|
|
442
|
-
function Le(e, t) {
|
|
443
|
-
return R(typeof e[t] == "function" ? e[t]?.() : []);
|
|
444
|
-
}
|
|
445
|
-
function R(e = [], t = !0) {
|
|
446
|
-
const n = Array.isArray(e) ? e : [e], r = [];
|
|
447
|
-
return n.forEach((i) => {
|
|
448
|
-
Array.isArray(i) ? r.push(...R(i, t)) : i?.type === $ || i?.type === "template" ? r.push(...R(i.children, t)) : i && U(i) ? t && !ie(i) ? r.push(i) : t || r.push(i) : re(i) && r.push(i);
|
|
449
|
-
}), r;
|
|
450
|
-
}
|
|
451
|
-
function b({ vnode: e, defaultVNode: t }, ...n) {
|
|
452
|
-
return e === !1 ? t || null : typeof e == "function" ? e?.(...n) : e;
|
|
453
|
-
}
|
|
454
|
-
function oe(e, ...t) {
|
|
455
|
-
const { slots: n, key: r = "default", render: i, props: o, defaultChildren: f } = e;
|
|
456
|
-
let s;
|
|
457
|
-
const c = o[r], u = n?.[r], l = typeof f == "function" ? f?.() : f;
|
|
458
|
-
return c === !1 ? s = !1 : c === !0 ? s = u ?? l : h(c) && i ? U(c) ? s = c : s = u : s = c || u, s === !1 ? l || !1 : i ? b({ vnode: s, defaultVNode: l }, ...t) : s;
|
|
459
|
-
}
|
|
460
|
-
function se(e, ...t) {
|
|
461
|
-
const { slots: n, key: r = "default", props: i, defaultChildren: o } = e;
|
|
462
|
-
let f;
|
|
463
|
-
const s = i[r], c = n?.[r]?.(...t), u = typeof o == "function" ? o?.() : o;
|
|
464
|
-
return s === !1 ? f = !1 : s === !0 ? f = c ?? u : h(s) ? U(s) ? f = s : f = c : f = s || c, f === !1 ? u || null : b({ vnode: f, defaultVNode: u }, ...t);
|
|
465
|
-
}
|
|
466
|
-
function Me(e, ...t) {
|
|
467
|
-
const { slots: n, props: r, keys: i, render: o, defaultVNodes: f } = e, s = {};
|
|
468
|
-
return i.forEach((c, u) => {
|
|
469
|
-
const l = f ? f[u] : null, a = o ? se({ slots: n, props: r, key: c, defaultChildren: l }, ...t) : oe({ slots: n, props: r, key: c, render: !1, defaultChildren: l }, ...t);
|
|
470
|
-
(m(a) || a) && (s[c] = a);
|
|
471
|
-
}), s;
|
|
472
|
-
}
|
|
473
263
|
const x = {
|
|
474
264
|
videoAllowType: [
|
|
475
265
|
"mp4",
|
|
@@ -557,15 +347,47 @@ const x = {
|
|
|
557
347
|
"pcm",
|
|
558
348
|
"ape"
|
|
559
349
|
]
|
|
350
|
+
}, ee = (e) => e != null && e !== "";
|
|
351
|
+
let _ = (e) => setTimeout(e, 16), W = (e) => clearTimeout(e);
|
|
352
|
+
typeof window < "u" && "requestAnimationFrame" in window && (_ = (e) => window.requestAnimationFrame(e), W = (e) => window.cancelAnimationFrame(e));
|
|
353
|
+
let B = 0;
|
|
354
|
+
const N = /* @__PURE__ */ new Map();
|
|
355
|
+
function z(e) {
|
|
356
|
+
N.delete(e);
|
|
357
|
+
}
|
|
358
|
+
function E(e, t = 1) {
|
|
359
|
+
B += 1;
|
|
360
|
+
const n = B;
|
|
361
|
+
function r(i) {
|
|
362
|
+
if (i === 0)
|
|
363
|
+
z(n), e();
|
|
364
|
+
else {
|
|
365
|
+
const o = _(() => {
|
|
366
|
+
r(i - 1);
|
|
367
|
+
});
|
|
368
|
+
N.set(n, o);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return r(t), n;
|
|
372
|
+
}
|
|
373
|
+
E.cancel = (e) => {
|
|
374
|
+
const t = N.get(e);
|
|
375
|
+
return z(t), W(t);
|
|
560
376
|
};
|
|
561
|
-
function
|
|
377
|
+
function Ce(e) {
|
|
562
378
|
return e != null;
|
|
563
379
|
}
|
|
564
|
-
|
|
380
|
+
function P(e) {
|
|
381
|
+
if (!e || typeof e != "object")
|
|
382
|
+
return !1;
|
|
383
|
+
const t = Object.getPrototypeOf(e);
|
|
384
|
+
return t === null || t === Object.prototype || Object.getPrototypeOf(t) === null ? Object.prototype.toString.call(e) === "[object Object]" : !1;
|
|
385
|
+
}
|
|
386
|
+
const Ie = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: r }) => {
|
|
565
387
|
const i = r || (n ? "gx-pro" : "gx");
|
|
566
388
|
return t || (e ? `${i}-${e}` : i);
|
|
567
|
-
},
|
|
568
|
-
function
|
|
389
|
+
}, Ee = (e, t) => e ? d(e) ? e.join("-") : e.toString() : `${t || 0}`;
|
|
390
|
+
function Re(e, { align: t, showIndex: n }) {
|
|
569
391
|
const r = v(e);
|
|
570
392
|
if (n && e.length && e.every((i) => i.dataIndex !== "sortIndex")) {
|
|
571
393
|
const i = e[0];
|
|
@@ -574,7 +396,7 @@ function We(e, { align: t, showIndex: n }) {
|
|
|
574
396
|
align: t,
|
|
575
397
|
fixed: i.fixed,
|
|
576
398
|
width: 60,
|
|
577
|
-
uuid:
|
|
399
|
+
uuid: re().uuid(15),
|
|
578
400
|
dataIndex: "sortIndex",
|
|
579
401
|
key: "sortIndex"
|
|
580
402
|
});
|
|
@@ -582,13 +404,13 @@ function We(e, { align: t, showIndex: n }) {
|
|
|
582
404
|
r.filter((i) => i.dataIndex !== "sortIndex");
|
|
583
405
|
return r;
|
|
584
406
|
}
|
|
585
|
-
function
|
|
407
|
+
function Te(e, ...t) {
|
|
586
408
|
return typeof e == "function" ? e(...t) : e;
|
|
587
409
|
}
|
|
588
|
-
function
|
|
410
|
+
function Ue(e) {
|
|
589
411
|
return JSON.parse(JSON.stringify(e));
|
|
590
412
|
}
|
|
591
|
-
function
|
|
413
|
+
function Ne(e, t) {
|
|
592
414
|
if (h(e)) {
|
|
593
415
|
const { pageSize: n = 10, total: r = 0 } = e;
|
|
594
416
|
let { current: i = 1 } = e;
|
|
@@ -596,7 +418,7 @@ function He(e, t) {
|
|
|
596
418
|
}
|
|
597
419
|
return 1;
|
|
598
420
|
}
|
|
599
|
-
function
|
|
421
|
+
function De(e = [], t, n = "children") {
|
|
600
422
|
function r(i, o) {
|
|
601
423
|
return o.map((f, s) => {
|
|
602
424
|
const c = `${i}-${s + 1}`;
|
|
@@ -608,7 +430,7 @@ function qe(e = [], t, n = "children") {
|
|
|
608
430
|
return i[n] && (i[n] = r(`${c}`, i[n])), i.sortIndex = c, i;
|
|
609
431
|
});
|
|
610
432
|
}
|
|
611
|
-
function
|
|
433
|
+
function Be(e, t) {
|
|
612
434
|
return d(e) ? e?.filter((n, r) => {
|
|
613
435
|
if (p(t))
|
|
614
436
|
return r <= t - 1;
|
|
@@ -622,28 +444,28 @@ function Je(e, t) {
|
|
|
622
444
|
return !0;
|
|
623
445
|
}) : [];
|
|
624
446
|
}
|
|
625
|
-
function
|
|
447
|
+
function te(e, t, n, r = 0) {
|
|
626
448
|
const i = p(r) && (r === 0 || r === 1) ? r : 0, o = e[n], f = t[n];
|
|
627
449
|
let s = 0;
|
|
628
450
|
return o < f ? s = i === 0 ? -1 : 0 : o > f && (s = i === 0 ? 0 : -1), s;
|
|
629
451
|
}
|
|
630
|
-
function
|
|
452
|
+
function ne(e, t, n, r = 0) {
|
|
631
453
|
const i = p(r) && (r === 0 || r === 1) ? r : 0, o = new Date(e[n]), f = new Date(t[n]);
|
|
632
454
|
let s = 0;
|
|
633
455
|
return o < f ? s = i === 0 ? -1 : 0 : o > f && (s = i === 0 ? 0 : -1), s;
|
|
634
456
|
}
|
|
635
|
-
function
|
|
636
|
-
return e.sort((r, i) =>
|
|
457
|
+
function Pe(e, t, n = 0) {
|
|
458
|
+
return e.sort((r, i) => te(r, i, t, n));
|
|
637
459
|
}
|
|
638
|
-
function
|
|
639
|
-
return e.sort((r, i) =>
|
|
460
|
+
function Fe(e, t, n = 0) {
|
|
461
|
+
return e.sort((r, i) => ne(r, i, t, n));
|
|
640
462
|
}
|
|
641
|
-
function
|
|
463
|
+
function Le(e) {
|
|
642
464
|
let t = v(e);
|
|
643
465
|
const n = new Set(t);
|
|
644
466
|
return t = Array.from(n), t;
|
|
645
467
|
}
|
|
646
|
-
function
|
|
468
|
+
function Me(e, t) {
|
|
647
469
|
const n = ["null", "undefined"];
|
|
648
470
|
let r = !0;
|
|
649
471
|
return e === 0 ? r = !0 : n.includes(e) ? r = !1 : e || (r = !1), r ? {
|
|
@@ -654,7 +476,7 @@ function Ge(e, t) {
|
|
|
654
476
|
success: r
|
|
655
477
|
};
|
|
656
478
|
}
|
|
657
|
-
function
|
|
479
|
+
function Ve(e) {
|
|
658
480
|
let t = "";
|
|
659
481
|
if (e > -1) {
|
|
660
482
|
const n = Math.floor(e / 3600), r = Math.floor(e / 60) % 60, i = Number.parseInt(String(e % 60));
|
|
@@ -662,7 +484,7 @@ function Qe(e) {
|
|
|
662
484
|
}
|
|
663
485
|
return t.split(":")[0] === "00" ? `${t.split(":")[1]}:${t.split(":")[2]}` : t;
|
|
664
486
|
}
|
|
665
|
-
function
|
|
487
|
+
function re() {
|
|
666
488
|
const e = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");
|
|
667
489
|
return {
|
|
668
490
|
uuid(t, n) {
|
|
@@ -694,22 +516,22 @@ function ue() {
|
|
|
694
516
|
}
|
|
695
517
|
};
|
|
696
518
|
}
|
|
697
|
-
function
|
|
519
|
+
function ie(e, t) {
|
|
698
520
|
if (!Array.isArray(e) || e.length === 0)
|
|
699
521
|
return 0;
|
|
700
522
|
const n = t || "children";
|
|
701
523
|
return Math.max(...e.map((r) => {
|
|
702
524
|
const i = r[n];
|
|
703
|
-
return 1 + (i ?
|
|
525
|
+
return 1 + (i ? ie(i, n) : 0);
|
|
704
526
|
}));
|
|
705
527
|
}
|
|
706
|
-
function
|
|
528
|
+
function oe(e, t = "children") {
|
|
707
529
|
let n = [];
|
|
708
530
|
return e.forEach((r) => {
|
|
709
|
-
n.push(r), d(r[t]) && r[t].length > 0 && (n = n.concat(
|
|
531
|
+
n.push(r), d(r[t]) && r[t].length > 0 && (n = n.concat(oe(r[t], t)));
|
|
710
532
|
}), n;
|
|
711
533
|
}
|
|
712
|
-
function
|
|
534
|
+
function $e(e, t) {
|
|
713
535
|
if (!e || !d(e) || e?.length === 0)
|
|
714
536
|
return [];
|
|
715
537
|
const { id: n = "id", parentId: r = "parentId", children: i = "children", emptyChildren: o = !0 } = t || {}, f = t?.rootId ?? 0, s = v(e);
|
|
@@ -718,13 +540,13 @@ function ke(e, t) {
|
|
|
718
540
|
return u.length > 0 ? c[i] = u : o && (c[i] = []), f === !1 ? !0 : c[r] === f;
|
|
719
541
|
});
|
|
720
542
|
}
|
|
721
|
-
function
|
|
543
|
+
function se(e, t) {
|
|
722
544
|
return e.map((n) => {
|
|
723
545
|
const r = { ...n };
|
|
724
|
-
return r.children && (r.children =
|
|
546
|
+
return r.children && (r.children = se(r.children, t)), t(r) || r.children && r.children.length > 0 ? r : null;
|
|
725
547
|
}).filter(Boolean);
|
|
726
548
|
}
|
|
727
|
-
function
|
|
549
|
+
function _e(e, t, n) {
|
|
728
550
|
const { value: r, children: i } = n || {
|
|
729
551
|
value: "value",
|
|
730
552
|
children: "children"
|
|
@@ -745,32 +567,32 @@ function Ke(e, t, n) {
|
|
|
745
567
|
break;
|
|
746
568
|
return o;
|
|
747
569
|
}
|
|
748
|
-
function
|
|
570
|
+
function We(e) {
|
|
749
571
|
return e && d(e) ? e[e.length - 1] : null;
|
|
750
572
|
}
|
|
751
|
-
function
|
|
573
|
+
function fe(e, t, n) {
|
|
752
574
|
const r = n?.value || "id", i = n?.children || "children";
|
|
753
575
|
for (const o of e) {
|
|
754
576
|
if (o[r] === t)
|
|
755
577
|
return o;
|
|
756
578
|
const f = o[i];
|
|
757
579
|
if (f) {
|
|
758
|
-
const s =
|
|
580
|
+
const s = fe(f, t, n);
|
|
759
581
|
if (s)
|
|
760
582
|
return s;
|
|
761
583
|
}
|
|
762
584
|
}
|
|
763
585
|
}
|
|
764
|
-
function
|
|
586
|
+
function ze(e) {
|
|
765
587
|
return URL.createObjectURL(e);
|
|
766
588
|
}
|
|
767
|
-
function
|
|
589
|
+
function be(e) {
|
|
768
590
|
return new Promise((t, n) => {
|
|
769
591
|
const r = new FileReader();
|
|
770
592
|
r.readAsDataURL(e), r.onload = () => t(r.result), r.onerror = (i) => n(i);
|
|
771
593
|
});
|
|
772
594
|
}
|
|
773
|
-
function
|
|
595
|
+
function He(e) {
|
|
774
596
|
const t = e.split(","), n = t[0].match(/:(.*?);/)[1], r = atob(t[1]);
|
|
775
597
|
let i = r.length;
|
|
776
598
|
const o = new Uint8Array(i);
|
|
@@ -778,7 +600,7 @@ function nt(e) {
|
|
|
778
600
|
o[i] = r.charCodeAt(i);
|
|
779
601
|
return new Blob([o], { type: n });
|
|
780
602
|
}
|
|
781
|
-
function
|
|
603
|
+
function qe(e, t) {
|
|
782
604
|
const n = e.split(","), r = n[0].match(/:(.*?);/)[1], i = atob(n[1]);
|
|
783
605
|
let o = i.length;
|
|
784
606
|
const f = new Uint8Array(o);
|
|
@@ -786,30 +608,30 @@ function rt(e, t) {
|
|
|
786
608
|
f[o] = i.charCodeAt(o);
|
|
787
609
|
return new File([f], t, { type: r });
|
|
788
610
|
}
|
|
789
|
-
function
|
|
611
|
+
function Je(e, t, n) {
|
|
790
612
|
return new window.File([e], t, { type: n });
|
|
791
613
|
}
|
|
792
|
-
function
|
|
614
|
+
function ce(e) {
|
|
793
615
|
if (!e || typeof e != "string")
|
|
794
616
|
return "";
|
|
795
617
|
const t = e.indexOf("?");
|
|
796
618
|
return t > 0 ? `${e.substring(0, t)}` : e;
|
|
797
619
|
}
|
|
798
|
-
function
|
|
620
|
+
function R(e) {
|
|
799
621
|
if (!e || typeof e != "string")
|
|
800
622
|
return "";
|
|
801
|
-
const t =
|
|
623
|
+
const t = ce(e), n = t.lastIndexOf(".");
|
|
802
624
|
return n > 0 && `${t?.substring?.(n)?.split("?")?.[0]}`?.split(".")?.[1] || "";
|
|
803
625
|
}
|
|
804
|
-
function
|
|
626
|
+
function w(e, t) {
|
|
805
627
|
if (t)
|
|
806
628
|
return t;
|
|
807
629
|
if (!e || e === "data:")
|
|
808
630
|
return "4";
|
|
809
631
|
let n = "4";
|
|
810
|
-
return D(e) ? e.includes("data:image/") ? n = "png" : e.includes("data:video/") ? n = "mp4" : e.includes("data:audio/") && (n = "mp3") : e instanceof Blob ? (e = String(e), e.includes("image") ? n = "png" : e.includes("video") ? n = "mp4" : e.includes("audio") && (n = "mp3")) : n =
|
|
632
|
+
return D(e) ? e.includes("data:image/") ? n = "png" : e.includes("data:video/") ? n = "mp4" : e.includes("data:audio/") && (n = "mp3") : e instanceof Blob ? (e = String(e), e.includes("image") ? n = "png" : e.includes("video") ? n = "mp4" : e.includes("audio") && (n = "mp3")) : n = R(e).toLowerCase(), x.imageType.includes(n) ? "1" : x.videoType.includes(n) ? "3" : x.audioType.includes(n) ? "2" : "4";
|
|
811
633
|
}
|
|
812
|
-
function
|
|
634
|
+
function ue(e) {
|
|
813
635
|
const { url: t = "", fileType: n = "1" } = e || {};
|
|
814
636
|
let r = "", i = { play: !1, height: 0, size: 0, width: 0, duration: 0 };
|
|
815
637
|
function o() {
|
|
@@ -830,19 +652,19 @@ function ye(e) {
|
|
|
830
652
|
};
|
|
831
653
|
});
|
|
832
654
|
}
|
|
833
|
-
async function
|
|
655
|
+
async function Ze(e) {
|
|
834
656
|
const { url: t = "", currentTime: n, videoSuffix: r = "", videoAllowPlay: i = !1 } = e;
|
|
835
657
|
let o = "", f = r, s = "1", c;
|
|
836
|
-
return t instanceof File ? (o = URL.createObjectURL(t), f =
|
|
658
|
+
return t instanceof File ? (o = URL.createObjectURL(t), f = R(t.name), s = w(t.name)) : t instanceof Blob ? (o = URL.createObjectURL(t), s = w(t)) : D(t) ? (o = t, s = w(t)) : (t.includes("https") || t.includes("http")) && (o = t, f = R(t), s = w(t)), (f ? x.videoAllowType.includes(f.toLowerCase()) : !1) ? i ? F(o, n) : (c = await ue({
|
|
837
659
|
url: o,
|
|
838
660
|
fileType: s
|
|
839
|
-
}), c.play ?
|
|
661
|
+
}), c.play ? F(o, n) : new Promise((l) => {
|
|
840
662
|
l("");
|
|
841
663
|
})) : new Promise((l) => {
|
|
842
664
|
l("");
|
|
843
665
|
});
|
|
844
666
|
}
|
|
845
|
-
async function
|
|
667
|
+
async function F(e, t = 0) {
|
|
846
668
|
return new Promise((n) => {
|
|
847
669
|
let r = document.createElement("video");
|
|
848
670
|
r && (r.controls = !0, r.muted = !0, r.setAttribute("src", e), r.setAttribute("muted", String(!0)), r.setAttribute("crossorigin", "anonymous"), r.setAttribute("autoplay", String(!0)), r.addEventListener("loadeddata", async () => {
|
|
@@ -864,22 +686,22 @@ function D(e = "") {
|
|
|
864
686
|
"data:audio/"
|
|
865
687
|
].find((n) => e.includes(n)));
|
|
866
688
|
}
|
|
867
|
-
function
|
|
689
|
+
function Xe(e) {
|
|
868
690
|
return typeof e == "string" && /^data:(?:image|video|audio)\/[A-Za-z]+;base64,[A-Za-z0-9+/=]+$/.test(e);
|
|
869
691
|
}
|
|
870
|
-
function
|
|
692
|
+
function Ye(e, t, n, r = !1) {
|
|
871
693
|
e && t && n && e.addEventListener(t, n, r);
|
|
872
694
|
}
|
|
873
|
-
function
|
|
695
|
+
function Ge(e, t, n, r = !1) {
|
|
874
696
|
e && t && n && e.removeEventListener(t, n, r);
|
|
875
697
|
}
|
|
876
|
-
function
|
|
698
|
+
function Qe() {
|
|
877
699
|
return /windows|win32/i.test(navigator.userAgent);
|
|
878
700
|
}
|
|
879
|
-
function
|
|
701
|
+
function ke(e) {
|
|
880
702
|
return m(e) ? e : !!e;
|
|
881
703
|
}
|
|
882
|
-
function
|
|
704
|
+
function L(e, t) {
|
|
883
705
|
const n = `^\\d+(?:\\.\\d{0,${e}})?`, r = new RegExp(n), i = t.toString().match(r);
|
|
884
706
|
if (i) {
|
|
885
707
|
const o = i[0];
|
|
@@ -892,7 +714,7 @@ function V(e, t) {
|
|
|
892
714
|
}
|
|
893
715
|
return t.toString();
|
|
894
716
|
}
|
|
895
|
-
function
|
|
717
|
+
function Ke(e, t) {
|
|
896
718
|
const { toChinese: n = !1, fixed: r = 2, min: i = 1e4 } = t || {}, o = p(i) ? i : 1e4, f = p(r) ? r : 2, s = n ? e < o ? "" : e < 1e8 ? "万" : "亿" : e < o ? "" : e < 1e8 ? "w" : "亿";
|
|
897
719
|
if (!p(e))
|
|
898
720
|
return {
|
|
@@ -913,17 +735,17 @@ function at(e, t) {
|
|
|
913
735
|
};
|
|
914
736
|
}
|
|
915
737
|
let c;
|
|
916
|
-
return e < 1e8 ? (c =
|
|
738
|
+
return e < 1e8 ? (c = L(f, e / 1e4), {
|
|
917
739
|
str: c + s,
|
|
918
740
|
number: c,
|
|
919
741
|
unit: s
|
|
920
|
-
}) : (c =
|
|
742
|
+
}) : (c = L(f, e / 1e8), {
|
|
921
743
|
str: c + s,
|
|
922
744
|
number: c,
|
|
923
745
|
unit: s
|
|
924
746
|
});
|
|
925
747
|
}
|
|
926
|
-
function
|
|
748
|
+
function je(e, t) {
|
|
927
749
|
let n = 0;
|
|
928
750
|
const r = m(t.removeAfter) ? t.removeAfter : !0, i = t.id || "hiddenElement", o = {
|
|
929
751
|
opacity: 0,
|
|
@@ -942,7 +764,7 @@ function dt(e, t) {
|
|
|
942
764
|
const s = document.createElement(t.createName || "span");
|
|
943
765
|
return s.innerHTML = e, (t.cssObject || h(t.cssObject)) && Object.assign(s.style, t.cssObject), f.append(s), n = s.getBoundingClientRect()[t.type || "width"], r && f.removeChild(s), n;
|
|
944
766
|
}
|
|
945
|
-
function
|
|
767
|
+
function et(e) {
|
|
946
768
|
e = p(e) && !Number.isNaN(e) ? e : 0;
|
|
947
769
|
const t = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"], n = ["", "十", "百", "千", "万"];
|
|
948
770
|
e = Number.parseInt(`${e}`);
|
|
@@ -956,104 +778,281 @@ function pt(e) {
|
|
|
956
778
|
let o = e % 1e4;
|
|
957
779
|
return o.toString().length < 4 && (o = "0" + o), i ? r(i) + "万" + r(o) : r(e);
|
|
958
780
|
}
|
|
959
|
-
function
|
|
781
|
+
function tt(e, t) {
|
|
960
782
|
Object.keys(e).forEach((n) => {
|
|
961
783
|
t(n, e[n]);
|
|
962
784
|
});
|
|
963
785
|
}
|
|
786
|
+
function le(e, t, n, r) {
|
|
787
|
+
const i = n - t;
|
|
788
|
+
return e /= r / 2, e < 1 ? i / 2 * e * e * e + t : i / 2 * ((e -= 2) * e * e + 2) + t;
|
|
789
|
+
}
|
|
790
|
+
function nt(e, t = {}) {
|
|
791
|
+
const { getContainer: n = () => window, callback: r, duration: i = 450 } = t, o = n(), f = Q(o, !0), s = Date.now(), c = () => {
|
|
792
|
+
const l = Date.now() - s, a = le(l > i ? i : l, f, e, i);
|
|
793
|
+
I(o) ? o.scrollTo(window.pageXOffset, a) : o instanceof HTMLDocument || o.constructor.name === "HTMLDocument" ? o.documentElement.scrollTop = a : o.scrollTop = a, l < i ? E(c) : typeof r == "function" && r();
|
|
794
|
+
};
|
|
795
|
+
o && E(c);
|
|
796
|
+
}
|
|
797
|
+
function rt(e) {
|
|
798
|
+
let t;
|
|
799
|
+
const n = (i) => () => {
|
|
800
|
+
t = null, e(...i);
|
|
801
|
+
}, r = (...i) => {
|
|
802
|
+
t == null && (t = requestAnimationFrame(n(i)));
|
|
803
|
+
};
|
|
804
|
+
return r.cancel = () => cancelAnimationFrame(t), r;
|
|
805
|
+
}
|
|
806
|
+
const ae = typeof process < "u" && process.versions != null && process.versions.node != null, it = () => process.env.NODE_ENV === "TEST" ? !0 : typeof window < "u" && typeof window.document < "u" && typeof window.matchMedia < "u" && !ae;
|
|
807
|
+
function C(e, t, n, r) {
|
|
808
|
+
if (e === t)
|
|
809
|
+
return !0;
|
|
810
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
811
|
+
if (e.constructor !== t.constructor)
|
|
812
|
+
return !1;
|
|
813
|
+
let i, o, f;
|
|
814
|
+
if (Array.isArray(e)) {
|
|
815
|
+
if (i = e.length, i != t.length)
|
|
816
|
+
return !1;
|
|
817
|
+
for (o = i; o-- !== 0; )
|
|
818
|
+
if (!C(e[o], t[o], n, r))
|
|
819
|
+
return !1;
|
|
820
|
+
return !0;
|
|
821
|
+
}
|
|
822
|
+
if (e instanceof Map && t instanceof Map) {
|
|
823
|
+
if (e.size !== t.size)
|
|
824
|
+
return !1;
|
|
825
|
+
for (o of e.entries())
|
|
826
|
+
if (!t.has(o[0]))
|
|
827
|
+
return !1;
|
|
828
|
+
for (o of e.entries())
|
|
829
|
+
if (!C(o[1], t.get(o[0]), n, r))
|
|
830
|
+
return !1;
|
|
831
|
+
return !0;
|
|
832
|
+
}
|
|
833
|
+
if (e instanceof Set && t instanceof Set) {
|
|
834
|
+
if (e.size !== t.size)
|
|
835
|
+
return !1;
|
|
836
|
+
for (o of e.entries())
|
|
837
|
+
if (!t.has(o[0]))
|
|
838
|
+
return !1;
|
|
839
|
+
return !0;
|
|
840
|
+
}
|
|
841
|
+
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
842
|
+
if (i = e.length, i != t.length)
|
|
843
|
+
return !1;
|
|
844
|
+
for (o = i; o-- !== 0; )
|
|
845
|
+
if (e[o] !== t[o])
|
|
846
|
+
return !1;
|
|
847
|
+
return !0;
|
|
848
|
+
}
|
|
849
|
+
if (e.constructor === RegExp)
|
|
850
|
+
return e.source === t.source && e.flags === t.flags;
|
|
851
|
+
if (e.valueOf !== Object.prototype.valueOf && e.valueOf)
|
|
852
|
+
return e.valueOf() === t.valueOf();
|
|
853
|
+
if (e.toString !== Object.prototype.toString && e.toString)
|
|
854
|
+
return e.toString() === t.toString();
|
|
855
|
+
if (f = Object.keys(e), i = f.length, i !== Object.keys(t).length)
|
|
856
|
+
return !1;
|
|
857
|
+
for (o = i; o-- !== 0; )
|
|
858
|
+
if (!Object.prototype.hasOwnProperty.call(t, f[o]))
|
|
859
|
+
return !1;
|
|
860
|
+
for (o = i; o-- !== 0; ) {
|
|
861
|
+
const s = f[o];
|
|
862
|
+
if (!n?.includes(s) && !(s === "_owner" && e.$$typeof) && !C(e[s], t[s], n, r))
|
|
863
|
+
return r && console.log(s), !1;
|
|
864
|
+
}
|
|
865
|
+
return !0;
|
|
866
|
+
}
|
|
867
|
+
return e !== e && t !== t;
|
|
868
|
+
}
|
|
869
|
+
function ot(e) {
|
|
870
|
+
return /\w.(?:png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
871
|
+
}
|
|
872
|
+
const de = (e) => e == null, st = (e) => {
|
|
873
|
+
if (!e || !e.startsWith("http"))
|
|
874
|
+
return !1;
|
|
875
|
+
try {
|
|
876
|
+
return !!new URL(e);
|
|
877
|
+
} catch (t) {
|
|
878
|
+
return console.error("isUrl error", t), !1;
|
|
879
|
+
}
|
|
880
|
+
}, ft = (...e) => {
|
|
881
|
+
const t = {}, n = e.length;
|
|
882
|
+
let r, i = 0;
|
|
883
|
+
for (; i < n; i += 1)
|
|
884
|
+
for (r in e[i])
|
|
885
|
+
Object.prototype.hasOwnProperty.call(e[i], r) && (typeof t[r] == "object" && typeof e[i][r] == "object" && t[r] !== void 0 && t[r] !== null && !Array.isArray(t[r]) && !Array.isArray(e[i][r]) ? t[r] = {
|
|
886
|
+
...t[r],
|
|
887
|
+
...e[i][r]
|
|
888
|
+
} : t[r] = e[i][r]);
|
|
889
|
+
return t;
|
|
890
|
+
};
|
|
891
|
+
function A(e, t, n) {
|
|
892
|
+
const r = m(n?.omitNil) ? n?.omitNil : !0, i = m(n?.omitEmpty) ? n?.omitEmpty : !0, o = Object.keys(t);
|
|
893
|
+
for (let f = 0; f < o.length; f++) {
|
|
894
|
+
const s = o[f], c = t[s], u = e[s];
|
|
895
|
+
Array.isArray(c) ? Array.isArray(u) ? c.length === 0 && !i ? e[s] = c : e[s] = A(u, c, n) : e[s] = A([], c, n) : P(c) ? P(u) ? Object.keys(c).length === 0 && !i ? e[s] = c : e[s] = A(u, c, n) : e[s] = A({}, c, n) : r ? (u === void 0 || !de(c)) && (e[s] = c) : e[s] = c;
|
|
896
|
+
}
|
|
897
|
+
return e;
|
|
898
|
+
}
|
|
899
|
+
let M = 0;
|
|
900
|
+
const V = (e = 21) => {
|
|
901
|
+
if (typeof window > "u" || !window.crypto)
|
|
902
|
+
return (M += 1).toFixed(0);
|
|
903
|
+
let t = "";
|
|
904
|
+
const n = crypto.getRandomValues(new Uint8Array(e));
|
|
905
|
+
for (; e--; ) {
|
|
906
|
+
const r = 63 & n[e];
|
|
907
|
+
t += r < 36 ? r.toString(36) : r < 62 ? (r - 26).toString(36).toUpperCase() : r < 63 ? "_" : "-";
|
|
908
|
+
}
|
|
909
|
+
return t;
|
|
910
|
+
}, ct = () => typeof window > "u" ? V() : window.crypto && window.crypto.randomUUID && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : V(), ut = (e) => {
|
|
911
|
+
if (e && e !== !0)
|
|
912
|
+
return e;
|
|
913
|
+
}, lt = (e) => {
|
|
914
|
+
const t = {};
|
|
915
|
+
if (Object.keys(e || {}).forEach((n) => {
|
|
916
|
+
e[n] !== void 0 && (t[n] = e[n]);
|
|
917
|
+
}), !(Object.keys(t).length < 1))
|
|
918
|
+
return t;
|
|
919
|
+
}, at = (e) => {
|
|
920
|
+
const t = {};
|
|
921
|
+
return Object.keys(e || {}).forEach((n) => {
|
|
922
|
+
Array.isArray(e[n]) && e[n]?.length === 0 || e[n] !== void 0 && (t[n] = e[n]);
|
|
923
|
+
}), t;
|
|
924
|
+
};
|
|
925
|
+
function dt(e) {
|
|
926
|
+
if (!(typeof e != "string" && !Array.isArray(e)))
|
|
927
|
+
return Array.isArray(e) ? e[e.length - 1] : e.split(":")?.slice(-1)[0];
|
|
928
|
+
}
|
|
929
|
+
function pe(e) {
|
|
930
|
+
return e && (e.type === H || e.type === $ && e.children.length === 0 || e.type === Text && e.children.trim() === "");
|
|
931
|
+
}
|
|
932
|
+
function pt(e, t) {
|
|
933
|
+
return T(typeof e[t] == "function" ? e[t]?.() : []);
|
|
934
|
+
}
|
|
935
|
+
function T(e = [], t = !0) {
|
|
936
|
+
const n = Array.isArray(e) ? e : [e], r = [];
|
|
937
|
+
return n.forEach((i) => {
|
|
938
|
+
Array.isArray(i) ? r.push(...T(i, t)) : i?.type === $ || i?.type === "template" ? r.push(...T(i.children, t)) : i && U(i) ? t && !pe(i) ? r.push(i) : t || r.push(i) : ee(i) && r.push(i);
|
|
939
|
+
}), r;
|
|
940
|
+
}
|
|
941
|
+
function b({ vnode: e, defaultVNode: t }, ...n) {
|
|
942
|
+
return e === !1 ? t || null : typeof e == "function" ? e?.(...n) : e;
|
|
943
|
+
}
|
|
944
|
+
function he(e, ...t) {
|
|
945
|
+
const { slots: n, key: r = "default", render: i, props: o, defaultChildren: f } = e;
|
|
946
|
+
let s;
|
|
947
|
+
const c = o[r], u = n?.[r], l = typeof f == "function" ? f?.() : f;
|
|
948
|
+
return c === !1 ? s = !1 : c === !0 ? s = u ?? l : h(c) && i ? U(c) ? s = c : s = u : s = c || u, s === !1 ? l || !1 : i ? b({ vnode: s, defaultVNode: l }, ...t) : s;
|
|
949
|
+
}
|
|
950
|
+
function ye(e, ...t) {
|
|
951
|
+
const { slots: n, key: r = "default", props: i, defaultChildren: o } = e;
|
|
952
|
+
let f;
|
|
953
|
+
const s = i[r], c = n?.[r]?.(...t), u = typeof o == "function" ? o?.() : o;
|
|
954
|
+
return s === !1 ? f = !1 : s === !0 ? f = c ?? u : h(s) ? U(s) ? f = s : f = c : f = s || c, f === !1 ? u || !1 : b({ vnode: f, defaultVNode: u }, ...t);
|
|
955
|
+
}
|
|
956
|
+
function ht(e, ...t) {
|
|
957
|
+
const { slots: n, props: r, keys: i, render: o, defaultVNodes: f } = e, s = {};
|
|
958
|
+
return i.forEach((c, u) => {
|
|
959
|
+
const l = f ? f[u] : null, a = o ? ye({ slots: n, props: r, key: c, defaultChildren: l }, ...t) : he({ slots: n, props: r, key: c, render: !1, defaultChildren: l }, ...t);
|
|
960
|
+
(m(a) || a) && (s[c] = a);
|
|
961
|
+
}), s;
|
|
962
|
+
}
|
|
964
963
|
export {
|
|
965
964
|
me as Base64,
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
965
|
+
Le as arrayRepeat,
|
|
966
|
+
Be as arraySlice,
|
|
967
|
+
Je as blobToDataURL,
|
|
968
|
+
w as checkFileType,
|
|
970
969
|
X as classNames,
|
|
971
970
|
v as cloneDeep,
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
971
|
+
te as compareArray,
|
|
972
|
+
Pe as compareArraySort,
|
|
973
|
+
Fe as compareArrayTimeSort,
|
|
974
|
+
ne as compareTime,
|
|
975
|
+
ke as convertValueBoolean,
|
|
977
976
|
g as copyProperties,
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
977
|
+
He as dataURLtoBlob,
|
|
978
|
+
qe as dataURLtoFile,
|
|
979
|
+
Ue as deepCopy,
|
|
980
|
+
A as deepMerge,
|
|
982
981
|
x as fileTypes,
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
982
|
+
T as filterEmpty,
|
|
983
|
+
se as filterTree,
|
|
984
|
+
fe as findSourceByTree,
|
|
985
|
+
_e as findValueAndAncestors,
|
|
986
|
+
tt as forInObject,
|
|
987
|
+
Ve as formatDuration,
|
|
988
|
+
L as formatNumber,
|
|
989
|
+
Ee as genColumnKey,
|
|
990
|
+
F as generateVideoPicture,
|
|
991
|
+
We as getArrayLast,
|
|
992
|
+
be as getBase64,
|
|
993
|
+
ze as getBlobUrl,
|
|
994
|
+
R as getFileSuffix,
|
|
995
|
+
dt as getKeys,
|
|
996
|
+
oe as getLevelData,
|
|
997
|
+
ie as getMaxFloor,
|
|
998
|
+
ue as getMediaInfos,
|
|
999
|
+
Ie as getPrefixCls,
|
|
1000
|
+
re as getRandomNumber,
|
|
1002
1001
|
Q as getScroll,
|
|
1003
1002
|
ve as getScrollContainer,
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1003
|
+
he as getSlot,
|
|
1004
|
+
ye as getSlotVNode,
|
|
1005
|
+
pt as getSlotsChildren,
|
|
1006
|
+
ht as getSlotsProps,
|
|
1007
|
+
De as getSortIndex,
|
|
1008
|
+
k as getSymbols,
|
|
1009
|
+
je as getTextWidth,
|
|
1011
1010
|
Se as getValueFromObjectByKey,
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1011
|
+
Ze as getVideoCoverPicture,
|
|
1012
|
+
ce as getVideoFileUrl,
|
|
1013
|
+
Ne as handleCurrentPage,
|
|
1014
|
+
Me as handleEmptyField,
|
|
1015
|
+
Re as handleShowIndex,
|
|
1017
1016
|
q as is,
|
|
1018
1017
|
d as isArray,
|
|
1019
1018
|
D as isBase64,
|
|
1020
1019
|
m as isBoolean,
|
|
1021
|
-
|
|
1022
|
-
|
|
1020
|
+
it as isBrowser,
|
|
1021
|
+
Xe as isDataURLBase64,
|
|
1023
1022
|
C as isDeepEqualReact,
|
|
1024
|
-
|
|
1023
|
+
pe as isEmptyElement,
|
|
1025
1024
|
we as isFunction,
|
|
1026
|
-
|
|
1025
|
+
ot as isImg,
|
|
1027
1026
|
Oe as isInContainer,
|
|
1028
1027
|
Ae as isJSONStr,
|
|
1029
1028
|
xe as isMobile,
|
|
1030
|
-
|
|
1031
|
-
|
|
1029
|
+
de as isNil,
|
|
1030
|
+
Ce as isNotNil,
|
|
1032
1031
|
p as isNumber,
|
|
1033
1032
|
h as isObject,
|
|
1034
1033
|
P as isPlainObject,
|
|
1035
|
-
|
|
1034
|
+
K as isPrimitive,
|
|
1036
1035
|
G as isScroll,
|
|
1037
1036
|
S as isServer,
|
|
1038
1037
|
J as isString,
|
|
1039
1038
|
Z as isTablet,
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1039
|
+
j as isTypedArray,
|
|
1040
|
+
st as isUrl,
|
|
1041
|
+
ee as isValid,
|
|
1042
|
+
Qe as isWindowsOs,
|
|
1043
|
+
ft as merge,
|
|
1044
|
+
ct as nanoid,
|
|
1045
|
+
Ge as off,
|
|
1046
|
+
ut as omitBoolean,
|
|
1047
|
+
lt as omitUndefined,
|
|
1048
|
+
at as omitUndefinedAndEmptyArr,
|
|
1049
|
+
Ye as on,
|
|
1051
1050
|
E as raf,
|
|
1052
|
-
|
|
1053
|
-
|
|
1051
|
+
Te as runFunction,
|
|
1052
|
+
nt as scrollTo,
|
|
1054
1053
|
b as slotRender,
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1054
|
+
rt as throttleByAnimationFrame,
|
|
1055
|
+
et as toChinesNum,
|
|
1056
|
+
Ke as toConvertNumberShow,
|
|
1057
|
+
$e as treeData
|
|
1059
1058
|
};
|
package/dist/pro-utils.umd.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.2.0-beta.
|
|
3
|
+
* Version: 0.2.0-beta.78
|
|
4
4
|
* Author: gx12358
|
|
5
5
|
* Copyright (C) 2024 gx12358
|
|
6
6
|
* License: MIT License
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
12
12
|
(function(l,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],d):(l=typeof globalThis<"u"?globalThis:l||self,d(l.GPorUtils={},l.vue))})(this,(function(l,d){"use strict";class de{constructor(){this._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}_utf8_encode(t){t=t.replace(/\r\n/g,`
|
|
13
|
-
`);let n="";for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);i<128?n+=String.fromCharCode(i):i>127&&i<2048?(n+=String.fromCharCode(i>>6|192),n+=String.fromCharCode(i&63|128)):(n+=String.fromCharCode(i>>12|224),n+=String.fromCharCode(i>>6&63|128),n+=String.fromCharCode(i&63|128))}return n}_utf8_decode(t){let n="",r=0,i=0,o=0,c=0;for(;r<t.length;)i=t.charCodeAt(r),i<128?(n+=String.fromCharCode(i),r++):i>191&&i<224?(o=t.charCodeAt(r+1),n+=String.fromCharCode((i&31)<<6|o&63),r+=2):(o=t.charCodeAt(r+1),c=t.charCodeAt(r+2),n+=String.fromCharCode((i&15)<<12|(o&63)<<6|c&63),r+=3);return n}encode(t){let n="",r,i,o,c,f,s,u,a=0;for(t=this._utf8_encode(t);a<t.length;)r=t.charCodeAt(a++),i=t.charCodeAt(a++),o=t.charCodeAt(a++),c=r>>2,f=(r&3)<<4|i>>4,s=(i&15)<<2|o>>6,u=o&63,Number.isNaN(i)?s=u=64:Number.isNaN(o)&&(u=64),n=n+this._keyStr.charAt(c)+this._keyStr.charAt(f)+this._keyStr.charAt(s)+this._keyStr.charAt(u);return n}decode(t){let n="",r,i,o,c,f,s,u,a=0;for(t=t.replace(/[^A-Z0-9+/=]/gi,"");a<t.length;)c=this._keyStr.indexOf(t.charAt(a++)),f=this._keyStr.indexOf(t.charAt(a++)),s=this._keyStr.indexOf(t.charAt(a++)),u=this._keyStr.indexOf(t.charAt(a++)),r=c<<2|f>>4,i=(f&15)<<4|s>>2,o=(s&3)<<6|u,n=n+String.fromCharCode(r),s!==64&&(n=n+String.fromCharCode(i)),u!==64&&(n=n+String.fromCharCode(o));return n=this._utf8_decode(n),n}}function b(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}function p(e){return typeof e=="boolean"}function g(e){return typeof e=="number"}function y(e){return typeof Array.isArray>"u"?Object.prototype.toString.call(e)==="[object Array]":Array.isArray(e)}function m(e){return e!==null&&b(e,"Object")}function $(e){return typeof e=="string"||e instanceof String}function ye(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function he(e){if(typeof e!="string")return!1;try{const t=JSON.parse(e);return typeof t=="object"&&t!==null}catch{return!1}}function ge(){const e=navigator.userAgent||navigator.vendor;return!!(/iPhone/.test(e)||/Android/.test(e)&&/Mobile/.test(e)||/Windows Phone/.test(e)||/Mobile/.test(e)&&!_())}function _(){const e=navigator.userAgent||navigator.vendor;return!!(/iPad/.test(e)||/Macintosh/.test(e)&&"ontouchend"in document||/Android/.test(e)&&!/Mobile/.test(e))}function W(...e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(r){if($(r))t.push(r);else if(y(r))for(let i=0;i<r.length;i++){const o=W(r[i]);o&&t.push(o)}else if(m(r))for(const i in r)r[i]&&t.push(i)}}return t.filter(n=>n).join(" ")}function me(e,t){if(typeof t!="string"&&!Array.isArray(t))return;const n=Array.isArray(t)?t:t.split(":");let r=e;for(let i=0;i<n.length;i++)if(r&&Object.prototype.hasOwnProperty.call(r,n[i]))r=r[n[i]];else return;return r}const S=typeof window>"u";function pe(e){return e.replace(/[-_](.)/g,(t,n)=>n.toUpperCase())}const B=function(e,t){if(S||!e||!t)return"";t=pe(t),t==="float"&&(t="cssFloat");try{const n=e.style[t];if(n)return n;const r=document?.defaultView?.getComputedStyle(e,"");return r?r[t]:""}catch{return e.style[t]}},z=(e,t)=>S?void 0:(t==null?B(e,"overflow"):t?B(e,"overflow-y"):B(e,"overflow-x")).match(/(scroll|auto|overlay)/),we=(e,t)=>{if(S)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(z(n,t))return n;n=n.parentNode}return n},Ae=(e,t)=>{if(S||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return[window,document,document.documentElement,null,void 0].includes(t)?r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:r=t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right};function F(e){return e!=null&&e===e.window}function q(e,t){if(typeof window>"u")return 0;const n=t?"scrollTop":"scrollLeft";let r=0;return F(e)?r=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?r=e.documentElement[n]:e&&(r=e[n]),e&&!F(e)&&typeof r!="number"&&(r=(e.ownerDocument||e).documentElement?.[n]),r}let H=e=>setTimeout(e,16),x=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(H=e=>window.requestAnimationFrame(e),x=e=>window.cancelAnimationFrame(e));let J=0;const P=new Map;function Z(e){P.delete(e)}function U(e,t=1){J+=1;const n=J;function r(i){if(i===0)Z(n),e();else{const o=H(()=>{r(i-1)});P.set(n,o)}}return r(t),n}U.cancel=e=>{const t=P.get(e);return Z(t),x(t)};function Se(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function ve(e,t={}){const{getContainer:n=()=>window,callback:r,duration:i=450}=t,o=n(),c=q(o,!0),f=Date.now(),s=()=>{const a=Date.now()-f,h=Se(a>i?i:a,c,e,i);F(o)?o.scrollTo(window.pageXOffset,h):o instanceof HTMLDocument||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=h:o.scrollTop=h,a<i?U(s):typeof r=="function"&&r()};o&&U(s)}function Oe(e){let t;const n=i=>()=>{t=null,e(...i)},r=(...i)=>{t==null&&(t=requestAnimationFrame(n(i)))};return r.cancel=()=>cancelAnimationFrame(t),r}function X(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function G(e){return e==null||typeof e!="object"&&typeof e!="function"}function Y(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function v(e){return w(e)}function w(e,t=new Map){if(G(e))return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){const n=Array.from({length:e.length});t.set(e,n);for(let r=0;r<e.length;r++)n[r]=w(e[r],t);return Object.prototype.hasOwnProperty.call(e,"index")&&(n.index=e.index),Object.prototype.hasOwnProperty.call(e,"input")&&(n.input=e.input),n}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const n=new RegExp(e.source,e.flags);return n.lastIndex=e.lastIndex,n}if(e instanceof Map){const n=new Map;t.set(e,n);for(const[r,i]of e)n.set(r,w(i,t));return n}if(e instanceof Set){const n=new Set;t.set(e,n);for(const r of e)n.add(w(r,t));return n}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(Y(e)){const n=new(Object.getPrototypeOf(e)).constructor(e.length);t.set(e,n);for(let r=0;r<e.length;r++)n[r]=w(e[r],t);return n}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const n=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return t.set(e,n),A(n,e,t),n}if(typeof File<"u"&&e instanceof File){const n=new File([e],e.name,{type:e.type});return t.set(e,n),A(n,e,t),n}if(e instanceof Blob){const n=new Blob([e],{type:e.type});return t.set(e,n),A(n,e,t),n}if(e instanceof Error){const n=new e.constructor;return t.set(e,n),n.message=e.message,n.name=e.name,n.stack=e.stack,n.cause=e.cause,A(n,e,t),n}if(typeof e=="object"&&e!==null){const n={};return t.set(e,n),A(n,e,t),n}return e}function A(e,t,n){const r=[...Object.keys(t),...X(t)];for(let i=0;i<r.length;i++){const o=r[i],c=Object.getOwnPropertyDescriptor(e,o);(c==null||c.writable)&&(e[o]=w(t[o],n))}}const Ce=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Te=()=>process.env.NODE_ENV==="TEST"?!0:typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!Ce;function I(e,t,n,r){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let i,o,c;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!I(e[o],t[o],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o of e.entries())if(!t.has(o[0]))return!1;for(o of e.entries())if(!I(o[1],t.get(o[0]),n,r))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o of e.entries())if(!t.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(c=Object.keys(e),i=c.length,i!==Object.keys(t).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,c[o]))return!1;for(o=i;o--!==0;){const f=c[o];if(!n?.includes(f)&&!(f==="_owner"&&e.$$typeof)&&!I(e[f],t[f],n,r))return r&&console.log(f),!1}return!0}return e!==e&&t!==t}function Ue(e){return/\w.(?:png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}const K=e=>e==null,Ie=e=>{if(!e||!e.startsWith("http"))return!1;try{return!!new URL(e)}catch(t){return console.error("isUrl error",t),!1}};function D(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}const Ne=(...e)=>{const t={},n=e.length;let r,i=0;for(;i<n;i+=1)for(r in e[i])Object.prototype.hasOwnProperty.call(e[i],r)&&(typeof t[r]=="object"&&typeof e[i][r]=="object"&&t[r]!==void 0&&t[r]!==null&&!Array.isArray(t[r])&&!Array.isArray(e[i][r])?t[r]={...t[r],...e[i][r]}:t[r]=e[i][r]);return t};function O(e,t,n){const r=p(n?.omitNil)?n?.omitNil:!0,i=p(n?.omitEmpty)?n?.omitEmpty:!0,o=Object.keys(t);for(let c=0;c<o.length;c++){const f=o[c],s=t[f],u=e[f];Array.isArray(s)?Array.isArray(u)?s.length===0&&!i?e[f]=s:e[f]=O(u,s,n):e[f]=O([],s,n):D(s)?D(u)?Object.keys(s).length===0&&!i?e[f]=s:e[f]=O(u,s,n):e[f]=O({},s,n):r?(u===void 0||!K(s))&&(e[f]=s):e[f]=s}return e}let Q=0;const k=(e=21)=>{if(typeof window>"u"||!window.crypto)return(Q+=1).toFixed(0);let t="";const n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){const r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},Re=()=>typeof window>"u"?k():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():k(),Ee=e=>{if(e&&e!==!0)return e},Be=e=>{const t={};if(Object.keys(e||{}).forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),!(Object.keys(t).length<1))return t},Fe=e=>{const t={};return Object.keys(e||{}).forEach(n=>{Array.isArray(e[n])&&e[n]?.length===0||e[n]!==void 0&&(t[n]=e[n])}),t},j=e=>e!=null&&e!=="";function Pe(e){if(!(typeof e!="string"&&!Array.isArray(e)))return Array.isArray(e)?e[e.length-1]:e.split(":")?.slice(-1)[0]}function ee(e){return e&&(e.type===d.Comment||e.type===d.Fragment&&e.children.length===0||e.type===Text&&e.children.trim()==="")}function De(e,t){return N(typeof e[t]=="function"?e[t]?.():[])}function N(e=[],t=!0){const n=Array.isArray(e)?e:[e],r=[];return n.forEach(i=>{Array.isArray(i)?r.push(...N(i,t)):i?.type===d.Fragment||i?.type==="template"?r.push(...N(i.children,t)):i&&d.isVNode(i)?t&&!ee(i)?r.push(i):t||r.push(i):j(i)&&r.push(i)}),r}function L({vnode:e,defaultVNode:t},...n){return e===!1?t||null:typeof e=="function"?e?.(...n):e}function te(e,...t){const{slots:n,key:r="default",render:i,props:o,defaultChildren:c}=e;let f;const s=o[r],u=n?.[r],a=typeof c=="function"?c?.():c;return s===!1?f=!1:s===!0?f=u??a:m(s)&&i?d.isVNode(s)?f=s:f=u:f=s||u,f===!1?a||!1:i?L({vnode:f,defaultVNode:a},...t):f}function ne(e,...t){const{slots:n,key:r="default",props:i,defaultChildren:o}=e;let c;const f=i[r],s=n?.[r]?.(...t),u=typeof o=="function"?o?.():o;return f===!1?c=!1:f===!0?c=s??u:m(f)?d.isVNode(f)?c=f:c=s:c=f||s,c===!1?u||null:L({vnode:c,defaultVNode:u},...t)}function Le(e,...t){const{slots:n,props:r,keys:i,render:o,defaultVNodes:c}=e,f={};return i.forEach((s,u)=>{const a=c?c[u]:null,h=o?ne({slots:n,props:r,key:s,defaultChildren:a},...t):te({slots:n,props:r,key:s,render:!1,defaultChildren:a},...t);(p(h)||h)&&(f[s]=h)}),f}const C={videoAllowType:["mp4","webm","ogg"],audioAllowType:["mp3","ogg","wav","aac","m4a","webm"],imageType:["jpeg","jpg","png","gif","bmp","tiff","tif","webp","heic","heif","svg","ico","raw","cr2","nef","arw","dng","psd","eps"],videoType:["mp4","avi","mov","wmv","mkv","flv","webm","mpeg","mpg","3gp","ogv","mxf","vob","rm","rmvb","ts","mts","m2ts","divx","xvid"],audioType:["mp3","wav","aac","flac","ogg","wma","m4a","alac","opus","amr","aiff","au","pcm","ape"]};function Ve(e){return e!=null}const Me=({suffixCls:e,customizePrefixCls:t,isPor:n,className:r})=>{const i=r||(n?"gx-pro":"gx");return t||(e?`${i}-${e}`:i)},be=(e,t)=>e?y(e)?e.join("-"):e.toString():`${t||0}`;function $e(e,{align:t,showIndex:n}){const r=v(e);if(n&&e.length&&e.every(i=>i.dataIndex!=="sortIndex")){const i=e[0];r.unshift({title:"序号",align:t,fixed:i.fixed,width:60,uuid:oe().uuid(15),dataIndex:"sortIndex",key:"sortIndex"})}else r.filter(i=>i.dataIndex!=="sortIndex");return r}function _e(e,...t){return typeof e=="function"?e(...t):e}function We(e){return JSON.parse(JSON.stringify(e))}function ze(e,t){if(m(e)){const{pageSize:n=10,total:r=0}=e;let{current:i=1}=e;return r-t<=n*(i-1)&&(i=i-1),i===0?1:i}return 1}function qe(e=[],t,n="children"){function r(i,o){return o.map((c,f)=>{const s=`${i}-${f+1}`;return c[n]&&(c[n]=r(s,c[n])),c.sortIndex=s,c})}return v(e).map((i,o)=>{const c=m(t)&&t.current||1,f=m(t)&&t.pageSize||10,s=`${(c-1)*f+(o+1)}`;return i[n]&&(i[n]=r(`${s}`,i[n])),i.sortIndex=s,i})}function He(e,t){return y(e)?e?.filter((n,r)=>{if(g(t))return r<=t-1;if(y(t)&&t.length===2){const i=t[0]-1,o=t[1]?t[1]-1:e.length-1;return r<=o&&r>=i}else if(y(t)&&t.length===1){const i=t[0]-1,o=e.length-1;return r<=o&&r>=i}return!0}):[]}function re(e,t,n,r=0){const i=g(r)&&(r===0||r===1)?r:0,o=e[n],c=t[n];let f=0;return o<c?f=i===0?-1:0:o>c&&(f=i===0?0:-1),f}function ie(e,t,n,r=0){const i=g(r)&&(r===0||r===1)?r:0,o=new Date(e[n]),c=new Date(t[n]);let f=0;return o<c?f=i===0?-1:0:o>c&&(f=i===0?0:-1),f}function xe(e,t,n=0){return e.sort((r,i)=>re(r,i,t,n))}function Je(e,t,n=0){return e.sort((r,i)=>ie(r,i,t,n))}function Ze(e){let t=v(e);const n=new Set(t);return t=Array.from(n),t}function Xe(e,t){const n=["null","undefined"];let r=!0;return e===0?r=!0:n.includes(e)?r=!1:e||(r=!1),r?{value:e,success:r}:{value:t===""?t:t||"-",success:r}}function Ge(e){let t="";if(e>-1){const n=Math.floor(e/3600),r=Math.floor(e/60)%60,i=Number.parseInt(String(e%60));n<10?t="0"+n+":":t=n+":",r<10&&(t+="0"),t+=r+":",i<10&&(t+="0"),t+=i}return t.split(":")[0]==="00"?`${t.split(":")[1]}:${t.split(":")[2]}`:t}function oe(){const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");return{uuid(t,n){const r=e,i=[],o=n||r.length;let c,f;if(t)for(c=0;c<t;c+=1)i[c]=r[Number.parseInt(String(Math.random()*o))];else for(i[8]="-",i[13]="-",i[18]="-",i[23]="-",i[14]="4",c=0;c<36;c+=1)i[c]||(f=Math.random()*16,i[c]=r[c===19?f&&3||8:f]);return i.join("")},uuidFast(){const t=e,n=Array.from({length:36});let r=0,i,o;for(o=0;o<36;o+=1)o===8||o===13||o===18||o===23?n[o]="-":o===14?n[o]="4":(r<=2&&(r=33554432+Math.random()*16777216||0),i=r&&15,r=r>4,n[o]=t[o===19?i&&3||8:i]);return n.join("")},uuidString(){return this.uuidFast().replace(new RegExp("-","g"),"")},uuidCompact(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=Math.random()*16||0;return(t==="x"?n:n&&3||8).toString(16)})}}}function fe(e,t){if(!Array.isArray(e)||e.length===0)return 0;const n=t||"children";return Math.max(...e.map(r=>{const i=r[n];return 1+(i?fe(i,n):0)}))}function ce(e,t="children"){let n=[];return e.forEach(r=>{n.push(r),y(r[t])&&r[t].length>0&&(n=n.concat(ce(r[t],t)))}),n}function Ye(e,t){if(!e||!y(e)||e?.length===0)return[];const{id:n="id",parentId:r="parentId",children:i="children",emptyChildren:o=!0}=t||{},c=t?.rootId??0,f=v(e);return f.map(s=>(!o&&s[i]&&s[i]?.length===0&&delete s[i],s)).filter(s=>{const u=f.filter(a=>s[n]===a[r]);return u.length>0?s[i]=u:o&&(s[i]=[]),c===!1?!0:s[r]===c})}function le(e,t){return e.map(n=>{const r={...n};return r.children&&(r.children=le(r.children,t)),t(r)||r.children&&r.children.length>0?r:null}).filter(Boolean)}function Ke(e,t,n){const{value:r,children:i}=n||{value:"value",children:"children"};let o=[];function c(f,s){if(f[r]===t)return o=[...s,f[r]],!0;if(f[i]){for(const u of f[i])if(c(u,[...s,f[r]]))return!0}return!1}for(const f of e)if(c(f,[]))break;return o}function Qe(e){return e&&y(e)?e[e.length-1]:null}function se(e,t,n){const r=n?.value||"id",i=n?.children||"children";for(const o of e){if(o[r]===t)return o;const c=o[i];if(c){const f=se(c,t,n);if(f)return f}}}function ke(e){return URL.createObjectURL(e)}function je(e){return new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)})}function et(e){const t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]);let i=r.length;const o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new Blob([o],{type:n})}function tt(e,t){const n=e.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]);let o=i.length;const c=new Uint8Array(o);for(;o--;)c[o]=i.charCodeAt(o);return new File([c],t,{type:r})}function nt(e,t,n){return new window.File([e],t,{type:n})}function ue(e){if(!e||typeof e!="string")return"";const t=e.indexOf("?");return t>0?`${e.substring(0,t)}`:e}function R(e){if(!e||typeof e!="string")return"";const t=ue(e),n=t.lastIndexOf(".");return n>0&&`${t?.substring?.(n)?.split("?")?.[0]}`?.split(".")?.[1]||""}function T(e,t){if(t)return t;if(!e||e==="data:")return"4";let n="4";return E(e)?e.includes("data:image/")?n="png":e.includes("data:video/")?n="mp4":e.includes("data:audio/")&&(n="mp3"):e instanceof Blob?(e=String(e),e.includes("image")?n="png":e.includes("video")?n="mp4":e.includes("audio")&&(n="mp3")):n=R(e).toLowerCase(),C.imageType.includes(n)?"1":C.videoType.includes(n)?"3":C.audioType.includes(n)?"2":"4"}function ae(e){const{url:t="",fileType:n="1"}=e||{};let r="",i={play:!1,height:0,size:0,width:0,duration:0};function o(){i={play:!1,height:0,size:0,width:0,duration:0}}return t instanceof File?r=URL.createObjectURL(t):E(t)?r=t:t instanceof Blob?r=URL.createObjectURL(t):(t.includes("https")||t.includes("http"))&&(r=t),new Promise(c=>{let f;if(n==="4"){c(i);return}n==="1"?(f=document.createElement("img"),f.src=r):n==="2"?(f=document.createElement("audio"),f.src=r):n==="3"&&(f=document.createElement("video"),f.src=r),n==="1"?f.onload=function(){o(),i.play=!0,i.width=f.width||0,i.height=f.height||0,c(i),f=null}:f.oncanplay=function(){o(),i.play=!0,i.width=f?.videoWidth||0,i.height=f?.videoHeight||0,i.duration=f?.duration||0,c(i),f=null},f.onerror=function(){o(),c(i),f=null}})}async function rt(e){const{url:t="",currentTime:n,videoSuffix:r="",videoAllowPlay:i=!1}=e;let o="",c=r,f="1",s;return t instanceof File?(o=URL.createObjectURL(t),c=R(t.name),f=T(t.name)):t instanceof Blob?(o=URL.createObjectURL(t),f=T(t)):E(t)?(o=t,f=T(t)):(t.includes("https")||t.includes("http"))&&(o=t,c=R(t),f=T(t)),(c?C.videoAllowType.includes(c.toLowerCase()):!1)?i?V(o,n):(s=await ae({url:o,fileType:f}),s.play?V(o,n):new Promise(a=>{a("")})):new Promise(a=>{a("")})}async function V(e,t=0){return new Promise(n=>{let r=document.createElement("video");r&&(r.controls=!0,r.muted=!0,r.setAttribute("src",e),r.setAttribute("muted",String(!0)),r.setAttribute("crossorigin","anonymous"),r.setAttribute("autoplay",String(!0)),r.addEventListener("loadeddata",async()=>{let i;for(r?.addEventListener("seeked",async()=>{i&&i()});t<(r?.duration||0);){r&&(r.currentTime=t),await new Promise(h=>i=h);const o=document.createElement("canvas"),c=.8,f=o.getContext("2d"),s=r?.videoWidth||0*c,u=r?.videoHeight||0*c,a=0;o.width=r?.videoWidth||0*c,o.height=r?.videoHeight||0*c,r&&f.drawImage(r,0,0,s+a,u+a),r=null,n(s===0||u===0?"":o.toDataURL("image/png",1))}}))})}function E(e=""){return!!(e&&["data:image/","data:video/","data:audio/"].find(n=>e.includes(n)))}function it(e){return typeof e=="string"&&/^data:(?:image|video|audio)\/[A-Za-z]+;base64,[A-Za-z0-9+/=]+$/.test(e)}function ot(e,t,n,r=!1){e&&t&&n&&e.addEventListener(t,n,r)}function ft(e,t,n,r=!1){e&&t&&n&&e.removeEventListener(t,n,r)}function ct(){return/windows|win32/i.test(navigator.userAgent)}function lt(e){return p(e)?e:!!e}function M(e,t){const n=`^\\d+(?:\\.\\d{0,${e}})?`,r=new RegExp(n),i=t.toString().match(r);if(i){const o=i[0];if(o.includes(".")){const[c,f]=o.split(".");if(/^0*$/.test(f))return c}return o}return t.toString()}function st(e,t){const{toChinese:n=!1,fixed:r=2,min:i=1e4}=t||{},o=g(i)?i:1e4,c=g(r)?r:2,f=n?e<o?"":e<1e8?"万":"亿":e<o?"":e<1e8?"w":"亿";if(!g(e))return{str:`${e}`,number:`${e}`};if(e<o)return{str:`${e}`,number:`${e}`};if(c===0){const u=(e/(e<1e8?1e4:1e8)).toFixed(1).split(".")[0];return{str:`${u}${f}`,number:u,unit:f}}let s;return e<1e8?(s=M(c,e/1e4),{str:s+f,number:s,unit:f}):(s=M(c,e/1e8),{str:s+f,number:s,unit:f})}function ut(e,t){let n=0;const r=p(t.removeAfter)?t.removeAfter:!0,i=t.id||"hiddenElement",o={opacity:0,visibility:"hidden",position:"fixed",zIndex:-1,top:0,left:0};let c=document.querySelector(`#${i}`);if(!c){const s=document.createElement("div");s.id=i,document.body.appendChild(s),c=document.querySelector(`#${i}`)}Object.assign(c.style,o);const f=document.createElement(t.createName||"span");return f.innerHTML=e,(t.cssObject||m(t.cssObject))&&Object.assign(f.style,t.cssObject),c.append(f),n=f.getBoundingClientRect()[t.type||"width"],r&&c.removeChild(f),n}function at(e){e=g(e)&&!Number.isNaN(e)?e:0;const t=["零","一","二","三","四","五","六","七","八","九"],n=["","十","百","千","万"];e=Number.parseInt(`${e}`);const r=c=>{const f=c.toString().split("").reverse();let s="";for(let u=0;u<f.length;u++)s=(u===0&&f[u]==="0"||u>0&&f[u]==="0"&&f[u-1]==="0"?"":(e<20&&u>0?"":t[f[u]])+(f[u]==="0"?n[0]:n[u]))+s;return s},i=Math.floor(e/1e4);let o=e%1e4;return o.toString().length<4&&(o="0"+o),i?r(i)+"万"+r(o):r(e)}function dt(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}l.Base64=de,l.arrayRepeat=Ze,l.arraySlice=He,l.blobToDataURL=nt,l.checkFileType=T,l.classNames=W,l.cloneDeep=v,l.compareArray=re,l.compareArraySort=xe,l.compareArrayTimeSort=Je,l.compareTime=ie,l.convertValueBoolean=lt,l.copyProperties=A,l.dataURLtoBlob=et,l.dataURLtoFile=tt,l.deepCopy=We,l.deepMerge=O,l.fileTypes=C,l.filterEmpty=N,l.filterTree=le,l.findSourceByTree=se,l.findValueAndAncestors=Ke,l.forInObject=dt,l.formatDuration=Ge,l.formatNumber=M,l.genColumnKey=be,l.generateVideoPicture=V,l.getArrayLast=Qe,l.getBase64=je,l.getBlobUrl=ke,l.getFileSuffix=R,l.getKeys=Pe,l.getLevelData=ce,l.getMaxFloor=fe,l.getMediaInfos=ae,l.getPrefixCls=Me,l.getRandomNumber=oe,l.getScroll=q,l.getScrollContainer=we,l.getSlot=te,l.getSlotVNode=ne,l.getSlotsChildren=De,l.getSlotsProps=Le,l.getSortIndex=qe,l.getSymbols=X,l.getTextWidth=ut,l.getValueFromObjectByKey=me,l.getVideoCoverPicture=rt,l.getVideoFileUrl=ue,l.handleCurrentPage=ze,l.handleEmptyField=Xe,l.handleShowIndex=$e,l.is=b,l.isArray=y,l.isBase64=E,l.isBoolean=p,l.isBrowser=Te,l.isDataURLBase64=it,l.isDeepEqualReact=I,l.isEmptyElement=ee,l.isFunction=ye,l.isImg=Ue,l.isInContainer=Ae,l.isJSONStr=he,l.isMobile=ge,l.isNil=K,l.isNotNil=Ve,l.isNumber=g,l.isObject=m,l.isPlainObject=D,l.isPrimitive=G,l.isScroll=z,l.isServer=S,l.isString=$,l.isTablet=_,l.isTypedArray=Y,l.isUrl=Ie,l.isValid=j,l.isWindowsOs=ct,l.merge=Ne,l.nanoid=Re,l.off=ft,l.omitBoolean=Ee,l.omitUndefined=Be,l.omitUndefinedAndEmptyArr=Fe,l.on=ot,l.raf=U,l.runFunction=_e,l.scrollTo=ve,l.slotRender=L,l.throttleByAnimationFrame=Oe,l.toChinesNum=at,l.toConvertNumberShow=st,l.treeData=Ye,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));
|
|
13
|
+
`);let n="";for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);i<128?n+=String.fromCharCode(i):i>127&&i<2048?(n+=String.fromCharCode(i>>6|192),n+=String.fromCharCode(i&63|128)):(n+=String.fromCharCode(i>>12|224),n+=String.fromCharCode(i>>6&63|128),n+=String.fromCharCode(i&63|128))}return n}_utf8_decode(t){let n="",r=0,i=0,o=0,c=0;for(;r<t.length;)i=t.charCodeAt(r),i<128?(n+=String.fromCharCode(i),r++):i>191&&i<224?(o=t.charCodeAt(r+1),n+=String.fromCharCode((i&31)<<6|o&63),r+=2):(o=t.charCodeAt(r+1),c=t.charCodeAt(r+2),n+=String.fromCharCode((i&15)<<12|(o&63)<<6|c&63),r+=3);return n}encode(t){let n="",r,i,o,c,f,s,u,a=0;for(t=this._utf8_encode(t);a<t.length;)r=t.charCodeAt(a++),i=t.charCodeAt(a++),o=t.charCodeAt(a++),c=r>>2,f=(r&3)<<4|i>>4,s=(i&15)<<2|o>>6,u=o&63,Number.isNaN(i)?s=u=64:Number.isNaN(o)&&(u=64),n=n+this._keyStr.charAt(c)+this._keyStr.charAt(f)+this._keyStr.charAt(s)+this._keyStr.charAt(u);return n}decode(t){let n="",r,i,o,c,f,s,u,a=0;for(t=t.replace(/[^A-Z0-9+/=]/gi,"");a<t.length;)c=this._keyStr.indexOf(t.charAt(a++)),f=this._keyStr.indexOf(t.charAt(a++)),s=this._keyStr.indexOf(t.charAt(a++)),u=this._keyStr.indexOf(t.charAt(a++)),r=c<<2|f>>4,i=(f&15)<<4|s>>2,o=(s&3)<<6|u,n=n+String.fromCharCode(r),s!==64&&(n=n+String.fromCharCode(i)),u!==64&&(n=n+String.fromCharCode(o));return n=this._utf8_decode(n),n}}function b(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}function p(e){return typeof e=="boolean"}function g(e){return typeof e=="number"}function y(e){return typeof Array.isArray>"u"?Object.prototype.toString.call(e)==="[object Array]":Array.isArray(e)}function m(e){return e!==null&&b(e,"Object")}function $(e){return typeof e=="string"||e instanceof String}function ye(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function he(e){if(typeof e!="string")return!1;try{const t=JSON.parse(e);return typeof t=="object"&&t!==null}catch{return!1}}function ge(){const e=navigator.userAgent||navigator.vendor;return!!(/iPhone/.test(e)||/Android/.test(e)&&/Mobile/.test(e)||/Windows Phone/.test(e)||/Mobile/.test(e)&&!_())}function _(){const e=navigator.userAgent||navigator.vendor;return!!(/iPad/.test(e)||/Macintosh/.test(e)&&"ontouchend"in document||/Android/.test(e)&&!/Mobile/.test(e))}function W(...e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(r){if($(r))t.push(r);else if(y(r))for(let i=0;i<r.length;i++){const o=W(r[i]);o&&t.push(o)}else if(m(r))for(const i in r)r[i]&&t.push(i)}}return t.filter(n=>n).join(" ")}function me(e,t){if(typeof t!="string"&&!Array.isArray(t))return;const n=Array.isArray(t)?t:t.split(":");let r=e;for(let i=0;i<n.length;i++)if(r&&Object.prototype.hasOwnProperty.call(r,n[i]))r=r[n[i]];else return;return r}const S=typeof window>"u";function pe(e){return e.replace(/[-_](.)/g,(t,n)=>n.toUpperCase())}const B=function(e,t){if(S||!e||!t)return"";t=pe(t),t==="float"&&(t="cssFloat");try{const n=e.style[t];if(n)return n;const r=document?.defaultView?.getComputedStyle(e,"");return r?r[t]:""}catch{return e.style[t]}},z=(e,t)=>S?void 0:(t==null?B(e,"overflow"):t?B(e,"overflow-y"):B(e,"overflow-x")).match(/(scroll|auto|overlay)/),we=(e,t)=>{if(S)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(z(n,t))return n;n=n.parentNode}return n},Ae=(e,t)=>{if(S||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return[window,document,document.documentElement,null,void 0].includes(t)?r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:r=t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right};function F(e){return e!=null&&e===e.window}function q(e,t){if(typeof window>"u")return 0;const n=t?"scrollTop":"scrollLeft";let r=0;return F(e)?r=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?r=e.documentElement[n]:e&&(r=e[n]),e&&!F(e)&&typeof r!="number"&&(r=(e.ownerDocument||e).documentElement?.[n]),r}function H(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function x(e){return e==null||typeof e!="object"&&typeof e!="function"}function J(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function v(e){return w(e)}function w(e,t=new Map){if(x(e))return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){const n=Array.from({length:e.length});t.set(e,n);for(let r=0;r<e.length;r++)n[r]=w(e[r],t);return Object.prototype.hasOwnProperty.call(e,"index")&&(n.index=e.index),Object.prototype.hasOwnProperty.call(e,"input")&&(n.input=e.input),n}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const n=new RegExp(e.source,e.flags);return n.lastIndex=e.lastIndex,n}if(e instanceof Map){const n=new Map;t.set(e,n);for(const[r,i]of e)n.set(r,w(i,t));return n}if(e instanceof Set){const n=new Set;t.set(e,n);for(const r of e)n.add(w(r,t));return n}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(J(e)){const n=new(Object.getPrototypeOf(e)).constructor(e.length);t.set(e,n);for(let r=0;r<e.length;r++)n[r]=w(e[r],t);return n}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const n=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return t.set(e,n),A(n,e,t),n}if(typeof File<"u"&&e instanceof File){const n=new File([e],e.name,{type:e.type});return t.set(e,n),A(n,e,t),n}if(e instanceof Blob){const n=new Blob([e],{type:e.type});return t.set(e,n),A(n,e,t),n}if(e instanceof Error){const n=new e.constructor;return t.set(e,n),n.message=e.message,n.name=e.name,n.stack=e.stack,n.cause=e.cause,A(n,e,t),n}if(typeof e=="object"&&e!==null){const n={};return t.set(e,n),A(n,e,t),n}return e}function A(e,t,n){const r=[...Object.keys(t),...H(t)];for(let i=0;i<r.length;i++){const o=r[i],c=Object.getOwnPropertyDescriptor(e,o);(c==null||c.writable)&&(e[o]=w(t[o],n))}}const O={videoAllowType:["mp4","webm","ogg"],audioAllowType:["mp3","ogg","wav","aac","m4a","webm"],imageType:["jpeg","jpg","png","gif","bmp","tiff","tif","webp","heic","heif","svg","ico","raw","cr2","nef","arw","dng","psd","eps"],videoType:["mp4","avi","mov","wmv","mkv","flv","webm","mpeg","mpg","3gp","ogv","mxf","vob","rm","rmvb","ts","mts","m2ts","divx","xvid"],audioType:["mp3","wav","aac","flac","ogg","wma","m4a","alac","opus","amr","aiff","au","pcm","ape"]},Z=e=>e!=null&&e!=="";let X=e=>setTimeout(e,16),G=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(X=e=>window.requestAnimationFrame(e),G=e=>window.cancelAnimationFrame(e));let Y=0;const P=new Map;function K(e){P.delete(e)}function U(e,t=1){Y+=1;const n=Y;function r(i){if(i===0)K(n),e();else{const o=X(()=>{r(i-1)});P.set(n,o)}}return r(t),n}U.cancel=e=>{const t=P.get(e);return K(t),G(t)};function Se(e){return e!=null}function D(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}const ve=({suffixCls:e,customizePrefixCls:t,isPor:n,className:r})=>{const i=r||(n?"gx-pro":"gx");return t||(e?`${i}-${e}`:i)},Oe=(e,t)=>e?y(e)?e.join("-"):e.toString():`${t||0}`;function Ce(e,{align:t,showIndex:n}){const r=v(e);if(n&&e.length&&e.every(i=>i.dataIndex!=="sortIndex")){const i=e[0];r.unshift({title:"序号",align:t,fixed:i.fixed,width:60,uuid:j().uuid(15),dataIndex:"sortIndex",key:"sortIndex"})}else r.filter(i=>i.dataIndex!=="sortIndex");return r}function Te(e,...t){return typeof e=="function"?e(...t):e}function Ue(e){return JSON.parse(JSON.stringify(e))}function Ie(e,t){if(m(e)){const{pageSize:n=10,total:r=0}=e;let{current:i=1}=e;return r-t<=n*(i-1)&&(i=i-1),i===0?1:i}return 1}function Ne(e=[],t,n="children"){function r(i,o){return o.map((c,f)=>{const s=`${i}-${f+1}`;return c[n]&&(c[n]=r(s,c[n])),c.sortIndex=s,c})}return v(e).map((i,o)=>{const c=m(t)&&t.current||1,f=m(t)&&t.pageSize||10,s=`${(c-1)*f+(o+1)}`;return i[n]&&(i[n]=r(`${s}`,i[n])),i.sortIndex=s,i})}function Re(e,t){return y(e)?e?.filter((n,r)=>{if(g(t))return r<=t-1;if(y(t)&&t.length===2){const i=t[0]-1,o=t[1]?t[1]-1:e.length-1;return r<=o&&r>=i}else if(y(t)&&t.length===1){const i=t[0]-1,o=e.length-1;return r<=o&&r>=i}return!0}):[]}function Q(e,t,n,r=0){const i=g(r)&&(r===0||r===1)?r:0,o=e[n],c=t[n];let f=0;return o<c?f=i===0?-1:0:o>c&&(f=i===0?0:-1),f}function k(e,t,n,r=0){const i=g(r)&&(r===0||r===1)?r:0,o=new Date(e[n]),c=new Date(t[n]);let f=0;return o<c?f=i===0?-1:0:o>c&&(f=i===0?0:-1),f}function Ee(e,t,n=0){return e.sort((r,i)=>Q(r,i,t,n))}function Be(e,t,n=0){return e.sort((r,i)=>k(r,i,t,n))}function Fe(e){let t=v(e);const n=new Set(t);return t=Array.from(n),t}function Pe(e,t){const n=["null","undefined"];let r=!0;return e===0?r=!0:n.includes(e)?r=!1:e||(r=!1),r?{value:e,success:r}:{value:t===""?t:t||"-",success:r}}function De(e){let t="";if(e>-1){const n=Math.floor(e/3600),r=Math.floor(e/60)%60,i=Number.parseInt(String(e%60));n<10?t="0"+n+":":t=n+":",r<10&&(t+="0"),t+=r+":",i<10&&(t+="0"),t+=i}return t.split(":")[0]==="00"?`${t.split(":")[1]}:${t.split(":")[2]}`:t}function j(){const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");return{uuid(t,n){const r=e,i=[],o=n||r.length;let c,f;if(t)for(c=0;c<t;c+=1)i[c]=r[Number.parseInt(String(Math.random()*o))];else for(i[8]="-",i[13]="-",i[18]="-",i[23]="-",i[14]="4",c=0;c<36;c+=1)i[c]||(f=Math.random()*16,i[c]=r[c===19?f&&3||8:f]);return i.join("")},uuidFast(){const t=e,n=Array.from({length:36});let r=0,i,o;for(o=0;o<36;o+=1)o===8||o===13||o===18||o===23?n[o]="-":o===14?n[o]="4":(r<=2&&(r=33554432+Math.random()*16777216||0),i=r&&15,r=r>4,n[o]=t[o===19?i&&3||8:i]);return n.join("")},uuidString(){return this.uuidFast().replace(new RegExp("-","g"),"")},uuidCompact(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=Math.random()*16||0;return(t==="x"?n:n&&3||8).toString(16)})}}}function ee(e,t){if(!Array.isArray(e)||e.length===0)return 0;const n=t||"children";return Math.max(...e.map(r=>{const i=r[n];return 1+(i?ee(i,n):0)}))}function te(e,t="children"){let n=[];return e.forEach(r=>{n.push(r),y(r[t])&&r[t].length>0&&(n=n.concat(te(r[t],t)))}),n}function Le(e,t){if(!e||!y(e)||e?.length===0)return[];const{id:n="id",parentId:r="parentId",children:i="children",emptyChildren:o=!0}=t||{},c=t?.rootId??0,f=v(e);return f.map(s=>(!o&&s[i]&&s[i]?.length===0&&delete s[i],s)).filter(s=>{const u=f.filter(a=>s[n]===a[r]);return u.length>0?s[i]=u:o&&(s[i]=[]),c===!1?!0:s[r]===c})}function ne(e,t){return e.map(n=>{const r={...n};return r.children&&(r.children=ne(r.children,t)),t(r)||r.children&&r.children.length>0?r:null}).filter(Boolean)}function Ve(e,t,n){const{value:r,children:i}=n||{value:"value",children:"children"};let o=[];function c(f,s){if(f[r]===t)return o=[...s,f[r]],!0;if(f[i]){for(const u of f[i])if(c(u,[...s,f[r]]))return!0}return!1}for(const f of e)if(c(f,[]))break;return o}function Me(e){return e&&y(e)?e[e.length-1]:null}function re(e,t,n){const r=n?.value||"id",i=n?.children||"children";for(const o of e){if(o[r]===t)return o;const c=o[i];if(c){const f=re(c,t,n);if(f)return f}}}function be(e){return URL.createObjectURL(e)}function $e(e){return new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)})}function _e(e){const t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]);let i=r.length;const o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new Blob([o],{type:n})}function We(e,t){const n=e.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]);let o=i.length;const c=new Uint8Array(o);for(;o--;)c[o]=i.charCodeAt(o);return new File([c],t,{type:r})}function ze(e,t,n){return new window.File([e],t,{type:n})}function ie(e){if(!e||typeof e!="string")return"";const t=e.indexOf("?");return t>0?`${e.substring(0,t)}`:e}function I(e){if(!e||typeof e!="string")return"";const t=ie(e),n=t.lastIndexOf(".");return n>0&&`${t?.substring?.(n)?.split("?")?.[0]}`?.split(".")?.[1]||""}function C(e,t){if(t)return t;if(!e||e==="data:")return"4";let n="4";return N(e)?e.includes("data:image/")?n="png":e.includes("data:video/")?n="mp4":e.includes("data:audio/")&&(n="mp3"):e instanceof Blob?(e=String(e),e.includes("image")?n="png":e.includes("video")?n="mp4":e.includes("audio")&&(n="mp3")):n=I(e).toLowerCase(),O.imageType.includes(n)?"1":O.videoType.includes(n)?"3":O.audioType.includes(n)?"2":"4"}function oe(e){const{url:t="",fileType:n="1"}=e||{};let r="",i={play:!1,height:0,size:0,width:0,duration:0};function o(){i={play:!1,height:0,size:0,width:0,duration:0}}return t instanceof File?r=URL.createObjectURL(t):N(t)?r=t:t instanceof Blob?r=URL.createObjectURL(t):(t.includes("https")||t.includes("http"))&&(r=t),new Promise(c=>{let f;if(n==="4"){c(i);return}n==="1"?(f=document.createElement("img"),f.src=r):n==="2"?(f=document.createElement("audio"),f.src=r):n==="3"&&(f=document.createElement("video"),f.src=r),n==="1"?f.onload=function(){o(),i.play=!0,i.width=f.width||0,i.height=f.height||0,c(i),f=null}:f.oncanplay=function(){o(),i.play=!0,i.width=f?.videoWidth||0,i.height=f?.videoHeight||0,i.duration=f?.duration||0,c(i),f=null},f.onerror=function(){o(),c(i),f=null}})}async function qe(e){const{url:t="",currentTime:n,videoSuffix:r="",videoAllowPlay:i=!1}=e;let o="",c=r,f="1",s;return t instanceof File?(o=URL.createObjectURL(t),c=I(t.name),f=C(t.name)):t instanceof Blob?(o=URL.createObjectURL(t),f=C(t)):N(t)?(o=t,f=C(t)):(t.includes("https")||t.includes("http"))&&(o=t,c=I(t),f=C(t)),(c?O.videoAllowType.includes(c.toLowerCase()):!1)?i?L(o,n):(s=await oe({url:o,fileType:f}),s.play?L(o,n):new Promise(a=>{a("")})):new Promise(a=>{a("")})}async function L(e,t=0){return new Promise(n=>{let r=document.createElement("video");r&&(r.controls=!0,r.muted=!0,r.setAttribute("src",e),r.setAttribute("muted",String(!0)),r.setAttribute("crossorigin","anonymous"),r.setAttribute("autoplay",String(!0)),r.addEventListener("loadeddata",async()=>{let i;for(r?.addEventListener("seeked",async()=>{i&&i()});t<(r?.duration||0);){r&&(r.currentTime=t),await new Promise(h=>i=h);const o=document.createElement("canvas"),c=.8,f=o.getContext("2d"),s=r?.videoWidth||0*c,u=r?.videoHeight||0*c,a=0;o.width=r?.videoWidth||0*c,o.height=r?.videoHeight||0*c,r&&f.drawImage(r,0,0,s+a,u+a),r=null,n(s===0||u===0?"":o.toDataURL("image/png",1))}}))})}function N(e=""){return!!(e&&["data:image/","data:video/","data:audio/"].find(n=>e.includes(n)))}function He(e){return typeof e=="string"&&/^data:(?:image|video|audio)\/[A-Za-z]+;base64,[A-Za-z0-9+/=]+$/.test(e)}function xe(e,t,n,r=!1){e&&t&&n&&e.addEventListener(t,n,r)}function Je(e,t,n,r=!1){e&&t&&n&&e.removeEventListener(t,n,r)}function Ze(){return/windows|win32/i.test(navigator.userAgent)}function Xe(e){return p(e)?e:!!e}function V(e,t){const n=`^\\d+(?:\\.\\d{0,${e}})?`,r=new RegExp(n),i=t.toString().match(r);if(i){const o=i[0];if(o.includes(".")){const[c,f]=o.split(".");if(/^0*$/.test(f))return c}return o}return t.toString()}function Ge(e,t){const{toChinese:n=!1,fixed:r=2,min:i=1e4}=t||{},o=g(i)?i:1e4,c=g(r)?r:2,f=n?e<o?"":e<1e8?"万":"亿":e<o?"":e<1e8?"w":"亿";if(!g(e))return{str:`${e}`,number:`${e}`};if(e<o)return{str:`${e}`,number:`${e}`};if(c===0){const u=(e/(e<1e8?1e4:1e8)).toFixed(1).split(".")[0];return{str:`${u}${f}`,number:u,unit:f}}let s;return e<1e8?(s=V(c,e/1e4),{str:s+f,number:s,unit:f}):(s=V(c,e/1e8),{str:s+f,number:s,unit:f})}function Ye(e,t){let n=0;const r=p(t.removeAfter)?t.removeAfter:!0,i=t.id||"hiddenElement",o={opacity:0,visibility:"hidden",position:"fixed",zIndex:-1,top:0,left:0};let c=document.querySelector(`#${i}`);if(!c){const s=document.createElement("div");s.id=i,document.body.appendChild(s),c=document.querySelector(`#${i}`)}Object.assign(c.style,o);const f=document.createElement(t.createName||"span");return f.innerHTML=e,(t.cssObject||m(t.cssObject))&&Object.assign(f.style,t.cssObject),c.append(f),n=f.getBoundingClientRect()[t.type||"width"],r&&c.removeChild(f),n}function Ke(e){e=g(e)&&!Number.isNaN(e)?e:0;const t=["零","一","二","三","四","五","六","七","八","九"],n=["","十","百","千","万"];e=Number.parseInt(`${e}`);const r=c=>{const f=c.toString().split("").reverse();let s="";for(let u=0;u<f.length;u++)s=(u===0&&f[u]==="0"||u>0&&f[u]==="0"&&f[u-1]==="0"?"":(e<20&&u>0?"":t[f[u]])+(f[u]==="0"?n[0]:n[u]))+s;return s},i=Math.floor(e/1e4);let o=e%1e4;return o.toString().length<4&&(o="0"+o),i?r(i)+"万"+r(o):r(e)}function Qe(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}function ke(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function je(e,t={}){const{getContainer:n=()=>window,callback:r,duration:i=450}=t,o=n(),c=q(o,!0),f=Date.now(),s=()=>{const a=Date.now()-f,h=ke(a>i?i:a,c,e,i);F(o)?o.scrollTo(window.pageXOffset,h):o instanceof HTMLDocument||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=h:o.scrollTop=h,a<i?U(s):typeof r=="function"&&r()};o&&U(s)}function et(e){let t;const n=i=>()=>{t=null,e(...i)},r=(...i)=>{t==null&&(t=requestAnimationFrame(n(i)))};return r.cancel=()=>cancelAnimationFrame(t),r}const tt=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,nt=()=>process.env.NODE_ENV==="TEST"?!0:typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!tt;function R(e,t,n,r){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let i,o,c;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!R(e[o],t[o],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o of e.entries())if(!t.has(o[0]))return!1;for(o of e.entries())if(!R(o[1],t.get(o[0]),n,r))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o of e.entries())if(!t.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(c=Object.keys(e),i=c.length,i!==Object.keys(t).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,c[o]))return!1;for(o=i;o--!==0;){const f=c[o];if(!n?.includes(f)&&!(f==="_owner"&&e.$$typeof)&&!R(e[f],t[f],n,r))return r&&console.log(f),!1}return!0}return e!==e&&t!==t}function rt(e){return/\w.(?:png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}const fe=e=>e==null,it=e=>{if(!e||!e.startsWith("http"))return!1;try{return!!new URL(e)}catch(t){return console.error("isUrl error",t),!1}},ot=(...e)=>{const t={},n=e.length;let r,i=0;for(;i<n;i+=1)for(r in e[i])Object.prototype.hasOwnProperty.call(e[i],r)&&(typeof t[r]=="object"&&typeof e[i][r]=="object"&&t[r]!==void 0&&t[r]!==null&&!Array.isArray(t[r])&&!Array.isArray(e[i][r])?t[r]={...t[r],...e[i][r]}:t[r]=e[i][r]);return t};function T(e,t,n){const r=p(n?.omitNil)?n?.omitNil:!0,i=p(n?.omitEmpty)?n?.omitEmpty:!0,o=Object.keys(t);for(let c=0;c<o.length;c++){const f=o[c],s=t[f],u=e[f];Array.isArray(s)?Array.isArray(u)?s.length===0&&!i?e[f]=s:e[f]=T(u,s,n):e[f]=T([],s,n):D(s)?D(u)?Object.keys(s).length===0&&!i?e[f]=s:e[f]=T(u,s,n):e[f]=T({},s,n):r?(u===void 0||!fe(s))&&(e[f]=s):e[f]=s}return e}let ce=0;const le=(e=21)=>{if(typeof window>"u"||!window.crypto)return(ce+=1).toFixed(0);let t="";const n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){const r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},ft=()=>typeof window>"u"?le():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():le(),ct=e=>{if(e&&e!==!0)return e},lt=e=>{const t={};if(Object.keys(e||{}).forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),!(Object.keys(t).length<1))return t},st=e=>{const t={};return Object.keys(e||{}).forEach(n=>{Array.isArray(e[n])&&e[n]?.length===0||e[n]!==void 0&&(t[n]=e[n])}),t};function ut(e){if(!(typeof e!="string"&&!Array.isArray(e)))return Array.isArray(e)?e[e.length-1]:e.split(":")?.slice(-1)[0]}function se(e){return e&&(e.type===d.Comment||e.type===d.Fragment&&e.children.length===0||e.type===Text&&e.children.trim()==="")}function at(e,t){return E(typeof e[t]=="function"?e[t]?.():[])}function E(e=[],t=!0){const n=Array.isArray(e)?e:[e],r=[];return n.forEach(i=>{Array.isArray(i)?r.push(...E(i,t)):i?.type===d.Fragment||i?.type==="template"?r.push(...E(i.children,t)):i&&d.isVNode(i)?t&&!se(i)?r.push(i):t||r.push(i):Z(i)&&r.push(i)}),r}function M({vnode:e,defaultVNode:t},...n){return e===!1?t||null:typeof e=="function"?e?.(...n):e}function ue(e,...t){const{slots:n,key:r="default",render:i,props:o,defaultChildren:c}=e;let f;const s=o[r],u=n?.[r],a=typeof c=="function"?c?.():c;return s===!1?f=!1:s===!0?f=u??a:m(s)&&i?d.isVNode(s)?f=s:f=u:f=s||u,f===!1?a||!1:i?M({vnode:f,defaultVNode:a},...t):f}function ae(e,...t){const{slots:n,key:r="default",props:i,defaultChildren:o}=e;let c;const f=i[r],s=n?.[r]?.(...t),u=typeof o=="function"?o?.():o;return f===!1?c=!1:f===!0?c=s??u:m(f)?d.isVNode(f)?c=f:c=s:c=f||s,c===!1?u||!1:M({vnode:c,defaultVNode:u},...t)}function dt(e,...t){const{slots:n,props:r,keys:i,render:o,defaultVNodes:c}=e,f={};return i.forEach((s,u)=>{const a=c?c[u]:null,h=o?ae({slots:n,props:r,key:s,defaultChildren:a},...t):ue({slots:n,props:r,key:s,render:!1,defaultChildren:a},...t);(p(h)||h)&&(f[s]=h)}),f}l.Base64=de,l.arrayRepeat=Fe,l.arraySlice=Re,l.blobToDataURL=ze,l.checkFileType=C,l.classNames=W,l.cloneDeep=v,l.compareArray=Q,l.compareArraySort=Ee,l.compareArrayTimeSort=Be,l.compareTime=k,l.convertValueBoolean=Xe,l.copyProperties=A,l.dataURLtoBlob=_e,l.dataURLtoFile=We,l.deepCopy=Ue,l.deepMerge=T,l.fileTypes=O,l.filterEmpty=E,l.filterTree=ne,l.findSourceByTree=re,l.findValueAndAncestors=Ve,l.forInObject=Qe,l.formatDuration=De,l.formatNumber=V,l.genColumnKey=Oe,l.generateVideoPicture=L,l.getArrayLast=Me,l.getBase64=$e,l.getBlobUrl=be,l.getFileSuffix=I,l.getKeys=ut,l.getLevelData=te,l.getMaxFloor=ee,l.getMediaInfos=oe,l.getPrefixCls=ve,l.getRandomNumber=j,l.getScroll=q,l.getScrollContainer=we,l.getSlot=ue,l.getSlotVNode=ae,l.getSlotsChildren=at,l.getSlotsProps=dt,l.getSortIndex=Ne,l.getSymbols=H,l.getTextWidth=Ye,l.getValueFromObjectByKey=me,l.getVideoCoverPicture=qe,l.getVideoFileUrl=ie,l.handleCurrentPage=Ie,l.handleEmptyField=Pe,l.handleShowIndex=Ce,l.is=b,l.isArray=y,l.isBase64=N,l.isBoolean=p,l.isBrowser=nt,l.isDataURLBase64=He,l.isDeepEqualReact=R,l.isEmptyElement=se,l.isFunction=ye,l.isImg=rt,l.isInContainer=Ae,l.isJSONStr=he,l.isMobile=ge,l.isNil=fe,l.isNotNil=Se,l.isNumber=g,l.isObject=m,l.isPlainObject=D,l.isPrimitive=x,l.isScroll=z,l.isServer=S,l.isString=$,l.isTablet=_,l.isTypedArray=J,l.isUrl=it,l.isValid=Z,l.isWindowsOs=Ze,l.merge=ot,l.nanoid=ft,l.off=Je,l.omitBoolean=ct,l.omitUndefined=lt,l.omitUndefinedAndEmptyArr=st,l.on=xe,l.raf=U,l.runFunction=Te,l.scrollTo=je,l.slotRender=M,l.throttleByAnimationFrame=et,l.toChinesNum=Ke,l.toConvertNumberShow=Ge,l.treeData=Le,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/slots/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare function getSlotVNode<S extends object, K extends keyof S = keyof
|
|
|
45
45
|
props: Record<string, any>;
|
|
46
46
|
key: K;
|
|
47
47
|
defaultChildren?: any;
|
|
48
|
-
}, ...arg: any): CustomRender
|
|
48
|
+
}, ...arg: any): WithFalse<CustomRender>;
|
|
49
49
|
/**
|
|
50
50
|
* @Author gx12358
|
|
51
51
|
* @DateTime 2024/10/13
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties } from 'vue';
|
|
2
2
|
import type { AlignType, BasicTablePageConfig, MaterialOptions, RecordType } from '../typings';
|
|
3
3
|
import isValid from './isValid';
|
|
4
|
+
import raf from './raf';
|
|
4
5
|
export * from './config';
|
|
5
6
|
export * from './getSymbols';
|
|
6
7
|
export * from './isNotNil';
|
|
@@ -8,7 +9,7 @@ export * from './isPlainObject';
|
|
|
8
9
|
export * from './isPrimitive';
|
|
9
10
|
export * from './isTypedArray';
|
|
10
11
|
export * from './validate';
|
|
11
|
-
export { isValid };
|
|
12
|
+
export { isValid, raf };
|
|
12
13
|
export interface PrefixCls {
|
|
13
14
|
suffixCls?: string;
|
|
14
15
|
customizePrefixCls?: string;
|
package/package.json
CHANGED
|
File without changes
|