qk-pc-ui 3.8.2 → 3.8.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/qk-pc-ui.mjs CHANGED
@@ -1003,7 +1003,7 @@ function eval_fmt(e, r, t, a) {
1003
1003
  n[n.length] = { t: "t", v: l }, ++s;
1004
1004
  break;
1005
1005
  }
1006
- var _ = 0, C = 0, I;
1006
+ var _ = 0, C = 0, B;
1007
1007
  for (s = n.length - 1, o = "t"; s >= 0; --s)
1008
1008
  switch (n[s].t) {
1009
1009
  case "h":
@@ -1011,7 +1011,7 @@ function eval_fmt(e, r, t, a) {
1011
1011
  n[s].t = h, o = "h", _ < 1 && (_ = 1);
1012
1012
  break;
1013
1013
  case "s":
1014
- (I = n[s].v.match(/\.0+$/)) && (C = Math.max(C, I[0].length - 1)), _ < 3 && (_ = 3);
1014
+ (B = n[s].v.match(/\.0+$/)) && (C = Math.max(C, B[0].length - 1)), _ < 3 && (_ = 3);
1015
1015
  /* falls through */
1016
1016
  case "d":
1017
1017
  case "y":
@@ -1037,7 +1037,7 @@ function eval_fmt(e, r, t, a) {
1037
1037
  f.u >= 0.5 && (f.u = 0, ++f.S), f.S >= 60 && (f.S = 0, ++f.M);
1038
1038
  break;
1039
1039
  }
1040
- var F = "", b;
1040
+ var k = "", b;
1041
1041
  for (s = 0; s < n.length; ++s)
1042
1042
  switch (n[s].t) {
1043
1043
  case "t":
@@ -1064,35 +1064,35 @@ function eval_fmt(e, r, t, a) {
1064
1064
  case "?":
1065
1065
  for (b = s + 1; n[b] != null && ((l = n[b].t) === "?" || l === "D" || (l === " " || l === "t") && n[b + 1] != null && (n[b + 1].t === "?" || n[b + 1].t === "t" && n[b + 1].v === "/") || n[s].t === "(" && (l === " " || l === "n" || l === ")") || l === "t" && (n[b].v === "/" || n[b].v === " " && n[b + 1] != null && n[b + 1].t == "?")); )
1066
1066
  n[s].v += n[b].v, n[b] = { v: "", t: ";" }, ++b;
1067
- F += n[s].v, s = b - 1;
1067
+ k += n[s].v, s = b - 1;
1068
1068
  break;
1069
1069
  case "G":
1070
1070
  n[s].t = "t", n[s].v = SSF_general(r, t);
1071
1071
  break;
1072
1072
  }
1073
1073
  var G = "", z, A;
1074
- if (F.length > 0) {
1075
- F.charCodeAt(0) == 40 ? (z = r < 0 && F.charCodeAt(0) === 45 ? -r : r, A = write_num("n", F, z)) : (z = r < 0 && a > 1 ? -r : r, A = write_num("n", F, z), z < 0 && n[0] && n[0].t == "t" && (A = A.substr(1), n[0].v = "-" + n[0].v)), b = A.length - 1;
1076
- var X = n.length;
1074
+ if (k.length > 0) {
1075
+ k.charCodeAt(0) == 40 ? (z = r < 0 && k.charCodeAt(0) === 45 ? -r : r, A = write_num("n", k, z)) : (z = r < 0 && a > 1 ? -r : r, A = write_num("n", k, z), z < 0 && n[0] && n[0].t == "t" && (A = A.substr(1), n[0].v = "-" + n[0].v)), b = A.length - 1;
1076
+ var H = n.length;
1077
1077
  for (s = 0; s < n.length; ++s) if (n[s] != null && n[s].t != "t" && n[s].v.indexOf(".") > -1) {
1078
- X = s;
1078
+ H = s;
1079
1079
  break;
1080
1080
  }
1081
1081
  var S = n.length;
1082
- if (X === n.length && A.indexOf("E") === -1) {
1082
+ if (H === n.length && A.indexOf("E") === -1) {
1083
1083
  for (s = n.length - 1; s >= 0; --s)
1084
1084
  n[s] == null || "n?".indexOf(n[s].t) === -1 || (b >= n[s].v.length - 1 ? (b -= n[s].v.length, n[s].v = A.substr(b + 1, n[s].v.length)) : b < 0 ? n[s].v = "" : (n[s].v = A.substr(0, b + 1), b = -1), n[s].t = "t", S = s);
1085
1085
  b >= 0 && S < n.length && (n[S].v = A.substr(0, b + 1) + n[S].v);
1086
- } else if (X !== n.length && A.indexOf("E") === -1) {
1087
- for (b = A.indexOf(".") - 1, s = X; s >= 0; --s)
1086
+ } else if (H !== n.length && A.indexOf("E") === -1) {
1087
+ for (b = A.indexOf(".") - 1, s = H; s >= 0; --s)
1088
1088
  if (!(n[s] == null || "n?".indexOf(n[s].t) === -1)) {
1089
- for (c = n[s].v.indexOf(".") > -1 && s === X ? n[s].v.indexOf(".") - 1 : n[s].v.length - 1, G = n[s].v.substr(c + 1); c >= 0; --c)
1089
+ for (c = n[s].v.indexOf(".") > -1 && s === H ? n[s].v.indexOf(".") - 1 : n[s].v.length - 1, G = n[s].v.substr(c + 1); c >= 0; --c)
1090
1090
  b >= 0 && (n[s].v.charAt(c) === "0" || n[s].v.charAt(c) === "#") && (G = A.charAt(b--) + G);
1091
1091
  n[s].v = G, n[s].t = "t", S = s;
1092
1092
  }
1093
- for (b >= 0 && S < n.length && (n[S].v = A.substr(0, b + 1) + n[S].v), b = A.indexOf(".") + 1, s = X; s < n.length; ++s)
1094
- if (!(n[s] == null || "n?(".indexOf(n[s].t) === -1 && s !== X)) {
1095
- for (c = n[s].v.indexOf(".") > -1 && s === X ? n[s].v.indexOf(".") + 1 : 0, G = n[s].v.substr(0, c); c < n[s].v.length; ++c)
1093
+ for (b >= 0 && S < n.length && (n[S].v = A.substr(0, b + 1) + n[S].v), b = A.indexOf(".") + 1, s = H; s < n.length; ++s)
1094
+ if (!(n[s] == null || "n?(".indexOf(n[s].t) === -1 && s !== H)) {
1095
+ for (c = n[s].v.indexOf(".") > -1 && s === H ? n[s].v.indexOf(".") + 1 : 0, G = n[s].v.substr(0, c); c < n[s].v.length; ++c)
1096
1096
  b < A.length && (G += A.charAt(b++));
1097
1097
  n[s].v = G, n[s].t = "t", S = s;
1098
1098
  }
@@ -1232,33 +1232,33 @@ var CRC32 = /* @__PURE__ */ function() {
1232
1232
  var e = {};
1233
1233
  e.version = "1.2.0";
1234
1234
  function r() {
1235
- for (var A = 0, X = new Array(256), S = 0; S != 256; ++S)
1236
- A = S, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, X[S] = A;
1237
- return typeof Int32Array < "u" ? new Int32Array(X) : X;
1235
+ for (var A = 0, H = new Array(256), S = 0; S != 256; ++S)
1236
+ A = S, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, H[S] = A;
1237
+ return typeof Int32Array < "u" ? new Int32Array(H) : H;
1238
1238
  }
1239
1239
  var t = r();
1240
1240
  function a(A) {
1241
- var X = 0, S = 0, O = 0, N = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
1242
- for (O = 0; O != 256; ++O) N[O] = A[O];
1241
+ var H = 0, S = 0, O = 0, D = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
1242
+ for (O = 0; O != 256; ++O) D[O] = A[O];
1243
1243
  for (O = 0; O != 256; ++O)
1244
- for (S = A[O], X = 256 + O; X < 4096; X += 256) S = N[X] = S >>> 8 ^ A[S & 255];
1245
- var B = [];
1246
- for (O = 1; O != 16; ++O) B[O - 1] = typeof Int32Array < "u" ? N.subarray(O * 256, O * 256 + 256) : N.slice(O * 256, O * 256 + 256);
1247
- return B;
1248
- }
1249
- var n = a(t), i = n[0], s = n[1], l = n[2], o = n[3], f = n[4], c = n[5], p = n[6], h = n[7], d = n[8], m = n[9], u = n[10], _ = n[11], C = n[12], I = n[13], F = n[14];
1250
- function b(A, X) {
1251
- for (var S = X ^ -1, O = 0, N = A.length; O < N; ) S = S >>> 8 ^ t[(S ^ A.charCodeAt(O++)) & 255];
1244
+ for (S = A[O], H = 256 + O; H < 4096; H += 256) S = D[H] = S >>> 8 ^ A[S & 255];
1245
+ var F = [];
1246
+ for (O = 1; O != 16; ++O) F[O - 1] = typeof Int32Array < "u" ? D.subarray(O * 256, O * 256 + 256) : D.slice(O * 256, O * 256 + 256);
1247
+ return F;
1248
+ }
1249
+ var n = a(t), i = n[0], s = n[1], l = n[2], o = n[3], f = n[4], c = n[5], p = n[6], h = n[7], d = n[8], m = n[9], u = n[10], _ = n[11], C = n[12], B = n[13], k = n[14];
1250
+ function b(A, H) {
1251
+ for (var S = H ^ -1, O = 0, D = A.length; O < D; ) S = S >>> 8 ^ t[(S ^ A.charCodeAt(O++)) & 255];
1252
1252
  return ~S;
1253
1253
  }
1254
- function G(A, X) {
1255
- for (var S = X ^ -1, O = A.length - 15, N = 0; N < O; ) S = F[A[N++] ^ S & 255] ^ I[A[N++] ^ S >> 8 & 255] ^ C[A[N++] ^ S >> 16 & 255] ^ _[A[N++] ^ S >>> 24] ^ u[A[N++]] ^ m[A[N++]] ^ d[A[N++]] ^ h[A[N++]] ^ p[A[N++]] ^ c[A[N++]] ^ f[A[N++]] ^ o[A[N++]] ^ l[A[N++]] ^ s[A[N++]] ^ i[A[N++]] ^ t[A[N++]];
1256
- for (O += 15; N < O; ) S = S >>> 8 ^ t[(S ^ A[N++]) & 255];
1254
+ function G(A, H) {
1255
+ for (var S = H ^ -1, O = A.length - 15, D = 0; D < O; ) S = k[A[D++] ^ S & 255] ^ B[A[D++] ^ S >> 8 & 255] ^ C[A[D++] ^ S >> 16 & 255] ^ _[A[D++] ^ S >>> 24] ^ u[A[D++]] ^ m[A[D++]] ^ d[A[D++]] ^ h[A[D++]] ^ p[A[D++]] ^ c[A[D++]] ^ f[A[D++]] ^ o[A[D++]] ^ l[A[D++]] ^ s[A[D++]] ^ i[A[D++]] ^ t[A[D++]];
1256
+ for (O += 15; D < O; ) S = S >>> 8 ^ t[(S ^ A[D++]) & 255];
1257
1257
  return ~S;
1258
1258
  }
1259
- function z(A, X) {
1260
- for (var S = X ^ -1, O = 0, N = A.length, B = 0, H = 0; O < N; )
1261
- B = A.charCodeAt(O++), B < 128 ? S = S >>> 8 ^ t[(S ^ B) & 255] : B < 2048 ? (S = S >>> 8 ^ t[(S ^ (192 | B >> 6 & 31)) & 255], S = S >>> 8 ^ t[(S ^ (128 | B & 63)) & 255]) : B >= 55296 && B < 57344 ? (B = (B & 1023) + 64, H = A.charCodeAt(O++) & 1023, S = S >>> 8 ^ t[(S ^ (240 | B >> 8 & 7)) & 255], S = S >>> 8 ^ t[(S ^ (128 | B >> 2 & 63)) & 255], S = S >>> 8 ^ t[(S ^ (128 | H >> 6 & 15 | (B & 3) << 4)) & 255], S = S >>> 8 ^ t[(S ^ (128 | H & 63)) & 255]) : (S = S >>> 8 ^ t[(S ^ (224 | B >> 12 & 15)) & 255], S = S >>> 8 ^ t[(S ^ (128 | B >> 6 & 63)) & 255], S = S >>> 8 ^ t[(S ^ (128 | B & 63)) & 255]);
1259
+ function z(A, H) {
1260
+ for (var S = H ^ -1, O = 0, D = A.length, F = 0, R = 0; O < D; )
1261
+ F = A.charCodeAt(O++), F < 128 ? S = S >>> 8 ^ t[(S ^ F) & 255] : F < 2048 ? (S = S >>> 8 ^ t[(S ^ (192 | F >> 6 & 31)) & 255], S = S >>> 8 ^ t[(S ^ (128 | F & 63)) & 255]) : F >= 55296 && F < 57344 ? (F = (F & 1023) + 64, R = A.charCodeAt(O++) & 1023, S = S >>> 8 ^ t[(S ^ (240 | F >> 8 & 7)) & 255], S = S >>> 8 ^ t[(S ^ (128 | F >> 2 & 63)) & 255], S = S >>> 8 ^ t[(S ^ (128 | R >> 6 & 15 | (F & 3) << 4)) & 255], S = S >>> 8 ^ t[(S ^ (128 | R & 63)) & 255]) : (S = S >>> 8 ^ t[(S ^ (224 | F >> 12 & 15)) & 255], S = S >>> 8 ^ t[(S ^ (128 | F >> 6 & 63)) & 255], S = S >>> 8 ^ t[(S ^ (128 | F & 63)) & 255]);
1262
1262
  return ~S;
1263
1263
  }
1264
1264
  return e.table = t, e.bstr = b, e.buf = G, e.str = z, e;
@@ -1266,9 +1266,9 @@ var CRC32 = /* @__PURE__ */ function() {
1266
1266
  var r = {};
1267
1267
  r.version = "1.2.1";
1268
1268
  function t(x, v) {
1269
- for (var g = x.split("/"), w = v.split("/"), T = 0, y = 0, V = Math.min(g.length, w.length); T < V; ++T) {
1270
- if (y = g[T].length - w[T].length) return y;
1271
- if (g[T] != w[T]) return g[T] < w[T] ? -1 : 1;
1269
+ for (var g = x.split("/"), w = v.split("/"), y = 0, T = 0, U = Math.min(g.length, w.length); y < U; ++y) {
1270
+ if (T = g[y].length - w[y].length) return T;
1271
+ if (g[y] != w[y]) return g[y] < w[y] ? -1 : 1;
1272
1272
  }
1273
1273
  return g.length - w.length;
1274
1274
  }
@@ -1290,14 +1290,14 @@ var CRC32 = /* @__PURE__ */ function() {
1290
1290
  w = w << 4 | v.getMonth() + 1, w = w << 5 | v.getDate(), x.write_shift(2, w);
1291
1291
  }
1292
1292
  function s(x) {
1293
- var v = x.read_shift(2) & 65535, g = x.read_shift(2) & 65535, w = /* @__PURE__ */ new Date(), T = g & 31;
1293
+ var v = x.read_shift(2) & 65535, g = x.read_shift(2) & 65535, w = /* @__PURE__ */ new Date(), y = g & 31;
1294
1294
  g >>>= 5;
1295
- var y = g & 15;
1296
- g >>>= 4, w.setMilliseconds(0), w.setFullYear(g + 1980), w.setMonth(y - 1), w.setDate(T);
1297
- var V = v & 31;
1295
+ var T = g & 15;
1296
+ g >>>= 4, w.setMilliseconds(0), w.setFullYear(g + 1980), w.setMonth(T - 1), w.setDate(y);
1297
+ var U = v & 31;
1298
1298
  v >>>= 5;
1299
- var j = v & 63;
1300
- return v >>>= 6, w.setHours(v), w.setMinutes(j), w.setSeconds(V << 1), w;
1299
+ var K = v & 63;
1300
+ return v >>>= 6, w.setHours(v), w.setMinutes(K), w.setSeconds(U << 1), w;
1301
1301
  }
1302
1302
  function l(x) {
1303
1303
  prep_blob(x, 0);
@@ -1305,14 +1305,14 @@ var CRC32 = /* @__PURE__ */ function() {
1305
1305
  /*::(*/
1306
1306
  {}
1307
1307
  ), g = 0; x.l <= x.length - 4; ) {
1308
- var w = x.read_shift(2), T = x.read_shift(2), y = x.l + T, V = {};
1308
+ var w = x.read_shift(2), y = x.read_shift(2), T = x.l + y, U = {};
1309
1309
  switch (w) {
1310
1310
  /* UNIX-style Timestamps */
1311
1311
  case 21589:
1312
- g = x.read_shift(1), g & 1 && (V.mtime = x.read_shift(4)), T > 5 && (g & 2 && (V.atime = x.read_shift(4)), g & 4 && (V.ctime = x.read_shift(4))), V.mtime && (V.mt = new Date(V.mtime * 1e3));
1312
+ g = x.read_shift(1), g & 1 && (U.mtime = x.read_shift(4)), y > 5 && (g & 2 && (U.atime = x.read_shift(4)), g & 4 && (U.ctime = x.read_shift(4))), U.mtime && (U.mt = new Date(U.mtime * 1e3));
1313
1313
  break;
1314
1314
  }
1315
- x.l = y, v[w] = V;
1315
+ x.l = T, v[w] = U;
1316
1316
  }
1317
1317
  return v;
1318
1318
  }
@@ -1324,12 +1324,12 @@ var CRC32 = /* @__PURE__ */ function() {
1324
1324
  if (x[0] == 80 && x[1] == 75) return Je(x, v);
1325
1325
  if ((x[0] | 32) == 109 && (x[1] | 32) == 105) return lt(x, v);
1326
1326
  if (x.length < 512) throw new Error("CFB file size " + x.length + " < 512");
1327
- var g = 3, w = 512, T = 0, y = 0, V = 0, j = 0, R = 0, U = [], W = (
1327
+ var g = 3, w = 512, y = 0, T = 0, U = 0, K = 0, M = 0, W = [], X = (
1328
1328
  /*::(*/
1329
1329
  x.slice(0, 512)
1330
1330
  );
1331
- prep_blob(W, 0);
1332
- var Y = p(W);
1331
+ prep_blob(X, 0);
1332
+ var Y = p(X);
1333
1333
  switch (g = Y[0], g) {
1334
1334
  case 3:
1335
1335
  w = 512;
@@ -1343,34 +1343,34 @@ var CRC32 = /* @__PURE__ */ function() {
1343
1343
  default:
1344
1344
  throw new Error("Major Version: Expected 3 or 4 saw " + g);
1345
1345
  }
1346
- w !== 512 && (W = /*::(*/
1346
+ w !== 512 && (X = /*::(*/
1347
1347
  x.slice(0, w), prep_blob(
1348
- W,
1348
+ X,
1349
1349
  28
1350
1350
  /* blob.l */
1351
1351
  ));
1352
1352
  var q = x.slice(0, w);
1353
- h(W, g);
1354
- var ee = W.read_shift(4, "i");
1353
+ h(X, g);
1354
+ var ee = X.read_shift(4, "i");
1355
1355
  if (g === 3 && ee !== 0) throw new Error("# Directory Sectors: Expected 0 saw " + ee);
1356
- W.l += 4, V = W.read_shift(4, "i"), W.l += 4, W.chk("00100000", "Mini Stream Cutoff Size: "), j = W.read_shift(4, "i"), T = W.read_shift(4, "i"), R = W.read_shift(4, "i"), y = W.read_shift(4, "i");
1357
- for (var J = -1, Q = 0; Q < 109 && (J = W.read_shift(4, "i"), !(J < 0)); ++Q)
1358
- U[Q] = J;
1356
+ X.l += 4, U = X.read_shift(4, "i"), X.l += 4, X.chk("00100000", "Mini Stream Cutoff Size: "), K = X.read_shift(4, "i"), y = X.read_shift(4, "i"), M = X.read_shift(4, "i"), T = X.read_shift(4, "i");
1357
+ for (var J = -1, Q = 0; Q < 109 && (J = X.read_shift(4, "i"), !(J < 0)); ++Q)
1358
+ W[Q] = J;
1359
1359
  var oe = d(x, w);
1360
- _(R, y, oe, w, U);
1361
- var _e = I(oe, V, U, w);
1362
- _e[V].name = "!Directory", T > 0 && j !== H && (_e[j].name = "!MiniFAT"), _e[U[0]].name = "!FAT", _e.fat_addrs = U, _e.ssz = w;
1363
- var pe = {}, we = [], Be = [], De = [];
1364
- F(V, _e, oe, we, T, pe, Be, j), m(Be, De, we), we.shift();
1360
+ _(M, T, oe, w, W);
1361
+ var _e = B(oe, U, W, w);
1362
+ _e[U].name = "!Directory", y > 0 && K !== R && (_e[K].name = "!MiniFAT"), _e[W[0]].name = "!FAT", _e.fat_addrs = W, _e.ssz = w;
1363
+ var pe = {}, we = [], Ie = [], De = [];
1364
+ k(U, _e, oe, we, y, pe, Ie, K), m(Ie, De, we), we.shift();
1365
1365
  var Le = {
1366
- FileIndex: Be,
1366
+ FileIndex: Ie,
1367
1367
  FullPaths: De
1368
1368
  };
1369
1369
  return v && v.raw && (Le.raw = { header: q, sectors: oe }), Le;
1370
1370
  }
1371
1371
  function p(x) {
1372
1372
  if (x[x.l] == 80 && x[x.l + 1] == 75) return [0, 0];
1373
- x.chk(ae, "Header Signature: "), x.l += 16;
1373
+ x.chk(te, "Header Signature: "), x.l += 16;
1374
1374
  var v = x.read_shift(2, "u");
1375
1375
  return [x.read_shift(2, "u"), v];
1376
1376
  }
@@ -1389,78 +1389,78 @@ var CRC32 = /* @__PURE__ */ function() {
1389
1389
  x.chk("0600", "Mini Sector Shift: "), x.chk("000000000000", "Reserved: ");
1390
1390
  }
1391
1391
  function d(x, v) {
1392
- for (var g = Math.ceil(x.length / v) - 1, w = [], T = 1; T < g; ++T) w[T - 1] = x.slice(T * v, (T + 1) * v);
1392
+ for (var g = Math.ceil(x.length / v) - 1, w = [], y = 1; y < g; ++y) w[y - 1] = x.slice(y * v, (y + 1) * v);
1393
1393
  return w[g - 1] = x.slice(g * v), w;
1394
1394
  }
1395
1395
  function m(x, v, g) {
1396
- for (var w = 0, T = 0, y = 0, V = 0, j = 0, R = g.length, U = [], W = []; w < R; ++w)
1397
- U[w] = W[w] = w, v[w] = g[w];
1398
- for (; j < W.length; ++j)
1399
- w = W[j], T = x[w].L, y = x[w].R, V = x[w].C, U[w] === w && (T !== -1 && U[T] !== T && (U[w] = U[T]), y !== -1 && U[y] !== y && (U[w] = U[y])), V !== -1 && (U[V] = w), T !== -1 && w != U[w] && (U[T] = U[w], W.lastIndexOf(T) < j && W.push(T)), y !== -1 && w != U[w] && (U[y] = U[w], W.lastIndexOf(y) < j && W.push(y));
1400
- for (w = 1; w < R; ++w) U[w] === w && (y !== -1 && U[y] !== y ? U[w] = U[y] : T !== -1 && U[T] !== T && (U[w] = U[T]));
1401
- for (w = 1; w < R; ++w)
1396
+ for (var w = 0, y = 0, T = 0, U = 0, K = 0, M = g.length, W = [], X = []; w < M; ++w)
1397
+ W[w] = X[w] = w, v[w] = g[w];
1398
+ for (; K < X.length; ++K)
1399
+ w = X[K], y = x[w].L, T = x[w].R, U = x[w].C, W[w] === w && (y !== -1 && W[y] !== y && (W[w] = W[y]), T !== -1 && W[T] !== T && (W[w] = W[T])), U !== -1 && (W[U] = w), y !== -1 && w != W[w] && (W[y] = W[w], X.lastIndexOf(y) < K && X.push(y)), T !== -1 && w != W[w] && (W[T] = W[w], X.lastIndexOf(T) < K && X.push(T));
1400
+ for (w = 1; w < M; ++w) W[w] === w && (T !== -1 && W[T] !== T ? W[w] = W[T] : y !== -1 && W[y] !== y && (W[w] = W[y]));
1401
+ for (w = 1; w < M; ++w)
1402
1402
  if (x[w].type !== 0) {
1403
- if (j = w, j != U[j]) do
1404
- j = U[j], v[w] = v[j] + "/" + v[w];
1405
- while (j !== 0 && U[j] !== -1 && j != U[j]);
1406
- U[w] = -1;
1403
+ if (K = w, K != W[K]) do
1404
+ K = W[K], v[w] = v[K] + "/" + v[w];
1405
+ while (K !== 0 && W[K] !== -1 && K != W[K]);
1406
+ W[w] = -1;
1407
1407
  }
1408
- for (v[0] += "/", w = 1; w < R; ++w)
1408
+ for (v[0] += "/", w = 1; w < M; ++w)
1409
1409
  x[w].type !== 2 && (v[w] += "/");
1410
1410
  }
1411
1411
  function u(x, v, g) {
1412
- for (var w = x.start, T = x.size, y = [], V = w; g && T > 0 && V >= 0; )
1413
- y.push(v.slice(V * B, V * B + B)), T -= B, V = __readInt32LE(g, V * 4);
1414
- return y.length === 0 ? new_buf(0) : bconcat(y).slice(0, x.size);
1412
+ for (var w = x.start, y = x.size, T = [], U = w; g && y > 0 && U >= 0; )
1413
+ T.push(v.slice(U * F, U * F + F)), y -= F, U = __readInt32LE(g, U * 4);
1414
+ return T.length === 0 ? new_buf(0) : bconcat(T).slice(0, x.size);
1415
1415
  }
1416
- function _(x, v, g, w, T) {
1417
- var y = H;
1418
- if (x === H) {
1416
+ function _(x, v, g, w, y) {
1417
+ var T = R;
1418
+ if (x === R) {
1419
1419
  if (v !== 0) throw new Error("DIFAT chain shorter than expected");
1420
1420
  } else if (x !== -1) {
1421
- var V = g[x], j = (w >>> 2) - 1;
1422
- if (!V) return;
1423
- for (var R = 0; R < j && (y = __readInt32LE(V, R * 4)) !== H; ++R)
1424
- T.push(y);
1425
- _(__readInt32LE(V, w - 4), v - 1, g, w, T);
1421
+ var U = g[x], K = (w >>> 2) - 1;
1422
+ if (!U) return;
1423
+ for (var M = 0; M < K && (T = __readInt32LE(U, M * 4)) !== R; ++M)
1424
+ y.push(T);
1425
+ _(__readInt32LE(U, w - 4), v - 1, g, w, y);
1426
1426
  }
1427
1427
  }
1428
- function C(x, v, g, w, T) {
1429
- var y = [], V = [];
1430
- T || (T = []);
1431
- var j = w - 1, R = 0, U = 0;
1432
- for (R = v; R >= 0; ) {
1433
- T[R] = !0, y[y.length] = R, V.push(x[R]);
1434
- var W = g[Math.floor(R * 4 / w)];
1435
- if (U = R * 4 & j, w < 4 + U) throw new Error("FAT boundary crossed: " + R + " 4 " + w);
1436
- if (!x[W]) break;
1437
- R = __readInt32LE(x[W], U);
1428
+ function C(x, v, g, w, y) {
1429
+ var T = [], U = [];
1430
+ y || (y = []);
1431
+ var K = w - 1, M = 0, W = 0;
1432
+ for (M = v; M >= 0; ) {
1433
+ y[M] = !0, T[T.length] = M, U.push(x[M]);
1434
+ var X = g[Math.floor(M * 4 / w)];
1435
+ if (W = M * 4 & K, w < 4 + W) throw new Error("FAT boundary crossed: " + M + " 4 " + w);
1436
+ if (!x[X]) break;
1437
+ M = __readInt32LE(x[X], W);
1438
1438
  }
1439
- return { nodes: y, data: __toBuffer([V]) };
1439
+ return { nodes: T, data: __toBuffer([U]) };
1440
1440
  }
1441
- function I(x, v, g, w) {
1442
- var T = x.length, y = [], V = [], j = [], R = [], U = w - 1, W = 0, Y = 0, q = 0, ee = 0;
1443
- for (W = 0; W < T; ++W)
1444
- if (j = [], q = W + v, q >= T && (q -= T), !V[q]) {
1445
- R = [];
1441
+ function B(x, v, g, w) {
1442
+ var y = x.length, T = [], U = [], K = [], M = [], W = w - 1, X = 0, Y = 0, q = 0, ee = 0;
1443
+ for (X = 0; X < y; ++X)
1444
+ if (K = [], q = X + v, q >= y && (q -= y), !U[q]) {
1445
+ M = [];
1446
1446
  var J = [];
1447
1447
  for (Y = q; Y >= 0; ) {
1448
- J[Y] = !0, V[Y] = !0, j[j.length] = Y, R.push(x[Y]);
1448
+ J[Y] = !0, U[Y] = !0, K[K.length] = Y, M.push(x[Y]);
1449
1449
  var Q = g[Math.floor(Y * 4 / w)];
1450
- if (ee = Y * 4 & U, w < 4 + ee) throw new Error("FAT boundary crossed: " + Y + " 4 " + w);
1450
+ if (ee = Y * 4 & W, w < 4 + ee) throw new Error("FAT boundary crossed: " + Y + " 4 " + w);
1451
1451
  if (!x[Q] || (Y = __readInt32LE(x[Q], ee), J[Y])) break;
1452
1452
  }
1453
- y[q] = { nodes: j, data: __toBuffer([R]) };
1453
+ T[q] = { nodes: K, data: __toBuffer([M]) };
1454
1454
  }
1455
- return y;
1455
+ return T;
1456
1456
  }
1457
- function F(x, v, g, w, T, y, V, j) {
1458
- for (var R = 0, U = w.length ? 2 : 0, W = v[x].data, Y = 0, q = 0, ee; Y < W.length; Y += 128) {
1457
+ function k(x, v, g, w, y, T, U, K) {
1458
+ for (var M = 0, W = w.length ? 2 : 0, X = v[x].data, Y = 0, q = 0, ee; Y < X.length; Y += 128) {
1459
1459
  var J = (
1460
1460
  /*::(*/
1461
- W.slice(Y, Y + 128)
1461
+ X.slice(Y, Y + 128)
1462
1462
  );
1463
- prep_blob(J, 64), q = J.read_shift(2), ee = __utf16le(J, 0, q - U), w.push(ee);
1463
+ prep_blob(J, 64), q = J.read_shift(2), ee = __utf16le(J, 0, q - W), w.push(ee);
1464
1464
  var Q = {
1465
1465
  name: ee,
1466
1466
  type: J.read_shift(1),
@@ -1475,7 +1475,7 @@ var CRC32 = /* @__PURE__ */ function() {
1475
1475
  }, oe = J.read_shift(2) + J.read_shift(2) + J.read_shift(2) + J.read_shift(2);
1476
1476
  oe !== 0 && (Q.ct = b(J, J.l - 8));
1477
1477
  var _e = J.read_shift(2) + J.read_shift(2) + J.read_shift(2) + J.read_shift(2);
1478
- _e !== 0 && (Q.mt = b(J, J.l - 8)), Q.start = J.read_shift(4, "i"), Q.size = J.read_shift(4, "i"), Q.size < 0 && Q.start < 0 && (Q.size = Q.type = 0, Q.start = H, Q.name = ""), Q.type === 5 ? (R = Q.start, T > 0 && R !== H && (v[R].name = "!StreamData")) : Q.size >= 4096 ? (Q.storage = "fat", v[Q.start] === void 0 && (v[Q.start] = C(g, Q.start, v.fat_addrs, v.ssz)), v[Q.start].name = Q.name, Q.content = v[Q.start].data.slice(0, Q.size)) : (Q.storage = "minifat", Q.size < 0 ? Q.size = 0 : R !== H && Q.start !== H && v[R] && (Q.content = u(Q, v[R].data, (v[j] || {}).data))), Q.content && prep_blob(Q.content, 0), y[ee] = Q, V.push(Q);
1478
+ _e !== 0 && (Q.mt = b(J, J.l - 8)), Q.start = J.read_shift(4, "i"), Q.size = J.read_shift(4, "i"), Q.size < 0 && Q.start < 0 && (Q.size = Q.type = 0, Q.start = R, Q.name = ""), Q.type === 5 ? (M = Q.start, y > 0 && M !== R && (v[M].name = "!StreamData")) : Q.size >= 4096 ? (Q.storage = "fat", v[Q.start] === void 0 && (v[Q.start] = C(g, Q.start, v.fat_addrs, v.ssz)), v[Q.start].name = Q.name, Q.content = v[Q.start].data.slice(0, Q.size)) : (Q.storage = "minifat", Q.size < 0 ? Q.size = 0 : M !== R && Q.start !== R && v[M] && (Q.content = u(Q, v[M].data, (v[K] || {}).data))), Q.content && prep_blob(Q.content, 0), T[ee] = Q, U.push(Q);
1479
1479
  }
1480
1480
  }
1481
1481
  function b(x, v) {
@@ -1503,9 +1503,9 @@ var CRC32 = /* @__PURE__ */ function() {
1503
1503
  function A(x, v) {
1504
1504
  var g = v || {}, w = g.root || "Root Entry";
1505
1505
  if (x.FullPaths || (x.FullPaths = []), x.FileIndex || (x.FileIndex = []), x.FullPaths.length !== x.FileIndex.length) throw new Error("inconsistent CFB structure");
1506
- x.FullPaths.length === 0 && (x.FullPaths[0] = w + "/", x.FileIndex[0] = { name: w, type: 5 }), g.CLSID && (x.FileIndex[0].clsid = g.CLSID), X(x);
1506
+ x.FullPaths.length === 0 && (x.FullPaths[0] = w + "/", x.FileIndex[0] = { name: w, type: 5 }), g.CLSID && (x.FileIndex[0].clsid = g.CLSID), H(x);
1507
1507
  }
1508
- function X(x) {
1508
+ function H(x) {
1509
1509
  var v = "Sh33tJ5";
1510
1510
  if (!CFB.find(x, "/" + v)) {
1511
1511
  var g = new_buf(4);
@@ -1514,16 +1514,16 @@ var CRC32 = /* @__PURE__ */ function() {
1514
1514
  }
1515
1515
  function S(x, v) {
1516
1516
  A(x);
1517
- for (var g = !1, w = !1, T = x.FullPaths.length - 1; T >= 0; --T) {
1518
- var y = x.FileIndex[T];
1519
- switch (y.type) {
1517
+ for (var g = !1, w = !1, y = x.FullPaths.length - 1; y >= 0; --y) {
1518
+ var T = x.FileIndex[y];
1519
+ switch (T.type) {
1520
1520
  case 0:
1521
1521
  w ? g = !0 : (x.FileIndex.pop(), x.FullPaths.pop());
1522
1522
  break;
1523
1523
  case 1:
1524
1524
  case 2:
1525
1525
  case 5:
1526
- w = !0, isNaN(y.R * y.L * y.C) && (g = !0), y.R > -1 && y.L > -1 && y.R == y.L && (g = !0);
1526
+ w = !0, isNaN(T.R * T.L * T.C) && (g = !0), T.R > -1 && T.L > -1 && T.R == T.L && (g = !0);
1527
1527
  break;
1528
1528
  default:
1529
1529
  g = !0;
@@ -1531,34 +1531,34 @@ var CRC32 = /* @__PURE__ */ function() {
1531
1531
  }
1532
1532
  }
1533
1533
  if (!(!g && !v)) {
1534
- var V = new Date(1987, 1, 19), j = 0, R = Object.create ? /* @__PURE__ */ Object.create(null) : {}, U = [];
1535
- for (T = 0; T < x.FullPaths.length; ++T)
1536
- R[x.FullPaths[T]] = !0, x.FileIndex[T].type !== 0 && U.push([x.FullPaths[T], x.FileIndex[T]]);
1537
- for (T = 0; T < U.length; ++T) {
1538
- var W = a(U[T][0]);
1539
- w = R[W], w || (U.push([W, {
1540
- name: n(W).replace("/", ""),
1534
+ var U = new Date(1987, 1, 19), K = 0, M = Object.create ? /* @__PURE__ */ Object.create(null) : {}, W = [];
1535
+ for (y = 0; y < x.FullPaths.length; ++y)
1536
+ M[x.FullPaths[y]] = !0, x.FileIndex[y].type !== 0 && W.push([x.FullPaths[y], x.FileIndex[y]]);
1537
+ for (y = 0; y < W.length; ++y) {
1538
+ var X = a(W[y][0]);
1539
+ w = M[X], w || (W.push([X, {
1540
+ name: n(X).replace("/", ""),
1541
1541
  type: 1,
1542
1542
  clsid: ce,
1543
- ct: V,
1544
- mt: V,
1543
+ ct: U,
1544
+ mt: U,
1545
1545
  content: null
1546
- }]), R[W] = !0);
1546
+ }]), M[X] = !0);
1547
1547
  }
1548
- for (U.sort(function(ee, J) {
1548
+ for (W.sort(function(ee, J) {
1549
1549
  return t(ee[0], J[0]);
1550
- }), x.FullPaths = [], x.FileIndex = [], T = 0; T < U.length; ++T)
1551
- x.FullPaths[T] = U[T][0], x.FileIndex[T] = U[T][1];
1552
- for (T = 0; T < U.length; ++T) {
1553
- var Y = x.FileIndex[T], q = x.FullPaths[T];
1554
- if (Y.name = n(q).replace("/", ""), Y.L = Y.R = Y.C = -(Y.color = 1), Y.size = Y.content ? Y.content.length : 0, Y.start = 0, Y.clsid = Y.clsid || ce, T === 0)
1555
- Y.C = U.length > 1 ? 1 : -1, Y.size = 0, Y.type = 5;
1550
+ }), x.FullPaths = [], x.FileIndex = [], y = 0; y < W.length; ++y)
1551
+ x.FullPaths[y] = W[y][0], x.FileIndex[y] = W[y][1];
1552
+ for (y = 0; y < W.length; ++y) {
1553
+ var Y = x.FileIndex[y], q = x.FullPaths[y];
1554
+ if (Y.name = n(q).replace("/", ""), Y.L = Y.R = Y.C = -(Y.color = 1), Y.size = Y.content ? Y.content.length : 0, Y.start = 0, Y.clsid = Y.clsid || ce, y === 0)
1555
+ Y.C = W.length > 1 ? 1 : -1, Y.size = 0, Y.type = 5;
1556
1556
  else if (q.slice(-1) == "/") {
1557
- for (j = T + 1; j < U.length && a(x.FullPaths[j]) != q; ++j) ;
1558
- for (Y.C = j >= U.length ? -1 : j, j = T + 1; j < U.length && a(x.FullPaths[j]) != a(q); ++j) ;
1559
- Y.R = j >= U.length ? -1 : j, Y.type = 1;
1557
+ for (K = y + 1; K < W.length && a(x.FullPaths[K]) != q; ++K) ;
1558
+ for (Y.C = K >= W.length ? -1 : K, K = y + 1; K < W.length && a(x.FullPaths[K]) != a(q); ++K) ;
1559
+ Y.R = K >= W.length ? -1 : K, Y.type = 1;
1560
1560
  } else
1561
- a(x.FullPaths[T + 1] || "") == a(q) && (Y.R = T + 1), Y.type = 2;
1561
+ a(x.FullPaths[y + 1] || "") == a(q) && (Y.R = y + 1), Y.type = 2;
1562
1562
  }
1563
1563
  }
1564
1564
  }
@@ -1577,94 +1577,94 @@ var CRC32 = /* @__PURE__ */ function() {
1577
1577
  pe > 0 && (pe < 4096 ? J += pe + 63 >> 6 : Q += pe + 511 >> 9);
1578
1578
  }
1579
1579
  }
1580
- for (var we = ee.FullPaths.length + 3 >> 2, Be = J + 7 >> 3, De = J + 127 >> 7, Le = Be + Q + we + De, Ne = Le + 127 >> 7, Ue = Ne <= 109 ? 0 : Math.ceil((Ne - 109) / 127); Le + Ne + Ue + 127 >> 7 > Ne; ) Ue = ++Ne <= 109 ? 0 : Math.ceil((Ne - 109) / 127);
1580
+ for (var we = ee.FullPaths.length + 3 >> 2, Ie = J + 7 >> 3, De = J + 127 >> 7, Le = Ie + Q + we + De, Ne = Le + 127 >> 7, Ue = Ne <= 109 ? 0 : Math.ceil((Ne - 109) / 127); Le + Ne + Ue + 127 >> 7 > Ne; ) Ue = ++Ne <= 109 ? 0 : Math.ceil((Ne - 109) / 127);
1581
1581
  var Ae = [1, Ue, Ne, De, we, Q, J, 0];
1582
1582
  return ee.FileIndex[0].size = J << 6, Ae[7] = (ee.FileIndex[0].start = Ae[0] + Ae[1] + Ae[2] + Ae[3] + Ae[4] + Ae[5]) + (Ae[6] + 7 >> 3), Ae;
1583
- }(x), T = new_buf(w[7] << 9), y = 0, V = 0;
1583
+ }(x), y = new_buf(w[7] << 9), T = 0, U = 0;
1584
1584
  {
1585
- for (y = 0; y < 8; ++y) T.write_shift(1, ne[y]);
1586
- for (y = 0; y < 8; ++y) T.write_shift(2, 0);
1587
- for (T.write_shift(2, 62), T.write_shift(2, 3), T.write_shift(2, 65534), T.write_shift(2, 9), T.write_shift(2, 6), y = 0; y < 3; ++y) T.write_shift(2, 0);
1588
- for (T.write_shift(4, 0), T.write_shift(4, w[2]), T.write_shift(4, w[0] + w[1] + w[2] + w[3] - 1), T.write_shift(4, 0), T.write_shift(4, 4096), T.write_shift(4, w[3] ? w[0] + w[1] + w[2] - 1 : H), T.write_shift(4, w[3]), T.write_shift(-4, w[1] ? w[0] - 1 : H), T.write_shift(4, w[1]), y = 0; y < 109; ++y) T.write_shift(-4, y < w[2] ? w[1] + y : -1);
1585
+ for (T = 0; T < 8; ++T) y.write_shift(1, ne[T]);
1586
+ for (T = 0; T < 8; ++T) y.write_shift(2, 0);
1587
+ for (y.write_shift(2, 62), y.write_shift(2, 3), y.write_shift(2, 65534), y.write_shift(2, 9), y.write_shift(2, 6), T = 0; T < 3; ++T) y.write_shift(2, 0);
1588
+ for (y.write_shift(4, 0), y.write_shift(4, w[2]), y.write_shift(4, w[0] + w[1] + w[2] + w[3] - 1), y.write_shift(4, 0), y.write_shift(4, 4096), y.write_shift(4, w[3] ? w[0] + w[1] + w[2] - 1 : R), y.write_shift(4, w[3]), y.write_shift(-4, w[1] ? w[0] - 1 : R), y.write_shift(4, w[1]), T = 0; T < 109; ++T) y.write_shift(-4, T < w[2] ? w[1] + T : -1);
1589
1589
  }
1590
1590
  if (w[1])
1591
- for (V = 0; V < w[1]; ++V) {
1592
- for (; y < 236 + V * 127; ++y) T.write_shift(-4, y < w[2] ? w[1] + y : -1);
1593
- T.write_shift(-4, V === w[1] - 1 ? H : V + 1);
1591
+ for (U = 0; U < w[1]; ++U) {
1592
+ for (; T < 236 + U * 127; ++T) y.write_shift(-4, T < w[2] ? w[1] + T : -1);
1593
+ y.write_shift(-4, U === w[1] - 1 ? R : U + 1);
1594
1594
  }
1595
- var j = function(ee) {
1596
- for (V += ee; y < V - 1; ++y) T.write_shift(-4, y + 1);
1597
- ee && (++y, T.write_shift(-4, H));
1595
+ var K = function(ee) {
1596
+ for (U += ee; T < U - 1; ++T) y.write_shift(-4, T + 1);
1597
+ ee && (++T, y.write_shift(-4, R));
1598
1598
  };
1599
- for (V = y = 0, V += w[1]; y < V; ++y) T.write_shift(-4, te.DIFSECT);
1600
- for (V += w[2]; y < V; ++y) T.write_shift(-4, te.FATSECT);
1601
- j(w[3]), j(w[4]);
1602
- for (var R = 0, U = 0, W = x.FileIndex[0]; R < x.FileIndex.length; ++R)
1603
- W = x.FileIndex[R], W.content && (U = W.content.length, !(U < 4096) && (W.start = V, j(U + 511 >> 9)));
1604
- for (j(w[6] + 7 >> 3); T.l & 511; ) T.write_shift(-4, te.ENDOFCHAIN);
1605
- for (V = y = 0, R = 0; R < x.FileIndex.length; ++R)
1606
- W = x.FileIndex[R], W.content && (U = W.content.length, !(!U || U >= 4096) && (W.start = V, j(U + 63 >> 6)));
1607
- for (; T.l & 511; ) T.write_shift(-4, te.ENDOFCHAIN);
1608
- for (y = 0; y < w[4] << 2; ++y) {
1609
- var Y = x.FullPaths[y];
1599
+ for (U = T = 0, U += w[1]; T < U; ++T) y.write_shift(-4, re.DIFSECT);
1600
+ for (U += w[2]; T < U; ++T) y.write_shift(-4, re.FATSECT);
1601
+ K(w[3]), K(w[4]);
1602
+ for (var M = 0, W = 0, X = x.FileIndex[0]; M < x.FileIndex.length; ++M)
1603
+ X = x.FileIndex[M], X.content && (W = X.content.length, !(W < 4096) && (X.start = U, K(W + 511 >> 9)));
1604
+ for (K(w[6] + 7 >> 3); y.l & 511; ) y.write_shift(-4, re.ENDOFCHAIN);
1605
+ for (U = T = 0, M = 0; M < x.FileIndex.length; ++M)
1606
+ X = x.FileIndex[M], X.content && (W = X.content.length, !(!W || W >= 4096) && (X.start = U, K(W + 63 >> 6)));
1607
+ for (; y.l & 511; ) y.write_shift(-4, re.ENDOFCHAIN);
1608
+ for (T = 0; T < w[4] << 2; ++T) {
1609
+ var Y = x.FullPaths[T];
1610
1610
  if (!Y || Y.length === 0) {
1611
- for (R = 0; R < 17; ++R) T.write_shift(4, 0);
1612
- for (R = 0; R < 3; ++R) T.write_shift(4, -1);
1613
- for (R = 0; R < 12; ++R) T.write_shift(4, 0);
1611
+ for (M = 0; M < 17; ++M) y.write_shift(4, 0);
1612
+ for (M = 0; M < 3; ++M) y.write_shift(4, -1);
1613
+ for (M = 0; M < 12; ++M) y.write_shift(4, 0);
1614
1614
  continue;
1615
1615
  }
1616
- W = x.FileIndex[y], y === 0 && (W.start = W.size ? W.start - 1 : H);
1617
- var q = y === 0 && g.root || W.name;
1618
- if (U = 2 * (q.length + 1), T.write_shift(64, q, "utf16le"), T.write_shift(2, U), T.write_shift(1, W.type), T.write_shift(1, W.color), T.write_shift(-4, W.L), T.write_shift(-4, W.R), T.write_shift(-4, W.C), W.clsid) T.write_shift(16, W.clsid, "hex");
1619
- else for (R = 0; R < 4; ++R) T.write_shift(4, 0);
1620
- T.write_shift(4, W.state || 0), T.write_shift(4, 0), T.write_shift(4, 0), T.write_shift(4, 0), T.write_shift(4, 0), T.write_shift(4, W.start), T.write_shift(4, W.size), T.write_shift(4, 0);
1616
+ X = x.FileIndex[T], T === 0 && (X.start = X.size ? X.start - 1 : R);
1617
+ var q = T === 0 && g.root || X.name;
1618
+ if (W = 2 * (q.length + 1), y.write_shift(64, q, "utf16le"), y.write_shift(2, W), y.write_shift(1, X.type), y.write_shift(1, X.color), y.write_shift(-4, X.L), y.write_shift(-4, X.R), y.write_shift(-4, X.C), X.clsid) y.write_shift(16, X.clsid, "hex");
1619
+ else for (M = 0; M < 4; ++M) y.write_shift(4, 0);
1620
+ y.write_shift(4, X.state || 0), y.write_shift(4, 0), y.write_shift(4, 0), y.write_shift(4, 0), y.write_shift(4, 0), y.write_shift(4, X.start), y.write_shift(4, X.size), y.write_shift(4, 0);
1621
1621
  }
1622
- for (y = 1; y < x.FileIndex.length; ++y)
1623
- if (W = x.FileIndex[y], W.size >= 4096)
1624
- if (T.l = W.start + 1 << 9, has_buf && Buffer.isBuffer(W.content))
1625
- W.content.copy(T, T.l, 0, W.size), T.l += W.size + 511 & -512;
1622
+ for (T = 1; T < x.FileIndex.length; ++T)
1623
+ if (X = x.FileIndex[T], X.size >= 4096)
1624
+ if (y.l = X.start + 1 << 9, has_buf && Buffer.isBuffer(X.content))
1625
+ X.content.copy(y, y.l, 0, X.size), y.l += X.size + 511 & -512;
1626
1626
  else {
1627
- for (R = 0; R < W.size; ++R) T.write_shift(1, W.content[R]);
1628
- for (; R & 511; ++R) T.write_shift(1, 0);
1627
+ for (M = 0; M < X.size; ++M) y.write_shift(1, X.content[M]);
1628
+ for (; M & 511; ++M) y.write_shift(1, 0);
1629
1629
  }
1630
- for (y = 1; y < x.FileIndex.length; ++y)
1631
- if (W = x.FileIndex[y], W.size > 0 && W.size < 4096)
1632
- if (has_buf && Buffer.isBuffer(W.content))
1633
- W.content.copy(T, T.l, 0, W.size), T.l += W.size + 63 & -64;
1630
+ for (T = 1; T < x.FileIndex.length; ++T)
1631
+ if (X = x.FileIndex[T], X.size > 0 && X.size < 4096)
1632
+ if (has_buf && Buffer.isBuffer(X.content))
1633
+ X.content.copy(y, y.l, 0, X.size), y.l += X.size + 63 & -64;
1634
1634
  else {
1635
- for (R = 0; R < W.size; ++R) T.write_shift(1, W.content[R]);
1636
- for (; R & 63; ++R) T.write_shift(1, 0);
1635
+ for (M = 0; M < X.size; ++M) y.write_shift(1, X.content[M]);
1636
+ for (; M & 63; ++M) y.write_shift(1, 0);
1637
1637
  }
1638
1638
  if (has_buf)
1639
- T.l = T.length;
1639
+ y.l = y.length;
1640
1640
  else
1641
- for (; T.l < T.length; ) T.write_shift(1, 0);
1642
- return T;
1641
+ for (; y.l < y.length; ) y.write_shift(1, 0);
1642
+ return y;
1643
1643
  }
1644
- function N(x, v) {
1645
- var g = x.FullPaths.map(function(R) {
1646
- return R.toUpperCase();
1647
- }), w = g.map(function(R) {
1648
- var U = R.split("/");
1649
- return U[U.length - (R.slice(-1) == "/" ? 2 : 1)];
1650
- }), T = !1;
1651
- v.charCodeAt(0) === 47 ? (T = !0, v = g[0].slice(0, -1) + v) : T = v.indexOf("/") !== -1;
1652
- var y = v.toUpperCase(), V = T === !0 ? g.indexOf(y) : w.indexOf(y);
1653
- if (V !== -1) return x.FileIndex[V];
1654
- var j = !y.match(chr1);
1655
- for (y = y.replace(chr0, ""), j && (y = y.replace(chr1, "!")), V = 0; V < g.length; ++V)
1656
- if ((j ? g[V].replace(chr1, "!") : g[V]).replace(chr0, "") == y || (j ? w[V].replace(chr1, "!") : w[V]).replace(chr0, "") == y) return x.FileIndex[V];
1644
+ function D(x, v) {
1645
+ var g = x.FullPaths.map(function(M) {
1646
+ return M.toUpperCase();
1647
+ }), w = g.map(function(M) {
1648
+ var W = M.split("/");
1649
+ return W[W.length - (M.slice(-1) == "/" ? 2 : 1)];
1650
+ }), y = !1;
1651
+ v.charCodeAt(0) === 47 ? (y = !0, v = g[0].slice(0, -1) + v) : y = v.indexOf("/") !== -1;
1652
+ var T = v.toUpperCase(), U = y === !0 ? g.indexOf(T) : w.indexOf(T);
1653
+ if (U !== -1) return x.FileIndex[U];
1654
+ var K = !T.match(chr1);
1655
+ for (T = T.replace(chr0, ""), K && (T = T.replace(chr1, "!")), U = 0; U < g.length; ++U)
1656
+ if ((K ? g[U].replace(chr1, "!") : g[U]).replace(chr0, "") == T || (K ? w[U].replace(chr1, "!") : w[U]).replace(chr0, "") == T) return x.FileIndex[U];
1657
1657
  return null;
1658
1658
  }
1659
- var B = 64, H = -2, ae = "d0cf11e0a1b11ae1", ne = [208, 207, 17, 224, 161, 177, 26, 225], ce = "00000000000000000000000000000000", te = {
1659
+ var F = 64, R = -2, te = "d0cf11e0a1b11ae1", ne = [208, 207, 17, 224, 161, 177, 26, 225], ce = "00000000000000000000000000000000", re = {
1660
1660
  /* 2.1 Compund File Sector Numbers and Types */
1661
1661
  MAXREGSECT: -6,
1662
1662
  DIFSECT: -4,
1663
1663
  FATSECT: -3,
1664
- ENDOFCHAIN: H,
1664
+ ENDOFCHAIN: R,
1665
1665
  FREESECT: -1,
1666
1666
  /* 2.2 Compound File Header */
1667
- HEADER_SIGNATURE: ae,
1667
+ HEADER_SIGNATURE: te,
1668
1668
  HEADER_MINOR_VERSION: "3e00",
1669
1669
  MAXREGSID: -6,
1670
1670
  NOSTREAM: -1,
@@ -1699,7 +1699,7 @@ var CRC32 = /* @__PURE__ */ function() {
1699
1699
  return g;
1700
1700
  }
1701
1701
  var ge;
1702
- function k(x) {
1702
+ function N(x) {
1703
1703
  try {
1704
1704
  var v = x.InflateRaw, g = new v();
1705
1705
  if (g._processChunk(new Uint8Array([3, 0]), g._finishFlushFlag), g.bytesRead) ge = x;
@@ -1708,15 +1708,15 @@ var CRC32 = /* @__PURE__ */ function() {
1708
1708
  console.error("cannot use native zlib: " + (w.message || w));
1709
1709
  }
1710
1710
  }
1711
- function M(x, v) {
1712
- if (!ge) return Ke(x, v);
1713
- var g = ge.InflateRaw, w = new g(), T = w._processChunk(x.slice(x.l), w._finishFlushFlag);
1714
- return x.l += w.bytesRead, T;
1711
+ function V(x, v) {
1712
+ if (!ge) return je(x, v);
1713
+ var g = ge.InflateRaw, w = new g(), y = w._processChunk(x.slice(x.l), w._finishFlushFlag);
1714
+ return x.l += w.bytesRead, y;
1715
1715
  }
1716
1716
  function P(x) {
1717
1717
  return ge ? ge.deflateRawSync(x) : We(x);
1718
1718
  }
1719
- var D = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], K = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258], se = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
1719
+ var I = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], j = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258], se = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
1720
1720
  function le(x) {
1721
1721
  var v = (x << 1 | x << 11) & 139536 | (x << 5 | x << 15) & 558144;
1722
1722
  return (v >> 16 | v >> 8 | v) & 255;
@@ -1742,69 +1742,69 @@ var CRC32 = /* @__PURE__ */ function() {
1742
1742
  var g = v & 7, w = v >>> 3;
1743
1743
  return (x[w] | (g <= 3 ? 0 : x[w + 1] << 8)) >>> g & 31;
1744
1744
  }
1745
- function re(x, v) {
1745
+ function ae(x, v) {
1746
1746
  var g = v & 7, w = v >>> 3;
1747
1747
  return (x[w] | (g <= 1 ? 0 : x[w + 1] << 8)) >>> g & 127;
1748
1748
  }
1749
- function Te(x, v, g) {
1750
- var w = v & 7, T = v >>> 3, y = (1 << g) - 1, V = x[T] >>> w;
1751
- return g < 8 - w || (V |= x[T + 1] << 8 - w, g < 16 - w) || (V |= x[T + 2] << 16 - w, g < 24 - w) || (V |= x[T + 3] << 24 - w), V & y;
1749
+ function ye(x, v, g) {
1750
+ var w = v & 7, y = v >>> 3, T = (1 << g) - 1, U = x[y] >>> w;
1751
+ return g < 8 - w || (U |= x[y + 1] << 8 - w, g < 16 - w) || (U |= x[y + 2] << 16 - w, g < 24 - w) || (U |= x[y + 3] << 24 - w), U & T;
1752
1752
  }
1753
1753
  function Ce(x, v, g) {
1754
- var w = v & 7, T = v >>> 3;
1755
- return w <= 5 ? x[T] |= (g & 7) << w : (x[T] |= g << w & 255, x[T + 1] = (g & 7) >> 8 - w), v + 3;
1754
+ var w = v & 7, y = v >>> 3;
1755
+ return w <= 5 ? x[y] |= (g & 7) << w : (x[y] |= g << w & 255, x[y + 1] = (g & 7) >> 8 - w), v + 3;
1756
1756
  }
1757
1757
  function Fe(x, v, g) {
1758
- var w = v & 7, T = v >>> 3;
1759
- return g = (g & 1) << w, x[T] |= g, v + 1;
1758
+ var w = v & 7, y = v >>> 3;
1759
+ return g = (g & 1) << w, x[y] |= g, v + 1;
1760
1760
  }
1761
- function Ie(x, v, g) {
1762
- var w = v & 7, T = v >>> 3;
1763
- return g <<= w, x[T] |= g & 255, g >>>= 8, x[T + 1] = g, v + 8;
1761
+ function Be(x, v, g) {
1762
+ var w = v & 7, y = v >>> 3;
1763
+ return g <<= w, x[y] |= g & 255, g >>>= 8, x[y + 1] = g, v + 8;
1764
1764
  }
1765
1765
  function $e(x, v, g) {
1766
- var w = v & 7, T = v >>> 3;
1767
- return g <<= w, x[T] |= g & 255, g >>>= 8, x[T + 1] = g & 255, x[T + 2] = g >>> 8, v + 16;
1766
+ var w = v & 7, y = v >>> 3;
1767
+ return g <<= w, x[y] |= g & 255, g >>>= 8, x[y + 1] = g & 255, x[y + 2] = g >>> 8, v + 16;
1768
1768
  }
1769
1769
  function Oe(x, v) {
1770
- var g = x.length, w = 2 * g > v ? 2 * g : v + 5, T = 0;
1770
+ var g = x.length, w = 2 * g > v ? 2 * g : v + 5, y = 0;
1771
1771
  if (g >= v) return x;
1772
1772
  if (has_buf) {
1773
- var y = new_unsafe_buf(w);
1774
- if (x.copy) x.copy(y);
1775
- else for (; T < x.length; ++T) y[T] = x[T];
1776
- return y;
1773
+ var T = new_unsafe_buf(w);
1774
+ if (x.copy) x.copy(T);
1775
+ else for (; y < x.length; ++y) T[y] = x[y];
1776
+ return T;
1777
1777
  } else if (ie) {
1778
- var V = new Uint8Array(w);
1779
- if (V.set) V.set(x);
1780
- else for (; T < g; ++T) V[T] = x[T];
1781
- return V;
1778
+ var U = new Uint8Array(w);
1779
+ if (U.set) U.set(x);
1780
+ else for (; y < g; ++y) U[y] = x[y];
1781
+ return U;
1782
1782
  }
1783
1783
  return x.length = w, x;
1784
1784
  }
1785
- function ye(x) {
1785
+ function Te(x) {
1786
1786
  for (var v = new Array(x), g = 0; g < x; ++g) v[g] = 0;
1787
1787
  return v;
1788
1788
  }
1789
1789
  function Pe(x, v, g) {
1790
- var w = 1, T = 0, y = 0, V = 0, j = 0, R = x.length, U = ie ? new Uint16Array(32) : ye(32);
1791
- for (y = 0; y < 32; ++y) U[y] = 0;
1792
- for (y = R; y < g; ++y) x[y] = 0;
1793
- R = x.length;
1794
- var W = ie ? new Uint16Array(R) : ye(R);
1795
- for (y = 0; y < R; ++y)
1796
- U[T = x[y]]++, w < T && (w = T), W[y] = 0;
1797
- for (U[0] = 0, y = 1; y <= w; ++y) U[y + 16] = j = j + U[y - 1] << 1;
1798
- for (y = 0; y < R; ++y)
1799
- j = x[y], j != 0 && (W[y] = U[j + 16]++);
1790
+ var w = 1, y = 0, T = 0, U = 0, K = 0, M = x.length, W = ie ? new Uint16Array(32) : Te(32);
1791
+ for (T = 0; T < 32; ++T) W[T] = 0;
1792
+ for (T = M; T < g; ++T) x[T] = 0;
1793
+ M = x.length;
1794
+ var X = ie ? new Uint16Array(M) : Te(M);
1795
+ for (T = 0; T < M; ++T)
1796
+ W[y = x[T]]++, w < y && (w = y), X[T] = 0;
1797
+ for (W[0] = 0, T = 1; T <= w; ++T) W[T + 16] = K = K + W[T - 1] << 1;
1798
+ for (T = 0; T < M; ++T)
1799
+ K = x[T], K != 0 && (X[T] = W[K + 16]++);
1800
1800
  var Y = 0;
1801
- for (y = 0; y < R; ++y)
1802
- if (Y = x[y], Y != 0)
1803
- for (j = fe(W[y], w) >> w - Y, V = (1 << w + 4 - Y) - 1; V >= 0; --V)
1804
- v[j | V << Y] = Y & 15 | y << 4;
1801
+ for (T = 0; T < M; ++T)
1802
+ if (Y = x[T], Y != 0)
1803
+ for (K = fe(X[T], w) >> w - Y, U = (1 << w + 4 - Y) - 1; U >= 0; --U)
1804
+ v[K | U << Y] = Y & 15 | T << 4;
1805
1805
  return w;
1806
1806
  }
1807
- var Re = ie ? new Uint16Array(512) : ye(512), Me = ie ? new Uint16Array(32) : ye(32);
1807
+ var Re = ie ? new Uint16Array(512) : Te(512), Me = ie ? new Uint16Array(32) : Te(32);
1808
1808
  if (!ie) {
1809
1809
  for (var ke = 0; ke < 512; ++ke) Re[ke] = 0;
1810
1810
  for (ke = 0; ke < 32; ++ke) Me[ke] = 0;
@@ -1823,132 +1823,132 @@ var CRC32 = /* @__PURE__ */ function() {
1823
1823
  for (var v = ie ? new Uint8Array(32768) : [], g = 0, w = 0; g < se.length - 1; ++g)
1824
1824
  for (; w < se[g + 1]; ++w) v[w] = g;
1825
1825
  for (; w < 32768; ++w) v[w] = 29;
1826
- var T = ie ? new Uint8Array(259) : [];
1827
- for (g = 0, w = 0; g < K.length - 1; ++g)
1828
- for (; w < K[g + 1]; ++w) T[w] = g;
1829
- function y(j, R) {
1830
- for (var U = 0; U < j.length; ) {
1831
- var W = Math.min(65535, j.length - U), Y = U + W == j.length;
1832
- for (R.write_shift(1, +Y), R.write_shift(2, W), R.write_shift(2, ~W & 65535); W-- > 0; ) R[R.l++] = j[U++];
1826
+ var y = ie ? new Uint8Array(259) : [];
1827
+ for (g = 0, w = 0; g < j.length - 1; ++g)
1828
+ for (; w < j[g + 1]; ++w) y[w] = g;
1829
+ function T(K, M) {
1830
+ for (var W = 0; W < K.length; ) {
1831
+ var X = Math.min(65535, K.length - W), Y = W + X == K.length;
1832
+ for (M.write_shift(1, +Y), M.write_shift(2, X), M.write_shift(2, ~X & 65535); X-- > 0; ) M[M.l++] = K[W++];
1833
1833
  }
1834
- return R.l;
1834
+ return M.l;
1835
1835
  }
1836
- function V(j, R) {
1837
- for (var U = 0, W = 0, Y = ie ? new Uint16Array(32768) : []; W < j.length; ) {
1836
+ function U(K, M) {
1837
+ for (var W = 0, X = 0, Y = ie ? new Uint16Array(32768) : []; X < K.length; ) {
1838
1838
  var q = (
1839
1839
  /* data.length - boff; */
1840
- Math.min(65535, j.length - W)
1840
+ Math.min(65535, K.length - X)
1841
1841
  );
1842
1842
  if (q < 10) {
1843
- for (U = Ce(R, U, +(W + q == j.length)), U & 7 && (U += 8 - (U & 7)), R.l = U / 8 | 0, R.write_shift(2, q), R.write_shift(2, ~q & 65535); q-- > 0; ) R[R.l++] = j[W++];
1844
- U = R.l * 8;
1843
+ for (W = Ce(M, W, +(X + q == K.length)), W & 7 && (W += 8 - (W & 7)), M.l = W / 8 | 0, M.write_shift(2, q), M.write_shift(2, ~q & 65535); q-- > 0; ) M[M.l++] = K[X++];
1844
+ W = M.l * 8;
1845
1845
  continue;
1846
1846
  }
1847
- U = Ce(R, U, +(W + q == j.length) + 2);
1847
+ W = Ce(M, W, +(X + q == K.length) + 2);
1848
1848
  for (var ee = 0; q-- > 0; ) {
1849
- var J = j[W];
1849
+ var J = K[X];
1850
1850
  ee = (ee << 5 ^ J) & 32767;
1851
1851
  var Q = -1, oe = 0;
1852
- if ((Q = Y[ee]) && (Q |= W & -32768, Q > W && (Q -= 32768), Q < W))
1853
- for (; j[Q + oe] == j[W + oe] && oe < 250; ) ++oe;
1852
+ if ((Q = Y[ee]) && (Q |= X & -32768, Q > X && (Q -= 32768), Q < X))
1853
+ for (; K[Q + oe] == K[X + oe] && oe < 250; ) ++oe;
1854
1854
  if (oe > 2) {
1855
- J = T[oe], J <= 22 ? U = Ie(R, U, Z[J + 1] >> 1) - 1 : (Ie(R, U, 3), U += 5, Ie(R, U, Z[J - 23] >> 5), U += 3);
1855
+ J = y[oe], J <= 22 ? W = Be(M, W, Z[J + 1] >> 1) - 1 : (Be(M, W, 3), W += 5, Be(M, W, Z[J - 23] >> 5), W += 3);
1856
1856
  var _e = J < 8 ? 0 : J - 4 >> 2;
1857
- _e > 0 && ($e(R, U, oe - K[J]), U += _e), J = v[W - Q], U = Ie(R, U, Z[J] >> 3), U -= 3;
1857
+ _e > 0 && ($e(M, W, oe - j[J]), W += _e), J = v[X - Q], W = Be(M, W, Z[J] >> 3), W -= 3;
1858
1858
  var pe = J < 4 ? 0 : J - 2 >> 1;
1859
- pe > 0 && ($e(R, U, W - Q - se[J]), U += pe);
1859
+ pe > 0 && ($e(M, W, X - Q - se[J]), W += pe);
1860
1860
  for (var we = 0; we < oe; ++we)
1861
- Y[ee] = W & 32767, ee = (ee << 5 ^ j[W]) & 32767, ++W;
1861
+ Y[ee] = X & 32767, ee = (ee << 5 ^ K[X]) & 32767, ++X;
1862
1862
  q -= oe - 1;
1863
1863
  } else
1864
- J <= 143 ? J = J + 48 : U = Fe(R, U, 1), U = Ie(R, U, Z[J]), Y[ee] = W & 32767, ++W;
1864
+ J <= 143 ? J = J + 48 : W = Fe(M, W, 1), W = Be(M, W, Z[J]), Y[ee] = X & 32767, ++X;
1865
1865
  }
1866
- U = Ie(R, U, 0) - 1;
1866
+ W = Be(M, W, 0) - 1;
1867
1867
  }
1868
- return R.l = (U + 7) / 8 | 0, R.l;
1868
+ return M.l = (W + 7) / 8 | 0, M.l;
1869
1869
  }
1870
- return function(R, U) {
1871
- return R.length < 8 ? y(R, U) : V(R, U);
1870
+ return function(M, W) {
1871
+ return M.length < 8 ? T(M, W) : U(M, W);
1872
1872
  };
1873
1873
  }();
1874
1874
  function We(x) {
1875
1875
  var v = new_buf(50 + Math.floor(x.length * 1.1)), g = qe(x, v);
1876
1876
  return v.slice(0, g);
1877
1877
  }
1878
- var Xe = ie ? new Uint16Array(32768) : ye(32768), He = ie ? new Uint16Array(32768) : ye(32768), Ge = ie ? new Uint16Array(128) : ye(128), ze = 1, je = 1;
1878
+ var Xe = ie ? new Uint16Array(32768) : Te(32768), He = ie ? new Uint16Array(32768) : Te(32768), Ge = ie ? new Uint16Array(128) : Te(128), ze = 1, Ke = 1;
1879
1879
  function Ze(x, v) {
1880
1880
  var g = me(x, v) + 257;
1881
1881
  v += 5;
1882
1882
  var w = me(x, v) + 1;
1883
1883
  v += 5;
1884
- var T = Se(x, v) + 4;
1884
+ var y = Se(x, v) + 4;
1885
1885
  v += 4;
1886
- for (var y = 0, V = ie ? new Uint8Array(19) : ye(19), j = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], R = 1, U = ie ? new Uint8Array(8) : ye(8), W = ie ? new Uint8Array(8) : ye(8), Y = V.length, q = 0; q < T; ++q)
1887
- V[D[q]] = y = ue(x, v), R < y && (R = y), U[y]++, v += 3;
1886
+ for (var T = 0, U = ie ? new Uint8Array(19) : Te(19), K = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], M = 1, W = ie ? new Uint8Array(8) : Te(8), X = ie ? new Uint8Array(8) : Te(8), Y = U.length, q = 0; q < y; ++q)
1887
+ U[I[q]] = T = ue(x, v), M < T && (M = T), W[T]++, v += 3;
1888
1888
  var ee = 0;
1889
- for (U[0] = 0, q = 1; q <= R; ++q) W[q] = ee = ee + U[q - 1] << 1;
1890
- for (q = 0; q < Y; ++q) (ee = V[q]) != 0 && (j[q] = W[ee]++);
1889
+ for (W[0] = 0, q = 1; q <= M; ++q) X[q] = ee = ee + W[q - 1] << 1;
1890
+ for (q = 0; q < Y; ++q) (ee = U[q]) != 0 && (K[q] = X[ee]++);
1891
1891
  var J = 0;
1892
1892
  for (q = 0; q < Y; ++q)
1893
- if (J = V[q], J != 0) {
1894
- ee = Z[j[q]] >> 8 - J;
1893
+ if (J = U[q], J != 0) {
1894
+ ee = Z[K[q]] >> 8 - J;
1895
1895
  for (var Q = (1 << 7 - J) - 1; Q >= 0; --Q) Ge[ee | Q << J] = J & 7 | q << 3;
1896
1896
  }
1897
1897
  var oe = [];
1898
- for (R = 1; oe.length < g + w; )
1899
- switch (ee = Ge[re(x, v)], v += ee & 7, ee >>>= 3) {
1898
+ for (M = 1; oe.length < g + w; )
1899
+ switch (ee = Ge[ae(x, v)], v += ee & 7, ee >>>= 3) {
1900
1900
  case 16:
1901
- for (y = 3 + Ee(x, v), v += 2, ee = oe[oe.length - 1]; y-- > 0; ) oe.push(ee);
1901
+ for (T = 3 + Ee(x, v), v += 2, ee = oe[oe.length - 1]; T-- > 0; ) oe.push(ee);
1902
1902
  break;
1903
1903
  case 17:
1904
- for (y = 3 + ue(x, v), v += 3; y-- > 0; ) oe.push(0);
1904
+ for (T = 3 + ue(x, v), v += 3; T-- > 0; ) oe.push(0);
1905
1905
  break;
1906
1906
  case 18:
1907
- for (y = 11 + re(x, v), v += 7; y-- > 0; ) oe.push(0);
1907
+ for (T = 11 + ae(x, v), v += 7; T-- > 0; ) oe.push(0);
1908
1908
  break;
1909
1909
  default:
1910
- oe.push(ee), R < ee && (R = ee);
1910
+ oe.push(ee), M < ee && (M = ee);
1911
1911
  break;
1912
1912
  }
1913
1913
  var _e = oe.slice(0, g), pe = oe.slice(g);
1914
1914
  for (q = g; q < 286; ++q) _e[q] = 0;
1915
1915
  for (q = w; q < 30; ++q) pe[q] = 0;
1916
- return ze = Pe(_e, Xe, 286), je = Pe(pe, He, 30), v;
1916
+ return ze = Pe(_e, Xe, 286), Ke = Pe(pe, He, 30), v;
1917
1917
  }
1918
1918
  function Qe(x, v) {
1919
1919
  if (x[0] == 3 && !(x[1] & 3))
1920
1920
  return [new_raw_buf(v), 2];
1921
- for (var g = 0, w = 0, T = new_unsafe_buf(v || 1 << 18), y = 0, V = T.length >>> 0, j = 0, R = 0; !(w & 1); ) {
1921
+ for (var g = 0, w = 0, y = new_unsafe_buf(v || 1 << 18), T = 0, U = y.length >>> 0, K = 0, M = 0; !(w & 1); ) {
1922
1922
  if (w = ue(x, g), g += 3, w >>> 1)
1923
- w >> 1 == 1 ? (j = 9, R = 5) : (g = Ze(x, g), j = ze, R = je);
1923
+ w >> 1 == 1 ? (K = 9, M = 5) : (g = Ze(x, g), K = ze, M = Ke);
1924
1924
  else {
1925
1925
  g & 7 && (g += 8 - (g & 7));
1926
- var U = x[g >>> 3] | x[(g >>> 3) + 1] << 8;
1927
- if (g += 32, U > 0)
1928
- for (!v && V < y + U && (T = Oe(T, y + U), V = T.length); U-- > 0; )
1929
- T[y++] = x[g >>> 3], g += 8;
1926
+ var W = x[g >>> 3] | x[(g >>> 3) + 1] << 8;
1927
+ if (g += 32, W > 0)
1928
+ for (!v && U < T + W && (y = Oe(y, T + W), U = y.length); W-- > 0; )
1929
+ y[T++] = x[g >>> 3], g += 8;
1930
1930
  continue;
1931
1931
  }
1932
1932
  for (; ; ) {
1933
- !v && V < y + 32767 && (T = Oe(T, y + 32767), V = T.length);
1934
- var W = Te(x, g, j), Y = w >>> 1 == 1 ? Re[W] : Xe[W];
1935
- if (g += Y & 15, Y >>>= 4, !(Y >>> 8 & 255)) T[y++] = Y;
1933
+ !v && U < T + 32767 && (y = Oe(y, T + 32767), U = y.length);
1934
+ var X = ye(x, g, K), Y = w >>> 1 == 1 ? Re[X] : Xe[X];
1935
+ if (g += Y & 15, Y >>>= 4, !(Y >>> 8 & 255)) y[T++] = Y;
1936
1936
  else {
1937
1937
  if (Y == 256) break;
1938
1938
  Y -= 257;
1939
1939
  var q = Y < 8 ? 0 : Y - 4 >> 2;
1940
1940
  q > 5 && (q = 0);
1941
- var ee = y + K[Y];
1942
- q > 0 && (ee += Te(x, g, q), g += q), W = Te(x, g, R), Y = w >>> 1 == 1 ? Me[W] : He[W], g += Y & 15, Y >>>= 4;
1941
+ var ee = T + j[Y];
1942
+ q > 0 && (ee += ye(x, g, q), g += q), X = ye(x, g, M), Y = w >>> 1 == 1 ? Me[X] : He[X], g += Y & 15, Y >>>= 4;
1943
1943
  var J = Y < 4 ? 0 : Y - 2 >> 1, Q = se[Y];
1944
- for (J > 0 && (Q += Te(x, g, J), g += J), !v && V < ee && (T = Oe(T, ee + 100), V = T.length); y < ee; )
1945
- T[y] = T[y - Q], ++y;
1944
+ for (J > 0 && (Q += ye(x, g, J), g += J), !v && U < ee && (y = Oe(y, ee + 100), U = y.length); T < ee; )
1945
+ y[T] = y[T - Q], ++T;
1946
1946
  }
1947
1947
  }
1948
1948
  }
1949
- return v ? [T, g + 7 >>> 3] : [T.slice(0, y), g + 7 >>> 3];
1949
+ return v ? [y, g + 7 >>> 3] : [y.slice(0, T), g + 7 >>> 3];
1950
1950
  }
1951
- function Ke(x, v) {
1951
+ function je(x, v) {
1952
1952
  var g = x.slice(x.l || 0), w = Qe(g, v);
1953
1953
  return x.l += w[1], w[0];
1954
1954
  }
@@ -1963,19 +1963,19 @@ var CRC32 = /* @__PURE__ */ function() {
1963
1963
  x
1964
1964
  );
1965
1965
  prep_blob(g, 0);
1966
- var w = [], T = [], y = {
1966
+ var w = [], y = [], T = {
1967
1967
  FileIndex: w,
1968
- FullPaths: T
1968
+ FullPaths: y
1969
1969
  };
1970
- A(y, { root: v.root });
1971
- for (var V = g.length - 4; (g[V] != 80 || g[V + 1] != 75 || g[V + 2] != 5 || g[V + 3] != 6) && V >= 0; ) --V;
1972
- g.l = V + 4, g.l += 4;
1973
- var j = g.read_shift(2);
1970
+ A(T, { root: v.root });
1971
+ for (var U = g.length - 4; (g[U] != 80 || g[U + 1] != 75 || g[U + 2] != 5 || g[U + 3] != 6) && U >= 0; ) --U;
1972
+ g.l = U + 4, g.l += 4;
1973
+ var K = g.read_shift(2);
1974
1974
  g.l += 6;
1975
- var R = g.read_shift(4);
1976
- for (g.l = R, V = 0; V < j; ++V) {
1975
+ var M = g.read_shift(4);
1976
+ for (g.l = M, U = 0; U < K; ++U) {
1977
1977
  g.l += 20;
1978
- var U = g.read_shift(4), W = g.read_shift(4), Y = g.read_shift(2), q = g.read_shift(2), ee = g.read_shift(2);
1978
+ var W = g.read_shift(4), X = g.read_shift(4), Y = g.read_shift(2), q = g.read_shift(2), ee = g.read_shift(2);
1979
1979
  g.l += 8;
1980
1980
  var J = g.read_shift(4), Q = l(
1981
1981
  /*::(*/
@@ -1984,61 +1984,61 @@ var CRC32 = /* @__PURE__ */ function() {
1984
1984
  );
1985
1985
  g.l += Y + q + ee;
1986
1986
  var oe = g.l;
1987
- g.l = J + 4, et(g, U, W, y, Q), g.l = oe;
1987
+ g.l = J + 4, et(g, W, X, T, Q), g.l = oe;
1988
1988
  }
1989
- return y;
1989
+ return T;
1990
1990
  }
1991
- function et(x, v, g, w, T) {
1991
+ function et(x, v, g, w, y) {
1992
1992
  x.l += 2;
1993
- var y = x.read_shift(2), V = x.read_shift(2), j = s(x);
1994
- if (y & 8257) throw new Error("Unsupported ZIP encryption");
1995
- for (var R = x.read_shift(4), U = x.read_shift(4), W = x.read_shift(4), Y = x.read_shift(2), q = x.read_shift(2), ee = "", J = 0; J < Y; ++J) ee += String.fromCharCode(x[x.l++]);
1993
+ var T = x.read_shift(2), U = x.read_shift(2), K = s(x);
1994
+ if (T & 8257) throw new Error("Unsupported ZIP encryption");
1995
+ for (var M = x.read_shift(4), W = x.read_shift(4), X = x.read_shift(4), Y = x.read_shift(2), q = x.read_shift(2), ee = "", J = 0; J < Y; ++J) ee += String.fromCharCode(x[x.l++]);
1996
1996
  if (q) {
1997
1997
  var Q = l(
1998
1998
  /*::(*/
1999
1999
  x.slice(x.l, x.l + q)
2000
2000
  /*:: :any)*/
2001
2001
  );
2002
- (Q[21589] || {}).mt && (j = Q[21589].mt), ((T || {})[21589] || {}).mt && (j = T[21589].mt);
2002
+ (Q[21589] || {}).mt && (K = Q[21589].mt), ((y || {})[21589] || {}).mt && (K = y[21589].mt);
2003
2003
  }
2004
2004
  x.l += q;
2005
- var oe = x.slice(x.l, x.l + U);
2006
- switch (V) {
2005
+ var oe = x.slice(x.l, x.l + W);
2006
+ switch (U) {
2007
2007
  case 8:
2008
- oe = M(x, W);
2008
+ oe = V(x, X);
2009
2009
  break;
2010
2010
  case 0:
2011
2011
  break;
2012
2012
  // TODO: scan for magic number
2013
2013
  default:
2014
- throw new Error("Unsupported ZIP Compression method " + V);
2014
+ throw new Error("Unsupported ZIP Compression method " + U);
2015
2015
  }
2016
2016
  var _e = !1;
2017
- y & 8 && (R = x.read_shift(4), R == 134695760 && (R = x.read_shift(4), _e = !0), U = x.read_shift(4), W = x.read_shift(4)), U != v && Ye(_e, "Bad compressed size: " + v + " != " + U), W != g && Ye(_e, "Bad uncompressed size: " + g + " != " + W), Ve(w, ee, oe, { unsafe: !0, mt: j });
2017
+ T & 8 && (M = x.read_shift(4), M == 134695760 && (M = x.read_shift(4), _e = !0), W = x.read_shift(4), X = x.read_shift(4)), W != v && Ye(_e, "Bad compressed size: " + v + " != " + W), X != g && Ye(_e, "Bad uncompressed size: " + g + " != " + X), Ve(w, ee, oe, { unsafe: !0, mt: K });
2018
2018
  }
2019
2019
  function tt(x, v) {
2020
- var g = v || {}, w = [], T = [], y = new_buf(1), V = g.compression ? 8 : 0, j = 0, R = 0, U = 0, W = 0, Y = 0, q = x.FullPaths[0], ee = q, J = x.FileIndex[0], Q = [], oe = 0;
2021
- for (R = 1; R < x.FullPaths.length; ++R)
2022
- if (ee = x.FullPaths[R].slice(q.length), J = x.FileIndex[R], !(!J.size || !J.content || ee == "Sh33tJ5")) {
2023
- var _e = W, pe = new_buf(ee.length);
2024
- for (U = 0; U < ee.length; ++U) pe.write_shift(1, ee.charCodeAt(U) & 127);
2020
+ var g = v || {}, w = [], y = [], T = new_buf(1), U = g.compression ? 8 : 0, K = 0, M = 0, W = 0, X = 0, Y = 0, q = x.FullPaths[0], ee = q, J = x.FileIndex[0], Q = [], oe = 0;
2021
+ for (M = 1; M < x.FullPaths.length; ++M)
2022
+ if (ee = x.FullPaths[M].slice(q.length), J = x.FileIndex[M], !(!J.size || !J.content || ee == "Sh33tJ5")) {
2023
+ var _e = X, pe = new_buf(ee.length);
2024
+ for (W = 0; W < ee.length; ++W) pe.write_shift(1, ee.charCodeAt(W) & 127);
2025
2025
  pe = pe.slice(0, pe.l), Q[Y] = CRC32.buf(
2026
2026
  /*::((*/
2027
2027
  J.content,
2028
2028
  0
2029
2029
  );
2030
2030
  var we = J.content;
2031
- V == 8 && (we = P(we)), y = new_buf(30), y.write_shift(4, 67324752), y.write_shift(2, 20), y.write_shift(2, j), y.write_shift(2, V), J.mt ? i(y, J.mt) : y.write_shift(4, 0), y.write_shift(-4, Q[Y]), y.write_shift(4, we.length), y.write_shift(
2031
+ U == 8 && (we = P(we)), T = new_buf(30), T.write_shift(4, 67324752), T.write_shift(2, 20), T.write_shift(2, K), T.write_shift(2, U), J.mt ? i(T, J.mt) : T.write_shift(4, 0), T.write_shift(-4, Q[Y]), T.write_shift(4, we.length), T.write_shift(
2032
2032
  4,
2033
2033
  /*::(*/
2034
2034
  J.content.length
2035
- ), y.write_shift(2, pe.length), y.write_shift(2, 0), W += y.length, w.push(y), W += pe.length, w.push(pe), W += we.length, w.push(we), y = new_buf(46), y.write_shift(4, 33639248), y.write_shift(2, 0), y.write_shift(2, 20), y.write_shift(2, j), y.write_shift(2, V), y.write_shift(4, 0), y.write_shift(-4, Q[Y]), y.write_shift(4, we.length), y.write_shift(
2035
+ ), T.write_shift(2, pe.length), T.write_shift(2, 0), X += T.length, w.push(T), X += pe.length, w.push(pe), X += we.length, w.push(we), T = new_buf(46), T.write_shift(4, 33639248), T.write_shift(2, 0), T.write_shift(2, 20), T.write_shift(2, K), T.write_shift(2, U), T.write_shift(4, 0), T.write_shift(-4, Q[Y]), T.write_shift(4, we.length), T.write_shift(
2036
2036
  4,
2037
2037
  /*::(*/
2038
2038
  J.content.length
2039
- ), y.write_shift(2, pe.length), y.write_shift(2, 0), y.write_shift(2, 0), y.write_shift(2, 0), y.write_shift(2, 0), y.write_shift(4, 0), y.write_shift(4, _e), oe += y.l, T.push(y), oe += pe.length, T.push(pe), ++Y;
2039
+ ), T.write_shift(2, pe.length), T.write_shift(2, 0), T.write_shift(2, 0), T.write_shift(2, 0), T.write_shift(2, 0), T.write_shift(4, 0), T.write_shift(4, _e), oe += T.l, y.push(T), oe += pe.length, y.push(pe), ++Y;
2040
2040
  }
2041
- return y = new_buf(22), y.write_shift(4, 101010256), y.write_shift(2, 0), y.write_shift(2, 0), y.write_shift(2, Y), y.write_shift(2, Y), y.write_shift(4, oe), y.write_shift(4, W), y.write_shift(2, 0), bconcat([bconcat(w), bconcat(T), y]);
2041
+ return T = new_buf(22), T.write_shift(4, 101010256), T.write_shift(2, 0), T.write_shift(2, 0), T.write_shift(2, Y), T.write_shift(2, Y), T.write_shift(4, oe), T.write_shift(4, X), T.write_shift(2, 0), bconcat([bconcat(w), bconcat(y), T]);
2042
2042
  }
2043
2043
  var be = {
2044
2044
  htm: "text/html",
@@ -2062,23 +2062,23 @@ var CRC32 = /* @__PURE__ */ function() {
2062
2062
  `;
2063
2063
  }
2064
2064
  function nt(x) {
2065
- var v = x.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g, function(U) {
2066
- var W = U.charCodeAt(0).toString(16).toUpperCase();
2067
- return "=" + (W.length == 1 ? "0" + W : W);
2065
+ var v = x.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g, function(W) {
2066
+ var X = W.charCodeAt(0).toString(16).toUpperCase();
2067
+ return "=" + (X.length == 1 ? "0" + X : X);
2068
2068
  });
2069
2069
  v = v.replace(/ $/mg, "=20").replace(/\t$/mg, "=09"), v.charAt(0) == `
2070
2070
  ` && (v = "=0D" + v.slice(1)), v = v.replace(/\r(?!\n)/mg, "=0D").replace(/\n\n/mg, `
2071
2071
  =0A`).replace(/([^\r\n])\n/mg, "$1=0A");
2072
2072
  for (var g = [], w = v.split(`\r
2073
- `), T = 0; T < w.length; ++T) {
2074
- var y = w[T];
2075
- if (y.length == 0) {
2073
+ `), y = 0; y < w.length; ++y) {
2074
+ var T = w[y];
2075
+ if (T.length == 0) {
2076
2076
  g.push("");
2077
2077
  continue;
2078
2078
  }
2079
- for (var V = 0; V < y.length; ) {
2080
- var j = 76, R = y.slice(V, V + j);
2081
- R.charAt(j - 1) == "=" ? j-- : R.charAt(j - 2) == "=" ? j -= 2 : R.charAt(j - 3) == "=" && (j -= 3), R = y.slice(V, V + j), V += j, V < y.length && (R += "="), g.push(R);
2079
+ for (var U = 0; U < T.length; ) {
2080
+ var K = 76, M = T.slice(U, U + K);
2081
+ M.charAt(K - 1) == "=" ? K-- : M.charAt(K - 2) == "=" ? K -= 2 : M.charAt(K - 3) == "=" && (K -= 3), M = T.slice(U, U + K), U += K, U < T.length && (M += "="), g.push(M);
2082
2082
  }
2083
2083
  }
2084
2084
  return g.join(`\r
@@ -2089,86 +2089,86 @@ var CRC32 = /* @__PURE__ */ function() {
2089
2089
  for (var w = x[g]; g <= x.length && w.charAt(w.length - 1) == "="; ) w = w.slice(0, w.length - 1) + x[++g];
2090
2090
  v.push(w);
2091
2091
  }
2092
- for (var T = 0; T < v.length; ++T) v[T] = v[T].replace(/[=][0-9A-Fa-f]{2}/g, function(y) {
2093
- return String.fromCharCode(parseInt(y.slice(1), 16));
2092
+ for (var y = 0; y < v.length; ++y) v[y] = v[y].replace(/[=][0-9A-Fa-f]{2}/g, function(T) {
2093
+ return String.fromCharCode(parseInt(T.slice(1), 16));
2094
2094
  });
2095
2095
  return s2a(v.join(`\r
2096
2096
  `));
2097
2097
  }
2098
2098
  function st(x, v, g) {
2099
- for (var w = "", T = "", y = "", V, j = 0; j < 10; ++j) {
2100
- var R = v[j];
2101
- if (!R || R.match(/^\s*$/)) break;
2102
- var U = R.match(/^(.*?):\s*([^\s].*)$/);
2103
- if (U) switch (U[1].toLowerCase()) {
2099
+ for (var w = "", y = "", T = "", U, K = 0; K < 10; ++K) {
2100
+ var M = v[K];
2101
+ if (!M || M.match(/^\s*$/)) break;
2102
+ var W = M.match(/^(.*?):\s*([^\s].*)$/);
2103
+ if (W) switch (W[1].toLowerCase()) {
2104
2104
  case "content-location":
2105
- w = U[2].trim();
2105
+ w = W[2].trim();
2106
2106
  break;
2107
2107
  case "content-type":
2108
- y = U[2].trim();
2108
+ T = W[2].trim();
2109
2109
  break;
2110
2110
  case "content-transfer-encoding":
2111
- T = U[2].trim();
2111
+ y = W[2].trim();
2112
2112
  break;
2113
2113
  }
2114
2114
  }
2115
- switch (++j, T.toLowerCase()) {
2115
+ switch (++K, y.toLowerCase()) {
2116
2116
  case "base64":
2117
- V = s2a(Base64_decode(v.slice(j).join("")));
2117
+ U = s2a(Base64_decode(v.slice(K).join("")));
2118
2118
  break;
2119
2119
  case "quoted-printable":
2120
- V = it(v.slice(j));
2120
+ U = it(v.slice(K));
2121
2121
  break;
2122
2122
  default:
2123
- throw new Error("Unsupported Content-Transfer-Encoding " + T);
2123
+ throw new Error("Unsupported Content-Transfer-Encoding " + y);
2124
2124
  }
2125
- var W = Ve(x, w.slice(g.length), V, { unsafe: !0 });
2126
- y && (W.ctype = y);
2125
+ var X = Ve(x, w.slice(g.length), U, { unsafe: !0 });
2126
+ T && (X.ctype = T);
2127
2127
  }
2128
2128
  function lt(x, v) {
2129
2129
  if (he(x.slice(0, 13)).toLowerCase() != "mime-version:") throw new Error("Unsupported MAD header");
2130
2130
  var g = v && v.root || "", w = (has_buf && Buffer.isBuffer(x) ? x.toString("binary") : he(x)).split(`\r
2131
- `), T = 0, y = "";
2132
- for (T = 0; T < w.length; ++T)
2133
- if (y = w[T], !!/^Content-Location:/i.test(y) && (y = y.slice(y.indexOf("file")), g || (g = y.slice(0, y.lastIndexOf("/") + 1)), y.slice(0, g.length) != g))
2134
- for (; g.length > 0 && (g = g.slice(0, g.length - 1), g = g.slice(0, g.lastIndexOf("/") + 1), y.slice(0, g.length) != g); )
2131
+ `), y = 0, T = "";
2132
+ for (y = 0; y < w.length; ++y)
2133
+ if (T = w[y], !!/^Content-Location:/i.test(T) && (T = T.slice(T.indexOf("file")), g || (g = T.slice(0, T.lastIndexOf("/") + 1)), T.slice(0, g.length) != g))
2134
+ for (; g.length > 0 && (g = g.slice(0, g.length - 1), g = g.slice(0, g.lastIndexOf("/") + 1), T.slice(0, g.length) != g); )
2135
2135
  ;
2136
- var V = (w[1] || "").match(/boundary="(.*?)"/);
2137
- if (!V) throw new Error("MAD cannot find boundary");
2138
- var j = "--" + (V[1] || ""), R = [], U = [], W = {
2139
- FileIndex: R,
2140
- FullPaths: U
2136
+ var U = (w[1] || "").match(/boundary="(.*?)"/);
2137
+ if (!U) throw new Error("MAD cannot find boundary");
2138
+ var K = "--" + (U[1] || ""), M = [], W = [], X = {
2139
+ FileIndex: M,
2140
+ FullPaths: W
2141
2141
  };
2142
- A(W);
2142
+ A(X);
2143
2143
  var Y, q = 0;
2144
- for (T = 0; T < w.length; ++T) {
2145
- var ee = w[T];
2146
- ee !== j && ee !== j + "--" || (q++ && st(W, w.slice(Y, T), g), Y = T);
2144
+ for (y = 0; y < w.length; ++y) {
2145
+ var ee = w[y];
2146
+ ee !== K && ee !== K + "--" || (q++ && st(X, w.slice(Y, y), g), Y = y);
2147
2147
  }
2148
- return W;
2148
+ return X;
2149
2149
  }
2150
2150
  function ot(x, v) {
2151
2151
  var g = v || {}, w = g.boundary || "SheetJS";
2152
2152
  w = "------=" + w;
2153
- for (var T = [
2153
+ for (var y = [
2154
2154
  "MIME-Version: 1.0",
2155
2155
  'Content-Type: multipart/related; boundary="' + w.slice(2) + '"',
2156
2156
  "",
2157
2157
  "",
2158
2158
  ""
2159
- ], y = x.FullPaths[0], V = y, j = x.FileIndex[0], R = 1; R < x.FullPaths.length; ++R)
2160
- if (V = x.FullPaths[R].slice(y.length), j = x.FileIndex[R], !(!j.size || !j.content || V == "Sh33tJ5")) {
2161
- V = V.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g, function(oe) {
2159
+ ], T = x.FullPaths[0], U = T, K = x.FileIndex[0], M = 1; M < x.FullPaths.length; ++M)
2160
+ if (U = x.FullPaths[M].slice(T.length), K = x.FileIndex[M], !(!K.size || !K.content || U == "Sh33tJ5")) {
2161
+ U = U.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g, function(oe) {
2162
2162
  return "_x" + oe.charCodeAt(0).toString(16) + "_";
2163
2163
  }).replace(/[\u0080-\uFFFF]/g, function(oe) {
2164
2164
  return "_u" + oe.charCodeAt(0).toString(16) + "_";
2165
2165
  });
2166
- for (var U = j.content, W = has_buf && Buffer.isBuffer(U) ? U.toString("binary") : he(U), Y = 0, q = Math.min(1024, W.length), ee = 0, J = 0; J <= q; ++J) (ee = W.charCodeAt(J)) >= 32 && ee < 128 && ++Y;
2166
+ for (var W = K.content, X = has_buf && Buffer.isBuffer(W) ? W.toString("binary") : he(W), Y = 0, q = Math.min(1024, X.length), ee = 0, J = 0; J <= q; ++J) (ee = X.charCodeAt(J)) >= 32 && ee < 128 && ++Y;
2167
2167
  var Q = Y >= q * 4 / 5;
2168
- T.push(w), T.push("Content-Location: " + (g.root || "file:///C:/SheetJS/") + V), T.push("Content-Transfer-Encoding: " + (Q ? "quoted-printable" : "base64")), T.push("Content-Type: " + rt(j, V)), T.push(""), T.push(Q ? nt(W) : at(W));
2168
+ y.push(w), y.push("Content-Location: " + (g.root || "file:///C:/SheetJS/") + U), y.push("Content-Transfer-Encoding: " + (Q ? "quoted-printable" : "base64")), y.push("Content-Type: " + rt(K, U)), y.push(""), y.push(Q ? nt(X) : at(X));
2169
2169
  }
2170
- return T.push(w + `--\r
2171
- `), T.join(`\r
2170
+ return y.push(w + `--\r
2171
+ `), y.join(`\r
2172
2172
  `);
2173
2173
  }
2174
2174
  function ft(x) {
@@ -2176,14 +2176,14 @@ var CRC32 = /* @__PURE__ */ function() {
2176
2176
  return A(v, x), v;
2177
2177
  }
2178
2178
  function Ve(x, v, g, w) {
2179
- var T = w && w.unsafe;
2180
- T || A(x);
2181
- var y = !T && CFB.find(x, v);
2182
- if (!y) {
2183
- var V = x.FullPaths[0];
2184
- v.slice(0, V.length) == V ? V = v : (V.slice(-1) != "/" && (V += "/"), V = (V + v).replace("//", "/")), y = { name: n(v), type: 2 }, x.FileIndex.push(y), x.FullPaths.push(V), T || CFB.utils.cfb_gc(x);
2179
+ var y = w && w.unsafe;
2180
+ y || A(x);
2181
+ var T = !y && CFB.find(x, v);
2182
+ if (!T) {
2183
+ var U = x.FullPaths[0];
2184
+ v.slice(0, U.length) == U ? U = v : (U.slice(-1) != "/" && (U += "/"), U = (U + v).replace("//", "/")), T = { name: n(v), type: 2 }, x.FileIndex.push(T), x.FullPaths.push(U), y || CFB.utils.cfb_gc(x);
2185
2185
  }
2186
- return y.content = g, y.size = g ? g.length : 0, w && (w.CLSID && (y.clsid = w.CLSID), w.mt && (y.mt = w.mt), w.ct && (y.ct = w.ct)), y;
2186
+ return T.content = g, T.size = g ? g.length : 0, w && (w.CLSID && (T.clsid = w.CLSID), w.mt && (T.mt = w.mt), w.ct && (T.ct = w.ct)), T;
2187
2187
  }
2188
2188
  function ct(x, v) {
2189
2189
  A(x);
@@ -2198,15 +2198,15 @@ var CRC32 = /* @__PURE__ */ function() {
2198
2198
  A(x);
2199
2199
  var w = CFB.find(x, v);
2200
2200
  if (w) {
2201
- for (var T = 0; T < x.FileIndex.length; ++T) if (x.FileIndex[T] == w)
2202
- return x.FileIndex[T].name = n(g), x.FullPaths[T] = g, !0;
2201
+ for (var y = 0; y < x.FileIndex.length; ++y) if (x.FileIndex[y] == w)
2202
+ return x.FileIndex[y].name = n(g), x.FullPaths[y] = g, !0;
2203
2203
  }
2204
2204
  return !1;
2205
2205
  }
2206
2206
  function dt(x) {
2207
2207
  S(x, !0);
2208
2208
  }
2209
- return r.find = N, r.read = z, r.parse = c, r.write = ve, r.writeFile = xe, r.utils = {
2209
+ return r.find = D, r.read = z, r.parse = c, r.write = ve, r.writeFile = xe, r.utils = {
2210
2210
  cfb_new: ft,
2211
2211
  cfb_add: Ve,
2212
2212
  cfb_del: ct,
@@ -2216,10 +2216,10 @@ var CRC32 = /* @__PURE__ */ function() {
2216
2216
  CheckField,
2217
2217
  prep_blob,
2218
2218
  bconcat,
2219
- use_zlib: k,
2219
+ use_zlib: N,
2220
2220
  _deflateRaw: We,
2221
- _inflateRaw: Ke,
2222
- consts: te
2221
+ _inflateRaw: je,
2222
+ consts: re
2223
2223
  }, r;
2224
2224
  }();
2225
2225
  function blobify(e) {
@@ -4489,10 +4489,10 @@ var DBF = /* @__PURE__ */ function() {
4489
4489
  }
4490
4490
  var u = 0, _ = 521;
4491
4491
  p == 2 && (u = c.read_shift(2)), c.l += 3, p != 2 && (u = c.read_shift(4)), u > 1048576 && (u = 1e6), p != 2 && (_ = c.read_shift(2));
4492
- var C = c.read_shift(2), I = o.codepage || 1252;
4493
- p != 2 && (c.l += 16, c.read_shift(1), c[c.l] !== 0 && (I = e[c[c.l]]), c.l += 1, c.l += 2), m && (c.l += 36);
4494
- for (var F = [], b = {}, G = Math.min(c.length, p == 2 ? 521 : _ - 10 - (d ? 264 : 0)), z = m ? 32 : 11; c.l < G && c[c.l] != 13; )
4495
- switch (b = {}, b.name = $cptable.utils.decode(I, c.slice(c.l, c.l + z)).replace(/[\u0000\r\n].*$/g, ""), c.l += z, b.type = String.fromCharCode(c.read_shift(1)), p != 2 && !m && (b.offset = c.read_shift(4)), b.len = c.read_shift(1), p == 2 && (b.offset = c.read_shift(2)), b.dec = c.read_shift(1), b.name.length && F.push(b), p != 2 && (c.l += m ? 13 : 14), b.type) {
4492
+ var C = c.read_shift(2), B = o.codepage || 1252;
4493
+ p != 2 && (c.l += 16, c.read_shift(1), c[c.l] !== 0 && (B = e[c[c.l]]), c.l += 1, c.l += 2), m && (c.l += 36);
4494
+ for (var k = [], b = {}, G = Math.min(c.length, p == 2 ? 521 : _ - 10 - (d ? 264 : 0)), z = m ? 32 : 11; c.l < G && c[c.l] != 13; )
4495
+ switch (b = {}, b.name = $cptable.utils.decode(B, c.slice(c.l, c.l + z)).replace(/[\u0000\r\n].*$/g, ""), c.l += z, b.type = String.fromCharCode(c.read_shift(1)), p != 2 && !m && (b.offset = c.read_shift(4)), b.len = c.read_shift(1), p == 2 && (b.offset = c.read_shift(2)), b.dec = c.read_shift(1), b.name.length && k.push(b), p != 2 && (c.l += m ? 13 : 14), b.type) {
4496
4496
  case "B":
4497
4497
  (!d || b.len != 8) && o.WTF && console.log("Skipping " + b.name + ":" + b.type);
4498
4498
  break;
@@ -4532,40 +4532,40 @@ var DBF = /* @__PURE__ */ function() {
4532
4532
  }
4533
4533
  if (c[c.l] !== 13 && (c.l = _ - 1), c.read_shift(1) !== 13) throw new Error("DBF Terminator not found " + c.l + " " + c[c.l]);
4534
4534
  c.l = _;
4535
- var A = 0, X = 0;
4536
- for (f[0] = [], X = 0; X != F.length; ++X) f[0][X] = F[X].name;
4535
+ var A = 0, H = 0;
4536
+ for (f[0] = [], H = 0; H != k.length; ++H) f[0][H] = k[H].name;
4537
4537
  for (; u-- > 0; ) {
4538
4538
  if (c[c.l] === 42) {
4539
4539
  c.l += C;
4540
4540
  continue;
4541
4541
  }
4542
- for (++c.l, f[++A] = [], X = 0, X = 0; X != F.length; ++X) {
4543
- var S = c.slice(c.l, c.l + F[X].len);
4544
- c.l += F[X].len, prep_blob(S, 0);
4545
- var O = $cptable.utils.decode(I, S);
4546
- switch (F[X].type) {
4542
+ for (++c.l, f[++A] = [], H = 0, H = 0; H != k.length; ++H) {
4543
+ var S = c.slice(c.l, c.l + k[H].len);
4544
+ c.l += k[H].len, prep_blob(S, 0);
4545
+ var O = $cptable.utils.decode(B, S);
4546
+ switch (k[H].type) {
4547
4547
  case "C":
4548
- O.trim().length && (f[A][X] = O.replace(/\s+$/, ""));
4548
+ O.trim().length && (f[A][H] = O.replace(/\s+$/, ""));
4549
4549
  break;
4550
4550
  case "D":
4551
- O.length === 8 ? f[A][X] = new Date(+O.slice(0, 4), +O.slice(4, 6) - 1, +O.slice(6, 8)) : f[A][X] = O;
4551
+ O.length === 8 ? f[A][H] = new Date(+O.slice(0, 4), +O.slice(4, 6) - 1, +O.slice(6, 8)) : f[A][H] = O;
4552
4552
  break;
4553
4553
  case "F":
4554
- f[A][X] = parseFloat(O.trim());
4554
+ f[A][H] = parseFloat(O.trim());
4555
4555
  break;
4556
4556
  case "+":
4557
4557
  case "I":
4558
- f[A][X] = m ? S.read_shift(-4, "i") ^ 2147483648 : S.read_shift(4, "i");
4558
+ f[A][H] = m ? S.read_shift(-4, "i") ^ 2147483648 : S.read_shift(4, "i");
4559
4559
  break;
4560
4560
  case "L":
4561
4561
  switch (O.trim().toUpperCase()) {
4562
4562
  case "Y":
4563
4563
  case "T":
4564
- f[A][X] = !0;
4564
+ f[A][H] = !0;
4565
4565
  break;
4566
4566
  case "N":
4567
4567
  case "F":
4568
- f[A][X] = !1;
4568
+ f[A][H] = !1;
4569
4569
  break;
4570
4570
  case "":
4571
4571
  case "?":
@@ -4576,43 +4576,43 @@ var DBF = /* @__PURE__ */ function() {
4576
4576
  break;
4577
4577
  case "M":
4578
4578
  if (!h) throw new Error("DBF Unexpected MEMO for type " + p.toString(16));
4579
- f[A][X] = "##MEMO##" + (m ? parseInt(O.trim(), 10) : S.read_shift(4));
4579
+ f[A][H] = "##MEMO##" + (m ? parseInt(O.trim(), 10) : S.read_shift(4));
4580
4580
  break;
4581
4581
  case "N":
4582
- O = O.replace(/\u0000/g, "").trim(), O && O != "." && (f[A][X] = +O || 0);
4582
+ O = O.replace(/\u0000/g, "").trim(), O && O != "." && (f[A][H] = +O || 0);
4583
4583
  break;
4584
4584
  case "@":
4585
- f[A][X] = new Date(S.read_shift(-8, "f") - 621356832e5);
4585
+ f[A][H] = new Date(S.read_shift(-8, "f") - 621356832e5);
4586
4586
  break;
4587
4587
  case "T":
4588
- f[A][X] = new Date((S.read_shift(4) - 2440588) * 864e5 + S.read_shift(4));
4588
+ f[A][H] = new Date((S.read_shift(4) - 2440588) * 864e5 + S.read_shift(4));
4589
4589
  break;
4590
4590
  case "Y":
4591
- f[A][X] = S.read_shift(4, "i") / 1e4 + S.read_shift(4, "i") / 1e4 * Math.pow(2, 32);
4591
+ f[A][H] = S.read_shift(4, "i") / 1e4 + S.read_shift(4, "i") / 1e4 * Math.pow(2, 32);
4592
4592
  break;
4593
4593
  case "O":
4594
- f[A][X] = -S.read_shift(-8, "f");
4594
+ f[A][H] = -S.read_shift(-8, "f");
4595
4595
  break;
4596
4596
  case "B":
4597
- if (d && F[X].len == 8) {
4598
- f[A][X] = S.read_shift(8, "f");
4597
+ if (d && k[H].len == 8) {
4598
+ f[A][H] = S.read_shift(8, "f");
4599
4599
  break;
4600
4600
  }
4601
4601
  /* falls through */
4602
4602
  case "G":
4603
4603
  case "P":
4604
- S.l += F[X].len;
4604
+ S.l += k[H].len;
4605
4605
  break;
4606
4606
  case "0":
4607
- if (F[X].name === "_NullFlags") break;
4607
+ if (k[H].name === "_NullFlags") break;
4608
4608
  /* falls through */
4609
4609
  default:
4610
- throw new Error("DBF Unsupported data type " + F[X].type);
4610
+ throw new Error("DBF Unsupported data type " + k[H].type);
4611
4611
  }
4612
4612
  }
4613
4613
  }
4614
4614
  if (p != 2 && c.l < c.length && c[c.l++] != 26) throw new Error("DBF EOF Marker missing " + (c.l - 1) + " of " + c.length + " " + c[c.l - 1].toString(16));
4615
- return o && o.sheetRows && (f = f.slice(0, o.sheetRows)), o.DBF = F, f;
4615
+ return o && o.sheetRows && (f = f.slice(0, o.sheetRows)), o.DBF = k, f;
4616
4616
  }
4617
4617
  function a(l, o) {
4618
4618
  var f = o || {};
@@ -4637,7 +4637,7 @@ var DBF = /* @__PURE__ */ function() {
4637
4637
  function s(l, o) {
4638
4638
  var f = o || {};
4639
4639
  if (+f.codepage >= 0 && set_cp(+f.codepage), f.type == "string") throw new Error("Cannot write DBF to JS string");
4640
- var c = buf_array(), p = sheet_to_json(l, { header: 1, raw: !0, cellDates: !0 }), h = p[0], d = p.slice(1), m = l["!cols"] || [], u = 0, _ = 0, C = 0, I = 1;
4640
+ var c = buf_array(), p = sheet_to_json(l, { header: 1, raw: !0, cellDates: !0 }), h = p[0], d = p.slice(1), m = l["!cols"] || [], u = 0, _ = 0, C = 0, B = 1;
4641
4641
  for (u = 0; u < h.length; ++u) {
4642
4642
  if (((m[u] || {}).DBF || {}).name) {
4643
4643
  h[u] = m[u].DBF.name, ++C;
@@ -4654,9 +4654,9 @@ var DBF = /* @__PURE__ */ function() {
4654
4654
  }
4655
4655
  }
4656
4656
  }
4657
- var F = safe_decode_range(l["!ref"]), b = [], G = [], z = [];
4658
- for (u = 0; u <= F.e.c - F.s.c; ++u) {
4659
- var A = "", X = "", S = 0, O = [];
4657
+ var k = safe_decode_range(l["!ref"]), b = [], G = [], z = [];
4658
+ for (u = 0; u <= k.e.c - k.s.c; ++u) {
4659
+ var A = "", H = "", S = 0, O = [];
4660
4660
  for (_ = 0; _ < d.length; ++_)
4661
4661
  d[_][u] != null && O.push(d[_][u]);
4662
4662
  if (O.length == 0 || h[u] == null) {
@@ -4667,39 +4667,39 @@ var DBF = /* @__PURE__ */ function() {
4667
4667
  switch (typeof O[_]) {
4668
4668
  /* TODO: check if L2 compat is desired */
4669
4669
  case "number":
4670
- X = "B";
4670
+ H = "B";
4671
4671
  break;
4672
4672
  case "string":
4673
- X = "C";
4673
+ H = "C";
4674
4674
  break;
4675
4675
  case "boolean":
4676
- X = "L";
4676
+ H = "L";
4677
4677
  break;
4678
4678
  case "object":
4679
- X = O[_] instanceof Date ? "D" : "C";
4679
+ H = O[_] instanceof Date ? "D" : "C";
4680
4680
  break;
4681
4681
  default:
4682
- X = "C";
4682
+ H = "C";
4683
4683
  }
4684
- S = Math.max(S, String(O[_]).length), A = A && A != X ? "C" : X;
4684
+ S = Math.max(S, String(O[_]).length), A = A && A != H ? "C" : H;
4685
4685
  }
4686
- S > 250 && (S = 250), X = ((m[u] || {}).DBF || {}).type, X == "C" && m[u].DBF.len > S && (S = m[u].DBF.len), A == "B" && X == "N" && (A = "N", z[u] = m[u].DBF.dec, S = m[u].DBF.len), G[u] = A == "C" || X == "N" ? S : i[A] || 0, I += G[u], b[u] = A;
4686
+ S > 250 && (S = 250), H = ((m[u] || {}).DBF || {}).type, H == "C" && m[u].DBF.len > S && (S = m[u].DBF.len), A == "B" && H == "N" && (A = "N", z[u] = m[u].DBF.dec, S = m[u].DBF.len), G[u] = A == "C" || H == "N" ? S : i[A] || 0, B += G[u], b[u] = A;
4687
4687
  }
4688
- var N = c.next(32);
4689
- for (N.write_shift(4, 318902576), N.write_shift(4, d.length), N.write_shift(2, 296 + 32 * C), N.write_shift(2, I), u = 0; u < 4; ++u) N.write_shift(4, 0);
4690
- for (N.write_shift(4, 0 | (+r[
4688
+ var D = c.next(32);
4689
+ for (D.write_shift(4, 318902576), D.write_shift(4, d.length), D.write_shift(2, 296 + 32 * C), D.write_shift(2, B), u = 0; u < 4; ++u) D.write_shift(4, 0);
4690
+ for (D.write_shift(4, 0 | (+r[
4691
4691
  /*::String(*/
4692
4692
  current_ansi
4693
4693
  /*::)*/
4694
4694
  ] || 3) << 8), u = 0, _ = 0; u < h.length; ++u)
4695
4695
  if (h[u] != null) {
4696
- var B = c.next(32), H = (h[u].slice(-10) + "\0\0\0\0\0\0\0\0\0\0\0").slice(0, 11);
4697
- B.write_shift(1, H, "sbcs"), B.write_shift(1, b[u] == "?" ? "C" : b[u], "sbcs"), B.write_shift(4, _), B.write_shift(1, G[u] || i[b[u]] || 0), B.write_shift(1, z[u] || 0), B.write_shift(1, 2), B.write_shift(4, 0), B.write_shift(1, 0), B.write_shift(4, 0), B.write_shift(4, 0), _ += G[u] || i[b[u]] || 0;
4696
+ var F = c.next(32), R = (h[u].slice(-10) + "\0\0\0\0\0\0\0\0\0\0\0").slice(0, 11);
4697
+ F.write_shift(1, R, "sbcs"), F.write_shift(1, b[u] == "?" ? "C" : b[u], "sbcs"), F.write_shift(4, _), F.write_shift(1, G[u] || i[b[u]] || 0), F.write_shift(1, z[u] || 0), F.write_shift(1, 2), F.write_shift(4, 0), F.write_shift(1, 0), F.write_shift(4, 0), F.write_shift(4, 0), _ += G[u] || i[b[u]] || 0;
4698
4698
  }
4699
- var ae = c.next(264);
4700
- for (ae.write_shift(4, 13), u = 0; u < 65; ++u) ae.write_shift(4, 0);
4699
+ var te = c.next(264);
4700
+ for (te.write_shift(4, 13), u = 0; u < 65; ++u) te.write_shift(4, 0);
4701
4701
  for (u = 0; u < d.length; ++u) {
4702
- var ne = c.next(I);
4702
+ var ne = c.next(B);
4703
4703
  for (ne.write_shift(1, 0), _ = 0; _ < h.length; ++_)
4704
4704
  if (h[_] != null)
4705
4705
  switch (b[_]) {
@@ -4718,8 +4718,8 @@ var DBF = /* @__PURE__ */ function() {
4718
4718
  d[u][_] ? (ne.write_shift(4, ("0000" + d[u][_].getFullYear()).slice(-4), "sbcs"), ne.write_shift(2, ("00" + (d[u][_].getMonth() + 1)).slice(-2), "sbcs"), ne.write_shift(2, ("00" + d[u][_].getDate()).slice(-2), "sbcs")) : ne.write_shift(8, "00000000", "sbcs");
4719
4719
  break;
4720
4720
  case "C":
4721
- var te = String(d[u][_] != null ? d[u][_] : "").slice(0, G[_]);
4722
- for (ne.write_shift(1, te, "sbcs"), C = 0; C < G[_] - te.length; ++C) ne.write_shift(1, 32);
4721
+ var re = String(d[u][_] != null ? d[u][_] : "").slice(0, G[_]);
4722
+ for (ne.write_shift(1, re, "sbcs"), C = 0; C < G[_] - re.length; ++C) ne.write_shift(1, 32);
4723
4723
  break;
4724
4724
  }
4725
4725
  }
@@ -4848,13 +4848,13 @@ var DBF = /* @__PURE__ */ function() {
4848
4848
  throw new Error("Unrecognized type " + d.type);
4849
4849
  }
4850
4850
  function i(h, d) {
4851
- var m = h.split(/[\n\r]+/), u = -1, _ = -1, C = 0, I = 0, F = [], b = [], G = null, z = {}, A = [], X = [], S = [], O = 0, N;
4851
+ var m = h.split(/[\n\r]+/), u = -1, _ = -1, C = 0, B = 0, k = [], b = [], G = null, z = {}, A = [], H = [], S = [], O = 0, D;
4852
4852
  for (+d.codepage >= 0 && set_cp(+d.codepage); C !== m.length; ++C) {
4853
4853
  O = 0;
4854
- var B = m[C].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, a).replace(r, t), H = B.replace(/;;/g, "\0").split(";").map(function(D) {
4855
- return D.replace(/\u0000/g, ";");
4856
- }), ae = H[0], ne;
4857
- if (B.length > 0) switch (ae) {
4854
+ var F = m[C].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, a).replace(r, t), R = F.replace(/;;/g, "\0").split(";").map(function(I) {
4855
+ return I.replace(/\u0000/g, ";");
4856
+ }), te = R[0], ne;
4857
+ if (F.length > 0) switch (te) {
4858
4858
  case "ID":
4859
4859
  break;
4860
4860
  /* header */
@@ -4871,61 +4871,61 @@ var DBF = /* @__PURE__ */ function() {
4871
4871
  break;
4872
4872
  /* window? */
4873
4873
  case "P":
4874
- H[1].charAt(0) == "P" && b.push(B.slice(3).replace(/;;/g, ";"));
4874
+ R[1].charAt(0) == "P" && b.push(F.slice(3).replace(/;;/g, ";"));
4875
4875
  break;
4876
4876
  case "C":
4877
- var ce = !1, te = !1, xe = !1, he = !1, ve = -1, ge = -1;
4878
- for (I = 1; I < H.length; ++I) switch (H[I].charAt(0)) {
4877
+ var ce = !1, re = !1, xe = !1, he = !1, ve = -1, ge = -1;
4878
+ for (B = 1; B < R.length; ++B) switch (R[B].charAt(0)) {
4879
4879
  case "A":
4880
4880
  break;
4881
4881
  // TODO: comment
4882
4882
  case "X":
4883
- _ = parseInt(H[I].slice(1)) - 1, te = !0;
4883
+ _ = parseInt(R[B].slice(1)) - 1, re = !0;
4884
4884
  break;
4885
4885
  case "Y":
4886
- for (u = parseInt(H[I].slice(1)) - 1, te || (_ = 0), N = F.length; N <= u; ++N) F[N] = [];
4886
+ for (u = parseInt(R[B].slice(1)) - 1, re || (_ = 0), D = k.length; D <= u; ++D) k[D] = [];
4887
4887
  break;
4888
4888
  case "K":
4889
- ne = H[I].slice(1), ne.charAt(0) === '"' ? ne = ne.slice(1, ne.length - 1) : ne === "TRUE" ? ne = !0 : ne === "FALSE" ? ne = !1 : isNaN(fuzzynum(ne)) ? isNaN(fuzzydate(ne).getDate()) || (ne = parseDate(ne)) : (ne = fuzzynum(ne), G !== null && fmt_is_date(G) && (ne = numdate(ne))), ce = !0;
4889
+ ne = R[B].slice(1), ne.charAt(0) === '"' ? ne = ne.slice(1, ne.length - 1) : ne === "TRUE" ? ne = !0 : ne === "FALSE" ? ne = !1 : isNaN(fuzzynum(ne)) ? isNaN(fuzzydate(ne).getDate()) || (ne = parseDate(ne)) : (ne = fuzzynum(ne), G !== null && fmt_is_date(G) && (ne = numdate(ne))), ce = !0;
4890
4890
  break;
4891
4891
  case "E":
4892
4892
  he = !0;
4893
- var k = rc_to_a1(H[I].slice(1), { r: u, c: _ });
4894
- F[u][_] = [F[u][_], k];
4893
+ var N = rc_to_a1(R[B].slice(1), { r: u, c: _ });
4894
+ k[u][_] = [k[u][_], N];
4895
4895
  break;
4896
4896
  case "S":
4897
- xe = !0, F[u][_] = [F[u][_], "S5S"];
4897
+ xe = !0, k[u][_] = [k[u][_], "S5S"];
4898
4898
  break;
4899
4899
  case "G":
4900
4900
  break;
4901
4901
  // unknown
4902
4902
  case "R":
4903
- ve = parseInt(H[I].slice(1)) - 1;
4903
+ ve = parseInt(R[B].slice(1)) - 1;
4904
4904
  break;
4905
4905
  case "C":
4906
- ge = parseInt(H[I].slice(1)) - 1;
4906
+ ge = parseInt(R[B].slice(1)) - 1;
4907
4907
  break;
4908
4908
  default:
4909
- if (d && d.WTF) throw new Error("SYLK bad record " + B);
4909
+ if (d && d.WTF) throw new Error("SYLK bad record " + F);
4910
4910
  }
4911
- if (ce && (F[u][_] && F[u][_].length == 2 ? F[u][_][0] = ne : F[u][_] = ne, G = null), xe) {
4911
+ if (ce && (k[u][_] && k[u][_].length == 2 ? k[u][_][0] = ne : k[u][_] = ne, G = null), xe) {
4912
4912
  if (he) throw new Error("SYLK shared formula cannot have own formula");
4913
- var M = ve > -1 && F[ve][ge];
4914
- if (!M || !M[1]) throw new Error("SYLK shared formula cannot find base");
4915
- F[u][_][1] = shift_formula_str(M[1], { r: u - ve, c: _ - ge });
4913
+ var V = ve > -1 && k[ve][ge];
4914
+ if (!V || !V[1]) throw new Error("SYLK shared formula cannot find base");
4915
+ k[u][_][1] = shift_formula_str(V[1], { r: u - ve, c: _ - ge });
4916
4916
  }
4917
4917
  break;
4918
4918
  case "F":
4919
4919
  var P = 0;
4920
- for (I = 1; I < H.length; ++I) switch (H[I].charAt(0)) {
4920
+ for (B = 1; B < R.length; ++B) switch (R[B].charAt(0)) {
4921
4921
  case "X":
4922
- _ = parseInt(H[I].slice(1)) - 1, ++P;
4922
+ _ = parseInt(R[B].slice(1)) - 1, ++P;
4923
4923
  break;
4924
4924
  case "Y":
4925
- for (u = parseInt(H[I].slice(1)) - 1, N = F.length; N <= u; ++N) F[N] = [];
4925
+ for (u = parseInt(R[B].slice(1)) - 1, D = k.length; D <= u; ++D) k[D] = [];
4926
4926
  break;
4927
4927
  case "M":
4928
- O = parseInt(H[I].slice(1)) / 20;
4928
+ O = parseInt(R[B].slice(1)) / 20;
4929
4929
  break;
4930
4930
  case "F":
4931
4931
  break;
@@ -4934,7 +4934,7 @@ var DBF = /* @__PURE__ */ function() {
4934
4934
  break;
4935
4935
  /* hide grid */
4936
4936
  case "P":
4937
- G = b[parseInt(H[I].slice(1))];
4937
+ G = b[parseInt(R[B].slice(1))];
4938
4938
  break;
4939
4939
  case "S":
4940
4940
  break;
@@ -4946,30 +4946,30 @@ var DBF = /* @__PURE__ */ function() {
4946
4946
  break;
4947
4947
  /* font */
4948
4948
  case "W":
4949
- for (S = H[I].slice(1).split(" "), N = parseInt(S[0], 10); N <= parseInt(S[1], 10); ++N)
4950
- O = parseInt(S[2], 10), X[N - 1] = O === 0 ? { hidden: !0 } : { wch: O }, process_col(X[N - 1]);
4949
+ for (S = R[B].slice(1).split(" "), D = parseInt(S[0], 10); D <= parseInt(S[1], 10); ++D)
4950
+ O = parseInt(S[2], 10), H[D - 1] = O === 0 ? { hidden: !0 } : { wch: O }, process_col(H[D - 1]);
4951
4951
  break;
4952
4952
  case "C":
4953
- _ = parseInt(H[I].slice(1)) - 1, X[_] || (X[_] = {});
4953
+ _ = parseInt(R[B].slice(1)) - 1, H[_] || (H[_] = {});
4954
4954
  break;
4955
4955
  case "R":
4956
- u = parseInt(H[I].slice(1)) - 1, A[u] || (A[u] = {}), O > 0 ? (A[u].hpt = O, A[u].hpx = pt2px(O)) : O === 0 && (A[u].hidden = !0);
4956
+ u = parseInt(R[B].slice(1)) - 1, A[u] || (A[u] = {}), O > 0 ? (A[u].hpt = O, A[u].hpx = pt2px(O)) : O === 0 && (A[u].hidden = !0);
4957
4957
  break;
4958
4958
  default:
4959
- if (d && d.WTF) throw new Error("SYLK bad record " + B);
4959
+ if (d && d.WTF) throw new Error("SYLK bad record " + F);
4960
4960
  }
4961
4961
  P < 1 && (G = null);
4962
4962
  break;
4963
4963
  default:
4964
- if (d && d.WTF) throw new Error("SYLK bad record " + B);
4964
+ if (d && d.WTF) throw new Error("SYLK bad record " + F);
4965
4965
  }
4966
4966
  }
4967
- return A.length > 0 && (z["!rows"] = A), X.length > 0 && (z["!cols"] = X), d && d.sheetRows && (F = F.slice(0, d.sheetRows)), [F, z];
4967
+ return A.length > 0 && (z["!rows"] = A), H.length > 0 && (z["!cols"] = H), d && d.sheetRows && (k = k.slice(0, d.sheetRows)), [k, z];
4968
4968
  }
4969
4969
  function s(h, d) {
4970
4970
  var m = n(h, d), u = m[0], _ = m[1], C = aoa_to_sheet(u, d);
4971
- return keys(_).forEach(function(I) {
4972
- C[I] = _[I];
4971
+ return keys(_).forEach(function(B) {
4972
+ C[B] = _[B];
4973
4973
  }), C;
4974
4974
  }
4975
4975
  function l(h, d) {
@@ -5009,15 +5009,15 @@ var DBF = /* @__PURE__ */ function() {
5009
5009
  });
5010
5010
  }
5011
5011
  function p(h, d) {
5012
- var m = ["ID;PWXL;N;E"], u = [], _ = safe_decode_range(h["!ref"]), C, I = Array.isArray(h), F = `\r
5012
+ var m = ["ID;PWXL;N;E"], u = [], _ = safe_decode_range(h["!ref"]), C, B = Array.isArray(h), k = `\r
5013
5013
  `;
5014
5014
  m.push("P;PGeneral"), m.push("F;P0;DG0G8;M255"), h["!cols"] && f(m, h["!cols"]), h["!rows"] && c(m, h["!rows"]), m.push("B;Y" + (_.e.r - _.s.r + 1) + ";X" + (_.e.c - _.s.c + 1) + ";D" + [_.s.c, _.s.r, _.e.c, _.e.r].join(" "));
5015
5015
  for (var b = _.s.r; b <= _.e.r; ++b)
5016
5016
  for (var G = _.s.c; G <= _.e.c; ++G) {
5017
5017
  var z = encode_cell({ r: b, c: G });
5018
- C = I ? (h[b] || [])[G] : h[z], !(!C || C.v == null && (!C.f || C.F)) && u.push(o(C, h, b, G));
5018
+ C = B ? (h[b] || [])[G] : h[z], !(!C || C.v == null && (!C.f || C.F)) && u.push(o(C, h, b, G));
5019
5019
  }
5020
- return m.join(F) + F + u.join(F) + F + "E" + F;
5020
+ return m.join(k) + k + u.join(k) + k + "E" + k;
5021
5021
  }
5022
5022
  return {
5023
5023
  to_workbook: l,
@@ -5113,8 +5113,8 @@ var DBF = /* @__PURE__ */ function() {
5113
5113
  }
5114
5114
  s(f, -1, 0, "EOD");
5115
5115
  var C = `\r
5116
- `, I = f.join(C);
5117
- return I;
5116
+ `, B = f.join(C);
5117
+ return B;
5118
5118
  };
5119
5119
  }();
5120
5120
  return {
@@ -5133,30 +5133,30 @@ var DBF = /* @__PURE__ */ function() {
5133
5133
  function t(p, h) {
5134
5134
  for (var d = p.split(`
5135
5135
  `), m = -1, u = -1, _ = 0, C = []; _ !== d.length; ++_) {
5136
- var I = d[_].trim().split(":");
5137
- if (I[0] === "cell") {
5138
- var F = decode_cell(I[1]);
5139
- if (C.length <= F.r) for (m = C.length; m <= F.r; ++m) C[m] || (C[m] = []);
5140
- switch (m = F.r, u = F.c, I[2]) {
5136
+ var B = d[_].trim().split(":");
5137
+ if (B[0] === "cell") {
5138
+ var k = decode_cell(B[1]);
5139
+ if (C.length <= k.r) for (m = C.length; m <= k.r; ++m) C[m] || (C[m] = []);
5140
+ switch (m = k.r, u = k.c, B[2]) {
5141
5141
  case "t":
5142
- C[m][u] = e(I[3]);
5142
+ C[m][u] = e(B[3]);
5143
5143
  break;
5144
5144
  case "v":
5145
- C[m][u] = +I[3];
5145
+ C[m][u] = +B[3];
5146
5146
  break;
5147
5147
  case "vtf":
5148
- var b = I[I.length - 1];
5148
+ var b = B[B.length - 1];
5149
5149
  /* falls through */
5150
5150
  case "vtc":
5151
- switch (I[3]) {
5151
+ switch (B[3]) {
5152
5152
  case "nl":
5153
- C[m][u] = !!+I[4];
5153
+ C[m][u] = !!+B[4];
5154
5154
  break;
5155
5155
  default:
5156
- C[m][u] = +I[4];
5156
+ C[m][u] = +B[4];
5157
5157
  break;
5158
5158
  }
5159
- I[2] == "vtf" && (C[m][u] = [C[m][u], b]);
5159
+ B[2] == "vtf" && (C[m][u] = [C[m][u], b]);
5160
5160
  }
5161
5161
  }
5162
5162
  }
@@ -5185,9 +5185,9 @@ var DBF = /* @__PURE__ */ function() {
5185
5185
  `), o = "--SocialCalcSpreadsheetControlSave--";
5186
5186
  function f(p) {
5187
5187
  if (!p || !p["!ref"]) return "";
5188
- for (var h = [], d = [], m, u = "", _ = decode_range(p["!ref"]), C = Array.isArray(p), I = _.s.r; I <= _.e.r; ++I)
5189
- for (var F = _.s.c; F <= _.e.c; ++F)
5190
- if (u = encode_cell({ r: I, c: F }), m = C ? (p[I] || [])[F] : p[u], !(!m || m.v == null || m.t === "z")) {
5188
+ for (var h = [], d = [], m, u = "", _ = decode_range(p["!ref"]), C = Array.isArray(p), B = _.s.r; B <= _.e.r; ++B)
5189
+ for (var k = _.s.c; k <= _.e.c; ++k)
5190
+ if (u = encode_cell({ r: B, c: k }), m = C ? (p[B] || [])[k] : p[u], !(!m || m.v == null || m.t === "z")) {
5191
5191
  switch (d = ["cell", u, "t"], m.t) {
5192
5192
  case "s":
5193
5193
  case "str":
@@ -5228,13 +5228,13 @@ var DBF = /* @__PURE__ */ function() {
5228
5228
  var h = p || {}, d = [];
5229
5229
  if (!c || c.length === 0) return d;
5230
5230
  for (var m = c.split(/[\r\n]/), u = m.length - 1; u >= 0 && m[u].length === 0; ) --u;
5231
- for (var _ = 10, C = 0, I = 0; I <= u; ++I)
5232
- C = m[I].indexOf(" "), C == -1 ? C = m[I].length : C++, _ = Math.max(_, C);
5233
- for (I = 0; I <= u; ++I) {
5234
- d[I] = [];
5235
- var F = 0;
5236
- for (e(m[I].slice(0, _).trim(), d, I, F, h), F = 1; F <= (m[I].length - _) / 10 + 1; ++F)
5237
- e(m[I].slice(_ + (F - 1) * 10, _ + F * 10).trim(), d, I, F, h);
5231
+ for (var _ = 10, C = 0, B = 0; B <= u; ++B)
5232
+ C = m[B].indexOf(" "), C == -1 ? C = m[B].length : C++, _ = Math.max(_, C);
5233
+ for (B = 0; B <= u; ++B) {
5234
+ d[B] = [];
5235
+ var k = 0;
5236
+ for (e(m[B].slice(0, _).trim(), d, B, k, h), k = 1; k <= (m[B].length - _) / 10 + 1; ++k)
5237
+ e(m[B].slice(_ + (k - 1) * 10, _ + k * 10).trim(), d, B, k, h);
5238
5238
  }
5239
5239
  return h.sheetRows && (d = d.slice(0, h.sheetRows)), d;
5240
5240
  }
@@ -5273,37 +5273,37 @@ var DBF = /* @__PURE__ */ function() {
5273
5273
  function i(c, p) {
5274
5274
  var h = p || {}, d = "", m = h.dense ? [] : {}, u = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
5275
5275
  c.slice(0, 4) == "sep=" ? c.charCodeAt(5) == 13 && c.charCodeAt(6) == 10 ? (d = c.charAt(4), c = c.slice(7)) : c.charCodeAt(5) == 13 || c.charCodeAt(5) == 10 ? (d = c.charAt(4), c = c.slice(6)) : d = n(c.slice(0, 1024)) : h && h.FS ? d = h.FS : d = n(c.slice(0, 1024));
5276
- var _ = 0, C = 0, I = 0, F = 0, b = 0, G = d.charCodeAt(0), z = !1, A = 0, X = c.charCodeAt(0);
5276
+ var _ = 0, C = 0, B = 0, k = 0, b = 0, G = d.charCodeAt(0), z = !1, A = 0, H = c.charCodeAt(0);
5277
5277
  c = c.replace(/\r\n/mg, `
5278
5278
  `);
5279
5279
  var S = h.dateNF != null ? dateNF_regex(h.dateNF) : null;
5280
5280
  function O() {
5281
- var N = c.slice(F, b), B = {};
5282
- if (N.charAt(0) == '"' && N.charAt(N.length - 1) == '"' && (N = N.slice(1, -1).replace(/""/g, '"')), N.length === 0) B.t = "z";
5281
+ var D = c.slice(k, b), F = {};
5282
+ if (D.charAt(0) == '"' && D.charAt(D.length - 1) == '"' && (D = D.slice(1, -1).replace(/""/g, '"')), D.length === 0) F.t = "z";
5283
5283
  else if (h.raw)
5284
- B.t = "s", B.v = N;
5285
- else if (N.trim().length === 0)
5286
- B.t = "s", B.v = N;
5287
- else if (N.charCodeAt(0) == 61)
5288
- N.charCodeAt(1) == 34 && N.charCodeAt(N.length - 1) == 34 ? (B.t = "s", B.v = N.slice(2, -1).replace(/""/g, '"')) : fuzzyfmla(N) ? (B.t = "n", B.f = N.slice(1)) : (B.t = "s", B.v = N);
5289
- else if (N == "TRUE")
5290
- B.t = "b", B.v = !0;
5291
- else if (N == "FALSE")
5292
- B.t = "b", B.v = !1;
5293
- else if (!isNaN(I = fuzzynum(N)))
5294
- B.t = "n", h.cellText !== !1 && (B.w = N), B.v = I;
5295
- else if (!isNaN(fuzzydate(N).getDate()) || S && N.match(S)) {
5296
- B.z = h.dateNF || table_fmt[14];
5297
- var H = 0;
5298
- S && N.match(S) && (N = dateNF_fix(N, h.dateNF, N.match(S) || []), H = 1), h.cellDates ? (B.t = "d", B.v = parseDate(N, H)) : (B.t = "n", B.v = datenum(parseDate(N, H))), h.cellText !== !1 && (B.w = SSF_format(B.z, B.v instanceof Date ? datenum(B.v) : B.v)), h.cellNF || delete B.z;
5284
+ F.t = "s", F.v = D;
5285
+ else if (D.trim().length === 0)
5286
+ F.t = "s", F.v = D;
5287
+ else if (D.charCodeAt(0) == 61)
5288
+ D.charCodeAt(1) == 34 && D.charCodeAt(D.length - 1) == 34 ? (F.t = "s", F.v = D.slice(2, -1).replace(/""/g, '"')) : fuzzyfmla(D) ? (F.t = "n", F.f = D.slice(1)) : (F.t = "s", F.v = D);
5289
+ else if (D == "TRUE")
5290
+ F.t = "b", F.v = !0;
5291
+ else if (D == "FALSE")
5292
+ F.t = "b", F.v = !1;
5293
+ else if (!isNaN(B = fuzzynum(D)))
5294
+ F.t = "n", h.cellText !== !1 && (F.w = D), F.v = B;
5295
+ else if (!isNaN(fuzzydate(D).getDate()) || S && D.match(S)) {
5296
+ F.z = h.dateNF || table_fmt[14];
5297
+ var R = 0;
5298
+ S && D.match(S) && (D = dateNF_fix(D, h.dateNF, D.match(S) || []), R = 1), h.cellDates ? (F.t = "d", F.v = parseDate(D, R)) : (F.t = "n", F.v = datenum(parseDate(D, R))), h.cellText !== !1 && (F.w = SSF_format(F.z, F.v instanceof Date ? datenum(F.v) : F.v)), h.cellNF || delete F.z;
5299
5299
  } else
5300
- B.t = "s", B.v = N;
5301
- if (B.t == "z" || (h.dense ? (m[_] || (m[_] = []), m[_][C] = B) : m[encode_cell({ c: C, r: _ })] = B), F = b + 1, X = c.charCodeAt(F), u.e.c < C && (u.e.c = C), u.e.r < _ && (u.e.r = _), A == G) ++C;
5300
+ F.t = "s", F.v = D;
5301
+ if (F.t == "z" || (h.dense ? (m[_] || (m[_] = []), m[_][C] = F) : m[encode_cell({ c: C, r: _ })] = F), k = b + 1, H = c.charCodeAt(k), u.e.c < C && (u.e.c = C), u.e.r < _ && (u.e.r = _), A == G) ++C;
5302
5302
  else if (C = 0, ++_, h.sheetRows && h.sheetRows <= _) return !0;
5303
5303
  }
5304
5304
  e: for (; b < c.length; ++b) switch (A = c.charCodeAt(b)) {
5305
5305
  case 34:
5306
- X === 34 && (z = !z);
5306
+ H === 34 && (z = !z);
5307
5307
  break;
5308
5308
  case G:
5309
5309
  case 10:
@@ -5311,7 +5311,7 @@ var DBF = /* @__PURE__ */ function() {
5311
5311
  if (!z && O()) break e;
5312
5312
  break;
5313
5313
  }
5314
- return b - F > 0 && O(), m["!ref"] = encode_range(u), m;
5314
+ return b - k > 0 && O(), m["!ref"] = encode_range(u), m;
5315
5315
  }
5316
5316
  function s(c, p) {
5317
5317
  return !(p && p.PRN) || p.FS || c.slice(0, 4) == "sep=" || c.indexOf(" ") >= 0 || c.indexOf(",") >= 0 || c.indexOf(";") >= 0 ? i(c, p) : aoa_to_sheet(r(c, p), p);
@@ -5345,13 +5345,13 @@ var DBF = /* @__PURE__ */ function() {
5345
5345
  function f(c) {
5346
5346
  for (var p = [], h = safe_decode_range(c["!ref"]), d, m = Array.isArray(c), u = h.s.r; u <= h.e.r; ++u) {
5347
5347
  for (var _ = [], C = h.s.c; C <= h.e.c; ++C) {
5348
- var I = encode_cell({ r: u, c: C });
5349
- if (d = m ? (c[u] || [])[C] : c[I], !d || d.v == null) {
5348
+ var B = encode_cell({ r: u, c: C });
5349
+ if (d = m ? (c[u] || [])[C] : c[B], !d || d.v == null) {
5350
5350
  _.push(" ");
5351
5351
  continue;
5352
5352
  }
5353
- for (var F = (d.w || (format_cell(d), d.w) || "").slice(0, 10); F.length < 10; ) F += " ";
5354
- _.push(F + (C === 0 ? " " : ""));
5353
+ for (var k = (d.w || (format_cell(d), d.w) || "").slice(0, 10); k.length < 10; ) k += " ";
5354
+ _.push(k + (C === 0 ? " " : ""));
5355
5355
  }
5356
5356
  p.push(_.join(""));
5357
5357
  }
@@ -5364,79 +5364,79 @@ var DBF = /* @__PURE__ */ function() {
5364
5364
  from_sheet: f
5365
5365
  };
5366
5366
  }(), WK_ = /* @__PURE__ */ function() {
5367
- function e(k, M, P) {
5368
- if (k) {
5369
- prep_blob(k, k.l || 0);
5370
- for (var D = P.Enum || ve; k.l < k.length; ) {
5371
- var K = k.read_shift(2), se = D[K] || D[65535], le = k.read_shift(2), ie = k.l + le, Z = se.f && se.f(k, le, P);
5372
- if (k.l = ie, M(Z, se, K)) return;
5367
+ function e(N, V, P) {
5368
+ if (N) {
5369
+ prep_blob(N, N.l || 0);
5370
+ for (var I = P.Enum || ve; N.l < N.length; ) {
5371
+ var j = N.read_shift(2), se = I[j] || I[65535], le = N.read_shift(2), ie = N.l + le, Z = se.f && se.f(N, le, P);
5372
+ if (N.l = ie, V(Z, se, j)) return;
5373
5373
  }
5374
5374
  }
5375
5375
  }
5376
- function r(k, M) {
5377
- switch (M.type) {
5376
+ function r(N, V) {
5377
+ switch (V.type) {
5378
5378
  case "base64":
5379
- return t(s2a(Base64_decode(k)), M);
5379
+ return t(s2a(Base64_decode(N)), V);
5380
5380
  case "binary":
5381
- return t(s2a(k), M);
5381
+ return t(s2a(N), V);
5382
5382
  case "buffer":
5383
5383
  case "array":
5384
- return t(k, M);
5384
+ return t(N, V);
5385
5385
  }
5386
- throw "Unsupported type " + M.type;
5386
+ throw "Unsupported type " + V.type;
5387
5387
  }
5388
- function t(k, M) {
5389
- if (!k) return k;
5390
- var P = M || {}, D = P.dense ? [] : {}, K = "Sheet1", se = "", le = 0, ie = {}, Z = [], de = [], fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, Ee = P.sheetRows || 0;
5391
- if (k[2] == 0 && (k[3] == 8 || k[3] == 9) && k.length >= 16 && k[14] == 5 && k[15] === 108)
5388
+ function t(N, V) {
5389
+ if (!N) return N;
5390
+ var P = V || {}, I = P.dense ? [] : {}, j = "Sheet1", se = "", le = 0, ie = {}, Z = [], de = [], fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, Ee = P.sheetRows || 0;
5391
+ if (N[2] == 0 && (N[3] == 8 || N[3] == 9) && N.length >= 16 && N[14] == 5 && N[15] === 108)
5392
5392
  throw new Error("Unsupported Works 3 for Mac file");
5393
- if (k[2] == 2)
5394
- P.Enum = ve, e(k, function(re, Te, Ce) {
5393
+ if (N[2] == 2)
5394
+ P.Enum = ve, e(N, function(ae, ye, Ce) {
5395
5395
  switch (Ce) {
5396
5396
  case 0:
5397
- P.vers = re, re >= 4096 && (P.qpro = !0);
5397
+ P.vers = ae, ae >= 4096 && (P.qpro = !0);
5398
5398
  break;
5399
5399
  case 6:
5400
- fe = re;
5400
+ fe = ae;
5401
5401
  break;
5402
5402
  /* RANGE */
5403
5403
  case 204:
5404
- re && (se = re);
5404
+ ae && (se = ae);
5405
5405
  break;
5406
5406
  /* SHEETNAMECS */
5407
5407
  case 222:
5408
- se = re;
5408
+ se = ae;
5409
5409
  break;
5410
5410
  /* SHEETNAMELP */
5411
5411
  case 15:
5412
5412
  /* LABEL */
5413
5413
  case 51:
5414
- P.qpro || (re[1].v = re[1].v.slice(1));
5414
+ P.qpro || (ae[1].v = ae[1].v.slice(1));
5415
5415
  /* falls through */
5416
5416
  case 13:
5417
5417
  /* INTEGER */
5418
5418
  case 14:
5419
5419
  /* NUMBER */
5420
5420
  case 16:
5421
- Ce == 14 && (re[2] & 112) == 112 && (re[2] & 15) > 1 && (re[2] & 15) < 15 && (re[1].z = P.dateNF || table_fmt[14], P.cellDates && (re[1].t = "d", re[1].v = numdate(re[1].v))), P.qpro && re[3] > le && (D["!ref"] = encode_range(fe), ie[K] = D, Z.push(K), D = P.dense ? [] : {}, fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, le = re[3], K = se || "Sheet" + (le + 1), se = "");
5422
- var Fe = P.dense ? (D[re[0].r] || [])[re[0].c] : D[encode_cell(re[0])];
5421
+ Ce == 14 && (ae[2] & 112) == 112 && (ae[2] & 15) > 1 && (ae[2] & 15) < 15 && (ae[1].z = P.dateNF || table_fmt[14], P.cellDates && (ae[1].t = "d", ae[1].v = numdate(ae[1].v))), P.qpro && ae[3] > le && (I["!ref"] = encode_range(fe), ie[j] = I, Z.push(j), I = P.dense ? [] : {}, fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, le = ae[3], j = se || "Sheet" + (le + 1), se = "");
5422
+ var Fe = P.dense ? (I[ae[0].r] || [])[ae[0].c] : I[encode_cell(ae[0])];
5423
5423
  if (Fe) {
5424
- Fe.t = re[1].t, Fe.v = re[1].v, re[1].z != null && (Fe.z = re[1].z), re[1].f != null && (Fe.f = re[1].f);
5424
+ Fe.t = ae[1].t, Fe.v = ae[1].v, ae[1].z != null && (Fe.z = ae[1].z), ae[1].f != null && (Fe.f = ae[1].f);
5425
5425
  break;
5426
5426
  }
5427
- P.dense ? (D[re[0].r] || (D[re[0].r] = []), D[re[0].r][re[0].c] = re[1]) : D[encode_cell(re[0])] = re[1];
5427
+ P.dense ? (I[ae[0].r] || (I[ae[0].r] = []), I[ae[0].r][ae[0].c] = ae[1]) : I[encode_cell(ae[0])] = ae[1];
5428
5428
  break;
5429
5429
  }
5430
5430
  }, P);
5431
- else if (k[2] == 26 || k[2] == 14)
5432
- P.Enum = ge, k[2] == 14 && (P.qpro = !0, k.l = 0), e(k, function(re, Te, Ce) {
5431
+ else if (N[2] == 26 || N[2] == 14)
5432
+ P.Enum = ge, N[2] == 14 && (P.qpro = !0, N.l = 0), e(N, function(ae, ye, Ce) {
5433
5433
  switch (Ce) {
5434
5434
  case 204:
5435
- K = re;
5435
+ j = ae;
5436
5436
  break;
5437
5437
  /* SHEETNAMECS */
5438
5438
  case 22:
5439
- re[1].v = re[1].v.slice(1);
5439
+ ae[1].v = ae[1].v.slice(1);
5440
5440
  /* falls through */
5441
5441
  case 23:
5442
5442
  /* NUMBER17 */
@@ -5449,145 +5449,145 @@ var DBF = /* @__PURE__ */ function() {
5449
5449
  case 39:
5450
5450
  /* NUMBER27 */
5451
5451
  case 40:
5452
- if (re[3] > le && (D["!ref"] = encode_range(fe), ie[K] = D, Z.push(K), D = P.dense ? [] : {}, fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, le = re[3], K = "Sheet" + (le + 1)), Ee > 0 && re[0].r >= Ee) break;
5453
- P.dense ? (D[re[0].r] || (D[re[0].r] = []), D[re[0].r][re[0].c] = re[1]) : D[encode_cell(re[0])] = re[1], fe.e.c < re[0].c && (fe.e.c = re[0].c), fe.e.r < re[0].r && (fe.e.r = re[0].r);
5452
+ if (ae[3] > le && (I["!ref"] = encode_range(fe), ie[j] = I, Z.push(j), I = P.dense ? [] : {}, fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, le = ae[3], j = "Sheet" + (le + 1)), Ee > 0 && ae[0].r >= Ee) break;
5453
+ P.dense ? (I[ae[0].r] || (I[ae[0].r] = []), I[ae[0].r][ae[0].c] = ae[1]) : I[encode_cell(ae[0])] = ae[1], fe.e.c < ae[0].c && (fe.e.c = ae[0].c), fe.e.r < ae[0].r && (fe.e.r = ae[0].r);
5454
5454
  break;
5455
5455
  case 27:
5456
- re[14e3] && (de[re[14e3][0]] = re[14e3][1]);
5456
+ ae[14e3] && (de[ae[14e3][0]] = ae[14e3][1]);
5457
5457
  break;
5458
5458
  case 1537:
5459
- de[re[0]] = re[1], re[0] == le && (K = re[1]);
5459
+ de[ae[0]] = ae[1], ae[0] == le && (j = ae[1]);
5460
5460
  break;
5461
5461
  }
5462
5462
  }, P);
5463
- else throw new Error("Unrecognized LOTUS BOF " + k[2]);
5464
- if (D["!ref"] = encode_range(fe), ie[se || K] = D, Z.push(se || K), !de.length) return { SheetNames: Z, Sheets: ie };
5463
+ else throw new Error("Unrecognized LOTUS BOF " + N[2]);
5464
+ if (I["!ref"] = encode_range(fe), ie[se || j] = I, Z.push(se || j), !de.length) return { SheetNames: Z, Sheets: ie };
5465
5465
  for (var ue = {}, Se = [], me = 0; me < de.length; ++me) ie[Z[me]] ? (Se.push(de[me] || Z[me]), ue[de[me]] = ie[de[me]] || ie[Z[me]]) : (Se.push(de[me]), ue[de[me]] = { "!ref": "A1" });
5466
5466
  return { SheetNames: Se, Sheets: ue };
5467
5467
  }
5468
- function a(k, M) {
5469
- var P = M || {};
5468
+ function a(N, V) {
5469
+ var P = V || {};
5470
5470
  if (+P.codepage >= 0 && set_cp(+P.codepage), P.type == "string") throw new Error("Cannot write WK1 to JS string");
5471
- var D = buf_array(), K = safe_decode_range(k["!ref"]), se = Array.isArray(k), le = [];
5472
- write_biff_rec(D, 0, i(1030)), write_biff_rec(D, 6, o(K));
5473
- for (var ie = Math.min(K.e.r, 8191), Z = K.s.r; Z <= ie; ++Z)
5474
- for (var de = encode_row(Z), fe = K.s.c; fe <= K.e.c; ++fe) {
5475
- Z === K.s.r && (le[fe] = encode_col(fe));
5476
- var Ee = le[fe] + de, ue = se ? (k[Z] || [])[fe] : k[Ee];
5471
+ var I = buf_array(), j = safe_decode_range(N["!ref"]), se = Array.isArray(N), le = [];
5472
+ write_biff_rec(I, 0, i(1030)), write_biff_rec(I, 6, o(j));
5473
+ for (var ie = Math.min(j.e.r, 8191), Z = j.s.r; Z <= ie; ++Z)
5474
+ for (var de = encode_row(Z), fe = j.s.c; fe <= j.e.c; ++fe) {
5475
+ Z === j.s.r && (le[fe] = encode_col(fe));
5476
+ var Ee = le[fe] + de, ue = se ? (N[Z] || [])[fe] : N[Ee];
5477
5477
  if (!(!ue || ue.t == "z"))
5478
5478
  if (ue.t == "n")
5479
- (ue.v | 0) == ue.v && ue.v >= -32768 && ue.v <= 32767 ? write_biff_rec(D, 13, d(Z, fe, ue.v)) : write_biff_rec(D, 14, u(Z, fe, ue.v));
5479
+ (ue.v | 0) == ue.v && ue.v >= -32768 && ue.v <= 32767 ? write_biff_rec(I, 13, d(Z, fe, ue.v)) : write_biff_rec(I, 14, u(Z, fe, ue.v));
5480
5480
  else {
5481
5481
  var Se = format_cell(ue);
5482
- write_biff_rec(D, 15, p(Z, fe, Se.slice(0, 239)));
5482
+ write_biff_rec(I, 15, p(Z, fe, Se.slice(0, 239)));
5483
5483
  }
5484
5484
  }
5485
- return write_biff_rec(D, 1), D.end();
5485
+ return write_biff_rec(I, 1), I.end();
5486
5486
  }
5487
- function n(k, M) {
5488
- var P = M || {};
5487
+ function n(N, V) {
5488
+ var P = V || {};
5489
5489
  if (+P.codepage >= 0 && set_cp(+P.codepage), P.type == "string") throw new Error("Cannot write WK3 to JS string");
5490
- var D = buf_array();
5491
- write_biff_rec(D, 0, s(k));
5492
- for (var K = 0, se = 0; K < k.SheetNames.length; ++K) (k.Sheets[k.SheetNames[K]] || {})["!ref"] && write_biff_rec(D, 27, he(k.SheetNames[K], se++));
5490
+ var I = buf_array();
5491
+ write_biff_rec(I, 0, s(N));
5492
+ for (var j = 0, se = 0; j < N.SheetNames.length; ++j) (N.Sheets[N.SheetNames[j]] || {})["!ref"] && write_biff_rec(I, 27, he(N.SheetNames[j], se++));
5493
5493
  var le = 0;
5494
- for (K = 0; K < k.SheetNames.length; ++K) {
5495
- var ie = k.Sheets[k.SheetNames[K]];
5494
+ for (j = 0; j < N.SheetNames.length; ++j) {
5495
+ var ie = N.Sheets[N.SheetNames[j]];
5496
5496
  if (!(!ie || !ie["!ref"])) {
5497
5497
  for (var Z = safe_decode_range(ie["!ref"]), de = Array.isArray(ie), fe = [], Ee = Math.min(Z.e.r, 8191), ue = Z.s.r; ue <= Ee; ++ue)
5498
5498
  for (var Se = encode_row(ue), me = Z.s.c; me <= Z.e.c; ++me) {
5499
5499
  ue === Z.s.r && (fe[me] = encode_col(me));
5500
- var re = fe[me] + Se, Te = de ? (ie[ue] || [])[me] : ie[re];
5501
- if (!(!Te || Te.t == "z"))
5502
- if (Te.t == "n")
5503
- write_biff_rec(D, 23, O(ue, me, le, Te.v));
5500
+ var ae = fe[me] + Se, ye = de ? (ie[ue] || [])[me] : ie[ae];
5501
+ if (!(!ye || ye.t == "z"))
5502
+ if (ye.t == "n")
5503
+ write_biff_rec(I, 23, O(ue, me, le, ye.v));
5504
5504
  else {
5505
- var Ce = format_cell(Te);
5506
- write_biff_rec(D, 22, A(ue, me, le, Ce.slice(0, 239)));
5505
+ var Ce = format_cell(ye);
5506
+ write_biff_rec(I, 22, A(ue, me, le, Ce.slice(0, 239)));
5507
5507
  }
5508
5508
  }
5509
5509
  ++le;
5510
5510
  }
5511
5511
  }
5512
- return write_biff_rec(D, 1), D.end();
5512
+ return write_biff_rec(I, 1), I.end();
5513
5513
  }
5514
- function i(k) {
5515
- var M = new_buf(2);
5516
- return M.write_shift(2, k), M;
5514
+ function i(N) {
5515
+ var V = new_buf(2);
5516
+ return V.write_shift(2, N), V;
5517
5517
  }
5518
- function s(k) {
5519
- var M = new_buf(26);
5520
- M.write_shift(2, 4096), M.write_shift(2, 4), M.write_shift(4, 0);
5521
- for (var P = 0, D = 0, K = 0, se = 0; se < k.SheetNames.length; ++se) {
5522
- var le = k.SheetNames[se], ie = k.Sheets[le];
5518
+ function s(N) {
5519
+ var V = new_buf(26);
5520
+ V.write_shift(2, 4096), V.write_shift(2, 4), V.write_shift(4, 0);
5521
+ for (var P = 0, I = 0, j = 0, se = 0; se < N.SheetNames.length; ++se) {
5522
+ var le = N.SheetNames[se], ie = N.Sheets[le];
5523
5523
  if (!(!ie || !ie["!ref"])) {
5524
- ++K;
5524
+ ++j;
5525
5525
  var Z = decode_range(ie["!ref"]);
5526
- P < Z.e.r && (P = Z.e.r), D < Z.e.c && (D = Z.e.c);
5526
+ P < Z.e.r && (P = Z.e.r), I < Z.e.c && (I = Z.e.c);
5527
5527
  }
5528
5528
  }
5529
- return P > 8191 && (P = 8191), M.write_shift(2, P), M.write_shift(1, K), M.write_shift(1, D), M.write_shift(2, 0), M.write_shift(2, 0), M.write_shift(1, 1), M.write_shift(1, 2), M.write_shift(4, 0), M.write_shift(4, 0), M;
5530
- }
5531
- function l(k, M, P) {
5532
- var D = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
5533
- return M == 8 && P.qpro ? (D.s.c = k.read_shift(1), k.l++, D.s.r = k.read_shift(2), D.e.c = k.read_shift(1), k.l++, D.e.r = k.read_shift(2), D) : (D.s.c = k.read_shift(2), D.s.r = k.read_shift(2), M == 12 && P.qpro && (k.l += 2), D.e.c = k.read_shift(2), D.e.r = k.read_shift(2), M == 12 && P.qpro && (k.l += 2), D.s.c == 65535 && (D.s.c = D.e.c = D.s.r = D.e.r = 0), D);
5534
- }
5535
- function o(k) {
5536
- var M = new_buf(8);
5537
- return M.write_shift(2, k.s.c), M.write_shift(2, k.s.r), M.write_shift(2, k.e.c), M.write_shift(2, k.e.r), M;
5538
- }
5539
- function f(k, M, P) {
5540
- var D = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0, 0];
5541
- return P.qpro && P.vers != 20768 ? (D[0].c = k.read_shift(1), D[3] = k.read_shift(1), D[0].r = k.read_shift(2), k.l += 2) : (D[2] = k.read_shift(1), D[0].c = k.read_shift(2), D[0].r = k.read_shift(2)), D;
5542
- }
5543
- function c(k, M, P) {
5544
- var D = k.l + M, K = f(k, M, P);
5545
- if (K[1].t = "s", P.vers == 20768) {
5546
- k.l++;
5547
- var se = k.read_shift(1);
5548
- return K[1].v = k.read_shift(se, "utf8"), K;
5529
+ return P > 8191 && (P = 8191), V.write_shift(2, P), V.write_shift(1, j), V.write_shift(1, I), V.write_shift(2, 0), V.write_shift(2, 0), V.write_shift(1, 1), V.write_shift(1, 2), V.write_shift(4, 0), V.write_shift(4, 0), V;
5530
+ }
5531
+ function l(N, V, P) {
5532
+ var I = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
5533
+ return V == 8 && P.qpro ? (I.s.c = N.read_shift(1), N.l++, I.s.r = N.read_shift(2), I.e.c = N.read_shift(1), N.l++, I.e.r = N.read_shift(2), I) : (I.s.c = N.read_shift(2), I.s.r = N.read_shift(2), V == 12 && P.qpro && (N.l += 2), I.e.c = N.read_shift(2), I.e.r = N.read_shift(2), V == 12 && P.qpro && (N.l += 2), I.s.c == 65535 && (I.s.c = I.e.c = I.s.r = I.e.r = 0), I);
5534
+ }
5535
+ function o(N) {
5536
+ var V = new_buf(8);
5537
+ return V.write_shift(2, N.s.c), V.write_shift(2, N.s.r), V.write_shift(2, N.e.c), V.write_shift(2, N.e.r), V;
5538
+ }
5539
+ function f(N, V, P) {
5540
+ var I = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0, 0];
5541
+ return P.qpro && P.vers != 20768 ? (I[0].c = N.read_shift(1), I[3] = N.read_shift(1), I[0].r = N.read_shift(2), N.l += 2) : (I[2] = N.read_shift(1), I[0].c = N.read_shift(2), I[0].r = N.read_shift(2)), I;
5542
+ }
5543
+ function c(N, V, P) {
5544
+ var I = N.l + V, j = f(N, V, P);
5545
+ if (j[1].t = "s", P.vers == 20768) {
5546
+ N.l++;
5547
+ var se = N.read_shift(1);
5548
+ return j[1].v = N.read_shift(se, "utf8"), j;
5549
5549
  }
5550
- return P.qpro && k.l++, K[1].v = k.read_shift(D - k.l, "cstr"), K;
5551
- }
5552
- function p(k, M, P) {
5553
- var D = new_buf(7 + P.length);
5554
- D.write_shift(1, 255), D.write_shift(2, M), D.write_shift(2, k), D.write_shift(1, 39);
5555
- for (var K = 0; K < D.length; ++K) {
5556
- var se = P.charCodeAt(K);
5557
- D.write_shift(1, se >= 128 ? 95 : se);
5550
+ return P.qpro && N.l++, j[1].v = N.read_shift(I - N.l, "cstr"), j;
5551
+ }
5552
+ function p(N, V, P) {
5553
+ var I = new_buf(7 + P.length);
5554
+ I.write_shift(1, 255), I.write_shift(2, V), I.write_shift(2, N), I.write_shift(1, 39);
5555
+ for (var j = 0; j < I.length; ++j) {
5556
+ var se = P.charCodeAt(j);
5557
+ I.write_shift(1, se >= 128 ? 95 : se);
5558
5558
  }
5559
- return D.write_shift(1, 0), D;
5559
+ return I.write_shift(1, 0), I;
5560
5560
  }
5561
- function h(k, M, P) {
5562
- var D = f(k, M, P);
5563
- return D[1].v = k.read_shift(2, "i"), D;
5561
+ function h(N, V, P) {
5562
+ var I = f(N, V, P);
5563
+ return I[1].v = N.read_shift(2, "i"), I;
5564
5564
  }
5565
- function d(k, M, P) {
5566
- var D = new_buf(7);
5567
- return D.write_shift(1, 255), D.write_shift(2, M), D.write_shift(2, k), D.write_shift(2, P, "i"), D;
5565
+ function d(N, V, P) {
5566
+ var I = new_buf(7);
5567
+ return I.write_shift(1, 255), I.write_shift(2, V), I.write_shift(2, N), I.write_shift(2, P, "i"), I;
5568
5568
  }
5569
- function m(k, M, P) {
5570
- var D = f(k, M, P);
5571
- return D[1].v = k.read_shift(8, "f"), D;
5569
+ function m(N, V, P) {
5570
+ var I = f(N, V, P);
5571
+ return I[1].v = N.read_shift(8, "f"), I;
5572
5572
  }
5573
- function u(k, M, P) {
5574
- var D = new_buf(13);
5575
- return D.write_shift(1, 255), D.write_shift(2, M), D.write_shift(2, k), D.write_shift(8, P, "f"), D;
5573
+ function u(N, V, P) {
5574
+ var I = new_buf(13);
5575
+ return I.write_shift(1, 255), I.write_shift(2, V), I.write_shift(2, N), I.write_shift(8, P, "f"), I;
5576
5576
  }
5577
- function _(k, M, P) {
5578
- var D = k.l + M, K = f(k, M, P);
5579
- if (K[1].v = k.read_shift(8, "f"), P.qpro) k.l = D;
5577
+ function _(N, V, P) {
5578
+ var I = N.l + V, j = f(N, V, P);
5579
+ if (j[1].v = N.read_shift(8, "f"), P.qpro) N.l = I;
5580
5580
  else {
5581
- var se = k.read_shift(2);
5582
- b(k.slice(k.l, k.l + se), K), k.l += se;
5581
+ var se = N.read_shift(2);
5582
+ b(N.slice(N.l, N.l + se), j), N.l += se;
5583
5583
  }
5584
- return K;
5584
+ return j;
5585
5585
  }
5586
- function C(k, M, P) {
5587
- var D = M & 32768;
5588
- return M &= -32769, M = (D ? k : 0) + (M >= 8192 ? M - 16384 : M), (D ? "" : "$") + (P ? encode_col(M) : encode_row(M));
5586
+ function C(N, V, P) {
5587
+ var I = V & 32768;
5588
+ return V &= -32769, V = (I ? N : 0) + (V >= 8192 ? V - 16384 : V), (I ? "" : "$") + (P ? encode_col(V) : encode_row(V));
5589
5589
  }
5590
- var I = {
5590
+ var B = {
5591
5591
  51: ["FALSE", 0],
5592
5592
  52: ["TRUE", 0],
5593
5593
  70: ["LEN", 1],
@@ -5597,7 +5597,7 @@ var DBF = /* @__PURE__ */ function() {
5597
5597
  83: ["MINA", 69],
5598
5598
  84: ["MAXA", 69],
5599
5599
  111: ["T", 1]
5600
- }, F = [
5600
+ }, k = [
5601
5601
  "",
5602
5602
  "",
5603
5603
  "",
@@ -5635,25 +5635,25 @@ var DBF = /* @__PURE__ */ function() {
5635
5635
  ""
5636
5636
  // eslint-disable-line no-mixed-spaces-and-tabs
5637
5637
  ];
5638
- function b(k, M) {
5639
- prep_blob(k, 0);
5640
- for (var P = [], D = 0, K = "", se = "", le = "", ie = ""; k.l < k.length; ) {
5641
- var Z = k[k.l++];
5638
+ function b(N, V) {
5639
+ prep_blob(N, 0);
5640
+ for (var P = [], I = 0, j = "", se = "", le = "", ie = ""; N.l < N.length; ) {
5641
+ var Z = N[N.l++];
5642
5642
  switch (Z) {
5643
5643
  case 0:
5644
- P.push(k.read_shift(8, "f"));
5644
+ P.push(N.read_shift(8, "f"));
5645
5645
  break;
5646
5646
  case 1:
5647
- se = C(M[0].c, k.read_shift(2), !0), K = C(M[0].r, k.read_shift(2), !1), P.push(se + K);
5647
+ se = C(V[0].c, N.read_shift(2), !0), j = C(V[0].r, N.read_shift(2), !1), P.push(se + j);
5648
5648
  break;
5649
5649
  case 2:
5650
5650
  {
5651
- var de = C(M[0].c, k.read_shift(2), !0), fe = C(M[0].r, k.read_shift(2), !1);
5652
- se = C(M[0].c, k.read_shift(2), !0), K = C(M[0].r, k.read_shift(2), !1), P.push(de + fe + ":" + se + K);
5651
+ var de = C(V[0].c, N.read_shift(2), !0), fe = C(V[0].r, N.read_shift(2), !1);
5652
+ se = C(V[0].c, N.read_shift(2), !0), j = C(V[0].r, N.read_shift(2), !1), P.push(de + fe + ":" + se + j);
5653
5653
  }
5654
5654
  break;
5655
5655
  case 3:
5656
- if (k.l < k.length) {
5656
+ if (N.l < N.length) {
5657
5657
  console.error("WK1 premature formula end");
5658
5658
  return;
5659
5659
  }
@@ -5662,11 +5662,11 @@ var DBF = /* @__PURE__ */ function() {
5662
5662
  P.push("(" + P.pop() + ")");
5663
5663
  break;
5664
5664
  case 5:
5665
- P.push(k.read_shift(2));
5665
+ P.push(N.read_shift(2));
5666
5666
  break;
5667
5667
  case 6:
5668
5668
  {
5669
- for (var Ee = ""; Z = k[k.l++]; ) Ee += String.fromCharCode(Z);
5669
+ for (var Ee = ""; Z = N[N.l++]; ) Ee += String.fromCharCode(Z);
5670
5670
  P.push('"' + Ee.replace(/"/g, '""') + '"');
5671
5671
  }
5672
5672
  break;
@@ -5684,134 +5684,134 @@ var DBF = /* @__PURE__ */ function() {
5684
5684
  ie = P.pop(), le = P.pop(), P.push(["AND", "OR"][Z - 20] + "(" + le + "," + ie + ")");
5685
5685
  break;
5686
5686
  default:
5687
- if (Z < 32 && F[Z])
5688
- ie = P.pop(), le = P.pop(), P.push(le + F[Z] + ie);
5689
- else if (I[Z]) {
5690
- if (D = I[Z][1], D == 69 && (D = k[k.l++]), D > P.length) {
5687
+ if (Z < 32 && k[Z])
5688
+ ie = P.pop(), le = P.pop(), P.push(le + k[Z] + ie);
5689
+ else if (B[Z]) {
5690
+ if (I = B[Z][1], I == 69 && (I = N[N.l++]), I > P.length) {
5691
5691
  console.error("WK1 bad formula parse 0x" + Z.toString(16) + ":|" + P.join("|") + "|");
5692
5692
  return;
5693
5693
  }
5694
- var ue = P.slice(-D);
5695
- P.length -= D, P.push(I[Z][0] + "(" + ue.join(",") + ")");
5694
+ var ue = P.slice(-I);
5695
+ P.length -= I, P.push(B[Z][0] + "(" + ue.join(",") + ")");
5696
5696
  } else return Z <= 7 ? console.error("WK1 invalid opcode " + Z.toString(16)) : Z <= 24 ? console.error("WK1 unsupported op " + Z.toString(16)) : Z <= 30 ? console.error("WK1 invalid opcode " + Z.toString(16)) : Z <= 115 ? console.error("WK1 unsupported function opcode " + Z.toString(16)) : console.error("WK1 unrecognized opcode " + Z.toString(16));
5697
5697
  }
5698
5698
  }
5699
- P.length == 1 ? M[1].f = "" + P[0] : console.error("WK1 bad formula parse |" + P.join("|") + "|");
5700
- }
5701
- function G(k) {
5702
- var M = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0];
5703
- return M[0].r = k.read_shift(2), M[3] = k[k.l++], M[0].c = k[k.l++], M;
5704
- }
5705
- function z(k, M) {
5706
- var P = G(k);
5707
- return P[1].t = "s", P[1].v = k.read_shift(M - 4, "cstr"), P;
5708
- }
5709
- function A(k, M, P, D) {
5710
- var K = new_buf(6 + D.length);
5711
- K.write_shift(2, k), K.write_shift(1, P), K.write_shift(1, M), K.write_shift(1, 39);
5712
- for (var se = 0; se < D.length; ++se) {
5713
- var le = D.charCodeAt(se);
5714
- K.write_shift(1, le >= 128 ? 95 : le);
5699
+ P.length == 1 ? V[1].f = "" + P[0] : console.error("WK1 bad formula parse |" + P.join("|") + "|");
5700
+ }
5701
+ function G(N) {
5702
+ var V = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0];
5703
+ return V[0].r = N.read_shift(2), V[3] = N[N.l++], V[0].c = N[N.l++], V;
5704
+ }
5705
+ function z(N, V) {
5706
+ var P = G(N);
5707
+ return P[1].t = "s", P[1].v = N.read_shift(V - 4, "cstr"), P;
5708
+ }
5709
+ function A(N, V, P, I) {
5710
+ var j = new_buf(6 + I.length);
5711
+ j.write_shift(2, N), j.write_shift(1, P), j.write_shift(1, V), j.write_shift(1, 39);
5712
+ for (var se = 0; se < I.length; ++se) {
5713
+ var le = I.charCodeAt(se);
5714
+ j.write_shift(1, le >= 128 ? 95 : le);
5715
5715
  }
5716
- return K.write_shift(1, 0), K;
5716
+ return j.write_shift(1, 0), j;
5717
5717
  }
5718
- function X(k, M) {
5719
- var P = G(k);
5720
- P[1].v = k.read_shift(2);
5721
- var D = P[1].v >> 1;
5718
+ function H(N, V) {
5719
+ var P = G(N);
5720
+ P[1].v = N.read_shift(2);
5721
+ var I = P[1].v >> 1;
5722
5722
  if (P[1].v & 1)
5723
- switch (D & 7) {
5723
+ switch (I & 7) {
5724
5724
  case 0:
5725
- D = (D >> 3) * 5e3;
5725
+ I = (I >> 3) * 5e3;
5726
5726
  break;
5727
5727
  case 1:
5728
- D = (D >> 3) * 500;
5728
+ I = (I >> 3) * 500;
5729
5729
  break;
5730
5730
  case 2:
5731
- D = (D >> 3) / 20;
5731
+ I = (I >> 3) / 20;
5732
5732
  break;
5733
5733
  case 3:
5734
- D = (D >> 3) / 200;
5734
+ I = (I >> 3) / 200;
5735
5735
  break;
5736
5736
  case 4:
5737
- D = (D >> 3) / 2e3;
5737
+ I = (I >> 3) / 2e3;
5738
5738
  break;
5739
5739
  case 5:
5740
- D = (D >> 3) / 2e4;
5740
+ I = (I >> 3) / 2e4;
5741
5741
  break;
5742
5742
  case 6:
5743
- D = (D >> 3) / 16;
5743
+ I = (I >> 3) / 16;
5744
5744
  break;
5745
5745
  case 7:
5746
- D = (D >> 3) / 64;
5746
+ I = (I >> 3) / 64;
5747
5747
  break;
5748
5748
  }
5749
- return P[1].v = D, P;
5749
+ return P[1].v = I, P;
5750
5750
  }
5751
- function S(k, M) {
5752
- var P = G(k), D = k.read_shift(4), K = k.read_shift(4), se = k.read_shift(2);
5751
+ function S(N, V) {
5752
+ var P = G(N), I = N.read_shift(4), j = N.read_shift(4), se = N.read_shift(2);
5753
5753
  if (se == 65535)
5754
- return D === 0 && K === 3221225472 ? (P[1].t = "e", P[1].v = 15) : D === 0 && K === 3489660928 ? (P[1].t = "e", P[1].v = 42) : P[1].v = 0, P;
5754
+ return I === 0 && j === 3221225472 ? (P[1].t = "e", P[1].v = 15) : I === 0 && j === 3489660928 ? (P[1].t = "e", P[1].v = 42) : P[1].v = 0, P;
5755
5755
  var le = se & 32768;
5756
- return se = (se & 32767) - 16446, P[1].v = (1 - le * 2) * (K * Math.pow(2, se + 32) + D * Math.pow(2, se)), P;
5756
+ return se = (se & 32767) - 16446, P[1].v = (1 - le * 2) * (j * Math.pow(2, se + 32) + I * Math.pow(2, se)), P;
5757
5757
  }
5758
- function O(k, M, P, D) {
5759
- var K = new_buf(14);
5760
- if (K.write_shift(2, k), K.write_shift(1, P), K.write_shift(1, M), D == 0)
5761
- return K.write_shift(4, 0), K.write_shift(4, 0), K.write_shift(2, 65535), K;
5758
+ function O(N, V, P, I) {
5759
+ var j = new_buf(14);
5760
+ if (j.write_shift(2, N), j.write_shift(1, P), j.write_shift(1, V), I == 0)
5761
+ return j.write_shift(4, 0), j.write_shift(4, 0), j.write_shift(2, 65535), j;
5762
5762
  var se = 0, le = 0, ie = 0, Z = 0;
5763
- return D < 0 && (se = 1, D = -D), le = Math.log2(D) | 0, D /= Math.pow(2, le - 31), Z = D >>> 0, Z & 2147483648 || (D /= 2, ++le, Z = D >>> 0), D -= Z, Z |= 2147483648, Z >>>= 0, D *= Math.pow(2, 32), ie = D >>> 0, K.write_shift(4, ie), K.write_shift(4, Z), le += 16383 + (se ? 32768 : 0), K.write_shift(2, le), K;
5764
- }
5765
- function N(k, M) {
5766
- var P = S(k);
5767
- return k.l += M - 14, P;
5768
- }
5769
- function B(k, M) {
5770
- var P = G(k), D = k.read_shift(4);
5771
- return P[1].v = D >> 6, P;
5772
- }
5773
- function H(k, M) {
5774
- var P = G(k), D = k.read_shift(8, "f");
5775
- return P[1].v = D, P;
5776
- }
5777
- function ae(k, M) {
5778
- var P = H(k);
5779
- return k.l += M - 10, P;
5780
- }
5781
- function ne(k, M) {
5782
- return k[k.l + M - 1] == 0 ? k.read_shift(M, "cstr") : "";
5783
- }
5784
- function ce(k, M) {
5785
- var P = k[k.l++];
5786
- P > M - 1 && (P = M - 1);
5787
- for (var D = ""; D.length < P; ) D += String.fromCharCode(k[k.l++]);
5788
- return D;
5789
- }
5790
- function te(k, M, P) {
5791
- if (!(!P.qpro || M < 21)) {
5792
- var D = k.read_shift(1);
5793
- k.l += 17, k.l += 1, k.l += 2;
5794
- var K = k.read_shift(M - 21, "cstr");
5795
- return [D, K];
5763
+ return I < 0 && (se = 1, I = -I), le = Math.log2(I) | 0, I /= Math.pow(2, le - 31), Z = I >>> 0, Z & 2147483648 || (I /= 2, ++le, Z = I >>> 0), I -= Z, Z |= 2147483648, Z >>>= 0, I *= Math.pow(2, 32), ie = I >>> 0, j.write_shift(4, ie), j.write_shift(4, Z), le += 16383 + (se ? 32768 : 0), j.write_shift(2, le), j;
5764
+ }
5765
+ function D(N, V) {
5766
+ var P = S(N);
5767
+ return N.l += V - 14, P;
5768
+ }
5769
+ function F(N, V) {
5770
+ var P = G(N), I = N.read_shift(4);
5771
+ return P[1].v = I >> 6, P;
5772
+ }
5773
+ function R(N, V) {
5774
+ var P = G(N), I = N.read_shift(8, "f");
5775
+ return P[1].v = I, P;
5776
+ }
5777
+ function te(N, V) {
5778
+ var P = R(N);
5779
+ return N.l += V - 10, P;
5780
+ }
5781
+ function ne(N, V) {
5782
+ return N[N.l + V - 1] == 0 ? N.read_shift(V, "cstr") : "";
5783
+ }
5784
+ function ce(N, V) {
5785
+ var P = N[N.l++];
5786
+ P > V - 1 && (P = V - 1);
5787
+ for (var I = ""; I.length < P; ) I += String.fromCharCode(N[N.l++]);
5788
+ return I;
5789
+ }
5790
+ function re(N, V, P) {
5791
+ if (!(!P.qpro || V < 21)) {
5792
+ var I = N.read_shift(1);
5793
+ N.l += 17, N.l += 1, N.l += 2;
5794
+ var j = N.read_shift(V - 21, "cstr");
5795
+ return [I, j];
5796
5796
  }
5797
5797
  }
5798
- function xe(k, M) {
5799
- for (var P = {}, D = k.l + M; k.l < D; ) {
5800
- var K = k.read_shift(2);
5801
- if (K == 14e3) {
5802
- for (P[K] = [0, ""], P[K][0] = k.read_shift(2); k[k.l]; )
5803
- P[K][1] += String.fromCharCode(k[k.l]), k.l++;
5804
- k.l++;
5798
+ function xe(N, V) {
5799
+ for (var P = {}, I = N.l + V; N.l < I; ) {
5800
+ var j = N.read_shift(2);
5801
+ if (j == 14e3) {
5802
+ for (P[j] = [0, ""], P[j][0] = N.read_shift(2); N[N.l]; )
5803
+ P[j][1] += String.fromCharCode(N[N.l]), N.l++;
5804
+ N.l++;
5805
5805
  }
5806
5806
  }
5807
5807
  return P;
5808
5808
  }
5809
- function he(k, M) {
5810
- var P = new_buf(5 + k.length);
5811
- P.write_shift(2, 14e3), P.write_shift(2, M);
5812
- for (var D = 0; D < k.length; ++D) {
5813
- var K = k.charCodeAt(D);
5814
- P[P.l++] = K > 127 ? 95 : K;
5809
+ function he(N, V) {
5810
+ var P = new_buf(5 + N.length);
5811
+ P.write_shift(2, 14e3), P.write_shift(2, V);
5812
+ for (var I = 0; I < N.length; ++I) {
5813
+ var j = N.charCodeAt(I);
5814
+ P[P.l++] = j > 127 ? 95 : j;
5815
5815
  }
5816
5816
  return P[P.l++] = 0, P;
5817
5817
  }
@@ -5994,9 +5994,9 @@ var DBF = /* @__PURE__ */ function() {
5994
5994
  /*::[*/
5995
5995
  23: { n: "NUMBER17", f: S },
5996
5996
  /*::[*/
5997
- 24: { n: "NUMBER18", f: X },
5997
+ 24: { n: "NUMBER18", f: H },
5998
5998
  /*::[*/
5999
- 25: { n: "FORMULA19", f: N },
5999
+ 25: { n: "FORMULA19", f: D },
6000
6000
  /*::[*/
6001
6001
  26: { n: "FORMULA1A" },
6002
6002
  /*::[*/
@@ -6018,13 +6018,13 @@ var DBF = /* @__PURE__ */ function() {
6018
6018
  /*::[*/
6019
6019
  35: { n: "??" },
6020
6020
  /*::[*/
6021
- 37: { n: "NUMBER25", f: B },
6021
+ 37: { n: "NUMBER25", f: F },
6022
6022
  /*::[*/
6023
6023
  38: { n: "??" },
6024
6024
  /*::[*/
6025
- 39: { n: "NUMBER27", f: H },
6025
+ 39: { n: "NUMBER27", f: R },
6026
6026
  /*::[*/
6027
- 40: { n: "FORMULA28", f: ae },
6027
+ 40: { n: "FORMULA28", f: te },
6028
6028
  /*::[*/
6029
6029
  142: { n: "??" },
6030
6030
  /*::[*/
@@ -6158,7 +6158,7 @@ var DBF = /* @__PURE__ */ function() {
6158
6158
  /*::[*/
6159
6159
  772: { n: "??" },
6160
6160
  /*::[*/
6161
- 1537: { n: "SHEETINFOQP", f: te },
6161
+ 1537: { n: "SHEETINFOQP", f: re },
6162
6162
  /*::[*/
6163
6163
  1600: { n: "??" },
6164
6164
  /*::[*/
@@ -7521,9 +7521,9 @@ function stringify_formula(e, r, t, a, n) {
7521
7521
  { s: { c: 0, r: 0 } }
7522
7522
  ), l = [], o, f, c, p = 0, h = 0, d, m = "";
7523
7523
  if (!e[0] || !e[0][0]) return "";
7524
- for (var u = -1, _ = "", C = 0, I = e[0].length; C < I; ++C) {
7525
- var F = e[0][C];
7526
- switch (F[0]) {
7524
+ for (var u = -1, _ = "", C = 0, B = e[0].length; C < B; ++C) {
7525
+ var k = e[0][C];
7526
+ switch (k[0]) {
7527
7527
  case "PtgUminus":
7528
7528
  l.push("-" + l.pop());
7529
7529
  break;
@@ -7569,7 +7569,7 @@ function stringify_formula(e, r, t, a, n) {
7569
7569
  }
7570
7570
  f = f + _, u = -1;
7571
7571
  }
7572
- l.push(f + PtgBinOp[F[0]] + o);
7572
+ l.push(f + PtgBinOp[k[0]] + o);
7573
7573
  break;
7574
7574
  case "PtgIsect":
7575
7575
  o = l.pop(), f = l.pop(), l.push(f + " " + o);
@@ -7589,55 +7589,55 @@ function stringify_formula(e, r, t, a, n) {
7589
7589
  case "PtgAttrIfError":
7590
7590
  break;
7591
7591
  case "PtgRef":
7592
- c = shift_cell_xls(F[1][1], s, n), l.push(encode_cell_xls(c, i));
7592
+ c = shift_cell_xls(k[1][1], s, n), l.push(encode_cell_xls(c, i));
7593
7593
  break;
7594
7594
  case "PtgRefN":
7595
- c = t ? shift_cell_xls(F[1][1], t, n) : F[1][1], l.push(encode_cell_xls(c, i));
7595
+ c = t ? shift_cell_xls(k[1][1], t, n) : k[1][1], l.push(encode_cell_xls(c, i));
7596
7596
  break;
7597
7597
  case "PtgRef3d":
7598
7598
  p = /*::Number(*/
7599
- F[1][1], c = shift_cell_xls(F[1][2], s, n), m = get_ixti(a, p, n), l.push(m + "!" + encode_cell_xls(c, i));
7599
+ k[1][1], c = shift_cell_xls(k[1][2], s, n), m = get_ixti(a, p, n), l.push(m + "!" + encode_cell_xls(c, i));
7600
7600
  break;
7601
7601
  case "PtgFunc":
7602
7602
  /* [MS-XLS] 2.5.198.62 */
7603
7603
  case "PtgFuncVar":
7604
- var b = F[1][0], G = F[1][1];
7604
+ var b = k[1][0], G = k[1][1];
7605
7605
  b || (b = 0), b &= 127;
7606
7606
  var z = b == 0 ? [] : l.slice(-b);
7607
7607
  l.length -= b, G === "User" && (G = z.shift()), l.push(G + "(" + z.join(",") + ")");
7608
7608
  break;
7609
7609
  case "PtgBool":
7610
- l.push(F[1] ? "TRUE" : "FALSE");
7610
+ l.push(k[1] ? "TRUE" : "FALSE");
7611
7611
  break;
7612
7612
  case "PtgInt":
7613
7613
  l.push(
7614
7614
  /*::String(*/
7615
- F[1]
7615
+ k[1]
7616
7616
  /*::)*/
7617
7617
  );
7618
7618
  break;
7619
7619
  case "PtgNum":
7620
- l.push(String(F[1]));
7620
+ l.push(String(k[1]));
7621
7621
  break;
7622
7622
  case "PtgStr":
7623
- l.push('"' + F[1].replace(/"/g, '""') + '"');
7623
+ l.push('"' + k[1].replace(/"/g, '""') + '"');
7624
7624
  break;
7625
7625
  case "PtgErr":
7626
7626
  l.push(
7627
7627
  /*::String(*/
7628
- F[1]
7628
+ k[1]
7629
7629
  /*::)*/
7630
7630
  );
7631
7631
  break;
7632
7632
  case "PtgAreaN":
7633
- d = shift_range_xls(F[1][1], t ? { s: t } : s, n), l.push(encode_range_xls(d, n));
7633
+ d = shift_range_xls(k[1][1], t ? { s: t } : s, n), l.push(encode_range_xls(d, n));
7634
7634
  break;
7635
7635
  case "PtgArea":
7636
- d = shift_range_xls(F[1][1], s, n), l.push(encode_range_xls(d, n));
7636
+ d = shift_range_xls(k[1][1], s, n), l.push(encode_range_xls(d, n));
7637
7637
  break;
7638
7638
  case "PtgArea3d":
7639
7639
  p = /*::Number(*/
7640
- F[1][1], d = F[1][2], m = get_ixti(a, p, n), l.push(m + "!" + encode_range_xls(d, n));
7640
+ k[1][1], d = k[1][2], m = get_ixti(a, p, n), l.push(m + "!" + encode_range_xls(d, n));
7641
7641
  break;
7642
7642
  case "PtgAttrSum":
7643
7643
  l.push("SUM(" + l.pop() + ")");
@@ -7647,55 +7647,55 @@ function stringify_formula(e, r, t, a, n) {
7647
7647
  case "PtgAttrSemi":
7648
7648
  break;
7649
7649
  case "PtgName":
7650
- h = F[1][2];
7651
- var A = (a.names || [])[h - 1] || (a[0] || [])[h], X = A ? A.Name : "SH33TJSNAME" + String(h);
7652
- X && X.slice(0, 6) == "_xlfn." && !n.xlfn && (X = X.slice(6)), l.push(X);
7650
+ h = k[1][2];
7651
+ var A = (a.names || [])[h - 1] || (a[0] || [])[h], H = A ? A.Name : "SH33TJSNAME" + String(h);
7652
+ H && H.slice(0, 6) == "_xlfn." && !n.xlfn && (H = H.slice(6)), l.push(H);
7653
7653
  break;
7654
7654
  case "PtgNameX":
7655
- var S = F[1][1];
7656
- h = F[1][2];
7655
+ var S = k[1][1];
7656
+ h = k[1][2];
7657
7657
  var O;
7658
7658
  if (n.biff <= 5)
7659
7659
  S < 0 && (S = -S), a[S] && (O = a[S][h]);
7660
7660
  else {
7661
- var N = "";
7662
- if (((a[S] || [])[0] || [])[0] == 14849 || (((a[S] || [])[0] || [])[0] == 1025 ? a[S][h] && a[S][h].itab > 0 && (N = a.SheetNames[a[S][h].itab - 1] + "!") : N = a.SheetNames[h - 1] + "!"), a[S] && a[S][h]) N += a[S][h].Name;
7663
- else if (a[0] && a[0][h]) N += a[0][h].Name;
7661
+ var D = "";
7662
+ if (((a[S] || [])[0] || [])[0] == 14849 || (((a[S] || [])[0] || [])[0] == 1025 ? a[S][h] && a[S][h].itab > 0 && (D = a.SheetNames[a[S][h].itab - 1] + "!") : D = a.SheetNames[h - 1] + "!"), a[S] && a[S][h]) D += a[S][h].Name;
7663
+ else if (a[0] && a[0][h]) D += a[0][h].Name;
7664
7664
  else {
7665
- var B = (get_ixti_raw(a, S, n) || "").split(";;");
7666
- B[h - 1] ? N = B[h - 1] : N += "SH33TJSERRX";
7665
+ var F = (get_ixti_raw(a, S, n) || "").split(";;");
7666
+ F[h - 1] ? D = F[h - 1] : D += "SH33TJSERRX";
7667
7667
  }
7668
- l.push(N);
7668
+ l.push(D);
7669
7669
  break;
7670
7670
  }
7671
7671
  O || (O = { Name: "SH33TJSERRY" }), l.push(O.Name);
7672
7672
  break;
7673
7673
  case "PtgParen":
7674
- var H = "(", ae = ")";
7674
+ var R = "(", te = ")";
7675
7675
  if (u >= 0) {
7676
7676
  switch (_ = "", e[0][u][1][0]) {
7677
7677
  // $FlowIgnore
7678
7678
  case 2:
7679
- H = fill(" ", e[0][u][1][1]) + H;
7679
+ R = fill(" ", e[0][u][1][1]) + R;
7680
7680
  break;
7681
7681
  // $FlowIgnore
7682
7682
  case 3:
7683
- H = fill("\r", e[0][u][1][1]) + H;
7683
+ R = fill("\r", e[0][u][1][1]) + R;
7684
7684
  break;
7685
7685
  // $FlowIgnore
7686
7686
  case 4:
7687
- ae = fill(" ", e[0][u][1][1]) + ae;
7687
+ te = fill(" ", e[0][u][1][1]) + te;
7688
7688
  break;
7689
7689
  // $FlowIgnore
7690
7690
  case 5:
7691
- ae = fill("\r", e[0][u][1][1]) + ae;
7691
+ te = fill("\r", e[0][u][1][1]) + te;
7692
7692
  break;
7693
7693
  default:
7694
7694
  if (n.WTF) throw new Error("Unexpected PtgAttrSpaceType " + e[0][u][1][0]);
7695
7695
  }
7696
7696
  u = -1;
7697
7697
  }
7698
- l.push(H + l.pop() + ae);
7698
+ l.push(R + l.pop() + te);
7699
7699
  break;
7700
7700
  case "PtgRefErr":
7701
7701
  l.push("#REF!");
@@ -7704,21 +7704,21 @@ function stringify_formula(e, r, t, a, n) {
7704
7704
  l.push("#REF!");
7705
7705
  break;
7706
7706
  case "PtgExp":
7707
- c = { c: F[1][1], r: F[1][0] };
7707
+ c = { c: k[1][1], r: k[1][0] };
7708
7708
  var ne = { c: t.c, r: t.r };
7709
7709
  if (a.sharedf[encode_cell(c)]) {
7710
7710
  var ce = a.sharedf[encode_cell(c)];
7711
7711
  l.push(stringify_formula(ce, s, ne, a, n));
7712
7712
  } else {
7713
- var te = !1;
7713
+ var re = !1;
7714
7714
  for (o = 0; o != a.arrayf.length; ++o)
7715
7715
  if (f = a.arrayf[o], !(c.c < f[0].s.c || c.c > f[0].e.c) && !(c.r < f[0].s.r || c.r > f[0].e.r)) {
7716
- l.push(stringify_formula(f[1], s, ne, a, n)), te = !0;
7716
+ l.push(stringify_formula(f[1], s, ne, a, n)), re = !0;
7717
7717
  break;
7718
7718
  }
7719
- te || l.push(
7719
+ re || l.push(
7720
7720
  /*::String(*/
7721
- F[1]
7721
+ k[1]
7722
7722
  /*::)*/
7723
7723
  );
7724
7724
  }
@@ -7726,7 +7726,7 @@ function stringify_formula(e, r, t, a, n) {
7726
7726
  case "PtgArray":
7727
7727
  l.push("{" + stringify_array(
7728
7728
  /*::(*/
7729
- F[1]
7729
+ k[1]
7730
7730
  /*:: :any)*/
7731
7731
  ) + "}");
7732
7732
  break;
@@ -7751,7 +7751,7 @@ function stringify_formula(e, r, t, a, n) {
7751
7751
  l.push("#REF!");
7752
7752
  break;
7753
7753
  case "PtgList":
7754
- l.push("Table" + F[1].idx + "[#" + F[1].rt + "]");
7754
+ l.push("Table" + k[1].idx + "[#" + k[1].rt + "]");
7755
7755
  break;
7756
7756
  case "PtgMemAreaN":
7757
7757
  case "PtgMemNoMemN":
@@ -7784,30 +7784,30 @@ function stringify_formula(e, r, t, a, n) {
7784
7784
  case "PtgElfRwV":
7785
7785
  throw new Error("Unsupported ELFs");
7786
7786
  case "PtgSxName":
7787
- throw new Error("Unrecognized Formula Token: " + String(F));
7787
+ throw new Error("Unrecognized Formula Token: " + String(k));
7788
7788
  default:
7789
- throw new Error("Unrecognized Formula Token: " + String(F));
7789
+ throw new Error("Unrecognized Formula Token: " + String(k));
7790
7790
  }
7791
7791
  var xe = ["PtgAttrSpace", "PtgAttrSpaceSemi", "PtgAttrGoto"];
7792
7792
  if (n.biff != 3 && u >= 0 && xe.indexOf(e[0][C][0]) == -1) {
7793
- F = e[0][u];
7793
+ k = e[0][u];
7794
7794
  var he = !0;
7795
- switch (F[1][0]) {
7795
+ switch (k[1][0]) {
7796
7796
  /* note: some bad XLSB files omit the PtgParen */
7797
7797
  case 4:
7798
7798
  he = !1;
7799
7799
  /* falls through */
7800
7800
  case 0:
7801
- _ = fill(" ", F[1][1]);
7801
+ _ = fill(" ", k[1][1]);
7802
7802
  break;
7803
7803
  case 5:
7804
7804
  he = !1;
7805
7805
  /* falls through */
7806
7806
  case 1:
7807
- _ = fill("\r", F[1][1]);
7807
+ _ = fill("\r", k[1][1]);
7808
7808
  break;
7809
7809
  default:
7810
- if (_ = "", n.WTF) throw new Error("Unexpected PtgAttrSpaceType " + F[1][0]);
7810
+ if (_ = "", n.WTF) throw new Error("Unexpected PtgAttrSpaceType " + k[1][0]);
7811
7811
  }
7812
7812
  l.push((he ? _ : "") + l.pop() + (he ? "" : _)), u = -1;
7813
7813
  }
@@ -9147,8 +9147,8 @@ function write_ws_xml_data(e, r, t, a) {
9147
9147
  for (p = s.s.r; p <= s.e.r; ++p) {
9148
9148
  for (i = [], f = encode_row(p), h = s.s.c; h <= s.e.c; ++h) {
9149
9149
  o = c[h] + f;
9150
- var I = m ? (e[p] || [])[h] : e[o];
9151
- I !== void 0 && (l = write_ws_xml_cell(I, o, e, r)) != null && i.push(l);
9150
+ var B = m ? (e[p] || [])[h] : e[o];
9151
+ B !== void 0 && (l = write_ws_xml_cell(B, o, e, r)) != null && i.push(l);
9152
9152
  }
9153
9153
  (i.length > 0 || d && d[p]) && (u = { r: f }, d && d[p] && (_ = d[p], _.hidden && (u.hidden = 1), C = -1, _.hpx ? C = px2pt(_.hpx) : _.hpt && (C = _.hpt), C > -1 && (u.ht = C, u.customHeight = 1), _.level && (u.outlineLevel = _.level)), n[n.length] = writextag("row", i.join(""), u));
9154
9154
  }
@@ -9958,8 +9958,8 @@ function write_ws_xlml_table(e, r, t, a) {
9958
9958
  var n = safe_decode_range(e["!ref"]), i = e["!merges"] || [], s = 0, l = [];
9959
9959
  e["!cols"] && e["!cols"].forEach(function(_, C) {
9960
9960
  process_col(_);
9961
- var I = !!_.width, F = col_obj_w(C, _), b = { "ss:Index": C + 1 };
9962
- I && (b["ss:Width"] = width2px(F.width)), _.hidden && (b["ss:Hidden"] = "1"), l.push(writextag("Column", null, b));
9961
+ var B = !!_.width, k = col_obj_w(C, _), b = { "ss:Index": C + 1 };
9962
+ B && (b["ss:Width"] = width2px(k.width)), _.hidden && (b["ss:Hidden"] = "1"), l.push(writextag("Column", null, b));
9963
9963
  });
9964
9964
  for (var o = Array.isArray(e), f = n.s.r; f <= n.e.r; ++f) {
9965
9965
  for (var c = [write_ws_xlml_row(f, (e["!rows"] || [])[f])], p = n.s.c; p <= n.e.c; ++p) {
@@ -14273,8 +14273,8 @@ function write_ws_biff8(e, r, t) {
14273
14273
  C && (write_ws_biff8_cell(a, C, u, _, r), f && C.l && i["!links"].push([c, C.l]));
14274
14274
  }
14275
14275
  }
14276
- var I = l.CodeName || l.name || n;
14277
- return f && write_biff_rec(a, 574, write_Window2((s.Views || [])[0])), f && (i["!merges"] || []).length && write_biff_rec(a, 229, write_MergeCells(i["!merges"])), f && write_ws_biff8_hlinks(a, i), write_biff_rec(a, 442, write_XLUnicodeString(I)), f && write_FEAT(a, i), write_biff_rec(
14276
+ var B = l.CodeName || l.name || n;
14277
+ return f && write_biff_rec(a, 574, write_Window2((s.Views || [])[0])), f && (i["!merges"] || []).length && write_biff_rec(a, 229, write_MergeCells(i["!merges"])), f && write_ws_biff8_hlinks(a, i), write_biff_rec(a, 442, write_XLUnicodeString(B)), f && write_FEAT(a, i), write_biff_rec(
14278
14278
  a,
14279
14279
  10
14280
14280
  /* EOF */
@@ -14329,10 +14329,10 @@ function write_biff8_global(e, r, t) {
14329
14329
  var C = i[u] || {};
14330
14330
  write_biff_rec(d, 133, write_BoundSheet8({ pos: _, hs: C.Hidden || 0, dt: 0, name: e.SheetNames[u] }, t)), _ += r[u].length;
14331
14331
  }
14332
- var I = d.end();
14333
- if (m != I.length) throw new Error("BS8 " + m + " != " + I.length);
14334
- var F = [];
14335
- return c.length && F.push(c), I.length && F.push(I), h.length && F.push(h), bconcat(F);
14332
+ var B = d.end();
14333
+ if (m != B.length) throw new Error("BS8 " + m + " != " + B.length);
14334
+ var k = [];
14335
+ return c.length && k.push(c), B.length && k.push(B), h.length && k.push(h), bconcat(k);
14336
14336
  }
14337
14337
  function write_biff8_buf(e, r) {
14338
14338
  var t = r || {}, a = [];
@@ -14404,7 +14404,7 @@ function sheet_add_dom(e, r, t) {
14404
14404
  var c = decode_range(e["!ref"]);
14405
14405
  f.s.r = Math.min(f.s.r, c.s.r), f.s.c = Math.min(f.s.c, c.s.c), f.e.r = Math.max(f.e.r, c.e.r), f.e.c = Math.max(f.e.c, c.e.c), n == -1 && (f.e.r = n = c.e.r + 1);
14406
14406
  }
14407
- var p = [], h = 0, d = e["!rows"] || (e["!rows"] = []), m = 0, u = 0, _ = 0, C = 0, I = 0, F = 0;
14407
+ var p = [], h = 0, d = e["!rows"] || (e["!rows"] = []), m = 0, u = 0, _ = 0, C = 0, B = 0, k = 0;
14408
14408
  for (e["!cols"] || (e["!cols"] = []); m < l.length && u < o; ++m) {
14409
14409
  var b = l[m];
14410
14410
  if (is_dom_element_hidden(b)) {
@@ -14415,17 +14415,17 @@ function sheet_add_dom(e, r, t) {
14415
14415
  for (_ = C = 0; _ < G.length; ++_) {
14416
14416
  var z = G[_];
14417
14417
  if (!(a.display && is_dom_element_hidden(z))) {
14418
- var A = z.hasAttribute("data-v") ? z.getAttribute("data-v") : z.hasAttribute("v") ? z.getAttribute("v") : htmldecode(z.innerHTML), X = z.getAttribute("data-z") || z.getAttribute("z");
14418
+ var A = z.hasAttribute("data-v") ? z.getAttribute("data-v") : z.hasAttribute("v") ? z.getAttribute("v") : htmldecode(z.innerHTML), H = z.getAttribute("data-z") || z.getAttribute("z");
14419
14419
  for (h = 0; h < p.length; ++h) {
14420
14420
  var S = p[h];
14421
14421
  S.s.c == C + i && S.s.r < u + n && u + n <= S.e.r && (C = S.e.c + 1 - i, h = -1);
14422
14422
  }
14423
- F = +z.getAttribute("colspan") || 1, ((I = +z.getAttribute("rowspan") || 1) > 1 || F > 1) && p.push({ s: { r: u + n, c: C + i }, e: { r: u + n + (I || 1) - 1, c: C + i + (F || 1) - 1 } });
14424
- var O = { t: "s", v: A }, N = z.getAttribute("data-t") || z.getAttribute("t") || "";
14425
- A != null && (A.length == 0 ? O.t = N || "z" : a.raw || A.trim().length == 0 || N == "s" || (A === "TRUE" ? O = { t: "b", v: !0 } : A === "FALSE" ? O = { t: "b", v: !1 } : isNaN(fuzzynum(A)) ? isNaN(fuzzydate(A).getDate()) || (O = { t: "d", v: parseDate(A) }, a.cellDates || (O = { t: "n", v: datenum(O.v) }), O.z = a.dateNF || table_fmt[14]) : O = { t: "n", v: fuzzynum(A) })), O.z === void 0 && X != null && (O.z = X);
14426
- var B = "", H = z.getElementsByTagName("A");
14427
- if (H && H.length) for (var ae = 0; ae < H.length && !(H[ae].hasAttribute("href") && (B = H[ae].getAttribute("href"), B.charAt(0) != "#")); ++ae) ;
14428
- B && B.charAt(0) != "#" && (O.l = { Target: B }), a.dense ? (e[u + n] || (e[u + n] = []), e[u + n][C + i] = O) : e[encode_cell({ c: C + i, r: u + n })] = O, f.e.c < C + i && (f.e.c = C + i), C += F;
14423
+ k = +z.getAttribute("colspan") || 1, ((B = +z.getAttribute("rowspan") || 1) > 1 || k > 1) && p.push({ s: { r: u + n, c: C + i }, e: { r: u + n + (B || 1) - 1, c: C + i + (k || 1) - 1 } });
14424
+ var O = { t: "s", v: A }, D = z.getAttribute("data-t") || z.getAttribute("t") || "";
14425
+ A != null && (A.length == 0 ? O.t = D || "z" : a.raw || A.trim().length == 0 || D == "s" || (A === "TRUE" ? O = { t: "b", v: !0 } : A === "FALSE" ? O = { t: "b", v: !1 } : isNaN(fuzzynum(A)) ? isNaN(fuzzydate(A).getDate()) || (O = { t: "d", v: parseDate(A) }, a.cellDates || (O = { t: "n", v: datenum(O.v) }), O.z = a.dateNF || table_fmt[14]) : O = { t: "n", v: fuzzynum(A) })), O.z === void 0 && H != null && (O.z = H);
14426
+ var F = "", R = z.getElementsByTagName("A");
14427
+ if (R && R.length) for (var te = 0; te < R.length && !(R[te].hasAttribute("href") && (F = R[te].getAttribute("href"), F.charAt(0) != "#")); ++te) ;
14428
+ F && F.charAt(0) != "#" && (O.l = { Target: F }), a.dense ? (e[u + n] || (e[u + n] = []), e[u + n][C + i] = O) : e[encode_cell({ c: C + i, r: u + n })] = O, f.e.c < C + i && (f.e.c = C + i), C += k;
14429
14429
  }
14430
14430
  }
14431
14431
  ++u;
@@ -14496,10 +14496,10 @@ var write_styles_ods = /* @__PURE__ */ function() {
14496
14496
  for (u = _[f] ? ' table:style-name="ro' + _[f].ods + '"' : "", o.push(" <table:table-row" + u + `>
14497
14497
  `), c = 0; c < p.s.c; ++c) o.push(r);
14498
14498
  for (; c <= p.e.c; ++c) {
14499
- var C = !1, I = {}, F = "";
14499
+ var C = !1, B = {}, k = "";
14500
14500
  for (d = 0; d != h.length; ++d)
14501
14501
  if (!(h[d].s.c > c) && !(h[d].s.r > f) && !(h[d].e.c < c) && !(h[d].e.r < f)) {
14502
- (h[d].s.c != c || h[d].s.r != f) && (C = !0), I["table:number-columns-spanned"] = h[d].e.c - h[d].s.c + 1, I["table:number-rows-spanned"] = h[d].e.r - h[d].s.r + 1;
14502
+ (h[d].s.c != c || h[d].s.r != f) && (C = !0), B["table:number-columns-spanned"] = h[d].e.c - h[d].s.c + 1, B["table:number-rows-spanned"] = h[d].e.r - h[d].s.r + 1;
14503
14503
  break;
14504
14504
  }
14505
14505
  if (C) {
@@ -14507,9 +14507,9 @@ var write_styles_ods = /* @__PURE__ */ function() {
14507
14507
  continue;
14508
14508
  }
14509
14509
  var b = encode_cell({ r: f, c }), G = m ? (i[f] || [])[c] : i[b];
14510
- if (G && G.f && (I["table:formula"] = escapexml(csf_to_ods_formula(G.f)), G.F && G.F.slice(0, b.length) == b)) {
14510
+ if (G && G.f && (B["table:formula"] = escapexml(csf_to_ods_formula(G.f)), G.F && G.F.slice(0, b.length) == b)) {
14511
14511
  var z = decode_range(G.F);
14512
- I["table:number-matrix-columns-spanned"] = z.e.c - z.s.c + 1, I["table:number-matrix-rows-spanned"] = z.e.r - z.s.r + 1;
14512
+ B["table:number-matrix-columns-spanned"] = z.e.c - z.s.c + 1, B["table:number-matrix-rows-spanned"] = z.e.r - z.s.r + 1;
14513
14513
  }
14514
14514
  if (!G) {
14515
14515
  o.push(r);
@@ -14517,29 +14517,29 @@ var write_styles_ods = /* @__PURE__ */ function() {
14517
14517
  }
14518
14518
  switch (G.t) {
14519
14519
  case "b":
14520
- F = G.v ? "TRUE" : "FALSE", I["office:value-type"] = "boolean", I["office:boolean-value"] = G.v ? "true" : "false";
14520
+ k = G.v ? "TRUE" : "FALSE", B["office:value-type"] = "boolean", B["office:boolean-value"] = G.v ? "true" : "false";
14521
14521
  break;
14522
14522
  case "n":
14523
- F = G.w || String(G.v || 0), I["office:value-type"] = "float", I["office:value"] = G.v || 0;
14523
+ k = G.w || String(G.v || 0), B["office:value-type"] = "float", B["office:value"] = G.v || 0;
14524
14524
  break;
14525
14525
  case "s":
14526
14526
  case "str":
14527
- F = G.v == null ? "" : G.v, I["office:value-type"] = "string";
14527
+ k = G.v == null ? "" : G.v, B["office:value-type"] = "string";
14528
14528
  break;
14529
14529
  case "d":
14530
- F = G.w || parseDate(G.v).toISOString(), I["office:value-type"] = "date", I["office:date-value"] = parseDate(G.v).toISOString(), I["table:style-name"] = "ce1";
14530
+ k = G.w || parseDate(G.v).toISOString(), B["office:value-type"] = "date", B["office:date-value"] = parseDate(G.v).toISOString(), B["table:style-name"] = "ce1";
14531
14531
  break;
14532
14532
  //case 'e':
14533
14533
  default:
14534
14534
  o.push(r);
14535
14535
  continue;
14536
14536
  }
14537
- var A = e(F);
14537
+ var A = e(k);
14538
14538
  if (G.l && G.l.Target) {
14539
- var X = G.l.Target;
14540
- X = X.charAt(0) == "#" ? "#" + csf_to_ods_3D(X.slice(1)) : X, X.charAt(0) != "#" && !X.match(/^\w+:/) && (X = "../" + X), A = writextag("text:a", A, { "xlink:href": X.replace(/&/g, "&amp;") });
14539
+ var H = G.l.Target;
14540
+ H = H.charAt(0) == "#" ? "#" + csf_to_ods_3D(H.slice(1)) : H, H.charAt(0) != "#" && !H.match(/^\w+:/) && (H = "../" + H), A = writextag("text:a", A, { "xlink:href": H.replace(/&/g, "&amp;") });
14541
14541
  }
14542
- o.push(" " + writextag("table:table-cell", writextag("text:p", A, {}), I) + `
14542
+ o.push(" " + writextag("table:table-cell", writextag("text:p", A, {}), B) + `
14543
14543
  `);
14544
14544
  }
14545
14545
  o.push(` </table:table-row>
@@ -14933,42 +14933,42 @@ function write_numbers_iwa(e, r) {
14933
14933
  var n = !1;
14934
14934
  a.e.c > 9 && (n = !0, a.e.c = 9), a.e.r > 49 && (n = !0, a.e.r = 49), n && console.error("The Numbers writer is currently limited to ".concat(encode_range(a)));
14935
14935
  var i = sheet_to_json(t, { range: a, header: 1 }), s = ["~Sh33tJ5~"];
14936
- i.forEach(function(M) {
14937
- return M.forEach(function(P) {
14936
+ i.forEach(function(V) {
14937
+ return V.forEach(function(P) {
14938
14938
  typeof P == "string" && s.push(P);
14939
14939
  });
14940
14940
  });
14941
14941
  var l = {}, o = [], f = CFB.read(r.numbers, { type: "base64" });
14942
- f.FileIndex.map(function(M, P) {
14943
- return [M, f.FullPaths[P]];
14944
- }).forEach(function(M) {
14945
- var P = M[0], D = M[1];
14942
+ f.FileIndex.map(function(V, P) {
14943
+ return [V, f.FullPaths[P]];
14944
+ }).forEach(function(V) {
14945
+ var P = V[0], I = V[1];
14946
14946
  if (P.type == 2 && P.name.match(/\.iwa/)) {
14947
- var K = P.content, se = decompress_iwa_file(K), le = parse_iwa_file(se);
14947
+ var j = P.content, se = decompress_iwa_file(j), le = parse_iwa_file(se);
14948
14948
  le.forEach(function(ie) {
14949
- o.push(ie.id), l[ie.id] = { deps: [], location: D, type: varint_to_i32(ie.messages[0].meta[1][0].data) };
14949
+ o.push(ie.id), l[ie.id] = { deps: [], location: I, type: varint_to_i32(ie.messages[0].meta[1][0].data) };
14950
14950
  });
14951
14951
  }
14952
- }), o.sort(function(M, P) {
14953
- return M - P;
14952
+ }), o.sort(function(V, P) {
14953
+ return V - P;
14954
14954
  });
14955
- var c = o.filter(function(M) {
14956
- return M > 1;
14957
- }).map(function(M) {
14958
- return [M, write_varint49(M)];
14955
+ var c = o.filter(function(V) {
14956
+ return V > 1;
14957
+ }).map(function(V) {
14958
+ return [V, write_varint49(V)];
14959
14959
  });
14960
- f.FileIndex.map(function(M, P) {
14961
- return [M, f.FullPaths[P]];
14962
- }).forEach(function(M) {
14963
- var P = M[0];
14964
- if (M[1], !!P.name.match(/\.iwa/)) {
14965
- var D = parse_iwa_file(decompress_iwa_file(P.content));
14966
- D.forEach(function(K) {
14967
- K.messages.forEach(function(se) {
14960
+ f.FileIndex.map(function(V, P) {
14961
+ return [V, f.FullPaths[P]];
14962
+ }).forEach(function(V) {
14963
+ var P = V[0];
14964
+ if (V[1], !!P.name.match(/\.iwa/)) {
14965
+ var I = parse_iwa_file(decompress_iwa_file(P.content));
14966
+ I.forEach(function(j) {
14967
+ j.messages.forEach(function(se) {
14968
14968
  c.forEach(function(le) {
14969
- K.messages.some(function(ie) {
14969
+ j.messages.some(function(ie) {
14970
14970
  return varint_to_i32(ie.meta[1][0].data) != 11006 && u8contains(ie.data, le[1]);
14971
- }) && l[le[0]].deps.push(K.id);
14971
+ }) && l[le[0]].deps.push(j.id);
14972
14972
  });
14973
14973
  });
14974
14974
  });
@@ -14988,57 +14988,57 @@ function write_numbers_iwa(e, r) {
14988
14988
  var C = parse_shallow(d.messages[0].data);
14989
14989
  {
14990
14990
  C[6][0].data = write_varint49(a.e.r + 1), C[7][0].data = write_varint49(a.e.c + 1);
14991
- var I = parse_TSP_Reference(C[46][0].data), F = CFB.find(f, l[I].location), b = parse_iwa_file(decompress_iwa_file(F.content));
14991
+ var B = parse_TSP_Reference(C[46][0].data), k = CFB.find(f, l[B].location), b = parse_iwa_file(decompress_iwa_file(k.content));
14992
14992
  {
14993
- for (var G = 0; G < b.length && b[G].id != I; ++G)
14993
+ for (var G = 0; G < b.length && b[G].id != B; ++G)
14994
14994
  ;
14995
- if (b[G].id != I)
14995
+ if (b[G].id != B)
14996
14996
  throw "Bad ColumnRowUIDMapArchive";
14997
14997
  var z = parse_shallow(b[G].messages[0].data);
14998
14998
  z[1] = [], z[2] = [], z[3] = [];
14999
14999
  for (var A = 0; A <= a.e.c; ++A) {
15000
- var X = [];
15001
- X[1] = X[2] = [{ type: 0, data: write_varint49(A + 420690) }], z[1].push({ type: 2, data: write_shallow(X) }), z[2].push({ type: 0, data: write_varint49(A) }), z[3].push({ type: 0, data: write_varint49(A) });
15000
+ var H = [];
15001
+ H[1] = H[2] = [{ type: 0, data: write_varint49(A + 420690) }], z[1].push({ type: 2, data: write_shallow(H) }), z[2].push({ type: 0, data: write_varint49(A) }), z[3].push({ type: 0, data: write_varint49(A) });
15002
15002
  }
15003
15003
  z[4] = [], z[5] = [], z[6] = [];
15004
15004
  for (var S = 0; S <= a.e.r; ++S)
15005
- X = [], X[1] = X[2] = [{ type: 0, data: write_varint49(S + 726270) }], z[4].push({ type: 2, data: write_shallow(X) }), z[5].push({ type: 0, data: write_varint49(S) }), z[6].push({ type: 0, data: write_varint49(S) });
15005
+ H = [], H[1] = H[2] = [{ type: 0, data: write_varint49(S + 726270) }], z[4].push({ type: 2, data: write_shallow(H) }), z[5].push({ type: 0, data: write_varint49(S) }), z[6].push({ type: 0, data: write_varint49(S) });
15006
15006
  b[G].messages[0].data = write_shallow(z);
15007
15007
  }
15008
- F.content = compress_iwa_file(write_iwa_file(b)), F.size = F.content.length, delete C[46];
15008
+ k.content = compress_iwa_file(write_iwa_file(b)), k.size = k.content.length, delete C[46];
15009
15009
  var O = parse_shallow(C[4][0].data);
15010
15010
  {
15011
15011
  O[7][0].data = write_varint49(a.e.r + 1);
15012
- var N = parse_shallow(O[1][0].data), B = parse_TSP_Reference(N[2][0].data);
15013
- F = CFB.find(f, l[B].location), b = parse_iwa_file(decompress_iwa_file(F.content));
15012
+ var D = parse_shallow(O[1][0].data), F = parse_TSP_Reference(D[2][0].data);
15013
+ k = CFB.find(f, l[F].location), b = parse_iwa_file(decompress_iwa_file(k.content));
15014
15014
  {
15015
- if (b[0].id != B)
15015
+ if (b[0].id != F)
15016
15016
  throw "Bad HeaderStorageBucket";
15017
- var H = parse_shallow(b[0].messages[0].data);
15017
+ var R = parse_shallow(b[0].messages[0].data);
15018
15018
  for (S = 0; S < i.length; ++S) {
15019
- var ae = parse_shallow(H[2][0].data);
15020
- ae[1][0].data = write_varint49(S), ae[4][0].data = write_varint49(i[S].length), H[2][S] = { type: H[2][0].type, data: write_shallow(ae) };
15019
+ var te = parse_shallow(R[2][0].data);
15020
+ te[1][0].data = write_varint49(S), te[4][0].data = write_varint49(i[S].length), R[2][S] = { type: R[2][0].type, data: write_shallow(te) };
15021
15021
  }
15022
- b[0].messages[0].data = write_shallow(H);
15022
+ b[0].messages[0].data = write_shallow(R);
15023
15023
  }
15024
- F.content = compress_iwa_file(write_iwa_file(b)), F.size = F.content.length;
15024
+ k.content = compress_iwa_file(write_iwa_file(b)), k.size = k.content.length;
15025
15025
  var ne = parse_TSP_Reference(O[2][0].data);
15026
- F = CFB.find(f, l[ne].location), b = parse_iwa_file(decompress_iwa_file(F.content));
15026
+ k = CFB.find(f, l[ne].location), b = parse_iwa_file(decompress_iwa_file(k.content));
15027
15027
  {
15028
15028
  if (b[0].id != ne)
15029
15029
  throw "Bad HeaderStorageBucket";
15030
- for (H = parse_shallow(b[0].messages[0].data), A = 0; A <= a.e.c; ++A)
15031
- ae = parse_shallow(H[2][0].data), ae[1][0].data = write_varint49(A), ae[4][0].data = write_varint49(a.e.r + 1), H[2][A] = { type: H[2][0].type, data: write_shallow(ae) };
15032
- b[0].messages[0].data = write_shallow(H);
15030
+ for (R = parse_shallow(b[0].messages[0].data), A = 0; A <= a.e.c; ++A)
15031
+ te = parse_shallow(R[2][0].data), te[1][0].data = write_varint49(A), te[4][0].data = write_varint49(a.e.r + 1), R[2][A] = { type: R[2][0].type, data: write_shallow(te) };
15032
+ b[0].messages[0].data = write_shallow(R);
15033
15033
  }
15034
- F.content = compress_iwa_file(write_iwa_file(b)), F.size = F.content.length;
15034
+ k.content = compress_iwa_file(write_iwa_file(b)), k.size = k.content.length;
15035
15035
  var ce = parse_TSP_Reference(O[4][0].data);
15036
15036
  (function() {
15037
- for (var M = CFB.find(f, l[ce].location), P = parse_iwa_file(decompress_iwa_file(M.content)), D, K = 0; K < P.length; ++K) {
15038
- var se = P[K];
15039
- se.id == ce && (D = se);
15037
+ for (var V = CFB.find(f, l[ce].location), P = parse_iwa_file(decompress_iwa_file(V.content)), I, j = 0; j < P.length; ++j) {
15038
+ var se = P[j];
15039
+ se.id == ce && (I = se);
15040
15040
  }
15041
- var le = parse_shallow(D.messages[0].data);
15041
+ var le = parse_shallow(I.messages[0].data);
15042
15042
  {
15043
15043
  le[3] = [];
15044
15044
  var ie = [];
@@ -15046,25 +15046,25 @@ function write_numbers_iwa(e, r) {
15046
15046
  ie[1] = [{ type: 0, data: write_varint49(Ee) }], ie[2] = [{ type: 0, data: write_varint49(1) }], ie[3] = [{ type: 2, data: stru8(fe) }], le[3].push({ type: 2, data: write_shallow(ie) });
15047
15047
  });
15048
15048
  }
15049
- D.messages[0].data = write_shallow(le);
15049
+ I.messages[0].data = write_shallow(le);
15050
15050
  var Z = write_iwa_file(P), de = compress_iwa_file(Z);
15051
- M.content = de, M.size = M.content.length;
15051
+ V.content = de, V.size = V.content.length;
15052
15052
  })();
15053
- var te = parse_shallow(O[3][0].data);
15053
+ var re = parse_shallow(O[3][0].data);
15054
15054
  {
15055
- var xe = te[1][0];
15056
- delete te[2];
15055
+ var xe = re[1][0];
15056
+ delete re[2];
15057
15057
  var he = parse_shallow(xe.data);
15058
15058
  {
15059
15059
  var ve = parse_TSP_Reference(he[2][0].data);
15060
15060
  (function() {
15061
- for (var M = CFB.find(f, l[ve].location), P = parse_iwa_file(decompress_iwa_file(M.content)), D, K = 0; K < P.length; ++K) {
15062
- var se = P[K];
15063
- se.id == ve && (D = se);
15061
+ for (var V = CFB.find(f, l[ve].location), P = parse_iwa_file(decompress_iwa_file(V.content)), I, j = 0; j < P.length; ++j) {
15062
+ var se = P[j];
15063
+ se.id == ve && (I = se);
15064
15064
  }
15065
- var le = parse_shallow(D.messages[0].data);
15065
+ var le = parse_shallow(I.messages[0].data);
15066
15066
  {
15067
- delete le[6], delete te[7];
15067
+ delete le[6], delete re[7];
15068
15068
  var ie = new Uint8Array(le[5][0].data);
15069
15069
  le[5] = [];
15070
15070
  for (var Z = 0, de = 0; de <= a.e.r; ++de) {
@@ -15073,20 +15073,20 @@ function write_numbers_iwa(e, r) {
15073
15073
  }
15074
15074
  le[1] = [{ type: 0, data: write_varint49(a.e.c + 1) }], le[2] = [{ type: 0, data: write_varint49(a.e.r + 1) }], le[3] = [{ type: 0, data: write_varint49(Z) }], le[4] = [{ type: 0, data: write_varint49(a.e.r + 1) }];
15075
15075
  }
15076
- D.messages[0].data = write_shallow(le);
15076
+ I.messages[0].data = write_shallow(le);
15077
15077
  var Ee = write_iwa_file(P), ue = compress_iwa_file(Ee);
15078
- M.content = ue, M.size = M.content.length;
15078
+ V.content = ue, V.size = V.content.length;
15079
15079
  })();
15080
15080
  }
15081
15081
  xe.data = write_shallow(he);
15082
15082
  }
15083
- O[3][0].data = write_shallow(te);
15083
+ O[3][0].data = write_shallow(re);
15084
15084
  }
15085
15085
  C[4][0].data = write_shallow(O);
15086
15086
  }
15087
15087
  d.messages[0].data = write_shallow(C);
15088
- var ge = write_iwa_file(h), k = compress_iwa_file(ge);
15089
- return p.content = k, p.size = p.content.length, f;
15088
+ var ge = write_iwa_file(h), N = compress_iwa_file(ge);
15089
+ return p.content = N, p.size = p.content.length, f;
15090
15090
  }
15091
15091
  function fix_opts_func(e) {
15092
15092
  return function(t) {
@@ -15167,9 +15167,9 @@ function write_zip_xlsx(e, r) {
15167
15167
  var m = h["!comments"], u = !1, _ = "";
15168
15168
  if (m && m.length > 0) {
15169
15169
  var C = !1;
15170
- m.forEach(function(I) {
15171
- I[1].forEach(function(F) {
15172
- F.T == !0 && (C = !0);
15170
+ m.forEach(function(B) {
15171
+ B[1].forEach(function(k) {
15172
+ k.T == !0 && (C = !0);
15173
15173
  });
15174
15174
  }), C && (_ = "xl/threadedComments/threadedComment" + l + "." + t, zip_add_file(i, _, write_tcmnt_xml(m, c, r)), n.threadedcomments.push(_), add_rels(p, -1, "../threadedComments/threadedComment" + l + "." + t, RELS.TCMNT)), _ = "xl/comments" + l + "." + t, zip_add_file(i, _, write_comments_xml(m)), n.comments.push(_), add_rels(p, -1, "../comments" + l + "." + t, RELS.CMNT), u = !0;
15175
15175
  }
@@ -15450,30 +15450,30 @@ function sheet_to_json(e, r) {
15450
15450
  o = c;
15451
15451
  }
15452
15452
  a > 0 && (n = 0);
15453
- var p = encode_row(o.s.r), h = [], d = [], m = 0, u = 0, _ = Array.isArray(e), C = o.s.r, I = 0, F = {};
15453
+ var p = encode_row(o.s.r), h = [], d = [], m = 0, u = 0, _ = Array.isArray(e), C = o.s.r, B = 0, k = {};
15454
15454
  _ && !e[C] && (e[C] = []);
15455
15455
  var b = f.skipHidden && e["!cols"] || [], G = f.skipHidden && e["!rows"] || [];
15456
- for (I = o.s.c; I <= o.e.c; ++I)
15457
- if (!(b[I] || {}).hidden)
15458
- switch (h[I] = encode_col(I), t = _ ? e[C][I] : e[h[I] + p], a) {
15456
+ for (B = o.s.c; B <= o.e.c; ++B)
15457
+ if (!(b[B] || {}).hidden)
15458
+ switch (h[B] = encode_col(B), t = _ ? e[C][B] : e[h[B] + p], a) {
15459
15459
  case 1:
15460
- i[I] = I - o.s.c;
15460
+ i[B] = B - o.s.c;
15461
15461
  break;
15462
15462
  case 2:
15463
- i[I] = h[I];
15463
+ i[B] = h[B];
15464
15464
  break;
15465
15465
  case 3:
15466
- i[I] = f.header[I - o.s.c];
15466
+ i[B] = f.header[B - o.s.c];
15467
15467
  break;
15468
15468
  default:
15469
- if (t == null && (t = { w: "__EMPTY", t: "s" }), l = s = format_cell(t, null, f), u = F[s] || 0, !u) F[s] = 1;
15469
+ if (t == null && (t = { w: "__EMPTY", t: "s" }), l = s = format_cell(t, null, f), u = k[s] || 0, !u) k[s] = 1;
15470
15470
  else {
15471
15471
  do
15472
15472
  l = s + "_" + u++;
15473
- while (F[l]);
15474
- F[s] = u, F[l] = 1;
15473
+ while (k[l]);
15474
+ k[s] = u, k[l] = 1;
15475
15475
  }
15476
- i[I] = l;
15476
+ i[B] = l;
15477
15477
  }
15478
15478
  for (C = o.s.r + n; C <= o.e.r; ++C)
15479
15479
  if (!(G[C] || {}).hidden) {
@@ -15562,8 +15562,8 @@ function sheet_add_json(e, r, t) {
15562
15562
  r.forEach(function(u, _) {
15563
15563
  keys(u).forEach(function(C) {
15564
15564
  (d = h.indexOf(C)) == -1 && (h[d = h.length] = C);
15565
- var I = u[C], F = "z", b = "", G = encode_cell({ c: l + d, r: s + _ + n });
15566
- f = ws_get_cell_stub(i, G), I && typeof I == "object" && !(I instanceof Date) ? i[G] = I : (typeof I == "number" ? F = "n" : typeof I == "boolean" ? F = "b" : typeof I == "string" ? F = "s" : I instanceof Date ? (F = "d", a.cellDates || (F = "n", I = datenum(I)), b = a.dateNF || table_fmt[14]) : I === null && a.nullError && (F = "e", I = 0), f ? (f.t = F, f.v = I, delete f.w, delete f.R, b && (f.z = b)) : i[G] = f = { t: F, v: I }, b && (f.z = b));
15565
+ var B = u[C], k = "z", b = "", G = encode_cell({ c: l + d, r: s + _ + n });
15566
+ f = ws_get_cell_stub(i, G), B && typeof B == "object" && !(B instanceof Date) ? i[G] = B : (typeof B == "number" ? k = "n" : typeof B == "boolean" ? k = "b" : typeof B == "string" ? k = "s" : B instanceof Date ? (k = "d", a.cellDates || (k = "n", B = datenum(B)), b = a.dateNF || table_fmt[14]) : B === null && a.nullError && (k = "e", B = 0), f ? (f.t = k, f.v = B, delete f.w, delete f.R, b && (f.z = b)) : i[G] = f = { t: k, v: B }, b && (f.z = b));
15567
15567
  });
15568
15568
  }), c.e.c = Math.max(c.e.c, l + h.length - 1);
15569
15569
  var m = encode_row(s);
@@ -15706,9 +15706,9 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
15706
15706
  let m = t.data, u = t.printOption;
15707
15707
  var _ = "", C = "";
15708
15708
  u.TitleArray && u.TitleArray.length > 0 ? _ = u.TitleArray.map((G, z) => `<tr><th colspan='100' style="font-size:${20 - z * 3}px;border:none;">${G}</th></tr>`).join("") : _ = `<tr><th colspan='100' style='font-size:20px;border:none'>${t.title}</th></tr>`, u.FootArray && u.FootArray.length > 0 && (C = u.FootArray.map((G) => `<tr><td colspan='100' style="font-size:18ddpx;border:none;text-align:right">${G}</td></tr>`).join(""));
15709
- let I = t.columnArray, F = m.map(
15710
- (G, z) => `<tr>${I.map((A, X) => {
15711
- let S = c(G, A, X, z);
15709
+ let B = t.columnArray, k = m.map(
15710
+ (G, z) => `<tr>${B.map((A, H) => {
15711
+ let S = c(G, A, H, z);
15712
15712
  return S.colspan == "0" || S.rowspan == "0" ? "" : `<td rowspan="${S.rowspan > 1 ? S.rowspan : ""}" colspan="${S.colspan > 1 ? S.colspan : ""}">${o(G, A.title)}</td>`;
15713
15713
  }).join("")}</tr>`
15714
15714
  ).join(""), b = "";
@@ -15729,23 +15729,23 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
15729
15729
  <table>
15730
15730
  <thead>
15731
15731
  ${_}
15732
- <tr>${I.map((G) => `<th>${G.title}</th>`).join("")}</tr>
15732
+ <tr>${B.map((G) => `<th>${G.title}</th>`).join("")}</tr>
15733
15733
  </thead>
15734
15734
  <tbody>
15735
- ${F}
15735
+ ${k}
15736
15736
  ${b}
15737
15737
  ${C}
15738
15738
  </tbody>
15739
15739
  </table>`;
15740
15740
  }, c = (m, u, _, C) => {
15741
15741
  if (u.title == null) return { rowspan: 1, colspan: 1 };
15742
- let I = u.title, F = t.columnArray.FirstOrDefault((z) => z.title == I);
15743
- if (F == null || !F.isHeBing) return { rowspan: 1, colspan: 1 };
15744
- let b = m[I];
15745
- if (C > 0 && b == t.data[C - 1][I])
15742
+ let B = u.title, k = t.columnArray.FirstOrDefault((z) => z.title == B);
15743
+ if (k == null || !k.isHeBing) return { rowspan: 1, colspan: 1 };
15744
+ let b = m[B];
15745
+ if (C > 0 && b == t.data[C - 1][B])
15746
15746
  return { rowspan: 0, colspan: 0 };
15747
15747
  let G = 0;
15748
- for (let z = C; z < t.data.length && t.data[z][I] == b; z++)
15748
+ for (let z = C; z < t.data.length && t.data[z][B] == b; z++)
15749
15749
  G++;
15750
15750
  return {
15751
15751
  rowspan: G,
@@ -15766,11 +15766,11 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
15766
15766
  return L("合计");
15767
15767
  if (!u.isSummary) return "";
15768
15768
  let C = 0;
15769
- return t.data.forEach((I) => {
15770
- if (I.src && I.src.IgnoreSummary) return;
15771
- let F = I[u.title];
15772
- !m && h.test(F) && (m = !0);
15773
- let b = Number(F);
15769
+ return t.data.forEach((B) => {
15770
+ if (B.src && B.src.IgnoreSummary) return;
15771
+ let k = B[u.title];
15772
+ !m && h.test(k) && (m = !0);
15773
+ let b = Number(k);
15774
15774
  Number.isNaN(b) || (C += b);
15775
15775
  }), m ? C.toFixed(2) : C;
15776
15776
  });
@@ -15913,12 +15913,12 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
15913
15913
  _: 3
15914
15914
  }, 8, ["title", "modelValue", "fullscreen", "top", "width", "show-close", "modal"]));
15915
15915
  }
15916
- }, byDialog = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-19c47856"]]), _hoisted_1$f = { style: { height: "100%", width: "100%" } }, _hoisted_2$9 = { style: { position: "absolute", display: "inline-block" } }, _hoisted_3$7 = { style: { top: "2px", position: "relative" } }, _hoisted_4$6 = {
15916
+ }, byDialog = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-19c47856"]]), _hoisted_1$f = { style: { height: "100%", width: "100%" } }, _hoisted_2$9 = { key: 0 }, _hoisted_3$7 = { style: { position: "absolute", display: "inline-block" } }, _hoisted_4$6 = { style: { top: "2px", position: "relative" } }, _hoisted_5$5 = {
15917
15917
  key: 1,
15918
15918
  class: "myicon",
15919
15919
  "aria-hidden": "true",
15920
15920
  style: { "font-size": "2em" }
15921
- }, _hoisted_5$5 = ["xlink:href"], _hoisted_6$5 = ["src"], _sfc_main$k = {
15921
+ }, _hoisted_6$5 = ["xlink:href"], _hoisted_7$5 = { key: 0 }, _hoisted_8$5 = { key: 0 }, _hoisted_9$5 = ["src"], _sfc_main$k = {
15922
15922
  __name: "DataList",
15923
15923
  props: {
15924
15924
  showCheck: { type: Boolean, default: !0 },
@@ -15949,82 +15949,82 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
15949
15949
  i.isShowPic = !0, i.PicUrl = S;
15950
15950
  }, o = (S) => {
15951
15951
  try {
15952
- let O = /* @__PURE__ */ new Date(), N = S.ToDateTime();
15953
- return O > N ? "red" : (O = O.AddDays(30), O > N ? "#f6d00c" : "inherit");
15952
+ let O = /* @__PURE__ */ new Date(), D = S.ToDateTime();
15953
+ return O > D ? "red" : (O = O.AddDays(30), O > D ? "#f6d00c" : "inherit");
15954
15954
  } catch {
15955
15955
  }
15956
- }, f = ({ row: S, column: O, columnIndex: N, rowIndex: B }) => {
15956
+ }, f = ({ row: S, column: O, columnIndex: D, rowIndex: F }) => {
15957
15957
  if (O.property == null) return { rowspan: 1, colspan: 1 };
15958
- let H = O.property, ae = a.value.FirstOrDefault((te) => te.dataKey == H);
15959
- if (ae == null || !ae.isHeBing) return { rowspan: 1, colspan: 1 };
15960
- let ne = S[H];
15961
- if (B > 0 && ne == n.value[B - 1][H])
15958
+ let R = O.property, te = a.value.FirstOrDefault((re) => re.dataKey == R);
15959
+ if (te == null || !te.isHeBing) return { rowspan: 1, colspan: 1 };
15960
+ let ne = S[R];
15961
+ if (F > 0 && ne == n.value[F - 1][R])
15962
15962
  return { rowspan: 0, colspan: 0 };
15963
15963
  let ce = 0;
15964
- for (let te = B; te < n.value.length && n.value[te][H] == ne; te++)
15964
+ for (let re = F; re < n.value.length && n.value[re][R] == ne; re++)
15965
15965
  ce++;
15966
15966
  return {
15967
15967
  rowspan: ce,
15968
15968
  colspan: 1
15969
15969
  };
15970
15970
  }, c = (S, O) => {
15971
- for (let N = 0; N < S.length; N++)
15972
- if (O(S[N])) return S[N];
15971
+ for (let D = 0; D < S.length; D++)
15972
+ if (O(S[D])) return S[D];
15973
15973
  return null;
15974
15974
  }, p = async (S) => {
15975
- let O = n.value.filter((N) => N.src.checked);
15975
+ let O = n.value.filter((D) => D.src.checked);
15976
15976
  return O.length == 0 && (await ElMessageBox.confirm(L(`您尚未选择任何数据!您是想${S}全部数据吗??`), L(`数据${S}确认`), {
15977
15977
  cancelButtonText: L("取消"),
15978
15978
  confirmButtonText: L("确定")
15979
- }), O = n.value), O = s.fnGetSelectData(O, S), O.map((N) => {
15980
- let B = {};
15981
- for (let H in N) {
15982
- if (H == "src") {
15983
- S == "打印" && (B[H] = N.src);
15979
+ }), O = n.value), O = s.fnGetSelectData(O, S), O.map((D) => {
15980
+ let F = {};
15981
+ for (let R in D) {
15982
+ if (R == "src") {
15983
+ S == "打印" && (F[R] = D.src);
15984
15984
  continue;
15985
15985
  }
15986
- let ae = c(a.value, (ne) => ne.dataKey == H);
15987
- ae != null && (B[ae.title] = N[H]);
15986
+ let te = c(a.value, (ne) => ne.dataKey == R);
15987
+ te != null && (F[te.title] = D[R]);
15988
15988
  }
15989
- return B;
15989
+ return F;
15990
15990
  });
15991
15991
  }, h = async () => {
15992
15992
  let S = await p("导出");
15993
15993
  console.log(S);
15994
- let O = 0, N = S.length, B = [];
15995
- for (let te in S[0])
15996
- O++, B.push(te);
15997
- let H = [];
15998
- s.printOption.TitleArray.forEach((te) => {
15999
- H.push([te]);
16000
- }), H.push(B);
16001
- for (let te = 0; te < S.length; te++) {
16002
- let xe = B.map((he) => S[te][he]);
16003
- H.push(xe);
15994
+ let O = 0, D = S.length, F = [];
15995
+ for (let re in S[0])
15996
+ O++, F.push(re);
15997
+ let R = [];
15998
+ s.printOption.TitleArray.forEach((re) => {
15999
+ R.push([re]);
16000
+ }), R.push(F);
16001
+ for (let re = 0; re < S.length; re++) {
16002
+ let xe = F.map((he) => S[re][he]);
16003
+ R.push(xe);
16004
16004
  }
16005
- s.printOption.FootArray.forEach((te) => {
16006
- H.push([te]);
16005
+ s.printOption.FootArray.forEach((re) => {
16006
+ R.push([re]);
16007
16007
  });
16008
- const ae = utils.aoa_to_sheet(H, { header: B });
16008
+ const te = utils.aoa_to_sheet(R, { header: F });
16009
16009
  let ne = [];
16010
- for (let te = 0; te < s.printOption.TitleArray.length; te++)
16011
- ne.push({ s: { r: te, c: 0 }, e: { r: te, c: O - 1 } });
16012
- for (let te = 0; te < s.printOption.FootArray.length; te++) {
16013
- let xe = N + te + s.printOption.TitleArray.length + 1;
16010
+ for (let re = 0; re < s.printOption.TitleArray.length; re++)
16011
+ ne.push({ s: { r: re, c: 0 }, e: { r: re, c: O - 1 } });
16012
+ for (let re = 0; re < s.printOption.FootArray.length; re++) {
16013
+ let xe = D + re + s.printOption.TitleArray.length + 1;
16014
16014
  ne.push({ s: { r: xe, c: 0 }, e: { r: xe, c: O - 1 } });
16015
16015
  }
16016
- for (let te = 0; te < O; te++) {
16017
- let xe = B[te], he = a.value.FirstOrDefault((M) => M.title == xe);
16016
+ for (let re = 0; re < O; re++) {
16017
+ let xe = F[re], he = a.value.FirstOrDefault((V) => V.title == xe);
16018
16018
  if (he == null || !he.isHeBing) continue;
16019
- let ve, ge = 0, k = 0;
16020
- for (let M = 0; M < H.length; M++) {
16021
- if (H[M].length < te) continue;
16022
- let P = H[M][te];
16023
- P == ve ? k = M : (ge != k && ne.push({ s: { r: ge, c: te }, e: { r: k, c: te } }), ge = M, k = M, ve = P);
16019
+ let ve, ge = 0, N = 0;
16020
+ for (let V = 0; V < R.length; V++) {
16021
+ if (R[V].length < re) continue;
16022
+ let P = R[V][re];
16023
+ P == ve ? N = V : (ge != N && ne.push({ s: { r: ge, c: re }, e: { r: N, c: re } }), ge = V, N = V, ve = P);
16024
16024
  }
16025
16025
  }
16026
- ae["!merges"] || (ae["!merges"] = []), ae["!merges"] = ae["!merges"].concat(ne), Object.keys(ae).forEach((te) => {
16027
- te.indexOf("!") < 0 && (ae[te].s = {
16026
+ te["!merges"] || (te["!merges"] = []), te["!merges"] = te["!merges"].concat(ne), Object.keys(te).forEach((re) => {
16027
+ re.indexOf("!") < 0 && (te[re].s = {
16028
16028
  alignment: {
16029
16029
  //对齐方式
16030
16030
  horizontal: "center",
@@ -16033,55 +16033,55 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16033
16033
  //竖直居中
16034
16034
  // wrapText: true,//自动换行
16035
16035
  }
16036
- }, te.indexOf("1") !== -1 && (ae[te].s.font = {
16036
+ }, re.indexOf("1") !== -1 && (te[re].s.font = {
16037
16037
  bold: !0,
16038
16038
  sz: 16
16039
- }), te.indexOf("2") !== -1 && (ae[te].s.font = {
16039
+ }), re.indexOf("2") !== -1 && (te[re].s.font = {
16040
16040
  sz: 14
16041
16041
  }));
16042
16042
  });
16043
16043
  const ce = utils.book_new();
16044
- utils.book_append_sheet(ce, ae, "sheet1"), writeFileSync(ce, s.tabName + L("导出") + ".xlsx");
16044
+ utils.book_append_sheet(ce, te, "sheet1"), writeFileSync(ce, s.tabName + L("导出") + ".xlsx");
16045
16045
  };
16046
16046
  let d = /^[+-]?([0-9]+[.][0-9]*|[.][0-9]+)$/;
16047
16047
  const m = ({ columns: S, data: O }) => {
16048
- let N = [];
16049
- return S.forEach((B, H) => {
16050
- if (H === 0) {
16051
- N[H] = L("合计");
16048
+ let D = [];
16049
+ return S.forEach((F, R) => {
16050
+ if (R === 0) {
16051
+ D[R] = L("合计");
16052
16052
  return;
16053
16053
  }
16054
- let ae = a.value.FirstOrDefault((ce) => ce.dataKey == B.property && ce.isSummary);
16055
- if (ae == null) {
16056
- N[H] = "";
16054
+ let te = a.value.FirstOrDefault((ce) => ce.dataKey == F.property && ce.isSummary);
16055
+ if (te == null) {
16056
+ D[R] = "";
16057
16057
  return;
16058
16058
  }
16059
- N[H] = 0;
16059
+ D[R] = 0;
16060
16060
  let ne = !1;
16061
16061
  O.forEach((ce) => {
16062
16062
  if (!ce.src.IgnoreSummary) {
16063
- let te = ce[ae.dataKey];
16064
- !ne && d.test(te) && (ne = !0);
16065
- let xe = Number(ce[ae.dataKey]);
16066
- Number.isNaN(xe) || (N[H] += xe);
16063
+ let re = ce[te.dataKey];
16064
+ !ne && d.test(re) && (ne = !0);
16065
+ let xe = Number(ce[te.dataKey]);
16066
+ Number.isNaN(xe) || (D[R] += xe);
16067
16067
  }
16068
- }), ne && (N[H] = N[H].toFixed(2));
16069
- }), N;
16068
+ }), ne && (D[R] = D[R].toFixed(2));
16069
+ }), D;
16070
16070
  }, u = async (S, O) => {
16071
- let N = S[O.dataKey];
16072
- if (N == "合计") return N;
16071
+ let D = S[O.dataKey];
16072
+ if (D == "合计") return D;
16073
16073
  if (O.EnumType) {
16074
- let B = O.EnumType;
16075
- for (let H in B)
16076
- if (B[H] == N) return L(H);
16074
+ let F = O.EnumType;
16075
+ for (let R in F)
16076
+ if (F[R] == D) return L(R);
16077
16077
  return "";
16078
16078
  }
16079
- return O.FnGet ? await O.FnGet(S) : N;
16079
+ return O.FnGet ? await O.FnGet(S) : D;
16080
16080
  }, _ = (S) => {
16081
16081
  S.srcFilter = S.srcFilter || S.filters, S.filterText == "" ? S.filters = S.srcFilter : S.filters = S.srcFilter.filter((O) => O.text.indexOf(S.filterText) >= 0);
16082
16082
  };
16083
16083
  window.__id || (window.__id = 1);
16084
- const C = () => __id++, I = computed({
16084
+ const C = () => __id++, B = computed({
16085
16085
  get: () => a.value.some((S) => S.isSummary)
16086
16086
  });
16087
16087
  watch(
@@ -16092,50 +16092,50 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16092
16092
  ), onMounted(() => {
16093
16093
  b(!0);
16094
16094
  });
16095
- const F = async (S) => {
16096
- S.filterList = S.filters.Where((O) => !S.filterList.Exists((N) => N == O.text)).Select((O) => O.text), await b(!0), S.isVisible = !1;
16095
+ const k = async (S) => {
16096
+ S.filterList = S.filters.Where((O) => !S.filterList.Exists((D) => D == O.text)).Select((O) => O.text), await b(!0), S.isVisible = !1;
16097
16097
  }, b = async (S) => {
16098
16098
  if (S) {
16099
- let N = [];
16100
- s.columnArray.forEach((B) => {
16101
- let H = {};
16102
- for (let ae in B) H[ae] = B[ae];
16103
- H.isFilter && (H.filters || (H.filterText = "", H.filterList = [], H.filters = [], H.Id = C())), N.push(H);
16104
- }), a.value = N;
16099
+ let D = [];
16100
+ s.columnArray.forEach((F) => {
16101
+ let R = {};
16102
+ for (let te in F) R[te] = F[te];
16103
+ R.isFilter && (R.filters || (R.filterText = "", R.filterList = [], R.filters = [], R.Id = C())), D.push(R);
16104
+ }), a.value = D;
16105
16105
  }
16106
16106
  let O = [];
16107
- for (let N = 0; N < s.data.length; N++) {
16108
- let B = s.data[N];
16109
- B.src = B;
16110
- let H = {};
16111
- for (let ae = 0; ae < a.value.length; ae++) {
16112
- let ne = a.value[ae];
16113
- H[ne.dataKey] = await u(B, ne);
16107
+ for (let D = 0; D < s.data.length; D++) {
16108
+ let F = s.data[D];
16109
+ F.src = F;
16110
+ let R = {};
16111
+ for (let te = 0; te < a.value.length; te++) {
16112
+ let ne = a.value[te];
16113
+ R[ne.dataKey] = await u(F, ne);
16114
16114
  }
16115
- H.src = B, O.push(H);
16115
+ R.src = F, O.push(R);
16116
16116
  }
16117
- S && a.value.forEach((N) => {
16118
- if (N.isFilter) {
16119
- let B = [];
16120
- O.forEach((H) => {
16121
- let ae = H[N.dataKey];
16122
- B.some((ne) => ne.value == ae) || B.push({ text: ae, value: ae });
16123
- }), N.filters = B;
16117
+ S && a.value.forEach((D) => {
16118
+ if (D.isFilter) {
16119
+ let F = [];
16120
+ O.forEach((R) => {
16121
+ let te = R[D.dataKey];
16122
+ F.some((ne) => ne.value == te) || F.push({ text: te, value: te });
16123
+ }), D.filters = F;
16124
16124
  }
16125
- }), n.value = O.filter((N) => {
16126
- for (let B = 0; B < a.value.length; B++) {
16127
- let H = a.value[B];
16128
- if (H.isFilter && H.filterList && H.filterList.length > 0 && !H.filterList.some((ae) => ae == N[H.dataKey]))
16125
+ }), n.value = O.filter((D) => {
16126
+ for (let F = 0; F < a.value.length; F++) {
16127
+ let R = a.value[F];
16128
+ if (R.isFilter && R.filterList && R.filterList.length > 0 && !R.filterList.some((te) => te == D[R.dataKey]))
16129
16129
  return !1;
16130
16130
  }
16131
16131
  return !0;
16132
16132
  });
16133
16133
  }, G = t, z = (S, O) => {
16134
- let N = s.commandArray.FirstOrDefault((B) => typeof B == "object" && B.Name == S);
16135
- N && (N.onClick ? N.onClick(O) : N.OnClick && N.OnClick(O)), G("command", S, O);
16134
+ let D = s.commandArray.FirstOrDefault((F) => typeof F == "object" && F.Name == S);
16135
+ D && (D.onClick ? D.onClick(O) : D.OnClick && D.OnClick(O)), G("command", S, O);
16136
16136
  }, A = (S) => {
16137
16137
  n.value.ForEach((O) => O.src.checked = !1), S.forEach((O) => O.src.checked = !0), G("select", S);
16138
- }, X = (S) => {
16138
+ }, H = (S) => {
16139
16139
  };
16140
16140
  return r({
16141
16141
  onUpdateData: b,
@@ -16151,7 +16151,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16151
16151
  border: "",
16152
16152
  "highlight-current-row": "",
16153
16153
  "row-key": "Id",
16154
- "show-summary": I.value,
16154
+ "show-summary": B.value,
16155
16155
  class: "qktab",
16156
16156
  "sum-text": unref(L)("合计"),
16157
16157
  "span-method": f,
@@ -16172,179 +16172,203 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16172
16172
  label: unref(L)("行号"),
16173
16173
  fixed: "left"
16174
16174
  }, null, 8, ["label"])) : createCommentVNode("", !0),
16175
- (openBlock(!0), createElementBlock(Fragment, null, renderList(a.value, (N) => (openBlock(), createBlock(unref(ElTableColumn), {
16176
- prop: N.dataKey,
16177
- label: unref(L)(N.title),
16178
- "min-width": N.width,
16179
- "show-overflow-tooltip": ""
16180
- }, {
16181
- header: withCtx(() => [
16182
- createElementVNode("span", null, toDisplayString(unref(L)(N.title)), 1),
16183
- N.isFilter ? (openBlock(), createBlock(unref(ElPopover), {
16184
- trigger: "click",
16185
- key: N.Id,
16186
- width: "400px",
16187
- visible: N.isVisible,
16188
- "onUpdate:visible": (B) => N.isVisible = B
16189
- }, {
16190
- reference: withCtx(() => [
16191
- createElementVNode("div", _hoisted_2$9, [
16175
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(a.value.Where((D, F) => (D.groupName || (D.groupName = F), !0)).GroupBy((D) => D.groupName), (D) => (openBlock(), createElementBlock(Fragment, null, [
16176
+ D.length > 1 ? (openBlock(), createBlock(unref(ElTableColumn), {
16177
+ key: 0,
16178
+ label: D[0].groupName,
16179
+ "min-width": D[0].width,
16180
+ "show-overflow-tooltip": ""
16181
+ }, {
16182
+ default: withCtx(({ row: F }) => [
16183
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(D, (R) => (openBlock(), createElementBlock("div", null, [
16184
+ createTextVNode(toDisplayString(R.title) + "", 1),
16185
+ R.color ? (openBlock(), createElementBlock("span", {
16186
+ key: 1,
16187
+ style: normalizeStyle("color:" + R.color)
16188
+ }, toDisplayString(F[R.dataKey]), 5)) : (openBlock(), createElementBlock("span", _hoisted_2$9, toDisplayString(F[R.dataKey]), 1))
16189
+ ]))), 256))
16190
+ ]),
16191
+ _: 2
16192
+ }, 1032, ["label", "min-width"])) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(D, (F) => (openBlock(), createBlock(unref(ElTableColumn), {
16193
+ prop: F.dataKey,
16194
+ label: unref(L)(F.title),
16195
+ "min-width": F.width,
16196
+ "show-overflow-tooltip": ""
16197
+ }, {
16198
+ header: withCtx(() => [
16199
+ createElementVNode("span", null, toDisplayString(unref(L)(F.title)), 1),
16200
+ F.isFilter ? (openBlock(), createBlock(unref(ElPopover), {
16201
+ trigger: "click",
16202
+ key: F.Id,
16203
+ width: "400px",
16204
+ visible: F.isVisible,
16205
+ "onUpdate:visible": (R) => F.isVisible = R
16206
+ }, {
16207
+ reference: withCtx(() => [
16192
16208
  createElementVNode("div", _hoisted_3$7, [
16193
- N.filterList.length > 0 ? (openBlock(), createBlock(unref(ElIcon), {
16194
- key: 0,
16195
- class: "havfilter myicon"
16209
+ createElementVNode("div", _hoisted_4$6, [
16210
+ F.filterList.length > 0 ? (openBlock(), createBlock(unref(ElIcon), {
16211
+ key: 0,
16212
+ class: "havfilter myicon"
16213
+ }, {
16214
+ default: withCtx(() => [
16215
+ createVNode(unref(Setting))
16216
+ ]),
16217
+ _: 1
16218
+ })) : (openBlock(), createBlock(unref(ElIcon), {
16219
+ key: 1,
16220
+ class: "myicon"
16221
+ }, {
16222
+ default: withCtx(() => [
16223
+ createVNode(unref(Setting))
16224
+ ]),
16225
+ _: 1
16226
+ }))
16227
+ ])
16228
+ ])
16229
+ ]),
16230
+ default: withCtx(() => [
16231
+ createElementVNode("div", null, [
16232
+ createVNode(unref(ElInput), {
16233
+ modelValue: F.filterText,
16234
+ "onUpdate:modelValue": (R) => F.filterText = R,
16235
+ onInput: (R) => _(F)
16236
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"]),
16237
+ createVNode(unref(ElCheckboxGroup), {
16238
+ modelValue: F.filterList,
16239
+ "onUpdate:modelValue": (R) => F.filterList = R,
16240
+ class: "filtercheck",
16241
+ onChange: (R) => H()
16196
16242
  }, {
16197
16243
  default: withCtx(() => [
16198
- createVNode(unref(Setting))
16244
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(F.filters, (R) => (openBlock(), createBlock(unref(ElCheckbox), {
16245
+ label: R.text,
16246
+ value: R.text,
16247
+ style: { width: "400px" }
16248
+ }, null, 8, ["label", "value"]))), 256))
16199
16249
  ]),
16200
- _: 1
16201
- })) : (openBlock(), createBlock(unref(ElIcon), {
16202
- key: 1,
16203
- class: "myicon"
16250
+ _: 2
16251
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
16252
+ ]),
16253
+ createElementVNode("div", null, [
16254
+ createVNode(unref(ElButton), {
16255
+ size: "small",
16256
+ type: "primary",
16257
+ onClick: (R) => {
16258
+ b(!1), F.isVisible = !1;
16259
+ }
16204
16260
  }, {
16205
16261
  default: withCtx(() => [
16206
- createVNode(unref(Setting))
16262
+ createTextVNode(toDisplayString(unref(L)("确定")), 1)
16207
16263
  ]),
16208
- _: 1
16209
- }))
16264
+ _: 2
16265
+ }, 1032, ["onClick"]),
16266
+ createVNode(unref(ElButton), {
16267
+ size: "small",
16268
+ type: "danger",
16269
+ onClick: (R) => {
16270
+ F.filterList = [], b(!1), F.isVisible = !1;
16271
+ }
16272
+ }, {
16273
+ default: withCtx(() => [
16274
+ createTextVNode(toDisplayString(unref(L)("清空")), 1)
16275
+ ]),
16276
+ _: 2
16277
+ }, 1032, ["onClick"]),
16278
+ createVNode(unref(ElButton), {
16279
+ size: "small",
16280
+ type: "primary",
16281
+ onClick: (R) => k(F)
16282
+ }, {
16283
+ default: withCtx(() => [
16284
+ createTextVNode(toDisplayString(unref(L)("反选")), 1)
16285
+ ]),
16286
+ _: 2
16287
+ }, 1032, ["onClick"])
16210
16288
  ])
16211
- ])
16212
- ]),
16213
- default: withCtx(() => [
16214
- createElementVNode("div", null, [
16215
- createVNode(unref(ElInput), {
16216
- modelValue: N.filterText,
16217
- "onUpdate:modelValue": (B) => N.filterText = B,
16218
- onInput: (B) => _(N)
16219
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"]),
16220
- createVNode(unref(ElCheckboxGroup), {
16221
- modelValue: N.filterList,
16222
- "onUpdate:modelValue": (B) => N.filterList = B,
16223
- class: "filtercheck",
16224
- onChange: (B) => X()
16225
- }, {
16226
- default: withCtx(() => [
16227
- (openBlock(!0), createElementBlock(Fragment, null, renderList(N.filters, (B) => (openBlock(), createBlock(unref(ElCheckbox), {
16228
- label: B.text,
16229
- value: B.text,
16230
- style: { width: "400px" }
16231
- }, null, 8, ["label", "value"]))), 256))
16232
- ]),
16233
- _: 2
16234
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
16235
16289
  ]),
16236
- createElementVNode("div", null, [
16237
- createVNode(unref(ElButton), {
16238
- size: "small",
16239
- type: "primary",
16240
- onClick: (B) => {
16241
- b(!1), N.isVisible = !1;
16242
- }
16243
- }, {
16244
- default: withCtx(() => [
16245
- createTextVNode(toDisplayString(unref(L)("确定")), 1)
16246
- ]),
16247
- _: 2
16248
- }, 1032, ["onClick"]),
16249
- createVNode(unref(ElButton), {
16250
- size: "small",
16251
- type: "danger",
16252
- onClick: (B) => {
16253
- N.filterList = [], b(!1), N.isVisible = !1;
16254
- }
16255
- }, {
16256
- default: withCtx(() => [
16257
- createTextVNode(toDisplayString(unref(L)("清空")), 1)
16258
- ]),
16259
- _: 2
16260
- }, 1032, ["onClick"]),
16261
- createVNode(unref(ElButton), {
16262
- size: "small",
16290
+ _: 2
16291
+ }, 1032, ["visible", "onUpdate:visible"])) : createCommentVNode("", !0)
16292
+ ]),
16293
+ default: withCtx(({ row: R }) => [
16294
+ F.Type ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
16295
+ F.Type == "PIC" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
16296
+ R[F.dataKey] ? (openBlock(), createBlock(unref(ElLink), {
16297
+ key: 0,
16263
16298
  type: "primary",
16264
- onClick: (B) => F(N)
16299
+ onClick: (te) => l(R[F.dataKey])
16265
16300
  }, {
16266
- default: withCtx(() => [
16267
- createTextVNode(toDisplayString(unref(L)("反选")), 1)
16268
- ]),
16301
+ default: withCtx(() => O[2] || (O[2] = [
16302
+ createTextVNode("查看")
16303
+ ])),
16269
16304
  _: 2
16270
- }, 1032, ["onClick"])
16271
- ])
16272
- ]),
16273
- _: 2
16274
- }, 1032, ["visible", "onUpdate:visible"])) : createCommentVNode("", !0)
16275
- ]),
16276
- default: withCtx(({ row: B }) => [
16277
- N.Type ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
16278
- N.Type == "PIC" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
16279
- B[N.dataKey] ? (openBlock(), createBlock(unref(ElLink), {
16280
- key: 0,
16281
- type: "primary",
16282
- onClick: (H) => l(B[N.dataKey])
16283
- }, {
16284
- default: withCtx(() => O[2] || (O[2] = [
16285
- createTextVNode("查看")
16286
- ])),
16287
- _: 2
16288
- }, 1032, ["onClick"])) : createCommentVNode("", !0)
16289
- ], 64)) : N.Type == "ICON" ? (openBlock(), createElementBlock("svg", _hoisted_4$6, [
16290
- createElementVNode("use", {
16291
- "xlink:href": B[N.dataKey]
16292
- }, null, 8, _hoisted_5$5)
16293
- ])) : N.Type == "COLOR" ? (openBlock(), createElementBlock("div", {
16294
- key: 2,
16295
- style: normalizeStyle("width: 100%;height: 100%;background-color:" + B[N.dataKey])
16296
- }, " ", 4)) : N.Type == "DATE" ? (openBlock(), createElementBlock("span", {
16297
- key: 3,
16298
- style: normalizeStyle("color:" + o(B[N.dataKey]))
16299
- }, toDisplayString(B[N.dataKey]), 5)) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
16300
- createTextVNode(toDisplayString(B[N.dataKey]), 1)
16305
+ }, 1032, ["onClick"])) : createCommentVNode("", !0)
16306
+ ], 64)) : F.Type == "ICON" ? (openBlock(), createElementBlock("svg", _hoisted_5$5, [
16307
+ createElementVNode("use", {
16308
+ "xlink:href": R[F.dataKey]
16309
+ }, null, 8, _hoisted_6$5)
16310
+ ])) : F.Type == "COLOR" ? (openBlock(), createElementBlock("div", {
16311
+ key: 2,
16312
+ style: normalizeStyle("width: 100%;height: 100%;background-color:" + R[F.dataKey])
16313
+ }, " ", 4)) : F.Type == "DATE" ? (openBlock(), createElementBlock("span", {
16314
+ key: 3,
16315
+ style: normalizeStyle("color:" + o(R[F.dataKey]))
16316
+ }, toDisplayString(R[F.dataKey]), 5)) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
16317
+ F.color ? (openBlock(), createElementBlock("span", {
16318
+ key: 1,
16319
+ style: normalizeStyle("color:" + F.color)
16320
+ }, toDisplayString(R[F.dataKey]), 5)) : (openBlock(), createElementBlock("span", _hoisted_7$5, toDisplayString(R[F.dataKey]), 1))
16321
+ ], 64))
16322
+ ], 64)) : F.OnClick ? (openBlock(), createBlock(unref(ElLink), {
16323
+ key: 1,
16324
+ type: "success",
16325
+ onClick: (te) => F.OnClick(R)
16326
+ }, {
16327
+ default: withCtx(() => [
16328
+ createTextVNode(toDisplayString(R[F.dataKey]), 1)
16329
+ ]),
16330
+ _: 2
16331
+ }, 1032, ["onClick"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
16332
+ F.color ? (openBlock(), createElementBlock("span", {
16333
+ key: 1,
16334
+ style: normalizeStyle("color:" + F.color)
16335
+ }, toDisplayString(R[F.dataKey]), 5)) : (openBlock(), createElementBlock("span", _hoisted_8$5, toDisplayString(R[F.dataKey]), 1))
16301
16336
  ], 64))
16302
- ], 64)) : N.OnClick ? (openBlock(), createBlock(unref(ElLink), {
16303
- key: 1,
16304
- type: "success",
16305
- onClick: (H) => N.OnClick(B)
16306
- }, {
16307
- default: withCtx(() => [
16308
- createTextVNode(toDisplayString(B[N.dataKey]), 1)
16309
- ]),
16310
- _: 2
16311
- }, 1032, ["onClick"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
16312
- createTextVNode(toDisplayString(B[N.dataKey]), 1)
16313
- ], 64))
16314
- ]),
16315
- _: 2
16316
- }, 1032, ["prop", "label", "min-width"]))), 256)),
16337
+ ]),
16338
+ _: 2
16339
+ }, 1032, ["prop", "label", "min-width"]))), 256))
16340
+ ], 64))), 256)),
16317
16341
  s.commandArray.length > 0 ? (openBlock(), createBlock(unref(ElTableColumn), {
16318
16342
  key: 2,
16319
16343
  label: unref(L)("功能"),
16320
16344
  "min-width": s.toolWidth,
16321
16345
  fixed: "right"
16322
16346
  }, {
16323
- default: withCtx(({ row: N }) => [
16324
- s.commandArray.Where((B) => B.IsShow ? B.IsShow(N, s.powerArray) : !0).length > s.maxCommand ? (openBlock(), createBlock(unref(ElDropdown), {
16347
+ default: withCtx(({ row: D }) => [
16348
+ s.commandArray.Where((F) => F.IsShow ? F.IsShow(D, s.powerArray) : !0).length > s.maxCommand ? (openBlock(), createBlock(unref(ElDropdown), {
16325
16349
  key: 0,
16326
- onCommand: (B) => z(B, N)
16350
+ onCommand: (F) => z(F, D)
16327
16351
  }, {
16328
16352
  dropdown: withCtx(() => [
16329
16353
  createVNode(unref(ElDropdownMenu), null, {
16330
16354
  default: withCtx(() => [
16331
- (openBlock(!0), createElementBlock(Fragment, null, renderList(s.commandArray, (B) => (openBlock(), createElementBlock(Fragment, null, [
16332
- typeof B == "string" ? (openBlock(), createBlock(unref(ElDropdownItem), {
16355
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(s.commandArray, (F) => (openBlock(), createElementBlock(Fragment, null, [
16356
+ typeof F == "string" ? (openBlock(), createBlock(unref(ElDropdownItem), {
16333
16357
  key: 0,
16334
- command: B
16358
+ command: F
16335
16359
  }, {
16336
16360
  default: withCtx(() => [
16337
- createTextVNode(toDisplayString(unref(L)(B)), 1)
16361
+ createTextVNode(toDisplayString(unref(L)(F)), 1)
16338
16362
  ]),
16339
16363
  _: 2
16340
- }, 1032, ["command"])) : !B.IsShow || B.IsShow(N, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
16341
- !B.CheckPower || s.powerArray.Exists((H) => H.Name == B.Name) ? (openBlock(), createBlock(unref(ElDropdownItem), {
16364
+ }, 1032, ["command"])) : !F.IsShow || F.IsShow(D, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
16365
+ !F.CheckPower || s.powerArray.Exists((R) => R.Name == F.Name) ? (openBlock(), createBlock(unref(ElDropdownItem), {
16342
16366
  key: 0,
16343
- command: B.Name,
16344
- disabled: B.IsDisabled ? B.IsDisabled(N) : !1
16367
+ command: F.Name,
16368
+ disabled: F.IsDisabled ? F.IsDisabled(D) : !1
16345
16369
  }, {
16346
16370
  default: withCtx(() => [
16347
- createTextVNode(toDisplayString(unref(L)(B.Name)), 1)
16371
+ createTextVNode(toDisplayString(unref(L)(F.Name)), 1)
16348
16372
  ]),
16349
16373
  _: 2
16350
16374
  }, 1032, ["command", "disabled"])) : createCommentVNode("", !0)
@@ -16363,27 +16387,27 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16363
16387
  })
16364
16388
  ]),
16365
16389
  _: 2
16366
- }, 1032, ["onCommand"])) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(s.commandArray, (B) => (openBlock(), createElementBlock(Fragment, null, [
16367
- typeof B == "string" ? (openBlock(), createBlock(unref(ElLink), {
16390
+ }, 1032, ["onCommand"])) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(s.commandArray, (F) => (openBlock(), createElementBlock(Fragment, null, [
16391
+ typeof F == "string" ? (openBlock(), createBlock(unref(ElLink), {
16368
16392
  key: 0,
16369
16393
  style: { margin: "0 5px" },
16370
- type: B == "删除" ? "danger" : "primary",
16371
- onClick: (H) => z(B, N)
16394
+ type: F == "删除" ? "danger" : "primary",
16395
+ onClick: (R) => z(F, D)
16372
16396
  }, {
16373
16397
  default: withCtx(() => [
16374
- createTextVNode(toDisplayString(B), 1)
16398
+ createTextVNode(toDisplayString(F), 1)
16375
16399
  ]),
16376
16400
  _: 2
16377
- }, 1032, ["type", "onClick"])) : !B.IsShow || B.IsShow(N, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
16378
- !B.CheckPower || s.powerArray.Exists((H) => H.Name == B.Name) ? (openBlock(), createBlock(unref(ElLink), {
16401
+ }, 1032, ["type", "onClick"])) : !F.IsShow || F.IsShow(D, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
16402
+ !F.CheckPower || s.powerArray.Exists((R) => R.Name == F.Name) ? (openBlock(), createBlock(unref(ElLink), {
16379
16403
  key: 0,
16380
16404
  style: { margin: "0 5px" },
16381
- type: B.Name == "删除" ? "danger" : "primary",
16382
- onClick: (H) => z(B.Name, N),
16383
- disabled: B.IsDisabled ? B.IsDisabled(N) : !1
16405
+ type: F.Name == "删除" ? "danger" : "primary",
16406
+ onClick: (R) => z(F.Name, D),
16407
+ disabled: F.IsDisabled ? F.IsDisabled(D) : !1
16384
16408
  }, {
16385
16409
  default: withCtx(() => [
16386
- createTextVNode(toDisplayString(B.Name), 1)
16410
+ createTextVNode(toDisplayString(F.Name), 1)
16387
16411
  ]),
16388
16412
  _: 2
16389
16413
  }, 1032, ["type", "onClick", "disabled"])) : createCommentVNode("", !0)
@@ -16397,7 +16421,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16397
16421
  }, 8, ["data", "show-summary", "sum-text"]),
16398
16422
  createVNode(_sfc_main$m, {
16399
16423
  modelValue: i.IsVisible,
16400
- "onUpdate:modelValue": O[0] || (O[0] = (N) => i.IsVisible = N),
16424
+ "onUpdate:modelValue": O[0] || (O[0] = (D) => i.IsVisible = D),
16401
16425
  data: i.dataArray,
16402
16426
  title: s.tabName,
16403
16427
  columnArray: a.value,
@@ -16405,7 +16429,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16405
16429
  }, null, 8, ["modelValue", "data", "title", "columnArray", "printOption"]),
16406
16430
  createVNode(byDialog, {
16407
16431
  modelValue: i.isShowPic,
16408
- "onUpdate:modelValue": O[1] || (O[1] = (N) => i.isShowPic = N),
16432
+ "onUpdate:modelValue": O[1] || (O[1] = (D) => i.isShowPic = D),
16409
16433
  url: i.PicUrl,
16410
16434
  height: "auto",
16411
16435
  width: "800px",
@@ -16415,13 +16439,13 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16415
16439
  createElementVNode("img", {
16416
16440
  src: i.PicUrl,
16417
16441
  style: { "max-width": "80%", "max-height": "80%" }
16418
- }, null, 8, _hoisted_6$5)
16442
+ }, null, 8, _hoisted_9$5)
16419
16443
  ]),
16420
16444
  _: 1
16421
16445
  }, 8, ["modelValue", "url"])
16422
16446
  ]));
16423
16447
  }
16424
- }, DataList = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-524166ea"]]), CreateNewPrint = () => {
16448
+ }, DataList = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-c1d36777"]]), CreateNewPrint = () => {
16425
16449
  let config = { Pid: "" }, LODOP = getLodop();
16426
16450
  return {
16427
16451
  onMessage: (e, r) => {
@@ -16630,12 +16654,12 @@ const SafeCall$1 = async (e, r) => {
16630
16654
  setup(e, { expose: r, emit: t }) {
16631
16655
  const a = useSlots(), n = ref([]), i = ref(!0), s = ref(!0), l = ref(), o = reactive({ IsVisible: !1, DataModel: {}, Title: "" }), f = ref(null), c = ref(0), p = ref(1), h = ref(20), d = window.ProjectHost, m = e, u = t, _ = ref([]), C = (z) => {
16632
16656
  u("select", z);
16633
- }, I = computed({
16657
+ }, B = computed({
16634
16658
  get: () => {
16635
16659
  var z = [];
16636
16660
  return m.commandArray && m.commandArray.length > 0 && m.commandArray.forEach((A) => z.push(A)), _.value.some((A) => A.Name == "编辑") ? z.push("编辑") : _.value.some((A) => A.Name == "查看") && z.push("查看"), _.value.some((A) => A.Name == "删除") && z.push("删除"), z;
16637
16661
  }
16638
- }), F = (z, A) => {
16662
+ }), k = (z, A) => {
16639
16663
  switch (z) {
16640
16664
  case "新增": {
16641
16665
  i.value = !0, o.Title = `${L(m.tabName)} - ` + L("添加"), o.DataModel = {}, u("handData", o.DataModel, !0), o.IsVisible = !0;
@@ -16646,16 +16670,16 @@ const SafeCall$1 = async (e, r) => {
16646
16670
  i.value = z == "编辑", o.Title = `${L(m.tabName)} - ${L(z)}`, SafeCall$1(async () => {
16647
16671
  o.DataModel = await AjaxCallWeb(`${d}/${m.controller}/GetModel`, {
16648
16672
  Id: A.Id
16649
- }), u("handData", o.DataModel, !0), o.IsVisible = !0, o.DataModel.Reload = () => F(z, A);
16673
+ }), u("handData", o.DataModel, !0), o.IsVisible = !0, o.DataModel.Reload = () => k(z, A);
16650
16674
  }, L("数据加载中"));
16651
16675
  break;
16652
16676
  }
16653
16677
  case "删除": {
16654
16678
  confirm(L("数据删除后将不能恢复,请确认是否删除")) && SafeCall$1(async () => {
16655
16679
  await AjaxCallWeb(`${d}/${m.controller}/Delete`, { Id: A.Id }), ElMessage({ message: L("数据删除成功!"), type: "success" });
16656
- for (let X = 0; X < n.value.length; X++)
16657
- if (n.value[X].Id == A.Id) {
16658
- n.value.splice(X, 1);
16680
+ for (let H = 0; H < n.value.length; H++)
16681
+ if (n.value[H].Id == A.Id) {
16682
+ n.value.splice(H, 1);
16659
16683
  break;
16660
16684
  }
16661
16685
  f.value.onUpdateData(!0);
@@ -16665,19 +16689,19 @@ const SafeCall$1 = async (e, r) => {
16665
16689
  case "批量删除": {
16666
16690
  if (confirm(L(`数据删除后无法恢复!!\r
16667
16691
  确认删除吗?`))) {
16668
- let X = n.value.filter((S) => S.checked);
16669
- if (X.length == 0) return ElMessage({ message: L("未选择需要删除的数据"), type: "error" });
16692
+ let H = n.value.filter((S) => S.checked);
16693
+ if (H.length == 0) return ElMessage({ message: L("未选择需要删除的数据"), type: "error" });
16670
16694
  SafeCall$1(async () => {
16671
- for (let S = 0; S < X.length; S++) {
16672
- let O = X[S].Id;
16695
+ for (let S = 0; S < H.length; S++) {
16696
+ let O = H[S].Id;
16673
16697
  await AjaxCallWeb(`${d}/${m.controller}/Delete`, {
16674
16698
  Id: O
16675
- }), ElMessage({ message: L("删除成功") + `(${S + 1}/${X.length})` });
16699
+ }), ElMessage({ message: L("删除成功") + `(${S + 1}/${H.length})` });
16676
16700
  }
16677
16701
  ElMessage({
16678
- message: L("批量删除") + `:${X.length}` + L("条数据成功"),
16702
+ message: L("批量删除") + `:${H.length}` + L("条数据成功"),
16679
16703
  type: "success"
16680
- }), n.value = n.value.filter((S) => !X.some((O) => O.Id == S.Id)), f.value.onUpdateData(!0);
16704
+ }), n.value = n.value.filter((S) => !H.some((O) => O.Id == S.Id)), f.value.onUpdateData(!0);
16681
16705
  }, L("数据删除中"));
16682
16706
  }
16683
16707
  break;
@@ -16700,7 +16724,7 @@ const SafeCall$1 = async (e, r) => {
16700
16724
  PageSize: h.value
16701
16725
  };
16702
16726
  if (m.searchParam)
16703
- for (var X in m.searchParam) A[X] = m.searchParam[X];
16727
+ for (var H in m.searchParam) A[H] = m.searchParam[H];
16704
16728
  let S = await AjaxCallWeb(`${d}/${m.controller}/GetPage`, A);
16705
16729
  S.data ? (c.value = S.totalCount, S = S.data) : c.value = window.LastResult.totalRows, S.forEach((O) => u("handData", O, !1)), n.value = S;
16706
16730
  }, L("数据查询中"));
@@ -16727,7 +16751,7 @@ const SafeCall$1 = async (e, r) => {
16727
16751
  s.value ? (openBlock(), createBlock(_sfc_main$o, {
16728
16752
  key: 0,
16729
16753
  class: "filter",
16730
- onSearch: A[0] || (A[0] = (X) => G(1)),
16754
+ onSearch: A[0] || (A[0] = (H) => G(1)),
16731
16755
  ref_key: "filter",
16732
16756
  ref: l,
16733
16757
  labelWidth: m.labelWidth
@@ -16740,27 +16764,27 @@ const SafeCall$1 = async (e, r) => {
16740
16764
  createVNode(Tool, {
16741
16765
  total: c.value,
16742
16766
  pageIndex: p.value,
16743
- "onUpdate:pageIndex": A[5] || (A[5] = (X) => p.value = X),
16767
+ "onUpdate:pageIndex": A[5] || (A[5] = (H) => p.value = H),
16744
16768
  pageSize: h.value,
16745
- "onUpdate:pageSize": A[6] || (A[6] = (X) => h.value = X),
16769
+ "onUpdate:pageSize": A[6] || (A[6] = (H) => h.value = H),
16746
16770
  onUpdateData: G,
16747
16771
  class: "tool"
16748
16772
  }, {
16749
16773
  ToolItem: withCtx(() => [
16750
- _.value.some((X) => X.Name == "新增") ? (openBlock(), createBlock(unref(ElButton), {
16774
+ _.value.some((H) => H.Name == "新增") ? (openBlock(), createBlock(unref(ElButton), {
16751
16775
  key: 0,
16752
16776
  type: "primary",
16753
- onClick: A[1] || (A[1] = (X) => F("新增"))
16777
+ onClick: A[1] || (A[1] = (H) => k("新增"))
16754
16778
  }, {
16755
16779
  default: withCtx(() => [
16756
16780
  createTextVNode(toDisplayString(unref(L)("新增")), 1)
16757
16781
  ]),
16758
16782
  _: 1
16759
16783
  })) : createCommentVNode("", !0),
16760
- _.value.some((X) => X.Name == "删除") ? (openBlock(), createBlock(unref(ElButton), {
16784
+ _.value.some((H) => H.Name == "删除") ? (openBlock(), createBlock(unref(ElButton), {
16761
16785
  key: 1,
16762
16786
  type: "danger",
16763
- onClick: A[2] || (A[2] = (X) => F("批量删除"))
16787
+ onClick: A[2] || (A[2] = (H) => k("批量删除"))
16764
16788
  }, {
16765
16789
  default: withCtx(() => [
16766
16790
  createTextVNode(toDisplayString(unref(L)("批量删除")), 1)
@@ -16769,7 +16793,7 @@ const SafeCall$1 = async (e, r) => {
16769
16793
  })) : createCommentVNode("", !0),
16770
16794
  createVNode(unref(ElButton), {
16771
16795
  type: "primary",
16772
- onClick: A[3] || (A[3] = (X) => f.value.exportData())
16796
+ onClick: A[3] || (A[3] = (H) => f.value.exportData())
16773
16797
  }, {
16774
16798
  default: withCtx(() => [
16775
16799
  createTextVNode(toDisplayString(unref(L)("导出")), 1)
@@ -16778,7 +16802,7 @@ const SafeCall$1 = async (e, r) => {
16778
16802
  }),
16779
16803
  createVNode(unref(ElButton), {
16780
16804
  type: "success",
16781
- onClick: A[4] || (A[4] = (X) => f.value.printData())
16805
+ onClick: A[4] || (A[4] = (H) => f.value.printData())
16782
16806
  }, {
16783
16807
  default: withCtx(() => [
16784
16808
  createTextVNode(toDisplayString(unref(L)("打印")), 1)
@@ -16799,16 +16823,16 @@ const SafeCall$1 = async (e, r) => {
16799
16823
  toolWidth: m.toolWidth,
16800
16824
  maxCommand: m.maxCommand,
16801
16825
  fnGetSelectData: m.fnGetSelectData,
16802
- onCommand: F,
16826
+ onCommand: k,
16803
16827
  onSelect: C,
16804
- commandArray: I.value,
16805
- key: I.value,
16828
+ commandArray: B.value,
16829
+ key: B.value,
16806
16830
  powerArray: _.value,
16807
16831
  printOption: m.printOption
16808
16832
  }, null, 8, ["data", "tabName", "columnArray", "toolWidth", "maxCommand", "fnGetSelectData", "commandArray", "powerArray", "printOption"])),
16809
16833
  createVNode(unref(ElDialog), {
16810
16834
  modelValue: o.IsVisible,
16811
- "onUpdate:modelValue": A[7] || (A[7] = (X) => o.IsVisible = X),
16835
+ "onUpdate:modelValue": A[7] || (A[7] = (H) => o.IsVisible = H),
16812
16836
  title: o.Title,
16813
16837
  width: m.editDlgWidth,
16814
16838
  top: m.top,
@@ -16882,18 +16906,18 @@ const SafeCall$1 = async (e, r) => {
16882
16906
  const a = useSlots(), n = ref([]);
16883
16907
  ref(!0);
16884
16908
  const i = ref(!0), s = ref(null), l = computed({
16885
- get: () => o.columnArray.Where((I) => I.isSummary && !I.hideTotal)
16886
- }), o = e, f = async (I, F) => {
16887
- F = F || L("数据加载中"), F += "...";
16909
+ get: () => o.columnArray.Where((B) => B.isSummary && !B.hideTotal)
16910
+ }), o = e, f = async (B, k) => {
16911
+ k = k || L("数据加载中"), k += "...";
16888
16912
  let b = ElLoading.service({
16889
16913
  lock: !0,
16890
- text: F,
16914
+ text: k,
16891
16915
  body: !0,
16892
16916
  fullscreen: !0,
16893
16917
  background: "rgba(0, 0, 0, 0.7)"
16894
16918
  });
16895
16919
  try {
16896
- await I();
16920
+ await B();
16897
16921
  } catch (G) {
16898
16922
  let z = G.message || G.resultcontent;
16899
16923
  ElMessageBox.alert(L(z), L("错误提示"));
@@ -16901,31 +16925,31 @@ const SafeCall$1 = async (e, r) => {
16901
16925
  b.close();
16902
16926
  }, c = computed({
16903
16927
  get: () => {
16904
- let I = {
16928
+ let B = {
16905
16929
  TitleArray: [o.tabName],
16906
16930
  FootArray: [L("打单日期") + `:${(/* @__PURE__ */ new Date()).ToString("yyyy-MM-dd HH:mm:ss")}`]
16907
16931
  };
16908
- return o.printOption.TitleArray && o.printOption.TitleArray.length > 0 && o.printOption.TitleArray.forEach((F) => I.TitleArray.push(F)), o.printOption.FootArray && o.printOption.FootArray.length > 0 && o.printOption.FootArray.forEach((F) => I.FootArray.push(F)), I;
16932
+ return o.printOption.TitleArray && o.printOption.TitleArray.length > 0 && o.printOption.TitleArray.forEach((k) => B.TitleArray.push(k)), o.printOption.FootArray && o.printOption.FootArray.length > 0 && o.printOption.FootArray.forEach((k) => B.FootArray.push(k)), B;
16909
16933
  }
16910
16934
  }), p = t, h = ref([]), d = computed({
16911
16935
  get: () => {
16912
- var I = [];
16913
- return o.commandArray && o.commandArray.length > 0 && o.commandArray.forEach((F) => I.push(F)), I;
16936
+ var B = [];
16937
+ return o.commandArray && o.commandArray.length > 0 && o.commandArray.forEach((k) => B.push(k)), B;
16914
16938
  }
16915
- }), m = (I, F) => {
16916
- switch (I) {
16939
+ }), m = (B, k) => {
16940
+ switch (B) {
16917
16941
  default: {
16918
- p("command", I, F);
16942
+ p("command", B, k);
16919
16943
  break;
16920
16944
  }
16921
16945
  }
16922
16946
  };
16923
16947
  let u = /^[+-]?([0-9]+[.][0-9]*|[.][0-9]+)$/;
16924
- const _ = (I, F, b, G) => {
16925
- if (F == I.length) {
16948
+ const _ = (B, k, b, G) => {
16949
+ if (k == B.length) {
16926
16950
  if (b.forEach((z) => G.push(z)), b.length > 1) {
16927
- let z = { IgnoreSummary: !0, Rows: b }, A = !0, X = b[0];
16928
- for (let S in X) z[S] = X[S];
16951
+ let z = { IgnoreSummary: !0, Rows: b }, A = !0, H = b[0];
16952
+ for (let S in H) z[S] = H[S];
16929
16953
  for (let S = 0; S < o.columnArray.length; S++)
16930
16954
  if (A && o.columnArray[S].isHeBing)
16931
16955
  z[o.columnArray[S].dataKey] = b[0][o.columnArray[S].dataKey];
@@ -16935,28 +16959,28 @@ const SafeCall$1 = async (e, r) => {
16935
16959
  continue;
16936
16960
  }
16937
16961
  if (o.columnArray[S].isSummary) {
16938
- let O = !1, N = 0;
16939
- for (let B = 0; B < b.length; B++) {
16940
- let H = b[B][o.columnArray[S].dataKey];
16941
- !O && u.test(H) && (O = !0), N += H * 1;
16962
+ let O = !1, D = 0;
16963
+ for (let F = 0; F < b.length; F++) {
16964
+ let R = b[F][o.columnArray[S].dataKey];
16965
+ !O && u.test(R) && (O = !0), D += R * 1;
16942
16966
  }
16943
- O ? z[o.columnArray[S].dataKey] = N.toFixed(2) : z[o.columnArray[S].dataKey] = N;
16967
+ O ? z[o.columnArray[S].dataKey] = D.toFixed(2) : z[o.columnArray[S].dataKey] = D;
16944
16968
  } else
16945
16969
  z[o.columnArray[S].dataKey] = "-";
16946
16970
  }
16947
16971
  G.push(z);
16948
16972
  }
16949
16973
  } else {
16950
- let z = b.GroupBy((A) => A[I[F].dataKey]);
16974
+ let z = b.GroupBy((A) => A[B[k].dataKey]);
16951
16975
  for (let A = 0; A < z.length; A++)
16952
- _(I, F + 1, z[A], G);
16976
+ _(B, k + 1, z[A], G);
16953
16977
  }
16954
16978
  }, C = () => {
16955
16979
  f(async () => {
16956
- var I = {};
16980
+ var B = {};
16957
16981
  if (o.searchParam)
16958
- for (var F in o.searchParam) I[F] = o.searchParam[F];
16959
- let b = await AjaxCallWeb(o.url, I);
16982
+ for (var k in o.searchParam) B[k] = o.searchParam[k];
16983
+ let b = await AjaxCallWeb(o.url, B);
16960
16984
  if (b = o.handArray(b), b.forEach((G) => p("handData", G, !1)), o.columnArray.length > 0 && o.columnArray[0].isHeBing && o.columnArray.Exists((G) => G.isSummary)) {
16961
16985
  let G = [];
16962
16986
  for (let A = 0; A < o.columnArray.length; A++)
@@ -16976,14 +17000,14 @@ const SafeCall$1 = async (e, r) => {
16976
17000
  }, L("页面初始化")), o.loadData && await C();
16977
17001
  }), r({
16978
17002
  onSearch: C
16979
- }), (I, F) => (openBlock(), createElementBlock("div", _hoisted_1$d, [
17003
+ }), (B, k) => (openBlock(), createElementBlock("div", _hoisted_1$d, [
16980
17004
  i.value ? (openBlock(), createBlock(_sfc_main$o, {
16981
17005
  key: 0,
16982
17006
  class: "filter",
16983
17007
  onSearch: C
16984
17008
  }, {
16985
17009
  FilterItem: withCtx(() => [
16986
- renderSlot(I.$slots, "FilterItem", { powerArray: h.value }, void 0, !0)
17010
+ renderSlot(B.$slots, "FilterItem", { powerArray: h.value }, void 0, !0)
16987
17011
  ]),
16988
17012
  _: 3
16989
17013
  })) : createCommentVNode("", !0),
@@ -16994,7 +17018,7 @@ const SafeCall$1 = async (e, r) => {
16994
17018
  ToolItem: withCtx(() => [
16995
17019
  createVNode(unref(ElButton), {
16996
17020
  type: "primary",
16997
- onClick: F[0] || (F[0] = (b) => s.value.exportData())
17021
+ onClick: k[0] || (k[0] = (b) => s.value.exportData())
16998
17022
  }, {
16999
17023
  default: withCtx(() => [
17000
17024
  createTextVNode(toDisplayString(unref(L)("导出")), 1)
@@ -17003,17 +17027,17 @@ const SafeCall$1 = async (e, r) => {
17003
17027
  }),
17004
17028
  createVNode(unref(ElButton), {
17005
17029
  type: "success",
17006
- onClick: F[1] || (F[1] = (b) => s.value.printData())
17030
+ onClick: k[1] || (k[1] = (b) => s.value.printData())
17007
17031
  }, {
17008
17032
  default: withCtx(() => [
17009
17033
  createTextVNode(toDisplayString(unref(L)("打印")), 1)
17010
17034
  ]),
17011
17035
  _: 1
17012
17036
  }),
17013
- renderSlot(I.$slots, "ToolItem", { powerArray: h.value }, void 0, !0)
17037
+ renderSlot(B.$slots, "ToolItem", { powerArray: h.value }, void 0, !0)
17014
17038
  ]),
17015
17039
  PageItem: withCtx(() => [
17016
- renderSlot(I.$slots, "PageItem", { powerArray: h.value }, void 0, !0)
17040
+ renderSlot(B.$slots, "PageItem", { powerArray: h.value }, void 0, !0)
17017
17041
  ]),
17018
17042
  _: 3
17019
17043
  }),
@@ -17816,9 +17840,9 @@ ${d.message || d.resultcontent}\r
17816
17840
  style: { width: "200px" }
17817
17841
  }, {
17818
17842
  default: withCtx(() => [
17819
- (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(UserCardTypeEnum$1), (C, I) => (openBlock(), createBlock(unref(ElOption), {
17843
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(UserCardTypeEnum$1), (C, B) => (openBlock(), createBlock(unref(ElOption), {
17820
17844
  value: C,
17821
- label: I
17845
+ label: B
17822
17846
  }, null, 8, ["value", "label"]))), 256))
17823
17847
  ]),
17824
17848
  _: 1