@pubinfo-pr/module-pinia-crypto 0.203.4 → 0.203.5

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.
Files changed (2) hide show
  1. package/dist/index.js +118 -114
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,30 +1,31 @@
1
- import { defineIconModule, defineRouteModule } from "pubinfo-pr";
2
- import './index.css';var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __copyProps = (e, t, n, o) => {
3
- if (t && typeof t == "object" || typeof t == "function") for (var c = __getOwnPropNames(t), l = 0, u = c.length, d; l < u; l++) d = c[l], !__hasOwnProp.call(e, d) && d !== n && __defProp(e, d, {
1
+ import { defineIconModule as e, defineRouteModule as t } from "pubinfo-pr";
2
+ import './index.css';//#region \0rolldown/runtime.js
3
+ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescriptor, a = Object.getOwnPropertyNames, o = Object.getPrototypeOf, s = Object.prototype.hasOwnProperty, c = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), l = (e, t, n, o) => {
4
+ if (t && typeof t == "object" || typeof t == "function") for (var c = a(t), l = 0, u = c.length, d; l < u; l++) d = c[l], !s.call(e, d) && d !== n && r(e, d, {
4
5
  get: ((e) => t[e]).bind(null, d),
5
- enumerable: !(o = __getOwnPropDesc(t, d)) || o.enumerable
6
+ enumerable: !(o = i(t, d)) || o.enumerable
6
7
  });
7
8
  return e;
8
- }, __toESM = (e, t, i) => (i = e == null ? {} : __create(__getProtoOf(e)), __copyProps(t || !e || !e.__esModule ? __defProp(i, "default", {
9
+ }, u = (e, t, i) => (i = e == null ? {} : n(o(e)), l(t || !e || !e.__esModule ? r(i, "default", {
9
10
  value: e,
10
11
  enumerable: !0
11
- }) : i, e)), __require = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
12
+ }) : i, e)), d = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
12
13
  if (typeof require < "u") return require.apply(this, arguments);
13
14
  throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
14
- }), _virtual_pubinfo_resolver_default = {
15
+ }), f = {
15
16
  icons: {},
16
17
  layouts: {},
17
18
  pages: {}
18
- }, require___vite_browser_external = /* @__PURE__ */ __commonJSMin(((e, t) => {
19
+ }, p = /* @__PURE__ */ c(((e, t) => {
19
20
  t.exports = {};
20
- })), require_core = /* @__PURE__ */ __commonJSMin(((e, t) => {
21
+ })), m = /* @__PURE__ */ c(((e, t) => {
21
22
  (function(n, r) {
22
23
  typeof e == "object" ? t.exports = e = r() : typeof define == "function" && define.amd ? define([], r) : n.CryptoJS = r();
23
24
  })(e, function() {
24
25
  var e = e || function(e, t) {
25
26
  var n;
26
- if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n && typeof global < "u" && global.crypto && (n = global.crypto), !n && typeof __require == "function") try {
27
- n = require___vite_browser_external();
27
+ if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n && typeof global < "u" && global.crypto && (n = global.crypto), !n && typeof d == "function") try {
28
+ n = p();
28
29
  } catch {}
29
30
  var r = function() {
30
31
  if (n) {
@@ -180,9 +181,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
180
181
  }(Math);
181
182
  return e;
182
183
  });
183
- })), require_x64_core = /* @__PURE__ */ __commonJSMin(((e, t) => {
184
+ })), h = /* @__PURE__ */ c(((e, t) => {
184
185
  (function(n, r) {
185
- typeof e == "object" ? t.exports = e = r(require_core()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
186
+ typeof e == "object" ? t.exports = e = r(m()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
186
187
  })(e, function(e) {
187
188
  return (function(t) {
188
189
  var n = e, r = n.lib, i = r.Base, a = r.WordArray, o = n.x64 = {};
@@ -206,9 +207,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
206
207
  });
207
208
  })(), e;
208
209
  });
209
- })), require_lib_typedarrays = /* @__PURE__ */ __commonJSMin(((e, t) => {
210
+ })), g = /* @__PURE__ */ c(((e, t) => {
210
211
  (function(n, r) {
211
- typeof e == "object" ? t.exports = e = r(require_core()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
212
+ typeof e == "object" ? t.exports = e = r(m()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
212
213
  })(e, function(e) {
213
214
  return (function() {
214
215
  if (typeof ArrayBuffer == "function") {
@@ -222,9 +223,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
222
223
  }
223
224
  })(), e.lib.WordArray;
224
225
  });
225
- })), require_enc_utf16 = /* @__PURE__ */ __commonJSMin(((e, t) => {
226
+ })), _ = /* @__PURE__ */ c(((e, t) => {
226
227
  (function(n, r) {
227
- typeof e == "object" ? t.exports = e = r(require_core()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
228
+ typeof e == "object" ? t.exports = e = r(m()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
228
229
  })(e, function(e) {
229
230
  return (function() {
230
231
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -258,9 +259,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
258
259
  }
259
260
  })(), e.enc.Utf16;
260
261
  });
261
- })), require_enc_base64 = /* @__PURE__ */ __commonJSMin(((e, t) => {
262
+ })), v = /* @__PURE__ */ c(((e, t) => {
262
263
  (function(n, r) {
263
- typeof e == "object" ? t.exports = e = r(require_core()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
264
+ typeof e == "object" ? t.exports = e = r(m()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
264
265
  })(e, function(e) {
265
266
  return (function() {
266
267
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -297,9 +298,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
297
298
  }
298
299
  })(), e.enc.Base64;
299
300
  });
300
- })), require_enc_base64url = /* @__PURE__ */ __commonJSMin(((e, t) => {
301
+ })), y = /* @__PURE__ */ c(((e, t) => {
301
302
  (function(n, r) {
302
- typeof e == "object" ? t.exports = e = r(require_core()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
303
+ typeof e == "object" ? t.exports = e = r(m()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
303
304
  })(e, function(e) {
304
305
  return (function() {
305
306
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -339,9 +340,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
339
340
  }
340
341
  })(), e.enc.Base64url;
341
342
  });
342
- })), require_md5 = /* @__PURE__ */ __commonJSMin(((e, t) => {
343
+ })), b = /* @__PURE__ */ c(((e, t) => {
343
344
  (function(n, r) {
344
- typeof e == "object" ? t.exports = e = r(require_core()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
345
+ typeof e == "object" ? t.exports = e = r(m()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
345
346
  })(e, function(e) {
346
347
  return (function(t) {
347
348
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = [];
@@ -400,9 +401,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
400
401
  n.MD5 = a._createHelper(c), n.HmacMD5 = a._createHmacHelper(c);
401
402
  })(Math), e.MD5;
402
403
  });
403
- })), require_sha1 = /* @__PURE__ */ __commonJSMin(((e, t) => {
404
+ })), x = /* @__PURE__ */ c(((e, t) => {
404
405
  (function(n, r) {
405
- typeof e == "object" ? t.exports = e = r(require_core()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
406
+ typeof e == "object" ? t.exports = e = r(m()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
406
407
  })(e, function(e) {
407
408
  return (function() {
408
409
  var t = e, n = t.lib, r = n.WordArray, i = n.Hasher, a = t.algo, o = [], s = a.SHA1 = i.extend({
@@ -439,9 +440,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
439
440
  t.SHA1 = i._createHelper(s), t.HmacSHA1 = i._createHmacHelper(s);
440
441
  })(), e.SHA1;
441
442
  });
442
- })), require_sha256 = /* @__PURE__ */ __commonJSMin(((e, t) => {
443
+ })), S = /* @__PURE__ */ c(((e, t) => {
443
444
  (function(n, r) {
444
- typeof e == "object" ? t.exports = e = r(require_core()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
445
+ typeof e == "object" ? t.exports = e = r(m()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
445
446
  })(e, function(e) {
446
447
  return (function(t) {
447
448
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = [], c = [];
@@ -483,9 +484,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
483
484
  n.SHA256 = a._createHelper(u), n.HmacSHA256 = a._createHmacHelper(u);
484
485
  })(Math), e.SHA256;
485
486
  });
486
- })), require_sha224 = /* @__PURE__ */ __commonJSMin(((e, t) => {
487
+ })), C = /* @__PURE__ */ c(((e, t) => {
487
488
  (function(n, r, i) {
488
- typeof e == "object" ? t.exports = e = r(require_core(), require_sha256()) : typeof define == "function" && define.amd ? define(["./core", "./sha256"], r) : r(n.CryptoJS);
489
+ typeof e == "object" ? t.exports = e = r(m(), S()) : typeof define == "function" && define.amd ? define(["./core", "./sha256"], r) : r(n.CryptoJS);
489
490
  })(e, function(e) {
490
491
  return (function() {
491
492
  var t = e, n = t.lib.WordArray, r = t.algo, i = r.SHA256, a = r.SHA224 = i.extend({
@@ -509,9 +510,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
509
510
  t.SHA224 = i._createHelper(a), t.HmacSHA224 = i._createHmacHelper(a);
510
511
  })(), e.SHA224;
511
512
  });
512
- })), require_sha512 = /* @__PURE__ */ __commonJSMin(((e, t) => {
513
+ })), w = /* @__PURE__ */ c(((e, t) => {
513
514
  (function(n, r, i) {
514
- typeof e == "object" ? t.exports = e = r(require_core(), require_x64_core()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
515
+ typeof e == "object" ? t.exports = e = r(m(), h()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
515
516
  })(e, function(e) {
516
517
  return (function() {
517
518
  var t = e, n = t.lib.Hasher, r = t.x64, i = r.Word, a = r.WordArray, o = t.algo;
@@ -617,17 +618,17 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
617
618
  ]);
618
619
  },
619
620
  _doProcessBlock: function(e, t) {
620
- for (var n = this._hash.words, r = n[0], i = n[1], a = n[2], o = n[3], s = n[4], u = n[5], d = n[6], f = n[7], p = r.high, m = r.low, h = i.high, g = i.low, _ = a.high, v = a.low, y = o.high, b = o.low, x = s.high, S = s.low, C = u.high, w = u.low, T = d.high, E = d.low, D = f.high, O = f.low, k = p, A = m, j = h, M = g, N = _, P = v, F = y, I = b, L = x, R = S, z = C, B = w, V = T, H = E, ee = D, U = O, W = 0; W < 80; W++) {
621
- var G, K, q = l[W];
622
- if (W < 16) K = q.high = e[t + W * 2] | 0, G = q.low = e[t + W * 2 + 1] | 0;
621
+ for (var n = this._hash.words, r = n[0], i = n[1], a = n[2], o = n[3], s = n[4], u = n[5], d = n[6], f = n[7], p = r.high, m = r.low, h = i.high, g = i.low, _ = a.high, v = a.low, y = o.high, b = o.low, x = s.high, S = s.low, C = u.high, w = u.low, T = d.high, E = d.low, D = f.high, O = f.low, k = p, A = m, j = h, M = g, N = _, P = v, ee = y, F = b, I = x, L = S, R = C, z = w, B = T, V = E, te = D, H = O, U = 0; U < 80; U++) {
622
+ var W, G, K = l[U];
623
+ if (U < 16) G = K.high = e[t + U * 2] | 0, W = K.low = e[t + U * 2 + 1] | 0;
623
624
  else {
624
- var te = l[W - 15], J = te.high, Y = te.low, ne = (J >>> 1 | Y << 31) ^ (J >>> 8 | Y << 24) ^ J >>> 7, re = (Y >>> 1 | J << 31) ^ (Y >>> 8 | J << 24) ^ (Y >>> 7 | J << 25), ie = l[W - 2], X = ie.high, Z = ie.low, ae = (X >>> 19 | Z << 13) ^ (X << 3 | Z >>> 29) ^ X >>> 6, oe = (Z >>> 19 | X << 13) ^ (Z << 3 | X >>> 29) ^ (Z >>> 6 | X << 26), se = l[W - 7], ce = se.high, le = se.low, ue = l[W - 16], de = ue.high, fe = ue.low;
625
- G = re + le, K = ne + ce + (G >>> 0 < re >>> 0 ? 1 : 0), G += oe, K = K + ae + (G >>> 0 < oe >>> 0 ? 1 : 0), G += fe, K = K + de + (G >>> 0 < fe >>> 0 ? 1 : 0), q.high = K, q.low = G;
625
+ var q = l[U - 15], J = q.high, Y = q.low, ne = (J >>> 1 | Y << 31) ^ (J >>> 8 | Y << 24) ^ J >>> 7, re = (Y >>> 1 | J << 31) ^ (Y >>> 8 | J << 24) ^ (Y >>> 7 | J << 25), ie = l[U - 2], X = ie.high, Z = ie.low, ae = (X >>> 19 | Z << 13) ^ (X << 3 | Z >>> 29) ^ X >>> 6, oe = (Z >>> 19 | X << 13) ^ (Z << 3 | X >>> 29) ^ (Z >>> 6 | X << 26), se = l[U - 7], ce = se.high, le = se.low, ue = l[U - 16], de = ue.high, fe = ue.low;
626
+ W = re + le, G = ne + ce + (W >>> 0 < re >>> 0 ? 1 : 0), W += oe, G = G + ae + (W >>> 0 < oe >>> 0 ? 1 : 0), W += fe, G = G + de + (W >>> 0 < fe >>> 0 ? 1 : 0), K.high = G, K.low = W;
626
627
  }
627
- var pe = L & z ^ ~L & V, me = R & B ^ ~R & H, he = k & j ^ k & N ^ j & N, ge = A & M ^ A & P ^ M & P, _e = (k >>> 28 | A << 4) ^ (k << 30 | A >>> 2) ^ (k << 25 | A >>> 7), ve = (A >>> 28 | k << 4) ^ (A << 30 | k >>> 2) ^ (A << 25 | k >>> 7), ye = (L >>> 14 | R << 18) ^ (L >>> 18 | R << 14) ^ (L << 23 | R >>> 9), be = (R >>> 14 | L << 18) ^ (R >>> 18 | L << 14) ^ (R << 23 | L >>> 9), xe = c[W], Se = xe.high, Ce = xe.low, Q = U + be, $ = ee + ye + (Q >>> 0 < U >>> 0 ? 1 : 0), Q = Q + me, $ = $ + pe + (Q >>> 0 < me >>> 0 ? 1 : 0), Q = Q + Ce, $ = $ + Se + (Q >>> 0 < Ce >>> 0 ? 1 : 0), Q = Q + G, $ = $ + K + (Q >>> 0 < G >>> 0 ? 1 : 0), we = ve + ge, Te = _e + he + (we >>> 0 < ve >>> 0 ? 1 : 0);
628
- ee = V, U = H, V = z, H = B, z = L, B = R, R = I + Q | 0, L = F + $ + (R >>> 0 < I >>> 0 ? 1 : 0) | 0, F = N, I = P, N = j, P = M, j = k, M = A, A = Q + we | 0, k = $ + Te + (A >>> 0 < Q >>> 0 ? 1 : 0) | 0;
628
+ var pe = I & R ^ ~I & B, me = L & z ^ ~L & V, he = k & j ^ k & N ^ j & N, ge = A & M ^ A & P ^ M & P, _e = (k >>> 28 | A << 4) ^ (k << 30 | A >>> 2) ^ (k << 25 | A >>> 7), ve = (A >>> 28 | k << 4) ^ (A << 30 | k >>> 2) ^ (A << 25 | k >>> 7), ye = (I >>> 14 | L << 18) ^ (I >>> 18 | L << 14) ^ (I << 23 | L >>> 9), be = (L >>> 14 | I << 18) ^ (L >>> 18 | I << 14) ^ (L << 23 | I >>> 9), xe = c[U], Se = xe.high, Ce = xe.low, Q = H + be, $ = te + ye + (Q >>> 0 < H >>> 0 ? 1 : 0), Q = Q + me, $ = $ + pe + (Q >>> 0 < me >>> 0 ? 1 : 0), Q = Q + Ce, $ = $ + Se + (Q >>> 0 < Ce >>> 0 ? 1 : 0), Q = Q + W, $ = $ + G + (Q >>> 0 < W >>> 0 ? 1 : 0), we = ve + ge, Te = _e + he + (we >>> 0 < ve >>> 0 ? 1 : 0);
629
+ te = B, H = V, B = R, V = z, R = I, z = L, L = F + Q | 0, I = ee + $ + (L >>> 0 < F >>> 0 ? 1 : 0) | 0, ee = N, F = P, N = j, P = M, j = k, M = A, A = Q + we | 0, k = $ + Te + (A >>> 0 < Q >>> 0 ? 1 : 0) | 0;
629
630
  }
630
- m = r.low = m + A, r.high = p + k + (m >>> 0 < A >>> 0 ? 1 : 0), g = i.low = g + M, i.high = h + j + (g >>> 0 < M >>> 0 ? 1 : 0), v = a.low = v + P, a.high = _ + N + (v >>> 0 < P >>> 0 ? 1 : 0), b = o.low = b + I, o.high = y + F + (b >>> 0 < I >>> 0 ? 1 : 0), S = s.low = S + R, s.high = x + L + (S >>> 0 < R >>> 0 ? 1 : 0), w = u.low = w + B, u.high = C + z + (w >>> 0 < B >>> 0 ? 1 : 0), E = d.low = E + H, d.high = T + V + (E >>> 0 < H >>> 0 ? 1 : 0), O = f.low = O + U, f.high = D + ee + (O >>> 0 < U >>> 0 ? 1 : 0);
631
+ m = r.low = m + A, r.high = p + k + (m >>> 0 < A >>> 0 ? 1 : 0), g = i.low = g + M, i.high = h + j + (g >>> 0 < M >>> 0 ? 1 : 0), v = a.low = v + P, a.high = _ + N + (v >>> 0 < P >>> 0 ? 1 : 0), b = o.low = b + F, o.high = y + ee + (b >>> 0 < F >>> 0 ? 1 : 0), S = s.low = S + L, s.high = x + I + (S >>> 0 < L >>> 0 ? 1 : 0), w = u.low = w + z, u.high = C + R + (w >>> 0 < z >>> 0 ? 1 : 0), E = d.low = E + V, d.high = T + B + (E >>> 0 < V >>> 0 ? 1 : 0), O = f.low = O + H, f.high = D + te + (O >>> 0 < H >>> 0 ? 1 : 0);
631
632
  },
632
633
  _doFinalize: function() {
633
634
  var e = this._data, t = e.words, n = this._nDataBytes * 8, r = e.sigBytes * 8;
@@ -642,9 +643,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
642
643
  t.SHA512 = n._createHelper(u), t.HmacSHA512 = n._createHmacHelper(u);
643
644
  })(), e.SHA512;
644
645
  });
645
- })), require_sha384 = /* @__PURE__ */ __commonJSMin(((e, t) => {
646
+ })), T = /* @__PURE__ */ c(((e, t) => {
646
647
  (function(n, r, i) {
647
- typeof e == "object" ? t.exports = e = r(require_core(), require_x64_core(), require_sha512()) : typeof define == "function" && define.amd ? define([
648
+ typeof e == "object" ? t.exports = e = r(m(), h(), w()) : typeof define == "function" && define.amd ? define([
648
649
  "./core",
649
650
  "./x64-core",
650
651
  "./sha512"
@@ -672,9 +673,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
672
673
  t.SHA384 = o._createHelper(s), t.HmacSHA384 = o._createHmacHelper(s);
673
674
  })(), e.SHA384;
674
675
  });
675
- })), require_sha3 = /* @__PURE__ */ __commonJSMin(((e, t) => {
676
+ })), E = /* @__PURE__ */ c(((e, t) => {
676
677
  (function(n, r, i) {
677
- typeof e == "object" ? t.exports = e = r(require_core(), require_x64_core()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
678
+ typeof e == "object" ? t.exports = e = r(m(), h()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
678
679
  })(e, function(e) {
679
680
  return (function(t) {
680
681
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.x64.Word, s = n.algo, c = [], l = [], u = [];
@@ -761,9 +762,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
761
762
  n.SHA3 = a._createHelper(f), n.HmacSHA3 = a._createHmacHelper(f);
762
763
  })(Math), e.SHA3;
763
764
  });
764
- })), require_ripemd160 = /* @__PURE__ */ __commonJSMin(((e, t) => {
765
+ })), D = /* @__PURE__ */ c(((e, t) => {
765
766
  (function(n, r) {
766
- typeof e == "object" ? t.exports = e = r(require_core()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
767
+ typeof e == "object" ? t.exports = e = r(m()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
767
768
  })(e, function(e) {
768
769
  return (function(t) {
769
770
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = i.create([
@@ -1155,9 +1156,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1155
1156
  n.RIPEMD160 = a._createHelper(p), n.HmacRIPEMD160 = a._createHmacHelper(p);
1156
1157
  })(Math), e.RIPEMD160;
1157
1158
  });
1158
- })), require_hmac = /* @__PURE__ */ __commonJSMin(((e, t) => {
1159
+ })), O = /* @__PURE__ */ c(((e, t) => {
1159
1160
  (function(n, r) {
1160
- typeof e == "object" ? t.exports = e = r(require_core()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1161
+ typeof e == "object" ? t.exports = e = r(m()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1161
1162
  })(e, function(e) {
1162
1163
  (function() {
1163
1164
  var t = e, n = t.lib.Base, r = t.enc.Utf8, i = t.algo;
@@ -1183,9 +1184,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1183
1184
  });
1184
1185
  })();
1185
1186
  });
1186
- })), require_pbkdf2 = /* @__PURE__ */ __commonJSMin(((e, t) => {
1187
+ })), k = /* @__PURE__ */ c(((e, t) => {
1187
1188
  (function(n, r, i) {
1188
- typeof e == "object" ? t.exports = e = r(require_core(), require_sha256(), require_hmac()) : typeof define == "function" && define.amd ? define([
1189
+ typeof e == "object" ? t.exports = e = r(m(), S(), O()) : typeof define == "function" && define.amd ? define([
1189
1190
  "./core",
1190
1191
  "./sha256",
1191
1192
  "./hmac"
@@ -1219,9 +1220,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1219
1220
  };
1220
1221
  })(), e.PBKDF2;
1221
1222
  });
1222
- })), require_evpkdf = /* @__PURE__ */ __commonJSMin(((e, t) => {
1223
+ })), A = /* @__PURE__ */ c(((e, t) => {
1223
1224
  (function(n, r, i) {
1224
- typeof e == "object" ? t.exports = e = r(require_core(), require_sha1(), require_hmac()) : typeof define == "function" && define.amd ? define([
1225
+ typeof e == "object" ? t.exports = e = r(m(), x(), O()) : typeof define == "function" && define.amd ? define([
1225
1226
  "./core",
1226
1227
  "./sha1",
1227
1228
  "./hmac"
@@ -1251,9 +1252,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1251
1252
  };
1252
1253
  })(), e.EvpKDF;
1253
1254
  });
1254
- })), require_cipher_core = /* @__PURE__ */ __commonJSMin(((e, t) => {
1255
+ })), j = /* @__PURE__ */ c(((e, t) => {
1255
1256
  (function(n, r, i) {
1256
- typeof e == "object" ? t.exports = e = r(require_core(), require_evpkdf()) : typeof define == "function" && define.amd ? define(["./core", "./evpkdf"], r) : r(n.CryptoJS);
1257
+ typeof e == "object" ? t.exports = e = r(m(), A()) : typeof define == "function" && define.amd ? define(["./core", "./evpkdf"], r) : r(n.CryptoJS);
1257
1258
  })(e, function(e) {
1258
1259
  e.lib.Cipher || function(t) {
1259
1260
  var n = e, r = n.lib, i = r.Base, a = r.WordArray, o = r.BufferedBlockAlgorithm, s = n.enc;
@@ -1430,9 +1431,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1430
1431
  });
1431
1432
  }();
1432
1433
  });
1433
- })), require_mode_cfb = /* @__PURE__ */ __commonJSMin(((e, t) => {
1434
+ })), M = /* @__PURE__ */ c(((e, t) => {
1434
1435
  (function(n, r, i) {
1435
- typeof e == "object" ? t.exports = e = r(require_core(), require_cipher_core()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1436
+ typeof e == "object" ? t.exports = e = r(m(), j()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1436
1437
  })(e, function(e) {
1437
1438
  return e.mode.CFB = function() {
1438
1439
  var t = e.lib.BlockCipherMode.extend();
@@ -1451,9 +1452,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1451
1452
  return t;
1452
1453
  }(), e.mode.CFB;
1453
1454
  });
1454
- })), require_mode_ctr = /* @__PURE__ */ __commonJSMin(((e, t) => {
1455
+ })), N = /* @__PURE__ */ c(((e, t) => {
1455
1456
  (function(n, r, i) {
1456
- typeof e == "object" ? t.exports = e = r(require_core(), require_cipher_core()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1457
+ typeof e == "object" ? t.exports = e = r(m(), j()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1457
1458
  })(e, function(e) {
1458
1459
  return e.mode.CTR = function() {
1459
1460
  var t = e.lib.BlockCipherMode.extend();
@@ -1466,9 +1467,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1466
1467
  } }), t;
1467
1468
  }(), e.mode.CTR;
1468
1469
  });
1469
- })), require_mode_ctr_gladman = /* @__PURE__ */ __commonJSMin(((e, t) => {
1470
+ })), P = /* @__PURE__ */ c(((e, t) => {
1470
1471
  (function(n, r, i) {
1471
- typeof e == "object" ? t.exports = e = r(require_core(), require_cipher_core()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1472
+ typeof e == "object" ? t.exports = e = r(m(), j()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1472
1473
  })(e, function(e) {
1473
1474
  return e.mode.CTRGladman = function() {
1474
1475
  var t = e.lib.BlockCipherMode.extend();
@@ -1491,9 +1492,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1491
1492
  } }), t;
1492
1493
  }(), e.mode.CTRGladman;
1493
1494
  });
1494
- })), require_mode_ofb = /* @__PURE__ */ __commonJSMin(((e, t) => {
1495
+ })), ee = /* @__PURE__ */ c(((e, t) => {
1495
1496
  (function(n, r, i) {
1496
- typeof e == "object" ? t.exports = e = r(require_core(), require_cipher_core()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1497
+ typeof e == "object" ? t.exports = e = r(m(), j()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1497
1498
  })(e, function(e) {
1498
1499
  return e.mode.OFB = function() {
1499
1500
  var t = e.lib.BlockCipherMode.extend();
@@ -1504,9 +1505,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1504
1505
  } }), t;
1505
1506
  }(), e.mode.OFB;
1506
1507
  });
1507
- })), require_mode_ecb = /* @__PURE__ */ __commonJSMin(((e, t) => {
1508
+ })), F = /* @__PURE__ */ c(((e, t) => {
1508
1509
  (function(n, r, i) {
1509
- typeof e == "object" ? t.exports = e = r(require_core(), require_cipher_core()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1510
+ typeof e == "object" ? t.exports = e = r(m(), j()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1510
1511
  })(e, function(e) {
1511
1512
  return e.mode.ECB = function() {
1512
1513
  var t = e.lib.BlockCipherMode.extend();
@@ -1517,9 +1518,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1517
1518
  } }), t;
1518
1519
  }(), e.mode.ECB;
1519
1520
  });
1520
- })), require_pad_ansix923 = /* @__PURE__ */ __commonJSMin(((e, t) => {
1521
+ })), I = /* @__PURE__ */ c(((e, t) => {
1521
1522
  (function(n, r, i) {
1522
- typeof e == "object" ? t.exports = e = r(require_core(), require_cipher_core()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1523
+ typeof e == "object" ? t.exports = e = r(m(), j()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1523
1524
  })(e, function(e) {
1524
1525
  return e.pad.AnsiX923 = {
1525
1526
  pad: function(e, t) {
@@ -1532,9 +1533,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1532
1533
  }
1533
1534
  }, e.pad.Ansix923;
1534
1535
  });
1535
- })), require_pad_iso10126 = /* @__PURE__ */ __commonJSMin(((e, t) => {
1536
+ })), L = /* @__PURE__ */ c(((e, t) => {
1536
1537
  (function(n, r, i) {
1537
- typeof e == "object" ? t.exports = e = r(require_core(), require_cipher_core()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1538
+ typeof e == "object" ? t.exports = e = r(m(), j()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1538
1539
  })(e, function(e) {
1539
1540
  return e.pad.Iso10126 = {
1540
1541
  pad: function(t, n) {
@@ -1547,9 +1548,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1547
1548
  }
1548
1549
  }, e.pad.Iso10126;
1549
1550
  });
1550
- })), require_pad_iso97971 = /* @__PURE__ */ __commonJSMin(((e, t) => {
1551
+ })), R = /* @__PURE__ */ c(((e, t) => {
1551
1552
  (function(n, r, i) {
1552
- typeof e == "object" ? t.exports = e = r(require_core(), require_cipher_core()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1553
+ typeof e == "object" ? t.exports = e = r(m(), j()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1553
1554
  })(e, function(e) {
1554
1555
  return e.pad.Iso97971 = {
1555
1556
  pad: function(t, n) {
@@ -1560,9 +1561,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1560
1561
  }
1561
1562
  }, e.pad.Iso97971;
1562
1563
  });
1563
- })), require_pad_zeropadding = /* @__PURE__ */ __commonJSMin(((e, t) => {
1564
+ })), z = /* @__PURE__ */ c(((e, t) => {
1564
1565
  (function(n, r, i) {
1565
- typeof e == "object" ? t.exports = e = r(require_core(), require_cipher_core()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1566
+ typeof e == "object" ? t.exports = e = r(m(), j()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1566
1567
  })(e, function(e) {
1567
1568
  return e.pad.ZeroPadding = {
1568
1569
  pad: function(e, t) {
@@ -1577,18 +1578,18 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1577
1578
  }
1578
1579
  }, e.pad.ZeroPadding;
1579
1580
  });
1580
- })), require_pad_nopadding = /* @__PURE__ */ __commonJSMin(((e, t) => {
1581
+ })), B = /* @__PURE__ */ c(((e, t) => {
1581
1582
  (function(n, r, i) {
1582
- typeof e == "object" ? t.exports = e = r(require_core(), require_cipher_core()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1583
+ typeof e == "object" ? t.exports = e = r(m(), j()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1583
1584
  })(e, function(e) {
1584
1585
  return e.pad.NoPadding = {
1585
1586
  pad: function() {},
1586
1587
  unpad: function() {}
1587
1588
  }, e.pad.NoPadding;
1588
1589
  });
1589
- })), require_format_hex = /* @__PURE__ */ __commonJSMin(((e, t) => {
1590
+ })), V = /* @__PURE__ */ c(((e, t) => {
1590
1591
  (function(n, r, i) {
1591
- typeof e == "object" ? t.exports = e = r(require_core(), require_cipher_core()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1592
+ typeof e == "object" ? t.exports = e = r(m(), j()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1592
1593
  })(e, function(e) {
1593
1594
  return (function(t) {
1594
1595
  var n = e, r = n.lib.CipherParams, i = n.enc.Hex, a = n.format;
@@ -1603,9 +1604,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1603
1604
  };
1604
1605
  })(), e.format.Hex;
1605
1606
  });
1606
- })), require_aes = /* @__PURE__ */ __commonJSMin(((e, t) => {
1607
+ })), te = /* @__PURE__ */ c(((e, t) => {
1607
1608
  (function(n, r, i) {
1608
- typeof e == "object" ? t.exports = e = r(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()) : typeof define == "function" && define.amd ? define([
1609
+ typeof e == "object" ? t.exports = e = r(m(), v(), b(), A(), j()) : typeof define == "function" && define.amd ? define([
1609
1610
  "./core",
1610
1611
  "./enc-base64",
1611
1612
  "./md5",
@@ -1673,9 +1674,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
1673
1674
  t.AES = n._createHelper(h);
1674
1675
  })(), e.AES;
1675
1676
  });
1676
- })), require_tripledes = /* @__PURE__ */ __commonJSMin(((e, t) => {
1677
+ })), H = /* @__PURE__ */ c(((e, t) => {
1677
1678
  (function(n, r, i) {
1678
- typeof e == "object" ? t.exports = e = r(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()) : typeof define == "function" && define.amd ? define([
1679
+ typeof e == "object" ? t.exports = e = r(m(), v(), b(), A(), j()) : typeof define == "function" && define.amd ? define([
1679
1680
  "./core",
1680
1681
  "./enc-base64",
1681
1682
  "./md5",
@@ -2407,9 +2408,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
2407
2408
  t.TripleDES = i._createHelper(m);
2408
2409
  })(), e.TripleDES;
2409
2410
  });
2410
- })), require_rc4 = /* @__PURE__ */ __commonJSMin(((e, t) => {
2411
+ })), U = /* @__PURE__ */ c(((e, t) => {
2411
2412
  (function(n, r, i) {
2412
- typeof e == "object" ? t.exports = e = r(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()) : typeof define == "function" && define.amd ? define([
2413
+ typeof e == "object" ? t.exports = e = r(m(), v(), b(), A(), j()) : typeof define == "function" && define.amd ? define([
2413
2414
  "./core",
2414
2415
  "./enc-base64",
2415
2416
  "./md5",
@@ -2454,9 +2455,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
2454
2455
  t.RC4Drop = n._createHelper(o);
2455
2456
  })(), e.RC4;
2456
2457
  });
2457
- })), require_rabbit = /* @__PURE__ */ __commonJSMin(((e, t) => {
2458
+ })), W = /* @__PURE__ */ c(((e, t) => {
2458
2459
  (function(n, r, i) {
2459
- typeof e == "object" ? t.exports = e = r(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()) : typeof define == "function" && define.amd ? define([
2460
+ typeof e == "object" ? t.exports = e = r(m(), v(), b(), A(), j()) : typeof define == "function" && define.amd ? define([
2460
2461
  "./core",
2461
2462
  "./enc-base64",
2462
2463
  "./md5",
@@ -2516,9 +2517,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
2516
2517
  t.Rabbit = n._createHelper(s);
2517
2518
  })(), e.Rabbit;
2518
2519
  });
2519
- })), require_rabbit_legacy = /* @__PURE__ */ __commonJSMin(((e, t) => {
2520
+ })), G = /* @__PURE__ */ c(((e, t) => {
2520
2521
  (function(n, r, i) {
2521
- typeof e == "object" ? t.exports = e = r(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()) : typeof define == "function" && define.amd ? define([
2522
+ typeof e == "object" ? t.exports = e = r(m(), v(), b(), A(), j()) : typeof define == "function" && define.amd ? define([
2522
2523
  "./core",
2523
2524
  "./enc-base64",
2524
2525
  "./md5",
@@ -2577,9 +2578,9 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
2577
2578
  t.RabbitLegacy = n._createHelper(s);
2578
2579
  })(), e.RabbitLegacy;
2579
2580
  });
2580
- })), require_blowfish = /* @__PURE__ */ __commonJSMin(((e, t) => {
2581
+ })), K = /* @__PURE__ */ c(((e, t) => {
2581
2582
  (function(n, r, i) {
2582
- typeof e == "object" ? t.exports = e = r(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()) : typeof define == "function" && define.amd ? define([
2583
+ typeof e == "object" ? t.exports = e = r(m(), v(), b(), A(), j()) : typeof define == "function" && define.amd ? define([
2583
2584
  "./core",
2584
2585
  "./enc-base64",
2585
2586
  "./md5",
@@ -3700,31 +3701,31 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
3700
3701
  t.Blowfish = n._createHelper(d);
3701
3702
  })(), e.Blowfish;
3702
3703
  });
3703
- })), import_crypto_js = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
3704
+ })), q = /* @__PURE__ */ u((/* @__PURE__ */ c(((e, t) => {
3704
3705
  (function(n, r, i) {
3705
- typeof e == "object" ? t.exports = e = r(require_core(), require_x64_core(), require_lib_typedarrays(), require_enc_utf16(), require_enc_base64(), require_enc_base64url(), require_md5(), require_sha1(), require_sha256(), require_sha224(), require_sha512(), require_sha384(), require_sha3(), require_ripemd160(), require_hmac(), require_pbkdf2(), require_evpkdf(), require_cipher_core(), require_mode_cfb(), require_mode_ctr(), require_mode_ctr_gladman(), require_mode_ofb(), require_mode_ecb(), require_pad_ansix923(), require_pad_iso10126(), require_pad_iso97971(), require_pad_zeropadding(), require_pad_nopadding(), require_format_hex(), require_aes(), require_tripledes(), require_rc4(), require_rabbit(), require_rabbit_legacy(), require_blowfish()) : typeof define == "function" && define.amd ? define(/* @__PURE__ */ "./core,./x64-core,./lib-typedarrays,./enc-utf16,./enc-base64,./enc-base64url,./md5,./sha1,./sha256,./sha224,./sha512,./sha384,./sha3,./ripemd160,./hmac,./pbkdf2,./evpkdf,./cipher-core,./mode-cfb,./mode-ctr,./mode-ctr-gladman,./mode-ofb,./mode-ecb,./pad-ansix923,./pad-iso10126,./pad-iso97971,./pad-zeropadding,./pad-nopadding,./format-hex,./aes,./tripledes,./rc4,./rabbit,./rabbit-legacy,./blowfish".split(","), r) : n.CryptoJS = r(n.CryptoJS);
3706
+ typeof e == "object" ? t.exports = e = r(m(), h(), g(), _(), v(), y(), b(), x(), S(), C(), w(), T(), E(), D(), O(), k(), A(), j(), M(), N(), P(), ee(), F(), I(), L(), R(), z(), B(), V(), te(), H(), U(), W(), G(), K()) : typeof define == "function" && define.amd ? define(/* @__PURE__ */ "./core,./x64-core,./lib-typedarrays,./enc-utf16,./enc-base64,./enc-base64url,./md5,./sha1,./sha256,./sha224,./sha512,./sha384,./sha3,./ripemd160,./hmac,./pbkdf2,./evpkdf,./cipher-core,./mode-cfb,./mode-ctr,./mode-ctr-gladman,./mode-ofb,./mode-ecb,./pad-ansix923,./pad-iso10126,./pad-iso97971,./pad-zeropadding,./pad-nopadding,./format-hex,./aes,./tripledes,./rc4,./rabbit,./rabbit-legacy,./blowfish".split(","), r) : n.CryptoJS = r(n.CryptoJS);
3706
3707
  })(e, function(e) {
3707
3708
  return e;
3708
3709
  });
3709
- })))()), DEFAULT_SECRET = "pubinfo-pinia-secret", DEFAULT_IV = "pubinfo-pinia-iv";
3710
- function createPiniaAesCipher(e = {}) {
3711
- let { secret: t = DEFAULT_SECRET, iv: n = DEFAULT_IV, mode: r = "cbc" } = e, i = import_crypto_js.default.enc.Utf8.parse(normalizeLength(t, 32)), a = r === "cbc" ? import_crypto_js.default.enc.Utf8.parse(normalizeLength(n, 16)) : void 0, o = r === "ecb" ? import_crypto_js.default.mode.ECB : import_crypto_js.default.mode.CBC, s = () => ({
3710
+ })))()), J = "pubinfo-pinia-secret", Y = "pubinfo-pinia-iv";
3711
+ function ne(e = {}) {
3712
+ let { secret: t = J, iv: n = Y, mode: r = "cbc" } = e, i = q.default.enc.Utf8.parse(re(t, 32)), a = r === "cbc" ? q.default.enc.Utf8.parse(re(n, 16)) : void 0, o = r === "ecb" ? q.default.mode.ECB : q.default.mode.CBC, s = () => ({
3712
3713
  mode: o,
3713
- padding: import_crypto_js.default.pad.Pkcs7,
3714
+ padding: q.default.pad.Pkcs7,
3714
3715
  ...a ? { iv: a } : {}
3715
3716
  });
3716
3717
  return {
3717
- encrypt: ({ value: e }) => import_crypto_js.default.AES.encrypt(e, i, s()).toString(),
3718
+ encrypt: ({ value: e }) => q.default.AES.encrypt(e, i, s()).toString(),
3718
3719
  decrypt: ({ value: e }) => {
3719
- let t = import_crypto_js.default.AES.decrypt(e, i, s()).toString(import_crypto_js.default.enc.Utf8);
3720
- return isLikelyJson(t) ? t : e;
3720
+ let t = q.default.AES.decrypt(e, i, s()).toString(q.default.enc.Utf8);
3721
+ return ie(t) ? t : e;
3721
3722
  }
3722
3723
  };
3723
3724
  }
3724
- function normalizeLength(e, t) {
3725
+ function re(e, t) {
3725
3726
  return e ? e.length === t ? e : e.length > t ? e.slice(0, t) : e.padEnd(t, "0") : "".padEnd(t, "0");
3726
3727
  }
3727
- function isLikelyJson(e) {
3728
+ function ie(e) {
3728
3729
  if (!e) return !1;
3729
3730
  let t = e.trim();
3730
3731
  if (!t) return !1;
@@ -3754,8 +3755,10 @@ function isLikelyJson(e) {
3754
3755
  return !1;
3755
3756
  }
3756
3757
  }
3757
- function createPiniaCryptoRuntime(e = {}) {
3758
- let t = e.enable ?? !0, n = normalizeMatchers(e.include), r = normalizeMatchers(e.exclude), i = e.cipher ?? createPiniaAesCipher({
3758
+ //#endregion
3759
+ //#region src/runtime.ts
3760
+ function X(e = {}) {
3761
+ let t = e.enable ?? !0, n = se(e.include), r = se(e.exclude), i = e.cipher ?? ne({
3759
3762
  secret: e.secret,
3760
3763
  iv: e.iv,
3761
3764
  mode: e.mode
@@ -3763,14 +3766,14 @@ function createPiniaCryptoRuntime(e = {}) {
3763
3766
  return {
3764
3767
  enabled: t,
3765
3768
  cipher: i,
3766
- match: (e) => !(n.length && !n.some((t) => matchStore(t, e)) || r.length && r.some((t) => matchStore(t, e))),
3769
+ match: (e) => !(n.length && !n.some((t) => ce(t, e)) || r.length && r.some((t) => ce(t, e))),
3767
3770
  logError: (e, t, n) => {
3768
3771
  a && console.error(`[pinia-crypto] ${e} failed for store "${t.storeId}"`, n);
3769
3772
  }
3770
3773
  };
3771
3774
  }
3772
- function encryptPayload(e, t) {
3773
- if (!shouldProcess(e, t)) return e;
3775
+ function Z(e, t) {
3776
+ if (!oe(e, t)) return e;
3774
3777
  try {
3775
3778
  let n = t.cipher.encrypt(e);
3776
3779
  typeof n == "string" && (e.value = n);
@@ -3779,8 +3782,8 @@ function encryptPayload(e, t) {
3779
3782
  }
3780
3783
  return e;
3781
3784
  }
3782
- function decryptPayload(e, t) {
3783
- if (!shouldProcess(e, t)) return e;
3785
+ function ae(e, t) {
3786
+ if (!oe(e, t)) return e;
3784
3787
  try {
3785
3788
  let n = t.cipher.decrypt(e);
3786
3789
  typeof n == "string" && (e.value = n);
@@ -3789,25 +3792,26 @@ function decryptPayload(e, t) {
3789
3792
  }
3790
3793
  return e;
3791
3794
  }
3792
- function shouldProcess(e, t) {
3795
+ function oe(e, t) {
3793
3796
  return t.enabled && !!t.cipher && t.match(e);
3794
3797
  }
3795
- function normalizeMatchers(e) {
3798
+ function se(e) {
3796
3799
  return e ? Array.isArray(e) ? e : [e] : [];
3797
3800
  }
3798
- function matchStore(e, t) {
3801
+ function ce(e, t) {
3799
3802
  return typeof e == "string" ? e === t.storeId : e instanceof RegExp ? e.test(t.storeId) : e(t);
3800
3803
  }
3801
- defineRouteModule("pinia-crypto", _virtual_pubinfo_resolver_default.pages), defineIconModule("pinia-crypto", _virtual_pubinfo_resolver_default.icons);
3802
- function piniaCrypto(e = {}) {
3803
- let t = createPiniaCryptoRuntime(e);
3804
+ t("pinia-crypto", f.pages), e("pinia-crypto", f.icons);
3805
+ function le(e = {}) {
3806
+ let t = X(e);
3804
3807
  return {
3805
3808
  name: "pubinfo-pr:pinia-crypto",
3806
3809
  enforce: "pre",
3807
3810
  hooks: {
3808
- "pinia:persist:write": (e) => encryptPayload(e, t),
3809
- "pinia:persist:read": (e) => decryptPayload(e, t)
3811
+ "pinia:persist:write": (e) => Z(e, t),
3812
+ "pinia:persist:read": (e) => ae(e, t)
3810
3813
  }
3811
3814
  };
3812
3815
  }
3813
- export { createPiniaAesCipher, piniaCrypto };
3816
+ //#endregion
3817
+ export { ne as createPiniaAesCipher, le as piniaCrypto };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubinfo-pr/module-pinia-crypto",
3
- "version": "0.203.4",
3
+ "version": "0.203.5",
4
4
  "description": "pubinfo 框架的加密集成",
5
5
  "exports": {
6
6
  ".": {
@@ -20,14 +20,14 @@
20
20
  "node": "^20.19.0 || >=22.12.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "pubinfo-pr": "0.203.4"
23
+ "pubinfo-pr": "0.203.5"
24
24
  },
25
25
  "dependencies": {
26
26
  "crypto-js": "^4.2.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/crypto-js": "^4.2.2",
30
- "pubinfo-pr": "0.203.4"
30
+ "pubinfo-pr": "0.203.5"
31
31
  },
32
32
  "scripts": {
33
33
  "dev": "pubinfo build -w --sourcemap",