halo-fe 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -1,19 +1,23 @@
1
- import { utils as Ut, writeFile as ge } from "xlsx-js-style";
2
- import { defineAsyncComponent as fe, defineComponent as _, toRefs as tt, ref as at, onMounted as le, onUnmounted as ie, watch as P, openBlock as z, createElementBlock as M, normalizeClass as Rt, unref as T, renderSlot as It, normalizeStyle as Vt, createElementVNode as me, toDisplayString as pe, createCommentVNode as ae, computed as ye } from "vue";
1
+ import { l as bt } from "./vendor-@monaco-editor-DKC4UNw_.js";
2
+ import { h as U } from "./vendor-moment-h96o7c8I.js";
3
+ import { utils as Dt, writeFile as ge } from "xlsx-js-style";
4
+ import { defineAsyncComponent as fe, defineComponent as _, toRefs as tt, ref as at, onMounted as le, onUnmounted as ie, watch as N, openBlock as z, createElementBlock as M, normalizeClass as Rt, unref as P, renderSlot as It, normalizeStyle as Vt, createElementVNode as me, toDisplayString as pe, createCommentVNode as ae, computed as ye } from "vue";
3
5
  import { _ as be } from "./vendor-underscore.string-vrHhfBaT.js";
4
- import { _ as Dt } from "./vendor-underscore-DVTek3G4.js";
6
+ import { _ as Ut } from "./vendor-underscore-DVTek3G4.js";
5
7
  import { F as we } from "./vendor-file-saver-DKXzEV2Q.js";
6
8
  import { b as ve } from "./vendor-clone-NGbTzSwJ.js";
7
- import { l as bt } from "./vendor-@monaco-editor-DKC4UNw_.js";
8
- import { h as N } from "./vendor-moment-h96o7c8I.js";
9
9
  import { d as G } from "./vendor-pinia-DVLspbiC.js";
10
10
  import { C as st } from "./vendor-crypto-js-B6Qe-gIg.js";
