@10yun/open-sdk 0.3.97 → 0.3.99

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.
@@ -1,25 +1,25 @@
1
- import { _ as ee, S as te, H as ie, u as oe, a as se, b as ne, c as re } from "./index-eCmAf5ru.js";
1
+ import { _ as ee, S as te, H as ie, u as se, a as oe, b as ne, c as re } from "./index-e5P8YtsL.js";
2
2
  import "pinia";
3
- import { resolveComponent as R, createElementBlock as I, openBlock as E, createCommentVNode as B, createBlock as G, createElementVNode as f, toDisplayString as b, createVNode as A, withCtx as N, createTextVNode as U, withKeys as ae } from "vue";
3
+ import { resolveComponent as U, createElementBlock as I, openBlock as y, createCommentVNode as B, createBlock as G, createElementVNode as f, toDisplayString as b, createVNode as E, withCtx as N, createTextVNode as R, withKeys as ae } from "vue";
4
4
  function le(n) {
5
5
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
6
6
  }
7
7
  var Q = { exports: {} }, he = Q.exports, X;
8
8
  function ce() {
9
9
  return X || (X = 1, function(n, a) {
10
- var m;
11
- (function(p, h) {
10
+ var v;
11
+ (function(_, h) {
12
12
  n.exports = h();
13
13
  })(he, function() {
14
- function p(e) {
14
+ function _(e) {
15
15
  this.mode = d.MODE_8BIT_BYTE, this.data = e, this.parsedData = [];
16
16
  for (var t = 0, i = this.data.length; t < i; t++) {
17
- var o = [], s = this.data.charCodeAt(t);
18
- s > 65536 ? (o[0] = 240 | (s & 1835008) >>> 18, o[1] = 128 | (s & 258048) >>> 12, o[2] = 128 | (s & 4032) >>> 6, o[3] = 128 | s & 63) : s > 2048 ? (o[0] = 224 | (s & 61440) >>> 12, o[1] = 128 | (s & 4032) >>> 6, o[2] = 128 | s & 63) : s > 128 ? (o[0] = 192 | (s & 1984) >>> 6, o[1] = 128 | s & 63) : o[0] = s, this.parsedData.push(o);
17
+ var s = [], o = this.data.charCodeAt(t);
18
+ o > 65536 ? (s[0] = 240 | (o & 1835008) >>> 18, s[1] = 128 | (o & 258048) >>> 12, s[2] = 128 | (o & 4032) >>> 6, s[3] = 128 | o & 63) : o > 2048 ? (s[0] = 224 | (o & 61440) >>> 12, s[1] = 128 | (o & 4032) >>> 6, s[2] = 128 | o & 63) : o > 128 ? (s[0] = 192 | (o & 1984) >>> 6, s[1] = 128 | o & 63) : s[0] = o, this.parsedData.push(s);
19
19
  }
20
20
  this.parsedData = Array.prototype.concat.apply([], this.parsedData), this.parsedData.length != this.data.length && (this.parsedData.unshift(191), this.parsedData.unshift(187), this.parsedData.unshift(239));
21
21
  }
22
- p.prototype = {
22
+ _.prototype = {
23
23
  getLength: function(e) {
24
24
  return this.parsedData.length;
25
25
  },
@@ -33,7 +33,7 @@ function ce() {
33
33
  }
34
34
  h.prototype = {
35
35
  addData: function(e) {
36
- var t = new p(e);
36
+ var t = new _(e);
37
37
  this.dataList.push(t), this.dataCache = null;
38
38
  },
39
39
  isDark: function(e, t) {
@@ -51,34 +51,34 @@ function ce() {
51
51
  this.moduleCount = this.typeNumber * 4 + 17, this.modules = new Array(this.moduleCount);
52
52
  for (var i = 0; i < this.moduleCount; i++) {
53
53
  this.modules[i] = new Array(this.moduleCount);
54
- for (var o = 0; o < this.moduleCount; o++)
55
- this.modules[i][o] = null;
54
+ for (var s = 0; s < this.moduleCount; s++)
55
+ this.modules[i][s] = null;
56
56
  }
57
57
  this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache = h.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, t);
58
58
  },
59
59
  setupPositionProbePattern: function(e, t) {
60
60
  for (var i = -1; i <= 7; i++)
61
61
  if (!(e + i <= -1 || this.moduleCount <= e + i))
62
- for (var o = -1; o <= 7; o++)
63
- t + o <= -1 || this.moduleCount <= t + o || (0 <= i && i <= 6 && (o == 0 || o == 6) || 0 <= o && o <= 6 && (i == 0 || i == 6) || 2 <= i && i <= 4 && 2 <= o && o <= 4 ? this.modules[e + i][t + o] = !0 : this.modules[e + i][t + o] = !1);
62
+ for (var s = -1; s <= 7; s++)
63
+ t + s <= -1 || this.moduleCount <= t + s || (0 <= i && i <= 6 && (s == 0 || s == 6) || 0 <= s && s <= 6 && (i == 0 || i == 6) || 2 <= i && i <= 4 && 2 <= s && s <= 4 ? this.modules[e + i][t + s] = !0 : this.modules[e + i][t + s] = !1);
64
64
  },
65
65
  getBestMaskPattern: function() {
66
66
  for (var e = 0, t = 0, i = 0; i < 8; i++) {
67
67
  this.makeImpl(!0, i);
68
- var o = v.getLostPoint(this);
69
- (i == 0 || e > o) && (e = o, t = i);
68
+ var s = m.getLostPoint(this);
69
+ (i == 0 || e > s) && (e = s, t = i);
70
70
  }
71
71
  return t;
72
72
  },
73
73
  createMovieClip: function(e, t, i) {
74
- var o = e.createEmptyMovieClip(t, i), s = 1;
74
+ var s = e.createEmptyMovieClip(t, i), o = 1;
75
75
  this.make();
76
76
  for (var l = 0; l < this.modules.length; l++)
77
- for (var c = l * s, r = 0; r < this.modules[l].length; r++) {
78
- var u = r * s, _ = this.modules[l][r];
79
- _ && (o.beginFill(0, 100), o.moveTo(u, c), o.lineTo(u + s, c), o.lineTo(u + s, c + s), o.lineTo(u, c + s), o.endFill());
77
+ for (var c = l * o, r = 0; r < this.modules[l].length; r++) {
78
+ var u = r * o, p = this.modules[l][r];
79
+ p && (s.beginFill(0, 100), s.moveTo(u, c), s.lineTo(u + o, c), s.lineTo(u + o, c + o), s.lineTo(u, c + o), s.endFill());
80
80
  }
81
- return o;
81
+ return s;
82
82
  },
83
83
  setupTimingPattern: function() {
84
84
  for (var e = 8; e < this.moduleCount - 8; e++)
@@ -87,75 +87,75 @@ function ce() {
87
87
  this.modules[6][t] == null && (this.modules[6][t] = t % 2 == 0);
88
88
  },
89
89
  setupPositionAdjustPattern: function() {
90
- for (var e = v.getPatternPosition(this.typeNumber), t = 0; t < e.length; t++)
90
+ for (var e = m.getPatternPosition(this.typeNumber), t = 0; t < e.length; t++)
91
91
  for (var i = 0; i < e.length; i++) {
92
- var o = e[t], s = e[i];
93
- if (this.modules[o][s] == null)
92
+ var s = e[t], o = e[i];
93
+ if (this.modules[s][o] == null)
94
94
  for (var l = -2; l <= 2; l++)
95
95
  for (var c = -2; c <= 2; c++)
96
- l == -2 || l == 2 || c == -2 || c == 2 || l == 0 && c == 0 ? this.modules[o + l][s + c] = !0 : this.modules[o + l][s + c] = !1;
96
+ l == -2 || l == 2 || c == -2 || c == 2 || l == 0 && c == 0 ? this.modules[s + l][o + c] = !0 : this.modules[s + l][o + c] = !1;
97
97
  }
98
98
  },
99
99
  setupTypeNumber: function(e) {
100
- for (var t = v.getBCHTypeNumber(this.typeNumber), i = 0; i < 18; i++) {
101
- var o = !e && (t >> i & 1) == 1;
102
- this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = o;
100
+ for (var t = m.getBCHTypeNumber(this.typeNumber), i = 0; i < 18; i++) {
101
+ var s = !e && (t >> i & 1) == 1;
102
+ this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = s;
103
103
  }
104
104
  for (var i = 0; i < 18; i++) {
105
- var o = !e && (t >> i & 1) == 1;
106
- this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = o;
105
+ var s = !e && (t >> i & 1) == 1;
106
+ this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = s;
107
107
  }
108
108
  },
109
109
  setupTypeInfo: function(e, t) {
110
- for (var i = this.errorCorrectLevel << 3 | t, o = v.getBCHTypeInfo(i), s = 0; s < 15; s++) {
111
- var l = !e && (o >> s & 1) == 1;
112
- s < 6 ? this.modules[s][8] = l : s < 8 ? this.modules[s + 1][8] = l : this.modules[this.moduleCount - 15 + s][8] = l;
110
+ for (var i = this.errorCorrectLevel << 3 | t, s = m.getBCHTypeInfo(i), o = 0; o < 15; o++) {
111
+ var l = !e && (s >> o & 1) == 1;
112
+ o < 6 ? this.modules[o][8] = l : o < 8 ? this.modules[o + 1][8] = l : this.modules[this.moduleCount - 15 + o][8] = l;
113
113
  }
114
- for (var s = 0; s < 15; s++) {
115
- var l = !e && (o >> s & 1) == 1;
116
- s < 8 ? this.modules[8][this.moduleCount - s - 1] = l : s < 9 ? this.modules[8][15 - s - 1 + 1] = l : this.modules[8][15 - s - 1] = l;
114
+ for (var o = 0; o < 15; o++) {
115
+ var l = !e && (s >> o & 1) == 1;
116
+ o < 8 ? this.modules[8][this.moduleCount - o - 1] = l : o < 9 ? this.modules[8][15 - o - 1 + 1] = l : this.modules[8][15 - o - 1] = l;
117
117
  }
118
118
  this.modules[this.moduleCount - 8][8] = !e;
119
119
  },
120
120
  mapData: function(e, t) {
121
- for (var i = -1, o = this.moduleCount - 1, s = 7, l = 0, c = this.moduleCount - 1; c > 0; c -= 2)
121
+ for (var i = -1, s = this.moduleCount - 1, o = 7, l = 0, c = this.moduleCount - 1; c > 0; c -= 2)
122
122
  for (c == 6 && c--; ; ) {
123
123
  for (var r = 0; r < 2; r++)
124
- if (this.modules[o][c - r] == null) {
124
+ if (this.modules[s][c - r] == null) {
125
125
  var u = !1;
126
- l < e.length && (u = (e[l] >>> s & 1) == 1);
127
- var _ = v.getMask(t, o, c - r);
128
- _ && (u = !u), this.modules[o][c - r] = u, s--, s == -1 && (l++, s = 7);
126
+ l < e.length && (u = (e[l] >>> o & 1) == 1);
127
+ var p = m.getMask(t, s, c - r);
128
+ p && (u = !u), this.modules[s][c - r] = u, o--, o == -1 && (l++, o = 7);
129
129
  }
130
- if (o += i, o < 0 || this.moduleCount <= o) {
131
- o -= i, i = -i;
130
+ if (s += i, s < 0 || this.moduleCount <= s) {
131
+ s -= i, i = -i;
132
132
  break;
133
133
  }
134
134
  }
135
135
  }
136
136
  }, h.PAD0 = 236, h.PAD1 = 17, h.createData = function(e, t, i) {
137
- for (var o = k.getRSBlocks(e, t), s = new w(), l = 0; l < i.length; l++) {
137
+ for (var s = A.getRSBlocks(e, t), o = new w(), l = 0; l < i.length; l++) {
138
138
  var c = i[l];
139
- s.put(c.mode, 4), s.put(c.getLength(), v.getLengthInBits(c.mode, e)), c.write(s);
139
+ o.put(c.mode, 4), o.put(c.getLength(), m.getLengthInBits(c.mode, e)), c.write(o);
140
140
  }
141
- for (var r = 0, l = 0; l < o.length; l++)
142
- r += o[l].dataCount;
143
- if (s.getLengthInBits() > r * 8)
144
- throw new Error("code length overflow. (" + s.getLengthInBits() + ">" + r * 8 + ")");
145
- for (s.getLengthInBits() + 4 <= r * 8 && s.put(0, 4); s.getLengthInBits() % 8 != 0; )
146
- s.putBit(!1);
147
- for (; !(s.getLengthInBits() >= r * 8 || (s.put(h.PAD0, 8), s.getLengthInBits() >= r * 8)); )
148
- s.put(h.PAD1, 8);
149
- return h.createBytes(s, o);
141
+ for (var r = 0, l = 0; l < s.length; l++)
142
+ r += s[l].dataCount;
143
+ if (o.getLengthInBits() > r * 8)
144
+ throw new Error("code length overflow. (" + o.getLengthInBits() + ">" + r * 8 + ")");
145
+ for (o.getLengthInBits() + 4 <= r * 8 && o.put(0, 4); o.getLengthInBits() % 8 != 0; )
146
+ o.putBit(!1);
147
+ for (; !(o.getLengthInBits() >= r * 8 || (o.put(h.PAD0, 8), o.getLengthInBits() >= r * 8)); )
148
+ o.put(h.PAD1, 8);
149
+ return h.createBytes(o, s);
150
150
  }, h.createBytes = function(e, t) {
151
- for (var i = 0, o = 0, s = 0, l = new Array(t.length), c = new Array(t.length), r = 0; r < t.length; r++) {
152
- var u = t[r].dataCount, _ = t[r].totalCount - u;
153
- o = Math.max(o, u), s = Math.max(s, _), l[r] = new Array(u);
151
+ for (var i = 0, s = 0, o = 0, l = new Array(t.length), c = new Array(t.length), r = 0; r < t.length; r++) {
152
+ var u = t[r].dataCount, p = t[r].totalCount - u;
153
+ s = Math.max(s, u), o = Math.max(o, p), l[r] = new Array(u);
154
154
  for (var g = 0; g < l[r].length; g++)
155
155
  l[r][g] = 255 & e.buffer[g + i];
156
156
  i += u;
157
- var y = v.getErrorCorrectPolynomial(_), S = new O(l[r], y.getLength() - 1), M = S.mod(y);
158
- c[r] = new Array(y.getLength() - 1);
157
+ var T = m.getErrorCorrectPolynomial(p), k = new O(l[r], T.getLength() - 1), M = k.mod(T);
158
+ c[r] = new Array(T.getLength() - 1);
159
159
  for (var g = 0; g < c[r].length; g++) {
160
160
  var D = g + M.getLength() - c[r].length;
161
161
  c[r][g] = D >= 0 ? M.get(D) : 0;
@@ -163,15 +163,15 @@ function ce() {
163
163
  }
164
164
  for (var x = 0, g = 0; g < t.length; g++)
165
165
  x += t[g].totalCount;
166
- for (var H = new Array(x), F = 0, g = 0; g < o; g++)
166
+ for (var H = new Array(x), F = 0, g = 0; g < s; g++)
167
167
  for (var r = 0; r < t.length; r++)
168
168
  g < l[r].length && (H[F++] = l[r][g]);
169
- for (var g = 0; g < s; g++)
169
+ for (var g = 0; g < o; g++)
170
170
  for (var r = 0; r < t.length; r++)
171
171
  g < c[r].length && (H[F++] = c[r][g]);
172
172
  return H;
173
173
  };
174
- for (var d = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, T = { L: 1, M: 0, Q: 3, H: 2 }, P = {
174
+ for (var d = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, S = { L: 1, M: 0, Q: 3, H: 2 }, P = {
175
175
  PATTERN000: 0,
176
176
  PATTERN001: 1,
177
177
  PATTERN010: 2,
@@ -180,7 +180,7 @@ function ce() {
180
180
  PATTERN101: 5,
181
181
  PATTERN110: 6,
182
182
  PATTERN111: 7
183
- }, v = {
183
+ }, m = {
184
184
  PATTERN_POSITION_TABLE: [
185
185
  [],
186
186
  [6, 18],
@@ -227,13 +227,13 @@ function ce() {
227
227
  G18: 7973,
228
228
  G15_MASK: 21522,
229
229
  getBCHTypeInfo: function(e) {
230
- for (var t = e << 10; v.getBCHDigit(t) - v.getBCHDigit(v.G15) >= 0; )
231
- t ^= v.G15 << v.getBCHDigit(t) - v.getBCHDigit(v.G15);
232
- return (e << 10 | t) ^ v.G15_MASK;
230
+ for (var t = e << 10; m.getBCHDigit(t) - m.getBCHDigit(m.G15) >= 0; )
231
+ t ^= m.G15 << m.getBCHDigit(t) - m.getBCHDigit(m.G15);
232
+ return (e << 10 | t) ^ m.G15_MASK;
233
233
  },
234
234
  getBCHTypeNumber: function(e) {
235
- for (var t = e << 12; v.getBCHDigit(t) - v.getBCHDigit(v.G18) >= 0; )
236
- t ^= v.G18 << v.getBCHDigit(t) - v.getBCHDigit(v.G18);
235
+ for (var t = e << 12; m.getBCHDigit(t) - m.getBCHDigit(m.G18) >= 0; )
236
+ t ^= m.G18 << m.getBCHDigit(t) - m.getBCHDigit(m.G18);
237
237
  return e << 12 | t;
238
238
  },
239
239
  getBCHDigit: function(e) {
@@ -242,7 +242,7 @@ function ce() {
242
242
  return t;
243
243
  },
244
244
  getPatternPosition: function(e) {
245
- return v.PATTERN_POSITION_TABLE[e - 1];
245
+ return m.PATTERN_POSITION_TABLE[e - 1];
246
246
  },
247
247
  getMask: function(e, t, i) {
248
248
  switch (e) {
@@ -315,30 +315,30 @@ function ce() {
315
315
  throw new Error("type:" + t);
316
316
  },
317
317
  getLostPoint: function(e) {
318
- for (var t = e.getModuleCount(), i = 0, o = 0; o < t; o++)
319
- for (var s = 0; s < t; s++) {
320
- for (var l = 0, c = e.isDark(o, s), r = -1; r <= 1; r++)
321
- if (!(o + r < 0 || t <= o + r))
318
+ for (var t = e.getModuleCount(), i = 0, s = 0; s < t; s++)
319
+ for (var o = 0; o < t; o++) {
320
+ for (var l = 0, c = e.isDark(s, o), r = -1; r <= 1; r++)
321
+ if (!(s + r < 0 || t <= s + r))
322
322
  for (var u = -1; u <= 1; u++)
323
- s + u < 0 || t <= s + u || r == 0 && u == 0 || c == e.isDark(o + r, s + u) && l++;
323
+ o + u < 0 || t <= o + u || r == 0 && u == 0 || c == e.isDark(s + r, o + u) && l++;
324
324
  l > 5 && (i += 3 + l - 5);
325
325
  }
326
- for (var o = 0; o < t - 1; o++)
327
- for (var s = 0; s < t - 1; s++) {
328
- var _ = 0;
329
- e.isDark(o, s) && _++, e.isDark(o + 1, s) && _++, e.isDark(o, s + 1) && _++, e.isDark(o + 1, s + 1) && _++, (_ == 0 || _ == 4) && (i += 3);
326
+ for (var s = 0; s < t - 1; s++)
327
+ for (var o = 0; o < t - 1; o++) {
328
+ var p = 0;
329
+ e.isDark(s, o) && p++, e.isDark(s + 1, o) && p++, e.isDark(s, o + 1) && p++, e.isDark(s + 1, o + 1) && p++, (p == 0 || p == 4) && (i += 3);
330
330
  }
331
- for (var o = 0; o < t; o++)
332
- for (var s = 0; s < t - 6; s++)
333
- e.isDark(o, s) && !e.isDark(o, s + 1) && e.isDark(o, s + 2) && e.isDark(o, s + 3) && e.isDark(o, s + 4) && !e.isDark(o, s + 5) && e.isDark(o, s + 6) && (i += 40);
334
331
  for (var s = 0; s < t; s++)
335
332
  for (var o = 0; o < t - 6; o++)
336
- e.isDark(o, s) && !e.isDark(o + 1, s) && e.isDark(o + 2, s) && e.isDark(o + 3, s) && e.isDark(o + 4, s) && !e.isDark(o + 5, s) && e.isDark(o + 6, s) && (i += 40);
337
- for (var g = 0, s = 0; s < t; s++)
338
- for (var o = 0; o < t; o++)
339
- e.isDark(o, s) && g++;
340
- var y = Math.abs(100 * g / t / t - 50) / 5;
341
- return i += y * 10, i;
333
+ e.isDark(s, o) && !e.isDark(s, o + 1) && e.isDark(s, o + 2) && e.isDark(s, o + 3) && e.isDark(s, o + 4) && !e.isDark(s, o + 5) && e.isDark(s, o + 6) && (i += 40);
334
+ for (var o = 0; o < t; o++)
335
+ for (var s = 0; s < t - 6; s++)
336
+ e.isDark(s, o) && !e.isDark(s + 1, o) && e.isDark(s + 2, o) && e.isDark(s + 3, o) && e.isDark(s + 4, o) && !e.isDark(s + 5, o) && e.isDark(s + 6, o) && (i += 40);
337
+ for (var g = 0, o = 0; o < t; o++)
338
+ for (var s = 0; s < t; s++)
339
+ e.isDark(s, o) && g++;
340
+ var T = Math.abs(100 * g / t / t - 50) / 5;
341
+ return i += T * 10, i;
342
342
  }
343
343
  }, C = {
344
344
  glog: function(e) {
@@ -367,8 +367,8 @@ function ce() {
367
367
  for (var i = 0; i < e.length && e[i] == 0; )
368
368
  i++;
369
369
  this.num = new Array(e.length - i + t);
370
- for (var o = 0; o < e.length - i; o++)
371
- this.num[o] = e[o + i];
370
+ for (var s = 0; s < e.length - i; s++)
371
+ this.num[s] = e[s + i];
372
372
  }
373
373
  O.prototype = {
374
374
  get: function(e) {
@@ -379,24 +379,24 @@ function ce() {
379
379
  },
380
380
  multiply: function(e) {
381
381
  for (var t = new Array(this.getLength() + e.getLength() - 1), i = 0; i < this.getLength(); i++)
382
- for (var o = 0; o < e.getLength(); o++)
383
- t[i + o] ^= C.gexp(C.glog(this.get(i)) + C.glog(e.get(o)));
382
+ for (var s = 0; s < e.getLength(); s++)
383
+ t[i + s] ^= C.gexp(C.glog(this.get(i)) + C.glog(e.get(s)));
384
384
  return new O(t, 0);
385
385
  },
386
386
  mod: function(e) {
387
387
  if (this.getLength() - e.getLength() < 0)
388
388
  return this;
389
- for (var t = C.glog(this.get(0)) - C.glog(e.get(0)), i = new Array(this.getLength()), o = 0; o < this.getLength(); o++)
390
- i[o] = this.get(o);
391
- for (var o = 0; o < e.getLength(); o++)
392
- i[o] ^= C.gexp(C.glog(e.get(o)) + t);
389
+ for (var t = C.glog(this.get(0)) - C.glog(e.get(0)), i = new Array(this.getLength()), s = 0; s < this.getLength(); s++)
390
+ i[s] = this.get(s);
391
+ for (var s = 0; s < e.getLength(); s++)
392
+ i[s] ^= C.gexp(C.glog(e.get(s)) + t);
393
393
  return new O(i, 0).mod(e);
394
394
  }
395
395
  };
396
- function k(e, t) {
396
+ function A(e, t) {
397
397
  this.totalCount = e, this.dataCount = t;
398
398
  }
399
- k.RS_BLOCK_TABLE = [
399
+ A.RS_BLOCK_TABLE = [
400
400
  [1, 26, 19],
401
401
  [1, 26, 16],
402
402
  [1, 26, 13],
@@ -557,24 +557,24 @@ function ce() {
557
557
  [18, 75, 47, 31, 76, 48],
558
558
  [34, 54, 24, 34, 55, 25],
559
559
  [20, 45, 15, 61, 46, 16]
560
- ], k.getRSBlocks = function(e, t) {
561
- var i = k.getRsBlockTable(e, t);
560
+ ], A.getRSBlocks = function(e, t) {
561
+ var i = A.getRsBlockTable(e, t);
562
562
  if (i == null)
563
563
  throw new Error("bad rs block @ typeNumber:" + e + "/errorCorrectLevel:" + t);
564
- for (var o = i.length / 3, s = [], l = 0; l < o; l++)
565
- for (var c = i[l * 3 + 0], r = i[l * 3 + 1], u = i[l * 3 + 2], _ = 0; _ < c; _++)
566
- s.push(new k(r, u));
567
- return s;
568
- }, k.getRsBlockTable = function(e, t) {
564
+ for (var s = i.length / 3, o = [], l = 0; l < s; l++)
565
+ for (var c = i[l * 3 + 0], r = i[l * 3 + 1], u = i[l * 3 + 2], p = 0; p < c; p++)
566
+ o.push(new A(r, u));
567
+ return o;
568
+ }, A.getRsBlockTable = function(e, t) {
569
569
  switch (t) {
570
- case T.L:
571
- return k.RS_BLOCK_TABLE[(e - 1) * 4 + 0];
572
- case T.M:
573
- return k.RS_BLOCK_TABLE[(e - 1) * 4 + 1];
574
- case T.Q:
575
- return k.RS_BLOCK_TABLE[(e - 1) * 4 + 2];
576
- case T.H:
577
- return k.RS_BLOCK_TABLE[(e - 1) * 4 + 3];
570
+ case S.L:
571
+ return A.RS_BLOCK_TABLE[(e - 1) * 4 + 0];
572
+ case S.M:
573
+ return A.RS_BLOCK_TABLE[(e - 1) * 4 + 1];
574
+ case S.Q:
575
+ return A.RS_BLOCK_TABLE[(e - 1) * 4 + 2];
576
+ case S.H:
577
+ return A.RS_BLOCK_TABLE[(e - 1) * 4 + 3];
578
578
  default:
579
579
  return;
580
580
  }
@@ -658,25 +658,25 @@ function ce() {
658
658
  this._el = t, this._htOption = i;
659
659
  };
660
660
  return e.prototype.draw = function(t) {
661
- var i = this._htOption, o = this._el, s = t.getModuleCount();
662
- Math.floor(i.width / s), Math.floor(i.height / s), this.clear();
663
- function l(g, y) {
664
- var S = document.createElementNS("http://www.w3.org/2000/svg", g);
665
- for (var M in y) y.hasOwnProperty(M) && S.setAttribute(M, y[M]);
666
- return S;
661
+ var i = this._htOption, s = this._el, o = t.getModuleCount();
662
+ Math.floor(i.width / o), Math.floor(i.height / o), this.clear();
663
+ function l(g, T) {
664
+ var k = document.createElementNS("http://www.w3.org/2000/svg", g);
665
+ for (var M in T) T.hasOwnProperty(M) && k.setAttribute(M, T[M]);
666
+ return k;
667
667
  }
668
668
  var c = l("svg", {
669
- viewBox: "0 0 " + String(s) + " " + String(s),
669
+ viewBox: "0 0 " + String(o) + " " + String(o),
670
670
  width: "100%",
671
671
  height: "100%",
672
672
  fill: i.colorLight
673
673
  });
674
- c.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"), o.appendChild(c), c.appendChild(l("rect", { fill: i.colorLight, width: "100%", height: "100%" })), c.appendChild(l("rect", { fill: i.colorDark, width: "1", height: "1", id: "template" }));
675
- for (var r = 0; r < s; r++)
676
- for (var u = 0; u < s; u++)
674
+ c.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"), s.appendChild(c), c.appendChild(l("rect", { fill: i.colorLight, width: "100%", height: "100%" })), c.appendChild(l("rect", { fill: i.colorDark, width: "1", height: "1", id: "template" }));
675
+ for (var r = 0; r < o; r++)
676
+ for (var u = 0; u < o; u++)
677
677
  if (t.isDark(r, u)) {
678
- var _ = l("use", { x: String(u), y: String(r) });
679
- _.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template"), c.appendChild(_);
678
+ var p = l("use", { x: String(u), y: String(r) });
679
+ p.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template"), c.appendChild(p);
680
680
  }
681
681
  }, e.prototype.clear = function() {
682
682
  for (; this._el.hasChildNodes(); ) this._el.removeChild(this._el.lastChild);
@@ -687,85 +687,85 @@ function ce() {
687
687
  }
688
688
  if (this && this._android && this._android <= 2.1) {
689
689
  var t = 1 / window.devicePixelRatio, i = CanvasRenderingContext2D.prototype.drawImage;
690
- CanvasRenderingContext2D.prototype.drawImage = function(l, c, r, u, _, g, y, S, M) {
690
+ CanvasRenderingContext2D.prototype.drawImage = function(l, c, r, u, p, g, T, k, M) {
691
691
  if ("nodeName" in l && /img/i.test(l.nodeName))
692
692
  for (var D = arguments.length - 1; D >= 1; D--)
693
693
  arguments[D] = arguments[D] * t;
694
- else typeof S > "u" && (arguments[1] *= t, arguments[2] *= t, arguments[3] *= t, arguments[4] *= t);
694
+ else typeof k > "u" && (arguments[1] *= t, arguments[2] *= t, arguments[3] *= t, arguments[4] *= t);
695
695
  i.apply(this, arguments);
696
696
  };
697
697
  }
698
- function o(l, c) {
698
+ function s(l, c) {
699
699
  var r = this;
700
700
  if (r._fFail = c, r._fSuccess = l, r._bSupportDataURI === null) {
701
- var u = document.createElement("img"), _ = function() {
701
+ var u = document.createElement("img"), p = function() {
702
702
  r._bSupportDataURI = !1, r._fFail && r._fFail.call(r);
703
703
  }, g = function() {
704
704
  r._bSupportDataURI = !0, r._fSuccess && r._fSuccess.call(r);
705
705
  };
706
- u.onabort = _, u.onerror = _, u.onload = g, u.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
706
+ u.onabort = p, u.onerror = p, u.onload = g, u.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
707
707
  return;
708
708
  } else r._bSupportDataURI === !0 && r._fSuccess ? r._fSuccess.call(r) : r._bSupportDataURI === !1 && r._fFail && r._fFail.call(r);
709
709
  }
710
- var s = function(l, c) {
710
+ var o = function(l, c) {
711
711
  this._bIsPainted = !1, this._android = $(), this._htOption = c, this._elCanvas = document.createElement("canvas"), this._elCanvas.width = c.width, this._elCanvas.height = c.height, l.appendChild(this._elCanvas), this._el = l, this._oContext = this._elCanvas.getContext("2d"), this._bIsPainted = !1, this._elImage = document.createElement("img"), this._elImage.alt = "Scan me!", this._elImage.style.display = "none", this._el.appendChild(this._elImage), this._bSupportDataURI = null;
712
712
  };
713
- return s.prototype.draw = function(l) {
714
- var c = this._elImage, r = this._oContext, u = this._htOption, _ = l.getModuleCount(), g = u.width / _, y = u.height / _, S = Math.round(g), M = Math.round(y);
713
+ return o.prototype.draw = function(l) {
714
+ var c = this._elImage, r = this._oContext, u = this._htOption, p = l.getModuleCount(), g = u.width / p, T = u.height / p, k = Math.round(g), M = Math.round(T);
715
715
  c.style.display = "none", this.clear();
716
- for (var D = 0; D < _; D++)
717
- for (var x = 0; x < _; x++) {
718
- var H = l.isDark(D, x), F = x * g, q = D * y;
719
- r.strokeStyle = H ? u.colorDark : u.colorLight, r.lineWidth = 1, r.fillStyle = H ? u.colorDark : u.colorLight, r.fillRect(F, q, g, y), r.strokeRect(Math.floor(F) + 0.5, Math.floor(q) + 0.5, S, M), r.strokeRect(Math.ceil(F) - 0.5, Math.ceil(q) - 0.5, S, M);
716
+ for (var D = 0; D < p; D++)
717
+ for (var x = 0; x < p; x++) {
718
+ var H = l.isDark(D, x), F = x * g, q = D * T;
719
+ r.strokeStyle = H ? u.colorDark : u.colorLight, r.lineWidth = 1, r.fillStyle = H ? u.colorDark : u.colorLight, r.fillRect(F, q, g, T), r.strokeRect(Math.floor(F) + 0.5, Math.floor(q) + 0.5, k, M), r.strokeRect(Math.ceil(F) - 0.5, Math.ceil(q) - 0.5, k, M);
720
720
  }
721
721
  this._bIsPainted = !0;
722
- }, s.prototype.makeImage = function() {
723
- this._bIsPainted && o.call(this, e);
724
- }, s.prototype.isPainted = function() {
722
+ }, o.prototype.makeImage = function() {
723
+ this._bIsPainted && s.call(this, e);
724
+ }, o.prototype.isPainted = function() {
725
725
  return this._bIsPainted;
726
- }, s.prototype.clear = function() {
726
+ }, o.prototype.clear = function() {
727
727
  this._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas.height), this._bIsPainted = !1;
728
- }, s.prototype.round = function(l) {
728
+ }, o.prototype.round = function(l) {
729
729
  return l && Math.floor(l * 1e3) / 1e3;
730
- }, s;
730
+ }, o;
731
731
  }() : function() {
732
732
  var e = function(t, i) {
733
733
  this._el = t, this._htOption = i;
734
734
  };
735
735
  return e.prototype.draw = function(t) {
736
- for (var i = this._htOption, o = this._el, s = t.getModuleCount(), l = Math.floor(i.width / s), c = Math.floor(i.height / s), r = ['<table style="border:0;border-collapse:collapse;">'], u = 0; u < s; u++) {
736
+ for (var i = this._htOption, s = this._el, o = t.getModuleCount(), l = Math.floor(i.width / o), c = Math.floor(i.height / o), r = ['<table style="border:0;border-collapse:collapse;">'], u = 0; u < o; u++) {
737
737
  r.push("<tr>");
738
- for (var _ = 0; _ < s; _++)
738
+ for (var p = 0; p < o; p++)
739
739
  r.push(
740
- '<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + l + "px;height:" + c + "px;background-color:" + (t.isDark(u, _) ? i.colorDark : i.colorLight) + ';"></td>'
740
+ '<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + l + "px;height:" + c + "px;background-color:" + (t.isDark(u, p) ? i.colorDark : i.colorLight) + ';"></td>'
741
741
  );
742
742
  r.push("</tr>");
743
743
  }
744
- r.push("</table>"), o.innerHTML = r.join("");
745
- var g = o.childNodes[0], y = (i.width - g.offsetWidth) / 2, S = (i.height - g.offsetHeight) / 2;
746
- y > 0 && S > 0 && (g.style.margin = S + "px " + y + "px");
744
+ r.push("</table>"), s.innerHTML = r.join("");
745
+ var g = s.childNodes[0], T = (i.width - g.offsetWidth) / 2, k = (i.height - g.offsetHeight) / 2;
746
+ T > 0 && k > 0 && (g.style.margin = k + "px " + T + "px");
747
747
  }, e.prototype.clear = function() {
748
748
  this._el.innerHTML = "";
749
749
  }, e;
750
750
  }();
751
751
  function j(e, t) {
752
- for (var i = 1, o = Z(e), s = 0, l = V.length; s <= l; s++) {
752
+ for (var i = 1, s = Z(e), o = 0, l = V.length; o <= l; o++) {
753
753
  var c = 0;
754
754
  switch (t) {
755
- case T.L:
756
- c = V[s][0];
755
+ case S.L:
756
+ c = V[o][0];
757
757
  break;
758
- case T.M:
759
- c = V[s][1];
758
+ case S.M:
759
+ c = V[o][1];
760
760
  break;
761
- case T.Q:
762
- c = V[s][2];
761
+ case S.Q:
762
+ c = V[o][2];
763
763
  break;
764
- case T.H:
765
- c = V[s][3];
764
+ case S.H:
765
+ c = V[o][3];
766
766
  break;
767
767
  }
768
- if (o <= c)
768
+ if (s <= c)
769
769
  break;
770
770
  i++;
771
771
  }
@@ -777,27 +777,27 @@ function ce() {
777
777
  var t = encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g, "a");
778
778
  return t.length + (t.length != e ? 3 : 0);
779
779
  }
780
- return m = function(e, t) {
780
+ return v = function(e, t) {
781
781
  if (this._htOption = {
782
782
  width: 256,
783
783
  height: 256,
784
784
  typeNumber: 4,
785
785
  colorDark: "#000000",
786
786
  colorLight: "#ffffff",
787
- correctLevel: T.H
787
+ correctLevel: S.H
788
788
  }, typeof t == "string" && (t = {
789
789
  text: t
790
790
  }), t)
791
791
  for (var i in t)
792
792
  this._htOption[i] = t[i];
793
793
  typeof e == "string" && (e = document.getElementById(e)), this._htOption.useSVG && (J = K), this._android = $(), this._el = e, this._oQRCode = null, this._oDrawing = new J(this._el, this._htOption), this._htOption.text && this.makeCode(this._htOption.text);
794
- }, m.prototype.makeCode = function(e) {
794
+ }, v.prototype.makeCode = function(e) {
795
795
  this._oQRCode = new h(j(e, this._htOption.correctLevel), this._htOption.correctLevel), this._oQRCode.addData(e), this._oQRCode.make(), this._el.title = e, this._oDrawing.draw(this._oQRCode), this.makeImage();
796
- }, m.prototype.makeImage = function() {
796
+ }, v.prototype.makeImage = function() {
797
797
  typeof this._oDrawing.makeImage == "function" && (!this._android || this._android >= 3) && this._oDrawing.makeImage();
798
- }, m.prototype.clear = function() {
798
+ }, v.prototype.clear = function() {
799
799
  this._oDrawing.clear();
800
- }, m.CorrectLevel = T, m;
800
+ }, v.CorrectLevel = S, v;
801
801
  });
802
802
  }(Q)), Q.exports;
803
803
  }
@@ -859,8 +859,8 @@ const z = /* @__PURE__ */ le(ue), de = {
859
859
  account_mobile(n) {
860
860
  this.$nextTick(() => {
861
861
  let a = this.$refs.account_mobile.$el.querySelector("input");
862
- const p = getComputedStyle(a).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);
863
- p && p[0] === "rgb(232, 240, 254)" && this.onBlur();
862
+ const _ = getComputedStyle(a).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);
863
+ _ && _[0] === "rgb(232, 240, 254)" && this.onBlur();
864
864
  });
865
865
  },
866
866
  loginMode(n) {
@@ -868,17 +868,17 @@ const z = /* @__PURE__ */ le(ue), de = {
868
868
  }
869
869
  },
870
870
  computed: {
871
- openProductPrivacyUrl() {
871
+ openCasePrivacyUrl() {
872
872
  var n;
873
- return ((n = this.openProductInfo) == null ? void 0 : n.privacy_url) || "";
873
+ return ((n = this.openCaseInfo) == null ? void 0 : n.privacy_url) || "";
874
874
  },
875
875
  loginLastLogo() {
876
- return this.openProductInfo.platinfo_log || "/logo-nobg.png";
876
+ return this.openCaseInfo.platinfo_log || "/logo-nobg.png";
877
877
  },
878
- loginSystemTitle() {
879
- var p, h;
880
- let n = (p = this.openProductInfo) == null ? void 0 : p.system_type;
881
- return ((h = this.openProductInfo) == null ? void 0 : h.info_title) || n;
878
+ loginLastTitle() {
879
+ var _, h;
880
+ let n = (_ = this.openProductInfo) == null ? void 0 : _.info_title, a = (h = this.openCaseInfo) == null ? void 0 : h.system_type;
881
+ return n || a;
882
882
  },
883
883
  currentLanguage() {
884
884
  return this.languageList[this.languageName] || "Language";
@@ -907,7 +907,7 @@ const z = /* @__PURE__ */ le(ue), de = {
907
907
  this.$message.warning("请联系管理员!");
908
908
  },
909
909
  chackServerUrl(n) {
910
- return new Promise((a, m) => {
910
+ return new Promise((a, v) => {
911
911
  a();
912
912
  });
913
913
  },
@@ -981,21 +981,21 @@ const z = /* @__PURE__ */ le(ue), de = {
981
981
  this.account_mobile = n.account_mobile_show, this.account_business_id = n.business_id, n.acc_role_type == "sy-org-admin" ? this.passportHandle2(null, "OrgAdminPwdLogin") : n.acc_role_type == "sy-org-staff" && this.passportHandle2(null, "OrgStaffPwdLogin");
982
982
  },
983
983
  passportHandle2(n, a) {
984
- let m = this.$message({
984
+ let v = this.$message({
985
985
  iconClass: "ElIconLoading",
986
986
  message: "正在登录...",
987
987
  duration: 0
988
988
  });
989
989
  this.loadOngoing = !0, localStorage.setItem("cacheLoginMobile", this.account_mobile);
990
990
  try {
991
- let p = {};
992
- this.loginMode == "access" ? (p = {
991
+ let _ = {};
992
+ this.loginMode == "access" ? (_ = {
993
993
  account_mobile: this.account_mobile,
994
994
  business_id: this.account_business_id,
995
995
  account_password: this.account_password,
996
996
  captcha_code: this.captcha_code,
997
997
  captcha_key: this.codeKey
998
- }, (a == "OrgAdminPwdLogin" || a == "OrgStaffPwdLogin") && (p.temp_token = this.chainTempToken)) : this.loginMode == "reg" && (p = {
998
+ }, (a == "OrgAdminPwdLogin" || a == "OrgStaffPwdLogin") && (_.temp_token = this.chainTempToken)) : this.loginMode == "reg" && (_ = {
999
999
  account_mobile: this.account_mobile,
1000
1000
  business_id: this.account_business_id,
1001
1001
  account_password: this.account_password,
@@ -1006,14 +1006,14 @@ const z = /* @__PURE__ */ le(ue), de = {
1006
1006
  timeout: 1e4
1007
1007
  }).flagPost("BASE_PASSPORT_PASSPORT", {
1008
1008
  handleType: a,
1009
- ...p
1009
+ ..._
1010
1010
  }).then((h) => {
1011
- m.close(), this.loadOngoing = !1, h.status == 200 ? this.adminLoginSucc(h) : h.status == 403 ? (this.$message.error("验证码有误!"), this.refreshCode(), this.codeNeed = !0) : (this.$message.error(h.msg), this.refreshCode());
1011
+ v.close(), this.loadOngoing = !1, h.status == 200 ? this.adminLoginSucc(h) : h.status == 403 ? (this.$message.error("验证码有误!"), this.refreshCode(), this.codeNeed = !0) : (this.$message.error(h.msg), this.refreshCode());
1012
1012
  }).catch((h) => {
1013
- this.loadOngoing = !1, this.chainShowFlag = !1, m.close(), this.refreshCode(), this.codeNeed = !0;
1013
+ this.loadOngoing = !1, this.chainShowFlag = !1, v.close(), this.refreshCode(), this.codeNeed = !0;
1014
1014
  });
1015
1015
  } catch {
1016
- this.$message.error("登录异常"), m.close(), this.loadOngoing = !1, this.refreshCode();
1016
+ this.$message.error("登录异常"), v.close(), this.loadOngoing = !1, this.refreshCode();
1017
1017
  }
1018
1018
  },
1019
1019
  async adminLoginSucc(n) {
@@ -1021,8 +1021,8 @@ const z = /* @__PURE__ */ le(ue), de = {
1021
1021
  if (a.result_type == "chain")
1022
1022
  this.chainAccountList = a.result_data || [], this.chainShowFlag = !0, this.chainTempToken = a.result_token || "";
1023
1023
  else {
1024
- const m = a.result_data || {};
1025
- await ne().SA_ACCOUNT_SIGNIN(m), this.codeNeed = !1, this.$message({
1024
+ const v = a.result_data || {};
1025
+ await ne().SA_ACCOUNT_SIGNIN(v), this.codeNeed = !1, this.$message({
1026
1026
  type: "success",
1027
1027
  message: "登录成功...",
1028
1028
  duration: 800,
@@ -1060,8 +1060,8 @@ const z = /* @__PURE__ */ le(ue), de = {
1060
1060
  }).then((n) => {
1061
1061
  var a;
1062
1062
  n.status == 200 ? (this.scanCreate((a = n == null ? void 0 : n.data) == null ? void 0 : a.checkLogin), this.qrcodeTimer = window.setInterval(() => {
1063
- var m;
1064
- this.scanCheckFunc((m = n == null ? void 0 : n.data) == null ? void 0 : m.scanCode);
1063
+ var v;
1064
+ this.scanCheckFunc((v = n == null ? void 0 : n.data) == null ? void 0 : v.scanCode);
1065
1065
  }, 3e3)) : result.status == 404;
1066
1066
  }).catch((n) => {
1067
1067
  }).finally((n) => {
@@ -1077,10 +1077,10 @@ const z = /* @__PURE__ */ le(ue), de = {
1077
1077
  fun: "scanCheck",
1078
1078
  scanCode: n || ""
1079
1079
  }).then((a) => {
1080
- var p, h;
1080
+ var _, h;
1081
1081
  if (a.status == 200) {
1082
- var m = a.msg && ((p = a == null ? void 0 : a.data) == null ? void 0 : p.scanCVal) || "";
1083
- m != "" && (clearInterval(this.qrcodeTimer), this.scanLoginFunc(n, (h = a == null ? void 0 : a.data) == null ? void 0 : h.scanCVal));
1082
+ var v = a.msg && ((_ = a == null ? void 0 : a.data) == null ? void 0 : _.scanCVal) || "";
1083
+ v != "" && (clearInterval(this.qrcodeTimer), this.scanLoginFunc(n, (h = a == null ? void 0 : a.data) == null ? void 0 : h.scanCVal));
1084
1084
  } else a.status == 405 && (clearInterval(this.qrcodeTimer), this.qrcodeExpiredShow = !0);
1085
1085
  }).catch(() => {
1086
1086
  });
@@ -1095,17 +1095,17 @@ const z = /* @__PURE__ */ le(ue), de = {
1095
1095
  fun: "scanLogin",
1096
1096
  scanCode: n,
1097
1097
  scanCVal: a
1098
- }).then((m) => {
1099
- if (m.status == 200) {
1100
- let p = this.$message({
1098
+ }).then((v) => {
1099
+ if (v.status == 200) {
1100
+ let _ = this.$message({
1101
1101
  iconClass: "ElIconLoading",
1102
1102
  message: "正在安全登录中,请稍后...",
1103
1103
  duration: 0
1104
1104
  });
1105
1105
  setTimeout(() => {
1106
- p.close(), this.$message({
1107
- message: m.msg,
1108
- type: m.status == 200 ? "success" : "error"
1106
+ _.close(), this.$message({
1107
+ message: v.msg,
1108
+ type: v.status == 200 ? "success" : "error"
1109
1109
  });
1110
1110
  }, 2e3);
1111
1111
  }
@@ -1116,34 +1116,34 @@ const z = /* @__PURE__ */ le(ue), de = {
1116
1116
  this.loginJump = !0;
1117
1117
  let n = cvUtils.urlQueryToObj(this.$route.query);
1118
1118
  const a = decodeURIComponent(n.from || "");
1119
- a ? gbIdbObj.idbSetItem("clearCache", "login").then((m) => {
1119
+ a ? gbIdbObj.idbSetItem("clearCache", "login").then((v) => {
1120
1120
  window.location.replace(a);
1121
1121
  }) : this.$router.push({ path: "/" });
1122
1122
  },
1123
1123
  setTheme(n) {
1124
- se().SA_THEMES_SET(n);
1124
+ oe().SA_THEMES_SET(n);
1125
1125
  },
1126
1126
  setLanguage(n) {
1127
- oe().SA_LANGUAGE_SET(n);
1127
+ se().SA_LANGUAGE_SET(n);
1128
1128
  },
1129
1129
  inputServerUrl() {
1130
1130
  },
1131
1131
  inputServerChack(n) {
1132
- return new Promise((a, m) => {
1133
- let p = n;
1134
- /\/api\/$/.test(p) || (p = p + (cvUtils.strRightExists(p, "/") ? "api/" : "/api/")), /^https*:\/\//i.test(p) || (p = `https://${p}`), ie.setOptions({
1132
+ return new Promise((a, v) => {
1133
+ let _ = n;
1134
+ /\/api\/$/.test(_) || (_ = _ + (cvUtils.strRightExists(_, "/") ? "api/" : "/api/")), /^https*:\/\//i.test(_) || (_ = `https://${_}`), ie.setOptions({
1135
1135
  checkNetwork: !1
1136
1136
  }).flagGet("SYS_SETT_ALL", {}).then(async ({ data: h }) => {
1137
- typeof h.server_version > "u" && typeof h.all_group_mute > "u" ? m(`服务器(${cvUtils.urlGetDomain(n)})版本过低`) : (p != this.cacheServerUrl && (await gbIdbObj.idbSetItem("cacheServerUrl", p), window.location.reload()), a());
1137
+ typeof h.server_version > "u" && typeof h.all_group_mute > "u" ? v(`服务器(${cvUtils.urlGetDomain(n)})版本过低`) : (_ != this.cacheServerUrl && (await gbIdbObj.idbSetItem("cacheServerUrl", _), window.location.reload()), a());
1138
1138
  }).catch(({ ret: h, msg: d }) => {
1139
1139
  if (h === -1001) {
1140
1140
  if (!/^https*:\/\//i.test(n)) {
1141
- this.inputServerChack(`http://${n}`).then(a).catch(m);
1141
+ this.inputServerChack(`http://${n}`).then(a).catch(v);
1142
1142
  return;
1143
1143
  }
1144
1144
  d = "服务器地址无效";
1145
1145
  }
1146
- m(d);
1146
+ v(d);
1147
1147
  });
1148
1148
  });
1149
1149
  }
@@ -1151,13 +1151,13 @@ const z = /* @__PURE__ */ le(ue), de = {
1151
1151
  }, ge = { class: "cloud-login-wrap" }, fe = {
1152
1152
  key: 0,
1153
1153
  class: "cloud-login-main"
1154
- }, _e = { class: "cloud-login-logo no-dark-content can-click" }, pe = ["src"], me = {
1154
+ }, pe = { class: "cloud-login-logo no-dark-content can-click" }, _e = ["src"], ve = {
1155
1155
  key: 0,
1156
1156
  class: "cloud-login-box"
1157
- }, ve = { class: "login-title" }, we = { class: "login-subtitle" }, Ce = { class: "cloud-login-mode-access" }, Le = { class: "login-switch" }, be = {
1157
+ }, me = { class: "login-title" }, we = { class: "login-subtitle" }, Ce = { class: "cloud-login-mode-access" }, Le = { class: "login-switch" }, be = {
1158
1158
  key: 1,
1159
1159
  class: "cloud-login-box"
1160
- }, ye = { class: "login-mode-switch" }, Te = { class: "login-mode-switch-box" }, Ee = { class: "login-title" }, Ae = { class: "login-subtitle" }, ke = { class: "cloud-login-mode-access" }, Se = {
1160
+ }, Te = { class: "login-mode-switch" }, Se = { class: "login-mode-switch-box" }, ye = { class: "login-title" }, Ee = { class: "login-subtitle" }, Ae = { class: "cloud-login-mode-access" }, ke = {
1161
1161
  key: 0,
1162
1162
  class: "code-load"
1163
1163
  }, De = {
@@ -1172,29 +1172,29 @@ const z = /* @__PURE__ */ le(ue), de = {
1172
1172
  }, xe = {
1173
1173
  key: 2,
1174
1174
  class: "cloud-login-box"
1175
- }, Re = { class: "login-mode-switch" }, Ue = { class: "login-mode-switch-box" }, Ve = { class: "login-title" }, He = { class: "login-subtitle" }, Fe = {
1175
+ }, Ue = { class: "login-mode-switch" }, Re = { class: "login-mode-switch-box" }, Ve = { class: "login-title" }, He = { class: "login-subtitle" }, Fe = {
1176
1176
  id: "qrcode",
1177
1177
  ref: "qrCodeUrl"
1178
1178
  }, Qe = {
1179
1179
  key: 3,
1180
1180
  class: "cloud-login-box"
1181
1181
  }, qe = { class: "login-title" }, Ge = { class: "login-subtitle" }, $e = { class: "cloud-login-mode-access" }, Ke = { class: "page-login-oauth" };
1182
- function Je(n, a, m, p, h, d) {
1183
- const T = R("el-input"), P = R("el-button"), v = R("cv-icons"), C = R("el-tooltip"), L = R("ElIconLoading"), O = R("el-checkbox"), k = R("SwitchBusiness");
1184
- return E(), I("div", ge, [
1185
- h.chainShowFlag ? B("", !0) : (E(), I("div", fe, [
1186
- f("div", _e, [
1182
+ function Je(n, a, v, _, h, d) {
1183
+ const S = U("el-input"), P = U("el-button"), m = U("cv-icons"), C = U("el-tooltip"), L = U("ElIconLoading"), O = U("el-checkbox"), A = U("SwitchBusiness");
1184
+ return y(), I("div", ge, [
1185
+ h.chainShowFlag ? B("", !0) : (y(), I("div", fe, [
1186
+ f("div", pe, [
1187
1187
  f("img", {
1188
1188
  src: d.loginLastLogo,
1189
1189
  alt: ""
1190
- }, null, 8, pe)
1190
+ }, null, 8, _e)
1191
1191
  ]),
1192
- h.loginMode == "reg" ? (E(), I("div", me, [
1193
- f("div", ve, b(d.loginSystemTitle), 1),
1192
+ h.loginMode == "reg" ? (y(), I("div", ve, [
1193
+ f("div", me, b(d.loginLastTitle), 1),
1194
1194
  f("div", we, b(n.$t("输入您的信息以创建帐户。")), 1),
1195
1195
  f("div", Ce, [
1196
1196
  f("form", null, [
1197
- A(T, {
1197
+ E(S, {
1198
1198
  modelValue: h.account_password2,
1199
1199
  "onUpdate:modelValue": a[0] || (a[0] = (w) => h.account_password2 = w),
1200
1200
  ref: "account_password2",
@@ -1204,7 +1204,7 @@ function Je(n, a, m, p, h, d) {
1204
1204
  size: "large",
1205
1205
  clearable: ""
1206
1206
  }, null, 8, ["modelValue", "placeholder"]),
1207
- h.regInviteNeed ? (E(), G(T, {
1207
+ h.regInviteNeed ? (y(), G(S, {
1208
1208
  key: 0,
1209
1209
  modelValue: h.reg_invite,
1210
1210
  "onUpdate:modelValue": a[1] || (a[1] = (w) => h.reg_invite = w),
@@ -1216,19 +1216,19 @@ function Je(n, a, m, p, h, d) {
1216
1216
  clearable: ""
1217
1217
  }, {
1218
1218
  prepend: N(() => [
1219
- U(" " + b(n.$t("邀请码")) + " ", 1)
1219
+ R(" " + b(n.$t("邀请码")) + " ", 1)
1220
1220
  ]),
1221
1221
  _: 1
1222
1222
  }, 8, ["modelValue", "placeholder"])) : B("", !0)
1223
1223
  ]),
1224
- A(P, null, {
1224
+ E(P, null, {
1225
1225
  default: N(() => [
1226
- U(b(h.loginJump ? "注册成功" : "注册"), 1)
1226
+ R(b(h.loginJump ? "注册成功" : "注册"), 1)
1227
1227
  ]),
1228
1228
  _: 1
1229
1229
  }),
1230
1230
  f("div", Le, [
1231
- U(b(n.$t("已经有帐号?")) + " ", 1),
1231
+ R(b(n.$t("已经有帐号?")) + " ", 1),
1232
1232
  f("a", {
1233
1233
  href: "javascript:void(0)",
1234
1234
  onClick: a[2] || (a[2] = (w) => d.switchLoginMode("access"))
@@ -1236,10 +1236,10 @@ function Je(n, a, m, p, h, d) {
1236
1236
  ])
1237
1237
  ])
1238
1238
  ])) : B("", !0),
1239
- h.loginMode == "access" ? (E(), I("div", be, [
1240
- f("div", ye, [
1241
- f("div", Te, [
1242
- A(C, {
1239
+ h.loginMode == "access" ? (y(), I("div", be, [
1240
+ f("div", Te, [
1241
+ f("div", Se, [
1242
+ E(C, {
1243
1243
  content: "扫码登录",
1244
1244
  placement: "left"
1245
1245
  }, {
@@ -1248,7 +1248,7 @@ function Je(n, a, m, p, h, d) {
1248
1248
  class: "login-mode-switch-icon",
1249
1249
  onClick: a[3] || (a[3] = (w) => d.switchLoginMode("qrcode"))
1250
1250
  }, [
1251
- A(v, {
1251
+ E(m, {
1252
1252
  type: "cvSvgBaseQrcode",
1253
1253
  size: "45"
1254
1254
  })
@@ -1258,11 +1258,11 @@ function Je(n, a, m, p, h, d) {
1258
1258
  })
1259
1259
  ])
1260
1260
  ]),
1261
- f("div", Ee, b(d.loginSystemTitle), 1),
1262
- f("div", Ae, b(n.$t("输入您的凭证以访问您的帐户。")), 1),
1263
- f("div", ke, [
1261
+ f("div", ye, b(d.loginLastTitle), 1),
1262
+ f("div", Ee, b(n.$t("输入您的凭证以访问您的帐户。")), 1),
1263
+ f("div", Ae, [
1264
1264
  f("form", null, [
1265
- A(T, {
1265
+ E(S, {
1266
1266
  modelValue: h.account_mobile,
1267
1267
  "onUpdate:modelValue": a[4] || (a[4] = (w) => h.account_mobile = w),
1268
1268
  ref: "account_mobile",
@@ -1274,7 +1274,7 @@ function Je(n, a, m, p, h, d) {
1274
1274
  onBlur: d.onBlur,
1275
1275
  clearable: ""
1276
1276
  }, null, 8, ["modelValue", "placeholder", "onBlur"]),
1277
- A(T, {
1277
+ E(S, {
1278
1278
  modelValue: h.account_password,
1279
1279
  "onUpdate:modelValue": a[5] || (a[5] = (w) => h.account_password = w),
1280
1280
  ref: "account_password",
@@ -1285,7 +1285,7 @@ function Je(n, a, m, p, h, d) {
1285
1285
  clearable: "",
1286
1286
  onKeydown: ae(d.accessLoginFunc, ["enter"])
1287
1287
  }, null, 8, ["modelValue", "placeholder", "onKeydown"]),
1288
- h.codeNeed ? (E(), G(T, {
1288
+ h.codeNeed ? (y(), G(S, {
1289
1289
  key: 0,
1290
1290
  modelValue: h.captcha_code,
1291
1291
  "onUpdate:modelValue": a[7] || (a[7] = (w) => h.captcha_code = w),
@@ -1297,16 +1297,16 @@ function Je(n, a, m, p, h, d) {
1297
1297
  clearable: ""
1298
1298
  }, {
1299
1299
  prefix: N(() => [
1300
- A(v, { type: "cvSvgCircleCheck" })
1300
+ E(m, { type: "cvSvgCircleCheck" })
1301
1301
  ]),
1302
1302
  append: N(() => [
1303
1303
  f("div", {
1304
1304
  class: "login-code-end",
1305
1305
  onClick: a[6] || (a[6] = (...w) => d.refreshCode && d.refreshCode(...w))
1306
1306
  }, [
1307
- h.codeLoad > 0 ? (E(), I("div", Se, [
1308
- A(L)
1309
- ])) : h.codeUrl === "error" ? (E(), I("span", De, b(n.$t("加载失败")), 1)) : (E(), I("img", {
1307
+ h.codeLoad > 0 ? (y(), I("div", ke, [
1308
+ E(L)
1309
+ ])) : h.codeUrl === "error" ? (y(), I("span", De, b(n.$t("加载失败")), 1)) : (y(), I("img", {
1310
1310
  key: 2,
1311
1311
  src: h.codeUrl
1312
1312
  }, null, 8, Pe))
@@ -1315,7 +1315,7 @@ function Je(n, a, m, p, h, d) {
1315
1315
  _: 1
1316
1316
  }, 8, ["modelValue", "placeholder"])) : B("", !0)
1317
1317
  ]),
1318
- A(P, {
1318
+ E(P, {
1319
1319
  type: "primary",
1320
1320
  loading: h.loadOngoing || h.loginJump,
1321
1321
  size: "large",
@@ -1323,12 +1323,12 @@ function Je(n, a, m, p, h, d) {
1323
1323
  onClick: d.accessLoginFunc
1324
1324
  }, {
1325
1325
  default: N(() => [
1326
- U(b(h.loginJump ? "登录成功" : "登录"), 1)
1326
+ R(b(h.loginJump ? "登录成功" : "登录"), 1)
1327
1327
  ]),
1328
1328
  _: 1
1329
1329
  }, 8, ["loading", "onClick"]),
1330
1330
  f("div", Ie, [
1331
- A(O, {
1331
+ E(O, {
1332
1332
  modelValue: h.cache_privacy,
1333
1333
  "onUpdate:modelValue": a[8] || (a[8] = (w) => h.cache_privacy = w),
1334
1334
  "true-value": "on",
@@ -1336,9 +1336,9 @@ function Je(n, a, m, p, h, d) {
1336
1336
  onChange: d.handleRrivacy
1337
1337
  }, {
1338
1338
  default: N(() => [
1339
- a[16] || (a[16] = U(" 同意 ")),
1339
+ a[16] || (a[16] = R(" 同意 ")),
1340
1340
  f("a", {
1341
- href: d.openProductPrivacyUrl,
1341
+ href: d.openCasePrivacyUrl,
1342
1342
  target: "_blank"
1343
1343
  }, "《隐私条款》", 8, Me)
1344
1344
  ]),
@@ -1350,14 +1350,14 @@ function Je(n, a, m, p, h, d) {
1350
1350
  }, b(n.$t("忘记密码了?")), 1)
1351
1351
  ]),
1352
1352
  f("div", Be, [
1353
- n.systemConfig.open_business_reg == "on" ? (E(), I("div", Oe, [
1354
- U(b(n.$t("还没有帐号?")) + " ", 1),
1353
+ n.systemConfig.open_business_reg == "on" ? (y(), I("div", Oe, [
1354
+ R(b(n.$t("还没有帐号?")) + " ", 1),
1355
1355
  f("a", {
1356
1356
  href: "javascript:void(0)",
1357
1357
  onClick: a[10] || (a[10] = (w) => d.switchLoginMode("reg"))
1358
1358
  }, b(n.$t("注册帐号")), 1)
1359
1359
  ])) : B("", !0),
1360
- n.systemConfig.open_business_oauth2 == "on" ? (E(), I("div", Ne, [
1360
+ n.systemConfig.open_business_oauth2 == "on" ? (y(), I("div", Ne, [
1361
1361
  f("a", {
1362
1362
  href: "javascript:void(0)",
1363
1363
  onClick: a[11] || (a[11] = (w) => d.switchLoginMode("oauth2"))
@@ -1366,10 +1366,10 @@ function Je(n, a, m, p, h, d) {
1366
1366
  ])
1367
1367
  ])
1368
1368
  ])) : B("", !0),
1369
- h.loginMode == "qrcode" ? (E(), I("div", xe, [
1370
- f("div", Re, [
1371
- f("div", Ue, [
1372
- A(C, {
1369
+ h.loginMode == "qrcode" ? (y(), I("div", xe, [
1370
+ f("div", Ue, [
1371
+ f("div", Re, [
1372
+ E(C, {
1373
1373
  content: "帐号登录",
1374
1374
  placement: "left"
1375
1375
  }, {
@@ -1378,7 +1378,7 @@ function Je(n, a, m, p, h, d) {
1378
1378
  class: "login-mode-switch-icon",
1379
1379
  onClick: a[12] || (a[12] = (w) => d.switchLoginMode("access"))
1380
1380
  }, [
1381
- A(v, {
1381
+ E(m, {
1382
1382
  type: "cvSvgBasePc",
1383
1383
  size: "45"
1384
1384
  })
@@ -1390,12 +1390,12 @@ function Je(n, a, m, p, h, d) {
1390
1390
  ]),
1391
1391
  f("div", Ve, b(n.$t("扫码登录")), 1),
1392
1392
  f("div", He, [
1393
- A(v, {
1393
+ E(m, {
1394
1394
  type: "cvSvgActionScan",
1395
1395
  size: "20",
1396
1396
  style: { "margin-right": "10px" }
1397
1397
  }),
1398
- U(" " + b(n.$t(`请使用【${d.loginSystemTitle}】移动端扫描二维码`)), 1)
1398
+ R(" " + b(n.$t(`请使用【${d.loginLastTitle}】移动端扫描二维码`)), 1)
1399
1399
  ]),
1400
1400
  f("div", {
1401
1401
  class: "login-qrcode",
@@ -1404,8 +1404,8 @@ function Je(n, a, m, p, h, d) {
1404
1404
  f("div", Fe, null, 512)
1405
1405
  ])
1406
1406
  ])) : B("", !0),
1407
- h.loginMode == "oauth2" ? (E(), I("div", Qe, [
1408
- f("div", qe, b(d.loginSystemTitle), 1),
1407
+ h.loginMode == "oauth2" ? (y(), I("div", Qe, [
1408
+ f("div", qe, b(d.loginLastTitle), 1),
1409
1409
  f("div", Ge, b(n.$t("输入您的信息以创建帐户。")), 1),
1410
1410
  f("div", $e, [
1411
1411
  f("div", Ke, [
@@ -1417,7 +1417,7 @@ function Je(n, a, m, p, h, d) {
1417
1417
  ])
1418
1418
  ])) : B("", !0)
1419
1419
  ])),
1420
- h.chainShowFlag ? (E(), G(k, {
1420
+ h.chainShowFlag ? (y(), G(A, {
1421
1421
  key: 1,
1422
1422
  modelValue: h.chainAccountList,
1423
1423
  "onUpdate:modelValue": a[15] || (a[15] = (w) => h.chainAccountList = w),