@kupola/kupola 1.6.5 → 1.6.7

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.
@@ -205,119 +205,119 @@ const Ta = new ht("app");
205
205
  function Ia(i = "app") {
206
206
  return new ht(i);
207
207
  }
208
- const Le = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
208
+ const Se = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
209
209
  function Q(i) {
210
- return Le.has(i);
210
+ return Se.has(i);
211
211
  }
212
- function De(i) {
212
+ function Le(i) {
213
213
  return i ? i.trim() : "";
214
214
  }
215
- function He(i) {
215
+ function De(i) {
216
216
  return i ? i.replace(/^\s+/, "") : "";
217
217
  }
218
- function Me(i) {
218
+ function He(i) {
219
219
  return i ? i.replace(/\s+$/, "") : "";
220
220
  }
221
- function Te(i) {
221
+ function Me(i) {
222
222
  return i ? i.toUpperCase() : "";
223
223
  }
224
- function Ie(i) {
224
+ function Te(i) {
225
225
  return i ? i.toLowerCase() : "";
226
226
  }
227
- function Ae(i) {
227
+ function Ie(i) {
228
228
  return i ? i.charAt(0).toUpperCase() + i.slice(1) : "";
229
229
  }
230
- function ze(i) {
230
+ function Ae(i) {
231
231
  return i ? i.replace(/-(\w)/g, (t, e) => e ? e.toUpperCase() : "") : "";
232
232
  }
233
- function Pe(i) {
233
+ function ze(i) {
234
234
  return i ? i.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "") : "";
235
235
  }
236
- function $e(i, t, e = " ") {
236
+ function Pe(i, t, e = " ") {
237
237
  return (String(i) || "").padStart(t, e);
238
238
  }
239
- function Be(i, t, e = " ") {
239
+ function $e(i, t, e = " ") {
240
240
  return (String(i) || "").padEnd(t, e);
241
241
  }
242
- function qe(i, t, e = "...") {
242
+ function Be(i, t, e = "...") {
243
243
  return !i || i.length <= t ? i || "" : i.slice(0, t) + e;
244
244
  }
245
- function Oe(i, t, e) {
245
+ function qe(i, t, e) {
246
246
  return i ? i.split(t).join(e) : "";
247
247
  }
248
- function Fe(i, t) {
248
+ function Oe(i, t) {
249
249
  return i ? i.replace(/\{\{(\w+)\}\}/g, (e, s) => t[s] !== void 0 ? t[s] : `{{${s}}}`) : "";
250
250
  }
251
- function Ne(i, t) {
251
+ function Fe(i, t) {
252
252
  return (i || "").startsWith(t);
253
253
  }
254
- function Re(i, t) {
254
+ function Ne(i, t) {
255
255
  return (i || "").endsWith(t);
256
256
  }
257
- function Ve(i, t) {
257
+ function Re(i, t) {
258
258
  return (i || "").includes(t);
259
259
  }
260
- function Ke(i, t) {
260
+ function Ve(i, t) {
261
261
  return (i || "").repeat(t);
262
262
  }
263
- function We(i) {
263
+ function Ke(i) {
264
264
  return (i || "").split("").reverse().join("");
265
265
  }
266
- function Ue(i, t) {
266
+ function We(i, t) {
267
267
  return !i || !t ? 0 : i.split(t).length - 1;
268
268
  }
269
- function Ye(i) {
269
+ function Ue(i) {
270
270
  if (!i) return "";
271
271
  const t = document.createElement("div");
272
272
  return t.textContent = i, t.innerHTML;
273
273
  }
274
- function Xe(i) {
274
+ function Ye(i) {
275
275
  if (!i) return "";
276
276
  const t = document.createElement("div");
277
277
  return t.innerHTML = i, t.textContent;
278
278
  }
279
- function je(i = 8) {
279
+ function Xe(i = 8) {
280
280
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
281
281
  let e = "";
282
282
  for (let s = 0; s < i; s++)
283
283
  e += t.charAt(Math.floor(Math.random() * t.length));
284
284
  return e;
285
285
  }
286
- function Je() {
286
+ function je() {
287
287
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (i) => {
288
288
  const t = Math.random() * 16 | 0;
289
289
  return (i === "x" ? t : t & 3 | 8).toString(16);
290
290
  });
291
291
  }
292
- const Ze = { trim: De, trimLeft: He, trimRight: Me, toUpperCase: Te, toLowerCase: Ie, capitalize: Ae, camelize: ze, hyphenate: Pe, padStart: $e, padEnd: Be, truncate: qe, replaceAll: Oe, format: Fe, startsWith: Ne, endsWith: Re, includes: Ve, repeat: Ke, reverse: We, countOccurrences: Ue, escapeHtml: Ye, unescapeHtml: Xe, generateRandom: je, generateUUID: Je };
293
- function Ge(i) {
292
+ const Je = { trim: Le, trimLeft: De, trimRight: He, toUpperCase: Me, toLowerCase: Te, capitalize: Ie, camelize: Ae, hyphenate: ze, padStart: Pe, padEnd: $e, truncate: Be, replaceAll: qe, format: Oe, startsWith: Fe, endsWith: Ne, includes: Re, repeat: Ve, reverse: Ke, countOccurrences: We, escapeHtml: Ue, unescapeHtml: Ye, generateRandom: Xe, generateUUID: je };
293
+ function Ze(i) {
294
294
  return Array.isArray(i);
295
295
  }
296
- function Qe(i) {
296
+ function Ge(i) {
297
297
  return !i || i.length === 0;
298
298
  }
299
- function ts(i) {
299
+ function Qe(i) {
300
300
  return i ? i.length : 0;
301
301
  }
302
- function es(i, t) {
302
+ function ts(i, t) {
303
303
  return i && i.length > 0 ? i[0] : t;
304
304
  }
305
- function ss(i, t) {
305
+ function es(i, t) {
306
306
  return i && i.length > 0 ? i[i.length - 1] : t;
307
307
  }
308
- function is(i, t, e) {
308
+ function ss(i, t, e) {
309
309
  return i && i[t] !== void 0 ? i[t] : e;
310
310
  }
311
- function ns(i, t, e) {
311
+ function is(i, t, e) {
312
312
  return i ? i.slice(t, e) : [];
313
313
  }
314
- function rs(...i) {
314
+ function ns(...i) {
315
315
  return i.reduce((t, e) => t.concat(e || []), []);
316
316
  }
317
- function as(i, t = ",") {
317
+ function rs(i, t = ",") {
318
318
  return i ? i.join(t) : "";
319
319
  }
320
- function os(i, t, e = 0) {
320
+ function as(i, t, e = 0) {
321
321
  if (!i) return -1;
322
322
  if (Number.isNaN(t)) {
323
323
  for (let s = e; s < i.length; s++)
@@ -326,7 +326,7 @@ function os(i, t, e = 0) {
326
326
  }
327
327
  return i.indexOf(t, e);
328
328
  }
329
- function ls(i, t, e) {
329
+ function os(i, t, e) {
330
330
  if (!i) return -1;
331
331
  if (Number.isNaN(t)) {
332
332
  const s = e !== void 0 ? e : i.length - 1;
@@ -336,78 +336,78 @@ function ls(i, t, e) {
336
336
  }
337
337
  return i.lastIndexOf(t, e);
338
338
  }
339
- function cs(i, t) {
339
+ function ls(i, t) {
340
340
  return i ? i.includes(t) : !1;
341
341
  }
342
- function hs(i, ...t) {
342
+ function cs(i, ...t) {
343
343
  return i && i.push(...t), i;
344
344
  }
345
- function ds(i) {
345
+ function hs(i) {
346
346
  return i ? i.pop() : void 0;
347
347
  }
348
- function us(i) {
348
+ function ds(i) {
349
349
  return i ? i.shift() : void 0;
350
350
  }
351
- function ps(i, ...t) {
351
+ function us(i, ...t) {
352
352
  return i && i.unshift(...t), i;
353
353
  }
354
- function fs(i, t) {
354
+ function ps(i, t) {
355
355
  if (!i) return i;
356
356
  const e = Number.isNaN(t) ? i.findIndex((s) => Number.isNaN(s)) : i.indexOf(t);
357
357
  return e > -1 && i.splice(e, 1), i;
358
358
  }
359
- function ms(i, t) {
359
+ function fs(i, t) {
360
360
  return !i || t < 0 || t >= i.length || i.splice(t, 1), i;
361
361
  }
362
- function gs(i, t, e) {
362
+ function ms(i, t, e) {
363
363
  return i && (i.splice(t, 0, e), i);
364
364
  }
365
- function _s(i) {
365
+ function gs(i) {
366
366
  return i ? i.slice().reverse() : [];
367
367
  }
368
- function ys(i, t) {
368
+ function _s(i, t) {
369
369
  return i ? i.slice().sort(t) : [];
370
370
  }
371
- function vs(i, t, e = "asc") {
371
+ function ys(i, t, e = "asc") {
372
372
  return i ? i.slice().sort((s, n) => {
373
373
  const r = typeof s == "object" ? s[t] : s, a = typeof n == "object" ? n[t] : n;
374
374
  return r < a ? e === "asc" ? -1 : 1 : r > a ? e === "asc" ? 1 : -1 : 0;
375
375
  }) : [];
376
376
  }
377
- function bs(i, t) {
377
+ function vs(i, t) {
378
378
  return i ? i.filter(t) : [];
379
379
  }
380
- function xs(i, t) {
380
+ function bs(i, t) {
381
381
  return i ? i.map(t) : [];
382
382
  }
383
- function Es(i, t, e) {
383
+ function xs(i, t, e) {
384
384
  return i ? i.reduce(t, e) : e;
385
385
  }
386
- function ws(i, t) {
386
+ function Es(i, t) {
387
387
  i && i.forEach(t);
388
388
  }
389
- function ks(i, t) {
389
+ function ws(i, t) {
390
390
  return i ? i.every(t) : !0;
391
391
  }
392
- function Cs(i, t) {
392
+ function ks(i, t) {
393
393
  return i ? i.some(t) : !1;
394
394
  }
395
- function Ss(i, t) {
395
+ function Cs(i, t) {
396
396
  return i ? i.find(t) : void 0;
397
397
  }
398
- function Ls(i, t) {
398
+ function Ss(i, t) {
399
399
  return i ? i.findIndex(t) : -1;
400
400
  }
401
- function Ds(i, t = 1) {
401
+ function Ls(i, t = 1) {
402
402
  return i ? i.flat(t) : [];
403
403
  }
404
404
  function St(i) {
405
405
  return i ? i.reduce((t, e) => Array.isArray(e) ? t.concat(St(e)) : t.concat(e), []) : [];
406
406
  }
407
- function Hs(i) {
407
+ function Ds(i) {
408
408
  return i ? [...new Set(i)] : [];
409
409
  }
410
- function Ms(i, t) {
410
+ function Hs(i, t) {
411
411
  if (!i) return [];
412
412
  const e = /* @__PURE__ */ new Set();
413
413
  return i.filter((s) => {
@@ -415,14 +415,14 @@ function Ms(i, t) {
415
415
  return e.has(n) ? !1 : (e.add(n), !0);
416
416
  });
417
417
  }
418
- function Ts(i, t) {
418
+ function Ms(i, t) {
419
419
  if (!i || t <= 0) return [];
420
420
  const e = [];
421
421
  for (let s = 0; s < i.length; s += t)
422
422
  e.push(i.slice(s, s + t));
423
423
  return e;
424
424
  }
425
- function Is(i) {
425
+ function Ts(i) {
426
426
  if (!i) return [];
427
427
  const t = i.slice();
428
428
  for (let e = t.length - 1; e > 0; e--) {
@@ -434,54 +434,54 @@ function Is(i) {
434
434
  function Lt(i) {
435
435
  return i ? i.reduce((t, e) => t + (Number(e) || 0), 0) : 0;
436
436
  }
437
- function As(i) {
437
+ function Is(i) {
438
438
  return !i || i.length === 0 ? 0 : Lt(i) / i.length;
439
439
  }
440
- function zs(i) {
440
+ function As(i) {
441
441
  return i && i.length > 0 ? Math.max(...i) : -1 / 0;
442
442
  }
443
- function Ps(i) {
443
+ function zs(i) {
444
444
  return i && i.length > 0 ? Math.min(...i) : 1 / 0;
445
445
  }
446
- function $s(...i) {
446
+ function Ps(...i) {
447
447
  return i.length === 0 ? [] : i.reduce((t, e) => t.filter((s) => e && e.includes(s)));
448
448
  }
449
- function Bs(...i) {
449
+ function $s(...i) {
450
450
  return [...new Set(i.flat().filter(Boolean))];
451
451
  }
452
- function qs(i, t) {
452
+ function Bs(i, t) {
453
453
  return i ? i.filter((e) => !t || !t.includes(e)) : [];
454
454
  }
455
- function Os(...i) {
455
+ function qs(...i) {
456
456
  if (i.length === 0) return [];
457
457
  const t = Math.max(...i.map((e) => e ? e.length : 0));
458
458
  return Array.from({ length: t }, (e, s) => i.map((n) => n && n[s]));
459
459
  }
460
- const Fs = { isArray: Ge, isEmpty: Qe, size: ts, first: es, last: ss, get: is, slice: ns, concat: rs, join: as, indexOf: os, lastIndexOf: ls, includes: cs, push: hs, pop: ds, shift: us, unshift: ps, remove: fs, removeAt: ms, insert: gs, reverse: _s, sort: ys, sortBy: vs, filter: bs, map: xs, reduce: Es, forEach: ws, every: ks, some: Cs, find: Ss, findIndex: Ls, flat: Ds, flattenDeep: St, unique: Hs, uniqueBy: Ms, chunk: Ts, shuffle: Is, sum: Lt, average: As, max: zs, min: Ps, intersection: $s, union: Bs, difference: qs, zip: Os };
460
+ const Os = { isArray: Ze, isEmpty: Ge, size: Qe, first: ts, last: es, get: ss, slice: is, concat: ns, join: rs, indexOf: as, lastIndexOf: os, includes: ls, push: cs, pop: hs, shift: ds, unshift: us, remove: ps, removeAt: fs, insert: ms, reverse: gs, sort: _s, sortBy: ys, filter: vs, map: bs, reduce: xs, forEach: Es, every: ws, some: ks, find: Cs, findIndex: Ss, flat: Ls, flattenDeep: St, unique: Ds, uniqueBy: Hs, chunk: Ms, shuffle: Ts, sum: Lt, average: Is, max: As, min: zs, intersection: Ps, union: $s, difference: Bs, zip: qs };
461
461
  function rt(i) {
462
462
  return i !== null && typeof i == "object" && !Array.isArray(i);
463
463
  }
464
- function Ns(i) {
464
+ function Fs(i) {
465
465
  return !i || typeof i != "object" ? !0 : Object.keys(i).length === 0;
466
466
  }
467
- function Rs(i) {
467
+ function Ns(i) {
468
468
  return i ? Object.keys(i) : [];
469
469
  }
470
- function Vs(i) {
470
+ function Rs(i) {
471
471
  return i ? Object.values(i) : [];
472
472
  }
473
- function Ks(i) {
473
+ function Vs(i) {
474
474
  return i ? Object.entries(i) : [];
475
475
  }
476
- function Ws(i, t) {
476
+ function Ks(i, t) {
477
477
  return i ? Object.prototype.hasOwnProperty.call(i, t) : !1;
478
478
  }
479
- function Us(i, t, e) {
479
+ function Ws(i, t, e) {
480
480
  if (!i) return e;
481
481
  const s = t.split(".");
482
482
  return s.some(Q) ? e : s.reduce((n, r) => n && n[r], i) ?? e;
483
483
  }
484
- function Ys(i, t, e) {
484
+ function Us(i, t, e) {
485
485
  if (!i || typeof i != "object") return i;
486
486
  const s = t.split(".");
487
487
  if (s.some(Q)) return i;
@@ -491,10 +491,10 @@ function Ys(i, t, e) {
491
491
  (!r[a] || typeof r[a] != "object") && (r[a] = {}), r = r[a];
492
492
  }), r[n] = e, i;
493
493
  }
494
- function Xs(i, t) {
494
+ function Ys(i, t) {
495
495
  return i ? t.reduce((e, s) => (i[s] !== void 0 && (e[s] = i[s]), e), {}) : {};
496
496
  }
497
- function js(i, t) {
497
+ function Xs(i, t) {
498
498
  return i ? Object.keys(i).reduce((e, s) => (t.includes(s) || (e[s] = i[s]), e), {}) : {};
499
499
  }
500
500
  function Dt(...i) {
@@ -502,7 +502,7 @@ function Dt(...i) {
502
502
  Q(s) || (rt(e[s]) && rt(t[s]) ? t[s] = Dt(t[s], e[s]) : t[s] = e[s]);
503
503
  }), t), {});
504
504
  }
505
- function Js(i) {
505
+ function js(i) {
506
506
  return i && JSON.parse(JSON.stringify(i));
507
507
  }
508
508
  function Y(i, t = /* @__PURE__ */ new WeakMap()) {
@@ -527,39 +527,39 @@ function Y(i, t = /* @__PURE__ */ new WeakMap()) {
527
527
  Q(s) || (e[s] = Y(i[s], t));
528
528
  }), e;
529
529
  }
530
- function Zs(i, t) {
530
+ function Js(i, t) {
531
531
  i && Object.keys(i).forEach((e) => t(i[e], e, i));
532
532
  }
533
- function Gs(i, t) {
533
+ function Zs(i, t) {
534
534
  if (!i) return {};
535
535
  const e = {};
536
536
  return Object.keys(i).forEach((s) => {
537
537
  e[s] = t(i[s], s, i);
538
538
  }), e;
539
539
  }
540
- function Qs(i, t) {
540
+ function Gs(i, t) {
541
541
  if (!i) return {};
542
542
  const e = {};
543
543
  return Object.keys(i).forEach((s) => {
544
544
  t(i[s], s, i) && (e[s] = i[s]);
545
545
  }), e;
546
546
  }
547
- function ti(i, t, e) {
547
+ function Qs(i, t, e) {
548
548
  return i ? Object.keys(i).reduce((s, n) => t(s, i[n], n, i), e) : e;
549
549
  }
550
- function ei(i) {
550
+ function ti(i) {
551
551
  return i ? Object.keys(i).map((t) => ({ key: t, value: i[t] })) : [];
552
552
  }
553
- function si(i, t, e) {
553
+ function ei(i, t, e) {
554
554
  return i ? i.reduce((s, n) => {
555
555
  const r = typeof n == "object" ? n[t] : n, a = e ? n[e] : n;
556
556
  return r !== void 0 && (s[r] = a), s;
557
557
  }, {}) : {};
558
558
  }
559
- function ii(i) {
559
+ function si(i) {
560
560
  return i ? Object.keys(i).length : 0;
561
561
  }
562
- function ni(i) {
562
+ function ii(i) {
563
563
  if (!i) return {};
564
564
  const t = {};
565
565
  return Object.keys(i).forEach((e) => {
@@ -577,104 +577,104 @@ function Mt(i) {
577
577
  typeof i[t] == "object" && Mt(i[t]);
578
578
  }), i);
579
579
  }
580
- function ri(i) {
580
+ function ni(i) {
581
581
  return i && Object.seal(i);
582
582
  }
583
- const ai = { isObject: rt, isEmpty: Ns, keys: Rs, values: Vs, entries: Ks, has: Ws, get: Us, set: Ys, pick: Xs, omit: js, merge: Dt, clone: Js, deepClone: Y, forEach: Zs, map: Gs, filter: Qs, reduce: ti, toArray: ei, fromArray: si, size: ii, invert: ni, isEqual: Ht, freeze: Mt, seal: ri };
583
+ const ri = { isObject: rt, isEmpty: Fs, keys: Ns, values: Rs, entries: Vs, has: Ks, get: Ws, set: Us, pick: Ys, omit: Xs, merge: Dt, clone: js, deepClone: Y, forEach: Js, map: Zs, filter: Gs, reduce: Qs, toArray: ti, fromArray: ei, size: si, invert: ii, isEqual: Ht, freeze: Mt, seal: ni };
584
584
  function L(i) {
585
585
  return typeof i == "number" && !isNaN(i);
586
586
  }
587
- function oi(i) {
587
+ function ai(i) {
588
588
  return Number.isInteger(i);
589
589
  }
590
- function li(i) {
590
+ function oi(i) {
591
591
  return L(i) && !Number.isInteger(i);
592
592
  }
593
- function ci(i) {
593
+ function li(i) {
594
594
  return L(i) && i > 0;
595
595
  }
596
- function hi(i) {
596
+ function ci(i) {
597
597
  return L(i) && i < 0;
598
598
  }
599
- function di(i) {
599
+ function hi(i) {
600
600
  return L(i) && i === 0;
601
601
  }
602
- function ui(i, t, e) {
602
+ function di(i, t, e) {
603
603
  return L(i) ? Math.min(Math.max(i, t), e) : i;
604
604
  }
605
- function pi(i, t = 0) {
605
+ function ui(i, t = 0) {
606
606
  if (!L(i)) return i;
607
607
  const e = Math.pow(10, t);
608
608
  return Math.round(i * e) / e;
609
609
  }
610
- function fi(i) {
610
+ function pi(i) {
611
611
  return L(i) ? Math.floor(i) : i;
612
612
  }
613
- function mi(i) {
613
+ function fi(i) {
614
614
  return L(i) ? Math.ceil(i) : i;
615
615
  }
616
- function gi(i) {
616
+ function mi(i) {
617
617
  return L(i) ? Math.abs(i) : i;
618
618
  }
619
- function _i(...i) {
619
+ function gi(...i) {
620
620
  const t = i.filter(L);
621
621
  return t.length > 0 ? Math.min(...t) : void 0;
622
622
  }
623
- function yi(...i) {
623
+ function _i(...i) {
624
624
  const t = i.filter(L);
625
625
  return t.length > 0 ? Math.max(...t) : void 0;
626
626
  }
627
627
  function Tt(...i) {
628
628
  return i.flat().filter(L).reduce((e, s) => e + s, 0);
629
629
  }
630
- function vi(...i) {
630
+ function yi(...i) {
631
631
  const t = i.flat().filter(L);
632
632
  return t.length > 0 ? Tt(t) / t.length : 0;
633
633
  }
634
634
  function It(i = 0, t = 1) {
635
635
  return Math.random() * (t - i) + i;
636
636
  }
637
- function bi(i, t) {
637
+ function vi(i, t) {
638
638
  return Math.floor(It(i, t + 1));
639
639
  }
640
- function xi(i, t = 2) {
640
+ function bi(i, t = 2) {
641
641
  return L(i) ? i.toFixed(t) : String(i);
642
642
  }
643
- function Ei(i, t = "CNY", e = 2) {
643
+ function xi(i, t = "CNY", e = 2) {
644
644
  return L(i) ? new Intl.NumberFormat("zh-CN", { style: "currency", currency: t, minimumFractionDigits: e, maximumFractionDigits: e }).format(i) : String(i);
645
645
  }
646
- function wi(i, t = 0) {
646
+ function Ei(i, t = 0) {
647
647
  return L(i) ? `${(i * 100).toFixed(t)}%` : String(i);
648
648
  }
649
- function ki(i, t = 0) {
649
+ function wi(i, t = 0) {
650
650
  return L(i) ? i.toFixed(t) : String(i);
651
651
  }
652
- function Ci(i, t = 6) {
652
+ function ki(i, t = 6) {
653
653
  return L(i) ? i.toPrecision(t) : String(i);
654
654
  }
655
- function Si(i) {
655
+ function Ci(i) {
656
656
  return Number.isNaN(i);
657
657
  }
658
- function Li(i) {
658
+ function Si(i) {
659
659
  return Number.isFinite(i);
660
660
  }
661
- function Di(i, t = 10) {
661
+ function Li(i, t = 10) {
662
662
  return Number.parseInt(i, t);
663
663
  }
664
- function Hi(i) {
664
+ function Di(i) {
665
665
  return Number.parseFloat(i);
666
666
  }
667
- function Mi(i, t = 0) {
667
+ function Hi(i, t = 0) {
668
668
  const e = Number(i);
669
669
  return isNaN(e) ? t : e;
670
670
  }
671
- function Ti(i, t, e = 0) {
671
+ function Mi(i, t, e = 0) {
672
672
  return !L(i) || !L(t) || t === 0 ? e : i / t;
673
673
  }
674
- function Ii(...i) {
674
+ function Ti(...i) {
675
675
  return i.reduce((t, e) => !L(t) || !L(e) ? 0 : t * e, 1);
676
676
  }
677
- const Ai = { isNumber: L, isInteger: oi, isFloat: li, isPositive: ci, isNegative: hi, isZero: di, clamp: ui, round: pi, floor: fi, ceil: mi, abs: gi, min: _i, max: yi, sum: Tt, average: vi, random: It, randomInt: bi, format: xi, formatCurrency: Ei, formatPercent: wi, toFixed: ki, toPrecision: Ci, isNaN: Si, isFinite: Li, parseInt: Di, parseFloat: Hi, toNumber: Mi, safeDivide: Ti, safeMultiply: Ii };
677
+ const Ii = { isNumber: L, isInteger: ai, isFloat: oi, isPositive: li, isNegative: ci, isZero: hi, clamp: di, round: ui, floor: pi, ceil: fi, abs: mi, min: gi, max: _i, sum: Tt, average: yi, random: It, randomInt: vi, format: bi, formatCurrency: xi, formatPercent: Ei, toFixed: wi, toPrecision: ki, isNaN: Ci, isFinite: Si, parseInt: Li, parseFloat: Di, toNumber: Hi, safeDivide: Mi, safeMultiply: Ti };
678
678
  function tt() {
679
679
  return Date.now();
680
680
  }
@@ -682,11 +682,11 @@ function K() {
682
682
  const i = /* @__PURE__ */ new Date();
683
683
  return i.setHours(0, 0, 0, 0), i;
684
684
  }
685
- function zi() {
685
+ function Ai() {
686
686
  const i = K();
687
687
  return i.setDate(i.getDate() + 1), i;
688
688
  }
689
- function Pi() {
689
+ function zi() {
690
690
  const i = K();
691
691
  return i.setDate(i.getDate() - 1), i;
692
692
  }
@@ -696,37 +696,37 @@ function w(i) {
696
696
  function At(i) {
697
697
  return w(i);
698
698
  }
699
- function $i(i) {
699
+ function Pi(i) {
700
700
  const t = new Date(i);
701
701
  return At(t) ? t : null;
702
702
  }
703
- function Bi(i, t = "YYYY-MM-DD HH:mm:ss") {
703
+ function $i(i, t = "YYYY-MM-DD HH:mm:ss") {
704
704
  if (!w(i)) return "";
705
705
  const e = i.getFullYear(), s = String(i.getMonth() + 1).padStart(2, "0"), n = String(i.getDate()).padStart(2, "0"), r = String(i.getHours()).padStart(2, "0"), a = String(i.getMinutes()).padStart(2, "0"), o = String(i.getSeconds()).padStart(2, "0"), l = String(i.getMilliseconds()).padStart(3, "0"), h = ["日", "一", "二", "三", "四", "五", "六"][i.getDay()];
706
706
  return t.replace("YYYY", e).replace("MM", s).replace("DD", n).replace("HH", r).replace("mm", a).replace("ss", o).replace("SSS", l).replace("D", i.getDate()).replace("M", i.getMonth() + 1).replace("H", i.getHours()).replace("m", i.getMinutes()).replace("s", i.getSeconds()).replace("W", h);
707
707
  }
708
- function qi(i) {
708
+ function Bi(i) {
709
709
  return w(i) ? i.toISOString() : "";
710
710
  }
711
- function Oi(i) {
711
+ function qi(i) {
712
712
  return w(i) ? new Date(i.toUTCString()) : null;
713
713
  }
714
- function Fi(i, t) {
714
+ function Oi(i, t) {
715
715
  if (!w(i)) return i;
716
716
  const e = new Date(i);
717
717
  return e.setDate(e.getDate() + t), e;
718
718
  }
719
- function Ni(i, t) {
719
+ function Fi(i, t) {
720
720
  if (!w(i)) return i;
721
721
  const e = new Date(i);
722
722
  return e.setHours(e.getHours() + t), e;
723
723
  }
724
- function Ri(i, t) {
724
+ function Ni(i, t) {
725
725
  if (!w(i)) return i;
726
726
  const e = new Date(i);
727
727
  return e.setMinutes(e.getMinutes() + t), e;
728
728
  }
729
- function Vi(i, t) {
729
+ function Ri(i, t) {
730
730
  if (!w(i)) return i;
731
731
  const e = new Date(i);
732
732
  return e.setSeconds(e.getSeconds() + t), e;
@@ -738,60 +738,60 @@ function et(i, t) {
738
738
  const s = new Date(t);
739
739
  return s.setHours(0, 0, 0, 0), Math.floor((e.getTime() - s.getTime()) / (1e3 * 60 * 60 * 24));
740
740
  }
741
- function Ki(i, t) {
741
+ function Vi(i, t) {
742
742
  return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / (1e3 * 60 * 60));
743
743
  }
744
- function Wi(i, t) {
744
+ function Ki(i, t) {
745
745
  return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / (1e3 * 60));
746
746
  }
747
- function Ui(i, t) {
747
+ function Wi(i, t) {
748
748
  return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / 1e3);
749
749
  }
750
- function Yi(i) {
750
+ function Ui(i) {
751
751
  return w(i) ? et(i, K()) === 0 : !1;
752
752
  }
753
- function Xi(i) {
753
+ function Yi(i) {
754
754
  return w(i) ? et(i, K()) === -1 : !1;
755
755
  }
756
- function ji(i) {
756
+ function Xi(i) {
757
757
  return w(i) ? et(i, K()) === 1 : !1;
758
758
  }
759
- function Ji(i) {
759
+ function ji(i) {
760
760
  return w(i) ? i.getTime() > tt() : !1;
761
761
  }
762
- function Zi(i) {
762
+ function Ji(i) {
763
763
  return w(i) ? i.getTime() < tt() : !1;
764
764
  }
765
- function Gi(i) {
765
+ function Zi(i) {
766
766
  if (!w(i)) return !1;
767
767
  const t = i.getFullYear();
768
768
  return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
769
769
  }
770
- function Qi(i) {
770
+ function Gi(i) {
771
771
  return w(i) ? new Date(i.getFullYear(), i.getMonth() + 1, 0).getDate() : 0;
772
772
  }
773
- function tn(i) {
773
+ function Qi(i) {
774
774
  if (!w(i)) return 0;
775
775
  const t = new Date(i.getFullYear(), 0, 1), e = i.getTime() - t.getTime();
776
776
  return Math.ceil(e / (1e3 * 60 * 60 * 24 * 7));
777
777
  }
778
- function en(i) {
778
+ function tn(i) {
779
779
  return w(i) ? Math.ceil((i.getMonth() + 1) / 3) : 0;
780
780
  }
781
- function sn(i) {
781
+ function en(i) {
782
782
  if (!w(i)) return i;
783
783
  const t = new Date(i);
784
784
  return t.setHours(0, 0, 0, 0), t;
785
785
  }
786
- function nn(i) {
786
+ function sn(i) {
787
787
  if (!w(i)) return i;
788
788
  const t = new Date(i);
789
789
  return t.setHours(23, 59, 59, 999), t;
790
790
  }
791
- function rn(i) {
791
+ function nn(i) {
792
792
  return w(i) ? new Date(i.getFullYear(), i.getMonth(), 1) : i;
793
793
  }
794
- function an(i) {
794
+ function rn(i) {
795
795
  return w(i) ? new Date(i.getFullYear(), i.getMonth() + 1, 0, 23, 59, 59, 999) : i;
796
796
  }
797
797
  function zt(i, t = 1) {
@@ -799,24 +799,24 @@ function zt(i, t = 1) {
799
799
  const e = new Date(i), s = e.getDay(), n = s >= t ? s - t : s + (7 - t);
800
800
  return e.setDate(e.getDate() - n), e.setHours(0, 0, 0, 0), e;
801
801
  }
802
- function on(i, t = 1) {
802
+ function an(i, t = 1) {
803
803
  if (!w(i)) return i;
804
804
  const e = zt(i, t), s = new Date(e);
805
805
  return s.setDate(s.getDate() + 6), s.setHours(23, 59, 59, 999), s;
806
806
  }
807
- function ln(i) {
807
+ function on(i) {
808
808
  if (!w(i)) return 0;
809
809
  const t = /* @__PURE__ */ new Date();
810
810
  let e = t.getFullYear() - i.getFullYear();
811
811
  return (t.getMonth() < i.getMonth() || t.getMonth() === i.getMonth() && t.getDate() < i.getDate()) && e--, Math.max(0, e);
812
812
  }
813
- function cn(i) {
813
+ function ln(i) {
814
814
  if (!w(i)) return "";
815
815
  const e = tt() - i.getTime(), s = 60 * 1e3, n = 60 * s, r = 24 * n, a = 7 * r, o = 30 * r, l = 365 * r;
816
816
  return e < s ? "刚刚" : e < n ? `${Math.floor(e / s)}分钟前` : e < r ? `${Math.floor(e / n)}小时前` : e < a ? `${Math.floor(e / r)}天前` : e < o ? `${Math.floor(e / a)}周前` : e < l ? `${Math.floor(e / o)}个月前` : `${Math.floor(e / l)}年前`;
817
817
  }
818
- const hn = { now: tt, today: K, tomorrow: zi, yesterday: Pi, isDate: w, isValid: At, parse: $i, format: Bi, toISO: qi, toUTC: Oi, addDays: Fi, addHours: Ni, addMinutes: Ri, addSeconds: Vi, diffDays: et, diffHours: Ki, diffMinutes: Wi, diffSeconds: Ui, isToday: Yi, isYesterday: Xi, isTomorrow: ji, isFuture: Ji, isPast: Zi, isLeapYear: Gi, getDaysInMonth: Qi, getWeekOfYear: tn, getQuarter: en, startOfDay: sn, endOfDay: nn, startOfMonth: rn, endOfMonth: an, startOfWeek: zt, endOfWeek: on, getAge: ln, fromNow: cn };
819
- function dn(i, t, e = {}) {
818
+ const cn = { now: tt, today: K, tomorrow: Ai, yesterday: zi, isDate: w, isValid: At, parse: Pi, format: $i, toISO: Bi, toUTC: qi, addDays: Oi, addHours: Fi, addMinutes: Ni, addSeconds: Ri, diffDays: et, diffHours: Vi, diffMinutes: Ki, diffSeconds: Wi, isToday: Ui, isYesterday: Yi, isTomorrow: Xi, isFuture: ji, isPast: Ji, isLeapYear: Zi, getDaysInMonth: Gi, getWeekOfYear: Qi, getQuarter: tn, startOfDay: en, endOfDay: sn, startOfMonth: nn, endOfMonth: rn, startOfWeek: zt, endOfWeek: an, getAge: on, fromNow: ln };
819
+ function hn(i, t, e = {}) {
820
820
  let s = null, n = null, r = null, a = 0;
821
821
  const o = e.leading || !1, l = e.trailing !== !1;
822
822
  function c() {
@@ -835,7 +835,7 @@ function dn(i, t, e = {}) {
835
835
  n = f, r = this, a = Date.now(), s ? (clearTimeout(s), s = setTimeout(d, u())) : h();
836
836
  };
837
837
  }
838
- function un(i, t, e = {}) {
838
+ function dn(i, t, e = {}) {
839
839
  let s = !1;
840
840
  const n = e.trailing || !1;
841
841
  let r = null, a = null;
@@ -848,13 +848,13 @@ function un(i, t, e = {}) {
848
848
  }, t));
849
849
  };
850
850
  }
851
- function pn(i) {
851
+ function un(i) {
852
852
  return /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(i || "");
853
853
  }
854
- function fn(i) {
854
+ function pn(i) {
855
855
  return /^1[3-9]\d{9}$/.test(i || "");
856
856
  }
857
- function mn(i) {
857
+ function fn(i) {
858
858
  return /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w.-]*)*\/?$/.test(i || "");
859
859
  }
860
860
  function Pt(i) {
@@ -863,16 +863,16 @@ function Pt(i) {
863
863
  function $t(i) {
864
864
  return /^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/.test(i || "");
865
865
  }
866
- function gn(i) {
866
+ function mn(i) {
867
867
  return Pt(i) || $t(i);
868
868
  }
869
- function _n(i) {
869
+ function gn(i) {
870
870
  return /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dXx]$/.test(i || "");
871
871
  }
872
- function yn(i) {
872
+ function _n(i) {
873
873
  return /^[A-Z][0-9]{8}$|^[A-Z]{2}[0-9]{7}$/.test(i || "");
874
874
  }
875
- function vn(i) {
875
+ function yn(i) {
876
876
  const t = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9]{2})[0-9]{12}|3[47][0-9]{13})$/, e = i.replace(/\s/g, "");
877
877
  if (!t.test(e)) return !1;
878
878
  let s = 0, n = !1;
@@ -895,93 +895,93 @@ function Ot(i) {
895
895
  const [, e, s, n, r] = t;
896
896
  return parseInt(e) >= 0 && parseInt(e) <= 255 && parseInt(s) >= 0 && parseInt(s) <= 255 && parseInt(n) >= 0 && parseInt(n) <= 255 && parseFloat(r) >= 0 && parseFloat(r) <= 1;
897
897
  }
898
- function bn(i) {
898
+ function vn(i) {
899
899
  return Bt(i) || qt(i) || Ot(i);
900
900
  }
901
- function xn(i) {
901
+ function bn(i) {
902
902
  return !isNaN(new Date(i).getTime());
903
903
  }
904
- function En(i) {
904
+ function xn(i) {
905
905
  try {
906
906
  return JSON.parse(i), !0;
907
907
  } catch {
908
908
  return !1;
909
909
  }
910
910
  }
911
- function wn(i) {
911
+ function En(i) {
912
912
  return !i || i.trim() === "";
913
913
  }
914
- function kn(i) {
914
+ function wn(i) {
915
915
  return /^\s+$/.test(i || "");
916
916
  }
917
- function Cn(i) {
917
+ function kn(i) {
918
918
  return !isNaN(parseFloat(i)) && isFinite(i);
919
919
  }
920
- function Sn(i) {
920
+ function Cn(i) {
921
921
  return /^-?\d+$/.test(i || "");
922
922
  }
923
- function Ln(i) {
923
+ function Sn(i) {
924
924
  return /^-?\d+\.\d+$/.test(i || "");
925
925
  }
926
- function Dn(i) {
926
+ function Ln(i) {
927
927
  const t = parseFloat(i);
928
928
  return !isNaN(t) && t > 0;
929
929
  }
930
- function Hn(i) {
930
+ function Dn(i) {
931
931
  const t = parseFloat(i);
932
932
  return !isNaN(t) && t < 0;
933
933
  }
934
- function Mn(i) {
934
+ function Hn(i) {
935
935
  return /^[a-zA-Z]+$/.test(i || "");
936
936
  }
937
- function Tn(i) {
937
+ function Mn(i) {
938
938
  return /^[a-zA-Z0-9]+$/.test(i || "");
939
939
  }
940
- function In(i) {
940
+ function Tn(i) {
941
941
  return /^[\u4e00-\u9fa5]+$/.test(i || "");
942
942
  }
943
- function An(i, t, e) {
943
+ function In(i, t, e) {
944
944
  const s = (i || "").length;
945
945
  return s >= t && (e === void 0 || s <= e);
946
946
  }
947
- function zn(i, t) {
947
+ function An(i, t) {
948
948
  return (i || "").length >= t;
949
949
  }
950
- function Pn(i, t) {
950
+ function zn(i, t) {
951
951
  return (i || "").length <= t;
952
952
  }
953
- function $n(i, t) {
953
+ function Pn(i, t) {
954
954
  return t instanceof RegExp ? t.test(i || "") : !1;
955
955
  }
956
- function Bn(i, t) {
956
+ function $n(i, t) {
957
957
  return String(i) === String(t);
958
958
  }
959
959
  function Ft(i, t) {
960
960
  return (i || "").includes(t);
961
961
  }
962
- function qn(i, t) {
962
+ function Bn(i, t) {
963
963
  return !Ft(i, t);
964
964
  }
965
- function On(i) {
965
+ function qn(i) {
966
966
  return Array.isArray(i);
967
967
  }
968
- function Fn(i, t, e) {
968
+ function On(i, t, e) {
969
969
  const s = i ? i.length : 0;
970
970
  return s >= t && (e === void 0 || s <= e);
971
971
  }
972
- function Nn(i, t) {
972
+ function Fn(i, t) {
973
973
  return i ? i.length >= t : !1;
974
974
  }
975
- function Rn(i, t) {
975
+ function Nn(i, t) {
976
976
  return i ? i.length <= t : !1;
977
977
  }
978
- function Vn(i) {
978
+ function Rn(i) {
979
979
  return i !== null && typeof i == "object" && !Array.isArray(i);
980
980
  }
981
- function Kn(i, t) {
981
+ function Vn(i, t) {
982
982
  return !i || !t || !Array.isArray(t) ? !1 : t.every((e) => Object.prototype.hasOwnProperty.call(i, e));
983
983
  }
984
- function Wn(i, t) {
984
+ function Kn(i, t) {
985
985
  const e = {};
986
986
  return Object.keys(t).forEach((s) => {
987
987
  const n = i[s], r = t[s], a = [];
@@ -996,8 +996,8 @@ function Wn(i, t) {
996
996
  }), a.length > 0 && (e[s] = a);
997
997
  }), { valid: Object.keys(e).length === 0, errors: e };
998
998
  }
999
- const Nt = { isEmail: pn, isPhone: fn, isURL: mn, isIPv4: Pt, isIPv6: $t, isIP: gn, isIDCard: _n, isPassport: yn, isCreditCard: vn, isHexColor: Bt, isRGB: qt, isRGBA: Ot, isColor: bn, isDate: xn, isJSON: En, isEmpty: wn, isWhitespace: kn, isNumber: Cn, isInteger: Sn, isFloat: Ln, isPositive: Dn, isNegative: Hn, isAlpha: Mn, isAlphaNumeric: Tn, isChinese: In, isLength: An, minLength: zn, maxLength: Pn, matches: $n, equals: Bn, contains: Ft, notContains: qn, isArray: On, arrayLength: Fn, arrayMinLength: Nn, arrayMaxLength: Rn, isObject: Vn, hasKeys: Kn, validate: Wn };
1000
- function Un(i) {
999
+ const Nt = { isEmail: un, isPhone: pn, isURL: fn, isIPv4: Pt, isIPv6: $t, isIP: mn, isIDCard: gn, isPassport: _n, isCreditCard: yn, isHexColor: Bt, isRGB: qt, isRGBA: Ot, isColor: vn, isDate: bn, isJSON: xn, isEmpty: En, isWhitespace: wn, isNumber: kn, isInteger: Cn, isFloat: Sn, isPositive: Ln, isNegative: Dn, isAlpha: Hn, isAlphaNumeric: Mn, isChinese: Tn, isLength: In, minLength: An, maxLength: zn, matches: Pn, equals: $n, contains: Ft, notContains: Bn, isArray: qn, arrayLength: On, arrayMinLength: Fn, arrayMaxLength: Nn, isObject: Rn, hasKeys: Vn, validate: Kn };
1000
+ function Wn(i) {
1001
1001
  const t = i ? String(i) : "", e = [1732584193, 4023233417, 2562383102, 271733878], s = [3614090360, 3905402710, 606105819, 3250441966, 4118548399, 1200080426, 2821735955, 4249261313, 1770035416, 2336552879, 4294925233, 2304563134, 1804603682, 4254626195, 2792965006, 1236535329, 4129170786, 3225465664, 643717713, 3921069994, 3593408605, 38016083, 3634488961, 3889429448, 568446438, 3275163606, 4107603335, 1163531501, 2850285829, 4243563512, 1735328473, 2368359562, 4294588738, 2272392833, 1839030562, 4259657740, 2763975236, 1272893353, 4139469664, 3200236656, 681279174, 3936430074, 3572445317, 76029189, 3654602809, 3873151461, 530742520, 3299628645, 4096336452, 1126891415, 2878612391, 4237533241, 1700485571, 2399980690, 4293915773, 2240044497, 1873313359, 4264355552, 2734768916, 1309151649, 4149444226, 3174756917, 718787259, 3951481745], n = [[7, 12, 17, 22], [5, 9, 14, 20], [4, 11, 16, 23], [6, 10, 15, 21]];
1002
1002
  function r(d, u) {
1003
1003
  return d << u | d >>> 32 - u;
@@ -1037,7 +1037,7 @@ function Un(i) {
1037
1037
  h += (d >>> 8 * u & 255).toString(16).padStart(2, "0");
1038
1038
  }), h;
1039
1039
  }
1040
- function Yn(i) {
1040
+ function Un(i) {
1041
1041
  const t = i ? String(i) : "", e = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298];
1042
1042
  function s(c, h) {
1043
1043
  return c >>> h | c << 32 - h;
@@ -1078,7 +1078,7 @@ function Yn(i) {
1078
1078
  l += (c >>> 8 * h & 255).toString(16).padStart(2, "0");
1079
1079
  }), l;
1080
1080
  }
1081
- function Xn(i) {
1081
+ function Yn(i) {
1082
1082
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1083
1083
  let e = "", s = 0;
1084
1084
  const n = i ? i.split("").map((r) => r.charCodeAt(0)) : [];
@@ -1088,7 +1088,7 @@ function Xn(i) {
1088
1088
  }
1089
1089
  return e;
1090
1090
  }
1091
- function jn(i) {
1091
+ function Xn(i) {
1092
1092
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1093
1093
  let e = "", s = 0;
1094
1094
  for (i = i.replace(/[^A-Za-z0-9+/=]/g, ""); s < i.length; ) {
@@ -1097,13 +1097,13 @@ function jn(i) {
1097
1097
  }
1098
1098
  return e;
1099
1099
  }
1100
- function Jn() {
1100
+ function jn() {
1101
1101
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (i) => {
1102
1102
  const t = Math.random() * 16 | 0;
1103
1103
  return (i === "x" ? t : t & 3 | 8).toString(16);
1104
1104
  });
1105
1105
  }
1106
- const Zn = { md5: Un, sha256: Yn, base64Encode: Xn, base64Decode: jn, uuid: Jn }, B = /* @__PURE__ */ new Map();
1106
+ const Jn = { md5: Wn, sha256: Un, base64Encode: Yn, base64Decode: Xn, uuid: jn }, B = /* @__PURE__ */ new Map();
1107
1107
  async function Z(i, t = {}) {
1108
1108
  const { crossOrigin: e = "anonymous" } = t;
1109
1109
  return B.has(i) ? B.get(i) : new Promise((s, n) => {
@@ -1115,7 +1115,7 @@ async function Z(i, t = {}) {
1115
1115
  }, r.src = i;
1116
1116
  });
1117
1117
  }
1118
- async function Gn(i, t = {}) {
1118
+ async function Zn(i, t = {}) {
1119
1119
  const { parallel: e = !0 } = t;
1120
1120
  if (e) return Promise.all(i.map((n) => Z(n, t)));
1121
1121
  const s = [];
@@ -1145,7 +1145,7 @@ async function Vt(i, t = {}) {
1145
1145
  }, document.head.appendChild(r);
1146
1146
  });
1147
1147
  }
1148
- async function Qn(i, t, e = {}) {
1148
+ async function Gn(i, t, e = {}) {
1149
1149
  const { weight: s = "normal", style: n = "normal" } = e, r = new FontFace(i, `url(${t})`, { weight: s, style: n });
1150
1150
  try {
1151
1151
  return await r.load(), document.fonts.add(r), r;
@@ -1153,7 +1153,7 @@ async function Qn(i, t, e = {}) {
1153
1153
  throw new Error(`Failed to load font: ${i}`);
1154
1154
  }
1155
1155
  }
1156
- async function tr(i, t = "image") {
1156
+ async function Qn(i, t = "image") {
1157
1157
  switch (t) {
1158
1158
  case "image":
1159
1159
  return Z(i);
@@ -1166,28 +1166,28 @@ async function tr(i, t = "image") {
1166
1166
  throw new Error(`Unsupported preload type: ${t}`);
1167
1167
  }
1168
1168
  }
1169
- function er(i) {
1169
+ function tr(i) {
1170
1170
  return B.has(i);
1171
1171
  }
1172
- function sr() {
1172
+ function er() {
1173
1173
  B.clear();
1174
1174
  }
1175
- function ir(i) {
1175
+ function sr(i) {
1176
1176
  B.delete(i);
1177
1177
  }
1178
- const nr = { loadImage: Z, loadImages: Gn, loadScript: Rt, loadStylesheet: Vt, loadFont: Qn, preload: tr, isLoaded: er, clearCache: sr, clearCacheByUrl: ir }, Aa = {
1179
- string: Ze,
1180
- array: Fs,
1181
- object: ai,
1182
- number: Ai,
1183
- date: hn,
1184
- debounce: dn,
1185
- throttle: un,
1178
+ const ir = { loadImage: Z, loadImages: Zn, loadScript: Rt, loadStylesheet: Vt, loadFont: Gn, preload: Qn, isLoaded: tr, clearCache: er, clearCacheByUrl: sr }, Aa = {
1179
+ string: Je,
1180
+ array: Os,
1181
+ object: ri,
1182
+ number: Ii,
1183
+ date: cn,
1184
+ debounce: hn,
1185
+ throttle: dn,
1186
1186
  validator: Nt,
1187
- crypto: Zn,
1188
- preload: nr
1187
+ crypto: Jn,
1188
+ preload: ir
1189
1189
  };
1190
- function rr(i) {
1190
+ function nr(i) {
1191
1191
  if (!i) return "";
1192
1192
  let t = String(i);
1193
1193
  const e = /<\s*(script|iframe|object|embed|applet|form|base|link|meta|style)\b[^>]*>[\s\S]*?<\s*\/\s*\1\s*>|<\s*(script|iframe|object|embed|applet|form|base|link|meta|style)\b[^>]*\/?>/gi;
@@ -1242,7 +1242,7 @@ const g = {
1242
1242
  path: Symbol("reactive_path"),
1243
1243
  isReactive: Symbol("reactive_is_reactive")
1244
1244
  };
1245
- class ar {
1245
+ class rr {
1246
1246
  constructor() {
1247
1247
  this.rawData = {}, this.data = null, this.observers = {}, this.elements = {}, this.computedProperties = {}, this.pathTrie = new nt(), this.updateQueue = /* @__PURE__ */ new Map(), this.isProcessing = !1, this.pendingComputed = /* @__PURE__ */ new Set(), this.persistedKeys = /* @__PURE__ */ new Map(), this.snapshots = [], this.snapshotLimit = 10, this._proxyCache = /* @__PURE__ */ new WeakMap(), this.createReactiveData();
1248
1248
  }
@@ -1382,7 +1382,7 @@ class ar {
1382
1382
  t.textContent !== String(e ?? "") && (t.textContent = e ?? "");
1383
1383
  break;
1384
1384
  case "html":
1385
- const c = rr(e);
1385
+ const c = nr(e);
1386
1386
  t.innerHTML !== c && (t.innerHTML = c);
1387
1387
  break;
1388
1388
  case "value":
@@ -1779,7 +1779,7 @@ class gt {
1779
1779
  };
1780
1780
  }
1781
1781
  }
1782
- class or {
1782
+ class ar {
1783
1783
  constructor() {
1784
1784
  this.stores = /* @__PURE__ */ new Map();
1785
1785
  }
@@ -1797,7 +1797,7 @@ class or {
1797
1797
  this.stores.clear();
1798
1798
  }
1799
1799
  }
1800
- class lr {
1800
+ class or {
1801
1801
  constructor() {
1802
1802
  this.events = {}, this.delegatedEvents = {}, this.eventListeners = {};
1803
1803
  }
@@ -1874,7 +1874,7 @@ function I(i = null) {
1874
1874
  }
1875
1875
  }), t;
1876
1876
  }
1877
- const O = new ar(), za = new lr(), Kt = new or();
1877
+ const O = new rr(), za = new or(), Kt = new ar();
1878
1878
  function Pa(i, t) {
1879
1879
  return Kt.createStore(i, t);
1880
1880
  }
@@ -1977,12 +1977,12 @@ const T = {
1977
1977
  }
1978
1978
  };
1979
1979
  function Ba(i) {
1980
- Ut(T, i);
1980
+ Wt(T, i);
1981
1981
  }
1982
1982
  function dt(i) {
1983
1983
  return i ? mr(T, i) : T;
1984
1984
  }
1985
- function Wt() {
1985
+ function lr() {
1986
1986
  return T.paths.base + T.paths.icons.replace(/^\//, "");
1987
1987
  }
1988
1988
  function qa() {
@@ -2018,15 +2018,15 @@ function pr() {
2018
2018
  function fr() {
2019
2019
  return T.validation;
2020
2020
  }
2021
- function Ut(i, t) {
2021
+ function Wt(i, t) {
2022
2022
  for (const e in t)
2023
- t[e] instanceof Object && e in i && i[e] instanceof Object ? Ut(i[e], t[e]) : i[e] = t[e];
2023
+ t[e] instanceof Object && e in i && i[e] instanceof Object ? Wt(i[e], t[e]) : i[e] = t[e];
2024
2024
  return i;
2025
2025
  }
2026
2026
  function mr(i, t) {
2027
2027
  return t.split(".").reduce((e, s) => (e && e[s]) !== void 0 ? e[s] : void 0, i);
2028
2028
  }
2029
- const Yt = "kupola-theme", Xt = "kupola-brand", X = [
2029
+ const Ut = "kupola-theme", Yt = "kupola-brand", X = [
2030
2030
  { id: "green", name: "翠绿", color: "#32F08C" },
2031
2031
  { id: "xionghuang", name: "雄黄", color: "#FF9900" },
2032
2032
  { id: "jianghuang", name: "姜黄", color: "#E2C027" },
@@ -2040,11 +2040,11 @@ const Yt = "kupola-theme", Xt = "kupola-brand", X = [
2040
2040
  { id: "roulan", name: "柔蓝", color: "#106898" }
2041
2041
  ];
2042
2042
  function R() {
2043
- return localStorage.getItem(Yt) || cr();
2043
+ return localStorage.getItem(Ut) || cr();
2044
2044
  }
2045
2045
  function at(i) {
2046
2046
  if (i !== "dark" && i !== "light") return;
2047
- document.documentElement.setAttribute("data-theme", i), localStorage.setItem(Yt, i);
2047
+ document.documentElement.setAttribute("data-theme", i), localStorage.setItem(Ut, i);
2048
2048
  const t = document.querySelector("[data-theme-toggle]");
2049
2049
  if (t) {
2050
2050
  t.setAttribute("data-current-theme", i);
@@ -2056,12 +2056,12 @@ function at(i) {
2056
2056
  }
2057
2057
  }
2058
2058
  function J() {
2059
- return localStorage.getItem(Xt) || hr();
2059
+ return localStorage.getItem(Yt) || hr();
2060
2060
  }
2061
2061
  function ot(i) {
2062
2062
  const t = X.find((n) => n.id === i);
2063
2063
  if (!t) return;
2064
- document.documentElement.setAttribute("data-brand", i), localStorage.setItem(Xt, i);
2064
+ document.documentElement.setAttribute("data-brand", i), localStorage.setItem(Yt, i);
2065
2065
  const e = document.querySelector("[data-brand-toggle]");
2066
2066
  if (e) {
2067
2067
  e.setAttribute("data-current-brand", i);
@@ -2077,7 +2077,7 @@ function ot(i) {
2077
2077
  function _t(i) {
2078
2078
  const t = i.querySelector(".theme-icon");
2079
2079
  if (t) {
2080
- const e = R(), s = Wt();
2080
+ const e = R(), s = t.src.substring(0, t.src.lastIndexOf("/") + 1);
2081
2081
  t.src = e === "dark" ? s + "sun.svg" : s + "moon.svg";
2082
2082
  }
2083
2083
  }
@@ -2127,7 +2127,7 @@ function Fa() {
2127
2127
  i.setAttribute("data-theme-toggle", ""), i.setAttribute("data-current-theme", R()), i.className = "ds-btn ds-btn--ghost ds-btn--sm ds-btn--icon", i.style.position = "fixed", i.style.top = "16px", i.style.right = "16px", i.style.zIndex = "9999";
2128
2128
  const t = document.createElement("img");
2129
2129
  t.className = "theme-icon";
2130
- const e = Wt();
2130
+ const e = lr();
2131
2131
  return t.src = R() === "dark" ? e + "sun.svg" : e + "moon.svg", t.width = 14, t.height = 14, t.alt = "Toggle theme", i.appendChild(t), document.body.appendChild(i), i.onclick = function(s) {
2132
2132
  s.preventDefault();
2133
2133
  const r = R() === "dark" ? "light" : "dark";
@@ -2670,7 +2670,7 @@ function Ga(i, t) {
2670
2670
  cssClass: t.cssClass
2671
2671
  });
2672
2672
  }
2673
- class jt {
2673
+ class Xt {
2674
2674
  constructor(t = {}) {
2675
2675
  const e = dt();
2676
2676
  this.locales = t.locales || {}, this.currentLocale = t.defaultLocale || e.i18n?.locale || "zh-CN", this.fallbackLocale = t.fallbackLocale || e.i18n?.fallbackLocale || "en-US", this.delimiter = t.delimiter || ".", this.missingHandler = t.missingHandler || ((s) => (console.warn(`Missing translation: ${s}`), s)), this._initFromDOM();
@@ -2768,9 +2768,9 @@ class jt {
2768
2768
  return new Intl.RelativeTimeFormat(n, s).format(t, e);
2769
2769
  }
2770
2770
  }
2771
- const N = new jt();
2771
+ const N = new Xt();
2772
2772
  function Qa(i) {
2773
- return new jt(i);
2773
+ return new Xt(i);
2774
2774
  }
2775
2775
  function to(i, t = {}) {
2776
2776
  return N.t(i, t);
@@ -3083,25 +3083,25 @@ class Er {
3083
3083
  }), this._mouseenterHandler && this.menu.removeEventListener("mouseenter", this._mouseenterHandler), this._mouseleaveHandler && this.menu.removeEventListener("mouseleave", this._mouseleaveHandler)), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this.appendToBody && this._originalParent && this._restoreMenuFromBody(), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._itemClickHandler = null, this._keydownHandler = null, this._mouseenterHandler = null, this._mouseleaveHandler = null, this._triggerMouseenterHandler = null, this._triggerMouseleaveHandler = null, this._triggerKeydownHandler = null, this.element.__kupolaInitialized = !1);
3084
3084
  }
3085
3085
  }
3086
- function Jt(i, t) {
3086
+ function jt(i, t) {
3087
3087
  i._kupolaDropdown && i._kupolaDropdown.destroy();
3088
3088
  const e = new Er(i, t);
3089
3089
  e.init(), i._kupolaDropdown = e;
3090
3090
  }
3091
3091
  function go(i = document) {
3092
3092
  i.querySelectorAll(".ds-dropdown").forEach((t) => {
3093
- Jt(t);
3093
+ jt(t);
3094
3094
  });
3095
3095
  }
3096
- function Zt(i) {
3096
+ function Jt(i) {
3097
3097
  i._kupolaDropdown && (i._kupolaDropdown.destroy(), i._kupolaDropdown = null);
3098
3098
  }
3099
3099
  function _o() {
3100
3100
  document.querySelectorAll(".ds-dropdown").forEach((i) => {
3101
- Zt(i);
3101
+ Jt(i);
3102
3102
  });
3103
3103
  }
3104
- E.register("dropdown", Jt, Zt);
3104
+ E.register("dropdown", jt, Jt);
3105
3105
  class wr {
3106
3106
  constructor(t, e = {}) {
3107
3107
  this.element = t, this.trigger = t.querySelector(".ds-select__trigger"), this.valueEl = t.querySelector(".ds-select__value") || t.querySelector(".ds-select__trigger span"), this.optionsEl = t.querySelector(".ds-select__options") || t.querySelector(".ds-select__menu"), this.nativeSelect = t.querySelector("select"), this.icon = t.querySelector(".ds-select__icon"), this.scope = `select-${Math.random().toString(36).substr(2, 9)}`, this.multiple = e.multiple || t.hasAttribute("data-select-multiple"), this.searchable = e.searchable || t.hasAttribute("data-select-search"), this.clearable = e.clearable || t.hasAttribute("data-select-clear"), this.placeholder = e.placeholder || t.getAttribute("data-select-placeholder") || "", this.disabled = e.disabled || t.hasAttribute("data-select-disabled"), this.maxSelection = e.maxSelection || parseInt(t.getAttribute("data-select-max")) || 1 / 0, this.remoteMethod = e.remoteMethod || null, this.onChange = e.onChange || null, this.appendToBody = e.appendToBody !== !1, this.isOpen = !1, this.selectedValues = /* @__PURE__ */ new Set(), this.allOptions = [], this.filteredOptions = [], this.focusIndex = -1, this.searchInput = null, this.clearBtn = null, this.tagsWrap = null, this._originalParent = null, this._originalPosition = null, this._triggerClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._optionClickHandler = null, this._keydownHandler = null;
@@ -3348,19 +3348,19 @@ class wr {
3348
3348
  }), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this.searchInput && this.searchInput.remove(), this.clearBtn && this.clearBtn.remove(), this.tagsWrap && this.tagsWrap.remove(), this.appendToBody && this._originalParent && this._restoreOptionsFromBody(), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._optionClickHandler = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
3349
3349
  }
3350
3350
  }
3351
- function Gt(i, t) {
3351
+ function Zt(i, t) {
3352
3352
  const e = new wr(i, t);
3353
3353
  e.init(), i._kupolaSelect = e;
3354
3354
  }
3355
3355
  function yo(i = document) {
3356
3356
  i.querySelectorAll(".ds-select").forEach((t) => {
3357
- Gt(t);
3357
+ Zt(t);
3358
3358
  });
3359
3359
  }
3360
3360
  function kr(i) {
3361
3361
  i._kupolaSelect && (i._kupolaSelect.destroy(), i._kupolaSelect = null);
3362
3362
  }
3363
- E.register("select", Gt, kr);
3363
+ E.register("select", Zt, kr);
3364
3364
  class Cr {
3365
3365
  constructor(t, e = {}) {
3366
3366
  this.element = t, this.input = t.querySelector("input"), this.endInput = t.querySelector(".ds-datepicker__end-input"), this.icon = t.querySelector(".ds-datepicker__icon"), this.calendarEl = t.querySelector(".ds-datepicker__calendar"), this.scope = `datepicker-${Math.random().toString(36).substr(2, 9)}`;
@@ -3624,19 +3624,19 @@ class Cr {
3624
3624
  }), this.appendToBody && this._originalParent && this._restoreCalendarFromBody(), this._documentClickHandler = null, this._resizeHandler = null, this._documentClickListener = null, this._resizeListener = null, this._iconClickHandler = null, this._inputClickHandler = null, this._endInputClickHandler = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
3625
3625
  }
3626
3626
  }
3627
- function Qt(i, t) {
3627
+ function Gt(i, t) {
3628
3628
  const e = new Cr(i, t);
3629
3629
  e.init(), i._kupolaDatepicker = e;
3630
3630
  }
3631
3631
  function vo(i = document) {
3632
3632
  i.querySelectorAll(".ds-datepicker").forEach((t) => {
3633
- Qt(t);
3633
+ Gt(t);
3634
3634
  });
3635
3635
  }
3636
3636
  function Sr(i) {
3637
3637
  i._kupolaDatepicker && (i._kupolaDatepicker.destroy(), i._kupolaDatepicker = null);
3638
3638
  }
3639
- E.register("datepicker", Qt, Sr);
3639
+ E.register("datepicker", Gt, Sr);
3640
3640
  class Lr {
3641
3641
  constructor(t, e = {}) {
3642
3642
  this.element = t, this.input = t.querySelector("input"), this.inputWrap = t.querySelector(".ds-timepicker__input-wrap"), this.panelEl = null, this.scope = `timepicker-${Math.random().toString(36).substr(2, 9)}`, this.showSeconds = e.showSeconds || t.hasAttribute("data-timepicker-seconds"), this.use12Hour = e.use12Hour || t.hasAttribute("data-timepicker-12h"), this.hourStep = e.hourStep || parseInt(t.getAttribute("data-timepicker-hour-step")) || 1, this.minuteStep = e.minuteStep || parseInt(t.getAttribute("data-timepicker-minute-step")) || 5, this.secondStep = e.secondStep || parseInt(t.getAttribute("data-timepicker-second-step")) || 5, this.minTime = e.minTime || t.getAttribute("data-timepicker-min") || null, this.maxTime = e.maxTime || t.getAttribute("data-timepicker-max") || null, this.disabledTime = e.disabledTime || null, this.placeholder = e.placeholder || t.getAttribute("data-timepicker-placeholder") || "", this.clearable = e.clearable || t.hasAttribute("data-timepicker-clear"), this.onChange = e.onChange || null, this.selectedHour = 12, this.selectedMinute = 0, this.selectedSecond = 0, this.isPM = !1, this._inputWrapClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._resizeHandler = null, this._resizeListener = null, this._keydownHandler = null;
@@ -3819,19 +3819,19 @@ class Lr {
3819
3819
  this.element.__kupolaInitialized && (this.inputWrap && this._inputWrapClickHandler && this.inputWrap.removeEventListener("click", this._inputWrapClickHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this._resizeListener && this._resizeListener.unsubscribe ? this._resizeListener.unsubscribe() : this._resizeHandler && window.removeEventListener("resize", this._resizeHandler), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this.panelEl && (this.panelEl.remove(), this.panelEl = null), this._inputWrapClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._resizeHandler = null, this._resizeListener = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
3820
3820
  }
3821
3821
  }
3822
- function te(i, t) {
3822
+ function Qt(i, t) {
3823
3823
  const e = new Lr(i, t);
3824
3824
  e.init(), i._kupolaTimepicker = e;
3825
3825
  }
3826
3826
  function bo(i = document) {
3827
3827
  i.querySelectorAll(".ds-timepicker").forEach((t) => {
3828
- te(t);
3828
+ Qt(t);
3829
3829
  });
3830
3830
  }
3831
3831
  function Dr(i) {
3832
3832
  i._kupolaTimepicker && (i._kupolaTimepicker.destroy(), i._kupolaTimepicker = null);
3833
3833
  }
3834
- E.register("timepicker", te, Dr);
3834
+ E.register("timepicker", Qt, Dr);
3835
3835
  class Hr {
3836
3836
  constructor(t, e = {}) {
3837
3837
  if (this.element = t, this.track = t.querySelector(".ds-slider__track"), this.fill = t.querySelector(".ds-slider__fill"), this.input = t.querySelector(".ds-slider__input"), this.valueEl = t.querySelector(".ds-slider__value"), this.range = e.range || t.hasAttribute("data-slider-range"), this.vertical = e.vertical || t.hasAttribute("data-slider-vertical"), this.disabled = e.disabled || t.hasAttribute("data-slider-disabled"), this.showTooltip = e.showTooltip !== !1, this.showMarks = e.marks || t.hasAttribute("data-slider-marks"), this.markStep = e.markStep || parseInt(t.getAttribute("data-slider-mark-step")) || 10, this.tooltipFormat = e.tooltipFormat || ((s) => s), this.onChange = e.onChange || null, this.onInput = e.onInput || null, this.inputEnd = t.querySelector(".ds-slider__input--end"), this.fillEnd = null, this.thumbStart = null, this.thumbEnd = null, this.tooltipStart = null, this.tooltipEnd = null, this.marksEl = null, this._listeners = [], this._isDragging = !1, this._activeThumb = null, !this.track || !this.fill)
@@ -3980,7 +3980,7 @@ class Hr {
3980
3980
  this.disabled = !0, this.element.classList.add("is-disabled");
3981
3981
  }
3982
3982
  }
3983
- function ee(i, t) {
3983
+ function te(i, t) {
3984
3984
  if (!i.__kupolaInitialized)
3985
3985
  try {
3986
3986
  const e = new Hr(i, t);
@@ -3995,10 +3995,10 @@ function Mr(i) {
3995
3995
  }
3996
3996
  function xo() {
3997
3997
  document.querySelectorAll(".ds-slider").forEach((i) => {
3998
- ee(i);
3998
+ te(i);
3999
3999
  });
4000
4000
  }
4001
- E.register("slider", ee, Mr);
4001
+ E.register("slider", te, Mr);
4002
4002
  class Tr {
4003
4003
  constructor(t, e = {}) {
4004
4004
  this.element = t, this.track = t.querySelector(".ds-carousel__track"), this.items = t.querySelectorAll(".ds-carousel__item"), this.prevBtn = t.querySelector(".ds-carousel__prev"), this.nextBtn = t.querySelector(".ds-carousel__next"), this.indicators = t.querySelectorAll(".ds-carousel__indicator"), this.autoBtn = t.querySelector(".ds-carousel__auto"), this.mode = e.mode || t.getAttribute("data-carousel-mode") || "slide", this.vertical = e.vertical || t.hasAttribute("data-carousel-vertical"), this.autoPlay = e.autoPlay !== !1, this.interval = e.interval || parseInt(t.getAttribute("data-carousel-interval")) || 3e3, this.transitionDuration = e.transitionDuration || parseInt(t.getAttribute("data-carousel-duration")) || 500, this.loop = e.loop !== !1, this.pauseOnHover = e.pauseOnHover !== !1, this.swipe = e.swipe !== !1, this.swipeThreshold = e.swipeThreshold || 50, this.keyboardNav = e.keyboardNav || t.hasAttribute("data-carousel-keyboard"), this.onChange = e.onChange || null, this.currentIndex = 0, this.totalItems = this.items.length, this.autoPlayTimer = null, this.isAutoPlaying = !1, this.isTransitioning = !1, this.touchStartX = 0, this.touchStartY = 0, this.touchDeltaX = 0, this.touchDeltaY = 0, this.isSwiping = !1, this._mouseEnterHandler = () => {
@@ -4080,21 +4080,21 @@ class Tr {
4080
4080
  }), this._touchStartHandler && this.element.removeEventListener("touchstart", this._touchStartHandler), this._touchMoveHandler && this.element.removeEventListener("touchmove", this._touchMoveHandler), this._touchEndHandler && this.element.removeEventListener("touchend", this._touchEndHandler), this._keydownHandler && this.element.removeEventListener("keydown", this._keydownHandler), this._prevClickHandler = null, this._nextClickHandler = null, this._autoClickHandler = null, this._indicatorClickHandlers = null;
4081
4081
  }
4082
4082
  }
4083
- function se(i, t) {
4083
+ function ee(i, t) {
4084
4084
  if (i.__kupolaInitialized) return;
4085
4085
  const e = new Tr(i, t);
4086
4086
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
4087
4087
  }
4088
4088
  function Eo(i = document) {
4089
4089
  i.querySelectorAll(".ds-carousel").forEach((t) => {
4090
- se(t);
4090
+ ee(t);
4091
4091
  });
4092
4092
  }
4093
4093
  function Ir(i) {
4094
4094
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4095
4095
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4096
4096
  }
4097
- E.register("carousel", se, Ir);
4097
+ E.register("carousel", ee, Ir);
4098
4098
  class Ar {
4099
4099
  constructor(t, e = {}) {
4100
4100
  this.element = t, this.mask = t.querySelector(".ds-drawer-mask"), this.drawerEl = t.querySelector(".ds-drawer"), this.placement = e.placement || t.getAttribute("data-drawer-placement") || "right", this.width = e.width || t.getAttribute("data-drawer-width") || "400px", this.height = e.height || t.getAttribute("data-drawer-height") || "400px", this.escClose = e.escClose !== !1, this.maskClosable = e.maskClosable !== !1, this.showMask = e.showMask !== !1, this.onOpen = e.onOpen || null, this.onClose = e.onClose || null, this.onBeforeClose = e.onBeforeClose || null, this._keydownHandler = null, this._bindEvents();
@@ -4193,7 +4193,7 @@ class $ {
4193
4193
  }
4194
4194
  }
4195
4195
  $._openCount = 0;
4196
- function ie(i = {}) {
4196
+ function se(i = {}) {
4197
4197
  const {
4198
4198
  title: t = "",
4199
4199
  content: e = "",
@@ -4260,30 +4260,30 @@ function ie(i = {}) {
4260
4260
  m && m(), k.close();
4261
4261
  };
4262
4262
  D && D.addEventListener("click", pt), q && q.addEventListener("click", ft);
4263
- const ke = () => {
4263
+ const we = () => {
4264
4264
  setTimeout(() => {
4265
4265
  D && D.removeEventListener("click", pt), q && q.removeEventListener("click", ft), k.destroy(), C.remove(), _ && _(ut);
4266
4266
  }, 300);
4267
- }, Ce = k.close.bind(k);
4267
+ }, ke = k.close.bind(k);
4268
4268
  return k.close = () => {
4269
- Ce(), ke();
4269
+ ke(), we();
4270
4270
  }, k.open(), y && setTimeout(() => y(), 50), k;
4271
4271
  }
4272
4272
  function ko(i) {
4273
- return typeof i == "string" && (i = { content: i }), ie({
4273
+ return typeof i == "string" && (i = { content: i }), se({
4274
4274
  ...i,
4275
4275
  showCancel: !0,
4276
4276
  showConfirm: !0
4277
4277
  });
4278
4278
  }
4279
4279
  function Co(i) {
4280
- return typeof i == "string" && (i = { content: i }), ie({
4280
+ return typeof i == "string" && (i = { content: i }), se({
4281
4281
  ...i,
4282
4282
  showCancel: !1,
4283
4283
  showConfirm: !0
4284
4284
  });
4285
4285
  }
4286
- function ne(i) {
4286
+ function ie(i) {
4287
4287
  if (i.__kupolaInitialized)
4288
4288
  return;
4289
4289
  const t = new $(i);
@@ -4296,10 +4296,10 @@ function Pr(i) {
4296
4296
  }
4297
4297
  function So() {
4298
4298
  document.querySelectorAll(".ds-modal-container").forEach((i) => {
4299
- ne(i);
4299
+ ie(i);
4300
4300
  });
4301
4301
  }
4302
- E.register("modal", ne, Pr);
4302
+ E.register("modal", ie, Pr);
4303
4303
  class Lo {
4304
4304
  static normal(t = {}) {
4305
4305
  return this._create({ type: "normal", ...t });
@@ -4629,7 +4629,7 @@ class $r {
4629
4629
  }), this._listeners = null, this.files = [], this.dropzone = null, this.input = null, this.list = null, this.progress = null, this.preview = null, this.element = null;
4630
4630
  }
4631
4631
  }
4632
- function re(i) {
4632
+ function ne(i) {
4633
4633
  if (i.__kupolaInitialized) return;
4634
4634
  const t = new $r(i);
4635
4635
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
@@ -4640,10 +4640,10 @@ function Br(i) {
4640
4640
  }
4641
4641
  function Io() {
4642
4642
  document.querySelectorAll(".ds-fileupload").forEach((i) => {
4643
- re(i);
4643
+ ne(i);
4644
4644
  });
4645
4645
  }
4646
- E.register("fileupload", re, Br);
4646
+ E.register("fileupload", ne, Br);
4647
4647
  class qr {
4648
4648
  constructor(t, e = {}) {
4649
4649
  this.element = t, this.headers = [], this._listeners = [], this.accordion = e.accordion || t.hasAttribute("data-collapse-accordion"), this.animationDuration = e.animationDuration || parseInt(t.getAttribute("data-collapse-duration")) || 300, this.disabledItems = e.disabledItems || [], this.defaultExpanded = e.defaultExpanded || [], this._init();
@@ -4726,7 +4726,7 @@ class qr {
4726
4726
  this.headers[t] && (this.headers[t].isDisabled = !1, this.headers[t].item.classList.remove("is-disabled"));
4727
4727
  }
4728
4728
  }
4729
- function ae(i, t) {
4729
+ function re(i, t) {
4730
4730
  if (i.__kupolaInitialized) return;
4731
4731
  const e = new qr(i, t);
4732
4732
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
@@ -4737,10 +4737,10 @@ function Or(i) {
4737
4737
  }
4738
4738
  function Ao() {
4739
4739
  document.querySelectorAll(".ds-collapse").forEach((i) => {
4740
- ae(i);
4740
+ re(i);
4741
4741
  });
4742
4742
  }
4743
- E.register("collapse", ae, Or);
4743
+ E.register("collapse", re, Or);
4744
4744
  class Fr {
4745
4745
  constructor(t, e = {}) {
4746
4746
  this.element = t, this.trigger = t.querySelector(".ds-color-picker__trigger"), this.panel = t.querySelector(".ds-color-picker__panel"), this.valueSpan = t.querySelector(".ds-color-picker__value"), this.customInput = t.querySelector(".ds-color-picker__input"), this.scope = `colorpicker-${Math.random().toString(36).substr(2, 9)}`, this.options = e, this.value = e.value || "#007bff", this.showAlpha = e.showAlpha !== !1, this.mode = e.mode || "hex", this.previousColors = e.previousColors || this._getStoredColors(), this.previousColorsLimit = e.previousColorsLimit || 12, this._triggerClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._colorClickHandler = null, this._inputInputHandler = null, this._alphaChangeHandler = null, this._modeChangeHandler = null, this._hueChangeHandler = null, this._saturationChangeHandler = null, this._valueChangeHandler = null, this.hue = 210, this.saturation = 100, this.brightness = 50, this.alpha = 100, this._colorStringToHSB(this.value);
@@ -4906,19 +4906,19 @@ class Fr {
4906
4906
  }), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._colorClickHandler = null, this._inputInputHandler = null, this._alphaChangeHandler = null, this._modeChangeHandler = null, this._hueChangeHandler = null, this._saturationChangeHandler = null, this._valueChangeHandler = null, this.element.__kupolaInitialized = !1;
4907
4907
  }
4908
4908
  }
4909
- function oe(i, t) {
4909
+ function ae(i, t) {
4910
4910
  const e = new Fr(i, t);
4911
4911
  e.init(), i._kupolaColorPicker = e;
4912
4912
  }
4913
4913
  function zo(i = document) {
4914
4914
  i.querySelectorAll(".ds-color-picker").forEach((t) => {
4915
- oe(t);
4915
+ ae(t);
4916
4916
  });
4917
4917
  }
4918
4918
  function Nr(i) {
4919
4919
  i._kupolaColorPicker && (i._kupolaColorPicker.destroy(), i._kupolaColorPicker = null);
4920
4920
  }
4921
- E.register("color-picker", oe, Nr);
4921
+ E.register("color-picker", ae, Nr);
4922
4922
  class Rr {
4923
4923
  constructor(t, e = {}) {
4924
4924
  if (this.element = t, this.titleEl = t.querySelector(".ds-calendar__title"), this.daysEl = t.querySelector(".ds-calendar__days"), this.prevBtn = t.querySelector(".ds-calendar__nav--prev"), this.nextBtn = t.querySelector(".ds-calendar__nav--next"), this.todayBtn = t.querySelector(".ds-calendar__nav--today"), this._listeners = [], !this.titleEl || !this.daysEl)
@@ -5116,7 +5116,7 @@ class Rr {
5116
5116
  this.isRangeMode = !this.isRangeMode, this.rangeStart = null, this.rangeEnd = null, this.render(), this._emitChange();
5117
5117
  }
5118
5118
  }
5119
- function le(i, t) {
5119
+ function oe(i, t) {
5120
5120
  if (!i.__kupolaInitialized)
5121
5121
  try {
5122
5122
  const e = new Rr(i, t);
@@ -5131,10 +5131,10 @@ function Vr(i) {
5131
5131
  }
5132
5132
  function Po() {
5133
5133
  document.querySelectorAll(".ds-calendar").forEach((i) => {
5134
- le(i);
5134
+ oe(i);
5135
5135
  });
5136
5136
  }
5137
- E.register("calendar", le, Vr);
5137
+ E.register("calendar", oe, Vr);
5138
5138
  class Kr {
5139
5139
  constructor(t, e = {}) {
5140
5140
  this.element = t, this.input = t.querySelector(".ds-dynamic-tags__input"), this._listeners = [], this.maxCount = e.maxCount || parseInt(t.getAttribute("data-dynamic-tags-max")) || 1 / 0, this.allowDuplicates = e.allowDuplicates !== !1, this.color = e.color || t.getAttribute("data-dynamic-tags-color") || "default", this.init();
@@ -5281,7 +5281,7 @@ class Kr {
5281
5281
  }), this._listeners = null, this.input = null, this.element = null;
5282
5282
  }
5283
5283
  }
5284
- function ce(i, t) {
5284
+ function le(i, t) {
5285
5285
  if (i.__kupolaInitialized) return;
5286
5286
  const e = new Kr(i, t);
5287
5287
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
@@ -5292,11 +5292,11 @@ function Wr(i) {
5292
5292
  }
5293
5293
  function $o() {
5294
5294
  document.querySelectorAll(".ds-dynamic-tags").forEach((i) => {
5295
- ce(i);
5295
+ le(i);
5296
5296
  });
5297
5297
  }
5298
- E.register("dynamic-tags", ce, Wr);
5299
- class he {
5298
+ E.register("dynamic-tags", le, Wr);
5299
+ class ce {
5300
5300
  constructor(t = {}) {
5301
5301
  this.images = t.images || [], this.currentIndex = t.currentIndex || 0, this.overlay = null, this.closeHandler = this.close.bind(this), this.keyHandler = this.handleKeydown.bind(this), this.clickHandler = this.handleOverlayClick.bind(this), this.zoom = 1, this.rotation = 0, this.zoomStep = t.zoomStep || 0.2, this.minZoom = t.minZoom || 0.5, this.maxZoom = t.maxZoom || 3, this.init();
5302
5302
  }
@@ -5489,7 +5489,7 @@ class he {
5489
5489
  }
5490
5490
  let V = null;
5491
5491
  function Bo() {
5492
- V || (V = new he()), document.querySelectorAll("[data-image-preview]").forEach((i) => {
5492
+ V || (V = new ce()), document.querySelectorAll("[data-image-preview]").forEach((i) => {
5493
5493
  i.addEventListener("click", () => {
5494
5494
  const t = JSON.parse(i.getAttribute("data-image-preview")), e = parseInt(i.getAttribute("data-image-index")) || 0;
5495
5495
  V.show(t, e);
@@ -5497,7 +5497,7 @@ function Bo() {
5497
5497
  });
5498
5498
  }
5499
5499
  function qo(i, t = 0) {
5500
- V || (V = new he()), V.show(i, t);
5500
+ V || (V = new ce()), V.show(i, t);
5501
5501
  }
5502
5502
  class Ur {
5503
5503
  constructor(t, e = {}) {
@@ -5629,7 +5629,7 @@ class Ur {
5629
5629
  }), this._listeners = [], this.closeBtn = null, this.checkbox = null, this.editInput = null, this.element = null;
5630
5630
  }
5631
5631
  }
5632
- function de(i, t) {
5632
+ function he(i, t) {
5633
5633
  if (i.__kupolaInitialized) return;
5634
5634
  const e = new Ur(i, t);
5635
5635
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
@@ -5640,10 +5640,10 @@ function Yr(i) {
5640
5640
  }
5641
5641
  function Oo() {
5642
5642
  document.querySelectorAll(".ds-tag").forEach((i) => {
5643
- de(i);
5643
+ he(i);
5644
5644
  });
5645
5645
  }
5646
- E.register("tag", de, Yr);
5646
+ E.register("tag", he, Yr);
5647
5647
  class Xr {
5648
5648
  constructor(t) {
5649
5649
  this.element = t, this.valueElement = t.querySelector(".ds-statcard__value"), this.progressFill = t.querySelector(".ds-statcard__progress-fill"), this.animated = !1, this._observer = null, this.init();
@@ -5704,7 +5704,7 @@ class Xr {
5704
5704
  this._observer && (this._observer.disconnect(), this._observer = null), this.animated = !1, this.valueElement = null, this.progressFill = null, this.element = null;
5705
5705
  }
5706
5706
  }
5707
- function ue(i) {
5707
+ function de(i) {
5708
5708
  if (i.__kupolaInitialized) return;
5709
5709
  const t = new Xr(i);
5710
5710
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
@@ -5715,10 +5715,10 @@ function jr(i) {
5715
5715
  }
5716
5716
  function Fo() {
5717
5717
  document.querySelectorAll(".ds-statcard").forEach((i) => {
5718
- ue(i);
5718
+ de(i);
5719
5719
  });
5720
5720
  }
5721
- E.register("statcard", ue, jr);
5721
+ E.register("statcard", de, jr);
5722
5722
  class Jr {
5723
5723
  constructor(t, e = {}) {
5724
5724
  this.element = t, this.data = e.data || [], this.startDate = e.startDate || this.getOneYearAgo(), this.endDate = e.endDate || /* @__PURE__ */ new Date(), this.cellSize = e.cellSize || 14, this.onCellClick = e.onCellClick || null, this.tooltip = null, this.baseColor = e.color || t.getAttribute("data-color") || "#22c55e", this._listeners = [], this.init();
@@ -5874,7 +5874,7 @@ class Jr {
5874
5874
  }), this._listeners = null, this.tooltip && this.tooltip.parentNode && this.tooltip.parentNode.removeChild(this.tooltip), this.tooltip = null, this.data = [], this.element = null;
5875
5875
  }
5876
5876
  }
5877
- function pe(i) {
5877
+ function ue(i) {
5878
5878
  if (i.__kupolaInitialized) return;
5879
5879
  const t = i.getAttribute("data-heatmap-data");
5880
5880
  let e = [];
@@ -5899,7 +5899,7 @@ function Zr(i) {
5899
5899
  }
5900
5900
  function No() {
5901
5901
  document.querySelectorAll(".ds-heatmap").forEach((i) => {
5902
- pe(i);
5902
+ ue(i);
5903
5903
  });
5904
5904
  }
5905
5905
  function xt() {
@@ -5914,7 +5914,7 @@ function xt() {
5914
5914
  }
5915
5915
  return i;
5916
5916
  }
5917
- E.register("heatmap", pe, Zr);
5917
+ E.register("heatmap", ue, Zr);
5918
5918
  class Gr {
5919
5919
  constructor(t, e = {}) {
5920
5920
  this.element = t, this.tooltipEl = null, this.options = e;
@@ -6016,19 +6016,19 @@ class Gr {
6016
6016
  this.element.__kupolaInitialized && (this._showTimer && (clearTimeout(this._showTimer), this._showTimer = null), this._hideTimer && (clearTimeout(this._hideTimer), this._hideTimer = null), (this.trigger === "hover" || this.trigger === "focus") && (this.element.removeEventListener("mouseenter", this._showTooltip), this.element.removeEventListener("mouseleave", this._hideTooltip)), this.trigger === "click" && this.element.removeEventListener("click", this._clickHandler), (this.trigger === "focus" || this.trigger === "hover") && (this.element.removeEventListener("focus", this._showTooltip), this.element.removeEventListener("blur", this._hideTooltip)), this.mouseFollow && this.element.removeEventListener("mousemove", this._mouseMoveHandler), this.tooltipEl && (this.tooltipEl.remove(), this.tooltipEl = null), this.isVisible = !1, this._showTooltip = null, this._hideTooltip = null, this._clickHandler = null, this._mouseMoveHandler = null, this.element.__kupolaInitialized = !1);
6017
6017
  }
6018
6018
  }
6019
- function fe(i, t) {
6019
+ function pe(i, t) {
6020
6020
  const e = new Gr(i, t);
6021
6021
  e.init(), i._kupolaTooltip = e;
6022
6022
  }
6023
6023
  function Ro(i = document) {
6024
6024
  i.querySelectorAll("[data-tooltip]").forEach((t) => {
6025
- fe(t);
6025
+ pe(t);
6026
6026
  });
6027
6027
  }
6028
6028
  function Qr(i) {
6029
6029
  i._kupolaTooltip && (i._kupolaTooltip.destroy(), i._kupolaTooltip = null);
6030
6030
  }
6031
- E.register("tooltip", fe, Qr);
6031
+ E.register("tooltip", pe, Qr);
6032
6032
  class ta {
6033
6033
  constructor() {
6034
6034
  this.validators = {
@@ -6589,7 +6589,7 @@ function ia(i) {
6589
6589
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
6590
6590
  }
6591
6591
  E.register("virtual-list", sa, ia);
6592
- const na = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="butt" stroke-linejoin="miter"', me = {
6592
+ const na = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="butt" stroke-linejoin="miter"', fe = {
6593
6593
  globe: '<circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 0 20"/><path d="M12 2a15.3 15.3 0 0 0 0 20"/>',
6594
6594
  dashboard: '<rect x="3" y="3" width="7" height="9"/><rect x="14" y="3" width="7" height="5"/><rect x="14" y="12" width="7" height="9"/><rect x="3" y="16" width="7" height="5"/>',
6595
6595
  mouse: '<rect x="6" y="2" width="12" height="20" rx="6"/><line x1="12" y1="6" x2="12" y2="11"/>',
@@ -6699,17 +6699,17 @@ const na = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0
6699
6699
  code: '<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>',
6700
6700
  apple: '<path fill="currentColor" stroke="none" d="M17.05 12.04c-.03-3.04 2.49-4.5 2.6-4.57-1.42-2.07-3.62-2.36-4.4-2.39-1.87-.19-3.65 1.1-4.6 1.1-.96 0-2.42-1.08-3.98-1.05-2.05.03-3.94 1.19-4.99 3.02-2.13 3.69-.54 9.13 1.53 12.12 1.01 1.46 2.21 3.1 3.78 3.04 1.52-.06 2.09-.98 3.93-.98 1.83 0 2.36.98 3.97.95 1.64-.03 2.68-1.49 3.68-2.96 1.16-1.7 1.64-3.35 1.66-3.43-.04-.02-3.18-1.22-3.21-4.85zM14.06 4.34c.83-1.01 1.39-2.41 1.24-3.81-1.2.05-2.65.8-3.51 1.8-.77.89-1.45 2.31-1.27 3.68 1.34.1 2.71-.68 3.54-1.67z"/>'
6701
6701
  };
6702
- function ge(i, t = 16, e = "0 0 24 24") {
6703
- const s = me[i];
6702
+ function me(i, t = 16, e = "0 0 24 24") {
6703
+ const s = fe[i];
6704
6704
  return s ? `<svg ${na.replace('width="16"', `width="${t}"`).replace('height="16"', `height="${t}"`).replace('viewBox="0 0 24 24"', `viewBox="${e}"`)}>${s}</svg>` : "";
6705
6705
  }
6706
6706
  function ct(i = document) {
6707
6707
  i.querySelectorAll("[data-icon]").forEach((t) => {
6708
6708
  const e = t.getAttribute("data-icon"), s = +t.getAttribute("data-size") || 16, n = t.getAttribute("data-viewbox") || "0 0 24 24";
6709
- t.innerHTML = ge(e, s, n), t.classList.add("icon");
6709
+ t.innerHTML = me(e, s, n), t.classList.add("icon");
6710
6710
  });
6711
6711
  }
6712
- const Vo = { svg: ge, render: ct, PATHS: me };
6712
+ const Vo = { svg: me, render: ct, PATHS: fe };
6713
6713
  typeof document < "u" && (document.readyState !== "loading" ? ct() : document.addEventListener("DOMContentLoaded", () => ct()));
6714
6714
  class ra {
6715
6715
  constructor(t) {
@@ -6763,7 +6763,7 @@ class ra {
6763
6763
  this.stop(), this.hoursEl = null, this.minutesEl = null, this.secondsEl = null, this.element = null;
6764
6764
  }
6765
6765
  }
6766
- function _e(i) {
6766
+ function ge(i) {
6767
6767
  if (i.__kupolaInitialized) return;
6768
6768
  const t = new ra(i);
6769
6769
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
@@ -6774,10 +6774,10 @@ function aa(i) {
6774
6774
  }
6775
6775
  function Ko() {
6776
6776
  document.querySelectorAll(".ds-countdown").forEach((t) => {
6777
- _e(t);
6777
+ ge(t);
6778
6778
  });
6779
6779
  }
6780
- E.register("countdown", _e, aa);
6780
+ E.register("countdown", ge, aa);
6781
6781
  class oa {
6782
6782
  constructor(t) {
6783
6783
  if (this.element = t, this.minusBtn = t.querySelector(".ds-number-input__btn--decrease"), this.plusBtn = t.querySelector(".ds-number-input__btn--increase"), this.inputEl = t.querySelector(".ds-number-input__input"), this._listeners = [], !this.minusBtn || !this.plusBtn || !this.inputEl)
@@ -6829,7 +6829,7 @@ class oa {
6829
6829
  }), this._listeners = null, this.minusBtn = null, this.plusBtn = null, this.inputEl = null, this.element = null;
6830
6830
  }
6831
6831
  }
6832
- function ye(i) {
6832
+ function _e(i) {
6833
6833
  if (!i.__kupolaInitialized)
6834
6834
  try {
6835
6835
  const t = new oa(i);
@@ -6844,10 +6844,10 @@ function la(i) {
6844
6844
  }
6845
6845
  function Wo() {
6846
6846
  document.querySelectorAll(".ds-number-input").forEach((i) => {
6847
- ye(i);
6847
+ _e(i);
6848
6848
  });
6849
6849
  }
6850
- E.register("number-input", ye, la);
6850
+ E.register("number-input", _e, la);
6851
6851
  class ca {
6852
6852
  constructor(t) {
6853
6853
  this.container = t, this.track = t.querySelector(".ds-slider-captcha__track"), this.btn = t.querySelector(".ds-slider-captcha__btn"), this.text = t.querySelector(".ds-slider-captcha__text"), this.progress = t.querySelector(".ds-slider-captcha__progress"), this.statusEl = t.querySelector(".ds-slider-captcha__status"), this.refreshBtn = t.querySelector(".ds-slider-captcha__refresh"), this.footerRefreshBtn = t.querySelector(".ds-slider-captcha__footer-refresh"), this.config = {
@@ -7201,7 +7201,7 @@ class _a {
7201
7201
  return !this.isFresh;
7202
7202
  }
7203
7203
  }
7204
- class ve {
7204
+ class ye {
7205
7205
  constructor() {
7206
7206
  this._store = /* @__PURE__ */ new Map();
7207
7207
  }
@@ -7333,7 +7333,7 @@ class ya extends U {
7333
7333
  return typeof l.json == "function" ? await l.json() : l.data !== void 0 ? l.data : l;
7334
7334
  }
7335
7335
  }
7336
- class be extends U {
7336
+ class ve extends U {
7337
7337
  constructor(t, e) {
7338
7338
  super(t, e), this.storageKey = t.source.replace("localStorage:", ""), this.defaultValue = t.default, this.sync = t.sync !== !1, this.sync && typeof window < "u" && (this._storageHandler = (s) => {
7339
7339
  s.key === this.storageKey && (this.cache.delete(this.cacheKey), this.notify());
@@ -7380,7 +7380,7 @@ class xa extends U {
7380
7380
  return this.config.source;
7381
7381
  }
7382
7382
  }
7383
- class xe extends U {
7383
+ class be extends U {
7384
7384
  constructor(t, e) {
7385
7385
  super(t, e), this.ws = null, this.reconnect = t.reconnect !== !1, this.reconnectDelay = t.reconnectDelay || 3e3, this._reconnectAttempt = 0, this._maxReconnectDelay = t.maxReconnectDelay || 3e4, this.messageHandler = null, this._connected = !1, this._destroyed = !1;
7386
7386
  }
@@ -7420,12 +7420,12 @@ class xe extends U {
7420
7420
  this._destroyed = !0, super.destroy(), this.ws && (this.ws.onmessage = null, this.ws.onclose = null, this.ws.close(), this.ws = null);
7421
7421
  }
7422
7422
  }
7423
- function Ee(i, t) {
7423
+ function xe(i, t) {
7424
7424
  const e = i.source;
7425
- return typeof e == "function" ? new ba(i, t) : typeof e == "string" && (e.startsWith("ws://") || e.startsWith("wss://")) ? new xe(i, t) : typeof e == "string" && (e.startsWith("/") || e.startsWith("http")) ? new ya(i, t) : typeof e == "string" && e.startsWith("localStorage:") ? new be(i, t) : typeof e == "string" && e.startsWith("route:") ? new va(i, t) : new xa(i, t);
7425
+ return typeof e == "function" ? new ba(i, t) : typeof e == "string" && (e.startsWith("ws://") || e.startsWith("wss://")) ? new be(i, t) : typeof e == "string" && (e.startsWith("/") || e.startsWith("http")) ? new ya(i, t) : typeof e == "string" && e.startsWith("localStorage:") ? new ve(i, t) : typeof e == "string" && e.startsWith("route:") ? new va(i, t) : new xa(i, t);
7426
7426
  }
7427
7427
  function Zo(i, t) {
7428
- const e = {}, s = new ve(), n = [];
7428
+ const e = {}, s = new ye(), n = [];
7429
7429
  for (const r in t) {
7430
7430
  let p = function() {
7431
7431
  return wt(i);
@@ -7434,7 +7434,7 @@ function Zo(i, t) {
7434
7434
  const o = {
7435
7435
  ...a,
7436
7436
  cacheKey: a.cacheKey || `${r}-${JSON.stringify(wt(i))}`
7437
- }, l = Ee(o, s), c = I(null), h = I(!0), d = I(null), u = I(null);
7437
+ }, l = xe(o, s), c = I(null), h = I(!0), d = I(null), u = I(null);
7438
7438
  let f = 0;
7439
7439
  async function m() {
7440
7440
  const b = ++f;
@@ -7475,11 +7475,11 @@ function Zo(i, t) {
7475
7475
  },
7476
7476
  // For StorageSource
7477
7477
  setValue(b) {
7478
- l instanceof be && (l.setValue(b), c.value = b);
7478
+ l instanceof ve && (l.setValue(b), c.value = b);
7479
7479
  },
7480
7480
  // For WebSocketSource
7481
7481
  send(b) {
7482
- l instanceof xe && l.send(b);
7482
+ l instanceof be && l.send(b);
7483
7483
  },
7484
7484
  _source: l
7485
7485
  };
@@ -7492,7 +7492,7 @@ function Zo(i, t) {
7492
7492
  }, window.__kupolaDepInstances || (window.__kupolaDepInstances = []), window.__kupolaDepInstances.push(e), e;
7493
7493
  }
7494
7494
  function Go(i) {
7495
- const t = new ve(), e = Ee(i, t), s = I(null), n = I(!0), r = I(null);
7495
+ const t = new ye(), e = xe(i, t), s = I(null), n = I(!0), r = I(null);
7496
7496
  let a = 0;
7497
7497
  async function o() {
7498
7498
  const l = ++a;
@@ -8070,7 +8070,7 @@ class Ea {
8070
8070
  this._filterDebounceTimer && (clearTimeout(this._filterDebounceTimer), this._filterDebounceTimer = null), this._resizeCleanups.forEach((t) => t()), this._resizeCleanups = [], this._reactiveCleanups.forEach((t) => t.unsubscribe()), this._reactiveCleanups = [], this.element.innerHTML = "", this.element.classList.remove("kupola-table-wrapper", "kupola-table-virtual-wrapper"), this._data = [], this._virtualData = null, this._dragState = null, this._editingCell = null, this._editBuffer = {};
8071
8071
  }
8072
8072
  }
8073
- function we(i, t) {
8073
+ function Ee(i, t) {
8074
8074
  return new Ea(i, t);
8075
8075
  }
8076
8076
  function tl() {
@@ -8082,10 +8082,10 @@ function tl() {
8082
8082
  e = JSON.parse(t);
8083
8083
  } catch {
8084
8084
  }
8085
- we(i, e);
8085
+ Ee(i, e);
8086
8086
  });
8087
8087
  }
8088
- E.register("table", we);
8088
+ E.register("table", Ee);
8089
8089
  class wa {
8090
8090
  constructor(t, e = {}) {
8091
8091
  this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this._current = e.current || 1, this._total = e.total || 0, this._pageSize = e.pageSize || 10, this._maxPages = e.maxPages || 7, this._showTotal = e.showTotal !== !1, this._showSizeChanger = e.showSizeChanger || !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._simple = e.simple || !1, this.current = I(this._current), this.total = I(this._total), this.onChange = e.onChange || null, this.onPageSizeChange = e.onPageSizeChange || null, this._init();
@@ -8349,7 +8349,7 @@ function sl() {
8349
8349
  export {
8350
8350
  X as BRAND_OPTIONS,
8351
8351
  _a as CacheEntry,
8352
- ve as CacheManager,
8352
+ ye as CacheManager,
8353
8353
  Rr as Calendar,
8354
8354
  Tr as Carousel,
8355
8355
  qr as Collapse,
@@ -8369,17 +8369,17 @@ export {
8369
8369
  xr as GlobalEvents,
8370
8370
  Jr as Heatmap,
8371
8371
  Vo as Icons,
8372
- he as ImagePreview,
8372
+ ce as ImagePreview,
8373
8373
  G as KupolaComponent,
8374
8374
  vr as KupolaComponentRegistry,
8375
- ar as KupolaDataBind,
8376
- lr as KupolaEventBus,
8375
+ rr as KupolaDataBind,
8376
+ or as KupolaEventBus,
8377
8377
  pa as KupolaForm,
8378
- jt as KupolaI18n,
8378
+ Xt as KupolaI18n,
8379
8379
  ht as KupolaLifecycle,
8380
8380
  wa as KupolaPagination,
8381
8381
  gt as KupolaStore,
8382
- or as KupolaStoreManager,
8382
+ ar as KupolaStoreManager,
8383
8383
  Ea as KupolaTable,
8384
8384
  Aa as KupolaUtils,
8385
8385
  ta as KupolaValidator,
@@ -8387,7 +8387,7 @@ export {
8387
8387
  $ as Modal,
8388
8388
  Do as Notification,
8389
8389
  oa as NumberInput,
8390
- me as PATHS,
8390
+ fe as PATHS,
8391
8391
  va as RouteSource,
8392
8392
  ma as Scheduler,
8393
8393
  wr as Select,
@@ -8395,15 +8395,15 @@ export {
8395
8395
  Hr as Slider,
8396
8396
  Xr as StatCard,
8397
8397
  xa as StaticSource,
8398
- be as StorageSource,
8398
+ ve as StorageSource,
8399
8399
  Ur as Tag,
8400
8400
  Lr as Timepicker,
8401
8401
  Gr as Tooltip,
8402
8402
  ea as VirtualList,
8403
- xe as WebSocketSource,
8403
+ be as WebSocketSource,
8404
8404
  Co as alertModal,
8405
8405
  yt as applyMixin,
8406
- Fs as arrayUtils,
8406
+ Os as arrayUtils,
8407
8407
  ja as bootstrapComponents,
8408
8408
  _o as cleanupAllDropdowns,
8409
8409
  ua as cleanupAllSlideCaptchas,
@@ -8414,7 +8414,7 @@ export {
8414
8414
  aa as cleanupCountdown,
8415
8415
  Sr as cleanupDatepicker,
8416
8416
  zr as cleanupDrawer,
8417
- Zt as cleanupDropdown,
8417
+ Jt as cleanupDropdown,
8418
8418
  Wr as cleanupDynamicTags,
8419
8419
  Br as cleanupFileUpload,
8420
8420
  Zr as cleanupHeatmap,
@@ -8434,13 +8434,13 @@ export {
8434
8434
  Na as createBrandPicker,
8435
8435
  Qa as createI18n,
8436
8436
  Ia as createLifecycle,
8437
- ie as createModal,
8438
- Ee as createSource,
8437
+ se as createModal,
8438
+ xe as createSource,
8439
8439
  Pa as createStore,
8440
8440
  Fa as createThemeToggle,
8441
- Zn as cryptoUtils,
8442
- hn as dateUtils,
8443
- dn as debounce,
8441
+ Jn as cryptoUtils,
8442
+ cn as dateUtils,
8443
+ hn as debounce,
8444
8444
  Ga as defineComponent,
8445
8445
  Ja as defineMixin,
8446
8446
  ho as emit,
@@ -8458,7 +8458,7 @@ export {
8458
8458
  Uo as getFormInstance,
8459
8459
  jo as getHttpClient,
8460
8460
  Oa as getHttpConfig,
8461
- Wt as getIconsPath,
8461
+ lr as getIconsPath,
8462
8462
  mo as getListenerCount,
8463
8463
  io as getLocale,
8464
8464
  ur as getMessageConfig,
@@ -8471,51 +8471,51 @@ export {
8471
8471
  fr as getValidationConfig,
8472
8472
  H as globalEvents,
8473
8473
  tl as initAllTables,
8474
- le as initCalendar,
8474
+ oe as initCalendar,
8475
8475
  Po as initCalendars,
8476
- se as initCarousel,
8476
+ ee as initCarousel,
8477
8477
  Eo as initCarousels,
8478
- ae as initCollapse,
8478
+ re as initCollapse,
8479
8479
  Ao as initCollapses,
8480
- oe as initColorPicker,
8480
+ ae as initColorPicker,
8481
8481
  zo as initColorPickers,
8482
- _e as initCountdown,
8482
+ ge as initCountdown,
8483
8483
  Ko as initCountdowns,
8484
- Qt as initDatepicker,
8484
+ Gt as initDatepicker,
8485
8485
  vo as initDatepickers,
8486
8486
  lt as initDrawer,
8487
8487
  wo as initDrawers,
8488
- Jt as initDropdown,
8488
+ jt as initDropdown,
8489
8489
  go as initDropdowns,
8490
- ce as initDynamicTags,
8490
+ le as initDynamicTags,
8491
8491
  $o as initDynamicTagsAll,
8492
- re as initFileUpload,
8492
+ ne as initFileUpload,
8493
8493
  Io as initFileUploads,
8494
8494
  fa as initFormValidation,
8495
- pe as initHeatmap,
8495
+ ue as initHeatmap,
8496
8496
  No as initHeatmaps,
8497
8497
  Bo as initImagePreview,
8498
8498
  To as initMessages,
8499
- ne as initModal,
8499
+ ie as initModal,
8500
8500
  So as initModals,
8501
8501
  Ho as initNotifications,
8502
- ye as initNumberInput,
8502
+ _e as initNumberInput,
8503
8503
  Wo as initNumberInputs,
8504
8504
  el as initPagination,
8505
- Gt as initSelect,
8505
+ Zt as initSelect,
8506
8506
  yo as initSelects,
8507
8507
  ha as initSlideCaptchas,
8508
- ee as initSlider,
8508
+ te as initSlider,
8509
8509
  xo as initSliders,
8510
- ue as initStatCard,
8510
+ de as initStatCard,
8511
8511
  Fo as initStatCards,
8512
- we as initTable,
8513
- de as initTag,
8512
+ Ee as initTable,
8513
+ he as initTag,
8514
8514
  Oo as initTags,
8515
8515
  gr as initTheme,
8516
- te as initTimepicker,
8516
+ Qt as initTimepicker,
8517
8517
  bo as initTimepickers,
8518
- fe as initTooltip,
8518
+ pe as initTooltip,
8519
8519
  Ro as initTooltips,
8520
8520
  sa as initVirtualList,
8521
8521
  vt as kupolaBootstrap,
@@ -8528,14 +8528,14 @@ export {
8528
8528
  Kt as kupolaStoreManager,
8529
8529
  Wa as maskData,
8530
8530
  eo as n,
8531
- Ai as numberUtils,
8532
- ai as objectUtils,
8531
+ Ii as numberUtils,
8532
+ ri as objectUtils,
8533
8533
  co as off,
8534
8534
  fo as offAll,
8535
8535
  po as offByScope,
8536
8536
  oo as on,
8537
8537
  lo as once,
8538
- nr as preloadUtils,
8538
+ ir as preloadUtils,
8539
8539
  I as ref,
8540
8540
  Ya as registerComponent,
8541
8541
  Xa as registerLazyComponent,
@@ -8548,11 +8548,11 @@ export {
8548
8548
  so as setLocale,
8549
8549
  at as setTheme,
8550
8550
  qo as showImagePreview,
8551
- Ze as stringUtils,
8551
+ Je as stringUtils,
8552
8552
  Ka as stripHtml,
8553
- ge as svg,
8553
+ me as svg,
8554
8554
  to as t,
8555
- un as throttle,
8555
+ dn as throttle,
8556
8556
  Zo as useDeps,
8557
8557
  Za as useMixin,
8558
8558
  Go as useQuery,