11
- let $t;
12
- window._setting ? $t = window._setting : $t = window.setting;
13
- const mt = $t;
14
- let pt = {}, Se = (a) => {
15
- pt = a;
11
+ let mt = {}, Se = (a) => {
12
+ mt = a;
16
13
  };
14
+ function Is() {
15
+ return new Promise((a, t) => {
16
+ import("echarts").then((e) => {
17
+ a(e);
18
+ });
19
+ });
20
+ }
17
21
  class xe {
18
22
  constructor() {
19
23
  this.type = "xlsx";
@@ -32,12 +36,12 @@ class xe {
32
36
  }), r.push(n), t.length > 0)
33
37
  for (let c = 0; c < t.length; c++) {
34
38
  let h = t[c], g = [];
35
- Object.keys(h).forEach((v) => {
36
- g.push(h[v]);
39
+ Object.keys(h).forEach((S) => {
40
+ g.push(h[S]);
37
41
  }), r.push(g);
38
42
  }
39
- let l = Ut.book_new(), i = Ut.json_to_sheet(r, { skipHeader: !0 });
40
- Ut.book_append_sheet(l, i, "abc");
43
+ let l = Dt.book_new(), i = Dt.json_to_sheet(r, { skipHeader: !0 });
44
+ Dt.book_append_sheet(l, i, "abc");
41
45
  let o = 65;
42
46
  for (let c = 0; c < s.length; c++) {
43
47
  let g = `${String.fromCharCode(o + c)}1`;
@@ -54,7 +58,7 @@ class xe {
54
58
  }), i["!cols"] = u, ge(l, e);
55
59
  }
56
60
  }
57
- class L {
61
+ class $ {
58
62
  /**
59
63
  * 创建指定类型驱动
60
64
  */
@@ -67,7 +71,7 @@ class L {
67
71
  return r;
68
72
  }
69
73
  }
70
- class ke extends L {
74
+ class ke extends $ {
71
75
  getInstances() {
72
76
  return [new xe()];
73
77
  }
@@ -85,13 +89,13 @@ J.isString = (t) => Object.prototype.toString.call(t) == "[object String]", J.is
85
89
  let e = Object.prototype.toString.call(t);
86
90
  return e == "[object Number]" || e == "[object BigInt]";
87
91
  }, J.isBoolean = (t) => Object.prototype.toString.call(t) == "[object Boolean]";
88
- let x = J;
92
+ let k = J;
89
93
  const f = class f {
90
94
  /**
91
95
  * 根据字符串或数组,自动返回数组
92
96
  */
93
97
  static getArray(t) {
94
- return x.isString(t) ? [t.toString()] : t instanceof Array ? t : [];
98
+ return k.isString(t) ? [t.toString()] : t instanceof Array ? t : [];
95
99
  }
96
100
  /**
97
101
  * 忽略大小写比较
@@ -148,7 +152,7 @@ f.getUniqueId = () => {
148
152
  if (!t)
149
153
  return !1;
150
154
  let e = JSON.parse(t);
151
- return x.isObject(e);
155
+ return k.isObject(e);
152
156
  } catch {
153
157
  return !1;
154
158
  }
@@ -177,7 +181,7 @@ f.getUniqueId = () => {
177
181
  return i == -1 ? null : l.substring(0, i);
178
182
  };
179
183
  let B = f;
180
- class Os {
184
+ class js {
181
185
  /**
182
186
  * 根据动态加载的组件对象,得到组件集合
183
187
  */
@@ -238,7 +242,7 @@ p.getChunks = (t, e) => {
238
242
  if (s[n] != r[n])
239
243
  return !1;
240
244
  return !0;
241
- }, p.max = (t, e) => Dt.max(t, e), p.min = (t, e) => Dt.min(t, e), p.sum = (t, e, s = null) => {
245
+ }, p.max = (t, e) => Ut.max(t, e), p.min = (t, e) => Ut.min(t, e), p.sum = (t, e, s = null) => {
242
246
  let r = 0;
243
247
  for (let l = 0; l < t.length; l++)
244
248
  r += e(t[l]);
@@ -266,7 +270,7 @@ p.getChunks = (t, e) => {
266
270
  let r = [];
267
271
  return t && (r = t.split(e)), s != null && r.push(s), r;
268
272
  }, p.combine = (...t) => {
269
- let e = [], s = Dt.max(t, (r) => r.length);
273
+ let e = [], s = Ut.max(t, (r) => r.length);
270
274
  for (let r = 0; r < s.length; r++) {
271
275
  let n = [], l;
272
276
  for (let i = 0; i < t.length; i++) {
@@ -288,15 +292,15 @@ p.getChunks = (t, e) => {
288
292
  let r = t.indexOf(e) + 1;
289
293
  return t.splice(r, 0, s), r;
290
294
  }, p.remove = (t, e) => {
291
- if (x.isNumber(e))
295
+ if (k.isNumber(e))
292
296
  t.splice(e, 1);
293
- else if (x.isArray(e))
297
+ else if (k.isArray(e))
294
298
  for (let s = 0; s < e.length; s++)
295
299
  p.remove(t, e[s]);
296
300
  else
297
301
  t.splice(t.indexOf(e), 1);
298
302
  }, p.orderBy = (t, e, s = !0) => {
299
- x.isArray(e) || (e = [e]);
303
+ k.isArray(e) || (e = [e]);
300
304
  let r = t.sort((n, l) => {
301
305
  let i = e[0](n) - e[0](l);
302
306
  return i == 0 && e[1] ? e[1](n) - e[1](l) : i;
@@ -318,7 +322,7 @@ p.getChunks = (t, e) => {
318
322
  }), r;
319
323
  };
320
324
  let rt = p;
321
- class Is {
325
+ class Bs {
322
326
  }
323
327
  const nt = class nt {
324
328
  /**
@@ -460,13 +464,13 @@ const nt = class nt {
460
464
  let l = t.querySelector(s);
461
465
  if (!l)
462
466
  return null;
463
- let i = {}, o = t.getBoundingClientRect(), u = r.getBoundingClientRect(), h = t.querySelector(e).getBoundingClientRect(), g = l.getBoundingClientRect(), v = u.height - h.top;
467
+ let i = {}, o = t.getBoundingClientRect(), u = r.getBoundingClientRect(), h = t.querySelector(e).getBoundingClientRect(), g = l.getBoundingClientRect(), S = u.height - h.top;
464
468
  if (n == "right") {
465
469
  i.left = `${o.left + o.width}px`;
466
- let k;
467
- g.height > u.height ? k = u.height : k = g.height, i.height = `${k}px`, k + h.top > u.height ? (i.top = "initial", i.bottom = "0px") : i.top = `${o.top}px`;
470
+ let C;
471
+ g.height > u.height ? C = u.height : C = g.height, i.height = `${C}px`, C + h.top > u.height ? (i.top = "initial", i.bottom = "0px") : i.top = `${o.top}px`;
468
472
  } else if (n == "bottom")
469
- v -= h.height, i.left = `${o.left}px`, i.top = `${o.top + o.height}px`, v < g.height ? i.height = `${v}px` : i.height = `${g.height}px`;
473
+ S -= h.height, i.left = `${o.left}px`, i.top = `${o.top + o.height}px`, S < g.height ? i.height = `${S}px` : i.height = `${g.height}px`;
470
474
  else
471
475
  throw new Error(`暂未支持的position:${n}`);
472
476
  return i;
@@ -551,7 +555,7 @@ nt.addClass = (t, e, s = null) => {
551
555
  }
552
556
  }, nt.getWidthOrHeight = (t, e, s = null) => {
553
557
  let r = 0, n = [];
554
- x.isArray(t) ? n.push(...t) : n.push(t);
558
+ k.isArray(t) ? n.push(...t) : n.push(t);
555
559
  for (let l = 0; l < n.length; l++) {
556
560
  let i = n[l];
557
561
  if (!i || !i.getBoundingClientRect)
@@ -601,26 +605,26 @@ class wt {
601
605
  }
602
606
  // #endregion
603
607
  }
604
- const F = class F {
608
+ const T = class T {
605
609
  };
606
- F.bind = (t, e, s) => {
610
+ T.bind = (t, e, s) => {
607
611
  e && t.forEach((r) => {
608
612
  e.addEventListener(r, s, !0);
609
613
  });
610
- }, F.unbind = (t, e, s) => {
614
+ }, T.unbind = (t, e, s) => {
611
615
  e && t.forEach((r) => {
612
616
  e.removeEventListener(r, s, !0);
613
617
  });
614
- }, F.click = (t, e) => {
618
+ }, T.click = (t, e) => {
615
619
  t && t.addEventListener("click", e, !0);
616
- }, F.unclick = (t, e) => {
620
+ }, T.unclick = (t, e) => {
617
621
  t && t.removeEventListener("click", e, !0);
618
- }, F.scroll = (t, e) => {
622
+ }, T.scroll = (t, e) => {
619
623
  t && t.addEventListener("scroll", e, !0);
620
- }, F.unscroll = (t, e) => {
624
+ }, T.unscroll = (t, e) => {
621
625
  t && t.removeEventListener("scroll", e, !0);
622
626
  };
623
- let vt = F;
627
+ let vt = T;
624
628
  const R = class R {
625
629
  };
626
630
  R.save = (t, e) => {
@@ -642,13 +646,13 @@ R.save = (t, e) => {
642
646
  let St = R;
643
647
  const zt = class zt {
644
648
  };
645
- zt.getHtml = (t) => x.isNumber(t) ? t : t && t.replace(/\n/g, "<br/>");
649
+ zt.getHtml = (t) => k.isNumber(t) ? t : t && t.replace(/\n/g, "<br/>");
646
650
  let Gt = zt;
647
651
  const Mt = class Mt {
648
652
  };
649
653
  Mt.base64 = (t) => "data:image/png;base64," + t;
650
654
  let Zt = Mt;
651
- const S = class S {
655
+ const x = class x {
652
656
  /**
653
657
  * 生成指定范围内的随机数
654
658
  */
@@ -664,32 +668,32 @@ const S = class S {
664
668
  return Math.max(...t);
665
669
  }
666
670
  };
667
- S.filterPage = (t, e, s) => {
671
+ x.filterPage = (t, e, s) => {
668
672
  let r = (e - 1) * s, n = e * s;
669
673
  return t.filter((i, o) => o >= r && o < n);
670
- }, S.pageCount = (t, e) => Math.ceil(t / e), S.round = (t, e) => t.toFixed(e), S.ceil = (t) => Math.ceil(t), S.getPercentage = (t, e) => {
674
+ }, x.pageCount = (t, e) => Math.ceil(t / e), x.round = (t, e) => t.toFixed(e), x.ceil = (t) => Math.ceil(t), x.getPercentage = (t, e) => {
671
675
  if (!t || !e)
672
676
  return 0;
673
- let s = t / e * 100, r = S.round(s, 2);
677
+ let s = t / e * 100, r = x.round(s, 2);
674
678
  return parseFloat(r);
675
- }, S.getPercentageText = (t, e) => S.getPercentage(t, e).toFixed(2), S.getProgressText = (t, e) => `${t ?? "-"}/${e ?? "-"}`, S.size = (t) => {
679
+ }, x.getPercentageText = (t, e) => x.getPercentage(t, e).toFixed(2), x.getProgressText = (t, e) => `${t ?? "-"}/${e ?? "-"}`, x.size = (t) => {
676
680
  if (!t)
677
681
  return "OKB";
678
682
  let e = 1024, s = e * 1024;
679
683
  if (t < s)
680
- return S.round(t / e, 2) + "KB";
684
+ return x.round(t / e, 2) + "KB";
681
685
  let r = s * 1024;
682
686
  if (t < r)
683
- return S.round(t / s, 2) + "MB";
687
+ return x.round(t / s, 2) + "MB";
684
688
  let n = r * 1024;
685
689
  if (t < n)
686
- return S.round(t / r, 2) + "GB";
690
+ return x.round(t / r, 2) + "GB";
687
691
  let l = n * 1024;
688
692
  if (t < l)
689
- return S.round(t / n, 2) + "TB";
693
+ return x.round(t / n, 2) + "TB";
690
694
  throw new Error("暂未支持比TB更大的大小");
691
695
  };
692
- let Ht = S;
696
+ let Ht = x;
693
697
  const qt = class qt {
694
698
  };
695
699
  qt.load = function(t, e, s, r) {
@@ -715,7 +719,7 @@ const Y = class Y {
715
719
  let e = {}, s = Object.keys(t);
716
720
  for (let r = 0; r < s.length; r++) {
717
721
  let n = s[r], l = t[n];
718
- l != null && (x.isObject(l) ? e[n] = this.pure(l) : e[n] = t[n]);
722
+ l != null && (k.isObject(l) ? e[n] = this.pure(l) : e[n] = t[n]);
719
723
  }
720
724
  return e;
721
725
  }
@@ -757,7 +761,7 @@ const Y = class Y {
757
761
  };
758
762
  Y.copy = (t, e = null) => {
759
763
  let s = [];
760
- x.isObject(t) && s.push(t);
764
+ k.isObject(t) && s.push(t);
761
765
  let r = [];
762
766
  for (let n = 0; n < s.length; n++) {
763
767
  let l = s[n], i = {};
@@ -766,17 +770,17 @@ Y.copy = (t, e = null) => {
766
770
  e && e[o] ? i[o] = e[o]() : i[o] = u;
767
771
  }), r.push(i);
768
772
  }
769
- return x.isObject(t) ? r[0] : r;
773
+ return k.isObject(t) ? r[0] : r;
770
774
  }, Y.clone = (t, e = null) => {
771
775
  let s = ve(t, !0);
772
776
  if (e == null)
773
777
  return s;
774
- if (x.isArray(t))
778
+ if (k.isArray(t))
775
779
  for (let r = 0; r < s.length; r++)
776
780
  e(s[r]);
777
- else x.isObject(t) && e(s);
781
+ else k.isObject(t) && e(s);
778
782
  return s;
779
- }, Y.mergeTo = (t, e) => t == null ? e : e == null ? t : x.isArray(e) ? e.slice() : (Object.keys(e).forEach((r) => {
783
+ }, Y.mergeTo = (t, e) => t == null ? e : e == null ? t : k.isArray(e) ? e.slice() : (Object.keys(e).forEach((r) => {
780
784
  let n = e[r];
781
785
  typeof n == "object" ? t[r] = Y.mergeTo(t[r], n) : t[r] = n;
782
786
  }), t), Y.addProperties = (t, e, s) => {
@@ -787,16 +791,16 @@ Y.copy = (t, e = null) => {
787
791
  }
788
792
  };
789
793
  let K = Y;
790
- const U = class U {
794
+ const D = class D {
791
795
  };
792
- U.loadContentAsync = async (t) => {
796
+ D.loadContentAsync = async (t) => {
793
797
  let e = t instanceof Array ? t : [t], s = [];
794
798
  for (let r = 0; r < e.length; r++) {
795
799
  let n = e[r], l = new Promise((i, o) => {
796
800
  let u = new XMLHttpRequest();
797
801
  u.open("GET", n, !1), u.onreadystatechange = () => {
798
802
  if (u.readyState == 4) {
799
- let c = U.getInnerTagByUrl(n);
803
+ let c = D.getInnerTagByUrl(n);
800
804
  c.appendChild(document.createTextNode(u.responseText)), document.head.appendChild(c), i();
801
805
  }
802
806
  }, u.onerror = () => {
@@ -806,16 +810,16 @@ U.loadContentAsync = async (t) => {
806
810
  s.push(l);
807
811
  }
808
812
  return Promise.all(s);
809
- }, U.loadPathAsync = async (t, e) => {
813
+ }, D.loadPathAsync = async (t, e) => {
810
814
  let s = [];
811
815
  for (let r = 0; r < e.length; r++)
812
816
  s.push(t + e[r]);
813
- await U.loadAsync(s);
814
- }, U.loadAsync = async (t) => {
817
+ await D.loadAsync(s);
818
+ }, D.loadAsync = async (t) => {
815
819
  let e = B.getArray(t), s = [];
816
820
  for (let r = 0; r < e.length; r++) {
817
821
  let n = new Promise((l, i) => {
818
- let o = e[r], u = U.getOuterTagByUrl(o);
822
+ let o = e[r], u = D.getOuterTagByUrl(o);
819
823
  document.head.appendChild(u), u.onload = (c) => {
820
824
  l(c);
821
825
  }, u.onerror = (c) => {
@@ -831,7 +835,7 @@ U.loadContentAsync = async (t) => {
831
835
  n();
832
836
  });
833
837
  });
834
- }, U.loadAll = (...t) => Promise.all(t), U.getInnerTagByUrl = (t) => St.getExtension(t).substring(1) == "css" ? document.createElement("style") : document.createElement("script"), U.getOuterTagByUrl = (t) => {
838
+ }, D.loadAll = (...t) => Promise.all(t), D.getInnerTagByUrl = (t) => St.getExtension(t).substring(1) == "css" ? document.createElement("style") : document.createElement("script"), D.getOuterTagByUrl = (t) => {
835
839
  if (St.getExtension(t).substring(1) == "css") {
836
840
  let r = document.createElement("link");
837
841
  return r.rel = "stylesheet", r.href = t, r;
@@ -839,7 +843,7 @@ U.loadContentAsync = async (t) => {
839
843
  let s = document.createElement("script");
840
844
  return s.src = t, s;
841
845
  };
842
- let kt = U;
846
+ let kt = D;
843
847
  const Q = class Q {
844
848
  };
845
849
  Q.delay = (t, e) => setTimeout(t, e), Q.execute = (t, e, s) => {
@@ -871,25 +875,18 @@ Q.delay = (t, e) => setTimeout(t, e), Q.execute = (t, e, s) => {
871
875
  };
872
876
  };
873
877
  let te = Q;
874
- function js() {
875
- return new Promise((a, t) => {
876
- import("echarts").then((e) => {
877
- a(e);
878
- });
879
- });
880
- }
881
878
  const w = class w {
882
879
  };
883
- w.getTimestamp = (t = null) => (t ? new Date(t) : /* @__PURE__ */ new Date()).getTime(), w.getTime = (t = null) => t ? new Date(t) : /* @__PURE__ */ new Date(), w.format = (t, e) => N(t).format(e), w.getDateTimeString = () => w.formatSecondTime(/* @__PURE__ */ new Date()), w.getDateString = () => w.formatDate(/* @__PURE__ */ new Date()), w.getTimeString = () => w.formatTime(/* @__PURE__ */ new Date()), w.formatSecondTime = (t) => N(t).format("YYYY-MM-DD HH:mm:ss"), w.formatMillisecondTime = (t) => t ? N(t).format("YYYY-MM-DD HH:mm:ss SSS") : null, w.formatTime = (t) => t ? N(t).format("HH:mm:ss SSS") : null, w.formatDate = (t) => t ? N(t).format("YYYY-MM-DD") : null, w.addDays = (t, e) => t ? N(t).add(e, "days").format() : null, w.addMonths = (t, e) => t ? N(t).add(e, "months").format() : null, w.isWeekend = (t) => {
880
+ w.getTimestamp = (t = null) => (t ? new Date(t) : /* @__PURE__ */ new Date()).getTime(), w.getTime = (t = null) => t ? new Date(t) : /* @__PURE__ */ new Date(), w.format = (t, e) => U(t).format(e), w.getDateTimeString = () => w.formatSecondTime(/* @__PURE__ */ new Date()), w.getDateString = () => w.formatDate(/* @__PURE__ */ new Date()), w.getTimeString = () => w.formatTime(/* @__PURE__ */ new Date()), w.formatSecondTime = (t) => U(t).format("YYYY-MM-DD HH:mm:ss"), w.formatMillisecondTime = (t) => t ? U(t).format("YYYY-MM-DD HH:mm:ss SSS") : null, w.formatTime = (t) => t ? U(t).format("HH:mm:ss SSS") : null, w.formatDate = (t) => t ? U(t).format("YYYY-MM-DD") : null, w.addDays = (t, e) => t ? U(t).add(e, "days").toDate() : null, w.addMonths = (t, e) => t ? U(t).add(e, "months").toDate() : null, w.addHours = (t, e) => t ? U(t).add(e, "hours").toDate() : null, w.isWeekend = (t) => {
884
881
  if (!t)
885
882
  return !1;
886
- let e = N(t).format("d");
883
+ let e = U(t).format("d");
887
884
  return e == "6" || e == "0";
888
885
  }, w.localeTime = (t) => {
889
886
  if (!t)
890
887
  return null;
891
888
  let s = (/* @__PURE__ */ new Date()).getTimezoneOffset() + 480;
892
- return N(t).add(s, "minutes").format();
889
+ return U(t).add(s, "minutes").toDate();
893
890
  };
894
891
  let q = w;
895
892
  const m = class m {
@@ -938,21 +935,21 @@ m.getById = (t, e, s, r) => {
938
935
  return oe(t, e, s, r, l, n), l;
939
936
  }, m.getChildrenById = (t, e, s, r, n = !1) => {
940
937
  let l = m.getById(t, e, s, r), i = [];
941
- return n && i.push(l), Nt(l, r, i), i;
938
+ return n && i.push(l), $t(l, r, i), i;
942
939
  }, m.getChildren = (t, e, s = !1) => {
943
940
  let r = [];
944
- return s && r.push(t), Nt(t, e, r), r;
941
+ return s && r.push(t), $t(t, e, r), r;
945
942
  }, m.searchTree = (t, e, s, r) => {
946
943
  let n = [];
947
944
  if (!e)
948
945
  return n;
949
- let l = t ? t.toUpperCase() : "", i = x.isString(r) ? [r] : r;
946
+ let l = t ? t.toUpperCase() : "", i = k.isString(r) ? [r] : r;
950
947
  for (let o of e) {
951
948
  let u = !1, c = m.getChildren(o, s, !0);
952
949
  for (let h of c) {
953
950
  for (let g of i) {
954
- let v = h[g];
955
- if ((v ? v.toUpperCase() : "").indexOf(l) > -1) {
951
+ let S = h[g];
952
+ if ((S ? S.toUpperCase() : "").indexOf(l) > -1) {
956
953
  u = !0;
957
954
  break;
958
955
  }
@@ -1009,28 +1006,28 @@ function oe(a, t, e, s, r, n) {
1009
1006
  }
1010
1007
  return r;
1011
1008
  }
1012
- function Nt(a, t, e) {
1009
+ function $t(a, t, e) {
1013
1010
  let s = a[t];
1014
1011
  if (!s || s.length == 0)
1015
1012
  return e;
1016
1013
  for (let r = 0; r < s.length; r++) {
1017
1014
  let n = s[r];
1018
- e.push(n), Nt(n, t, e);
1015
+ e.push(n), $t(n, t, e);
1019
1016
  }
1020
1017
  return e;
1021
1018
  }
1022
- const D = class D {
1019
+ const L = class L {
1023
1020
  };
1024
- D.get = (t, e = null) => localStorage.getItem(t) ?? e, D.set = (t, e) => localStorage.setItem(t, e), D.getObject = (t) => JSON.parse(localStorage.getItem(t)), D.setObject = (t, e) => localStorage.setItem(t, JSON.stringify(e)), D.remove = (t) => localStorage.removeItem(t), D.getLeftStorage = () => {
1021
+ L.get = (t, e = null) => localStorage.getItem(t) ?? e, L.set = (t, e) => localStorage.setItem(t, e), L.getObject = (t) => JSON.parse(localStorage.getItem(t)), L.setObject = (t, e) => localStorage.setItem(t, JSON.stringify(e)), L.remove = (t) => localStorage.removeItem(t), L.getLeftStorage = () => {
1025
1022
  let t = 0;
1026
1023
  return Object.keys(localStorage).forEach((s) => {
1027
1024
  t += localStorage.getItem(s).length;
1028
1025
  }), 1e-4 * 1024 - t / 1024;
1029
- }, D.canStorage = (t) => {
1026
+ }, L.canStorage = (t) => {
1030
1027
  let e = JSON.stringify(t).length / 1024;
1031
- return D.getLeftStorage() > e;
1028
+ return L.getLeftStorage() > e;
1032
1029
  };
1033
- let E = D;
1030
+ let O = L;
1034
1031
  const Et = class Et {
1035
1032
  };
1036
1033
  Et.isBottom = (t) => {
@@ -1108,31 +1105,31 @@ class ut {
1108
1105
  * 从树集合构建出Json对象
1109
1106
  */
1110
1107
  static buildObject(t, e, s) {
1111
- return Pt(t, e, 1, s);
1108
+ return Ft(t, e, 1, s);
1112
1109
  }
1113
1110
  }
1114
- function Pt(a, t, e, s) {
1111
+ function Ft(a, t, e, s) {
1115
1112
  if (!a || a.length == 0)
1116
1113
  return "{}";
1117
1114
  let r = `{
1118
1115
  `;
1119
1116
  for (let n = 0; n < a.length; n++) {
1120
1117
  let l = a[n], i = s(l);
1121
- i.type == "array" ? (i.remark && (r += yt(2 * e) + "//" + i.remark + `
1122
- `), r += Lt(2 * e, i.key) + "[", r += Pt(l[t], t, e + 1, s), r += "]", n != a.length - 1 && (r += ",")) : i.type == "object" ? (i.remark && (r += yt(2 * e) + "//" + i.remark + `
1123
- `), r += Lt(2 * e, i.key), r += Pt(l[t], t, e + 1, s), n != a.length - 1 && (r += ",")) : (r += Lt(2 * e, i.key), i.type == "string" ? r += '""' : i.type == "date" ? r += `"${q.getDateTimeString()}"` : i.type == "int" || i.type == "number" ? r += "0" : i.type == "boolean" ? r += "false" : r += null, n != a.length - 1 && (r += ","), i.remark && (r += " //" + i.remark)), r += `
1118
+ i.type == "array" ? (i.remark && (r += pt(2 * e) + "//" + i.remark + `
1119
+ `), r += Lt(2 * e, i.key) + "[", r += Ft(l[t], t, e + 1, s), r += "]", n != a.length - 1 && (r += ",")) : i.type == "object" ? (i.remark && (r += pt(2 * e) + "//" + i.remark + `
1120
+ `), r += Lt(2 * e, i.key), r += Ft(l[t], t, e + 1, s), n != a.length - 1 && (r += ",")) : (r += Lt(2 * e, i.key), i.type == "string" ? r += '""' : i.type == "date" ? r += `"${q.getDateTimeString()}"` : i.type == "int" || i.type == "number" ? r += "0" : i.type == "boolean" ? r += "false" : r += null, n != a.length - 1 && (r += ","), i.remark && (r += " //" + i.remark)), r += `
1124
1121
  `;
1125
1122
  }
1126
- return r += yt(2 * (e - 1)), r += "}", r;
1123
+ return r += pt(2 * (e - 1)), r += "}", r;
1127
1124
  }
1128
- function yt(a) {
1125
+ function pt(a) {
1129
1126
  let t = "";
1130
1127
  for (let e = 0; e < a; e++)
1131
1128
  t += " ";
1132
1129
  return t;
1133
1130
  }
1134
1131
  function Lt(a, t) {
1135
- let e = yt(a);
1132
+ let e = pt(a);
1136
1133
  return e += '"' + t + '": ', e;
1137
1134
  }
1138
1135
  let ue = G("setting", {
@@ -1261,7 +1258,7 @@ let ue = G("setting", {
1261
1258
  * 获取本地配置
1262
1259
  */
1263
1260
  getLocalConfig(a) {
1264
- return E.getObject(a);
1261
+ return O.getObject(a);
1265
1262
  },
1266
1263
  /**
1267
1264
  * 设置背景
@@ -1288,7 +1285,7 @@ let ue = G("setting", {
1288
1285
  * 全量保存用户配置
1289
1286
  */
1290
1287
  async saveConfig(a, t, e = !0) {
1291
- return e && E.setObject(a, t), j.post(`/user/config?type=${a}`, t).then((s) => Promise.resolve(!0));
1288
+ return e && O.setObject(a, t), j.post(`/user/config?type=${a}`, t).then((s) => Promise.resolve(!0));
1292
1289
  },
1293
1290
  /**
1294
1291
  * 部分保存用户配置
@@ -1297,7 +1294,7 @@ let ue = G("setting", {
1297
1294
  return j.patch(`/user/config?type=${a}`, t).then((e) => Promise.resolve(!0));
1298
1295
  }
1299
1296
  }
1300
- }), Bs = G("driver", {
1297
+ }), As = G("driver", {
1301
1298
  state() {
1302
1299
  return {
1303
1300
  /**
@@ -1390,7 +1387,10 @@ let ue = G("setting", {
1390
1387
  this.logs = [];
1391
1388
  }
1392
1389
  }
1393
- }), Ee = G("socket", {
1390
+ }), Nt;
1391
+ window._setting ? Nt = window._setting : Nt = window.setting;
1392
+ const yt = Nt;
1393
+ let Ee = G("socket", {
1394
1394
  state() {
1395
1395
  return {
1396
1396
  socket: null,
@@ -1408,10 +1408,10 @@ let ue = G("setting", {
1408
1408
  * 登录后,连接Socket
1409
1409
  */
1410
1410
  async connect() {
1411
- if (!mt.api.ws)
1411
+ if (!yt.api.ws)
1412
1412
  return;
1413
1413
  if (this.socket == null || this.reconnect) {
1414
- let t = mt.api.ws, s = await ce().getAuth(t), r = O.encode(s), n = `${t}?authorization=${r}`;
1414
+ let t = yt.api.ws, s = await ce().getAuth(t), r = I.encode(s), n = `${t}?authorization=${r}`;
1415
1415
  this.socket = new WebSocket(n);
1416
1416
  }
1417
1417
  let a;
@@ -1420,7 +1420,7 @@ let ue = G("setting", {
1420
1420
  }, this.socket.onmessage = (t) => {
1421
1421
  this.handler && this.handler(t);
1422
1422
  }, this.socket.onerror = (t) => {
1423
- this.reconnect = !0, console.warn(`Socket连接失败:${mt.api.ws}`);
1423
+ this.reconnect = !0, console.warn(`Socket连接失败:${yt.api.ws}`);
1424
1424
  }, this.socket.onclose = (t) => {
1425
1425
  this.connected = !1, this.reconnect && (a = setTimeout(async () => await this.connect(), 1e3));
1426
1426
  };
@@ -1462,7 +1462,7 @@ const ce = G("user", {
1462
1462
  * 获取本地缓存中的用户信息;好处:即使手动更改storage数据,也可以里面获取到
1463
1463
  */
1464
1464
  async getSso() {
1465
- return await (await I.getProvider().getDefault("user")).getAsync("sso");
1465
+ return await (await v.getProvider().getDefault("user")).getAsync("sso");
1466
1466
  },
1467
1467
  /**
1468
1468
  * 登录后,获取用户信息
@@ -1471,7 +1471,7 @@ const ce = G("user", {
1471
1471
  return j.get("/user/info").then(async ({ data: a }) => {
1472
1472
  let t = Ce(), e = H();
1473
1473
  e.init(a.configs);
1474
- let s = t.env.VITE_CDN == "true" ? "StaticFile" : "Local", r = t.env.VITE_BASE, n = await I.getCdn().create(s, r);
1474
+ let s = t.env.VITE_CDN == "true" ? "StaticFile" : "Local", r = t.env.VITE_BASE, n = await v.getCdn().create(s, r);
1475
1475
  this.user = a, this.debugger = a.debugger;
1476
1476
  let l = e.language == "en" ? null : e.language, i = {
1477
1477
  paths: { vs: n.getPath("monaco-editor") },
@@ -1489,8 +1489,8 @@ const ce = G("user", {
1489
1489
  let e = await this.getSso();
1490
1490
  if (e == null)
1491
1491
  return "pc";
1492
- let s = q.getTimestamp(), n = await (await I.getSigner().create("default")).getSign(e.userId, a, t, s, e.secret);
1493
- return (await I.getSso().create(e.type)).getAuth(e.identity.token, s, n, this.env);
1492
+ let s = q.getTimestamp(), n = await (await v.getSigner().create("default")).getSign(e.userId, a, t, s, e.secret);
1493
+ return (await v.getSso().create(e.type)).getAuth(e.identity.token, s, n, "pc", this.env);
1494
1494
  },
1495
1495
  /**
1496
1496
  * 未登录,获取匿名登录信息
@@ -1502,7 +1502,7 @@ const ce = G("user", {
1502
1502
  * 根据路径获取路由
1503
1503
  */
1504
1504
  getMenuByUrl(a) {
1505
- let t = O.getPath(a);
1505
+ let t = I.getPath(a);
1506
1506
  return this.menusFlat.find((s) => s.url.split("?")[0] == t);
1507
1507
  },
1508
1508
  /**
@@ -1515,11 +1515,11 @@ const ce = G("user", {
1515
1515
  * 退出登录
1516
1516
  */
1517
1517
  async logout() {
1518
- return j.post("/user/logout").then(async () => (this.user = null, this.menus = null, (await I.getSso().create(this.getSso().type)).logout(), Ee().disconnect(), Promise.resolve()));
1518
+ return j.post("/user/logout").then(async () => (this.user = null, this.menus = null, (await v.getSso().create(this.getSso().type)).logout(), Ee().disconnect(), Promise.resolve()));
1519
1519
  }
1520
1520
  }
1521
1521
  });
1522
- class As {
1522
+ class Ds {
1523
1523
  /**
1524
1524
  * 获取浏览器默认语言
1525
1525
  */
@@ -1534,7 +1534,7 @@ class As {
1534
1534
  return t.language || e || "zh-cn";
1535
1535
  }
1536
1536
  }
1537
- const C = class C {
1537
+ const E = class E {
1538
1538
  /**
1539
1539
  * 获取指定地址路由对象
1540
1540
  */
@@ -1693,7 +1693,7 @@ const C = class C {
1693
1693
  return t ? t.indexOf("http://") > -1 || t.indexOf("https://") > -1 : !1;
1694
1694
  }
1695
1695
  };
1696
- C.handleQueryValue = (t, e) => {
1696
+ E.handleQueryValue = (t, e) => {
1697
1697
  let s = "";
1698
1698
  if (t == null)
1699
1699
  return s;
@@ -1701,13 +1701,13 @@ C.handleQueryValue = (t, e) => {
1701
1701
  if (t.length > 0)
1702
1702
  for (let r = 0; r < t.length; r++) {
1703
1703
  let n = K.clone(e);
1704
- n.push(""), s += C.handleQueryValue(t[r], n);
1704
+ n.push(""), s += E.handleQueryValue(t[r], n);
1705
1705
  }
1706
1706
  } else if (t instanceof Object) {
1707
1707
  let r = Object.keys(t);
1708
1708
  for (let n of r) {
1709
1709
  let l = K.clone(e);
1710
- l.push(n), s += C.handleQueryValue(t[n], l);
1710
+ l.push(n), s += E.handleQueryValue(t[n], l);
1711
1711
  }
1712
1712
  } else {
1713
1713
  let r = "";
@@ -1717,18 +1717,18 @@ C.handleQueryValue = (t, e) => {
1717
1717
  n = n.replace(/'/g, "%27"), n = n.replace(/%20/g, "+"), n = n.replace(/%5B/g, "["), n = n.replace(/%5D/g, "]"), n = n.replace(/%2C/g, ","), n = n.replace(/%3A/g, ":"), n = n.replace(/%24/g, "$"), s += `&${r}=${n}`;
1718
1718
  }
1719
1719
  return s;
1720
- }, C.concatUrl = (t, e) => C.httpOrHttps(e) ? e : t + e, C.getUrl = (t, e = null) => {
1720
+ }, E.concatUrl = (t, e) => E.httpOrHttps(e) ? e : t + e, E.getUrl = (t, e = null) => {
1721
1721
  if (t == null)
1722
1722
  return null;
1723
1723
  if (e == null)
1724
1724
  return t;
1725
- let s = C.deserialize(t), r = K.mergeTo(s, e);
1726
- return C.getPath(t) + "?" + C.getQuery(r);
1727
- }, C.getAnchor = (t, e = null) => {
1725
+ let s = E.deserialize(t), r = K.mergeTo(s, e);
1726
+ return E.getPath(t) + "?" + E.getQuery(r);
1727
+ }, E.getAnchor = (t, e = null) => {
1728
1728
  let s = { href: null, target: null };
1729
- return C.httpOrHttps(t) ? (s.href = t, s.target = "_blank", s) : (s.href = C.getUrl(t, e), s);
1729
+ return E.httpOrHttps(t) ? (s.href = t, s.target = "_blank", s) : (s.href = E.getUrl(t, e), s);
1730
1730
  };
1731
- let O = C;
1731
+ let I = E;
1732
1732
  class Oe {
1733
1733
  /**
1734
1734
  * 清空对象中的空值
@@ -1742,7 +1742,7 @@ class Oe {
1742
1742
  * 签名字典
1743
1743
  */
1744
1744
  static signDictionary(t, e = !0) {
1745
- return this.clean(t), O.serialize(t, e);
1745
+ return this.clean(t), I.serialize(t, e);
1746
1746
  }
1747
1747
  }
1748
1748
  class he {
@@ -1824,8 +1824,8 @@ class je extends Kt {
1824
1824
  let u = n.getAllResponseHeaders().split(`\r
1825
1825
  `), c = {};
1826
1826
  for (let g = 0; g < u.length; g++) {
1827
- let v = u[g].split(": "), k = v.shift();
1828
- k == null || k == "" || (c[k] = v.join(": "));
1827
+ let S = u[g].split(": "), C = S.shift();
1828
+ C == null || C == "" || (c[C] = S.join(": "));
1829
1829
  }
1830
1830
  o.headers = c;
1831
1831
  let h = o.getHeader("content-type");
@@ -1847,7 +1847,7 @@ class Be extends Kt {
1847
1847
  * 危险操作,会暴露敏感信息
1848
1848
  */
1849
1849
  async open(t) {
1850
- ut.mergeTo(this, t), this.requester = await I.getHttp().getDefault(), this.hasher = await I.getHasher().create("Sha256");
1850
+ ut.mergeTo(this, t), this.requester = await v.getHttp().getDefault(), this.hasher = await v.getHasher().create("Sha256");
1851
1851
  }
1852
1852
  //#endregion
1853
1853
  /**
@@ -1860,15 +1860,15 @@ class Be extends Kt {
1860
1860
  timestamp: parseInt((e / 1e3).toString())
1861
1861
  };
1862
1862
  B.isNullOrEmpty(t.body) || (s.jsonBody = t.body);
1863
- let r = O.deserialize(t.path);
1863
+ let r = I.deserialize(t.path);
1864
1864
  for (let h in r)
1865
1865
  s[h] = r[h];
1866
- let n = O.getPath(t.path);
1866
+ let n = I.getPath(t.path);
1867
1867
  s = wt.sort(s);
1868
1868
  let l = Oe.signDictionary(s, !1), i = `POST${n}?${l}${this.appSecret}`, o = await this.hasher.compute(i);
1869
1869
  s.sign = o.toLowerCase(), delete s.jsonBody, s = wt.sort(s);
1870
- let u = O.serialize(s);
1871
- return t.url = O.concatUrl(this.baseUrl, n + "?" + u), await this.requester.send(t);
1870
+ let u = I.serialize(s);
1871
+ return t.url = I.concatUrl(this.baseUrl, n + "?" + u), await this.requester.send(t);
1872
1872
  }
1873
1873
  }
1874
1874
  class Ae extends Kt {
@@ -1879,7 +1879,7 @@ class Ae extends Kt {
1879
1879
  * 开启
1880
1880
  */
1881
1881
  async open(t) {
1882
- this.baseUrl = t, this.http = await I.getHttp().getDefault(), this.http.onResponse = (e) => {
1882
+ this.baseUrl = t, this.http = await v.getHttp().getDefault(), this.http.onResponse = (e) => {
1883
1883
  let s = e.data;
1884
1884
  se().add(s.code, s.message, s.stack, s.elapsed);
1885
1885
  };
@@ -1889,18 +1889,18 @@ class Ae extends Kt {
1889
1889
  * 发送请求
1890
1890
  */
1891
1891
  async send(t) {
1892
- t.url = O.concatUrl(this.baseUrl, t.path);
1892
+ t.url = I.concatUrl(this.baseUrl, t.path);
1893
1893
  let e = await this.getHeaders(t);
1894
1894
  t.addHeaders(e);
1895
1895
  let s = await this.http.send(t), r = s.data;
1896
- return r.code == "Ok" ? s : (pt.error(r.message), Promise.reject(r));
1896
+ return r.code == "Ok" ? s : (mt.error(r.message), Promise.reject(r));
1897
1897
  }
1898
1898
  /**
1899
1899
  * 获取请求头
1900
1900
  */
1901
1901
  async getHeaders(t) {
1902
1902
  let e = {};
1903
- if (O.httpOrHttps(t.path))
1903
+ if (I.httpOrHttps(t.path))
1904
1904
  return e;
1905
1905
  let s = ce();
1906
1906
  if (e.Authorization = await s.getAuth(t.url, t.body), !t.getHeader("Accept-Language")) {
@@ -1916,13 +1916,13 @@ class Ae extends Kt {
1916
1916
  if (t instanceof Object) {
1917
1917
  se().add("error", t.message, t.stack);
1918
1918
  let s = t.message;
1919
- t.message == "Network Error" && (O.httpOrHttps(t.config.url) ? s = "接口网络错误: " + t.config.url : s = "接口网络错误: " + t.config.baseURL + t.config.url), pt.error(s);
1919
+ t.message == "Network Error" && (I.httpOrHttps(t.config.url) ? s = "接口网络错误: " + t.config.url : s = "接口网络错误: " + t.config.baseURL + t.config.url), mt.error(s);
1920
1920
  } else
1921
- pt.error(t.message);
1921
+ mt.error(t.message);
1922
1922
  return Promise.reject(t);
1923
1923
  }
1924
1924
  }
1925
- class Ue extends L {
1925
+ class De extends $ {
1926
1926
  getInstances() {
1927
1927
  return [new je(), new Be(), new Ae()];
1928
1928
  }
@@ -1939,14 +1939,14 @@ class Ue extends L {
1939
1939
  async getHalo() {
1940
1940
  if (this.halo == null) {
1941
1941
  let t = await this.create("Halo");
1942
- await t.open(mt.api.url), this.halo = t;
1942
+ await t.open(yt.api.url), this.halo = t;
1943
1943
  }
1944
1944
  return this.halo;
1945
1945
  }
1946
1946
  }
1947
- class De {
1947
+ class Ue {
1948
1948
  }
1949
- class Le extends De {
1949
+ class Le extends Ue {
1950
1950
  constructor() {
1951
1951
  super(...arguments), this.type = "Base64";
1952
1952
  }
@@ -1961,7 +1961,7 @@ class Le extends De {
1961
1961
  return st.enc.Utf8.stringify(e);
1962
1962
  }
1963
1963
  }
1964
- class $e extends L {
1964
+ class $e extends $ {
1965
1965
  getInstances() {
1966
1966
  return [new Le()];
1967
1967
  }
@@ -1979,14 +1979,14 @@ class $e extends L {
1979
1979
  return this.base64 != null ? this.base64 : (this.base64 = await this.create("Base64"), this.base64);
1980
1980
  }
1981
1981
  }
1982
- class Ne {
1982
+ class Fe {
1983
1983
  }
1984
- class Pe extends Ne {
1984
+ class Ne extends Fe {
1985
1985
  constructor() {
1986
1986
  super(...arguments), this.type = "Default";
1987
1987
  }
1988
1988
  async open(t) {
1989
- this.hasher = await I.getHasher().getMd5();
1989
+ this.hasher = await as.getMd5();
1990
1990
  }
1991
1991
  callback(t) {
1992
1992
  }
@@ -2000,9 +2000,9 @@ class Pe extends Ne {
2000
2000
  dispose() {
2001
2001
  }
2002
2002
  }
2003
- class Te extends L {
2003
+ class Pe extends $ {
2004
2004
  getInstances() {
2005
- return [new Pe()];
2005
+ return [new Ne()];
2006
2006
  }
2007
2007
  /**
2008
2008
  * 获取指定签名实例
@@ -2020,26 +2020,26 @@ const Ot = class Ot {
2020
2020
  }
2021
2021
  //#endregion
2022
2022
  async login(t) {
2023
- return j.post(`/user/login?type=${this.type}`, t).then(async (e) => (await (await I.getProvider().getDefault("user")).saveAsync("sso", e.data), Promise.resolve(e)));
2023
+ return j.post(`/user/login?type=${this.type}`, t).then(async (e) => (await (await v.getProvider().getDefault("user")).saveAsync("sso", e.data), Promise.resolve(e)));
2024
2024
  }
2025
2025
  loginUrl(t) {
2026
2026
  return "";
2027
2027
  }
2028
2028
  getUser() {
2029
- let t = E.getObject("sso");
2029
+ let t = O.getObject("sso");
2030
2030
  return { userId: t.userId, token: t.token, secret: t.userSecret };
2031
2031
  }
2032
- getAuth(t, e, s, r = "") {
2033
- let n = `${this.type} ${t} ${e} ${s} pc`;
2034
- return r && (n += " " + r), n;
2032
+ getAuth(t, e, s, r = "", n = "") {
2033
+ let l = `${this.type} ${t} ${e} ${s} ${r}`;
2034
+ return n && (l += " " + n), l;
2035
2035
  }
2036
2036
  logout() {
2037
- E.remove(Ot.loginKey), E.remove("sso");
2037
+ O.remove(Ot.loginKey), O.remove("sso");
2038
2038
  }
2039
2039
  };
2040
2040
  Ot.loginKey = "user";
2041
2041
  let ot = Ot;
2042
- class Fe {
2042
+ class Te {
2043
2043
  constructor() {
2044
2044
  this.type = "Nio";
2045
2045
  }
@@ -2047,20 +2047,20 @@ class Fe {
2047
2047
  this.url = t.url, this.app_id = t.app_id;
2048
2048
  }
2049
2049
  async login(t) {
2050
- E.setObject("sso", t);
2050
+ O.setObject("sso", t);
2051
2051
  }
2052
2052
  loginUrl(t) {
2053
2053
  let e = encodeURIComponent(t);
2054
2054
  return `${this.url}/oauth2/authorize?client_id=${this.app_id}&redirect_uri=${e}&response_type=code`;
2055
2055
  }
2056
2056
  getUser() {
2057
- return E.getObject(ot.loginKey);
2057
+ return O.getObject(ot.loginKey);
2058
2058
  }
2059
2059
  getAuth(t, e, s, r) {
2060
2060
  return `${this.type} ${t} ${e} ${s} pc`;
2061
2061
  }
2062
2062
  logout() {
2063
- E.remove("sso");
2063
+ O.remove("sso");
2064
2064
  }
2065
2065
  }
2066
2066
  class Re {
@@ -2095,10 +2095,10 @@ class Ve {
2095
2095
  return "";
2096
2096
  }
2097
2097
  getUser() {
2098
- let t = E.get("anonymous");
2098
+ let t = O.get("anonymous");
2099
2099
  if (!t) {
2100
2100
  let e = B.getUniqueId();
2101
- E.set("anonymous", e), t = e;
2101
+ O.set("anonymous", e), t = e;
2102
2102
  }
2103
2103
  return { userId: "", token: t, secret: "" };
2104
2104
  }
@@ -2117,14 +2117,14 @@ class Ke {
2117
2117
  async login(t) {
2118
2118
  return j.post(`/user/login?type=${this.type}`, t).then((e) => {
2119
2119
  let s = e.data;
2120
- return E.setObject("sso", s), Promise.resolve(e);
2120
+ return O.setObject("sso", s), Promise.resolve(e);
2121
2121
  });
2122
2122
  }
2123
2123
  loginUrl(t) {
2124
2124
  return "";
2125
2125
  }
2126
2126
  getUser() {
2127
- let t = E.getObject(ot.loginKey);
2127
+ let t = O.getObject(ot.loginKey);
2128
2128
  return { userId: t.userId, token: t.token, secret: t.userSecret };
2129
2129
  }
2130
2130
  getAuth(t, e, s, r) {
@@ -2133,12 +2133,12 @@ class Ke {
2133
2133
  logout() {
2134
2134
  }
2135
2135
  }
2136
- class ze extends L {
2136
+ class ze extends $ {
2137
2137
  /**
2138
2138
  * @extends {getInstances}
2139
2139
  */
2140
2140
  getInstances() {
2141
- return [new Ke(), new Fe(), new Re(), new ot(), new Ve()];
2141
+ return [new Ke(), new Te(), new Re(), new ot(), new Ve()];
2142
2142
  }
2143
2143
  /**
2144
2144
  * 获取指定SSO实例
@@ -2151,7 +2151,7 @@ class ze extends L {
2151
2151
  class ct {
2152
2152
  getPath(t) {
2153
2153
  let e = wt.getValueIgnoreCase(t, this.mappings);
2154
- return O.httpOrHttps(e) ? e : this.baseUrl + e;
2154
+ return I.httpOrHttps(e) ? e : this.baseUrl + e;
2155
2155
  }
2156
2156
  async loadPathAsync(t, e) {
2157
2157
  let s = this.baseUrl + t;
@@ -2235,7 +2235,7 @@ class Ye extends ct {
2235
2235
  this.baseUrl = "https://unpkg.com";
2236
2236
  }
2237
2237
  }
2238
- class Qe extends L {
2238
+ class Qe extends $ {
2239
2239
  getInstances() {
2240
2240
  return [new Me(), new qe(), new We(), new Je(), new Ye()];
2241
2241
  }
@@ -2254,7 +2254,7 @@ class Xe {
2254
2254
  }
2255
2255
  class Ge extends Xe {
2256
2256
  }
2257
- class Ze extends L {
2257
+ class Ze extends $ {
2258
2258
  getInstances() {
2259
2259
  return [new Ge()];
2260
2260
  }
@@ -2310,7 +2310,7 @@ class ts {
2310
2310
  copy(t, e, s) {
2311
2311
  }
2312
2312
  }
2313
- class es extends L {
2313
+ class es extends $ {
2314
2314
  getInstances() {
2315
2315
  return [new He(), new _e(), new ts()];
2316
2316
  }
@@ -2346,7 +2346,7 @@ class rs extends de {
2346
2346
  return Promise.resolve(e);
2347
2347
  }
2348
2348
  }
2349
- class ns extends L {
2349
+ class ns extends $ {
2350
2350
  getInstances() {
2351
2351
  return [new ss(), new rs()];
2352
2352
  }
@@ -2550,10 +2550,10 @@ const X = class X extends ls {
2550
2550
  }
2551
2551
  };
2552
2552
  X.version = null;
2553
- let Tt = X;
2554
- class is extends L {
2553
+ let Pt = X;
2554
+ class is extends $ {
2555
2555
  getInstances() {
2556
- return [new Tt()];
2556
+ return [new Pt()];
2557
2557
  }
2558
2558
  /**
2559
2559
  * 获取指定类型的提供程序
@@ -2625,13 +2625,13 @@ const it = class it {
2625
2625
  *获取Http请求工厂
2626
2626
  */
2627
2627
  static getHttp() {
2628
- return this.create("HttpFactory", Ue);
2628
+ return this.create("HttpFactory", De);
2629
2629
  }
2630
2630
  /**
2631
2631
  *获取签名工厂
2632
2632
  */
2633
2633
  static getSigner() {
2634
- return this.create("SignerFactory", Te);
2634
+ return this.create("SignerFactory", Pe);
2635
2635
  }
2636
2636
  /**
2637
2637
  *获取SSO工厂
@@ -2642,12 +2642,12 @@ const it = class it {
2642
2642
  //#endregion
2643
2643
  };
2644
2644
  it.mappings = {};
2645
- let Ft = it;
2646
- const I = Ft;
2647
- let as = I.getHttp(), ne = I.getEncoder(), j = {}, os = async () => {
2648
- j = await as.getHalo();
2645
+ let Tt = it;
2646
+ const v = Tt;
2647
+ let Us = v.getCdn(), ne = v.getEncoder(), Ls = v.getExcel(), $s = v.getExplainer(), Fs = v.getFeature(), as = v.getHasher(), os = v.getHttp(), Ns = v.getProvider(), Ps = v.getSigner(), Ts = v.getSso(), j = {}, us = async () => {
2648
+ j = await os.getHalo();
2649
2649
  };
2650
- const Us = /* @__PURE__ */ _({
2650
+ const Rs = /* @__PURE__ */ _({
2651
2651
  __name: "Code",
2652
2652
  props: {
2653
2653
  config: { default: {} },
@@ -2656,7 +2656,7 @@ const Us = /* @__PURE__ */ _({
2656
2656
  },
2657
2657
  emits: ["mounted", "change", "scroll", "update:modelValue"],
2658
2658
  setup(a, { expose: t, emit: e }) {
2659
- let s = e, r = a, { config: n, border: l, modelValue: i } = tt(r), o = null, u = null, c = null, h = H(), g = at(), v = (d) => d == "en" ? null : d, k = (d) => d == "default" ? null : "vs-dark", ht = (d) => {
2659
+ let s = e, r = a, { config: n, border: l, modelValue: i } = tt(r), o = null, u = null, c = null, h = H(), g = at(), S = (d) => d == "en" ? null : d, C = (d) => d == "default" ? null : "vs-dark", ht = (d) => {
2660
2660
  if (h.editor.completions[d])
2661
2661
  return;
2662
2662
  let y = o.languages.getLanguages().find((W) => W.id == d);
@@ -2679,14 +2679,14 @@ const Us = /* @__PURE__ */ _({
2679
2679
  const At = Jt[Bt];
2680
2680
  let Yt = d.language[At];
2681
2681
  Yt && Yt.forEach((Qt) => {
2682
- let Xt = Qt.toLowerCase(), $ = {
2682
+ let Xt = Qt.toLowerCase(), F = {
2683
2683
  label: Xt,
2684
2684
  kind: null,
2685
2685
  insertText: Xt,
2686
2686
  range: ft,
2687
2687
  documentation: Qt
2688
2688
  };
2689
- At == "keywords" ? ($.kind = o.languages.CompletionItemKind.Keyword, $.detail = "关键词") : At == "operators" ? ($.kind = o.languages.CompletionItemKind.Operator, $.insertText += " ", $.detail = "操作符") : ($.kind = o.languages.CompletionItemKind.Function, $.insertText += "()", $.detail = "函数"), Wt.push($);
2689
+ At == "keywords" ? (F.kind = o.languages.CompletionItemKind.Keyword, F.detail = "关键词") : At == "operators" ? (F.kind = o.languages.CompletionItemKind.Operator, F.insertText += " ", F.detail = "操作符") : (F.kind = o.languages.CompletionItemKind.Function, F.insertText += "()", F.detail = "函数"), Wt.push(F);
2690
2690
  });
2691
2691
  }
2692
2692
  return { suggestions: Wt };
@@ -2718,7 +2718,7 @@ const Us = /* @__PURE__ */ _({
2718
2718
  //默认已启用代码图
2719
2719
  scrollbar: { verticalScrollbarSize: 0 },
2720
2720
  //关闭最右侧垂直滚动条
2721
- theme: k(h.theme),
2721
+ theme: C(h.theme),
2722
2722
  automaticLayout: !0,
2723
2723
  //根据父元素自动布局
2724
2724
  model: c
@@ -2738,17 +2738,17 @@ const Us = /* @__PURE__ */ _({
2738
2738
  }, b = () => u;
2739
2739
  return ie(() => {
2740
2740
  c == null || c.dispose(), u == null || u.dispose();
2741
- }), P(() => h.theme, (d, y) => {
2742
- let A = k(d);
2741
+ }), N(() => h.theme, (d, y) => {
2742
+ let A = C(d);
2743
2743
  o.editor.setTheme(A);
2744
- }), P(() => h.language, (d, y) => {
2745
- bt.config({ "vs/nls": { availableLanguages: { "*": v(d) } } });
2746
- }), P(() => i.value, (d, y) => {
2744
+ }), N(() => h.language, (d, y) => {
2745
+ bt.config({ "vs/nls": { availableLanguages: { "*": S(d) } } });
2746
+ }), N(() => i.value, (d, y) => {
2747
2747
  if (!u)
2748
2748
  return;
2749
2749
  let A = u.getValue();
2750
2750
  d != A && u.setValue(d ?? "");
2751
- }), P(() => n.value.language, (d, y) => {
2751
+ }), N(() => n.value.language, (d, y) => {
2752
2752
  if (!u)
2753
2753
  return;
2754
2754
  let A = u.getModel();
@@ -2756,21 +2756,21 @@ const Us = /* @__PURE__ */ _({
2756
2756
  }), t({ layout: gt, getEditor: b }), (d, y) => (z(), M("div", {
2757
2757
  ref_key: "monacoEditorRef",
2758
2758
  ref: g,
2759
- class: Rt(["ha-code", { border: T(l) }])
2759
+ class: Rt(["ha-code", { border: P(l) }])
2760
2760
  }, null, 2));
2761
2761
  }
2762
- }), us = (a, t) => {
2762
+ }), cs = (a, t) => {
2763
2763
  const e = a.__vccOpts || a;
2764
2764
  for (const [s, r] of t)
2765
2765
  e[s] = r;
2766
2766
  return e;
2767
- }, cs = {}, hs = { class: "ha-col" };
2768
- function ds(a, t) {
2769
- return z(), M("div", hs, [
2767
+ }, hs = {}, ds = { class: "ha-col" };
2768
+ function gs(a, t) {
2769
+ return z(), M("div", ds, [
2770
2770
  It(a.$slots, "default")
2771
2771
  ]);
2772
2772
  }
2773
- const Ds = /* @__PURE__ */ us(cs, [["render", ds]]), Ls = /* @__PURE__ */ _({
2773
+ const Vs = /* @__PURE__ */ cs(hs, [["render", gs]]), Ks = /* @__PURE__ */ _({
2774
2774
  __name: "Compare",
2775
2775
  props: {
2776
2776
  inline: { type: Boolean, default: !1 },
@@ -2780,8 +2780,8 @@ const Ds = /* @__PURE__ */ us(cs, [["render", ds]]), Ls = /* @__PURE__ */ _({
2780
2780
  },
2781
2781
  emits: ["update:modelValue", "update:original", "change"],
2782
2782
  setup(a, { emit: t }) {
2783
- let e = t, s = a, { inline: r, language: n, original: l, modelValue: i } = tt(s), o = null, u = null, c = null, h = null, g = null, v = null, k = at(), ht = at(), dt = H(), jt = (b) => {
2784
- u = b.editor.createModel(l.value, n.value), c = b.editor.createModel(i.value, n.value), o = b.editor.createDiffEditor(k.value, {
2783
+ let e = t, s = a, { inline: r, language: n, original: l, modelValue: i } = tt(s), o = null, u = null, c = null, h = null, g = null, S = null, C = at(), ht = at(), dt = H(), jt = (b) => {
2784
+ u = b.editor.createModel(l.value, n.value), c = b.editor.createModel(i.value, n.value), o = b.editor.createDiffEditor(C.value, {
2785
2785
  originalEditable: !0,
2786
2786
  automaticLayout: !0,
2787
2787
  renderSideBySide: !r.value,
@@ -2796,30 +2796,30 @@ const Ds = /* @__PURE__ */ us(cs, [["render", ds]]), Ls = /* @__PURE__ */ _({
2796
2796
  });
2797
2797
  }, gt = (b) => b == "default" ? null : "vs-dark";
2798
2798
  return bt.init().then((b) => {
2799
- v = b, jt(b);
2800
- }), P(() => dt.theme, (b, d) => {
2799
+ S = b, jt(b);
2800
+ }), N(() => dt.theme, (b, d) => {
2801
2801
  let y = gt(b);
2802
- v.editor.setTheme(y);
2803
- }), P(() => n.value, (b, d) => {
2804
- u && v.editor.setModelLanguage(u, b), c && v.editor.setModelLanguage(c, b);
2805
- }), P(() => l.value, (b, d) => {
2802
+ S.editor.setTheme(y);
2803
+ }), N(() => n.value, (b, d) => {
2804
+ u && S.editor.setModelLanguage(u, b), c && S.editor.setModelLanguage(c, b);
2805
+ }), N(() => l.value, (b, d) => {
2806
2806
  if (!u)
2807
2807
  return;
2808
2808
  let y = u.getValue();
2809
2809
  b != y && u.setValue(b ?? "");
2810
- }), P(() => i.value, (b, d) => {
2810
+ }), N(() => i.value, (b, d) => {
2811
2811
  if (!c)
2812
2812
  return;
2813
2813
  let y = c.getValue();
2814
2814
  b != y && c.setValue(b ?? "");
2815
2815
  }), (b, d) => (z(), M("div", {
2816
2816
  ref_key: "compareRef",
2817
- ref: k,
2817
+ ref: C,
2818
2818
  class: "ha-compare",
2819
- style: Vt(T(ht))
2819
+ style: Vt(P(ht))
2820
2820
  }, null, 4));
2821
2821
  }
2822
- }), $s = /* @__PURE__ */ _({
2822
+ }), zs = /* @__PURE__ */ _({
2823
2823
  __name: "Container",
2824
2824
  props: {
2825
2825
  container: { type: Boolean, default: !0 }
@@ -2827,15 +2827,15 @@ const Ds = /* @__PURE__ */ us(cs, [["render", ds]]), Ls = /* @__PURE__ */ _({
2827
2827
  setup(a) {
2828
2828
  let t = a, { container: e } = tt(t);
2829
2829
  return (s, r) => (z(), M("div", {
2830
- class: Rt({ "ha-container": T(e) })
2830
+ class: Rt({ "ha-container": P(e) })
2831
2831
  }, [
2832
2832
  It(s.$slots, "default")
2833
2833
  ], 2));
2834
2834
  }
2835
- }), gs = { class: "ha-empty" }, fs = { class: "empty-message" }, ms = {
2835
+ }), fs = { class: "ha-empty" }, ms = { class: "empty-message" }, ps = {
2836
2836
  key: 0,
2837
2837
  class: "empty-content"
2838
- }, Ns = /* @__PURE__ */ _({
2838
+ }, Ms = /* @__PURE__ */ _({
2839
2839
  __name: "Empty",
2840
2840
  props: {
2841
2841
  message: { type: String, default: "暂无数据" },
@@ -2843,14 +2843,14 @@ const Ds = /* @__PURE__ */ us(cs, [["render", ds]]), Ls = /* @__PURE__ */ _({
2843
2843
  },
2844
2844
  setup(a) {
2845
2845
  let t = a, { message: e, hasData: s } = tt(t);
2846
- return (r, n) => (z(), M("div", gs, [
2847
- me("div", fs, pe(T(e)), 1),
2848
- T(s) ? (z(), M("div", ms, [
2846
+ return (r, n) => (z(), M("div", fs, [
2847
+ me("div", ms, pe(P(e)), 1),
2848
+ P(s) ? (z(), M("div", ps, [
2849
2849
  It(r.$slots, "default")
2850
2850
  ])) : ae("", !0)
2851
2851
  ]));
2852
2852
  }
2853
- }), Ps = /* @__PURE__ */ _({
2853
+ }), qs = /* @__PURE__ */ _({
2854
2854
  __name: "Progress",
2855
2855
  props: {
2856
2856
  modelValue: Boolean
@@ -2876,15 +2876,15 @@ const Ds = /* @__PURE__ */ us(cs, [["render", ds]]), Ls = /* @__PURE__ */ _({
2876
2876
  e.value && l();
2877
2877
  }), ie(() => {
2878
2878
  clearInterval(n);
2879
- }), P(() => e.value, (o, u) => {
2879
+ }), N(() => e.value, (o, u) => {
2880
2880
  o ? l() : i();
2881
- }), (o, u) => T(s) ? (z(), M("div", {
2881
+ }), (o, u) => P(s) ? (z(), M("div", {
2882
2882
  key: 0,
2883
2883
  class: "ha-progress",
2884
- style: Vt({ width: T(r) + "%" })
2884
+ style: Vt({ width: P(r) + "%" })
2885
2885
  }, null, 4)) : ae("", !0);
2886
2886
  }
2887
- }), Ts = /* @__PURE__ */ _({
2887
+ }), Ws = /* @__PURE__ */ _({
2888
2888
  __name: "Row",
2889
2889
  props: {
2890
2890
  gap: {},
@@ -2896,14 +2896,14 @@ const Ds = /* @__PURE__ */ us(cs, [["render", ds]]), Ls = /* @__PURE__ */ _({
2896
2896
  return e.value && (n.gap = e.value + "px"), n;
2897
2897
  });
2898
2898
  return (n, l) => (z(), M("div", {
2899
- class: Rt(["ha-row", T(s)]),
2900
- style: Vt(T(r))
2899
+ class: Rt(["ha-row", P(s)]),
2900
+ style: Vt(P(r))
2901
2901
  }, [
2902
2902
  It(n.$slots, "default")
2903
2903
  ], 6));
2904
2904
  }
2905
2905
  });
2906
- class Fs {
2906
+ class Js {
2907
2907
  /**
2908
2908
  * 初始化,并绑定自动关闭上下文菜单事件
2909
2909
  */
@@ -2928,7 +2928,7 @@ class Fs {
2928
2928
  }
2929
2929
  }
2930
2930
  }
2931
- class Rs {
2931
+ class Ys {
2932
2932
  constructor() {
2933
2933
  this.events = {}, this.add = (t, e, s, r, n, l) => {
2934
2934
  let i = this.events[r];
@@ -2984,7 +2984,7 @@ class Rs {
2984
2984
  clearTimeout(this.timer);
2985
2985
  }
2986
2986
  }
2987
- class Vs {
2987
+ class Qs {
2988
2988
  constructor() {
2989
2989
  this.resizeObserver = null, this.resizeHandler = null, this.resize = (t, e, s = 100) => {
2990
2990
  this.resizeHandler = (r) => {
@@ -3002,69 +3002,77 @@ class Vs {
3002
3002
  };
3003
3003
  }
3004
3004
  }
3005
- let Ks = async (a) => {
3006
- Se(a), await os();
3005
+ let Xs = async (a) => {
3006
+ Se(a), await us();
3007
3007
  };
3008
3008
  export {
3009
3009
  rt as ArrayHelper,
3010
- Os as ComponentHelper,
3011
- Is as CookieHelper,
3010
+ js as ComponentHelper,
3011
+ Bs as CookieHelper,
3012
3012
  wt as DictionaryHelper,
3013
3013
  V as DomHelper,
3014
- I as DriverFactory,
3014
+ v as DriverFactory,
3015
3015
  vt as EventHelper,
3016
- Vs as EventUtility,
3016
+ Qs as EventUtility,
3017
3017
  ke as ExcelFactory,
3018
3018
  es as FeatureFactory,
3019
3019
  St as FileHelper,
3020
- Us as HaCode,
3021
- Ds as HaCol,
3022
- Ls as HaCompare,
3023
- $s as HaContainer,
3024
- Ns as HaEmpty,
3025
- Ps as HaProgress,
3026
- Ts as HaRow,
3020
+ Rs as HaCode,
3021
+ Vs as HaCol,
3022
+ Ks as HaCompare,
3023
+ zs as HaContainer,
3024
+ Ms as HaEmpty,
3025
+ qs as HaProgress,
3026
+ Ws as HaRow,
3027
3027
  Ae as HaloHttp,
3028
3028
  ns as HasherFactory,
3029
3029
  Gt as HtmlHelper,
3030
- Ue as HttpFactory,
3030
+ De as HttpFactory,
3031
3031
  Ie as HttpRequest,
3032
3032
  re as HttpResponse,
3033
- As as I18nHelper,
3033
+ Ds as I18nHelper,
3034
3034
  Zt as ImageHelper,
3035
3035
  ut as JsonHelper,
3036
- Rs as KeyboardUtility,
3036
+ Ys as KeyboardUtility,
3037
3037
  Ht as MathHelper,
3038
3038
  _t as MicroHelper,
3039
3039
  xt as MountHelper,
3040
- Fs as MouseUtility,
3040
+ Js as MouseUtility,
3041
3041
  K as ObjectHelper,
3042
3042
  is as ProviderFactory,
3043
3043
  kt as ScriptHelper,
3044
3044
  ee as ScrollHelper,
3045
- mt as SettingService,
3045
+ yt as SettingService,
3046
3046
  Oe as SignHelper,
3047
- Te as SignerFactory,
3047
+ Pe as SignerFactory,
3048
3048
  ze as SsoFactory,
3049
- E as StorageHelper,
3049
+ O as StorageHelper,
3050
3050
  B as StringHelper,
3051
3051
  te as TaskHelper,
3052
3052
  q as TimeHelper,
3053
3053
  Ct as TreeHelper,
3054
- x as TypeHelper,
3055
- O as UrlHelper,
3056
- Ks as createHalo,
3054
+ k as TypeHelper,
3055
+ I as UrlHelper,
3056
+ Us as cdnFactory,
3057
+ Xs as createFe,
3057
3058
  ne as encoderFactory,
3059
+ Ls as excelFactory,
3060
+ $s as explainerFactory,
3061
+ Fs as featureFactory,
3062
+ as as hasherFactory,
3058
3063
  j as http,
3059
- as as httpFactory,
3060
- js as loadEcharts,
3064
+ os as httpFactory,
3065
+ Is as loadEcharts,
3061
3066
  bt as loader,
3062
- pt as messager,
3063
- N as moment,
3064
- os as setHttp,
3067
+ mt as messager,
3068
+ U as moment,
3069
+ Ns as providerFactory,
3070
+ us as setHttp,
3065
3071
  Se as setMessager,
3072
+ Ps as signerFactory,
3073
+ Ts as ssoFactory,
3066
3074
  H as useConfigStore,
3067
- Bs as useDriverStore,
3075
+ As as useDriverStore,
3068
3076
  Ce as useEnvStore,
3069
3077
  se as useLogStore,
3070
3078
  ue as useSettingStore,