gws-client 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var Ne = Object.defineProperty, xe = Object.defineProperties;
2
2
  var $e = Object.getOwnPropertyDescriptors;
3
3
  var re = Object.getOwnPropertySymbols;
4
4
  var Te = Object.prototype.hasOwnProperty, Me = Object.prototype.propertyIsEnumerable;
5
- var J = (s, e, t) => e in s ? Ne(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, m = (s, e) => {
5
+ var J = (s, e, t) => e in s ? Ne(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, E = (s, e) => {
6
6
  for (var t in e || (e = {}))
7
7
  Te.call(e, t) && J(s, t, e[t]);
8
8
  if (re)
@@ -11,32 +11,32 @@ var J = (s, e, t) => e in s ? Ne(s, e, { enumerable: !0, configurable: !0, writa
11
11
  return s;
12
12
  }, v = (s, e) => xe(s, $e(e));
13
13
  var o = (s, e, t) => J(s, typeof e != "symbol" ? e + "" : e, t);
14
- var l = (s, e, t) => new Promise((n, i) => {
14
+ var c = (s, e, t) => new Promise((n, i) => {
15
15
  var r = (d) => {
16
16
  try {
17
- c(t.next(d));
17
+ l(t.next(d));
18
18
  } catch (u) {
19
19
  i(u);
20
20
  }
21
21
  }, a = (d) => {
22
22
  try {
23
- c(t.throw(d));
23
+ l(t.throw(d));
24
24
  } catch (u) {
25
25
  i(u);
26
26
  }
27
- }, c = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(r, a);
28
- c((t = t.apply(s, e)).next());
27
+ }, l = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(r, a);
28
+ l((t = t.apply(s, e)).next());
29
29
  });
30
30
  const Oe = window.location.href.includes("https") ? "wss://localhost:19528" : "ws://localhost:9527", ae = "1", oe = "2", Fe = "1", Ge = "2", Ve = "3";
31
31
  var Ie = /* @__PURE__ */ ((s) => (s.MIN = "0", s.LOW = "1", s.MIDDLE = "2", s.HIGH = "3", s))(Ie || {});
32
- const _ = {
32
+ const p = {
33
33
  LEVEL_1: 1,
34
34
  LEVEL_2: 2,
35
35
  LEVEL_3: 4
36
36
  }, Ze = {
37
- OPEN: _.LEVEL_1,
38
- INTERNAL: _.LEVEL_2 | _.LEVEL_1,
39
- OMP: _.LEVEL_3 | _.LEVEL_2 | _.LEVEL_1
37
+ OPEN: p.LEVEL_1,
38
+ INTERNAL: p.LEVEL_2 | p.LEVEL_1,
39
+ OMP: p.LEVEL_3 | p.LEVEL_2 | p.LEVEL_1
40
40
  }, He = "00000001", q = "NO_SEAL_AVAILABLE", Ue = "CERTIFICATE_NOT_FOUND", je = "CLIENT_CONNECTION_FAILED", Ke = "ACCESS_DENIED", ce = [
41
41
  {
42
42
  oid: "1.2.86.21.1.3",
@@ -51,59 +51,59 @@ const _ = {
51
51
  key: "orgCode"
52
52
  }
53
53
  ];
54
- function Re(s) {
54
+ function ze(s) {
55
55
  return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
56
56
  }
57
57
  var O = {}, le;
58
- function ze() {
58
+ function Re() {
59
59
  if (le) return O;
60
- le = 1, O.byteLength = c, O.toByteArray = u, O.fromByteArray = w;
60
+ le = 1, O.byteLength = l, O.toByteArray = u, O.fromByteArray = w;
61
61
  for (var s = [], e = [], t = typeof Uint8Array != "undefined" ? Uint8Array : Array, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i = 0, r = n.length; i < r; ++i)
62
62
  s[i] = n[i], e[n.charCodeAt(i)] = i;
63
63
  e[45] = 62, e[95] = 63;
64
- function a(g) {
65
- var f = g.length;
66
- if (f % 4 > 0)
64
+ function a(y) {
65
+ var g = y.length;
66
+ if (g % 4 > 0)
67
67
  throw new Error("Invalid string. Length must be a multiple of 4");
68
- var E = g.indexOf("=");
69
- E === -1 && (E = f);
70
- var y = E === f ? 0 : 4 - E % 4;
71
- return [E, y];
68
+ var m = y.indexOf("=");
69
+ m === -1 && (m = g);
70
+ var f = m === g ? 0 : 4 - m % 4;
71
+ return [m, f];
72
72
  }
73
- function c(g) {
74
- var f = a(g), E = f[0], y = f[1];
75
- return (E + y) * 3 / 4 - y;
73
+ function l(y) {
74
+ var g = a(y), m = g[0], f = g[1];
75
+ return (m + f) * 3 / 4 - f;
76
76
  }
77
- function d(g, f, E) {
78
- return (f + E) * 3 / 4 - E;
77
+ function d(y, g, m) {
78
+ return (g + m) * 3 / 4 - m;
79
79
  }
80
- function u(g) {
81
- var f, E = a(g), y = E[0], S = E[1], k = new t(d(g, y, S)), p = 0, A = S > 0 ? y - 4 : y, I;
80
+ function u(y) {
81
+ var g, m = a(y), f = m[0], S = m[1], k = new t(d(y, f, S)), _ = 0, A = S > 0 ? f - 4 : f, I;
82
82
  for (I = 0; I < A; I += 4)
83
- f = e[g.charCodeAt(I)] << 18 | e[g.charCodeAt(I + 1)] << 12 | e[g.charCodeAt(I + 2)] << 6 | e[g.charCodeAt(I + 3)], k[p++] = f >> 16 & 255, k[p++] = f >> 8 & 255, k[p++] = f & 255;
84
- return S === 2 && (f = e[g.charCodeAt(I)] << 2 | e[g.charCodeAt(I + 1)] >> 4, k[p++] = f & 255), S === 1 && (f = e[g.charCodeAt(I)] << 10 | e[g.charCodeAt(I + 1)] << 4 | e[g.charCodeAt(I + 2)] >> 2, k[p++] = f >> 8 & 255, k[p++] = f & 255), k;
83
+ g = e[y.charCodeAt(I)] << 18 | e[y.charCodeAt(I + 1)] << 12 | e[y.charCodeAt(I + 2)] << 6 | e[y.charCodeAt(I + 3)], k[_++] = g >> 16 & 255, k[_++] = g >> 8 & 255, k[_++] = g & 255;
84
+ return S === 2 && (g = e[y.charCodeAt(I)] << 2 | e[y.charCodeAt(I + 1)] >> 4, k[_++] = g & 255), S === 1 && (g = e[y.charCodeAt(I)] << 10 | e[y.charCodeAt(I + 1)] << 4 | e[y.charCodeAt(I + 2)] >> 2, k[_++] = g >> 8 & 255, k[_++] = g & 255), k;
85
85
  }
86
- function C(g) {
87
- return s[g >> 18 & 63] + s[g >> 12 & 63] + s[g >> 6 & 63] + s[g & 63];
86
+ function C(y) {
87
+ return s[y >> 18 & 63] + s[y >> 12 & 63] + s[y >> 6 & 63] + s[y & 63];
88
88
  }
89
- function h(g, f, E) {
90
- for (var y, S = [], k = f; k < E; k += 3)
91
- y = (g[k] << 16 & 16711680) + (g[k + 1] << 8 & 65280) + (g[k + 2] & 255), S.push(C(y));
89
+ function h(y, g, m) {
90
+ for (var f, S = [], k = g; k < m; k += 3)
91
+ f = (y[k] << 16 & 16711680) + (y[k + 1] << 8 & 65280) + (y[k + 2] & 255), S.push(C(f));
92
92
  return S.join("");
93
93
  }
94
- function w(g) {
95
- for (var f, E = g.length, y = E % 3, S = [], k = 16383, p = 0, A = E - y; p < A; p += k)
96
- S.push(h(g, p, p + k > A ? A : p + k));
97
- return y === 1 ? (f = g[E - 1], S.push(
98
- s[f >> 2] + s[f << 4 & 63] + "=="
99
- )) : y === 2 && (f = (g[E - 2] << 8) + g[E - 1], S.push(
100
- s[f >> 10] + s[f >> 4 & 63] + s[f << 2 & 63] + "="
94
+ function w(y) {
95
+ for (var g, m = y.length, f = m % 3, S = [], k = 16383, _ = 0, A = m - f; _ < A; _ += k)
96
+ S.push(h(y, _, _ + k > A ? A : _ + k));
97
+ return f === 1 ? (g = y[m - 1], S.push(
98
+ s[g >> 2] + s[g << 4 & 63] + "=="
99
+ )) : f === 2 && (g = (y[m - 2] << 8) + y[m - 1], S.push(
100
+ s[g >> 10] + s[g >> 4 & 63] + s[g << 2 & 63] + "="
101
101
  )), S.join("");
102
102
  }
103
103
  return O;
104
104
  }
105
- var Ye = ze();
106
- const ue = /* @__PURE__ */ Re(Ye);
105
+ var Ye = Re();
106
+ const ue = /* @__PURE__ */ ze(Ye);
107
107
  class Qe {
108
108
  constructor() {
109
109
  o(this, "deps", /* @__PURE__ */ new Map());
@@ -154,11 +154,11 @@ function Xe(s) {
154
154
  }
155
155
  function et(s, e, t, n) {
156
156
  if (s) {
157
- const i = _e(s, e, t, n);
157
+ const i = pe(s, e, t, n);
158
158
  return s[0](i);
159
159
  }
160
160
  }
161
- function _e(s, e, t, n) {
161
+ function pe(s, e, t, n) {
162
162
  return s[1] && n ? qe(t.ctx.slice(), s[1](n(e))) : t.ctx;
163
163
  }
164
164
  function tt(s, e, t, n) {
@@ -168,8 +168,8 @@ function tt(s, e, t, n) {
168
168
  return i;
169
169
  if (typeof i == "object") {
170
170
  const r = [], a = Math.max(e.dirty.length, i.length);
171
- for (let c = 0; c < a; c += 1)
172
- r[c] = e.dirty[c] | i[c];
171
+ for (let l = 0; l < a; l += 1)
172
+ r[l] = e.dirty[l] | i[l];
173
173
  return r;
174
174
  }
175
175
  return e.dirty | i;
@@ -178,7 +178,7 @@ function tt(s, e, t, n) {
178
178
  }
179
179
  function nt(s, e, t, n, i, r) {
180
180
  if (i) {
181
- const a = _e(e, t, n, r);
181
+ const a = pe(e, t, n, r);
182
182
  s.p(a, i);
183
183
  }
184
184
  }
@@ -203,7 +203,7 @@ function W(s, e, t) {
203
203
  function j(s) {
204
204
  s.parentNode && s.parentNode.removeChild(s);
205
205
  }
206
- function pe(s, e) {
206
+ function _e(s, e) {
207
207
  for (let t = 0; t < s.length; t += 1)
208
208
  s[t] && s[t].d(e);
209
209
  }
@@ -228,7 +228,7 @@ function P(s, e, t) {
228
228
  function rt(s) {
229
229
  return Array.from(s.childNodes);
230
230
  }
231
- function R(s, e) {
231
+ function z(s, e) {
232
232
  e = "" + e, s.data !== e && (s.data = /** @type {string} */
233
233
  e);
234
234
  }
@@ -286,16 +286,16 @@ function lt(s) {
286
286
  const e = [], t = [];
287
287
  M.forEach((n) => s.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), M = e;
288
288
  }
289
- const z = /* @__PURE__ */ new Set();
289
+ const R = /* @__PURE__ */ new Set();
290
290
  let ut;
291
291
  function ie(s, e) {
292
- s && s.i && (z.delete(s), s.i(e));
292
+ s && s.i && (R.delete(s), s.i(e));
293
293
  }
294
294
  function Be(s, e, t, n) {
295
295
  if (s && s.o) {
296
- if (z.has(s)) return;
297
- z.add(s), ut.c.push(() => {
298
- z.delete(s);
296
+ if (R.has(s)) return;
297
+ R.add(s), ut.c.push(() => {
298
+ R.delete(s);
299
299
  }), s.o(e);
300
300
  }
301
301
  }
@@ -319,7 +319,7 @@ function Ae(s, e) {
319
319
  function ht(s, e) {
320
320
  s.$$.dirty[0] === -1 && (x.push(s), ot(), s.$$.dirty.fill(0)), s.$$.dirty[e / 31 | 0] |= 1 << e % 31;
321
321
  }
322
- function De(s, e, t, n, i, r, a = null, c = [-1]) {
322
+ function De(s, e, t, n, i, r, a = null, l = [-1]) {
323
323
  const d = se;
324
324
  Z(s);
325
325
  const u = s.$$ = {
@@ -339,15 +339,15 @@ function De(s, e, t, n, i, r, a = null, c = [-1]) {
339
339
  context: new Map(e.context || (d ? d.$$.context : [])),
340
340
  // everything else
341
341
  callbacks: he(),
342
- dirty: c,
342
+ dirty: l,
343
343
  skip_bound: !1,
344
344
  root: e.target || d.$$.root
345
345
  };
346
346
  a && a(u.root);
347
347
  let C = !1;
348
- if (u.ctx = t ? t(s, e.props || {}, (h, w, ...g) => {
349
- const f = g.length ? g[0] : w;
350
- return u.ctx && i(u.ctx[h], u.ctx[h] = f) && (!u.skip_bound && u.bound[h] && u.bound[h](f), C && ht(s, h)), w;
348
+ if (u.ctx = t ? t(s, e.props || {}, (h, w, ...y) => {
349
+ const g = y.length ? y[0] : w;
350
+ return u.ctx && i(u.ctx[h], u.ctx[h] = g) && (!u.skip_bound && u.bound[h] && u.bound[h](g), C && ht(s, h)), w;
351
351
  }) : [], u.update(), C = !0, U(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
352
352
  if (e.hydrate) {
353
353
  const h = rt(e.target);
@@ -395,13 +395,13 @@ function yt(s) {
395
395
  let e, t, n, i = (
396
396
  /*title*/
397
397
  (s[1] || "标题") + ""
398
- ), r, a, c, d, u, C, h = (
398
+ ), r, a, l, d, u, C, h = (
399
399
  /*cancelText*/
400
400
  (s[4] || "取消") + ""
401
- ), w, g, f, E = (
401
+ ), w, y, g, m = (
402
402
  /*okText*/
403
403
  (s[5] || "确认") + ""
404
- ), y, S, k, p;
404
+ ), f, S, k, _;
405
405
  const A = (
406
406
  /*#slots*/
407
407
  s[8].default
@@ -414,22 +414,22 @@ function yt(s) {
414
414
  );
415
415
  return {
416
416
  c() {
417
- e = D("div"), t = D("div"), n = D("div"), r = T(i), a = K(), c = D("div"), I && I.c(), d = K(), u = D("div"), C = D("button"), w = T(h), g = K(), f = D("button"), y = T(E), P(n, "class", "model-title svelte-16iv9d0"), P(c, "class", "slot svelte-16iv9d0"), P(C, "class", "modal-btn svelte-16iv9d0"), P(f, "class", "modal-btn success svelte-16iv9d0"), Y(
418
- f,
417
+ e = D("div"), t = D("div"), n = D("div"), r = T(i), a = K(), l = D("div"), I && I.c(), d = K(), u = D("div"), C = D("button"), w = T(h), y = K(), g = D("button"), f = T(m), P(n, "class", "model-title svelte-16iv9d0"), P(l, "class", "slot svelte-16iv9d0"), P(C, "class", "modal-btn svelte-16iv9d0"), P(g, "class", "modal-btn success svelte-16iv9d0"), Y(
418
+ g,
419
419
  "background-color",
420
420
  /*theme*/
421
421
  s[6]
422
422
  ), P(u, "class", "modal-footer svelte-16iv9d0"), P(t, "class", "modal-content svelte-16iv9d0"), P(e, "class", "modal-background modal-visible svelte-16iv9d0");
423
423
  },
424
424
  m(B, b) {
425
- W(B, e, b), L(e, t), L(t, n), L(n, r), L(t, a), L(t, c), I && I.m(c, null), L(t, d), L(t, u), L(u, C), L(C, w), L(u, g), L(u, f), L(f, y), S = !0, k || (p = [
425
+ W(B, e, b), L(e, t), L(t, n), L(n, r), L(t, a), L(t, l), I && I.m(l, null), L(t, d), L(t, u), L(u, C), L(C, w), L(u, y), L(u, g), L(g, f), S = !0, k || (_ = [
426
426
  F(C, "click", function() {
427
427
  V(
428
428
  /*onCancel*/
429
429
  s[0]
430
430
  ) && s[0].apply(this, arguments);
431
431
  }),
432
- F(f, "click", function() {
432
+ F(g, "click", function() {
433
433
  V(
434
434
  /*onOk*/
435
435
  s[2]
@@ -447,7 +447,7 @@ function yt(s) {
447
447
  p(B, [b]) {
448
448
  s = B, (!S || b & /*title*/
449
449
  2) && i !== (i = /*title*/
450
- (s[1] || "标题") + "") && R(r, i), I && I.p && (!S || b & /*$$scope*/
450
+ (s[1] || "标题") + "") && z(r, i), I && I.p && (!S || b & /*$$scope*/
451
451
  128) && nt(
452
452
  I,
453
453
  A,
@@ -467,11 +467,11 @@ function yt(s) {
467
467
  null
468
468
  ), (!S || b & /*cancelText*/
469
469
  16) && h !== (h = /*cancelText*/
470
- (s[4] || "取消") + "") && R(w, h), (!S || b & /*okText*/
471
- 32) && E !== (E = /*okText*/
472
- (s[5] || "确认") + "") && R(y, E), (!S || b & /*theme*/
470
+ (s[4] || "取消") + "") && z(w, h), (!S || b & /*okText*/
471
+ 32) && m !== (m = /*okText*/
472
+ (s[5] || "确认") + "") && z(f, m), (!S || b & /*theme*/
473
473
  64) && Y(
474
- f,
474
+ g,
475
475
  "background-color",
476
476
  /*theme*/
477
477
  s[6]
@@ -484,16 +484,16 @@ function yt(s) {
484
484
  Be(I, B), S = !1;
485
485
  },
486
486
  d(B) {
487
- B && j(e), I && I.d(B), k = !1, U(p);
487
+ B && j(e), I && I.d(B), k = !1, U(_);
488
488
  }
489
489
  };
490
490
  }
491
491
  const Ct = (s) => s.stopPropagation();
492
492
  function ft(s, e, t) {
493
- let { $$slots: n = {}, $$scope: i } = e, { onCancel: r } = e, { title: a } = e, { onOk: c } = e, { onClose: d } = e, { cancelText: u } = e, { okText: C } = e, { theme: h } = e;
493
+ let { $$slots: n = {}, $$scope: i } = e, { onCancel: r } = e, { title: a } = e, { onOk: l } = e, { onClose: d } = e, { cancelText: u } = e, { okText: C } = e, { theme: h } = e;
494
494
  return s.$$set = (w) => {
495
- "onCancel" in w && t(0, r = w.onCancel), "title" in w && t(1, a = w.title), "onOk" in w && t(2, c = w.onOk), "onClose" in w && t(3, d = w.onClose), "cancelText" in w && t(4, u = w.cancelText), "okText" in w && t(5, C = w.okText), "theme" in w && t(6, h = w.theme), "$$scope" in w && t(7, i = w.$$scope);
496
- }, [r, a, c, d, u, C, h, i, n];
495
+ "onCancel" in w && t(0, r = w.onCancel), "title" in w && t(1, a = w.title), "onOk" in w && t(2, l = w.onOk), "onClose" in w && t(3, d = w.onClose), "cancelText" in w && t(4, u = w.cancelText), "okText" in w && t(5, C = w.okText), "theme" in w && t(6, h = w.theme), "$$scope" in w && t(7, i = w.$$scope);
496
+ }, [r, a, l, d, u, C, h, i, n];
497
497
  }
498
498
  class wt extends be {
499
499
  constructor(e) {
@@ -556,7 +556,7 @@ function me(s) {
556
556
  /*col*/
557
557
  i[16].key
558
558
  ]
559
- )) + "") && R(n, t), r & /*columns*/
559
+ )) + "") && z(n, t), r & /*columns*/
560
560
  2 && Y(e, "width", `${100 / /*columns*/
561
561
  i[1].length}%`);
562
562
  },
@@ -569,9 +569,9 @@ function Ee(s) {
569
569
  let e, t, n, i, r, a = Q(
570
570
  /*columns*/
571
571
  s[1]
572
- ), c = [];
572
+ ), l = [];
573
573
  for (let u = 0; u < a.length; u += 1)
574
- c[u] = me(we(s, a, u));
574
+ l[u] = me(we(s, a, u));
575
575
  function d() {
576
576
  return (
577
577
  /*click_handler*/
@@ -584,8 +584,8 @@ function Ee(s) {
584
584
  return {
585
585
  c() {
586
586
  e = D("div");
587
- for (let u = 0; u < c.length; u += 1)
588
- c[u].c();
587
+ for (let u = 0; u < l.length; u += 1)
588
+ l[u].c();
589
589
  t = K(), P(e, "class", n = ge(`cert-item ${/*index*/
590
590
  s[15] === 0 ? "cert-item-first" : ""} ${/*index*/
591
591
  s[15] === /*selectedIndex*/
@@ -593,8 +593,8 @@ function Ee(s) {
593
593
  },
594
594
  m(u, C) {
595
595
  W(u, e, C);
596
- for (let h = 0; h < c.length; h += 1)
597
- c[h] && c[h].m(e, null);
596
+ for (let h = 0; h < l.length; h += 1)
597
+ l[h] && l[h].m(e, null);
598
598
  L(e, t), i || (r = F(e, "click", d), i = !0);
599
599
  },
600
600
  p(u, C) {
@@ -607,11 +607,11 @@ function Ee(s) {
607
607
  let h;
608
608
  for (h = 0; h < a.length; h += 1) {
609
609
  const w = we(s, a, h);
610
- c[h] ? c[h].p(w, C) : (c[h] = me(w), c[h].c(), c[h].m(e, t));
610
+ l[h] ? l[h].p(w, C) : (l[h] = me(w), l[h].c(), l[h].m(e, t));
611
611
  }
612
- for (; h < c.length; h += 1)
613
- c[h].d(1);
614
- c.length = a.length;
612
+ for (; h < l.length; h += 1)
613
+ l[h].d(1);
614
+ l.length = a.length;
615
615
  }
616
616
  C & /*selectedIndex*/
617
617
  128 && n !== (n = ge(`cert-item ${/*index*/
@@ -620,7 +620,7 @@ function Ee(s) {
620
620
  s[7] ? "cert-item-selected" : ""}`) + " svelte-1kh75ag") && P(e, "class", n);
621
621
  },
622
622
  d(u) {
623
- u && j(e), pe(c, u), i = !1, r();
623
+ u && j(e), _e(l, u), i = !1, r();
624
624
  }
625
625
  };
626
626
  }
@@ -651,8 +651,8 @@ function mt(s) {
651
651
  );
652
652
  let a;
653
653
  for (a = 0; a < t.length; a += 1) {
654
- const c = fe(i, t, a);
655
- n[a] ? n[a].p(c, r) : (n[a] = Ee(c), n[a].c(), n[a].m(e.parentNode, e));
654
+ const l = fe(i, t, a);
655
+ n[a] ? n[a].p(l, r) : (n[a] = Ee(l), n[a].c(), n[a].m(e.parentNode, e));
656
656
  }
657
657
  for (; a < n.length; a += 1)
658
658
  n[a].d(1);
@@ -660,7 +660,7 @@ function mt(s) {
660
660
  }
661
661
  },
662
662
  d(i) {
663
- i && j(e), pe(n, i);
663
+ i && j(e), _e(n, i);
664
664
  }
665
665
  };
666
666
  }
@@ -733,28 +733,28 @@ function Et(s) {
733
733
  };
734
734
  }
735
735
  function St(s, e, t) {
736
- let { data: n = [] } = e, { columns: i = [] } = e, { onCancel: r } = e, { onOk: a } = e, { onClose: c } = e, { cancelText: d = "" } = e, { okText: u = "" } = e, { theme: C = "#409eff" } = e, { title: h = "" } = e, w = 0;
737
- const g = () => {
738
- r(`${h}失败`), c == null || c();
739
- }, f = () => {
740
- a == null || a(n[w]), c == null || c();
741
- }, E = (y) => t(7, w = y);
742
- return s.$$set = (y) => {
743
- "data" in y && t(0, n = y.data), "columns" in y && t(1, i = y.columns), "onCancel" in y && t(10, r = y.onCancel), "onOk" in y && t(11, a = y.onOk), "onClose" in y && t(2, c = y.onClose), "cancelText" in y && t(3, d = y.cancelText), "okText" in y && t(4, u = y.okText), "theme" in y && t(5, C = y.theme), "title" in y && t(6, h = y.title);
736
+ let { data: n = [] } = e, { columns: i = [] } = e, { onCancel: r } = e, { onOk: a } = e, { onClose: l } = e, { cancelText: d = "" } = e, { okText: u = "" } = e, { theme: C = "#409eff" } = e, { title: h = "" } = e, w = 0;
737
+ const y = () => {
738
+ r(`${h}失败`), l == null || l();
739
+ }, g = () => {
740
+ a == null || a(n[w]), l == null || l();
741
+ }, m = (f) => t(7, w = f);
742
+ return s.$$set = (f) => {
743
+ "data" in f && t(0, n = f.data), "columns" in f && t(1, i = f.columns), "onCancel" in f && t(10, r = f.onCancel), "onOk" in f && t(11, a = f.onOk), "onClose" in f && t(2, l = f.onClose), "cancelText" in f && t(3, d = f.cancelText), "okText" in f && t(4, u = f.okText), "theme" in f && t(5, C = f.theme), "title" in f && t(6, h = f.title);
744
744
  }, [
745
745
  n,
746
746
  i,
747
- c,
747
+ l,
748
748
  d,
749
749
  u,
750
750
  C,
751
751
  h,
752
752
  w,
753
+ y,
753
754
  g,
754
- f,
755
755
  r,
756
756
  a,
757
- E
757
+ m
758
758
  ];
759
759
  }
760
760
  class It extends be {
@@ -778,7 +778,7 @@ class kt {
778
778
  o(this, "open", (e) => new Promise((t, n) => {
779
779
  this.modalInstance.current = new It({
780
780
  target: document.body,
781
- props: v(m({}, e), {
781
+ props: v(E({}, e), {
782
782
  onCancel: (i) => {
783
783
  n({
784
784
  code: -1,
@@ -815,14 +815,14 @@ function vt(s = 32, e = !0, t = 0) {
815
815
  }
816
816
  return e ? (i.shift(), `u${i.join("")}`) : i.join("");
817
817
  }
818
- const _t = [
818
+ const pt = [
819
819
  {
820
820
  key: "CN"
821
821
  },
822
822
  {
823
823
  format: (s) => `${s.DevClass}(${s.sn})`
824
824
  }
825
- ], pt = [
825
+ ], _t = [
826
826
  {
827
827
  key: "SealId"
828
828
  },
@@ -863,7 +863,7 @@ class Bt {
863
863
  (e = this.socketInstance) == null || e.close();
864
864
  });
865
865
  o(this, "sendMessage", (e, t, n) => new Promise((i, r) => {
866
- var c;
866
+ var l;
867
867
  const a = () => {
868
868
  var h, w;
869
869
  if (((h = this.socketInstance) == null ? void 0 : h.readyState) !== WebSocket.OPEN) {
@@ -873,8 +873,8 @@ class Bt {
873
873
  });
874
874
  return;
875
875
  }
876
- const d = vt(), u = (g) => {
877
- g.success ? i(g.data) : r(g);
876
+ const d = vt(), u = (y) => {
877
+ y.success ? i(y.data) : r(y);
878
878
  }, C = {
879
879
  function: e,
880
880
  args: t ? [t] : [],
@@ -889,7 +889,7 @@ class Bt {
889
889
  });
890
890
  return;
891
891
  }
892
- if (((c = this.socketInstance) == null ? void 0 : c.readyState) === WebSocket.OPEN) {
892
+ if (((l = this.socketInstance) == null ? void 0 : l.readyState) === WebSocket.OPEN) {
893
893
  a();
894
894
  return;
895
895
  }
@@ -899,19 +899,19 @@ class Bt {
899
899
  var e;
900
900
  (e = this.messageQueue) == null || e.forEach((t) => t()), this.messageQueue = [];
901
901
  });
902
- o(this, "handleEventData", (e) => l(this, null, function* () {
903
- var t, n, i, r, a, c, d, u;
902
+ o(this, "handleEventData", (e) => c(this, null, function* () {
903
+ var t, n, i, r, a, l, d, u;
904
904
  if (e.data instanceof Blob) {
905
- const C = yield e.data.arrayBuffer(), w = new TextDecoder(
905
+ const C = yield e.data.arrayBuffer(), y = new TextDecoder(
906
906
  navigator.userAgent.includes("Windows") ? "gbk" : "utf-8"
907
- ).decode(C), g = JSON.parse(w), f = {
907
+ ).decode(C).replace(/\\(?!(["\\\/bfnrtu]))/g, ""), g = JSON.parse(y), m = {
908
908
  success: (t = g.result) == null ? void 0 : t.success,
909
909
  msg: (n = g.result) == null ? void 0 : n.msg,
910
910
  errCode: (i = g.result) == null ? void 0 : i.errCode,
911
911
  data: g.data,
912
912
  type: (r = g.result) == null ? void 0 : r.event
913
- }, E = (a = g.result) == null ? void 0 : a.function, y = (c = g.result) == null ? void 0 : c.msgid;
914
- y ? this.eventBus.emit(y, f) : this.eventBus.emit(E, f), (u = (d = this.socketConfig) == null ? void 0 : d.onMessage) == null || u.call(d, f);
913
+ }, f = (a = g.result) == null ? void 0 : a.function, S = (l = g.result) == null ? void 0 : l.msgid;
914
+ S ? this.eventBus.emit(S, m) : this.eventBus.emit(f, m), (u = (d = this.socketConfig) == null ? void 0 : d.onMessage) == null || u.call(d, m);
915
915
  }
916
916
  }));
917
917
  o(this, "base64Encode", (e) => {
@@ -922,29 +922,29 @@ class Bt {
922
922
  const t = ue.toByteArray(e);
923
923
  return new TextDecoder().decode(t);
924
924
  });
925
- o(this, "changeIsRememberPin", (e) => l(this, null, function* () {
925
+ o(this, "changeIsRememberPin", (e) => c(this, null, function* () {
926
926
  this.isRememberPin = e;
927
927
  }));
928
- o(this, "changePinPolicy", (e) => l(this, null, function* () {
928
+ o(this, "changePinPolicy", (e) => c(this, null, function* () {
929
929
  this.pinPolicy = e;
930
930
  }));
931
- o(this, "checkCertIsLogin", (e) => l(this, null, function* () {
931
+ o(this, "checkCertIsLogin", (e) => c(this, null, function* () {
932
932
  return yield this.sendMessage("GZCA_IsLogin", e);
933
933
  }));
934
- o(this, "addUkeyEvents", () => l(this, null, function* () {
934
+ o(this, "addUkeyEvents", () => c(this, null, function* () {
935
935
  this.sendMessage("GZCA_WaitForDevEvent", {
936
936
  Type: He
937
937
  }), this.eventBus.on(
938
938
  "GZCA_OnDeviceChange",
939
939
  (e) => {
940
940
  var t, n, i;
941
- (i = (t = this.socketConfig) == null ? void 0 : t.onUkeyChange) == null || i.call(t, v(m({}, e), {
941
+ (i = (t = this.socketConfig) == null ? void 0 : t.onUkeyChange) == null || i.call(t, v(E({}, e), {
942
942
  data: (n = e.data) == null ? void 0 : n[0]
943
943
  }));
944
944
  }
945
945
  );
946
946
  }));
947
- o(this, "certLogin", (e) => l(this, null, function* () {
947
+ o(this, "certLogin", (e) => c(this, null, function* () {
948
948
  const t = yield this.checkCertIsLogin({
949
949
  ContainerName: e
950
950
  });
@@ -955,7 +955,7 @@ class Bt {
955
955
  PinPolicy: this.pinPolicy
956
956
  }));
957
957
  }));
958
- o(this, "verifyPin", (e) => l(this, null, function* () {
958
+ o(this, "verifyPin", (e) => c(this, null, function* () {
959
959
  var t;
960
960
  yield this.sendMessage("GZCA_Login", {
961
961
  ContainerName: e.ContainerName,
@@ -964,198 +964,198 @@ class Bt {
964
964
  PinPolicy: this.pinPolicy
965
965
  });
966
966
  }));
967
- o(this, "getCert", (e, t, n) => l(this, null, function* () {
967
+ o(this, "getCert", (e, t, n) => c(this, null, function* () {
968
968
  const i = t != null ? t : yield this.chooseCert(e);
969
969
  return this.isRememberPin && n && (yield this.certLogin(i.ContainerName)), i;
970
970
  }));
971
- o(this, "chooseCert", (e) => l(this, null, function* () {
971
+ o(this, "chooseCert", (e) => c(this, null, function* () {
972
972
  var i;
973
973
  const t = yield this.getCertList(e);
974
974
  return t != null && t.length ? (t == null ? void 0 : t.length) === 1 ? t[0] : yield G.open({
975
975
  title: "选择证书",
976
976
  data: t,
977
- columns: _t,
977
+ columns: pt,
978
978
  theme: (i = this.socketConfig) == null ? void 0 : i.theme
979
979
  }) : Promise.reject({
980
980
  errCode: Ue,
981
981
  msg: "暂无证书"
982
982
  });
983
983
  }));
984
- o(this, "getCertList", (e) => l(this, null, function* () {
984
+ o(this, "getCertList", (e) => c(this, null, function* () {
985
985
  return yield this.sendMessage(
986
986
  "GZCA_GetCertList",
987
987
  e
988
988
  );
989
989
  }));
990
- o(this, "pkcs1Sign", (e) => l(this, null, function* () {
991
- return yield this.sendMessage("GZCA_Pkcs1SignData", m({
990
+ o(this, "pkcs1Sign", (e) => c(this, null, function* () {
991
+ return yield this.sendMessage("GZCA_Pkcs1SignData", E({
992
992
  IsLogin: this.getIsLogin(),
993
993
  PinPolicy: this.pinPolicy
994
994
  }, e != null ? e : {}));
995
995
  }));
996
- o(this, "pkcs1Base64Sign", (e) => l(this, null, function* () {
997
- return yield this.sendMessage("GZCA_Pkcs1SignDataEx", m({
996
+ o(this, "pkcs1Base64Sign", (e) => c(this, null, function* () {
997
+ return yield this.sendMessage("GZCA_Pkcs1SignDataEx", E({
998
998
  IsLogin: this.getIsLogin(),
999
999
  PinPolicy: this.pinPolicy
1000
1000
  }, e != null ? e : {}));
1001
1001
  }));
1002
- o(this, "batchPkcs1Base64Sign", (e) => l(this, null, function* () {
1003
- return yield this.sendMessage("GZCA_BatchPkcs1SignDataEx", m({
1002
+ o(this, "batchPkcs1Base64Sign", (e) => c(this, null, function* () {
1003
+ return yield this.sendMessage("GZCA_BatchPkcs1SignDataEx", E({
1004
1004
  IsLogin: this.getIsLogin(),
1005
1005
  PinPolicy: this.pinPolicy
1006
1006
  }, e != null ? e : {}));
1007
1007
  }));
1008
- o(this, "pkcs1VerifySignature", (e) => l(this, null, function* () {
1008
+ o(this, "pkcs1VerifySignature", (e) => c(this, null, function* () {
1009
1009
  return yield this.sendMessage("GZCA_Pkcs1VerifySign", e);
1010
1010
  }));
1011
- o(this, "pkcs1Base64VerifySignature", (e) => l(this, null, function* () {
1011
+ o(this, "pkcs1Base64VerifySignature", (e) => c(this, null, function* () {
1012
1012
  return yield this.sendMessage("GZCA_Pkcs1VerifySignEx", e);
1013
1013
  }));
1014
- o(this, "getSealList", (e) => l(this, null, function* () {
1014
+ o(this, "getSealList", (e) => c(this, null, function* () {
1015
1015
  return yield this.sendMessage(
1016
1016
  "GZCA_EnumSeals",
1017
- m({
1017
+ E({
1018
1018
  IsLogin: this.getIsLogin()
1019
1019
  }, e != null ? e : {}),
1020
- _.LEVEL_2
1020
+ p.LEVEL_2
1021
1021
  );
1022
1022
  }));
1023
- o(this, "writeSeal", (e) => l(this, null, function* () {
1023
+ o(this, "writeSeal", (e) => c(this, null, function* () {
1024
1024
  return yield this.sendMessage(
1025
1025
  "GZCA_WriteSeal",
1026
- m({
1026
+ E({
1027
1027
  IsLogin: this.getIsLogin()
1028
1028
  }, e != null ? e : {}),
1029
- _.LEVEL_2
1029
+ p.LEVEL_2
1030
1030
  );
1031
1031
  }));
1032
- o(this, "deleteSeal", (e) => l(this, null, function* () {
1032
+ o(this, "deleteSeal", (e) => c(this, null, function* () {
1033
1033
  return yield this.sendMessage(
1034
1034
  "GZCA_DeleteSeal",
1035
- m({
1035
+ E({
1036
1036
  IsLogin: this.getIsLogin()
1037
1037
  }, e != null ? e : {}),
1038
- _.LEVEL_2
1038
+ p.LEVEL_2
1039
1039
  );
1040
1040
  }));
1041
- o(this, "getSealInfo", (e) => l(this, null, function* () {
1041
+ o(this, "getSealInfo", (e) => c(this, null, function* () {
1042
1042
  return yield this.sendMessage(
1043
1043
  "GZCA_ReadSeal",
1044
- m({
1044
+ E({
1045
1045
  IsLogin: this.getIsLogin()
1046
1046
  }, e != null ? e : {}),
1047
- _.LEVEL_2
1047
+ p.LEVEL_2
1048
1048
  );
1049
1049
  }));
1050
- o(this, "getTPSealList", (e) => l(this, null, function* () {
1050
+ o(this, "getTPSealList", (e) => c(this, null, function* () {
1051
1051
  return yield this.sendMessage(
1052
1052
  "GZCA_GetSealPicList",
1053
- m({
1053
+ E({
1054
1054
  IsLogin: this.getIsLogin()
1055
1055
  }, e != null ? e : {}),
1056
- _.LEVEL_2
1056
+ p.LEVEL_2
1057
1057
  );
1058
1058
  }));
1059
- o(this, "getTPSealPic", (e) => l(this, null, function* () {
1059
+ o(this, "getTPSealPic", (e) => c(this, null, function* () {
1060
1060
  var n;
1061
1061
  return yield this.sendMessage(
1062
1062
  "GZCA_GetSealPicData",
1063
- m({
1063
+ E({
1064
1064
  IsLogin: (n = e.IsLogin) != null ? n : this.getIsLogin()
1065
1065
  }, e != null ? e : {}),
1066
- _.LEVEL_2
1066
+ p.LEVEL_2
1067
1067
  );
1068
1068
  }));
1069
- o(this, "sm2SignPreprocess1", (e) => l(this, null, function* () {
1069
+ o(this, "sm2SignPreprocess1", (e) => c(this, null, function* () {
1070
1070
  return yield this.sendMessage("GZCA_PrepareSm2SignStep1", e);
1071
1071
  }));
1072
- o(this, "sm2SignPreprocess2", (e) => l(this, null, function* () {
1072
+ o(this, "sm2SignPreprocess2", (e) => c(this, null, function* () {
1073
1073
  return yield this.sendMessage("GZCA_PrepareSm2SignStep2", e);
1074
1074
  }));
1075
- o(this, "pkcs1HashSign", (e) => l(this, null, function* () {
1076
- return yield this.sendMessage("GZCA_Pkcs1SignDataForHash", m({
1075
+ o(this, "pkcs1HashSign", (e) => c(this, null, function* () {
1076
+ return yield this.sendMessage("GZCA_Pkcs1SignDataForHash", E({
1077
1077
  IsLogin: this.getIsLogin(),
1078
1078
  PinPolicy: this.pinPolicy
1079
1079
  }, e != null ? e : {}));
1080
1080
  }));
1081
- o(this, "pkcs1HashVerifySignature", (e) => l(this, null, function* () {
1081
+ o(this, "pkcs1HashVerifySignature", (e) => c(this, null, function* () {
1082
1082
  return yield this.sendMessage("GZCA_Pkcs1VerifySignForHash", e);
1083
1083
  }));
1084
- o(this, "pkcs7Sign", (e) => l(this, null, function* () {
1085
- return yield this.sendMessage("GZCA_Pkcs7SignData", m({
1084
+ o(this, "pkcs7Sign", (e) => c(this, null, function* () {
1085
+ return yield this.sendMessage("GZCA_Pkcs7SignData", E({
1086
1086
  IsLogin: this.getIsLogin(),
1087
1087
  IsAuthAttr: "Y",
1088
1088
  PinPolicy: this.pinPolicy
1089
1089
  }, e != null ? e : {}));
1090
1090
  }));
1091
- o(this, "pkcs7VerifySignature", (e) => l(this, null, function* () {
1091
+ o(this, "pkcs7VerifySignature", (e) => c(this, null, function* () {
1092
1092
  return yield this.sendMessage("GZCA_Pkcs7VerifySign", e);
1093
1093
  }));
1094
- o(this, "sm3Hash", (e) => l(this, null, function* () {
1094
+ o(this, "sm3Hash", (e) => c(this, null, function* () {
1095
1095
  return yield this.sendMessage("GZCA_HashData", e);
1096
1096
  }));
1097
- o(this, "sm3HexHash", (e) => l(this, null, function* () {
1097
+ o(this, "sm3HexHash", (e) => c(this, null, function* () {
1098
1098
  return yield this.sendMessage("GZCA_HashDataEx", e);
1099
1099
  }));
1100
- o(this, "sm3FileHash", (e) => l(this, null, function* () {
1100
+ o(this, "sm3FileHash", (e) => c(this, null, function* () {
1101
1101
  return yield this.sendMessage("GZCA_HashFile", e);
1102
1102
  }));
1103
- o(this, "sm3HashEncryption", (e) => l(this, null, function* () {
1103
+ o(this, "sm3HashEncryption", (e) => c(this, null, function* () {
1104
1104
  return yield this.sendMessage("GZCA_HMac", e);
1105
1105
  }));
1106
- o(this, "pkcs7Encryption", (e) => l(this, null, function* () {
1106
+ o(this, "pkcs7Encryption", (e) => c(this, null, function* () {
1107
1107
  return yield this.sendMessage("GZCA_Pkcs7EncryptData", e);
1108
1108
  }));
1109
- o(this, "pkcs7Decryption", (e) => l(this, null, function* () {
1110
- return yield this.sendMessage("GZCA_Pkcs7DecryptData", m({
1109
+ o(this, "pkcs7Decryption", (e) => c(this, null, function* () {
1110
+ return yield this.sendMessage("GZCA_Pkcs7DecryptData", E({
1111
1111
  IsLogin: this.getIsLogin()
1112
1112
  }, e != null ? e : {}));
1113
1113
  }));
1114
- o(this, "pkcs7FileEncryption", (e) => l(this, null, function* () {
1114
+ o(this, "pkcs7FileEncryption", (e) => c(this, null, function* () {
1115
1115
  return yield this.sendMessage("GZCA_EnvelopeSealFileEx_qyzc", e);
1116
1116
  }));
1117
- o(this, "pkcs7FileDecryption", (e) => l(this, null, function* () {
1118
- return yield this.sendMessage("GZCA_EnvelopeOpenFileEx_qyzc", m({
1117
+ o(this, "pkcs7FileDecryption", (e) => c(this, null, function* () {
1118
+ return yield this.sendMessage("GZCA_EnvelopeOpenFileEx_qyzc", E({
1119
1119
  IsLogin: this.getIsLogin()
1120
1120
  }, e != null ? e : {}));
1121
1121
  }));
1122
- o(this, "asymmetricEncryption", (e) => l(this, null, function* () {
1122
+ o(this, "asymmetricEncryption", (e) => c(this, null, function* () {
1123
1123
  return yield this.sendMessage("GZCA_AsymEncryptData", e);
1124
1124
  }));
1125
- o(this, "asymmetricDecryption", (e) => l(this, null, function* () {
1126
- return yield this.sendMessage("GZCA_AsymDecryptData", m({
1125
+ o(this, "asymmetricDecryption", (e) => c(this, null, function* () {
1126
+ return yield this.sendMessage("GZCA_AsymDecryptData", E({
1127
1127
  IsLogin: this.getIsLogin()
1128
1128
  }, e != null ? e : {}));
1129
1129
  }));
1130
- o(this, "sm4Encryption", (e) => l(this, null, function* () {
1130
+ o(this, "sm4Encryption", (e) => c(this, null, function* () {
1131
1131
  return yield this.sendMessage("GZCA_EncryptDataEx", e);
1132
1132
  }));
1133
- o(this, "sm4Decryption", (e) => l(this, null, function* () {
1133
+ o(this, "sm4Decryption", (e) => c(this, null, function* () {
1134
1134
  return yield this.sendMessage("GZCA_DecryptDataEx", e);
1135
1135
  }));
1136
- o(this, "getCertInfo", (e) => l(this, null, function* () {
1136
+ o(this, "getCertInfo", (e) => c(this, null, function* () {
1137
1137
  return yield this.sendMessage("GZCA_GetCertInfo", e);
1138
1138
  }));
1139
- o(this, "getCertInfoByOid", (e) => l(this, null, function* () {
1139
+ o(this, "getCertInfoByOid", (e) => c(this, null, function* () {
1140
1140
  return yield this.sendMessage("GZCA_GetCertInfoByOid", e);
1141
1141
  }));
1142
- o(this, "getSealVendor", (e) => l(this, null, function* () {
1142
+ o(this, "getSealVendor", (e) => c(this, null, function* () {
1143
1143
  return yield this.sendMessage(
1144
1144
  "GZCA_GetSealIssuer",
1145
1145
  e,
1146
- _.LEVEL_2
1146
+ p.LEVEL_2
1147
1147
  );
1148
1148
  }));
1149
- o(this, "deleteAllSealByVendor", (e) => l(this, null, function* () {
1149
+ o(this, "deleteAllSealByVendor", (e) => c(this, null, function* () {
1150
1150
  return yield this.sendMessage(
1151
1151
  "GZCA_ClearSeal",
1152
- m({
1152
+ E({
1153
1153
  IsLogin: this.getIsLogin()
1154
1154
  }, e != null ? e : {}),
1155
- _.LEVEL_2
1155
+ p.LEVEL_2
1156
1156
  );
1157
1157
  }));
1158
- o(this, "applyCert", (e) => l(this, null, function* () {
1158
+ o(this, "applyCert", (e) => c(this, null, function* () {
1159
1159
  return yield this.sendMessage(
1160
1160
  "GZCA_ApplyCert",
1161
1161
  {
@@ -1165,28 +1165,28 @@ class Bt {
1165
1165
  type: e.type,
1166
1166
  url: e.url
1167
1167
  },
1168
- _.LEVEL_3
1168
+ p.LEVEL_3
1169
1169
  );
1170
1170
  }));
1171
- o(this, "resetPin", (e) => l(this, null, function* () {
1171
+ o(this, "resetPin", (e) => c(this, null, function* () {
1172
1172
  return yield this.sendMessage(
1173
1173
  "GZCA_UnblockUserPin",
1174
- m({}, e != null ? e : {}),
1175
- _.LEVEL_3
1174
+ E({}, e != null ? e : {}),
1175
+ p.LEVEL_3
1176
1176
  );
1177
1177
  }));
1178
- o(this, "getUKeyList", () => l(this, null, function* () {
1178
+ o(this, "getUKeyList", () => c(this, null, function* () {
1179
1179
  return yield this.sendMessage(
1180
1180
  "GetUKeyList",
1181
1181
  void 0,
1182
- _.LEVEL_3
1182
+ p.LEVEL_3
1183
1183
  );
1184
1184
  }));
1185
- o(this, "getUKeyInfo", (e) => l(this, null, function* () {
1185
+ o(this, "getUKeyInfo", (e) => c(this, null, function* () {
1186
1186
  return yield this.sendMessage(
1187
1187
  "GetUKeyID",
1188
1188
  e != null ? e : {},
1189
- _.LEVEL_3
1189
+ p.LEVEL_3
1190
1190
  );
1191
1191
  }));
1192
1192
  var t, n, i;
@@ -1217,14 +1217,14 @@ const $ = class $ {
1217
1217
  o(this, "coreInstance", null);
1218
1218
  o(this, "gwsConfig", {});
1219
1219
  o(this, "createGwsCore", (e) => {
1220
- this.gwsConfig = e != null ? e : {}, this.coreInstance = new Bt(v(m({}, e != null ? e : {}), {
1220
+ this.gwsConfig = e != null ? e : {}, this.coreInstance = new Bt(v(E({}, e != null ? e : {}), {
1221
1221
  url: Oe
1222
1222
  }));
1223
1223
  });
1224
- o(this, "appendCertBase64", (e, t = !0) => l(this, null, function* () {
1224
+ o(this, "appendCertBase64", (e, t = !0) => c(this, null, function* () {
1225
1225
  if (e.CertB64) return e;
1226
1226
  const n = t ? yield this.getSignatureCert() : yield this.getEncryptionCert();
1227
- return v(m({}, e != null ? e : {}), { CertB64: n == null ? void 0 : n.CertB64 });
1227
+ return v(E({}, e != null ? e : {}), { CertB64: n == null ? void 0 : n.CertB64 });
1228
1228
  }));
1229
1229
  o(this, "destroy", () => {
1230
1230
  var e;
@@ -1237,7 +1237,7 @@ const $ = class $ {
1237
1237
  var e;
1238
1238
  return (e = this.coreInstance) == null ? void 0 : e.getSocketReadyState();
1239
1239
  });
1240
- o(this, "verifyPin", (e, t) => l(this, null, function* () {
1240
+ o(this, "verifyPin", (e, t) => c(this, null, function* () {
1241
1241
  var i, r;
1242
1242
  const n = yield this.getSignatureCert(t);
1243
1243
  return (r = this.coreInstance) == null ? void 0 : r.verifyPin({
@@ -1245,7 +1245,7 @@ const $ = class $ {
1245
1245
  UserPin: e == null ? void 0 : e.UserPin
1246
1246
  });
1247
1247
  }));
1248
- o(this, "getSignatureCert", (e, t = !0) => l(this, null, function* () {
1248
+ o(this, "getSignatureCert", (e, t = !0) => c(this, null, function* () {
1249
1249
  var i;
1250
1250
  return yield (i = this.coreInstance) == null ? void 0 : i.getCert(
1251
1251
  { CertType: ae },
@@ -1253,13 +1253,13 @@ const $ = class $ {
1253
1253
  t
1254
1254
  );
1255
1255
  }));
1256
- o(this, "getSignatureCertList", () => l(this, null, function* () {
1256
+ o(this, "getSignatureCertList", () => c(this, null, function* () {
1257
1257
  var t;
1258
1258
  return yield (t = this.coreInstance) == null ? void 0 : t.getCertList({
1259
1259
  CertType: ae
1260
1260
  });
1261
1261
  }));
1262
- o(this, "getEncryptionCert", (e, t = !0) => l(this, null, function* () {
1262
+ o(this, "getEncryptionCert", (e, t = !0) => c(this, null, function* () {
1263
1263
  var i;
1264
1264
  return yield (i = this.coreInstance) == null ? void 0 : i.getCert(
1265
1265
  { CertType: oe },
@@ -1267,7 +1267,7 @@ const $ = class $ {
1267
1267
  t
1268
1268
  );
1269
1269
  }));
1270
- o(this, "getEncryptionCertList", () => l(this, null, function* () {
1270
+ o(this, "getEncryptionCertList", () => c(this, null, function* () {
1271
1271
  var t;
1272
1272
  return yield (t = this.coreInstance) == null ? void 0 : t.getCertList({
1273
1273
  CertType: oe
@@ -1289,58 +1289,58 @@ const $ = class $ {
1289
1289
  var t;
1290
1290
  (t = this.coreInstance) == null || t.changePinPolicy(e);
1291
1291
  });
1292
- o(this, "pkcs1Sign", (e, t) => l(this, null, function* () {
1293
- var r, a, c;
1294
- const n = yield this.getSignatureCert(t), i = yield (a = this.coreInstance) == null ? void 0 : a.pkcs1Sign(v(m({}, e != null ? e : {}), {
1292
+ o(this, "pkcs1Sign", (e, t) => c(this, null, function* () {
1293
+ var r, a, l;
1294
+ const n = yield this.getSignatureCert(t), i = yield (a = this.coreInstance) == null ? void 0 : a.pkcs1Sign(v(E({}, e != null ? e : {}), {
1295
1295
  ContainerName: (r = n == null ? void 0 : n.ContainerName) != null ? r : ""
1296
1296
  }));
1297
- return (c = i == null ? void 0 : i[0]) == null ? void 0 : c.SignData;
1297
+ return (l = i == null ? void 0 : i[0]) == null ? void 0 : l.SignData;
1298
1298
  }));
1299
- o(this, "pkcs1VerifySignature", (e) => l(this, null, function* () {
1299
+ o(this, "pkcs1VerifySignature", (e) => c(this, null, function* () {
1300
1300
  var i;
1301
1301
  const t = yield this.appendCertBase64(e), n = yield (i = this.coreInstance) == null ? void 0 : i.pkcs1VerifySignature(t);
1302
1302
  return Array.isArray(n);
1303
1303
  }));
1304
- o(this, "pkcs1Base64Sign", (e, t) => l(this, null, function* () {
1305
- var a, c, d, u, C;
1306
- const n = yield this.getSignatureCert(t), i = (c = e.DataB64) != null ? c : this.base64Encode({ Data: (a = e.Data) != null ? a : "" }), r = yield (u = this.coreInstance) == null ? void 0 : u.pkcs1Base64Sign(v(m({}, e != null ? e : {}), {
1304
+ o(this, "pkcs1Base64Sign", (e, t) => c(this, null, function* () {
1305
+ var a, l, d, u, C;
1306
+ const n = yield this.getSignatureCert(t), i = (l = e.DataB64) != null ? l : this.base64Encode({ Data: (a = e.Data) != null ? a : "" }), r = yield (u = this.coreInstance) == null ? void 0 : u.pkcs1Base64Sign(v(E({}, e != null ? e : {}), {
1307
1307
  ContainerName: (d = n == null ? void 0 : n.ContainerName) != null ? d : "",
1308
1308
  DataB64: i
1309
1309
  }));
1310
1310
  return (C = r == null ? void 0 : r[0]) == null ? void 0 : C.SignData;
1311
1311
  }));
1312
- o(this, "batchPkcs1Base64Sign", (e, t) => l(this, null, function* () {
1313
- var C, h, w, g, f, E;
1314
- const n = "|", i = (h = e.DataB64) != null ? h : (C = e.Data) == null ? void 0 : C.map((y) => this.base64Encode({ Data: y })), r = yield this.getSignatureCert(t);
1312
+ o(this, "batchPkcs1Base64Sign", (e, t) => c(this, null, function* () {
1313
+ var C, h, w, y, g, m;
1314
+ const n = "|", i = (h = e.DataB64) != null ? h : (C = e.Data) == null ? void 0 : C.map((f) => this.base64Encode({ Data: f })), r = yield this.getSignatureCert(t);
1315
1315
  let a = "";
1316
- a = Array.isArray(i) ? i == null ? void 0 : i.map((y, S) => `${S}:${y}`).join(n) : "";
1317
- const c = yield (g = this.coreInstance) == null ? void 0 : g.batchPkcs1Base64Sign({
1316
+ a = Array.isArray(i) ? i == null ? void 0 : i.map((f, S) => `${S}:${f}`).join(n) : "";
1317
+ const l = yield (y = this.coreInstance) == null ? void 0 : y.batchPkcs1Base64Sign({
1318
1318
  ContainerName: (w = r == null ? void 0 : r.ContainerName) != null ? w : "",
1319
1319
  DataB64: a
1320
- }), d = (E = (f = c == null ? void 0 : c[0]) == null ? void 0 : f.SignData) == null ? void 0 : E.split(n), u = [];
1321
- return d.forEach((y) => {
1322
- const S = y.split(":"), k = Number(S[0]), p = S[1];
1323
- u[k] = p;
1320
+ }), d = (m = (g = l == null ? void 0 : l[0]) == null ? void 0 : g.SignData) == null ? void 0 : m.split(n), u = [];
1321
+ return d.forEach((f) => {
1322
+ const S = f.split(":"), k = Number(S[0]), _ = S[1];
1323
+ u[k] = _;
1324
1324
  }), u;
1325
1325
  }));
1326
- o(this, "pkcs1Base64VerifySignature", (e) => l(this, null, function* () {
1327
- var r, a, c;
1326
+ o(this, "pkcs1Base64VerifySignature", (e) => c(this, null, function* () {
1327
+ var r, a, l;
1328
1328
  const t = (a = e.DataB64) != null ? a : this.base64Encode({ Data: (r = e.Data) != null ? r : "" }), n = yield this.appendCertBase64(e);
1329
- return !!(yield (c = this.coreInstance) == null ? void 0 : c.pkcs1Base64VerifySignature({
1329
+ return !!(yield (l = this.coreInstance) == null ? void 0 : l.pkcs1Base64VerifySignature({
1330
1330
  CertB64: n.CertB64,
1331
1331
  DataB64: t,
1332
1332
  SignData: n.SignData
1333
1333
  }));
1334
1334
  }));
1335
- o(this, "writeSeal", (e, t) => l(this, null, function* () {
1335
+ o(this, "writeSeal", (e, t) => c(this, null, function* () {
1336
1336
  var r, a;
1337
1337
  const n = yield this.getSignatureCert(t);
1338
- return !!(yield (a = this.coreInstance) == null ? void 0 : a.writeSeal(v(m({}, e != null ? e : {}), {
1338
+ return !!(yield (a = this.coreInstance) == null ? void 0 : a.writeSeal(v(E({}, e != null ? e : {}), {
1339
1339
  ContainerName: (r = n == null ? void 0 : n.ContainerName) != null ? r : ""
1340
1340
  })));
1341
1341
  }));
1342
- o(this, "deleteSeal", (e) => l(this, null, function* () {
1343
- var a, c, d, u, C;
1342
+ o(this, "deleteSeal", (e) => c(this, null, function* () {
1343
+ var a, l, d, u, C;
1344
1344
  const t = yield this.getSealList(e);
1345
1345
  if (!((a = t == null ? void 0 : t.data) != null && a.length))
1346
1346
  return Promise.reject({
@@ -1352,20 +1352,20 @@ const $ = class $ {
1352
1352
  data: t == null ? void 0 : t.data,
1353
1353
  columns: Se,
1354
1354
  okText: "删除"
1355
- }), i = (c = n == null ? void 0 : n.SealId) != null ? c : "";
1355
+ }), i = (l = n == null ? void 0 : n.SealId) != null ? l : "";
1356
1356
  return !!(yield (C = this.coreInstance) == null ? void 0 : C.deleteSeal({
1357
1357
  ContainerName: (u = (d = t == null ? void 0 : t.cert) == null ? void 0 : d.ContainerName) != null ? u : "",
1358
1358
  SealId: i
1359
1359
  }));
1360
1360
  }));
1361
- o(this, "deleteSealById", (e, t) => l(this, null, function* () {
1361
+ o(this, "deleteSealById", (e, t) => c(this, null, function* () {
1362
1362
  var r, a;
1363
1363
  const n = yield this.getSignatureCert(t);
1364
- return !!(yield (a = this.coreInstance) == null ? void 0 : a.deleteSeal(v(m({}, e != null ? e : {}), {
1364
+ return !!(yield (a = this.coreInstance) == null ? void 0 : a.deleteSeal(v(E({}, e != null ? e : {}), {
1365
1365
  ContainerName: (r = n == null ? void 0 : n.ContainerName) != null ? r : ""
1366
1366
  })));
1367
1367
  }));
1368
- o(this, "getSealList", (e) => l(this, null, function* () {
1368
+ o(this, "getSealList", (e) => c(this, null, function* () {
1369
1369
  var i, r;
1370
1370
  const t = yield this.getSignatureCert(e), n = yield (r = this.coreInstance) == null ? void 0 : r.getSealList({
1371
1371
  ContainerName: (i = t == null ? void 0 : t.ContainerName) != null ? i : "",
@@ -1376,8 +1376,8 @@ const $ = class $ {
1376
1376
  data: n
1377
1377
  };
1378
1378
  }));
1379
- o(this, "getSealInfo", (e) => l(this, null, function* () {
1380
- var r, a, c, d, u, C, h;
1379
+ o(this, "getSealInfo", (e) => c(this, null, function* () {
1380
+ var r, a, l, d, u, C, h;
1381
1381
  const t = yield this.getSealList(e);
1382
1382
  if (!((r = t == null ? void 0 : t.data) != null && r.length))
1383
1383
  return Promise.reject({
@@ -1388,14 +1388,14 @@ const $ = class $ {
1388
1388
  title: "选择印章",
1389
1389
  data: t == null ? void 0 : t.data,
1390
1390
  columns: Se,
1391
- theme: (c = this.gwsConfig) == null ? void 0 : c.theme
1391
+ theme: (l = this.gwsConfig) == null ? void 0 : l.theme
1392
1392
  }) : t == null ? void 0 : t.data[0], i = yield (h = this.coreInstance) == null ? void 0 : h.getSealInfo({
1393
1393
  ContainerName: (u = (d = t == null ? void 0 : t.cert) == null ? void 0 : d.ContainerName) != null ? u : "",
1394
1394
  SealId: (C = n == null ? void 0 : n.SealId) != null ? C : ""
1395
1395
  });
1396
1396
  return i == null ? void 0 : i[0];
1397
1397
  }));
1398
- o(this, "getTPSealList", (e, t) => l(this, null, function* () {
1398
+ o(this, "getTPSealList", (e, t) => c(this, null, function* () {
1399
1399
  var r, a;
1400
1400
  const n = yield this.getSignatureCert(t), i = yield (a = this.coreInstance) == null ? void 0 : a.getTPSealList({
1401
1401
  ContainerName: (r = n == null ? void 0 : n.ContainerName) != null ? r : "",
@@ -1406,8 +1406,8 @@ const $ = class $ {
1406
1406
  data: i
1407
1407
  };
1408
1408
  }));
1409
- o(this, "getTPSeal", (e, t) => l(this, null, function* () {
1410
- var r, a, c;
1409
+ o(this, "getTPSeal", (e, t) => c(this, null, function* () {
1410
+ var r, a, l;
1411
1411
  const n = yield this.getTPSealList(e, t);
1412
1412
  if (!((r = n == null ? void 0 : n.data) != null && r.length))
1413
1413
  return Promise.reject({
@@ -1417,29 +1417,29 @@ const $ = class $ {
1417
1417
  const i = ((a = n == null ? void 0 : n.data) == null ? void 0 : a.length) === 1 ? n == null ? void 0 : n.data[0] : yield G.open({
1418
1418
  title: "选择印章",
1419
1419
  data: n == null ? void 0 : n.data,
1420
- columns: pt,
1421
- theme: (c = this.gwsConfig) == null ? void 0 : c.theme
1420
+ columns: _t,
1421
+ theme: (l = this.gwsConfig) == null ? void 0 : l.theme
1422
1422
  });
1423
1423
  return {
1424
1424
  cert: n == null ? void 0 : n.cert,
1425
1425
  data: i
1426
1426
  };
1427
1427
  }));
1428
- o(this, "getTPSealPic", (e, t) => l(this, null, function* () {
1429
- var r, a, c, d, u;
1430
- const n = yield this.getTPSeal(e, t), i = yield (u = this.coreInstance) == null ? void 0 : u.getTPSealPic(v(m({
1428
+ o(this, "getTPSealPic", (e, t) => c(this, null, function* () {
1429
+ var r, a, l, d, u;
1430
+ const n = yield this.getTPSeal(e, t), i = yield (u = this.coreInstance) == null ? void 0 : u.getTPSealPic(v(E({
1431
1431
  ContainerName: (a = (r = n == null ? void 0 : n.cert) == null ? void 0 : r.ContainerName) != null ? a : ""
1432
- }, (c = n == null ? void 0 : n.data) != null ? c : {}), {
1432
+ }, (l = n == null ? void 0 : n.data) != null ? l : {}), {
1433
1433
  FileSize: String((d = n == null ? void 0 : n.data) == null ? void 0 : d.FileSize)
1434
1434
  }));
1435
1435
  return i == null ? void 0 : i[0];
1436
1436
  }));
1437
- o(this, "sm2SignPreprocess1", (e) => l(this, null, function* () {
1437
+ o(this, "sm2SignPreprocess1", (e) => c(this, null, function* () {
1438
1438
  var i, r;
1439
1439
  const t = yield this.appendCertBase64(e), n = yield (i = this.coreInstance) == null ? void 0 : i.sm2SignPreprocess1(t);
1440
1440
  return (r = n == null ? void 0 : n[0]) == null ? void 0 : r.Z;
1441
1441
  }));
1442
- o(this, "sm2SignPreprocess2", (e) => l(this, null, function* () {
1442
+ o(this, "sm2SignPreprocess2", (e) => c(this, null, function* () {
1443
1443
  var r, a;
1444
1444
  const t = this.base64Encode({ Data: (r = e.Data) != null ? r : "" }), n = yield this.appendCertBase64(e), i = yield (a = this.coreInstance) == null ? void 0 : a.sm2SignPreprocess2({
1445
1445
  CertB64: n.CertB64,
@@ -1447,31 +1447,31 @@ const $ = class $ {
1447
1447
  });
1448
1448
  return i == null ? void 0 : i[0].H;
1449
1449
  }));
1450
- o(this, "pkcs1HashSign", (e, t) => l(this, null, function* () {
1451
- var r, a, c, d;
1452
- const n = yield this.getSignatureCert(t), i = yield (c = this.coreInstance) == null ? void 0 : c.pkcs1HashSign({
1450
+ o(this, "pkcs1HashSign", (e, t) => c(this, null, function* () {
1451
+ var r, a, l, d;
1452
+ const n = yield this.getSignatureCert(t), i = yield (l = this.coreInstance) == null ? void 0 : l.pkcs1HashSign({
1453
1453
  ContainerName: (r = n == null ? void 0 : n.ContainerName) != null ? r : "",
1454
1454
  DataB64: e.DataB64,
1455
1455
  HashAlg: (a = e.HashAlg) != null ? a : "sm3"
1456
1456
  });
1457
1457
  return (d = i == null ? void 0 : i[0]) == null ? void 0 : d.SignData;
1458
1458
  }));
1459
- o(this, "pkcs1HashVerifySignature", (e) => l(this, null, function* () {
1459
+ o(this, "pkcs1HashVerifySignature", (e) => c(this, null, function* () {
1460
1460
  var i, r;
1461
1461
  const t = yield this.appendCertBase64(e);
1462
- return !!(yield (r = this.coreInstance) == null ? void 0 : r.pkcs1HashVerifySignature(v(m({}, t), {
1462
+ return !!(yield (r = this.coreInstance) == null ? void 0 : r.pkcs1HashVerifySignature(v(E({}, t), {
1463
1463
  HashAlg: (i = t.HashAlg) != null ? i : "sm3"
1464
1464
  })));
1465
1465
  }));
1466
- o(this, "pkcs7Sign", (e, t) => l(this, null, function* () {
1467
- var a, c, d, u, C;
1468
- const n = (c = e.DataB64) != null ? c : this.base64Encode({ Data: (a = e.Data) != null ? a : "" }), i = yield this.getSignatureCert(t), r = yield (u = this.coreInstance) == null ? void 0 : u.pkcs7Sign(v(m({}, e != null ? e : {}), {
1466
+ o(this, "pkcs7Sign", (e, t) => c(this, null, function* () {
1467
+ var a, l, d, u, C;
1468
+ const n = (l = e.DataB64) != null ? l : this.base64Encode({ Data: (a = e.Data) != null ? a : "" }), i = yield this.getSignatureCert(t), r = yield (u = this.coreInstance) == null ? void 0 : u.pkcs7Sign(v(E({}, e != null ? e : {}), {
1469
1469
  ContainerName: (d = i == null ? void 0 : i.ContainerName) != null ? d : "",
1470
1470
  DataB64: n
1471
1471
  }));
1472
1472
  return (C = r == null ? void 0 : r[0]) == null ? void 0 : C.SignData;
1473
1473
  }));
1474
- o(this, "pkcs7VerifySignature", (e) => l(this, null, function* () {
1474
+ o(this, "pkcs7VerifySignature", (e) => c(this, null, function* () {
1475
1475
  var i, r, a;
1476
1476
  const t = (r = e.DataB64) != null ? r : this.base64Encode({ Data: (i = e.Data) != null ? i : "" });
1477
1477
  return !!(yield (a = this.coreInstance) == null ? void 0 : a.pkcs7VerifySignature({
@@ -1479,32 +1479,32 @@ const $ = class $ {
1479
1479
  SignData: e.SignData
1480
1480
  }));
1481
1481
  }));
1482
- o(this, "sm3Hash", (e) => l(this, null, function* () {
1482
+ o(this, "sm3Hash", (e) => c(this, null, function* () {
1483
1483
  var n, i;
1484
1484
  const t = yield (n = this.coreInstance) == null ? void 0 : n.sm3Hash(e);
1485
1485
  return (i = t == null ? void 0 : t[0]) == null ? void 0 : i.HashB64;
1486
1486
  }));
1487
- o(this, "sm3HexHash", (e) => l(this, null, function* () {
1487
+ o(this, "sm3HexHash", (e) => c(this, null, function* () {
1488
1488
  var n, i;
1489
1489
  const t = yield (n = this.coreInstance) == null ? void 0 : n.sm3HexHash(e);
1490
1490
  return (i = t == null ? void 0 : t[0]) == null ? void 0 : i.HashB64;
1491
1491
  }));
1492
- o(this, "sm3FileHash", (e) => l(this, null, function* () {
1492
+ o(this, "sm3FileHash", (e) => c(this, null, function* () {
1493
1493
  var n, i;
1494
1494
  const t = yield (n = this.coreInstance) == null ? void 0 : n.sm3FileHash(e);
1495
1495
  return (i = t == null ? void 0 : t[0]) == null ? void 0 : i.HashB64;
1496
1496
  }));
1497
- o(this, "sm3HashEncryption", (e) => l(this, null, function* () {
1498
- var r, a, c, d, u, C;
1499
- const t = (a = e.DataB64) != null ? a : this.base64Encode({ Data: (r = e.Data) != null ? r : "" }), n = (d = e.KeyB64) != null ? d : this.base64Encode({ Data: (c = e.Key) != null ? c : "" }), i = yield (u = this.coreInstance) == null ? void 0 : u.sm3HashEncryption({
1497
+ o(this, "sm3HashEncryption", (e) => c(this, null, function* () {
1498
+ var r, a, l, d, u, C;
1499
+ const t = (a = e.DataB64) != null ? a : this.base64Encode({ Data: (r = e.Data) != null ? r : "" }), n = (d = e.KeyB64) != null ? d : this.base64Encode({ Data: (l = e.Key) != null ? l : "" }), i = yield (u = this.coreInstance) == null ? void 0 : u.sm3HashEncryption({
1500
1500
  dataB64: t,
1501
1501
  keyB64: n,
1502
1502
  alg: "sm3"
1503
1503
  });
1504
1504
  return (C = i == null ? void 0 : i[0]) == null ? void 0 : C.DataB64;
1505
1505
  }));
1506
- o(this, "pkcs7Encryption", (e) => l(this, null, function* () {
1507
- var i, r, a, c;
1506
+ o(this, "pkcs7Encryption", (e) => c(this, null, function* () {
1507
+ var i, r, a, l;
1508
1508
  if (!e.CertB64List) {
1509
1509
  const d = yield this.getEncryptionCert();
1510
1510
  e.CertB64List = d == null ? void 0 : d.CertB64;
@@ -1513,21 +1513,21 @@ const $ = class $ {
1513
1513
  DataB64: t,
1514
1514
  CertB64List: e.CertB64List
1515
1515
  });
1516
- return (c = n == null ? void 0 : n[0]) == null ? void 0 : c.DataB64;
1516
+ return (l = n == null ? void 0 : n[0]) == null ? void 0 : l.DataB64;
1517
1517
  }));
1518
- o(this, "pkcs7Decryption", (e) => l(this, null, function* () {
1518
+ o(this, "pkcs7Decryption", (e) => c(this, null, function* () {
1519
1519
  var r, a;
1520
- const t = yield this.getEncryptionCert(), n = yield (r = this.coreInstance) == null ? void 0 : r.pkcs7Decryption(v(m({}, e != null ? e : {}), {
1520
+ const t = yield this.getEncryptionCert(), n = yield (r = this.coreInstance) == null ? void 0 : r.pkcs7Decryption(v(E({}, e != null ? e : {}), {
1521
1521
  ContainerName: t == null ? void 0 : t.ContainerName
1522
1522
  })), i = (a = n == null ? void 0 : n[0]) == null ? void 0 : a.DataB64;
1523
1523
  return e.shouldDecodeBase64 ? this.base64Decode({ DataB64: i }) : i;
1524
1524
  }));
1525
- o(this, "pkcs7FileEncryption", (e) => l(this, null, function* () {
1525
+ o(this, "pkcs7FileEncryption", (e) => c(this, null, function* () {
1526
1526
  var i, r;
1527
1527
  const t = yield this.appendCertBase64(e, !1), n = yield (i = this.coreInstance) == null ? void 0 : i.pkcs7FileEncryption(t);
1528
1528
  return (r = n == null ? void 0 : n[0]) == null ? void 0 : r.DataB64;
1529
1529
  }));
1530
- o(this, "pkcs7FileDecryption", (e) => l(this, null, function* () {
1530
+ o(this, "pkcs7FileDecryption", (e) => c(this, null, function* () {
1531
1531
  var i, r, a;
1532
1532
  const t = yield this.getEncryptionCert(), n = yield (r = this.coreInstance) == null ? void 0 : r.pkcs7FileDecryption({
1533
1533
  SrcFile: e.SrcFile,
@@ -1536,30 +1536,30 @@ const $ = class $ {
1536
1536
  });
1537
1537
  return (a = n == null ? void 0 : n[0]) == null ? void 0 : a.DataB64;
1538
1538
  }));
1539
- o(this, "asymmetricEncryption", (e) => l(this, null, function* () {
1539
+ o(this, "asymmetricEncryption", (e) => c(this, null, function* () {
1540
1540
  var i, r;
1541
1541
  const t = yield this.appendCertBase64(e, !1), n = yield (i = this.coreInstance) == null ? void 0 : i.asymmetricEncryption(t);
1542
1542
  return (r = n == null ? void 0 : n[0]) == null ? void 0 : r.Data;
1543
1543
  }));
1544
- o(this, "asymmetricDecryption", (e, t) => l(this, null, function* () {
1544
+ o(this, "asymmetricDecryption", (e, t) => c(this, null, function* () {
1545
1545
  var r, a;
1546
- const n = yield this.getEncryptionCert(t), i = yield (r = this.coreInstance) == null ? void 0 : r.asymmetricDecryption(v(m({}, e != null ? e : {}), {
1546
+ const n = yield this.getEncryptionCert(t), i = yield (r = this.coreInstance) == null ? void 0 : r.asymmetricDecryption(v(E({}, e != null ? e : {}), {
1547
1547
  ContainerName: n == null ? void 0 : n.ContainerName
1548
1548
  }));
1549
1549
  return (a = i == null ? void 0 : i[0]) == null ? void 0 : a.Data;
1550
1550
  }));
1551
- o(this, "sm4Encryption", (e) => l(this, null, function* () {
1551
+ o(this, "sm4Encryption", (e) => c(this, null, function* () {
1552
1552
  var n;
1553
1553
  const t = yield (n = this.coreInstance) == null ? void 0 : n.sm4Encryption(e);
1554
1554
  return t == null ? void 0 : t[0];
1555
1555
  }));
1556
- o(this, "sm4Decryption", (e) => l(this, null, function* () {
1556
+ o(this, "sm4Decryption", (e) => c(this, null, function* () {
1557
1557
  var n, i;
1558
1558
  const t = yield (n = this.coreInstance) == null ? void 0 : n.sm4Decryption(e);
1559
1559
  return (i = t == null ? void 0 : t[0]) == null ? void 0 : i.Data;
1560
1560
  }));
1561
- o(this, "getCertInfo", (e) => l(this, null, function* () {
1562
- var i, r, a, c, d;
1561
+ o(this, "getCertInfo", (e) => c(this, null, function* () {
1562
+ var i, r, a, l, d;
1563
1563
  const t = yield (i = this.coreInstance) == null ? void 0 : i.getCertInfo(e), n = (r = t == null ? void 0 : t[0]) != null ? r : {};
1564
1564
  for (let u = 0; u < ce.length; u++) {
1565
1565
  const C = ce[u];
@@ -1568,33 +1568,33 @@ const $ = class $ {
1568
1568
  Oid: C.oid,
1569
1569
  CertB64: e.CertB64
1570
1570
  });
1571
- n[C.key] = (d = (c = h == null ? void 0 : h[0]) == null ? void 0 : c.OidValue) == null ? void 0 : d.slice(2);
1571
+ n[C.key] = (d = (l = h == null ? void 0 : h[0]) == null ? void 0 : l.OidValue) == null ? void 0 : d.replace(".", "");
1572
1572
  } catch (h) {
1573
1573
  n[C.key] = null;
1574
1574
  }
1575
1575
  }
1576
- return n != null && n.idCardNo ? n != null && n.CertSubject.includes("O") || n.orgCode ? n.certCate = Ge : n.certCate = Fe : n.certCate = Ve, n;
1576
+ return n != null && n.idCardNo ? n != null && n.CertSubject.includes("O=") || n.orgCode ? n.certCate = Ge : n.certCate = Fe : n.certCate = Ve, n;
1577
1577
  }));
1578
- o(this, "getCertInfoByOid", (e) => l(this, null, function* () {
1578
+ o(this, "getCertInfoByOid", (e) => c(this, null, function* () {
1579
1579
  var n, i;
1580
- const t = yield (n = this.coreInstance) == null ? void 0 : n.getCertInfoByOid(m({}, e != null ? e : {}));
1580
+ const t = yield (n = this.coreInstance) == null ? void 0 : n.getCertInfoByOid(E({}, e != null ? e : {}));
1581
1581
  return (i = t == null ? void 0 : t[0]) == null ? void 0 : i.OidValue;
1582
1582
  }));
1583
- o(this, "getSealVendor", (e) => l(this, null, function* () {
1583
+ o(this, "getSealVendor", (e) => c(this, null, function* () {
1584
1584
  var i;
1585
1585
  const t = yield this.getSignatureCert(e), n = yield (i = this.coreInstance) == null ? void 0 : i.getSealVendor({
1586
1586
  ContainerName: t == null ? void 0 : t.ContainerName
1587
1587
  });
1588
1588
  return n == null ? void 0 : n[0];
1589
1589
  }));
1590
- o(this, "deleteAllSealByVendor", (e, t) => l(this, null, function* () {
1590
+ o(this, "deleteAllSealByVendor", (e, t) => c(this, null, function* () {
1591
1591
  var r;
1592
- const n = yield this.getSignatureCert(t), i = yield (r = this.coreInstance) == null ? void 0 : r.deleteAllSealByVendor(v(m({}, e != null ? e : {}), {
1592
+ const n = yield this.getSignatureCert(t), i = yield (r = this.coreInstance) == null ? void 0 : r.deleteAllSealByVendor(v(E({}, e != null ? e : {}), {
1593
1593
  ContainerName: n == null ? void 0 : n.ContainerName
1594
1594
  }));
1595
1595
  return i == null ? void 0 : i[0];
1596
1596
  }));
1597
- o(this, "getUKeyList", (e) => l(this, null, function* () {
1597
+ o(this, "getUKey", (e) => c(this, null, function* () {
1598
1598
  var i;
1599
1599
  if (e) return e;
1600
1600
  const t = yield (i = this.coreInstance) == null ? void 0 : i.getUKeyList();
@@ -1604,27 +1604,31 @@ const $ = class $ {
1604
1604
  columns: Lt
1605
1605
  });
1606
1606
  }));
1607
- o(this, "getUKeyInfo", (e) => l(this, null, function* () {
1607
+ o(this, "getUKeyList", () => c(this, null, function* () {
1608
+ var t;
1609
+ return yield (t = this.coreInstance) == null ? void 0 : t.getUKeyList();
1610
+ }));
1611
+ o(this, "getUKeyInfo", (e) => c(this, null, function* () {
1608
1612
  var i;
1609
- const t = yield this.getUKeyList(e), n = yield (i = this.coreInstance) == null ? void 0 : i.getUKeyInfo({
1613
+ const t = yield this.getUKey(e), n = yield (i = this.coreInstance) == null ? void 0 : i.getUKeyInfo({
1610
1614
  manu: t == null ? void 0 : t.manu,
1611
1615
  sn: t == null ? void 0 : t.sn
1612
1616
  });
1613
1617
  return n == null ? void 0 : n[0];
1614
1618
  }));
1615
- o(this, "applyCert", (e, t) => l(this, null, function* () {
1619
+ o(this, "applyCert", (e, t) => c(this, null, function* () {
1616
1620
  var a;
1617
- const n = yield this.getUKeyList(t), i = yield this.getUKeyInfo(n);
1618
- return yield (a = this.coreInstance) == null ? void 0 : a.applyCert(v(m({}, e != null ? e : {}), {
1621
+ const n = yield this.getUKey(t), i = yield this.getUKeyInfo(n);
1622
+ return yield (a = this.coreInstance) == null ? void 0 : a.applyCert(v(E({}, e != null ? e : {}), {
1619
1623
  manu: i == null ? void 0 : i.manu,
1620
1624
  sn: i == null ? void 0 : i.sn,
1621
1625
  ContainerName: i == null ? void 0 : i.keyid
1622
1626
  }));
1623
1627
  }));
1624
- o(this, "resetPin", (e, t) => l(this, null, function* () {
1628
+ o(this, "resetPin", (e, t) => c(this, null, function* () {
1625
1629
  var r;
1626
1630
  const n = yield this.getSignatureCert(t);
1627
- return yield (r = this.coreInstance) == null ? void 0 : r.resetPin(v(m({}, e != null ? e : {}), {
1631
+ return yield (r = this.coreInstance) == null ? void 0 : r.resetPin(v(E({}, e != null ? e : {}), {
1628
1632
  manu: n == null ? void 0 : n.manu,
1629
1633
  sn: n == null ? void 0 : n.sn,
1630
1634
  ContainerName: n == null ? void 0 : n.ContainerName
@@ -1640,7 +1644,7 @@ function At(s) {
1640
1644
  if (H.instance && !(s != null && s.isCreateNew))
1641
1645
  e(H.instance);
1642
1646
  else {
1643
- const n = new H(v(m({}, s != null ? s : {}), {
1647
+ const n = new H(v(E({}, s != null ? s : {}), {
1644
1648
  onOpen(i) {
1645
1649
  var r;
1646
1650
  e(n), (r = s == null ? void 0 : s.onOpen) == null || r.call(s, i);